Home > Archive (Community help, from old helpdesk) > How to authenticate to remote RTSP source?

How to authenticate to remote RTSP source?

Avatar image
Aug 24, 2015
Archive Agent wrote
Evaluating the capture and playback SDKs and one of the things I'll need to do is play remote videos via RTSP - the server requires HTTP authentication to get access to the streams, though - via VLC if I enter something like this:

rtsp://192.168.0.194/archive/514310857d361

it provides a popup asking for login and password and then the video plays - the playback demo code fails to attach and I can't figure out how to provide the authentication - am I missing something?
thanks.

Jeff Lindborg on December 20, 2013 23:01
Completed
0
Vote
Reply
4 Answers
Aug 24, 2015
Archive Agent agent wrote
Roman Minyaylov

In SDK Demo application you are able to enter User name and Password.

on December 21, 2013 8:25 AM
Aug 24, 2015
Archive Agent agent wrote
Jeff Lindborg

can you give me a hint as to where the user name and password properties should be applied in your object model? I see nothing obvious off the media player interface (no credential structure or the like) - looking around the code in the SDK provides no obvious routes.
Searching your help for "password" I find only references to the encryption password for encrypted file playback which of course has no relationship to authenticating for RTSP stream playback.

on December 22, 2013 7:06 PM
Aug 24, 2015
Archive Agent agent wrote
Roman Minyaylov

Use the following URL structure as alternative to API:

rtsp://username:password@ip_address:port

on December 23, 2013 10:47 AM
Aug 24, 2015
Archive Agent agent wrote
Jeff Lindborg

ah - that works, thank you! I was unaware of that construction - thanks for your help.

on December 23, 2013 4:49 PM