Audio Visualizer extension
BarVisualizer: Layout , Color : RBG color input , Density : you can give value in Int or float
SquareBarVisualizer: Layout , Color : RBG color input , Density : you can give value in Int or float
CircleVisualizer: Layout , Color : RBG color input , StrokeWidth : you can give value in Int , Radius : you can give value in Int or float
LineBarVisualizer: Layout , Color : RBG color input , StrokeWidth : you can give value in Int , Density : you can give value in Int or float
CircleBarVisualizer: Layout , Color : RBG color input
LineVisualizer: Layout , Color : RBG color input , StrokeWidth : you can give value in Int
SoundLevel: Left Sound float value between 1.0 to 0 and Right Sound float value between 1.0 to 0
AskForPermission: You can need to ask for
android.permission.RECORD_AUDIO
permission
Reset: Using this block you can reuse the audio player or recover from error state
Pause: This block will pause the current playing Audio
Start: This block will pause the current playing Audio
Release: Audio Visualizer is no longer being used, then call
release()
Stop: This block will end the current playing Audio
GetDuration: This block will return the current playing Audio Duration
GetAudioSessionId: This block will return the current Audio session id
IsLooping: This block will return the current Audio is in loop or not
GetCurrentPosition: This block will return the current Audio playing Position
GetCurrentPosition: This block will return the Audio is playing or not
DataSource: Using this block you can set the audio source
Loop: Using this block you can set the audio source in loop playing
OnComplete: This block will trigger when playing audio over
OnError: This block will trigger if any error occur
Demo:
Line Visualizer :
Bar Visualizer
Circle Visualizer
Circle Bar Visualizer
SquareBar Visualizer
Line Bar Visualizer
Demo Blocks
Note: Before creating View be sure you have set the Audio source
Extension contain these permission:
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
You need to ask for permission using kodular blocks or use the AskForPermission block
Audio visualizer Library
GautamChibde/android-audio-visualizer: Audio visualisation for android MediaPlayer (github.com)
Download:
Demo apk : AudioVisualizer.apk (5.3 MB)
Demo aia file: AudioVisualizer.aia (44.1 KB)
AudioVisualizer 1.0
extension - com.shreya.AudioVisualizer.aix (37.9 KB)
AudioVisualizer 1.1
Added READ_EXTERNAL_STORAGE
permission and fix audio Uri error
extension -
com.shreya.AudioVisualizer.aix (38.1 KB)
AudioVisualizer 1.2
BufferingUpdate: This block will return the Buffering in number
OnPrepared: This block will trigger when audio is ready
UrlSource: This can block play audio from url. This block is Buggy and sometime it not work i don’t know why this happening. Block code is correct as per document
com.shreya.AudioVisualizer.aix (40.1 KB)
AudioVisualizer 1.3
com.shreya.AudioVisualizer.aix (30.3 KB)
AudioVisualizer 1.4
Support
If you liked my work, you can support me - paypal.me