muslimtv / flutter_playout

AV Playout in Flutter
BSD 3-Clause "New" or "Revised" License
152 stars 94 forks source link

VideoPlayer.swift error in .Pubcache file on IOS #72

Open huxaiphaer opened 3 years ago

huxaiphaer commented 3 years ago

Am trying to run the project on IOS but am facing this error :

/Users/lutaayaidris/.pub-cache/hosted/pub.dartlang.org/flutter_playout-1.0.42/ios/Classes/VideoPlayer.swift:281:21: error: reference to property 'player' in closure requires explicit 'self.' to make capture semantics explicit
                        player?.play()
                        ^
                        self.

    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description

I tried this : flutter pub cache repair

but still, the error keeps on popping, any solution for this?

Thanks