C# Класс OnlineVideos.Sites.JSurf.ConnectorImplementations.AmazonPrime.Connectors.AmazonPrimeConnector

Connector for playing amazon prime
Наследование: OnlineVideos.Sites.JSurf.ConnectorImplementations.BrowserUtilConnectorBase
Показать файл Открыть проект

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

Метод Описание
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