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

Cannot initialise visualizer engine, error -3 #52

Open
olliejm opened this issue May 15, 2018 · 0 comments
Open

Cannot initialise visualizer engine, error -3 #52

olliejm opened this issue May 15, 2018 · 0 comments
Labels

Comments

@olliejm
Copy link

olliejm commented May 15, 2018

First of all thanks for providing this library, it looks great.

Only thing is, I’m having a problem where I run into the following error:

java.lang.RuntimeException: Cannot initialize Visualizer engine, error: -3

The error is triggered at the following line:

VisualizerDbmHandler vizualizerHandler
= DbmHandler.Factory
.newVisualizerHandler(
PlayActivity.this,
state.getExtras().getInt(StreamingService.AUDIO_SESSION_ID)
);

The AUDIO_SESSION_ID is provided by an ExoPlayer instance in a background service, though it seems the value it is returning is 0, which I read is deprecated? I have also made sure to request runtime RECORD_AUDIO permission before attempting to initialise the visualiser.

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

No branches or pull requests

2 participants