Audio Class

Defined in: src\player\audio.js:5

This class is for Audio operations. It works with Player

Index

Show:

Constructor

Audio ()

Methods

changeAudioWithOrder
(
  • order
)
Boolean

Changes audio tracks with given order. It enables given index and disables other audio elements Based on HTML5 video element audioTracks

Parameters:

  • order Number
    • Language order to change

Returns:

Boolean:

getCurrentAudioWithOrder () Number

It returns current audio order. It checks which audioTrack is enabled Usefull for UI to understand which language is available TODO It must return object. If video metadata is correct it returns language unicode and name

Returns:

Number:

order - It returns current audio index

There are no methods that match your current filter settings. You can change your filter settings in the index section on this page. index