Methods
id
- id(): null | number
-
Returns null | number
destroy
- destroy(): void
-
Returns void
bind
- bind(containerId: string): void
-
Returns void
unbind
- unbind(): void
-
Returns void
setOSDConfig
- setOSDConfig(enable: boolean, config?: PLVOSDConfig): void
-
Returns void
setLogoConfig
- setLogoConfig(enable: boolean, config?: PLVLogoConfig): void
-
Returns void
setCacheConfig
- setCacheConfig(enable: boolean, cacheConfig?: PLVCacheConfig): void
-
Returns void
play
- play(): void
-
Returns void
stop
- stop(): void
-
Returns void
pause
- pause(): void
-
Returns void
resume
- resume(): void
-
Returns void
mute
- mute(status: boolean): void
-
Returns void
seek
- seek(time: number): void
-
Returns void
seekToEnd
- seekToEnd(): void
-
Returns void
setVolume
- setVolume(volume: number): void
-
Returns void
setVolumeMax
- setVolumeMax(volume: number): void
-
Returns void
screenshot
- screenshot(filepath: string): void
-
Returns void
setSpeed
- setSpeed(speed: number): void
-
Returns void
isMute
- isMute(): boolean
-
Returns boolean
isValid
- isValid(): boolean
-
Returns boolean
isPause
- isPause(): boolean
-
Returns boolean
isPlaying
- isPlaying(): boolean
-
Returns boolean
isLoaded
- isLoaded(): boolean
-
Returns boolean
isLoading
- isLoading(): boolean
-
Returns boolean
getCurrentRateCount
- getCurrentRateCount(): number
-
Returns number
getVolume
- getVolume(): number
-
Returns number
getDuration
- getDuration(): number
-
Returns number
getSpeed
- getSpeed(): number
-
Returns number
getAudioDeviceCount
- getAudioDeviceCount(): number
-
Returns number
getCurrentAudioDevice
- getCurrentAudioDevice(): string
-
Returns string
setCurrentAudioDevice
- setCurrentAudioDevice(deviceId: string): void
-
Returns void
播放器接口
Export