From a1fde8125a4a9d5ac4bc948630ebff26af41b396 Mon Sep 17 00:00:00 2001 From: Igor Timoshenkov Date: Tue, 25 Nov 2014 10:21:03 +0100 Subject: [PATCH] Options for YouTube player Add a config option to change player style for dark. Example: // create timeline timeline = createStoryJS({ type: 'timeline', embed_id: 'timeline', debug: false, youtubeTheme: "dark", source: { ... } }); --- source/js/Core/Media/VMM.ExternalAPI.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/js/Core/Media/VMM.ExternalAPI.js b/source/js/Core/Media/VMM.ExternalAPI.js index 47e650f..c36024c 100644 --- a/source/js/Core/Media/VMM.ExternalAPI.js +++ b/source/js/Core/Media/VMM.ExternalAPI.js @@ -1434,12 +1434,12 @@ if(typeof VMM != 'undefined' && typeof VMM.ExternalAPI == 'undefined') { height: '390', width: '640', playerVars: { - enablejsapi: 1, - color: 'white', - showinfo: 0, - theme: 'light', - start: m.start, - rel: 0 + enablejsapi: 1, + color: ("dark" == VMM.master_config.Timeline.youtubeTheme) ? "black" : "white", + showinfo: 0, + theme: ("undefined" !== VMM.master_config.Timeline.youtubeTheme) ? VMM.master_config.Timeline.youtubeTheme : "light", + start: m.start, + rel: 0 }, videoId: m.id, events: {