Do not change player source if stream updates but user is watching recording
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user