我无法在 Chrome 或任何浏览器上使用 flash 播放视频(播放)。我正在尝试观看以前在 Widlfy 15 上运行的 red5 服务器录制的视频。我使用的 red5 版本是 v1.0.9.-RELEASE
我正在使用 Chrome(版本 73.0.3683.103(官方版本)(64 位))和 Adobe flash 32.0.0.171)。我嵌入在 HTML 中的 SWF 文件中的代码是:
connection = new NetConnection();
connection.proxyType = "best";
connection.connect(“rtmps://localhost:8935/service”)
在 Chrome 上检查日志时出现以下错误:POST https://localhost:8935/open/1 net::ERR_EMPTY_RESPONSE
- 我可以用 red5 和 rtmps 协议录制视频。我可以使用 ffmpeg -i "rtmps://localhost:8935/service/my_video.mp4" -vcodec copy -acodec copy out.mp4 进行成功的测试。我已经升级了许多库,如 apache、httpcontantainer。
- 我已将 Chrome64_51.0.2704.84 与 Flash 版本 21.0.0.242 一起使用。问题是一样的。
- 我的 red5 服务器支持 TLS 1.0 、 TLS 1.1 、 TLS 1.2 (使用 nmap 和调试 red5 服务器代码时检查它。
- 我对 red 5 的 v1.0.10 版本有同样的问题。
- Wireshark 指示使用了 TLS 1.2,并显示加密消息 Hanshake,然后显示应用程序数据消息,就好像 TLS 1.2 正在传输数据一样。然后下一条消息是 TLS 加密警报。之后,通讯就被粗暴地停止了。
我正在为我的 localhost 使用自签名证书。我在 Chrome 浏览器中添加了 CA 根证书来模拟 CA 证书。在 redcore.xml 中正确设置了信任库和密钥库,并且可以进行视频录制。在我的名为 my_hostname 的容器中运行 red5 的服务器端,我得到了以下看起来很重要的日志:
我已经在 red5 中设置了一个本地 RTMPS,但我有一个日志说我出于某种原因在一个非本地 RTMPS 中:
我的主机名 | 15:55:37,610 INFO [org.red5.server.net.rtmps.RTMPSIoFilter](NioProcessor-28)RTMPS 会话 ID:CBN7YR9BFVO9W
我的主机名 | 15:55:37,610 INFO [org.red5.server.net.rtmps.RTMPSIoFilter] (NioProcessor-28) 请求的非本地 RTMPS 连接:CBN7YR9BFVO9W
我的主机名 | 15:55:47,324 WARN [org.red5.server.net.rtmp.RTMPConnection] (rtmpScheduler-1) 由于长时间握手而关闭 CBN7YR9BFVO9W。状态:>连接
如何从 Chrome 中查看 rtmps red5 播放视频?
更多日志:
我的主机名 | 15:55:37,547 INFO [stdout] (NioProcessor-28) 更新握手状态:change_cipher_spec
我的主机名 | 15:55:37,547 INFO [stdout] (NioProcessor-28) 即将握手状态:客户端完成[20]
我的主机名 | 15:55:37,547 INFO [stdout] (NioProcessor-28) 即将握手状态:服务器 change_cipher_spec[-1]
我的主机名 | 15:55:37,547 INFO [stdout] (NioProcessor-28) 即将握手状态:服务器完成[20]
我的主机名 | 15:55:37,547 INFO [stdout] (NioProcessor-28) NioProcessor-28,阅读:TLSv1.2 握手,长度 = 40
我的主机名 | 15:55:37,548 INFO [stdout] (NioProcessor-28) 检查握手状态:完成[20]
我的主机名 | 15:55:37,548 INFO [stdout] (NioProcessor-28) 更新握手状态:完成[20]
我的主机名 | 15:55:37,548 INFO [stdout] (NioProcessor-28) 即将握手状态:服务器 change_cipher_spec[-1]
我的主机名 | 15:55:37,548 INFO [stdout] (NioProcessor-28) 即将握手状态:服务器完成[20]
我的主机名 | 15:55:37,548 INFO [stdout] (NioProcessor-28) *** 完成
我的主机名 | 15:55:37,549 INFO [stdout] (NioProcessor-28) verify_data: { 118, 34, 113, 228, 247, 234, 90, 205, 141, 172, 200, 231 }
我的主机名 | 15:55:37,549 信息 [标准输出] (NioProcessor-28) ***
我的主机名 | 15:55:37,553 INFO [stdout] (NioProcessor-28) 更新握手状态:change_cipher_spec
我的主机名 | 15:55:37,554 INFO [stdout] (NioProcessor-28) 即将握手状态:服务器完成[20]
我的主机名 | 15:55:37,554 INFO [stdout] (NioProcessor-28) NioProcessor-28,写入:TLSv1.2 更改密码规范,长度 = 1
我的主机名 | 15:55:37,555 信息 [stdout] (NioProcessor-28) *** 完成
我的主机名 | 15:55:37,560 INFO [stdout] (NioProcessor-28) verify_data: { 66, 121, 143, 7, 121, 172, 211, 83, 5, 34, 144, 192 }
我的主机名 | 15:55:37,561 信息 [标准输出] (NioProcessor-28) ***
我的主机名 | 15:55:37,561 INFO [stdout] (NioProcessor-28) 更新握手状态:完成[20]
我的主机名 | 15:55:37,562 INFO [stdout] (NioProcessor-28) NioProcessor-28,写入:TLSv1.2 握手,长度 = 40
我的主机名 | 15:55:37,562 INFO [stdout] (NioProcessor-28) %% 缓存服务器会话:[Session-9,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256]
我的主机名 | 15:55:37,610 INFO [org.red5.server.net.rtmps.RTMPSIoFilter](NioProcessor-28)RTMPS 会话 ID:CBN7YR9BFVO9W
我的主机名 | 15:55:37,610 INFO [org.red5.server.net.rtmps.RTMPSIoFilter] (NioProcessor-28) 请求的非本地 RTMPS 连接:CBN7YR9BFVO9W
我的主机名 | 15:55:47,324 WARN [org.red5.server.net.rtmp.RTMPConnection] (rtmpScheduler-1) 由于长时间握手而关闭 CBN7YR9BFVO9W。状态:连接
我的主机名 | 15:55:47,326 INFO [stdout] (rtmpScheduler-1) rtmpScheduler-1,称为 closeOutbound()
我的主机名 | 15:55:47,326 信息 [stdout] (rtmpScheduler-1) rtmpScheduler-1,closeOutboundInternal()
我的主机名 | 15:55:47,326 INFO [stdout] (rtmpScheduler-1) rtmpScheduler-1,发送 TLSv1.2 警报:警告,描述 = close_notify
我的主机名 | 15:55:47,327 INFO [stdout] (rtmpScheduler-1) rtmpScheduler-1,写入:TLSv1.2 警报,长度 = 26
我的主机名 | 15:55:47,328 INFO [org.red5.server.net.rtmp.RTMPMinaConnection] (NioProcessor-28) 连接已关闭:CBN7YR9BFVO9W
我的主机名 | 15:55:47,329 INFO [stdout] (NioProcessor-28) NioProcessor-28,称为 closeInbound()
我的主机名 | 15:55:47,329 INFO [stdout] (NioProcessor-28) NioProcessor-28,致命错误:80:入站在收到对等方的 close_notify 之前关闭:可能的截断攻击?
我的主机名 | 15:55:47,329 INFO [stdout] (NioProcessor-28) javax.net.ssl.SSLException:入站在接收对等方的 close_notify 之前关闭:可能的截断攻击?
我的主机名 | 15:55:47,329 INFO [stdout] (NioProcessor-28) %% 无效:[Session-9, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256]
我的主机名 | 15:55:47,330 INFO [stdout] (NioProcessor-28) NioProcessor-28,发送 TLSv1.2 警报:致命,描述 = internal_error
我的主机名 | 15:55:47,332 INFO [stdout] (NioProcessor-28) NioProcessor-28,异常发送警报:java.io.IOException:写入端已关闭。
我的主机名 | 15:55:47,332 INFO [stdout] (NioProcessor-28) NioProcessor-28,称为 closeOutbound()
我的主机名 | 15:55:47,332 信息 [stdout] (NioProcessor-28) NioProcessor-28,closeOutboundInternal()
我的主机名 | 15:55:47,332 WARN [org.red5.server.net.rtmp.RTMPMinaIoHandler] (NioProcessor-28) 未找到 CBN7YR9BFVO9W 的连接
我的主机名 | 15:55:47,507 WARN [org.red5.server.net.rtmp.RTMPConnection] (rtmpScheduler-1) 由于长时间握手而关闭 LVI6J72JECMZ2。状态:连接
我的主机名 | 15:55:47,512 INFO [stdout] (rtmpScheduler-1) rtmpScheduler-1,称为 closeOutbound()
我的主机名 | 15:55:47,512 信息 [stdout] (rtmpScheduler-1) rtmpScheduler-1,closeOutboundInternal()
我的主机名 | 15:55:47,513 INFO [org.red5.server.net.rtmp.RTMPMinaConnection] (NioProcessor-29) 连接已关闭:LVI6J72JECMZ2
我的主机名 | 15:55:47,513 INFO [stdout] (NioProcessor-29) NioProcessor-29,称为 closeInbound()
我的主机名 | 15:55:47,513 INFO [stdout] (NioProcessor-29) NioProcessor-29,致命错误:80:入站在收到对等方的 close_notify 之前关闭:可能的截断攻击?
我的主机名 | 15:55:47,513 INFO [stdout] (NioProcessor-29) javax.net.ssl.SSLException:入站在收到对等方的 close_notify 之前关闭:可能的截断攻击?
我的主机名 | 15:55:47,513 INFO [stdout] (NioProcessor-29) NioProcessor-29,发送 TLSv1.2 警报:致命,描述 = internal_error
我的主机名 | 15:55:47,513 INFO [stdout] (NioProcessor-29) NioProcessor-29,异常发送警报:java.io.IOException:写入端已关闭。
我的主机名 | 15:55:47,513 INFO [stdout] (NioProcessor-29) NioProcessor-29,称为 closeOutbound()
我的主机名 | 15:55:47,513 信息 [stdout] (NioProcessor-29) NioProcessor-29,closeOutboundInternal()
我的主机名 | 15:55:47,513 WARN [org.red5.server.net.rtmp.RTMPMinaIoHandler] (NioProcessor-29) 未找到 LVI6J72JECMZ2 的连接