My Scenario is that I have two fragment
1st Fragment Show All Audios
2nd Fragment Show Recently Played Audios
Visualizer Show on Both Fragments of the recycler view Position of the currently playing item
` public void enableVisulizer(BarVisualizer barVisualizer) {
barVisualizer.setVisibility(View.VISIBLE);
barVisualizer.setColor(context.getResources().getColor(R.color.equalizerAnimatedColor));
barVisualizer.setDensity(20);
barVisualizer.setPlayer(PlayerService.exoPlayerSessionID);
}`
This method is called the first time, then starts the visualizer, while calling from another fragment to start the visualizer at that position, then the visualizer gets stuck at the first position (stops playback).
My Scenario is that I have two fragment
1st Fragment Show All Audios
2nd Fragment Show Recently Played Audios
Visualizer Show on Both Fragments of the recycler view Position of the currently playing item
` public void enableVisulizer(BarVisualizer barVisualizer) {
This method is called the first time, then starts the visualizer, while calling from another fragment to start the visualizer at that position, then the visualizer gets stuck at the first position (stops playback).