首页 > 解决方案 > 我可以在安全端口 443 red5pro 上看到实时应用程序

问题描述

我从文档中准备了服务器 ubuntu。我为我的域名创建了 SSL 证书,并且我打开了所需的端口。我将red5pro安装到/usr/local/red5pro/服务器正常。当我去http://example.com:5080/时,我可以看到 red5pro 的主页并且没问题。但是当我点击广播时,我有一个信息:No suitable Publisher found. WebRTC & Flash not supported.好的,也许是因为 http 不是 https。我决定在其中创建测试索引页面,/var/www/test/index.html并且我的基本配置如下:

var config = {
          protocol: 'wss',
          host: 'example.com',
          port: 443,
          app: 'live',
          streamName: 'abccaccaa',
          rtcConfiguration: {
            iceServers: [{urls: 'stun:stun2.l.google.com:19302'}],
            iceCandidatePoolSize: 2,
            bundlePolicy: 'max-bundle'
          } // See https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/RTCPeerConnection#RTCConfiguration_dictionary
        };

现在,当我尝试广播时,有一个信息:WebSocket connection to 'wss://example.com/live/?id=abccaccaa' failed: Error during WebSocket handshake: Unexpected response code: 404

看起来没有example.com/live并且无法弄清楚出了什么问题 :( 从 2 天开始。也许有人可以给我一个建议?或者替代 red5pro 以外的其他应用程序

标签: red5

解决方案


推荐阅读