在RTSP流中提供特殊字符密码

man*_*lan 3 vlc rtsp video-streaming

我正在使用 vlc 读取 rtsp 流,如下所示:

rtsp://username:password@!@192.168.1.108:15667/cam/realmonitor?channel=30&subtype=0  
Run Code Online (Sandbox Code Playgroud)

用户名是“username”,密码是“password@!”

当我检查消息时,VLC 似乎无法正确读取链接。我的VLC版本是3.0.8。
有没有办法让 VLC 读取提供的流?

小智 9

url中的特殊字符必须进行转义,方法是将字符编码为url编码。

具体来说,在这种情况下,您需要替换为@%40with 您可以在这里找到所有相关字符的编码: https: //www.w3schools.com/tags/ref_urlencode.ASP!%21