2016-08-18 166 views
0

我已经拍摄了webrtc的预览副本。在我的流媒体服务器上,我已经设置了流锁定,并使用vhost.xml文件中的配置完成。我无法从wowza提供的html文件发布流。使用webrtc和wowza发布实时流

我得到的错误:Refused to set unsafe header “Connection”。我已经加入了端口HOSTPORT 443

回答

0

的“拒绝设置不安全头‘连接’,是不是一个问题。随着后来的包,这是注释掉。

请注释掉以下删除“不安全管连接”使用流中的调试控制台

//http.setRequestHeader("Content-Length", params.length); 
//http.setRequestHeader("Connection", "close"); 

我建议您检查一下用同的WebRTC产品包装中附带的自述配置错误。在wowza它自

0

主机上的HTML文件锁定jks fil Ë

托管例如HTML通过HTTPS

主机目前正使用HTTPS确保自己的Web服务器上的HTML例子。要安装,请将html文件夹的内容复制到您的Web服务器。 使用内置的HTTPProviderSimpleWebServer HTTP提供程序在Wowza Streaming Engine上托管HTML示例,方法如下:

编辑[install-dir] /conf/VHost.xml,并将以下HostPort条目添加到HostPortList(将[ streamlock文件名],并与您StreamLock文件名和密码[streamlock密码):

<HostPort> 
    <Name>Admin WebRTC</Name> 
    <Type>Admin</Type> 
    <ProcessorCount>${com.wowza.wms.TuningAuto}</ProcessorCount> 
    <IpAddress>*</IpAddress> 
    <Port>9443</Port> 
    <HTTPIdent2Response></HTTPIdent2Response> 
    <SSLConfig> 
    <KeyStorePath>${com.wowza.wms.context.VHostConfigHome}/conf/[streamlock-filename].jks</KeyStorePath> 
    <KeyStorePassword>[streamlock-password]</KeyStorePassword> 
    <KeyStoreType>JKS</KeyStoreType> 
    <DomainToKeyStoreMapPath></DomainToKeyStoreMapPath> 
    <SSLProtocol>TLS</SSLProtocol> 
    <Algorithm>SunX509</Algorithm> 
    <CipherSuites></CipherSuites> 
    <Protocols></Protocols> 
    </SSLConfig> 
    <SocketConfiguration> 
    <ReuseAddress>true</ReuseAddress> 
    <ReceiveBufferSize>16000</ReceiveBufferSize> 
    <ReadBufferSize>16000</ReadBufferSize> 
    <SendBufferSize>16000</SendBufferSize> 
    <KeepAlive>true</KeepAlive> 
    <AcceptorBackLog>100</AcceptorBackLog> 
    </SocketConfiguration> 
    <HTTPStreamerAdapterIDs></HTTPStreamerAdapterIDs> 
    <HTTPProviders> 
    <HTTPProvider> 
     <BaseClass>com.wowza.wms.http.HTTPProviderSimpleWebServer</BaseClass> 
     <RequestFilters>webrtc*</RequestFilters> 
     <AuthenticationMethod>none</AuthenticationMethod> 
    </HTTPProvider> 
    </HTTPProviders> 
</HostPort> 

创建文件夹[安装目录]/htdocs中/的WebRTC和HTML文件夹中的内容复制到该文件夹​​。 当使用Wowza Streaming Engine托管示例文件时,请使用以下URL访问它们:https://[streamlock-domain-name]:9443/webrtc/[path-to-example-file]

例如,如果StreamLock域名是123456.streamlock.net,则发布HTML示例的URL将为:https://123456.streamloack.net:9443/webrtc/publish/index.html

此外,如果其在AWS EC2服务器安全组

TCP中打开端口 - 9443,443

UDP - 6970 - 65535