I'm trying to control the volume of an Exoplayer isntance that is streaming DASH in my project using a seekbar. The issue I am coming up against is that my renderers and player are split up between classes a la the demo project. Currently my three main classes are my DashRendererBuilder and Player and Player activity. I have my seekbar in my Player activity and I'm wondering how I can reference the necessary player and renderer within my PlayerActivity in order to control the volume of my Exoplayer.
From past questions I have been informed that
exoPlayer.sendMessage(audioRenderer, MediaCodecAudioTrackRenderer.MSG_SET_VOLUME, 0.1f);
is the end message I am looking to send however as I have said due to everything being split between classes I am having trouble with the referencing of individual components.
Ideally I would like to be able to have two exoplayer instances with a seekbar controlling the mix of the two so that is my end goal.
It would be great to get some feedback or get pointed in the right direction for this problem so any and all help is much appreciated. Thanks very much guys!