SRS流媒体服务器之本地测试rtc推流bug

SRS环境版本

commit 44f0c36b61bc7c3a1d51cb60be0ec184c840f09d

Author: winlin <winlin@vip.126.com>

Date: Wed Aug 2 10:34:41 2023 +0800

Release v4.0-r5, 4.0 release5, v4.0.271, 145574 lines.

bug1: 无法推流

WebRTC推流必须是HTTPS或者localhost:HttpsRequiredError Please use HTTPS or localhost to publish, read https://github.com/ossrs/srs/issues/2762#issuecomment-983147576
WebRTC推流确实必须在HTTPS或localhost环境下进行,这是现代浏览器的安全策略要求。

解决: 把ip换成localhost通过 http://localhost:8080/players/rtc_publisher.html 访问

bug2: 推流过一会自动关闭会话。

解决:推流链接使用localhost会存在问题,应该使用虚拟机物理网卡IP:webrtc://192.168.126.129/live/livestream

后续拉流也要用物理网卡ip。

相关推荐
phantom_1113 天前
Cursor 分析 bug 记录
bug·cursor
Direction_Wind4 天前
Flinksql bug: Heartbeat of TaskManager with id container_XXX timed out.
大数据·flink·bug
从后端到QT6 天前
RTCP详解
服务器·音视频·实时音视频·rctp
索迪迈科技6 天前
提升行车安全的关键技术:BSD(盲点监测)与DSM(驾驶员监测)是如何工作的?
智慧城市·实时音视频·量子计算·车载监控·车辆安全
AIBigModel7 天前
智能情趣设备、爆 bug:可被远程操控。。。
网络·安全·bug
Direction_Wind7 天前
flinksql bug: Received resultset tuples, but no field str
bug
远瞻。7 天前
【bug】diff-gaussian-rasterization Windows下编译 bug 解决
windows·bug
中草药z7 天前
【测试】Bug+设计测试用例
功能测试·测试工具·测试用例·bug·压力测试·测试
我又来搬代码了7 天前
【Android】【bug】Json解析错误Expected BEGIN_OBJECT but was STRING...
android·json·bug
葵野寺8 天前
【软件测试】BUG篇 — 详解
bug·测试