fix bug with autoplay

This commit is contained in:
Bilal
2020-07-23 15:33:07 +02:00
parent 8f13589c55
commit c6c10587c8
4 changed files with 6 additions and 6 deletions

View File

@@ -21,7 +21,7 @@ $(document).on "turbolinks:load", ->
refreshBroadcastVideo: (data) ->
$("#broadcast_updates").html data.status_content
stream_selected = $("#broadcast_video").attr('video-type') == 'stream';
stream_selected = $("#broadcast_video").data('videoType') == 'stream';
if data.streamer_status == 'recording' && data.status == 'active' && stream_selected
$("#broadcast_video").html data.video_content
new (Clappr.Player)(