Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visualizer Stop Playing when Call second time in a project #46

Open
adilomatom opened this issue Feb 22, 2022 · 0 comments
Open

Visualizer Stop Playing when Call second time in a project #46

adilomatom opened this issue Feb 22, 2022 · 0 comments

Comments

@adilomatom
Copy link

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant