enable playing previous recordings while in director mode

This commit is contained in:
Bilal
2020-09-16 13:07:55 +03:00
parent 28e0eb36b7
commit 51d56dc9ac
2 changed files with 4 additions and 2 deletions

View File

@@ -1,4 +1,6 @@
$(document).on("click", "[data-behavior=play_recording]", function() {
$("#raw-video-embed").remove();
clearPlayingHighlight();
$(this).parent().parent().addClass('playing-highlight');
@@ -18,7 +20,6 @@ $(document).on("click", "[data-behavior=play_recording]", function() {
});
$(document).on("click", "[data-behavior=play_stream]", function() {
// clearPlayingHighlight();
$("#broadcast_video").data('videoType', 'stream');
});

View File

@@ -1,6 +1,7 @@
<% if broadcast.director_mode_video_embed.present? && params[:non_director_mode].nil? %>
<div id="director_broadcast_video" class="embed-responsive-item" data-video-type="stream">
<%= raw broadcast.director_mode_video_embed %>
<div id="broadcast_video" class="embed-responsive-item" data-video-type="strean"></div>
<div id="raw-video-embed"><%= raw broadcast.director_mode_video_embed %></div>
</div>
<% elsif broadcast.streamer_recording? && broadcast.active? %>
<div id="broadcast_video" class="embed-responsive-item" data-video-type="stream"></div>