Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Methods

emit

  • emit(eventName: string, ...args: any[]): void
  • Parameters

    • eventName: string
    • Rest ...args: any[]

    Returns void

enableAccurateSeek

enableAudioData

  • enableAudioData(enable: boolean): void

enableAux

  • enableAux(enable: boolean): void

enableFrequencySpectrumMonitor

  • enableFrequencySpectrumMonitor(enable: boolean, millisecond: number): void

enableLocalCache

  • enableLocalCache(enable: boolean, cacheDir: string): void

enableRepeat

  • enableRepeat(enable: boolean): void

enableVideoData

enableVoiceChanger

getAudioTrackCount

  • getAudioTrackCount(): number

getCurrentProgress

  • getCurrentProgress(): number

getCurrentRenderingProgress

  • getCurrentRenderingProgress(): number

getCurrentState

getIndex

  • getIndex(): number

getNativePlayer

  • getNativePlayer(): any
  • Returns any

getPlayVolume

  • getPlayVolume(): number

getPublishVolume

  • getPublishVolume(): number

getTotalDuration

  • getTotalDuration(): number

getWrapPlayer

  • getWrapPlayer(): any
  • Returns any

initPlayerInner

  • initPlayerInner(): void
  • Returns void

loadResource

  • Load local or network media resource.

    Available: since 1.3.4 Description: Load media resources. Use case: Developers can load the absolute path to the local resource or the URL of the network resource incoming. When to call: It can be called after the engine by [createEngine] has been initialized and the media player has been created by [createMediaPlayer]. Related APIs: Resources can be loaded through the [loadResourceWithPosition] or [loadResourceFromMediaData] function.

    Parameters

    • path: string

      The absolute resource path or the URL of the network resource and cannot be null or "". Android can set this path string with Uri.

    Returns Promise<ZegoMediaPlayerLoadResourceResult>

    Callback result of loading media resource.

muteLocal

  • muteLocal(mute: boolean): void

off

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

    Parameters

    • event: MediaPlayerEventType
    • callback: undefined | 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(): void

registerAudioDataPlugin

  • registerAudioDataPlugin(plugin: Number): void

registerVideoDataPlugin

  • registerVideoDataPlugin(plugin: Number): void

removeAllLister

  • removeAllLister(): void
  • Returns void

resume

  • resume(): void

seekTo

setAudioTrackIndex

  • setAudioTrackIndex(index: number): any

setNetworkResourceMaxCache

  • setNetworkResourceMaxCache(time: number, size: number): void

setPlayMediaStreamType

setPlaySpeed

  • setPlaySpeed(speed: number): void

setPlayVolume

  • setPlayVolume(volume: number): void

setPlayerView

setProgressInterval

  • setProgressInterval(millisecond: number): void

setPublishVolume

  • setPublishVolume(volume: number): void

setVolume

  • setVolume(volume: number): void

start

  • start(): void
  • Start playing.

    You need to load resources before playing

    Returns void

stop

  • stop(): void
  • Stop playing.

    Returns void

uninitPlayerInner

  • uninitPlayerInner(): void
  • Returns void

unregisterAudioDataPlugin

  • unregisterAudioDataPlugin(): void

unregisterVideoDataPlugin

  • unregisterVideoDataPlugin(): void

updatePosition

  • updatePosition(position: number[]): void

Generated using TypeDoc