C# 클래스 OnlineVideos.Sites.JSurf.ConnectorImplementations.AmazonPrime.Connectors.AmazonPrimeConnector

Connector for playing amazon prime
상속: OnlineVideos.Sites.JSurf.ConnectorImplementations.BrowserUtilConnectorBase
파일 보기 프로젝트 열기: offbyoneBB/mp-onlinevideos2

공개 메소드들

메소드 설명
BrowserDocumentComplete ( ) : EventResult

Document loaded - see what state we're in and react accordingly

OnAction ( string actionEnumName ) : void
Pause ( ) : EventResult

Pause button pressed

Play ( ) : EventResult

Play button pressed

PlayVideo ( string videoToPlay ) : EventResult

Play the specified video - try and keep the loading screen showing for as long as possible

보호된 메소드들

메소드 설명
PerformActualLogin ( string username, string password ) : EventResult

Do the login

비공개 메소드들

메소드 설명
DoPlayOrPause ( ) : EventResult

Find the play/pause button and click it

SendKeyToControl ( string keyStrokeToSend ) : void

With the Amazon player it seems that setting it to full screen (_enableFullWindowPlaybackMode) it makes the Silverlight control always take focus This means that when space bar is pressed to pause it fires in the Silverlight control before the browser host causing a double press To get around this I've added a dummy control to the page which will take focus after every action to prevent Silverlight getting the event

SetTopMostActivate ( ) : void

메소드 상세

BrowserDocumentComplete() 공개 메소드

Document loaded - see what state we're in and react accordingly
public BrowserDocumentComplete ( ) : EventResult
리턴 OnlineVideos.Sites.Entities.EventResult

OnAction() 공개 메소드

public OnAction ( string actionEnumName ) : void
actionEnumName string
리턴 void

Pause() 공개 메소드

Pause button pressed
public Pause ( ) : EventResult
리턴 OnlineVideos.Sites.Entities.EventResult

PerformActualLogin() 보호된 메소드

Do the login
protected PerformActualLogin ( string username, string password ) : EventResult
username string
password string
리턴 OnlineVideos.Sites.Entities.EventResult

Play() 공개 메소드

Play button pressed
public Play ( ) : EventResult
리턴 OnlineVideos.Sites.Entities.EventResult

PlayVideo() 공개 메소드

Play the specified video - try and keep the loading screen showing for as long as possible
public PlayVideo ( string videoToPlay ) : EventResult
videoToPlay string
리턴 OnlineVideos.Sites.Entities.EventResult