3

I'm sending an RMTP stream named "testStream" to my AntMedia server. This stream can be viewed correctly on the page:

https://MYDOMAIN:5443/WebRTCAppEE/player.html

I would like to get the URL of the HLS stream to view the video within a native Android and iOS app. I've never done this before, I assume (indeed, I hope) that HLS is natively supported by both operating systems.

To get the HLS stream, I tried this URL:

https://MYDOMAIN:5443/WebRTCAppEE/streams/testStream.m3u8

It works, I tried that URL with VLC. The only drawback is the delay, because the video stream has a ten-second delay. Opening the same video with a browser, at the address:

https://MYDOMAIN:5443/WebRTCAppEE/player.html

I don't notice any delay, and if there is, it's negligible.

Am I doing something wrong? I accept advice to embed the video into a native Android Studio and XCode app without delay, keeping the code as simple as possible. Thank you.

Francesco Galgani
  • 5,607
  • 3
  • 15
  • 15

1 Answers1

1

Thank you for your question,

https://MYDOMAIN:5443/WebRTCAppEE/player.html plays stream with WebRTC so that there is no delay.

You can use https://MYDOMAIN:5443/WebRTCAppEE/play.html?id=testStream in your mobile to play with WebRTC.

Check the below doc for other options(WebRTC, HLS, etc.)

https://github.com/ant-media/Ant-Media-Server/wiki/Embedded-Web-Player

faraway
  • 1,491
  • 10
  • 22
  • 1
    I confirm that I just tested your solution inside a native iPhone app and it works, there is no delay or a very small acceptable delay. – Francesco Galgani Jul 16 '20 at 10:18