-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
80 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import HTML5Video from 'zombiebox/zb/device/common/HTML5-video'; | ||
import Rect from 'zombiebox/zb/geometry/rect'; | ||
|
||
export default class Html5HlsVideo extends HTML5Video { | ||
constructor(rect: Rect); | ||
protected _hls: any; | ||
protected _hlsEvents: string[]; | ||
destroy(): void; | ||
getUrl(): string; | ||
play(url: string, startFrom?: number); | ||
protected _onHlsEventBound: Function; | ||
protected _startTime: number; | ||
protected _initVideoObject(url: string): any; | ||
protected _video: any; | ||
protected _removeVideoObject(): void; | ||
protected _initEvents(): void; | ||
protected _destroyEvents(): void; | ||
protected _onHlsEvent(event: string, data: any): void; | ||
protected _onHlsError(errorObject: any): void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
import AbstractInput from 'zombiebox/zb/device/abstract-input'; | ||
import Keys from 'zombiebox/zb/device/input/keys'; | ||
import Key from 'zombiebox/zb/device/input/key'; | ||
|
||
export default class Input extends AbstractInput { | ||
constructor(); | ||
isPointingDeviceSupported(): boolean; | ||
enablePointingDevice(): void; | ||
disablePointingDevice(opt_timeout?: number): void; | ||
protected _createKeysMap(): { [key: number]: Keys }; | ||
constructor(); | ||
isPointingDeviceSupported(): boolean; | ||
enablePointingDevice(): void; | ||
disablePointingDevice(opt_timeout?: number): void; | ||
eventToKeyCode(e: (KeyboardEvent | WheelEvent)): Key; | ||
protected _createKeysMap(): { [key: number]: Key }; | ||
protected _serviceKeys: number[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import StatefulHtml5Video, {StartPositionState} from 'zombiebox/zb/device/common/stateful-html5-video'; | ||
import {ResolutionInfoItem} from 'zombiebox/zb/device/resolutions'; | ||
|
||
export default class StatefulHtml5HlsVideo extends StatefulHtml5Video { | ||
constructor(panelResolution: ResolutionInfoItem, appResolution: ResolutionInfoItem); | ||
protected _hls: any; | ||
destroy(): any; | ||
prepare(url: string, options?: {}): any; | ||
getUrl(): string; | ||
protected _sourceElement: HTMLSourceElement; | ||
protected _startPositionState: StartPositionState; | ||
protected _reapplyStartPosition(): any; | ||
protected _createHlsObject(config: any): void; | ||
protected _onHlsEvent(event: string, data: any): void; | ||
protected _onHlsError(errorObject: any): void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters