red5 - 我可以在安全端口 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 以外的其他应用程序
解决方案
推荐阅读
- swiftui - 设置带有几何阅读器的 ScrollView 时是否会出现无限循环?
- c# - UWP - 基于主题的初始屏幕颜色
- html - 使用动画属性模拟对象拟合
- java - 如何在运行时不“中断”方法的执行
- ffmpeg - ffmpeg - 复制附加字体而不编码/remux
- javafx - Javafx 应用程序在关闭后仍在后台运行
- php - 无论输入如何,如何使用 preg_replace?
- python - 如何在 log-log sns.regplot 中实现直线回归线?
- c# - 如何加载网站,然后在 Asp.Net Core (C#) Razor Pages 中添加数据
- java - 讲解base64图像显示