call pause() on video in cleanup

This commit is contained in:
sanj 2010-11-06 22:08:14 +05:30
parent 78d85eba9f
commit 91047e7511
2 changed files with 5 additions and 3 deletions

View File

@ -53,11 +53,11 @@
<video src="<%= video.getLayerVideo(linkData.tcIn, linkData.tcOut) %>" width="320" controls="controls" autoplay="autoplay"></video>
<div class="annotationWrapper">
<!--
<div class="trackButtons" data-selected="transcript">
<span class="trackButton" data-track="transcript">Transcript</span>
</div>
-->
<div class="annotationText">
</div>

View File

@ -147,7 +147,9 @@ function setupPadmaLink(video, data) {
//FIXME: actually handle the cleanups.
// parameter is a padmaVideo object.
function cleanupVideo(video) {
clearInterval(video.interval);
$('video').pause();
// clearInterval(video.interval);
$('.padmaViewer').remove();
padmaContainer.data("currentVideo", false);
}