You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are attempting to use multiple media players in your application, or using media players from multiple threads, you may need to take some extra care so that you do not have multiple threads calling into LibVLC concurrently. You may encounter subtle bugs and races that are very difficult to diagnose.
Do not update ui from VLC native thread
In addition, you must take care not to update Swing UI components from the native thread - all Swing UI updates are supposed to go via the Swing Event Dispatch Thread (EDT).
使用JAVA平台的Vlc播放器实装。
https://github.com/caprica/vlcj
具体的思路就是实现desktopMain里的PlayerStateMonitoryRepository, 和MediaControllerRepository接口。
调用vlc的逻辑和实装放在:core:player里比较好。
https://github.com/andannn/Melodify/blob/master/core/data/src/commonMain/kotlin/com/andannn/melodify/core/data/repository/PlayerStateMonitoryRepository.kt
https://github.com/andannn/Melodify/blob/master/core/data/src/commonMain/kotlin/com/andannn/melodify/core/data/repository/MediaControllerRepository.kt
The text was updated successfully, but these errors were encountered: