ant-media / Ant-Media-Server

Ant Media Server is a live streaming engine software that provides adaptive, ultra low latency streaming by using WebRTC technology with ~0.5 seconds latency. Ant Media Server is auto-scalable and it can run on-premise or on-cloud.

Home Page:https://antmedia.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Player.html gives alert error message "data_channel_error" when playing is stopped

canat opened this issue · comments

Describe the bug
When playing a webrtc stream with player.html if you stop playing with stop button, you get a data_channel_error alert which you should press to continue.

Expected behavior
If you press stop button, you should not get a data_channel_error alert because there is no error for the user. Data Channel should be closed gracefully.

Desktop (please complete the following information):

  • Browser Chrome
    (For Firefox you dont get the alert)

Same error occurs also for stop publishing button in index.html.

One solution would be handling "data_channel_error" inside callbackError instead of giving an alert and closing data channels before this error occurs if possible.