From 39c728cb0aef37c1b66ea45293af93864a0393f9 Mon Sep 17 00:00:00 2001 From: Piotr Mitros Date: Wed, 7 Mar 2012 15:27:34 -0500 Subject: [PATCH] Used cookies to store speed --HG-- branch : ernie-templates-video-fixes --- main.html | 1 + video_init.js | 27 +++++++++++++++++++-------- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/main.html b/main.html index 888fb82903..57aa67aa8c 100644 --- a/main.html +++ b/main.html @@ -84,6 +84,7 @@ + diff --git a/video_init.js b/video_init.js index d38e47c073..adf0187ea9 100644 --- a/video_init.js +++ b/video_init.js @@ -29,13 +29,9 @@ function good() { } ajax_video=good; + // load the same video speed your last video was at in a sequence // if the last speed played on video doesn't exist on another video just use 1.0 as default -if (video_speed == 1 || !streams[video_speed]) { - loadNewVideo(streams["1.0"], streams["1.0"], ${ position }); -} else { - loadNewVideo(streams["1.0"], streams[video_speed], ${ position }); -} function add_speed(key, stream) { var id = 'speed_' + stream; @@ -67,9 +63,24 @@ function sort_by_value(a,b) { l.sort(sort_by_value); -for(var i=0; i