Cleveroad / Cleveroad/WaveInApp

Cannot initialise visualizer engine, error -3

Open
#52 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
1.8k
Forks
319
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.