4ertuk / audioview Goto Github PK
View Code? Open in Web Editor NEWAndroid audio view / MediaPlayer wrapper
License: Boost Software License 1.0
Android audio view / MediaPlayer wrapper
License: Boost Software License 1.0
Subj.
P.S.:
I #2 I've added the listener for the AudioPrepared event. I think it is useful. But don't see it in 0.4 release. That is okay? :)
How to put progressbar when audio load from uri
At layout editor mode , i`am facing this issue when layout is rendering
java.lang.NoClassDefFoundError: Could not initialize class android.media.MediaPlayer
at com.keenfin.audioview.AudioView.initMediaPlayer(AudioView.java:141) at com.keenfin.audioview.AudioView.onAttachedToWindow(AudioView.java:221)
Xml code :
<com.keenfin.audioview.AudioView
android:id="@+id/audioView"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="@drawable/audio_view_bg"
app:customLayout="@layout/audio_view"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/constraintLayout"/>
I think isInEditMode() functions is not working properly ins this case
Hi! It's me again! I've tested your fix for #8 and it is working. But now I don't have time for track. :(
java.lang.NoClassDefFoundError: Could not initialize class android.media.MediaPlayer
at com.keenfin.audioview.AudioView.initMediaPlayer(AudioView.java:141)
at com.keenfin.audioview.AudioView.onAttachedToWindow(AudioView.java:221)
at android.view.View.dispatchAttachedToWindow(View.java:19575)
at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3430)
at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3437)
at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3437)
at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3437)
at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3437)
at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3437)
at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3437)
at android.view.AttachInfo_Accessor.setAttachInfo(AttachInfo_Accessor.java:42)
at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:335)
at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:396)
at com.android.tools.idea.layoutlib.LayoutLibrary.createSession(LayoutLibrary.java:209)
at com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:608)
at com.android.tools.idea.rendering.RenderTask.lambda$inflate$6(RenderTask.java:734)
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Hi,
We love your library, but it would be great to know what license it's released as. I don't see that information provided, so if I missed it apologies. Thanks!
How I can setup AudioView in ViewPager? Should I use AudioView2? Or can go with AudioView?
android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
I am receiving this when I am trying to go with AudioView inside FragmentStatePagerAdapter.
Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{458d90f u0 com.hello.testaudio/com.keenfin.audioview.AudioService}
I used AudioView2, when start、pause and then start again crashed
Log :
E/AndroidRuntime: FATAL EXCEPTION: main
Process: biz.seeyou, PID: 2982
java.lang.IllegalThreadStateException
at java.lang.Thread.start(Thread.java:744)
at com.keenfin.audioview.AudioService.startUpdateThread(AudioService.java:175)
at com.keenfin.audioview.AudioService.start(AudioService.java:344)
at com.keenfin.audioview.AudioService.controlAudio(AudioService.java:216)
at com.keenfin.audioview.AudioView2.onClick(AudioView2.java:209)
at android.view.View.performClick(View.java:6291)
at android.view.View$PerformClick.run(View.java:24931)
at android.os.Handler.handleCallback(Handler.java:808)
at android.os.Handler.dispatchMessage(Handler.java:101)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7529)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
Does it support for UI customization. I would like to build my own UI
When I set data source as url in using Uri.parse(url) AudioView progress bar keeps loading & shows infinity symbol but when play button is clicked, audioview plays audio & infinity symbol changes to elapsed/total but seekbar keeps loading & unable to seek.
after setting data source file path start function is not working.
because mIsPrepared is false in audioview.
then after pressing the play button audio played
Is there any built in function that plays next / previous track programmatically in AudioView if a list of audios was provided ?
customize dialog layout Dismiss error.
I`am trying to implement bulk adding Uris using this code
val list : MutableList = ArrayList()
list.add(Uri.parse("file:///data/user/0/com.example/cache/audio2878360197049414151.tmp"))
But it returns this error
AudioView supports only String, Uri, FileDescriptor data sources now.
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.