Skip to content

使用 MetaRTC 向 Janus WebRTC 网关推流时出现 SSRC 识别问题及 Demo 页面 404 错误 #107

@hsc6320

Description

@hsc6320

board_log.txt
janus_log.txt

[BUG/问题] WHIP 推流时 Janus 无法识别 SSRC + Demo 页面 404 错误
问题摘要
通过 WHIP 推送视频流时,Janus 无法识别 SSRC,导致无法播放

访问 Janus demo HTML 页面(如 /demos/index.html)时出现 404 错误

环境信息
客户端平台:运行在嵌入式 RISC-V Linux 板子的 MetaRTC

传输协议:WHIP(基于 HTTP POST + RTP/DTLS/SRTP)

问题详情

  1. WHIP 推流时 Janus 无法识别 SSRC
    现象:
    DTLS 握手已成功,但视频未能正常播放。Janus 日志持续输出:

Didn't receive video for more than 1 second
Unknown SSRC, dropping packet
客户端行为:

DTLS 握手完成后已生成 SRTP 密钥

RTP 包已发送

问题:
出现上述日志的常见原因有哪些?
Janus 是在何种条件下正式建立 SRTP 会话并接受 RTP 包的?

  1. demo 页面 404 错误
    /usr/local/share/janus/demos/ 路径存在,且 HTML 文件也已确认

janus.jcfg 配置如下:

http = true
http_dir = /usr/local/share/janus/demos
现象:
访问 http://:8088/demos/index.html 时显示 404 Not Found

问题:
除了设置 http_dir 和启用 HTTP 服务外,还需进行其他配置吗?
是否需重启 Janus 或其他模块来生效?

附加日志(截图与文本已上传)
Janus 日志
[WARN] Didn't receive video for more than 1 second
[WARN] Unknown SSRC, dropping packet
[INFO] DTLS handshake completed
客户端(Eyenix)日志

RTP 전송이 시작되었습니다!
[DTLS] Handshake complete!
[DTLS] Sending 1200 bytes of DTLS handshake data...
YangSRTP: successfully initialized
Sending RTP packets...

我们已附上客户端和 Janus 的完整日志截图,供参考。感谢支持!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions