我无法在Chrome或任何浏览器上使用Flash播放视频(播放)。我正在尝试观看以前从Widlfy 15上运行的red5服务器录制的视频。我正在使用的red5版本是v1.0.9.-RELEASE
我正在使用Chrome(版本73.0.3683.103(正式版本)(64位))和Adobe Flash 32.0.0.171)。我的SWF文件中嵌入HTML的代码是:
connection = new NetConnection();
connection.proxyType = "best";
connection.connect(“rtmps://localhost:8935/service”)
在Chrome上,当检查日志时出现以下错误: POST https://localhost:8935/open/1网:: ERR_EMPTY_RESPONSE
我正在为我的本地主机使用自签名证书。我已在Chrome浏览器中添加了CA根证书,以模拟CA证书。在redcore.xml中正确设置了信任库和密钥库,并且可以进行视频录制。 在服务器名为my_hostname的容器中运行red5的服务器端,我得到了以下日志,这些日志似乎很重要:
我已经在red5中设置了本机RTMPS,但是由于某些原因,我有一条日志说我在非本机RTMPS中:
my_hostname | 15:55:37,610信息[org.red5.server.net.rtmps.RTMPSIoFilter](NioProcessor-28)RTMPS会话ID:CBN7YR9BFVO9W
my_hostname | 15:55:37,610信息[org.red5.server.net.rtmps.RTMPSIoFilter](NioProcessor-28)为以下请求的非本地RTMPS连接:CBN7YR9BFVO9W
my_hostname | 15:55:47,324警告[org.red5.server.net.rtmp.RTMPConnection](rtmpScheduler-1)由于握手时间较长,正在关闭CBN7YR9BFVO9W。状态:>连接
如何从Chrome浏览器观看rtmps red5播放视频?
更多日志:
my_hostname | 15:55:37,547 INFO [stdout](NioProcessor-28)更新握手状态:change_cipher_spec
my_hostname | 15:55:37,547信息[stdout](NioProcessor-28)即将握手状态:客户端已完成[20]
my_hostname | 15:55:37,547 INFO [stdout](NioProcessor-28)即将握手状态:服务器change_cipher_spec [-1]
my_hostname | 15:55:37,547信息[stdout](NioProcessor-28)即将握手状态:服务器已完成[20]
my_hostname | 15:55:37,547信息[stdout](NioProcessor-28)NioProcessor-28,读取:TLSv1.2握手,长度= 40
my_hostname | 15:55:37,548信息[stdout](NioProcessor-28)检查握手状态:已完成[20]
my_hostname | 15:55:37,548信息[stdout](NioProcessor-28)更新握手状态:已完成[20]
my_hostname | 15:55:37,548信息[stdout](NioProcessor-28)即将握手状态:服务器change_cipher_spec [-1]
my_hostname | 15:55:37,548信息[stdout](NioProcessor-28)即将握手状态:服务器已完成[20]
my_hostname | 15:55:37,548 INFO [stdout](NioProcessor-28)***已完成
my_hostname | 15:55:37,549 INFO [stdout](NioProcessor-28)verify_data:{118,34,113,228,247,234,90,205,141,172,200,231}
my_hostname | 15:55:37,549 INFO [stdout](NioProcessor-28)***
my_hostname | 15:55:37,553信息[stdout](NioProcessor-28)更新握手状态:change_cipher_spec
my_hostname | 15:55:37,554信息[stdout](NioProcessor-28)即将握手状态:服务器已完成[20]
my_hostname | 15:55:37,554信息[stdout](NioProcessor-28)NioProcessor-28,写:TLSv1.2更改密码规范,长度= 1
my_hostname | 15:55:37,555 INFO [stdout](NioProcessor-28)***已完成
my_hostname | 15:55:37,560 INFO [stdout](NioProcessor-28)verify_data:{66,121,143,7,121,172,211,83,5,34,144,192}
my_hostname | 15:55:37,561 INFO [stdout](NioProcessor-28)***
my_hostname | 15:55:37,561信息[stdout](NioProcessor-28)更新握手状态:已完成[20]
my_hostname | 15:55:37,562 INFO [stdout](NioProcessor-28)NioProcessor-28,写入:TLSv1.2握手,长度= 40
my_hostname | 15:55:37,562 INFO [stdout](NioProcessor-28)%%缓存的服务器会话:[Session-9,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256]
my_hostname | 15:55:37,610信息[org.red5.server.net.rtmps.RTMPSIoFilter](NioProcessor-28)RTMPS会话ID:CBN7YR9BFVO9W
my_hostname | 15:55:37,610信息[org.red5.server.net.rtmps.RTMPSIoFilter](NioProcessor-28)为以下请求的非本地RTMPS连接:CBN7YR9BFVO9W
my_hostname | 15:55:47,324警告[org.red5.server.net.rtmp.RTMPConnection](rtmpScheduler-1)由于握手时间较长,正在关闭CBN7YR9BFVO9W。状态:连接
my_hostname | 15:55:47,326 INFO [stdout](rtmpScheduler-1)rtmpScheduler-1,称为closeOutbound()
my_hostname | 15:55:47,326 INFO [stdout](rtmpScheduler-1)rtmpScheduler-1,closeOutboundInternal()
my_hostname | 15:55:47,326信息[stdout](rtmpScheduler-1)rtmpScheduler-1,发送TLSv1.2警报:警告,说明= close_notify
my_hostname | 15:55:47,327 INFO [stdout](rtmpScheduler-1)rtmpScheduler-1,写入:TLSv1.2警报,长度= 26
my_hostname | 15:55:47,328信息[org.red5.server.net.rtmp.RTMPMinaConnection](NioProcessor-28)连接已关闭:CBN7YR9BFVO9W
my_hostname | 15:55:47,329 INFO [stdout](NioProcessor-28)NioProcessor-28,称为closeInbound()
my_hostname | 15:55:47,329信息[stdout](NioProcessor-28)NioProcessor-28,致命错误:80:入站在收到对等方的close_notify之前已关闭:可能发生截断攻击?
my_hostname | 15:55:47,329信息[stdout](NioProcessor-28)javax.net.ssl.SSLException:入站在收到对等方的close_notify之前已关闭:可能发生截断攻击?
my_hostname | 15:55:47,329信息[标准输出](NioProcessor-28)%%无效:[会话9,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256]
my_hostname | 15:55:47,330 INFO [stdout](NioProcessor-28)NioProcessor-28,发送TLSv1.2警报:致命,描述= internal_error
my_hostname | 15:55:47,332信息[stdout](NioProcessor-28)NioProcessor-28,异常发送警报:java.io.IOException:编写器端已关闭。
my_hostname | 15:55:47,332信息[stdout](NioProcessor-28)NioProcessor-28,称为closeOutbound()
my_hostname | 15:55:47,332信息[stdout](NioProcessor-28)NioProcessor-28,closeOutboundInternal()
my_hostname | 15:55:47,332警告[org.red5.server.net.rtmp.RTMPMinaIoHandler](NioProcessor-28)找不到CBN7YR9BFVO9W的连接
my_hostname | 15:55:47,507警告[org.red5.server.net.rtmp.RTMPConnection](rtmpScheduler-1)由于长时间握手而关闭LVI6J72JECMZ2。状态:连接
my_hostname | 15:55:47,512信息[stdout](rtmpScheduler-1)rtmpScheduler-1,称为closeOutbound()
my_hostname | 15:55:47,512信息[stdout](rtmpScheduler-1)rtmpScheduler-1,closeOutboundInternal()
my_hostname | 15:55:47,513信息[org.red5.server.net.rtmp.RTMPMinaConnection](NioProcessor-29)连接已关闭:LVI6J72JECMZ2
my_hostname | 15:55:47,513信息[stdout](NioProcessor-29)NioProcessor-29,称为closeInbound()
my_hostname | 15:55:47,513信息[stdout](NioProcessor-29)NioProcessor-29,致命错误:80:入站在收到对等方的close_notify之前已关闭:可能发生截断攻击?
my_hostname | 15:55:47,513信息[stdout](NioProcessor-29)javax.net.ssl.SSLException:入站在收到对等方的close_notify之前已关闭:可能发生截断攻击?
my_hostname | 15:55:47,513信息[stdout](NioProcessor-29)NioProcessor-29,发送TLSv1.2警报:致命,描述= internal_error
my_hostname | 15:55:47,513信息[stdout](NioProcessor-29)NioProcessor-29,异常发送警报:java.io.IOException:编写器端已关闭。
my_hostname | 15:55:47,513信息[stdout](NioProcessor-29)NioProcessor-29,称为closeOutbound()
my_hostname | 15:55:47,513信息[stdout](NioProcessor-29)NioProcessor-29,closeOutboundInternal()
my_hostname | 15:55:47,513警告[org.red5.server.net.rtmp.RTMPMinaIoHandler](NioProcessor-29)找不到LVI6J72JECMZ2的连接
答案 0 :(得分:0)
如果RTMPS以前确实为您工作,现在不再起作用,则很可能是由于在浏览器中删除了SSL或TLS版本。要“可能”继续使用安装,您很可能必须升级到较新的Red5版本,该版本支持浏览器所需的TLS。