Class MediaController
Definition
- Namespace:
- Tizen.Multimedia.Remoting
- Assembly:
- Tizen.Multimedia.Remoting.dll
Provides a means to to send commands to and handle events from media control server.
public class MediaController
- Inheritance
-
objectMedia
Controller
Properties
View SourceIsStopped
Gets a value indicating whether the sever has been stopped.
Declaration
public bool IsStopped { get; }
Property Value
Type | Description |
---|---|
bool | true if the server has been stopped; otherwise, false. |
ServerAppId
Gets the application id of the server.
Declaration
public string ServerAppId { get; }
Property Value
Type | Description |
---|---|
string | The server application id. |
Methods
View SourceGetMetadata()
Returns the metadata set by the server.
Declaration
public MediaControlMetadata GetMetadata()
Returns
Type | Description |
---|---|
Media |
The metadata. |
Exceptions
Type | Condition |
---|---|
System. |
The server has already been stopped. |
System. |
The Media |
See Also
View SourceGetPlaybackPosition()
Returns the playback position set by the server.
Declaration
public long GetPlaybackPosition()
Returns
Type | Description |
---|---|
long | The playback position in milliseconds. |
Exceptions
Type | Condition |
---|---|
System. |
The server has already been stopped. |
System. |
The Media |
See Also
View SourceGetPlaybackState()
Returns the playback state set by the server.
Declaration
public MediaControlPlaybackState GetPlaybackState()
Returns
Type | Description |
---|---|
Media |
The playback state. |
Exceptions
Type | Condition |
---|---|
System. |
The server has already been stopped. |
System. |
The Media |
See Also
View SourceGetRepeatMode()
Returns the repeat mode.
Declaration
public MediaControlRepeatMode GetRepeatMode()
Returns
Type | Description |
---|---|
Media |
A Media |
Exceptions
Type | Condition |
---|---|
System. |
The server has already been stopped. |
System. |
The Media |
See Also
View SourceIsShuffleModeEnabled()
Returns whether the shuffle mode is enabled.
Declaration
public bool IsShuffleModeEnabled()
Returns
Type | Description |
---|---|
bool | A value indicating whether the shuffle mode is enabled. |
Exceptions
Type | Condition |
---|---|
System. |
The server has already been stopped. |
System. |
The Media |
See Also
View SourceSendPlaybackCommand(MediaControlPlaybackCommand)
Sends playback command to the server.
Declaration
public void SendPlaybackCommand(MediaControlPlaybackCommand command)
Parameters
Type | Name | Description |
---|---|---|
Media |
command | A playback command. |
Exceptions
Type | Condition |
---|---|
System. |
The server has already been stopped. |
System. |
|
System. |
The Media |
See Also
Events
View SourceMetadataUpdated
Occurs when the metadata is updated.
Declaration
public event EventHandler<MetadataUpdatedEventArgs> MetadataUpdated
Event Type
Type | Description |
---|---|
System. |
PlaybackStateUpdated
Occurs when the playback state is updated.
Declaration
public event EventHandler<PlaybackStateUpdatedEventArgs> PlaybackStateUpdated
Event Type
Type | Description |
---|---|
System. |
RepeatModeUpdated
Occurs when the repeat mode is updated.
Declaration
public event EventHandler<RepeatModeUpdatedEventArgs> RepeatModeUpdated
Event Type
Type | Description |
---|---|
System. |
ServerStopped
Occurs when the server is stopped.
Declaration
public event EventHandler ServerStopped
Event Type
Type | Description |
---|---|
System. |
ShuffleModeUpdated
Occurs when the shuffle mode is updated.
Declaration
public event EventHandler<ShuffleModeUpdatedEventArgs> ShuffleModeUpdated
Event Type
Type | Description |
---|---|
System. |