Class MediaController
Definition
- Namespace:
- Tizen.Multimedia.Remoting
- Assembly:
- Tizen.Multimedia.Remoting.dll
- API Level:
- 4
Provides a means to to send commands to and handle events from media control server.
C#Copypublic class MediaController
- Inheritance
-
MediaController
Properties
Declaration
C#Copypublic bool IsStopped { get; }
Property Value
Type | Description |
---|---|
Boolean | true if the server has been stopped; otherwise, false. |
API Level: 4
Declaration
C#Copypublic string ServerAppId { get; }
Property Value
Type | Description |
---|---|
System.String | The server application id. |
API Level: 4
Methods
Declaration
C#Copypublic MediaControlMetadata GetMetadata()
Returns
Type | Description |
---|---|
MediaControlMetadata | The metadata. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The server has already been stopped. |
ObjectDisposedException | The MediaControllerManager has already been disposed of. |
See Also
API Level: 4
Declaration
C#Copypublic long GetPlaybackPosition()
Returns
Type | Description |
---|---|
System.Int64 | The playback position in milliseconds. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The server has already been stopped. |
ObjectDisposedException | The MediaControllerManager has already been disposed of. |
API Level: 4
Declaration
C#Copypublic MediaControlPlaybackState GetPlaybackState()
Returns
Type | Description |
---|---|
MediaControlPlaybackState | The playback state. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The server has already been stopped. |
ObjectDisposedException | The MediaControllerManager has already been disposed of. |
API Level: 4
Declaration
C#Copypublic MediaControlRepeatMode GetRepeatMode()
Returns
Type | Description |
---|---|
MediaControlRepeatMode | A MediaControlRepeatMode set by the server. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The server has already been stopped. |
ObjectDisposedException | The MediaControllerManager has already been disposed of. |
API Level: 4
Declaration
C#Copypublic bool IsShuffleModeEnabled()
Returns
Type | Description |
---|---|
Boolean | A value indicating whether the shuffle mode is enabled. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The server has already been stopped. |
ObjectDisposedException | The MediaControllerManager has already been disposed of. |
See Also
API Level: 4
Declaration
C#Copypublic void SendPlaybackCommand(MediaControlPlaybackCommand command)
Parameters
Type | Name | Description |
---|---|---|
MediaControlPlaybackCommand | command | A playback command. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The server has already been stopped. |
System.ArgumentException |
|
ObjectDisposedException | The MediaControllerManager has already been disposed of. |
See Also
API Level: 4
Events
Declaration
C#Copypublic event EventHandler<MetadataUpdatedEventArgs> MetadataUpdated
Event Type
Type | Description |
---|---|
System.EventHandler<MetadataUpdatedEventArgs> |
API Level: 4
Declaration
C#Copypublic event EventHandler<PlaybackStateUpdatedEventArgs> PlaybackStateUpdated
Event Type
Type | Description |
---|---|
System.EventHandler<PlaybackStateUpdatedEventArgs> |
API Level: 4
Declaration
C#Copypublic event EventHandler<RepeatModeUpdatedEventArgs> RepeatModeUpdated
Event Type
Type | Description |
---|---|
System.EventHandler<RepeatModeUpdatedEventArgs> |
API Level: 4
Declaration
C#Copypublic event EventHandler ServerStopped
Event Type
Type | Description |
---|---|
System.EventHandler |
API Level: 4
Declaration
C#Copypublic event EventHandler<ShuffleModeUpdatedEventArgs> ShuffleModeUpdated
Event Type
Type | Description |
---|---|
System.EventHandler<ShuffleModeUpdatedEventArgs> |