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. 12
      source/js/Core/Media/VMM.ExternalAPI.js

12
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: {

Loading…
Cancel
Save