MrJai / flutter_to_airplay

Flutter plugin that offers two widgets, one to play a video for a given URL or file path using native AVPlayer and second with an option to airplay it on available Apple devices.
MIT License
30 stars 24 forks source link

null pointer exception on FlutterAVPlayer.swift #7

Closed MeshkaniMohammad closed 4 years ago

MeshkaniMohammad commented 4 years ago
Fatal error: Unexpectedly found nil while unwrapping an Optional value: file /Users/MyUserName/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_to_airplay-1.0.3/ios/Classes/FlutterAVPlayer.swift, line 34
Lost connection to device.

I just got this error while trying to navigate my video player screen. I was working with ios Simulator.

MrJai commented 4 years ago

Thank you @MeshkaniMohammad. I have submitted a new version with the fix, you can update your package. Please update me so that I can close this issue. Feel free to comment if you see any other issue.

MeshkaniMohammad commented 4 years ago

@MrJai Thanks man, you did a great job. Problem is fixed and we will publish the app for testing