Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Unable to enable/disable Volume value. #4

Open
AshishJ87 opened this issue Jan 6, 2021 · 0 comments
Open

Unable to enable/disable Volume value. #4

AshishJ87 opened this issue Jan 6, 2021 · 0 comments

Comments

@AshishJ87
Copy link

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.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant