KhubaibKhan4 / MediaPlayer-KMP

MediaPlayer-KMP is a Kotlin Multiplatform (KMP) library that allows you to display and play YouTube videos across Android, iOS, Web, and Desktop platforms using JetBrains Compose Multiplatform. It provides a unified API for video playback that seamlessly integrates into Kotlin's multiplatform ecosystem.
GNU General Public License v2.0
116 stars 8 forks source link

Disable autoplay #58

Closed DatL4g closed 1 week ago

DatL4g commented 2 weeks ago

Please provide an option to disable autoplay for YouTube videos.

I have a screen which displays movie details and want to add the trailer too but it should only play when the user starts it.

KhubaibKhan4 commented 2 weeks ago

Thank you for your suggestion. I'll definitely add this into the next update.

palade91 commented 1 week ago

I have the same issue, updated to 2.0.4, set autoPlay to false, video still starts playing by itself. I'm using it in an Android app.