Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VideoPlayerImpl

Hierarchy

Index

Constructors

constructor

Properties

Protected _cachedCurrentTime

_cachedCurrentTime: number = -1

Protected _component

_component: VideoPlayer | null = null

Protected componentEventList

componentEventList: Map<string, () => void> = new Map()

Protected _dirty

_dirty: boolean = false

Protected _forceUpdate

_forceUpdate: boolean = false

Protected _fullScreenOnAwake

_fullScreenOnAwake: boolean = false

Protected _h

_h: number = 0

Protected _ignorePause

_ignorePause: boolean = false

Protected _interrupted

_interrupted: boolean = false

Protected _keepAspectRatio

_keepAspectRatio: boolean = false

Protected _loaded

_loaded: boolean = false

Protected _loadedMeta

_loadedMeta: boolean = false

Protected _m00

_m00: number = 0

Protected _m01

_m01: number = 0

Protected _m04

_m04: number = 0

Protected _m05

_m05: number = 0

Protected _m12

_m12: number = 0

Protected _m13

_m13: number = 0

Protected _node

_node: Node | null = null

Protected onHide

onHide: () => void

Type declaration

    • (): void
    • Returns void

Protected onShow

onShow: () => void

Type declaration

    • (): void
    • Returns void

Protected _playing

_playing: boolean = false

Protected _state

_state: EventType = EventType.NONE

Protected _stayOnBottom

_stayOnBottom: boolean = false

Protected _uiTrans

_uiTrans: UITransform | null = null

Protected _video

_video: HTMLVideoElement | null = null

Protected _visible

_visible: boolean = true

Protected _w

_w: number = 0

Protected _waitingFullscreen

_waitingFullscreen: boolean = false

Protected _waitingPlay

_waitingPlay: boolean = false

Accessors

UICamera

  • get UICamera(): null | Camera

componentEventList

  • get componentEventList(): Map<string, () => void>

fullScreenOnAwake

  • get fullScreenOnAwake(): boolean

loaded

  • get loaded(): boolean

state

video

  • get video(): null | HTMLVideoElement

Methods

Abstract canFullScreen

  • canFullScreen(enabled: boolean): void

Abstract canPlay

  • canPlay(): void

Abstract createVideoPlayer

  • createVideoPlayer(url: string): void

delayedFullScreen

  • delayedFullScreen(): void

delayedPlay

  • delayedPlay(): void

destroy

  • destroy(): void

Abstract disable

  • disable(noPause?: undefined | false | true): void

Protected dispatchEvent

  • dispatchEvent(key: any): void

Abstract enable

  • enable(): void

Abstract getCurrentTime

  • getCurrentTime(): number

Abstract getDuration

  • getDuration(): number

onCanPlay

  • onCanPlay(e: Event): void

onClick

  • onClick(e: Event): void

onEnded

  • onEnded(e: Event): void

onError

  • onError(e: Event): void

onLoadedMetadata

  • onLoadedMetadata(e: Event): void

onPause

  • onPause(e: Event): void

onPlay

  • onPlay(e: Event): void

onPlaying

  • onPlaying(e: Event): void

onStoped

  • onStoped(e: Event): void

Abstract pause

  • pause(): void

play

  • play(): void

Abstract removeVideoPlayer

  • removeVideoPlayer(): void

Abstract resume

  • resume(): void

Abstract seekTo

  • seekTo(val: number): void

Abstract stop

  • stop(): void

Abstract syncClip

  • syncClip(clip: any): void

Protected syncCurrentTime

  • syncCurrentTime(): void

syncFullScreenOnAwake

  • syncFullScreenOnAwake(enabled: boolean): void

Abstract syncKeepAspectRatio

  • syncKeepAspectRatio(enabled: boolean): void

Abstract syncLoop

  • syncLoop(enabled: boolean): void

Abstract syncMatrix

  • syncMatrix(): void

Abstract syncMute

  • syncMute(enabled: boolean): void

Abstract syncPlaybackRate

  • syncPlaybackRate(val: number): void

Abstract syncStayOnBottom

  • syncStayOnBottom(enabled: boolean): void

Protected syncUITransform

  • syncUITransform(width: any, height: any): void

Abstract syncURL

  • syncURL(url: string): void

Abstract syncVolume

  • syncVolume(val: number): void

Generated using TypeDoc