wotomas / droid-vizu Goto Github PK
View Code? Open in Web Editor NEWDroid-vizu aims to provide customized visualization effects by easily swapping Renderer to get cool effects
License: Apache License 2.0
Droid-vizu aims to provide customized visualization effects by easily swapping Renderer to get cool effects
License: Apache License 2.0
What is error -3? Keeps coming from soundPlayerView.setMediaPlayer(mediaPlayer);
here's my code:
private void setUpVisualizer() {
SoundPlayerView soundPlayerView = findViewById(R.id.sound_player_view);
soundPlayerView.setMediaPlayer(mediaPlayer);
soundPlayerView.setPlayStopListener(new SoundPlayerView.OnMediaControlListener() {
@Override
public void onPlay() {
visualizer.play();
}
@Override
public void onStop() {
visualizer.stop();
}
});
visualizer.setMediaPlayer(mediaPlayer);
visualizer.setCurrentRenderer(new BarRenderer(16, PaintUtil.getBarGraphPaint(Color.RED)));
visualizer.setRippleColor(Color.RED);
}
XML file: (also tested it with the visualizer being inside the sound player view
<info.kimjihyok.ripplesoundplayer.RippleVisualizerView
android:id="@+id/visualizer"
android:layout_width="202dp"
android:layout_height="116dp"
android:layout_margin="16dp"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/albumView"
app:layout_constraintTop_toBottomOf="@+id/songNameView" />
<info.kimjihyok.ripplesoundplayer.SoundPlayerView
android:id="@+id/sound_player_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"/>
Full exception:
java.lang.RuntimeException: Unable to start activity ComponentInfo{theredspy15.fosyplayer/theredspy15.fosyplayer.MainActivity}: java.lang.RuntimeException: Cannot initialize Visualizer engine, error: -3
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2817)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
Caused by: java.lang.RuntimeException: Cannot initialize Visualizer engine, error: -3
at android.media.audiofx.Visualizer.<init>(Visualizer.java:218)
at info.kimjihyok.ripplesoundplayer.RippleVisualizerView.setMediaPlayer(RippleVisualizerView.java:65)
at theredspy15.fosyplayer.MainActivity.setUpVisualizer(MainActivity.java:174)
at theredspy15.fosyplayer.MainActivity.onCreate(MainActivity.java:77)
at android.app.Activity.performCreate(Activity.java:6975)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1213)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2770)
In droid-vizu-master\ripplesoundplayer\build.gradle file
com.novoda:bintray-release:0.4.0 must be updated to com.novoda:bintray-release:0.9
In droid-vizu-master\build.gradle file
allprojects {
repositories {
jcenter()
}
}
must be updated to
allprojects {
repositories {
google()
jcenter()
}
}
droid-vizu-master\app\src\main\res\raw\Imagination.mp3 file must be renamed to E:\android studio\droid-vizu-master\app\src\main\res\raw\imagination.mp3
In droid-vizu-master\ripplesoundplayer\build.gradle file
com.novoda:bintray-release:0.4.0 must be updated to com.novoda:bintray-release:0.9
In droid-vizu-master\build.gradle file
allprojects {
repositories {
jcenter()
}
}
must be updated to
allprojects {
repositories {
google()
jcenter()
}
}
droid-vizu-master\app\src\main\res\raw\Imagination.mp3 file must be renamed to droid-vizu-master\app\src\main\res\raw\imagination.mp3
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.