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.
C#Copypublic class MediaController
- Inheritance
-
objectMediaController
Properties
Declaration
C#Copypublic bool IsStopped { get; }
Property Value
| Type | Description |
|---|---|
| bool | true if the server has been stopped; otherwise, false. |
Declaration
C#Copypublic string ServerAppId { get; }
Property Value
| Type | Description |
|---|---|
| string | The server application id. |
Methods
Declaration
C#Copypublic MediaControlMetadata GetMetadata()
Returns
| Type | Description |
|---|---|
| MediaControlMetadata | The metadata. |
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | The server has already been stopped. |
| System.ObjectDisposedException | The MediaControllerManager has already been disposed of. |
See Also
Declaration
C#Copypublic long GetPlaybackPosition()
Returns
| Type | Description |
|---|---|
| long | The playback position in milliseconds. |
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | The server has already been stopped. |
| System.ObjectDisposedException | The MediaControllerManager has already been disposed of. |
Declaration
C#Copypublic MediaControlPlaybackState GetPlaybackState()
Returns
| Type | Description |
|---|---|
| MediaControlPlaybackState | The playback state. |
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | The server has already been stopped. |
| System.ObjectDisposedException | The MediaControllerManager has already been disposed of. |
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. |
| System.ObjectDisposedException | The MediaControllerManager has already been disposed of. |
Declaration
C#Copypublic bool IsShuffleModeEnabled()
Returns
| Type | Description |
|---|---|
| bool | A value indicating whether the shuffle mode is enabled. |
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | The server has already been stopped. |
| System.ObjectDisposedException | The MediaControllerManager has already been disposed of. |
See Also
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 |
|
| System.ObjectDisposedException | The MediaControllerManager has already been disposed of. |
See Also
Events
Declaration
C#Copypublic event EventHandler<MetadataUpdatedEventArgs> MetadataUpdated
Event Type
| Type | Description |
|---|---|
| System.EventHandler<TEventArgs><MetadataUpdatedEventArgs> |
Declaration
C#Copypublic event EventHandler<PlaybackStateUpdatedEventArgs> PlaybackStateUpdated
Event Type
| Type | Description |
|---|---|
| System.EventHandler<TEventArgs><PlaybackStateUpdatedEventArgs> |
Declaration
C#Copypublic event EventHandler<RepeatModeUpdatedEventArgs> RepeatModeUpdated
Event Type
| Type | Description |
|---|---|
| System.EventHandler<TEventArgs><RepeatModeUpdatedEventArgs> |
Declaration
C#Copypublic event EventHandler ServerStopped
Event Type
| Type | Description |
|---|---|
| System.EventHandler |
Declaration
C#Copypublic event EventHandler<ShuffleModeUpdatedEventArgs> ShuffleModeUpdated
Event Type
| Type | Description |
|---|---|
| System.EventHandler<TEventArgs><ShuffleModeUpdatedEventArgs> |