C# Класс SV.UPnPLite.Protocols.DLNA.Services.AvTransport.AvTransportService

Enables control over the transport of audio and video streams. The service type defines a ‘common’ model for A/V transport control suitable for a generic user interface. It can be used to control a wide variety of disc, tape and solid-state based media devices such as CD players, VCRs and MP3 players.
Наследование: SV.UPnPLite.Protocols.UPnP.UPnPService, IAvTransportService
Показать файл Открыть проект

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

Метод Описание
AvTransportService ( string serviceType, Uri controlUri, Uri eventsUri ) : SV.UPnPLite.Extensions

Initializes a new instanceId of the AvTransportService class.

AvTransportService ( string serviceType, Uri controlUri, Uri eventsUri, ILogManager logManager ) : SV.UPnPLite.Extensions

Initializes a new instanceId of the AvTransportService class.

GetMediaInfoAsync ( uint instanceId ) : Task

Returns information associated with the current media of the specified instance.

GetPositionInfoAsync ( uint instanceId ) : Task

Returns information associated with the current position of the transport of the specified instance.

GetTransportInfoAsync ( uint instanceId ) : Task

Returns information associated with the current transport state of the specified instance.

PauseAsync ( uint instanceId ) : System.Threading.Tasks.Task

Halts the progression of the resource that is associated with the specified instance.

PlayAsync ( uint instanceId, string speed ) : System.Threading.Tasks.Task

Starts playing the resource of the specified instanceId, at the specified speed, starting at the current position, according to the current play mode.

SetAvTransportURIAsync ( uint instanceId, string currentUri, string currentUriMetadata ) : System.Threading.Tasks.Task

Specifies the URI of the resource to be controlled by the specified AVTransport instance.

SetNextAvTransportURIAsync ( uint instanceId, string nextUri, string nextUriMetadata ) : System.Threading.Tasks.Task

Specifies the URI of the resource to be controlled when the playback of the current resource (set earlier via SetAvTransportURIAsync) finishes.

StopAsync ( uint instanceId ) : System.Threading.Tasks.Task

Stops the progression of the current resource that is associated with the specified instance.

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

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

Initializes a new instanceId of the AvTransportService class.
/// is null or -OR- /// is null -OR- /// is null. ///
public AvTransportService ( string serviceType, Uri controlUri, Uri eventsUri ) : SV.UPnPLite.Extensions
serviceType string /// A type of the service. ///
controlUri System.Uri /// An URL for sending commands to the service. ///
eventsUri System.Uri /// An URL for subscrinbing to service's events. ///
Результат SV.UPnPLite.Extensions

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

Initializes a new instanceId of the AvTransportService class.
/// is null or -OR- /// is null -OR- /// is null -OR- /// is null. ///
public AvTransportService ( string serviceType, Uri controlUri, Uri eventsUri, ILogManager logManager ) : SV.UPnPLite.Extensions
serviceType string /// A type of the service. ///
controlUri System.Uri /// An URL for sending commands to the service. ///
eventsUri System.Uri /// An URL for subscrinbing to service's events. ///
logManager ILogManager /// The to use for logging the debug information. ///
Результат SV.UPnPLite.Extensions

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

Returns information associated with the current media of the specified instance.
/// An error occurred when sending request to service. /// /// Received result is in a bad format. /// /// An internal service error occurred when executing request. ///
public GetMediaInfoAsync ( uint instanceId ) : Task
instanceId uint /// Identifies the virtual instanceId of the AVTransport service to which the action applies. ///
Результат Task

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

Returns information associated with the current position of the transport of the specified instance.
/// An error occurred when sending request to service. /// /// Received result is in a bad format. /// /// An internal service error occurred when executing request. ///
public GetPositionInfoAsync ( uint instanceId ) : Task
instanceId uint /// Identifies the virtual instanceId of the AVTransport service to which the action applies. ///
Результат Task

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

Returns information associated with the current transport state of the specified instance.
/// An error occurred when sending request to service. /// /// Received result is in a bad format. /// /// An internal service error occurred when executing request. ///
public GetTransportInfoAsync ( uint instanceId ) : Task
instanceId uint /// Identifies the virtual instanceId of the AVTransport service to which the action applies. ///
Результат Task

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

Halts the progression of the resource that is associated with the specified instance.
/// An error occurred when sending request to service. /// /// An internal service error occurred when executing request. ///
public PauseAsync ( uint instanceId ) : System.Threading.Tasks.Task
instanceId uint /// Identifies the virtual instanceId of the AVTransport service to which the action applies. ///
Результат System.Threading.Tasks.Task

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

Starts playing the resource of the specified instanceId, at the specified speed, starting at the current position, according to the current play mode.
/// An error occurred when sending request to service. /// /// An internal service error occurred when executing request. ///
public PlayAsync ( uint instanceId, string speed ) : System.Threading.Tasks.Task
instanceId uint /// Identifies the virtual instanceId of the AVTransport service to which the action applies. ///
speed string /// Indicates the speed relative to normal speed. Example values are ‘1’, ‘1/2’, ‘2’, ‘-1’, ‘1/10’, etc. ///
Результат System.Threading.Tasks.Task

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

Specifies the URI of the resource to be controlled by the specified AVTransport instance.
/// is null. /// /// An error occurred when sending request to service. /// /// Received result is in a bad format. /// /// An unexpected error occurred when executing request on service. ///
public SetAvTransportURIAsync ( uint instanceId, string currentUri, string currentUriMetadata ) : System.Threading.Tasks.Task
instanceId uint /// Identifies the virtual instanceId of the AVTransport service to which the action applies. ///
currentUri string /// The URI to the resource to control. ///
currentUriMetadata string /// The metadata, in the form of a DIDL-Lite XML fragment, associated with the resource pointed by . ///
Результат System.Threading.Tasks.Task

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

Specifies the URI of the resource to be controlled when the playback of the current resource (set earlier via SetAvTransportURIAsync) finishes.
/// is null. /// /// An error occurred when sending request to service. /// /// Received result is in a bad format. /// /// An internal service error occurred when executing request. ///
public SetNextAvTransportURIAsync ( uint instanceId, string nextUri, string nextUriMetadata ) : System.Threading.Tasks.Task
instanceId uint /// Identifies the virtual instanceId of the AVTransport service to which the action applies. ///
nextUri string /// The URI to the next resource to control. ///
nextUriMetadata string /// The metadata, in the form of a DIDL-Lite XML fragment, associated with the resource pointed by . ///
Результат System.Threading.Tasks.Task

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

Stops the progression of the current resource that is associated with the specified instance.
/// An error occurred when sending request to service. /// /// An internal service error occurred when executing request. ///
public StopAsync ( uint instanceId ) : System.Threading.Tasks.Task
instanceId uint /// Identifies the virtual instanceId of the AVTransport service to which the action applies. ///
Результат System.Threading.Tasks.Task