C# Класс SV.UPnPLite.Protocols.DLNA.MediaRenderer

A device which renders content from Media Server.
Наследование: SV.UPnPLite.Protocols.UPnP.UPnPDevice
Показать файл Открыть проект

Открытые методы

Метод Описание
GetCurrentPosition ( ) : Task

Requests current playback position.

GetCurrentState ( ) : Task

Requests current playback state.

GetMediaInfoAsync ( ) : Task

Requests an information about current media info.

MediaRenderer ( string udn, IAvTransportService avTransportService ) : System

Initializes a new instance of the MediaRenderer class.

MediaRenderer ( string udn, IAvTransportService avTransportService, ILogManager logManager ) : System

Initializes a new instance of the MediaRenderer class.

OpenAsync ( SV.UPnPLite.Protocols.DLNA.Services.ContentDirectory.MediaItem item ) : System.Threading.Tasks.Task

Prepares the item for playback on renderer.

OpenAsync ( SV.UPnPLite.Protocols.DLNA.Services.ContentDirectory.MediaResource resource ) : System.Threading.Tasks.Task

Prepares the resource for playback on the renderer.

PauseAsync ( ) : System.Threading.Tasks.Task

Requests the renderer to pause playback.

PlayAsync ( ) : System.Threading.Tasks.Task

Requests the renderer to start playback.

StopAsync ( ) : System.Threading.Tasks.Task

Requests the renderer to stop playback.

Приватные методы

Метод Описание
Initialize ( ) : void
ParseTransportState ( string transportState ) : MediaRendererState
SelectResourceForPlayback ( SV.UPnPLite.Protocols.DLNA.Services.ContentDirectory.MediaItem mediaItem ) : SV.UPnPLite.Protocols.DLNA.Services.ContentDirectory.MediaResource

Описание методов

GetCurrentPosition() публичный Метод

Requests current playback position.
/// An error occurred when sending request to service. /// /// An unexpected error occurred when executing request on device. ///
public GetCurrentPosition ( ) : Task
Результат Task

GetCurrentState() публичный Метод

Requests current playback state.
/// An error occurred when sending request to service. /// /// An unexpected error occurred when executing request on device. ///
public GetCurrentState ( ) : Task
Результат Task

GetMediaInfoAsync() публичный Метод

Requests an information about current media info.
/// An error occurred when sending request to service. /// /// An unexpected error occurred when executing request on device. ///
public GetMediaInfoAsync ( ) : Task
Результат Task

MediaRenderer() публичный Метод

Initializes a new instance of the MediaRenderer class.
/// is null or -OR- /// is null. ///
public MediaRenderer ( string udn, IAvTransportService avTransportService ) : System
udn string /// A universally-unique identifier for the device. ///
avTransportService IAvTransportService /// A to use for controlling the transport of media streams. ///
Результат System

MediaRenderer() публичный Метод

Initializes a new instance of the MediaRenderer class.
/// is null or -OR- /// is null -OR- /// is null. ///
public MediaRenderer ( string udn, IAvTransportService avTransportService, ILogManager logManager ) : System
udn string /// A universally-unique identifier for the device. ///
avTransportService IAvTransportService /// A to use for controlling the transport of media streams. ///
logManager ILogManager /// The to use for logging the debug information. ///
Результат System

OpenAsync() публичный Метод

Prepares the item for playback on renderer.
/// is null. /// /// An error occurred when sending request to service. /// /// An unexpected error occurred when executing request on device. ///
public OpenAsync ( SV.UPnPLite.Protocols.DLNA.Services.ContentDirectory.MediaItem item ) : System.Threading.Tasks.Task
item SV.UPnPLite.Protocols.DLNA.Services.ContentDirectory.MediaItem /// An item to play on renderer. ///
Результат System.Threading.Tasks.Task

OpenAsync() публичный Метод

Prepares the resource for playback on the renderer.
/// is null. /// /// An error occurred when sending request to service. /// /// An unexpected error occurred when executing request on device. ///
public OpenAsync ( SV.UPnPLite.Protocols.DLNA.Services.ContentDirectory.MediaResource resource ) : System.Threading.Tasks.Task
resource SV.UPnPLite.Protocols.DLNA.Services.ContentDirectory.MediaResource /// A resource to play on the renderer. ///
Результат System.Threading.Tasks.Task

PauseAsync() публичный Метод

Requests the renderer to pause playback.
/// An error occurred when sending request to service. /// /// An unexpected error occurred when executing request on device. ///
public PauseAsync ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task

PlayAsync() публичный Метод

Requests the renderer to start playback.
/// An error occurred when sending request to service. /// /// An unexpected error occurred when executing request on device. ///
public PlayAsync ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task

StopAsync() публичный Метод

Requests the renderer to stop playback.
/// An error occurred when sending request to service. /// /// An unexpected error occurred when executing request on device. ///
public StopAsync ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task