Seamless video Loop with VideoView

前端 未结 8 1980
春和景丽
春和景丽 2021-01-30 12:03

I have the following code to take a video as a raw resource, start the video and loop it but I need the video to loop seamlessly as of now when it comes to an end of the clip an

相关标签:
8条回答
  • 2021-01-30 13:08

    In Kotlin simply use

    videoView.setOnPreparedListener { it.isLooping = true }
    
    0 讨论(0)
  • 2021-01-30 13:09

    Here is answer friends, you must use vv.resume in setOnCompletionListener class

    [https://stackoverflow.com/a/27606389/3414469][1]

    0 讨论(0)
提交回复
热议问题