call pause() on video in cleanup
This commit is contained in:
parent
78d85eba9f
commit
91047e7511
|
@ -53,11 +53,11 @@
|
||||||
<video src="<%= video.getLayerVideo(linkData.tcIn, linkData.tcOut) %>" width="320" controls="controls" autoplay="autoplay"></video>
|
<video src="<%= video.getLayerVideo(linkData.tcIn, linkData.tcOut) %>" width="320" controls="controls" autoplay="autoplay"></video>
|
||||||
|
|
||||||
<div class="annotationWrapper">
|
<div class="annotationWrapper">
|
||||||
<!--
|
|
||||||
<div class="trackButtons" data-selected="transcript">
|
<div class="trackButtons" data-selected="transcript">
|
||||||
<span class="trackButton" data-track="transcript">Transcript</span>
|
<span class="trackButton" data-track="transcript">Transcript</span>
|
||||||
</div>
|
</div>
|
||||||
-->
|
|
||||||
<div class="annotationText">
|
<div class="annotationText">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
4
test.js
4
test.js
|
@ -147,7 +147,9 @@ function setupPadmaLink(video, data) {
|
||||||
//FIXME: actually handle the cleanups.
|
//FIXME: actually handle the cleanups.
|
||||||
// parameter is a padmaVideo object.
|
// parameter is a padmaVideo object.
|
||||||
function cleanupVideo(video) {
|
function cleanupVideo(video) {
|
||||||
clearInterval(video.interval);
|
$('video').pause();
|
||||||
|
// clearInterval(video.interval);
|
||||||
$('.padmaViewer').remove();
|
$('.padmaViewer').remove();
|
||||||
|
|
||||||
padmaContainer.data("currentVideo", false);
|
padmaContainer.data("currentVideo", false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user