简体   繁体   English

如何使用videoview使用身份验证播放rtsp流?

[英]how to play a rtsp stream with authentication using videoview?

When disable the rtsp authentication, videoview works well. 禁用rtsp身份验证时,videoview运行良好。 But for security issues, authentication can not be disabled. 但是对于安全问题,无法禁用身份验证。 So is there a way to play a rtsp stream with authentication? 那么有没有办法通过身份验证播放rtsp流?

你需要rtsp://User:Password@Server

No. You can't use VideoView with authenticated RTSP, even with rtsp://User:Password@Server. 不能。即使使用rtsp:// User:Password @ Server,也无法将VideoView与经过身份验证的RTSP一起使用。 It won't work. 它不会起作用。 It is possible to use authenticated RTSP on android but it's hard and you will have to do a lot of things by yourself. 可以在Android上使用经过身份验证的RTSP,但这很难,你必须自己做很多事情。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM