Definition
- Namespace:
- Tizen.Multimedia.Remoting
- Assembly:
- Tizen.Multimedia.Remoting.dll
- API Level:
- 4
Provides a means to send commands to and handle events from media control server.
public class MediaController : object
- Inheritance
-
Properties
View Source
Gets a value indicating whether the sever has been stopped.
Declaration
public bool IsStopped { get; }
Property Value
Type |
Description |
Boolean |
true if the server has been stopped; otherwise, false.
|
API Level: 4
Declaration
public string ServerAppId { get; }
Property Value
Type |
Description |
String |
The server application id.
|
API Level: 4
Methods
View Source
Gets the age rating of current playing media.
Declaration
public int GetAgeRatingOfCurrentPlayingMedia()
Returns
Type |
Description |
Int32 |
The Age rating of current playing media. The range is 0 to 19, inclusive.
|
API Level: 5
View Source
GetContentTypeOfCurrentPlayingMedia()
Gets the content type of current playing media.
Declaration
public MediaControlContentType GetContentTypeOfCurrentPlayingMedia()
Returns
API Level: 5
View Source
Gets the value whether the custom command is supported or not.
Declaration
public MediaControlCapabilitySupport GetCustomCommandCapability()
Returns
API Level: 11
Declaration
public MediaControlDisplayMode GetDisplayMode()
Returns
API Level: 6
View Source
Gets the value whether the repeat mode is supported or not.
Declaration
public IEnumerable<MediaControlDisplayMode> GetDisplayModeCapability()
Returns
API Level: 6
Declaration
public Rotation GetDisplayRotation()
Returns
API Level: 6
View Source
Gets the value whether the display mode is supported or not.
Declaration
public IEnumerable<Rotation> GetDisplayRotationCapability()
Returns
Type |
Description |
IEnumerable<Rotation> |
If there's no supported display rotation by server, it will return null.
otherwise, it will return the supported list of Rotation.
|
API Level: 6
Declaration
public string GetIconPath()
Returns
Type |
Description |
String |
The icon path.
|
API Level: 5
View Source
Returns the index of current playing media.
Declaration
public string GetIndexOfCurrentPlayingMedia()
Returns
Type |
Description |
String |
The index of current playing media.
|
API Level: 5
Declaration
public MediaControlMetadata GetMetadata()
Returns
API Level: 4
View Source
Gets the value whether the 360 mode is supported or not.
Declaration
public MediaControlCapabilitySupport GetMode360Capability()
Returns
API Level: 6
Declaration
public Dictionary<MediaControlPlaybackCommand, MediaControlCapabilitySupport> GetPlaybackCapabilities()
Returns
API Level: 5
View Source
Gets the value whether action
is supported or not.
Declaration
public MediaControlCapabilitySupport GetPlaybackCapability(MediaControlPlaybackCommand action)
Parameters
Returns
API Level: 5
View Source
Returns the playback position set by the server.
Declaration
public long GetPlaybackPosition()
Returns
Type |
Description |
Int64 |
The playback position in milliseconds.
|
API Level: 4
View Source
Gets the value whether the playback position is supported or not.
Declaration
public MediaControlCapabilitySupport GetPlaybackPositionCapability()
Returns
API Level: 11
View Source
Returns the playback state set by the server.
Declaration
public MediaControlPlaybackState GetPlaybackState()
Returns
API Level: 4
View Source
Gets the value whether the playlist is supported or not.
Declaration
public MediaControlCapabilitySupport GetPlaylistCapability()
Returns
API Level: 11
View Source
Returns the playlist name of current playing media.
Declaration
public MediaControlPlaylist GetPlaylistOfCurrentPlayingMedia()
Returns
API Level: 5
Declaration
public IEnumerable<MediaControlPlaylist> GetPlaylists()
Returns
API Level: 5
Declaration
public MediaControlRepeatMode GetRepeatMode()
Returns
API Level: 4
View Source
Gets the value whether the repeat mode is supported or not.
Declaration
public MediaControlCapabilitySupport GetRepeatModeCapability()
Returns
API Level: 5
View Source
Gets the value whether the search is supported or not.
Declaration
public MediaControlCapabilitySupport GetSearchCapability()
Returns
API Level: 11
View Source
Gets the value whether the shuffle mode is supported or not.
Declaration
public MediaControlCapabilitySupport GetShuffleModeCapability()
Returns
API Level: 5
View Source
Gets the value whether the subtitle mode is supported or not.
Declaration
public MediaControlCapabilitySupport GetSubtitleModeCapability()
Returns
API Level: 6
View Source
Gets whether the 360 mode is enabled or not.
Declaration
public bool IsMode360Enabled()
Returns
Type |
Description |
Boolean |
A value indicating whether the 360 mode is enabled or not.
|
API Level: 6
View Source
Returns whether the shuffle mode is enabled.
Declaration
public bool IsShuffleModeEnabled()
Returns
Type |
Description |
Boolean |
A value indicating whether the shuffle mode is enabled.
|
API Level: 4
View Source
Gets whether the subtitle mode is enabled or not.
Declaration
public bool IsSubtitleModeEnabled()
Returns
Type |
Description |
Boolean |
A value indicating whether the subtitle mode is enabled or not.
|
API Level: 6
Declaration
public Task<Bundle> RequestAsync(Command command)
Parameters
Returns
Type |
Description |
Task<Bundle> |
represents the extra data from server and it can be null.
|
API Level: 5
View Source
Requests a command to the server and client receives the result of each request(command).
Declaration
public Task<(Bundle bundle, int result)> RequestCommandAsync(Command command)
Parameters
Returns
Type |
Description |
Task<ValueTuple<Bundle, Int32>> |
The type of return value is Tuple.
First item of Tuple represents the and it represents the extra data from client. It can be null.
Second item of Tuple represents the result of each request(command).
|
API Level: 8
Declaration
public void Response(Command command, int result)
Parameters
Type |
Name |
Description |
Command |
command |
The command that return to client.
|
Int32 |
result |
The result of command .
|
API Level: 5
Declaration
public void Response(Command command, int result, Bundle bundle)
Parameters
Type |
Name |
Description |
Command |
command |
The command that return to client.
|
Int32 |
result |
The result of command .
|
Bundle |
bundle |
The extra data.
|
API Level: 4
Declaration
public void Response(Command command, MediaControlResult result)
Parameters
API Level: 8
Declaration
public void Response(Command command, MediaControlResult result, Bundle bundle)
Parameters
API Level: 4
Declaration
public void SendPlaybackCommand(MediaControlPlaybackCommand command)
Parameters
API Level: 4
Events
View Source
Occurs when the custom command capability is updated.
Declaration
public event EventHandler<CustomCommandCapabilityUpdatedEventArgs> CustomCommandCapabilityUpdated
Event Type
API Level: 11
Declaration
public event EventHandler<CustomCommandReceivedEventArgs> CustomCommandReceived
Event Type
API Level: 5
View Source
Occurs when the display mode capability is updated.
Declaration
public event EventHandler<DisplayModeCapabilityUpdatedEventArgs> DisplayModeCapabilityUpdated
Event Type
API Level: 6
Declaration
public event EventHandler<DisplayModeUpdatedEventArgs> DisplayModeUpdated
Event Type
API Level: 6
View Source
Occurs when the display rotation capability is updated.
Declaration
public event EventHandler<DisplayRotationCapabilityUpdatedEventArgs> DisplayRotationCapabilityUpdated
Event Type
API Level: 6
View Source
Occurs when the display rotation is updated.
Declaration
public event EventHandler<DisplayRotationUpdatedEventArgs> DisplayRotationUpdated
Event Type
API Level: 6
Declaration
public event EventHandler<MetadataUpdatedEventArgs> MetadataUpdated
Event Type
API Level: 4
View Source
Occurs when the mode360 capability is updated.
Declaration
public event EventHandler<Mode360CapabilityUpdatedEventArgs> Mode360CapabilityUpdated
Event Type
API Level: 11
Declaration
public event EventHandler<Mode360UpdatedEventArgs> Mode360Updated
Event Type
API Level: 6
View Source
Occurs when the playback capabilities are updated.
Declaration
public event EventHandler<PlaybackCapabilityUpdatedEventArgs> PlaybackCapabilityUpdated
Event Type
API Level: 5
View Source
Occurs when the playback position capability is updated.
Declaration
public event EventHandler<PlaybackPositionCapabilityUpdatedEventArgs> PlaybackPositionCapabilityUpdated
Event Type
API Level: 11
Declaration
public event EventHandler<PlaybackStateUpdatedEventArgs> PlaybackStateUpdated
Event Type
API Level: 4
View Source
Occurs when the playlist capability is updated.
Declaration
public event EventHandler<PlaylistCapabilityUpdatedEventArgs> PlaylistCapabilityUpdated
Event Type
API Level: 11
Declaration
public event EventHandler<PlaylistUpdatedEventArgs> PlaylistUpdated
Event Type
API Level: 5
View Source
Occurs when the repeat mode capability is updated.
Declaration
public event EventHandler<RepeatModeCapabilityUpdatedEventArgs> RepeatModeCapabilityUpdated
Event Type
API Level: 5
Declaration
public event EventHandler<RepeatModeUpdatedEventArgs> RepeatModeUpdated
Event Type
API Level: 4
View Source
Occurs when the search capability is updated.
Declaration
public event EventHandler<SearchCapabilityUpdatedEventArgs> SearchCapabilityUpdated
Event Type
API Level: 11
Declaration
public event EventHandler ServerStopped
Event Type
Type |
Description |
EventHandler |
|
API Level: 4
View Source
Occurs when the shuffle mode capability is updated.
Declaration
public event EventHandler<ShuffleModeCapabilityUpdatedEventArgs> ShuffleModeCapabilityUpdated
Event Type
API Level: 5
Declaration
public event EventHandler<ShuffleModeUpdatedEventArgs> ShuffleModeUpdated
Event Type
API Level: 4
View Source
Occurs when the subtitle capability is updated.
Declaration
public event EventHandler<SubtitleCapabilityUpdatedEventArgs> SubtitleCapabilityUpdated
Event Type
API Level: 11
Declaration
public event EventHandler<SubtitleModeUpdatedEventArgs> SubtitleModeUpdated
Event Type
API Level: 6
Extension Methods