Skip to content

react native bitmovin player.player

Matheus Cardoso edited this page Jun 8, 2022 · 1 revision

Home > react-native-bitmovin-player > Player

Player class

The player component.

Signature:

declare class Player extends PureComponent<PlayerProps> 

Extends: PureComponent<PlayerProps

Constructors

Constructor Modifiers Description
(constructor)(props) Constructs a new instance of the Player class

Properties

Property Modifiers Type Description
_onEvent (event: NativeSyntheticEvent<Event>) => void
_onPlay (event: NativeSyntheticEvent<PlayEvent>) => void
_onReady (event: NativeSyntheticEvent<Event>) => void
create (config: PlayerConfig) => void
destroy () => void
getCurrentTime (mode?: "absolute" | "relative" | undefined) => Promise<number>
getDuration () => Promise<number>
getSource () => Promise<Source | null>
getVolume () => Promise<number>
isAirPlayActive () => Promise<boolean>
isAirPlayAvailable () => Promise<boolean>
isDestroyed () => Promise<boolean>
isLive () => Promise<boolean>
isMuted () => Promise<boolean>
isPaused () => Promise<boolean>
isPlaying () => Promise<boolean>
loadSource (config: SourceConfig) => void
mute () => void
pause () => void
play () => void
seek (time: number) => void
setVolume (volume: number) => void
unload () => void
unmute () => void

Methods

Method Modifiers Description
componentDidMount()
componentWillUnmount()
render()
Clone this wiki locally