wang-bin / fvp

Flutter video player plugin for all desktop+mobile platforms. download prebuilt examples from github actions. https://pub.dev/packages/fvp
BSD 3-Clause "New" or "Revised" License
126 stars 20 forks source link

web compilation #9

Closed abdelaziz-mahdy closed 10 months ago

abdelaziz-mahdy commented 10 months ago

using with video_player will make the code not compile on web

can the registerWith be wrapped in conditional import ? like this? https://github.com/AR-CADE/petit_player/blob/main/lib/fvp_pollyfill.dart

wang-bin commented 10 months ago

I can add an option for registerWith to select platforms to enable

wang-bin commented 10 months ago

what you can do now is

if (!dart.library.html)
    registerWith();
abdelaziz-mahdy commented 10 months ago

thank you