THEOplayer / android-sdk-starter-project

This Android project is an example how to integrate THEOplayer into an Android app.
https://www.theoplayer.com
8 stars 2 forks source link

Unable to enable/disable Volume value. #4

Open AshishJ87 opened 3 years ago

AshishJ87 commented 3 years ago

Hi I am trying to enable/disable volume value but it's not working. tried 2 approach

  1. theoPlayerView.getPlayer().setVolume(volume); 0>>it mute the sound 1 or 100 >>it doesn't unmute the sound. 2.theoPlayerView.getPlayer().getAudioTracks().getItem(0).setEnabled(true); //Always getting exception java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 //code is related to Android SDK.