Difference between revisions of "Tizen Player"
(Created page with "The Tizen player is the default player for Samsung TVs (2016+ models) that uses the Media Station X version '''0.1.128''' or higher. It works like plugin and can be configured...") |
|||
Line 1: | Line 1: | ||
The Tizen player is the default player for Samsung TVs (2016+ models) that uses the Media Station X version '''0.1.128''' or higher. | The Tizen player is the default player for Samsung TVs (2016+ models) that uses the Media Station X version '''0.1.128''' or higher. | ||
It works like plugin and can be configured via the extended properties of a content item. Please see [[Extended Properties]] for more information. | It works like plugin and can be configured via the extended properties of a content item. Please see [[Extended Properties]] for more information. | ||
+ | Additionally, you can interact with it using the <code>player:commit</code> actions. | ||
+ | |||
+ | == Syntax == | ||
+ | {| class="wikitable sortable" | ||
+ | |+ Property syntax of extended properties for HTML5X plugin | ||
+ | |- | ||
+ | ! Property !! Value !! Example !! class="unsortable" | Description | ||
+ | |- | ||
+ | | <code>html5x:audiotrack</code> || <code>{LANGUAGE}</code> || | ||
+ | <code>"html5x:audiotrack":"en"</code><br/> | ||
+ | <code>"html5x:audiotrack":"de"</code><br/> | ||
+ | <code>"html5x:audiotrack":"es"</code><br/> | ||
+ | <code>"html5x:audiotrack":"fr"</code><br/> | ||
+ | <code>"html5x:audiotrack":"it"</code><br/> | ||
+ | <code>"html5x:audiotrack":"nl"</code><br/> | ||
+ | <code>"html5x:audiotrack":"pl"</code><br/> | ||
+ | <code>"html5x:audiotrack":"pt"</code><br/> | ||
+ | <code>"html5x:audiotrack":"ru"</code><br/> | ||
+ | <code>"html5x:audiotrack":"default"</code><br/> | ||
+ | || | ||
+ | Preselects an audio track. If this property is not set, the last selected audio track is used. If the audio track does not exist or is set to <code>"default"</code>, the first audio track is used. | ||
+ | |- | ||
+ | | <code>html5x:content</code> || <code>{BOOLEAN_VALUE}</code> || | ||
+ | <code>"html5x:content":"true"</code><br/> | ||
+ | <code>"html5x:content":"false"</code><br/> | ||
+ | || | ||
+ | Adds/Removes the related content button (i.e. the button with the action <code>player:content</code>). By default, the related content button is removed. | ||
+ | |- | ||
+ | | <code>html5x:cors</code> || <code>{BOOLEAN_VALUE}</code> || | ||
+ | <code>"html5x:cors":"true"</code><br/> | ||
+ | <code>"html5x:cors":"false"</code><br/> | ||
+ | || | ||
+ | Enables/Disables CORS support. By default, CORS support is enabled. If CORS support is enabled, the video URL and subtitle track URLs must contain the CORS headers. If CORS support is disabled, an online proxy is used for the subtitle track URLs, which means that these URLs must be publicly available. | ||
+ | |- | ||
+ | | <code>html5x:subtitle</code> || <code>{LANGUAGE}</code> || | ||
+ | <code>"html5x:subtitle":"en"</code><br/> | ||
+ | <code>"html5x:subtitle":"de"</code><br/> | ||
+ | <code>"html5x:subtitle":"es"</code><br/> | ||
+ | <code>"html5x:subtitle":"fr"</code><br/> | ||
+ | <code>"html5x:subtitle":"it"</code><br/> | ||
+ | <code>"html5x:subtitle":"nl"</code><br/> | ||
+ | <code>"html5x:subtitle":"pl"</code><br/> | ||
+ | <code>"html5x:subtitle":"pt"</code><br/> | ||
+ | <code>"html5x:subtitle":"ru"</code><br/> | ||
+ | <code>"html5x:subtitle":"default"</code><br/> | ||
+ | || | ||
+ | Preselects a subtitle track. If this property is not set, the last selected subtitle track is used. If the subtitle track does not exist or is set to <code>"default"</code>, the subtitles are initially switched off. | ||
+ | |- | ||
+ | | <code>html5x:subtitle:{LANGUAGE}:{LABEL}</code> || <code>{URL}</code>{{pipe}}<code>{ID}</code> || | ||
+ | <code>"html5x:subtitle:en:English":"http://msx.benzac.de/media/sintel/en.vtt"</code><br/> | ||
+ | <code>"html5x:subtitle:de:Deutsch":"http://msx.benzac.de/media/sintel/de.vtt"</code><br/> | ||
+ | <code>"html5x:subtitle:es:Español":"http://msx.benzac.de/media/sintel/es.vtt"</code><br/> | ||
+ | <code>"html5x:subtitle:fr:Français":"http://msx.benzac.de/media/sintel/fr.vtt"</code><br/> | ||
+ | <code>"html5x:subtitle:it:Italiano":"http://msx.benzac.de/media/sintel/it.vtt"</code><br/> | ||
+ | <code>"html5x:subtitle:nl:Nederlands":"http://msx.benzac.de/media/sintel/nl.vtt"</code><br/> | ||
+ | <code>"html5x:subtitle:pl:Język polski":"http://msx.benzac.de/media/sintel/pl.vtt"</code><br/> | ||
+ | <code>"html5x:subtitle:pt:Português":"http://msx.benzac.de/media/sintel/pt.vtt"</code><br/> | ||
+ | <code>"html5x:subtitle:ru:Pусский":"http://msx.benzac.de/media/sintel/ru.vtt"</code><br/> | ||
+ | || | ||
+ | Sets up a subtitle track. If the value is not an HTTP/HTTPS URL, the interaction plugin is used to request the corresponding URL. | ||
+ | |- | ||
+ | | <code>html5x:subtitle:order</code> || <code>{ORDER}</code> || | ||
+ | <code>"html5x:subtitle:order":"label"</code><br/> | ||
+ | <code>"html5x:subtitle:order":"language"</code><br/> | ||
+ | || | ||
+ | Orders the subtitle tracks by label or language. If this property is not set, the order remains as it appears in the extended properties. | ||
+ | |} | ||
+ | |||
+ | == Example == | ||
+ | === Screenshot === | ||
+ | [[File:html5x_plugin.png|thumb|640px|none|Example Screenshot (HTML5X Plugin)]] | ||
+ | |||
+ | === Code === | ||
+ | <syntaxhighlight lang="json"> | ||
+ | { | ||
+ | "type": "pages", | ||
+ | "headline": "HTML5X Plugin Test", | ||
+ | "template": { | ||
+ | "type": "separate", | ||
+ | "layout": "0,0,2,4", | ||
+ | "icon": "msx-white-soft:extension", | ||
+ | "color": "msx-glass", | ||
+ | "playerLabel": "Sintel © copyright Blender Foundation | durian.blender.org", | ||
+ | "action": "video:plugin:http://msx.benzac.de/plugins/html5x.html?url=http://msx.benzac.de/media/sintel/sintel.mp4", | ||
+ | "properties": { | ||
+ | "resume:position": "102", | ||
+ | "button:content:icon": "{context:contentIcon}", | ||
+ | "button:content:action": "{context:contentAction}", | ||
+ | "html5x:subtitle:en:English": "http://msx.benzac.de/media/sintel/en.vtt", | ||
+ | "html5x:subtitle:de:Deutsch": "http://msx.benzac.de/media/sintel/de.vtt", | ||
+ | "html5x:subtitle:es:Español": "http://msx.benzac.de/media/sintel/es.vtt", | ||
+ | "html5x:subtitle:fr:Français": "http://msx.benzac.de/media/sintel/fr.vtt", | ||
+ | "html5x:subtitle:it:Italiano": "http://msx.benzac.de/media/sintel/it.vtt", | ||
+ | "html5x:subtitle:nl:Nederlands": "http://msx.benzac.de/media/sintel/nl.vtt", | ||
+ | "html5x:subtitle:pl:Język polski": "http://msx.benzac.de/media/sintel/pl.vtt", | ||
+ | "html5x:subtitle:pt:Português": "http://msx.benzac.de/media/sintel/pt.vtt", | ||
+ | "html5x:subtitle:ru:Pусский": "http://msx.benzac.de/media/sintel/ru.vtt" | ||
+ | } | ||
+ | }, | ||
+ | "items": [{ | ||
+ | "title": "Sintel 1", | ||
+ | "titleFooter": "Audio & Subtitles", | ||
+ | "contentIcon": "settings", | ||
+ | "contentAction": "panel:request:player:options" | ||
+ | }, { | ||
+ | "title": "Sintel 2", | ||
+ | "titleFooter": "Audio only", | ||
+ | "contentIcon": "audiotrack", | ||
+ | "contentAction": "panel:request:player:audiotrack" | ||
+ | }, { | ||
+ | "title": "Sintel 3", | ||
+ | "titleFooter": "Subtitles only", | ||
+ | "contentIcon": "subtitles", | ||
+ | "contentAction": "panel:request:player:subtitle" | ||
+ | }] | ||
+ | } | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | === Demo === | ||
+ | * Launch via App: http://msx.benzac.de/?start=content:http://msx.benzac.de/info/xp/data/plugin_test_4.json | ||
+ | * Launch via Demo Page: http://msx.benzac.de/info/?start=content:http://msx.benzac.de/info/xp/data/plugin_test_4.json | ||
+ | |||
+ | '''Note: These demo links are opened in an insecure context (i.e. via <code>http://</code>) to avoid mixed content issues.''' | ||
+ | |||
+ | == See also == | ||
+ | * [[Video/Audio Plugin]] | ||
+ | * [[Interaction Plugin]] | ||
+ | * [[Image Plugin]] | ||
+ | * [[Plugin API Reference]] |
Revision as of 14:49, 9 February 2021
The Tizen player is the default player for Samsung TVs (2016+ models) that uses the Media Station X version 0.1.128 or higher.
It works like plugin and can be configured via the extended properties of a content item. Please see Extended Properties for more information.
Additionally, you can interact with it using the player:commit
actions.
Syntax[edit]
Property | Value | Example | Description |
---|---|---|---|
html5x:audiotrack |
{LANGUAGE} |
|
Preselects an audio track. If this property is not set, the last selected audio track is used. If the audio track does not exist or is set to |
html5x:content |
{BOOLEAN_VALUE} |
|
Adds/Removes the related content button (i.e. the button with the action |
html5x:cors |
{BOOLEAN_VALUE} |
|
Enables/Disables CORS support. By default, CORS support is enabled. If CORS support is enabled, the video URL and subtitle track URLs must contain the CORS headers. If CORS support is disabled, an online proxy is used for the subtitle track URLs, which means that these URLs must be publicly available. |
html5x:subtitle |
{LANGUAGE} |
|
Preselects a subtitle track. If this property is not set, the last selected subtitle track is used. If the subtitle track does not exist or is set to |
html5x:subtitle:{LANGUAGE}:{LABEL} |
{URL} |{ID} |
|
Sets up a subtitle track. If the value is not an HTTP/HTTPS URL, the interaction plugin is used to request the corresponding URL. |
html5x:subtitle:order |
{ORDER} |
|
Orders the subtitle tracks by label or language. If this property is not set, the order remains as it appears in the extended properties. |
Example[edit]
Screenshot[edit]
Code[edit]
{
"type": "pages",
"headline": "HTML5X Plugin Test",
"template": {
"type": "separate",
"layout": "0,0,2,4",
"icon": "msx-white-soft:extension",
"color": "msx-glass",
"playerLabel": "Sintel © copyright Blender Foundation | durian.blender.org",
"action": "video:plugin:http://msx.benzac.de/plugins/html5x.html?url=http://msx.benzac.de/media/sintel/sintel.mp4",
"properties": {
"resume:position": "102",
"button:content:icon": "{context:contentIcon}",
"button:content:action": "{context:contentAction}",
"html5x:subtitle:en:English": "http://msx.benzac.de/media/sintel/en.vtt",
"html5x:subtitle:de:Deutsch": "http://msx.benzac.de/media/sintel/de.vtt",
"html5x:subtitle:es:Español": "http://msx.benzac.de/media/sintel/es.vtt",
"html5x:subtitle:fr:Français": "http://msx.benzac.de/media/sintel/fr.vtt",
"html5x:subtitle:it:Italiano": "http://msx.benzac.de/media/sintel/it.vtt",
"html5x:subtitle:nl:Nederlands": "http://msx.benzac.de/media/sintel/nl.vtt",
"html5x:subtitle:pl:Język polski": "http://msx.benzac.de/media/sintel/pl.vtt",
"html5x:subtitle:pt:Português": "http://msx.benzac.de/media/sintel/pt.vtt",
"html5x:subtitle:ru:Pусский": "http://msx.benzac.de/media/sintel/ru.vtt"
}
},
"items": [{
"title": "Sintel 1",
"titleFooter": "Audio & Subtitles",
"contentIcon": "settings",
"contentAction": "panel:request:player:options"
}, {
"title": "Sintel 2",
"titleFooter": "Audio only",
"contentIcon": "audiotrack",
"contentAction": "panel:request:player:audiotrack"
}, {
"title": "Sintel 3",
"titleFooter": "Subtitles only",
"contentIcon": "subtitles",
"contentAction": "panel:request:player:subtitle"
}]
}
Demo[edit]
- Launch via App: http://msx.benzac.de/?start=content:http://msx.benzac.de/info/xp/data/plugin_test_4.json
- Launch via Demo Page: http://msx.benzac.de/info/?start=content:http://msx.benzac.de/info/xp/data/plugin_test_4.json
Note: These demo links are opened in an insecure context (i.e. via http://
) to avoid mixed content issues.