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
77 stars 6 forks source link

Video player not working on linux #14

Open AnthonyGambache opened 1 month ago

AnthonyGambache commented 1 month ago

Hi, I've tried to use the VideoPlayer on linux but i get an error "No toolkit found". Thanks

AnthonyGambache commented 1 month ago

Caused by: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found

KhubaibKhan4 commented 1 month ago

Linux support might not be working. In the upcoming update, this issue will be resolved.

AnthonyGambache commented 1 month ago

I still have the problem under linux, I get the error :

Caused by: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found

KhubaibKhan4 commented 1 month ago

Let me test it on Linux.

KhubaibKhan4 commented 1 week ago

This error on linux support is due to Graphics issues. Please update your graphics else add this -Dprism.order=sw line inside the gradle.properties. JavaFx requires the Graphics Acceleration and for that you need to have Compactible Drivers. By adding the above line, it will forcefully stop that for JavaFx. If you still face any issues. Please report here.