GithubHelp home page GithubHelp logo

audioview's Issues

Playing next / previous track

Is there any built in function that plays next / previous track programmatically in AudioView if a list of audios was provided ?

Music stops on sreen rotation.

Subj.

P.S.:

  1. Раздел "From network uri" - линейный прогресс не останавливается. Пауза не нажимается. Время 89:48:04 всегда.
  2. Раздел "With custom layout" - круговой прогресс никогда не исчезает

setDataSource(List<Uri>) kotlin not working

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"))

binding.audioView.setDataSource(list)

But it returns this error
AudioView supports only String, Uri, FileDescriptor data sources now.

Crash in ViewPager

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.

java.lang.IllegalThreadStateException

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)

Issue in UI on playing audio from url

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.

Android 12 pending intent issue

Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.

java.lang.NoClassDefFoundError: Could not initialize class android.media.MediaPlayer

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

render issue for layout in my androix

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)

Time is not showing

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. :(
2019-04-19_15-24-19

AudioPreparedListener

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? :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.