diff --git a/video_init.js b/video_init.js index 63b7f055f4..d38e47c073 100644 --- a/video_init.js +++ b/video_init.js @@ -29,15 +29,18 @@ function good() { } ajax_video=good; - -loadNewVideo(streams["1.0"], ${ position }); +// 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; - //TODO: this should be smarter and know which video is first selected when we have - // video speed as an option/parameter per user that is saved - if (key == 1.0) { + if (key == video_speed) { $("#video_speeds").append('