Class MediaControlServer
Definition
- Namespace:
- Tizen.Multimedia.Remoting
- Assembly:
- Tizen.Multimedia.Remoting.dll
- API Level:
- 4
Provides a means to set playback information and metadata and receive commands from clients.
C#Copypublic static class MediaControlServer
- Inheritance
-
MediaControlServer
Properties
Declaration
C#Copypublic static bool IsRunning { get; }
Property Value
Type | Description |
---|---|
Boolean | true if the server has started; otherwise, false. |
API Level: 4
Methods
Declaration
C#Copypublic static void SetMetadata(MediaControlMetadata metadata)
Parameters
Type | Name | Description |
---|---|---|
MediaControlMetadata | metadata | The metadata to update. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
System.InvalidOperationException | The server is not running . |
API Level: 4
SetPlaybackState(MediaControlPlaybackState, Int64)
Updates playback state and playback position.
Declaration
C#Copypublic static void SetPlaybackState(MediaControlPlaybackState state, long position)
Parameters
Type | Name | Description |
---|---|---|
MediaControlPlaybackState | state | The playback state. |
System.Int64 | position | The playback position in milliseconds. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException |
|
System.ArgumentOutOfRangeException |
|
System.InvalidOperationException | The server is not running . |
API Level: 4
Declaration
C#Copypublic static void SetRepeatMode(MediaControlRepeatMode mode)
Parameters
Type | Name | Description |
---|---|---|
MediaControlRepeatMode | mode | A value indicating the repeat mode. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The server is not running . |
System.ArgumentException |
|
API Level: 4
Declaration
C#Copypublic static void SetShuffleModeEnabled(bool enabled)
Parameters
Type | Name | Description |
---|---|---|
Boolean | enabled | A value indicating whether the shuffle mode is enabled. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The server is not running . |
API Level: 4
Declaration
C#Copypublic static void Start()
Remarks
When the server starts, ServerStarted will be raised.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | An internal error occurs. |
UnauthorizedAccessException | Caller does not have required privilege. |
See Also
API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/mediacontroller.server
Declaration
C#Copypublic static void Stop()
Remarks
When the server stops, ServerStopped will be raised.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The server is not running . |
See Also
API Level: 4
Events
Declaration
C#Copypublic static event EventHandler<PlaybackCommandReceivedEventArgs> PlaybackCommandReceived
Event Type
Type | Description |
---|---|
System.EventHandler<PlaybackCommandReceivedEventArgs> |