interface represents audio track interface. Subinterface of Media

Hierarchy

Methods

  • cast AudioTrack to Media parent interface.

    Returns Media

  • Returns string

    current loaded audio track.

  • Returns number

    playback end position

  • Returns number

    current audio track playback volume

  • Returns boolean

    loop playback flag

  • Returns boolean

    playback active flag.

  • Load audio track file. For now only supports .m4a, .ogg, .mp3 files.

    Parameters

    • file: string

      absolute path for audio track file.

    Returns void

  • pause Video playback

    Returns void

  • starts Video playback

    Returns void

  • resume paused Video playback

    Returns void

  • set playback end position.

    Parameters

    • position: number

      playback end position

    Returns void

  • set playback looping.

    Parameters

    • looped: boolean

      loop playback flag

    Returns void

  • set playback start position.

    Parameters

    • position: number

      playback start position

    Returns void

  • set current audio track playback volume.

    Parameters

    • volume: number

      new audio volume. must be in range [0, 1]

    Returns void

  • stop Video playback

    Returns void