Auto play not working without page refresh after upgrade to 2.3

349 views
Skip to first unread message

Daniel B

unread,
Mar 17, 2021, 4:53:42 PM3/17/21
to Ant Media Server

2021-03-17_16-48-14.png

Daniel B

unread,
Mar 19, 2021, 3:16:49 PM3/19/21
to Ant Media Server
I urgently need a fix for this. It's not rechecking for a live stream. It checks one time when the page loads. So the message the stream will start when it is live is not true. Viewers have to do a manual page refresh to see the live stream. I just did the upgrade to 2.3 to fix a different issue. Fixed one problem and created a new one. Please help I need to get this fixed before Sunday.

On Wednesday, March 17, 2021 at 4:53:42 PM UTC-4 Daniel B wrote:

2021-03-17_16-48-14.png

Tahir Gölge

unread,
Mar 19, 2021, 4:17:40 PM3/19/21
to Ant Media Server
Hi,

I couldn't recreate the issue, player plays without a need to refresh on our test servers.

Can you share your settings from the web panel so that I can try to create the issue and understand the root cause, or can you send me the link to try it on your server.

Regards

Daniel B

unread,
Mar 19, 2021, 4:51:57 PM3/19/21
to Ant Media Server
Thank you for replying. I found the issue. I changed the play list order in play.html.

playOrder = ["webrtc", "hls"];

to

playOrder = ["hls", "webrtc"];

I did this because I want it to play via hls rather than webrtc. But that change caused the issue. Is there some other way to have it default to hls rather than webrtc? I made this same change in 2.2.1 so I didn't expect this to cause a problem.

Daniel B

unread,
Mar 19, 2021, 5:29:05 PM3/19/21
to Ant Media Server
I just changes the line above that to var playOrder = "hls";

That seems to work. Is there a better way to do this? In my application latency is not as important and smooth high quality video with no pausing or buffering. So HLS seems to work best.

Now I have:

        var playOrder = "hls";
        if (playOrder == null) {

Tahir Gölge

unread,
Mar 21, 2021, 4:50:49 AM3/21/21
to Ant Media Server
Hİ,

You found the correct way to make hls priority. You can also give it as a query parameter in your link like localhost:5080/LiveApp/play.html?name=stream1&playOrder=hls , this is the way of how its done.

Cheers

Reply all
Reply to author
Forward
0 new messages