From 4f74d46cd461d8201dbdf1ba6b9223a663e04ce5 Mon Sep 17 00:00:00 2001 From: Matteo Date: Sat, 14 Mar 2015 18:50:05 -0400 Subject: [PATCH 1/2] Start time YouTube option Added start time YouTube option --- src/okvideo.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/okvideo.js b/src/okvideo.js index affa05a..052ce82 100644 --- a/src/okvideo.js +++ b/src/okvideo.js @@ -95,7 +95,7 @@ var player, OKEvents, options; // load the vimeo api by replacing the div with an iframe and loading js base.loadVimeoAPI = function() { $('#okplayer').replaceWith(function() { - return ''; + return ''; }); // if necessary, debug with the most recent version of froogaloop @@ -183,7 +183,8 @@ var player, OKEvents, options; controls: false, autoplay: true, annotations: true, - cued: null + cued: null, + startAt: 0 }; $.fn.okvideo = function (options) { @@ -244,7 +245,8 @@ function onYouTubePlayerAPIReady() { 'showinfo': 0, 'rel': 0, 'wmode': 'opaque', - 'hd': options.hd + 'hd': options.hd, + 'start':options.startAt }, events: { 'onReady': OKEvents.yt.ready, From 0d8a6e13684c8d1467b9eacdf0eec6f85d521eda Mon Sep 17 00:00:00 2001 From: Matteo Date: Sat, 14 Mar 2015 18:52:55 -0400 Subject: [PATCH 2/2] Deleted Vimeo change, Added the YouTube start at time --- src/okvideo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/okvideo.js b/src/okvideo.js index 052ce82..ac6af5f 100644 --- a/src/okvideo.js +++ b/src/okvideo.js @@ -95,7 +95,7 @@ var player, OKEvents, options; // load the vimeo api by replacing the div with an iframe and loading js base.loadVimeoAPI = function() { $('#okplayer').replaceWith(function() { - return ''; + return ''; }); // if necessary, debug with the most recent version of froogaloop