C# 클래스 OpenSyno.Services.PlaybackService

상속: IPlaybackService, IAudioRenderingService
파일 보기 프로젝트 열기: salfab/open-syno

공개 메소드들

메소드 설명
ClearTracksInQueue ( ) : void
GetCurrentTrack ( ) : GuidToTrackMapping
GetTracksCountInQueue ( ) : int
GetTracksInQueue ( ) : IEnumerable
GetVolume ( ) : double
InsertTracksToQueue ( IEnumerable tracks, int insertPosition, Guid>.Action callback ) : void
InvalidateCachedTokens ( ) : void

Invalidates the cached tokens.

Used to make sure we purge the fix for the uri containing non-ascii7 characters. The current architecture relies on the fact that we only change the token if the cached token is outdated. fixes use url-shortening services and have their token enclosed, so it is necessary not to update the cached token indepedently from the cached uri fixes !

Pause ( ) : void
PausePlayback ( ) : void
PlayTrackInQueue ( System.Guid trackToPlay ) : void

Clears the play queue.

Inserts the specified tracks to the play queue.

Plays the specified track. It must be present in the queue.

PlaybackService ( IAudioStationSession audioStationSession, IAudioTrackFactory audioTrackFactory, IVersionDependentResourcesProvider versionDependentResourceProvider ) : System

Initializes a new instance of the PlaybackService class.

RemoveTracksFromQueue ( IEnumerable tracksToRemove ) : void
Resume ( ) : void
ResumePlayback ( ) : void
SetVolume ( double volume ) : void
SkipNext ( ) : void
SkipPrevious ( ) : void
StreamTrack ( System.Guid guidOfTrackToPlay ) : void

보호된 메소드들

메소드 설명
OnTrackStarted ( TrackStartedEventArgs trackStartedEventArgs ) : void

비공개 메소드들

메소드 설명
BackgroundPlayerPlayStateChanged ( object sender, EventArgs e ) : void
DetectAffectedTracksAndBuildFix ( List potentiallyUnsafeMappings, Guid>.Action callback ) : void

Detects the affected tracks and build a fix.

OnBufferingProgressUpdated ( BufferingProgressUpdatedEventArgs bufferingProgressUpdatedEventArgs ) : void
OnMediaPositionChanged ( object sender, MediaPositionChangedEventArgs e ) : void
OnTrackCurrentPositionChanged ( MediaPositionChangedEventArgs mediaPositionChangedEventArgs ) : void
OnTracksInQueueChanged ( PlayqueueChangedEventArgs eventArgs ) : void
SerializeAsciiUriFixes ( ) : void
SerializePlayqueue ( ) : void

메소드 상세

ClearTracksInQueue() 공개 메소드

public ClearTracksInQueue ( ) : void
리턴 void

GetCurrentTrack() 공개 메소드

public GetCurrentTrack ( ) : GuidToTrackMapping
리턴 OpenSyno.Contracts.Domain.GuidToTrackMapping

GetTracksCountInQueue() 공개 메소드

public GetTracksCountInQueue ( ) : int
리턴 int

GetTracksInQueue() 공개 메소드

public GetTracksInQueue ( ) : IEnumerable
리턴 IEnumerable

GetVolume() 공개 메소드

public GetVolume ( ) : double
리턴 double

InsertTracksToQueue() 공개 메소드

public InsertTracksToQueue ( IEnumerable tracks, int insertPosition, Guid>.Action callback ) : void
tracks IEnumerable
insertPosition int
callback Guid>.Action
리턴 void

InvalidateCachedTokens() 공개 메소드

Invalidates the cached tokens.
Used to make sure we purge the fix for the uri containing non-ascii7 characters. The current architecture relies on the fact that we only change the token if the cached token is outdated. fixes use url-shortening services and have their token enclosed, so it is necessary not to update the cached token indepedently from the cached uri fixes !
public InvalidateCachedTokens ( ) : void
리턴 void

OnTrackStarted() 보호된 메소드

protected OnTrackStarted ( TrackStartedEventArgs trackStartedEventArgs ) : void
trackStartedEventArgs TrackStartedEventArgs
리턴 void

Pause() 공개 메소드

public Pause ( ) : void
리턴 void

PausePlayback() 공개 메소드

public PausePlayback ( ) : void
리턴 void

PlayTrackInQueue() 공개 메소드

Clears the play queue. Inserts the specified tracks to the play queue. Plays the specified track. It must be present in the queue.
public PlayTrackInQueue ( System.Guid trackToPlay ) : void
trackToPlay System.Guid The track to play.
리턴 void

PlaybackService() 공개 메소드

Initializes a new instance of the PlaybackService class.
public PlaybackService ( IAudioStationSession audioStationSession, IAudioTrackFactory audioTrackFactory, IVersionDependentResourcesProvider versionDependentResourceProvider ) : System
audioStationSession IAudioStationSession
audioTrackFactory IAudioTrackFactory
versionDependentResourceProvider IVersionDependentResourcesProvider
리턴 System

RemoveTracksFromQueue() 공개 메소드

public RemoveTracksFromQueue ( IEnumerable tracksToRemove ) : void
tracksToRemove IEnumerable
리턴 void

Resume() 공개 메소드

public Resume ( ) : void
리턴 void

ResumePlayback() 공개 메소드

public ResumePlayback ( ) : void
리턴 void

SetVolume() 공개 메소드

public SetVolume ( double volume ) : void
volume double
리턴 void

SkipNext() 공개 메소드

public SkipNext ( ) : void
리턴 void

SkipPrevious() 공개 메소드

public SkipPrevious ( ) : void
리턴 void

StreamTrack() 공개 메소드

public StreamTrack ( System.Guid guidOfTrackToPlay ) : void
guidOfTrackToPlay System.Guid
리턴 void