Do not change player source if stream updates but user is watching recording

This commit is contained in:
Bilal
2020-07-15 21:14:59 +02:00
parent add8304eab
commit 830a5eb3e4
4 changed files with 7 additions and 19 deletions

View File

@@ -21,7 +21,7 @@ $(document).on "turbolinks:load", ->
refreshBroadcastVideo: (data) ->
$("#broadcast_updates").html data.status_content
if data.streamer_status == 'recording' && data.status == 'active'
if data.streamer_status == 'recording' && data.status == 'active' && !window.recording_selected
$("#broadcast_video").html data.video_content
new (Clappr.Player)(
parentId: '#broadcast_video'