enable playing previous recordings while in director mode
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
$(document).on("click", "[data-behavior=play_recording]", function() {
|
$(document).on("click", "[data-behavior=play_recording]", function() {
|
||||||
|
$("#raw-video-embed").remove();
|
||||||
|
|
||||||
clearPlayingHighlight();
|
clearPlayingHighlight();
|
||||||
$(this).parent().parent().addClass('playing-highlight');
|
$(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() {
|
$(document).on("click", "[data-behavior=play_stream]", function() {
|
||||||
// clearPlayingHighlight();
|
|
||||||
$("#broadcast_video").data('videoType', 'stream');
|
$("#broadcast_video").data('videoType', 'stream');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<% if broadcast.director_mode_video_embed.present? && params[:non_director_mode].nil? %>
|
<% 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">
|
<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>
|
</div>
|
||||||
<% elsif broadcast.streamer_recording? && broadcast.active? %>
|
<% elsif broadcast.streamer_recording? && broadcast.active? %>
|
||||||
<div id="broadcast_video" class="embed-responsive-item" data-video-type="stream"></div>
|
<div id="broadcast_video" class="embed-responsive-item" data-video-type="stream"></div>
|
||||||
|
|||||||
Reference in New Issue
Block a user