Pato05 / just_audio_media_kit

A platform interface for just_audio which wraps media_kit
The Unlicense
8 stars 11 forks source link

Add `libmpv` parameter to `ensureInitialized` #9

Closed lazykern closed 5 months ago

lazykern commented 5 months ago

Hi, thank you for making this library, I've been using it for a while now. However, there's a problem with the media_kit library on Windows which leads to a delay between tracks. I just found a way to fix it by using the latest version of libmpv (maybe because it was using old libmpv). This leads to this PR, I added libmpv parameter to the ensureInitialized method for both JustAudioMediaKit and MediaKit so users can set the path to libmpv dynamic library by themselves (if they need to).

Pato05 commented 5 months ago

Nice! Though I just noticed it would be better to move the call to MediaKit.ensureInitialized() inside the ensureInitialized method.