Difference between revisions of "Tizen Player"
Line 11: | Line 11: | ||
! Property !! Value !! Example !! Tizen Function || Dynamic || Since Version || class="unsortable" | Description | ! Property !! Value !! Example !! Tizen Function || Dynamic || Since Version || class="unsortable" | Description | ||
|- | |- | ||
− | | <code>tizen:buffer:size</code> || <code>{SECONDS}</code> || <code>"tizen:buffer:size":"10"</code> || <code>setBufferingParam("PLAYER_BUFFER_FOR_PLAY", "PLAYER_BUFFER_SIZE_IN_SECOND", {SECONDS});</code><br/><code>setBufferingParam("PLAYER_BUFFER_FOR_RESUME", "PLAYER_BUFFER_SIZE_IN_SECOND", {SECONDS});</code> || No || data-sort-value=128|'''0.1.128''' | + | | <code>tizen:buffer:size</code> || <code>{SECONDS}</code> || <code>"tizen:buffer:size": "10"</code> || <code>setBufferingParam("PLAYER_BUFFER_FOR_PLAY", "PLAYER_BUFFER_SIZE_IN_SECOND", {SECONDS});</code><br/><code>setBufferingParam("PLAYER_BUFFER_FOR_RESUME", "PLAYER_BUFFER_SIZE_IN_SECOND", {SECONDS});</code> || No || data-sort-value=128|'''0.1.128''' |
| Sets up the size of the initial and resume buffer in seconds. Please see <code>AVPlay</code> API for possible values. | | Sets up the size of the initial and resume buffer in seconds. Please see <code>AVPlay</code> API for possible values. | ||
|- | |- | ||
− | | <code>tizen:buffer:size:init</code> || <code>{SECONDS}</code> || <code>"tizen:buffer:size:init":"10"</code> || <code>setBufferingParam("PLAYER_BUFFER_FOR_PLAY", "PLAYER_BUFFER_SIZE_IN_SECOND", {SECONDS});</code> || No || data-sort-value=128|'''0.1.128''' | + | | <code>tizen:buffer:size:init</code> || <code>{SECONDS}</code> || <code>"tizen:buffer:size:init": "10"</code> || <code>setBufferingParam("PLAYER_BUFFER_FOR_PLAY", "PLAYER_BUFFER_SIZE_IN_SECOND", {SECONDS});</code> || No || data-sort-value=128|'''0.1.128''' |
| Sets up the size of the initial buffer in seconds. Please see <code>AVPlay</code> API for possible values. | | Sets up the size of the initial buffer in seconds. Please see <code>AVPlay</code> API for possible values. | ||
|- | |- | ||
− | | <code>tizen:buffer:size:resume</code> || <code>{SECONDS}</code> || <code>"tizen:buffer:size:resume":"10"</code> || <code>setBufferingParam("PLAYER_BUFFER_FOR_RESUME", "PLAYER_BUFFER_SIZE_IN_SECOND", {SECONDS});</code> || No || data-sort-value=128|'''0.1.128''' | + | | <code>tizen:buffer:size:resume</code> || <code>{SECONDS}</code> || <code>"tizen:buffer:size:resume": "10"</code> || <code>setBufferingParam("PLAYER_BUFFER_FOR_RESUME", "PLAYER_BUFFER_SIZE_IN_SECOND", {SECONDS});</code> || No || data-sort-value=128|'''0.1.128''' |
| Sets up the size of the resume buffer in seconds. Please see <code>AVPlay</code> API for possible values. | | Sets up the size of the resume buffer in seconds. Please see <code>AVPlay</code> API for possible values. | ||
|- | |- | ||
− | | <code>tizen:buffer:timeout</code> || <code>{SECONDS}</code> || <code>"tizen:buffer:timeout":"20"</code> || <code>setTimeoutForBuffering({SECONDS});</code> || '''Yes''' || data-sort-value=128|'''0.1.128''' | + | | <code>tizen:buffer:timeout</code> || <code>{SECONDS}</code> || <code>"tizen:buffer:timeout": "20"</code> || <code>setTimeoutForBuffering({SECONDS});</code> || '''Yes''' || data-sort-value=128|'''0.1.128''' |
| Sets up the timeout of the buffer in seconds. Please see <code>AVPlay</code> API for possible values. | | Sets up the timeout of the buffer in seconds. Please see <code>AVPlay</code> API for possible values. | ||
|- | |- | ||
− | | <code>tizen:custom:duration</code> || <code>{SECONDS}</code> || <code>"tizen:custom:duration":"60"</code> || n/a || '''Yes''' || data-sort-value=128|'''0.1.128''' | + | | <code>tizen:custom:duration</code> || <code>{SECONDS}</code> || <code>"tizen:custom:duration": "60"</code> || n/a || '''Yes''' || data-sort-value=128|'''0.1.128''' |
| Sets up a custom duration in seconds. If a custom duration is set, only that duration is displayed during playback. It can be used for live data to disable the progress feature. | | Sets up a custom duration in seconds. If a custom duration is set, only that duration is displayed during playback. It can be used for live data to disable the progress feature. | ||
|- | |- | ||
− | | <code>tizen:custom:position</code> || <code>{SECONDS}</code> || <code>"tizen:custom:position":"0"</code> || n/a || '''Yes''' || data-sort-value=128|'''0.1.128''' | + | | <code>tizen:custom:position</code> || <code>{SECONDS}</code> || <code>"tizen:custom:position": "0"</code> || n/a || '''Yes''' || data-sort-value=128|'''0.1.128''' |
| Sets up a custom position in seconds. If a custom position is set, only that position is displayed during playback and it is not possible to seek to another position (instead a <code>custom:tizen:seek</code> event is triggered). It can be used for live data to disable the seek feature. | | Sets up a custom position in seconds. If a custom position is set, only that position is displayed during playback and it is not possible to seek to another position (instead a <code>custom:tizen:seek</code> event is triggered). It can be used for live data to disable the seek feature. | ||
|- | |- | ||
− | | <code>tizen:custom:state</code> || <code>{VIDEO_STATE}</code> || <code>"tizen:custom:position":"1"</code> || n/a || '''Yes''' || data-sort-value=128|'''0.1.128''' | + | | <code>tizen:custom:state</code> || <code>{VIDEO_STATE}</code> || <code>"tizen:custom:position": "1"</code> || n/a || '''Yes''' || data-sort-value=128|'''0.1.128''' |
| Sets up a custom state. If a state is set, only that state is displayed during playback and it is not possible to change it (instead a <code>custom:tizen:play</code> or <code>custom:tizen:pause</code> event is triggered). It can be used for live data to disable the pause feature. | | Sets up a custom state. If a state is set, only that state is displayed during playback and it is not possible to change it (instead a <code>custom:tizen:play</code> or <code>custom:tizen:pause</code> event is triggered). It can be used for live data to disable the pause feature. | ||
|- | |- | ||
− | | <code>tizen:display:area</code> || <code>{REL_X},{REL_Y},{REL_W},{REL_H}</code> || <code>"tizen:display:area":"0,0,1,1"</code><br/><code>"tizen:display:area":"0.125,0,0.75,1"</code><br/><code>"tizen:display:area":"0,0.119,1,0.762"</code> || <code>setDisplayRect({ABS_X}, {ABS_Y}, {ABS_W}, {ABS_H});</code> || '''Yes''' || data-sort-value=128|'''0.1.128''' | + | | <code>tizen:display:area</code> || <code>{REL_X},{REL_Y},{REL_W},{REL_H}</code> || <code>"tizen:display:area": "0,0,1,1"</code><br/><code>"tizen:display:area":"0.125,0,0.75,1"</code><br/><code>"tizen:display:area":"0,0.119,1,0.762"</code> || <code>setDisplayRect({ABS_X}, {ABS_Y}, {ABS_W}, {ABS_H});</code> || '''Yes''' || data-sort-value=128|'''0.1.128''' |
| Todo | | Todo | ||
|- | |- | ||
− | | <code>tizen:display:mode</code> || <code>{DISPLAY_MODE}</code> || <code>"tizen:display:mode":"PLAYER_DISPLAY_MODE_LETTER_BOX"</code><br/><code>"tizen:display:mode":"PLAYER_DISPLAY_MODE_FULL_SCREEN"</code><br/><code>"tizen:display:mode":"PLAYER_DISPLAY_MODE_AUTO_ASPECT_RATIO"</code> || <code>setDisplayMethod({DISPLAY_MODE});</code> || '''Yes''' || data-sort-value=128|'''0.1.128''' | + | | <code>tizen:display:mode</code> || <code>{DISPLAY_MODE}</code> || <code>"tizen:display:mode": "PLAYER_DISPLAY_MODE_LETTER_BOX"</code><br/><code>"tizen:display:mode": "PLAYER_DISPLAY_MODE_FULL_SCREEN"</code><br/><code>"tizen:display:mode":"PLAYER_DISPLAY_MODE_AUTO_ASPECT_RATIO"</code> || <code>setDisplayMethod({DISPLAY_MODE});</code> || '''Yes''' || data-sort-value=128|'''0.1.128''' |
| Todo | | Todo | ||
|- | |- | ||
− | | <code>tizen:ready</code> || <code>{ACTION}</code> || <code>"tizen:ready":"info:Tizen player ready."</code> || n/a || '''Yes''' || data-sort-value=128|'''0.1.128''' | + | | <code>tizen:ready</code> || <code>{ACTION}</code> || <code>"tizen:ready": "info:Tizen player ready."</code> || n/a || '''Yes''' || data-sort-value=128|'''0.1.128''' |
| Todo | | Todo | ||
|- | |- | ||
− | | <code>tizen:start</code> || <code>{ACTION}</code> || <code>"tizen:start":"info:Tizen player started."</code> || n/a || '''Yes''' || data-sort-value=128|'''0.1.128''' | + | | <code>tizen:start</code> || <code>{ACTION}</code> || <code>"tizen:start": "info:Tizen player started."</code> || n/a || '''Yes''' || data-sort-value=128|'''0.1.128''' |
| Todo | | Todo | ||
|- | |- | ||
− | | <code>tizen:stream:{STREAM_TYPE}</code> || <code>{STREAM_VALUE}</code> || <code>"tizen:stream:PREBUFFER_MODE":"5000"</code><br/><code>"tizen:stream:ADAPTIVE_INFO":"FIXED_MAX_RESOLUTION=7680X4320"</code><br/><code>"tizen:stream:ADAPTIVE_INFO":"BITRATES=5000~10000{{pipe}}STARTBITRATE=HIGHEST{{pipe}}SKIPBITRATE=LOWEST"</code> || <code>setStreamingProperty({STREAM_TYPE}, {STREAM_VALUE});</code> || No || data-sort-value=128|'''0.1.128''' | + | | <code>tizen:stream:{STREAM_TYPE}</code> || <code>{STREAM_VALUE}</code> || <code>"tizen:stream:PREBUFFER_MODE": "5000"</code><br/><code>"tizen:stream:ADAPTIVE_INFO": "FIXED_MAX_RESOLUTION=7680X4320"</code><br/><code>"tizen:stream:ADAPTIVE_INFO": "BITRATES=5000~10000{{pipe}}STARTBITRATE=HIGHEST{{pipe}}SKIPBITRATE=LOWEST"</code> || <code>setStreamingProperty({STREAM_TYPE}, {STREAM_VALUE});</code> || No || data-sort-value=128|'''0.1.128''' |
| Todo | | Todo | ||
|- | |- | ||
− | | <code>tizen:track:audio</code> || <code>{TRACK_INDEX}</code> || <code>"tizen:track:audio":"1"</code> || <code>setSelectTrack("AUDIO", {TRACK_INDEX});</code> || '''Yes''' || data-sort-value=128|'''0.1.128''' | + | | <code>tizen:track:audio</code> || <code>{TRACK_INDEX}</code> || <code>"tizen:track:audio": "1"</code> || <code>setSelectTrack("AUDIO", {TRACK_INDEX});</code> || '''Yes''' || data-sort-value=128|'''0.1.128''' |
| Todo | | Todo | ||
|- | |- | ||
− | | <code>tizen:track:text</code> || <code>{TRACK_INDEX}</code> || <code>"tizen:track:text":"1"</code> || <code>setSelectTrack("TEXT", {TRACK_INDEX});</code> || '''Yes''' || data-sort-value=128|'''0.1.128''' | + | | <code>tizen:track:text</code> || <code>{TRACK_INDEX}</code> || <code>"tizen:track:text": "1"</code> || <code>setSelectTrack("TEXT", {TRACK_INDEX});</code> || '''Yes''' || data-sort-value=128|'''0.1.128''' |
| Todo | | Todo | ||
|} | |} |
Revision as of 16:29, 10 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 a 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. Please see Internal Actions for more information. Some extended properties are dynamic and can be changed via an action at runtime.
Some extended properties are mapped to a corresponding Tizen (i.e. AVPlay
) function. For more information, please visit: https://developer.samsung.com/smarttv/develop/api-references/samsung-product-api-references/avplay-api.html
Note: The set properties are reset if a new video/audio is played.
Syntax[edit]
Property | Value | Example | Tizen Function | Dynamic | Since Version | Description |
---|---|---|---|---|---|---|
tizen:buffer:size |
{SECONDS} |
"tizen:buffer:size": "10" |
setBufferingParam("PLAYER_BUFFER_FOR_PLAY", "PLAYER_BUFFER_SIZE_IN_SECOND", {SECONDS}); setBufferingParam("PLAYER_BUFFER_FOR_RESUME", "PLAYER_BUFFER_SIZE_IN_SECOND", {SECONDS}); |
No | 0.1.128 | Sets up the size of the initial and resume buffer in seconds. Please see AVPlay API for possible values.
|
tizen:buffer:size:init |
{SECONDS} |
"tizen:buffer:size:init": "10" |
setBufferingParam("PLAYER_BUFFER_FOR_PLAY", "PLAYER_BUFFER_SIZE_IN_SECOND", {SECONDS}); |
No | 0.1.128 | Sets up the size of the initial buffer in seconds. Please see AVPlay API for possible values.
|
tizen:buffer:size:resume |
{SECONDS} |
"tizen:buffer:size:resume": "10" |
setBufferingParam("PLAYER_BUFFER_FOR_RESUME", "PLAYER_BUFFER_SIZE_IN_SECOND", {SECONDS}); |
No | 0.1.128 | Sets up the size of the resume buffer in seconds. Please see AVPlay API for possible values.
|
tizen:buffer:timeout |
{SECONDS} |
"tizen:buffer:timeout": "20" |
setTimeoutForBuffering({SECONDS}); |
Yes | 0.1.128 | Sets up the timeout of the buffer in seconds. Please see AVPlay API for possible values.
|
tizen:custom:duration |
{SECONDS} |
"tizen:custom:duration": "60" |
n/a | Yes | 0.1.128 | Sets up a custom duration in seconds. If a custom duration is set, only that duration is displayed during playback. It can be used for live data to disable the progress feature. |
tizen:custom:position |
{SECONDS} |
"tizen:custom:position": "0" |
n/a | Yes | 0.1.128 | Sets up a custom position in seconds. If a custom position is set, only that position is displayed during playback and it is not possible to seek to another position (instead a custom:tizen:seek event is triggered). It can be used for live data to disable the seek feature.
|
tizen:custom:state |
{VIDEO_STATE} |
"tizen:custom:position": "1" |
n/a | Yes | 0.1.128 | Sets up a custom state. If a state is set, only that state is displayed during playback and it is not possible to change it (instead a custom:tizen:play or custom:tizen:pause event is triggered). It can be used for live data to disable the pause feature.
|
tizen:display:area |
{REL_X},{REL_Y},{REL_W},{REL_H} |
"tizen:display:area": "0,0,1,1" "tizen:display:area":"0.125,0,0.75,1" "tizen:display:area":"0,0.119,1,0.762" |
setDisplayRect({ABS_X}, {ABS_Y}, {ABS_W}, {ABS_H}); |
Yes | 0.1.128 | Todo |
tizen:display:mode |
{DISPLAY_MODE} |
"tizen:display:mode": "PLAYER_DISPLAY_MODE_LETTER_BOX" "tizen:display:mode": "PLAYER_DISPLAY_MODE_FULL_SCREEN" "tizen:display:mode":"PLAYER_DISPLAY_MODE_AUTO_ASPECT_RATIO" |
setDisplayMethod({DISPLAY_MODE}); |
Yes | 0.1.128 | Todo |
tizen:ready |
{ACTION} |
"tizen:ready": "info:Tizen player ready." |
n/a | Yes | 0.1.128 | Todo |
tizen:start |
{ACTION} |
"tizen:start": "info:Tizen player started." |
n/a | Yes | 0.1.128 | Todo |
tizen:stream:{STREAM_TYPE} |
{STREAM_VALUE} |
"tizen:stream:PREBUFFER_MODE": "5000" "tizen:stream:ADAPTIVE_INFO": "FIXED_MAX_RESOLUTION=7680X4320" "tizen:stream:ADAPTIVE_INFO": "BITRATES=5000~10000|STARTBITRATE=HIGHEST|SKIPBITRATE=LOWEST" |
setStreamingProperty({STREAM_TYPE}, {STREAM_VALUE}); |
No | 0.1.128 | Todo |
tizen:track:audio |
{TRACK_INDEX} |
"tizen:track:audio": "1" |
setSelectTrack("AUDIO", {TRACK_INDEX}); |
Yes | 0.1.128 | Todo |
tizen:track:text |
{TRACK_INDEX} |
"tizen:track:text": "1" |
setSelectTrack("TEXT", {TRACK_INDEX}); |
Yes | 0.1.128 | Todo |