new EmpTech()
EmpTech - General tech implementation, not specific to a certain tech
Methods
-
addAudioTrack(kind [, label] [, mediaInfo] [, language])
-
Creates and returns an AudioTrack
Parameters:
Name Type Argument Default Description kindString AudioTrackKind
labelString <optional>
label to identify audio track
mediaInfoMediaInfo <optional>
null Mediainfo object about the audio track
languageString <optional>
Language
Returns:
AudioTrack
-
audioTracks()
-
Get the available AudioTracks
Returns:
- Type
- * | AudioTrackList
-
languageCode()
-
Returns the language code of a language string: 'en-English' to 'en' or returns the original string if '-' can't be found
Returns:
language code
- Type
- String
-
live()
-
Is current playback live or not?
Returns:
whether or not current playback is live
- Type
- Boolean
EMP Html5 Player