top

'Tizen::TV::Multimedia::Player' class Reference
extends Player

Properties

DualMono DualMono
Sets audio information about dualmono. More...
VR360 VR360
VR360 settings. More...
AdaptiveStreamInfo AdaptiveStreamInfo
Adaptive streaming source information More...
int ExternalSubtitleIndex
Sets the subtile path and subtitle file type More...
EventHandler< AudioSpectrumEventArgs > AudioSpectrum
Provides the spectrum analysis results. More...

Public Attributes

PlayerStreamControl StreamControl
Audio or Video stream control More...

Protected Functions

override void OnPreparing ( )
Override the OnPreparing() . Register player callbacks More...

Public Functions

Player ( )
Initialize a new instance of the Player class. More...
new void SetSource ( MediaSource source )
Sets a media source for the player. More...
void StepPlay ( )
Step by step Playback More...
new long GetPlayPosition ( )
Gets the play position in milliseconds. More...
void SetApplicationId ( string applicationId )
configured the current app's unique app_id More...
async Task SetPlayPositionAsync ( long position, bool accurate )
Sets the seek position for playback, asynchronously. More...

Properties

PlayerPreloadMode PreloadMode

   Setting of Preload

Remarks

   The player must be in the PlayerState.Idle state.

Exceptions

InvalidOperationException
   The player is not in the valid state.
ObjectDisposedException
   The player already has been disposed of.

See

PlayerState.Idle

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0

DualMono DualMono

   Sets audio information about dualmono.

Remarks

   The player must be in the PlayerState.Idle state to set the EventHandler DualMono.Detected.

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0

new PlayerDisplaySettings DisplaySettings

   Gets the display settings.

Remarks

   A PlayerDisplaySettings that specifies the display settings.

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0

VR360 VR360

   VR360 settings.

Remarks

   A VR360 that specifies the VR360 settings.
   Sets null VR360 mode is off, or not mode is on.

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0

AdaptiveStreamInfo AdaptiveStreamInfo

   Adaptive streaming source information

Exceptions

InvalidOperationException
   The player is not set the MediaUriSource or the source is not adaptive streaming source

See

SetSource

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0

int ExternalSubtitleIndex

   Sets the subtile path and subtitle file type

Exceptions

ObjectDisposedException
   The player has already been disposed of.

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0

PlayerSubtitleEncodingType SubtiltleEncoding

   Sets the subtile encoding.

Exceptions

ObjectDisposedException
   The player has already been disposed of.

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0

EventHandler< AudioSpectrumEventArgs > AudioSpectrum

   Provides the spectrum analysis results.

Exceptions

InvalidOperationException
   The player is not in the valid state.

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0

Public Attributes

PlayerStreamControl StreamControl

   Audio or Video stream control

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0

Protected Functions

override void OnPreparing()

   Override the OnPreparing() . Register player callbacks

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0

Public Functions

Player()

   Initialize a new instance of the Player class.

Exceptions

MethodAccessException
   The player is allowd only for platform level signed applications now.

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0

new void SetSource(MediaSource source)

   Sets a media source for the player.

Parameters

source
   A MediaSource that specifies the source for playback.

Remarks

   The player must be in the PlayerState.Idle state.

Exceptions

ObjectDisposedException
   The player has already been disposed of.
InvalidOperationException
   The player is not in the valid state.
-or-

It is not able to assign the source to the player.

See

Tizen.Multimedia.Player.PrepareAsync

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0

void StepPlay()

   Step by step Playback

Remarks

   The player must be in the PlayerState.Paused state.

Exceptions

InvalidOperationException
   The player is not in the valid state.
ObjectDisposedException
   The player already has been disposed of.

See

PlayerState.Paused

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0

double GetPlaybackRate()

   Gets playback rate

Exceptions

ObjectDisposedException
   The player already has been disposed of.

Returns

The current Playback rate

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0

new long GetPlayPosition()

   Gets the play position in milliseconds.

Returns

Current Playback Position

Remarks

   The player must be in the PlayerState.Ready, PlayerState.Playing, or PlayerState.Paused state.

Exceptions

ObjectDisposedException
   The player has already been disposed of.
InvalidOperationException
   The player is not in the valid state.

See

SetPlayPositionAsync(long, bool)

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0

void SetSubtitle(string path, PlayerSubtitleFileType fileType)

   Sets the subtile path and subtitle file type

Remarks

   Only MicroDVD/SubViewer(*.sub), SAMI(*.smi), and SubRip(*.srt) subtitle formats are supported.
   The mediastorage privilege( http://tizen.org/privilege/mediastorage) must be added if any files are used to play located in the internal storage. The externalstorage privilege( http://tizen.org/privilege/externalstorage) must be added if any files are used to play located in the external storage.

Parameters

path
   Subtitle path
fileType
   PlayerSubtitleFileType

Exceptions

ObjectDisposedException
   The player has already been disposed of.
ArgumentException
   path is an empty string.
FileNotFoundException
   The specified path does not exist.
ArgumentNullException
   The path is null.

Privilege Level

public

Privilege

http://tizen.org/privilege/mediastorage

Version

4.4.0

void SetDrm( DRMManager dmgr)

   Set DRM handle.

Parameters

dmgr
    DRMManager object for DRM Playback
DRMManager dmgr = new DRMManager();
dmgr.init(DRMType.PLAYREADY);
player.SetDrm(dmgr);
player.PrepareAsync();
 

Privilege Level

public

Privilege

http://developer.samsung.com/privilege/drmplay

Version

4.4.0

void SetApplicationId(string applicationId)

   configured the current app's unique app_id

Remarks

   Through this API, caller can configure unique app id. This is mostly usefule in resource management. The player must be in the PlayerState.Idle state.

Parameters

applicationId
   unique application id

Exceptions

InvalidOperationException
   The player is not in the valid state.
ObjectDisposedException
   The player already has been disposed of.

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0

async Task SetPlayPositionAsync(long position, bool accurate)

   Sets the seek position for playback, asynchronously.

Parameters

position
   The value indicating a desired position in milliseconds.
accurate
   The value indicating whether the operation performs with accuracy.

Returns

A task that represents the asynchronous SetPlayPosition operation.

Remarks

   The player must be in the PlayerState.Ready, PlayerState.Playing, or PlayerState.Paused state.
   If the accurate is true, the play position will be adjusted as the specified position value, but this might be considerably slow. If false, the play position will be a nearest keyframe position.

Exceptions

ObjectDisposedException
   The player has already been disposed of.
InvalidOperationException
   The player is not in the valid state.
ArgumentOutOfRangeException
   The specified position is not valid.

See

GetPlayPosition

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0

Events

EventHandler< PluginMissedEventArgs > PluginMissed

   Occurs when there is missed plugin.

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0

new EventHandler< SubtitleExtentionUpdatedEventArgs > SubtitleUpdated

   Occurs when the subtitle is updated.

Remarks

   The event handler will be executed on an internal thread.

Privilege Level

Non-privilege

Privilege

None

Version

4.4.0