Audio Class
This class is for Audio operations. It works with Player
Methods
changeAudioWithOrder
(
-
order
)
Boolean
-
order
Changes audio tracks with given order. It enables given index and disables other audio elements Based on HTML5 video element audioTracks
Parameters:
-
orderNumber- 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