From ce0452d4a10daa3dd78faef76ca19fa119b6d538 Mon Sep 17 00:00:00 2001 From: ScottDowne Date: Thu, 18 Nov 2010 12:03:47 -0500 Subject: [PATCH] ticket #138 initial update call --- demos/initUpdate/init.html | 8 ++++++++ demos/initUpdate/init.xml | 5 +++++ popcorn.js | 5 +++-- 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 demos/initUpdate/init.html create mode 100644 demos/initUpdate/init.xml diff --git a/demos/initUpdate/init.html b/demos/initUpdate/init.html new file mode 100644 index 0000000..fe43af9 --- /dev/null +++ b/demos/initUpdate/init.html @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/demos/initUpdate/init.xml b/demos/initUpdate/init.xml new file mode 100644 index 0000000..2457c16 --- /dev/null +++ b/demos/initUpdate/init.xml @@ -0,0 +1,5 @@ + + + init subtitle + + diff --git a/popcorn.js b/popcorn.js index 60978ae..c856fc4 100644 --- a/popcorn.js +++ b/popcorn.js @@ -84,11 +84,11 @@ for (var j in vid.videoManager.commandObjects) { if (vid.videoManager.commandObjects.hasOwnProperty(j)) { commandObject = vid.videoManager.commandObjects[j]; - if (!commandObject.loaded && (commandObject.params["in"] - 5) < t && commandObject.params["out"] > t) { + if (!commandObject.loaded && (commandObject.params["in"] - 5) <= t && commandObject.params["out"] > t) { commandObject.loaded = true; commandObject.preload(); } - if (!commandObject.running && commandObject.params["in"] < t && commandObject.params["out"] > t) { + if (!commandObject.running && commandObject.params["in"] <= t && commandObject.params["out"] > t) { commandObject.running = true; $("#" + commandObject.params.target + " .inactive").hide(); @@ -918,6 +918,7 @@ clearInterval(si); convert(data, manager, type); manager.loaded(); + popcorn.update(video); }, 50); }; -- 2.43.0