fyhertz / libstreaming

A solution for streaming H.264, H.263, AMR, AAC using RTP on Android
Apache License 2.0
3.49k stars 1.08k forks source link

Add Basic Authorization #129

Closed grunk closed 9 years ago

grunk commented 9 years ago

Give the possibility to set basic authorization to access the rtsp stream. OPTIONS request are excluded from the authorization process and are always available even without credentials.

Simply call

rtspServer.setAuthorization("username","password");

to activate Basic authorization.

Once Basic authorization is activated the stream is no longer available without username and password. (VLC will ask for them). The stream can be requested with an uri like : rtsp://user:password@host:port

fyhertz commented 9 years ago

Thanks!