begeekmyfriend / yasea

RTMP live streaming client for Android
MIT License
4.88k stars 1.32k forks source link

Wowza username/password Authentication #305

Open smmehdi12 opened 7 years ago

smmehdi12 commented 7 years ago

I am using Wowza Streaming engine for broadcast application. I want to use username password authentication. how to provide username and password in stream url.

I tried this link but this doesn't match rtmpurlpattern

rtmp://username:password@server:port/live/streamname

developeralp commented 7 years ago

Hello,

Yasea does not supports "username@password:server:port" like authentication.

You can use secret key to publish stream like this,

"rtmp://your_server_ip:1935/live?key=MY_SECRET_KEY/liveStream"

I think , wowza is supporting this.

smmehdi12 commented 7 years ago

I tried rtmp://your_server_ip:1935/live?key=MY_SECRET_KEY/liveStream

and

rtmp://your_server_ip:1935/live?wowzatoken=MY_SECRET_KEY/liveStream

but both are not working i am failed to publish video

begeekmyfriend commented 7 years ago

I think you had better use FFmpeg command line to stream and capture the RTMP packets by Wireshark and try to modify RtmpConnection.java. I have no Wowza account.

tmartins91 commented 7 years ago

I found the way to use yasea and wowza with authentication.

Try rtmp://host:port/app/your_stream_key?your_username&your_password

It works for me.