From 91047e7511f51d84d6287a6ed137deae9e50140d Mon Sep 17 00:00:00 2001 From: sanj Date: Sat, 6 Nov 2010 22:08:14 +0530 Subject: [PATCH] call pause() on video in cleanup --- test.html | 4 ++-- test.js | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/test.html b/test.html index 24a0d9a..babba96 100644 --- a/test.html +++ b/test.html @@ -53,11 +53,11 @@
- +
diff --git a/test.js b/test.js index 593c0f7..b6d727a 100644 --- a/test.js +++ b/test.js @@ -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); }