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
파일 보기 프로젝트 열기: SNIKO/UPnPLite

공개 메소드들

메소드 설명
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