DEPRECATION WARNING
This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.
Reference¶
Property | Data type | Description | Default | ||||
---|---|---|---|---|---|---|---|
width | int+ | The width of the embedded video in px. | 560 | ||||
height | int+ | The height if the embedded video in px. To keep the aspect of a video, open the youtube-link of the video, go to “share”->”embed” and select “usedefinde size” for videosize. Entering the width will provide the right height. |
315 | ||||
html5 | boolean | Embed videos as html5(True (1) is recommanded to support as many modern devices as possible) | 1 | ||||
cssFile | file | Path to css file | EXT:jh_simple_youtube/Resources/Public/css/tx_jhsimpleyoutube.css | ||||
defaultPlayerParameters.iv_load_policy | options[0,3] | IV load policy: Setting to 1 will cause video annotations to be shown by default, whereas setting to 3 will cause video annotations to not be shown by default. | 1 | ||||
defaultPlayerParameters.showinfo | options[0,1] | Show info:Values: 0 or 1. The parameter’s default value is 1. If you set the parameter value to 0, then the player will not display information like the video title and uploader before the video starts playing. | 1 | ||||
defaultPlayerParameters.controls | options[0,1,2] | Controls: Values: 0, 1, or 2. Default is 1. This parameter indicates whether the video player controls will display | 1 | ||||
defaultPlayerParameters.modestbranding | options[0,1] | Modest branding: This parameter lets you use a YouTube player that does not show a YouTube logo. Set the parameter value to 1 to prevent the YouTube logo from displaying in the control bar. | 0 | ||||
defaultPlayerParameters.color | options[red,white] | Color: Valid parameter values are red and white. | red | ||||
apiKey | string | Your Google API key used to fetch video resources (see https://developers.google.com/youtube/v3/getting-started for instructions) | |||||
cachelifetimeSeconds |
|
||||||
videoResourceParts |
|
||||||
videoResourceFields |
|
[tsref:plugin.tx_jhsimpleyoutube.settings]
For more information about the defaultPlayerParameters please visit https://developers.google.com/youtube/player_parameters#Parameters
Tip
To use another value than the default one set by Constant Editor, just add the parameter with the new value to the custom parameters of the content element.