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

  • Parameters

    Returns Promise<void>

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>
  • Returns Promise<number>

getCurrentProgress

  • getCurrentProgress(): Promise<number>
  • Returns Promise<number>

getCurrentState

getIndex

  • getIndex(): number
  • Returns number

getNetworkResourceCache

getPlayVolume

  • getPlayVolume(): Promise<number>
  • Returns Promise<number>

getPublishVolume

  • getPublishVolume(): Promise<number>
  • Returns Promise<number>

getTotalDuration

  • getTotalDuration(): Promise<number>
  • Returns Promise<number>

loadResource

loadResourceWithConfig

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>
  • Parameters

    • index: number

    Returns Promise<void>

setNetworkBufferThreshold

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

    • threshold: number

    Returns Promise<void>

setNetworkResourceMaxCache

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

    • time: number
    • size: number

    Returns 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>
  • Parameters

    • millisecond: number

    Returns Promise<void>

setPublishVolume

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

    • volume: number

    Returns 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