Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • Parameters

    • index: number

    Returns ZegoMediaPlayerImpl

Properties

Private _index

_index: number

Methods

enableAux

  • enableAux(enable: boolean): Promise<void>
  • Parameters

    • enable: boolean

    Returns Promise<void>

enableRepeat

  • enableRepeat(enable: boolean): Promise<void>
  • Parameters

    • enable: boolean

    Returns Promise<void>

getAudioTrackCount

  • getAudioTrackCount(): Promise<number>

getCurrentProgress

  • getCurrentProgress(): Promise<number>

getCurrentState

getIndex

  • getIndex(): number

getPlayVolume

  • getPlayVolume(): Promise<number>

getPublishVolume

  • getPublishVolume(): Promise<number>

getTotalDuration

  • getTotalDuration(): Promise<number>

loadResource

muteLocal

  • muteLocal(mute: boolean): Promise<void>
  • Parameters

    • mute: boolean

    Returns Promise<void>

off

  • off<MediaPlayerEventType>(event: MediaPlayerEventType, callback?: ZegoMediaPlayerListener[MediaPlayerEventType]): void
  • Type parameters

    Parameters

    • event: MediaPlayerEventType
    • Optional callback: ZegoMediaPlayerListener[MediaPlayerEventType]

    Returns void

on

  • on<MediaPlayerEventType>(event: MediaPlayerEventType, callback: ZegoMediaPlayerListener[MediaPlayerEventType]): void
  • Type parameters

    Parameters

    • event: MediaPlayerEventType
    • callback: ZegoMediaPlayerListener[MediaPlayerEventType]

    Returns void

pause

  • pause(): Promise<void>
  • Returns Promise<void>

resume

  • resume(): Promise<void>
  • Returns Promise<void>

seekTo

setAudioTrackIndex

  • setAudioTrackIndex(index: number): Promise<void>

setPlaySpeed

  • setPlaySpeed(speed: number): Promise<void>
  • Parameters

    • speed: number

    Returns Promise<void>

setPlayVolume

  • setPlayVolume(volume: number): Promise<void>

setPlayerView

  • setPlayerView(view: ZegoView): Promise<void>
  • Parameters

    Returns Promise<void>

setProgressInterval

  • setProgressInterval(millisecond: number): Promise<void>

setPublishVolume

  • setPublishVolume(volume: number): Promise<void>

setVolume

  • setVolume(volume: number): Promise<void>
  • Parameters

    • volume: number

    Returns Promise<void>

start

  • start(): Promise<void>
  • Returns Promise<void>

stop

  • stop(): Promise<void>
  • Returns Promise<void>

Generated using TypeDoc