@eluvio/elv-player-js 1.0.87 → 1.0.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eluvio/elv-player-js",
3
- "version": "1.0.87",
3
+ "version": "1.0.88",
4
4
  "description": "![Eluvio Logo](src/static/images/Logo.png \"Eluvio Logo\")",
5
5
  "main": "src/index.js",
6
6
  "license": "MIT",
@@ -735,7 +735,11 @@ class PlayerControls {
735
735
  }
736
736
 
737
737
  if(this.GetAudioTracks) {
738
- this.AddSetting({Retrieve: this.GetAudioTracks, Set: this.SetAudioTrack});
738
+ const tracks = (this.GetAudioTracks() || {}).options || [];
739
+
740
+ if(tracks.length > 1) {
741
+ this.AddSetting({Retrieve: this.GetAudioTracks, Set: this.SetAudioTrack});
742
+ }
739
743
  }
740
744
 
741
745
  if(this.GetTextTracks) {