Playing RTMP stream from WCS

Shipra

New Member
Hello,
In brief i am sending rtmp stream from my android application and want to play those stream on client like VLC.
I have android application which can send rtmp stream and i am putting the url as "rtmp://<ip>/live/<stream name>" and publishing it.
When i am checking the realtime stream in the dashboard i am not getting any details of my published stream.
and when in the vlc i am trying to play the network stream where url is "rtmp://<ip>/live/<stream name>" i am not getting any stream.

When i am using Streamer project in the Android Demo it is saying failed. URL i amm putting there is "ws://<ip>:8080/test
Can you please help me.
 

Max

Administrator
Staff member
Hello
Android application uses WebRTC for publishing.
Therefore you have to set simple stream name and press 'Publish'. You should not use RTMP urls in the Android app.
Example of Android application:
https://play.google.com/store/apps/details?id=com.flashphoner.wcsexample.two_way_streaming
https://flashphoner.com/docs/wcs5/w.../index.html?two-way_streaming_android_sdk.htm
If you set stream name test333, you will be able to play this stream over RTMP.
Example of RTMP playback in Flash application:
https://wcs5-eu.flashphoner.com/client2/examples/demo/streaming/flash_client/streaming.html

rtmp-playback.jpg


When i am using Streamer project in the Android Demo it is saying failed. URL i amm putting there is "ws://<ip>:8080/test
The websocket URL must be valid host and port
Incorrect:
Code:
ws://<ip>:8080/test
Correct:
Code:
ws://<ip>:8080
 

Max

Administrator
Staff member
I have android application which can send rtmp stream and i am putting the url as "rtmp://<ip>/live/<stream name>" and publishing it.
When i am checking the realtime stream in the dashboard i am not getting any details of my published stream.
I'm sorry. I have missed that you are using your own Android application as RTMP streamer.
Please checkout our Flash Streaming example:
https://wcs5-eu.flashphoner.com/client2/examples/demo/streaming/flash_client/streaming.html
As you can see we are able to publish RTMP stream and play this stream on the same page / Flash app.
Make sure your Android app works with our demo server wcs5-eu.flashphoner.com
The RTMP streamer should use H.264+Speex or H.264+G.711 to be compatible with WCS server.
 

Attachments

Shipra

New Member
Can you please cross check if the url i am using is correct for publishing the rtmp streams.:
rtmp://<ip>/live/<stream name>
 

Max

Administrator
Staff member
Strictly, RTMP uses two handshakes to publish a stream: 1) Connection 2) Publishing stream by name.
Example of connection URL
Code:
rtmp://<ip>/live or  rtmp://<ip>/live/_default_app
Example of stream name:
Code:
stream444
Therefore it does not seem to be correct.
But your app may just parse stream name from the URL string tmp://<ip>/live/stream444
I do not know implementation details.

Take a look how it works in our Flash sample:
Code:
URL: rtmp://wcs5-eu.flashphoner.com:1935/live
Stream name: stream444
flash-streaming-rtmp-url.jpg
 
Top