Browse Source

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: { ... }
          });
pull/722/head
Igor Timoshenkov 10 years ago
parent
commit
a1fde8125a
  1. 4
      source/js/Core/Media/VMM.ExternalAPI.js

4
source/js/Core/Media/VMM.ExternalAPI.js

@ -1435,9 +1435,9 @@ if(typeof VMM != 'undefined' && typeof VMM.ExternalAPI == 'undefined') {
width: '640', width: '640',
playerVars: { playerVars: {
enablejsapi: 1, enablejsapi: 1,
color: 'white', color: ("dark" == VMM.master_config.Timeline.youtubeTheme) ? "black" : "white",
showinfo: 0, showinfo: 0,
theme: 'light', theme: ("undefined" !== VMM.master_config.Timeline.youtubeTheme) ? VMM.master_config.Timeline.youtubeTheme : "light",
start: m.start, start: m.start,
rel: 0 rel: 0
}, },

Loading…
Cancel
Save