online stream from Android - WebRTC player - no audio

Issues when playing with WebRTC Player

online stream from Android - WebRTC player - no audio

Postby borek » Thu Jun 06, 2019 6:21 am

Hi
I'm trying to online stream from Android phone. I set up RTMP rebroadcast. First app I used was Broadcast Me. Configuration was tricky 'cause sometimes It worked with authentication only, sometimes anonymous only. Similar to this experience: https://www.uncleninja.com/uncategorize ... ia-server/
Sometimes I get "connecting" or such message and app hangs.

Then I switched to Larix Broadcaster and CameraFi Live. I was able to successfully stream from both apps as soon as I found out that URL needs to end with “livestream”. e.g: rtmp://ip:5130/live/test/livestream. It should be mentioned in your FAQ. However, I have not been able to listen to audio track. The player’s speaker icon is greyed out. Same in Flash player. StreamingMediaPlayer can play audio properly.
How do I make WebRTC player to play audio and not only video?

Thanks
borek
 
Posts: 0
Joined: Thu Jun 06, 2019 6:04 am

Re: online stream from Android - WebRTC player - no audio

Postby admin » Thu Jun 06, 2019 1:30 pm

Hello,

RTMP publishing apps encode AAC audio, while WebRTC player must have Opus-encoded audio.
So if you use RTMP publishing, you will have to transcode AAC to Opus; you can do so with Unreal Live Server, pulling the stream from
Unreal Media Server with RTMP source filter and sending it back (after audio transcoding) to Unreal Media Server. Quite an awkward setup.

It's much better to publish live stream via WebRTC, using https://secure28.securewebsession.com/u ... blish.html
(you can find this page in our SDK as well). You will need to use secure websocket for this publishing, configuring SSL certificate in Unreal Media Server.
You can do it from your Android and iOS just fine.
admin
Site Admin
 
Posts: 1039
Joined: Fri Aug 21, 2009 10:13 am


Return to Playing with WebRTC Player

Who is online

Users browsing this forum: No registered users and 1 guest

cron