Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ZegoMediaPlayerImpl

Implements

Index

Constructors

constructor

  • Parameters

    • index: number

    Returns ZegoMediaPlayerImpl

Properties

Private _index

_index: number

Methods

Private _callMethod

  • _callMethod<T>(method: string, args?: undefined | {}): Promise<T>
  • Type parameters

    • T

    Parameters

    • method: string
    • Optional args: undefined | {}

    Returns Promise<T>

enableAccurateSeek

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

getNetworkResourceCache

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>

setNetworkBufferThreshold

  • setNetworkBufferThreshold(threshold: number): Promise<void>

setNetworkResourceMaxCache

  • setNetworkResourceMaxCache(time: number, size: number): Promise<void>

setPlaySpeed

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

    • speed: number

    Returns Promise<void>

setPlayVolume

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

    • volume: number

    Returns Promise<void>

setPlayerView

  • setPlayerView(playerID: number): Promise<void>
  • Parameters

    • playerID: number

    Returns Promise<void>

setProgressInterval

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

setPublishVolume

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

setVoiceChangerParam

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>

takeSnapshot

Generated using TypeDoc