Android-ScalableVideoView icon indicating copy to clipboard operation
Android-ScalableVideoView copied to clipboard

Bug: no audio after repeating

Open AndroidDeveloperLB opened this issue 6 years ago • 0 comments

I use this:

        videoView.setRawData(R.raw.test)
        videoView.isLooping = true
        videoView.setVolume(1f, 1f)
        videoView.prepare { videoView.start() }

And this in layout file:

<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent" android:layout_height="match_parent">

    <com.yqritc.scalablevideoview.ScalableVideoView
        android:id="@+id/videoView" android:layout_width="match_parent" android:layout_height="match_parent"
        app:scalableType="centerCrop"/>
</RelativeLayout>

Yet for some reason, after the first playback, I can't hear anything. How come?

Attached sample project. MyApplication.zip

AndroidDeveloperLB avatar Jul 05 '18 13:07 AndroidDeveloperLB