befovy / fijkplayer

ijkplayer for flutter. ijkplayer 的 flutter 封装。 Flutter video/audio player. Flutter media player plugin for android/iOS based on ijkplayer. fijkplayer 是基于 ijkplayer 封装的 flutter 媒体播放器,开箱即用,无需编译 ijkplayer
https://fijkplayer.befovy.com
MIT License
1.65k stars 354 forks source link

[BUG] iOS crash when exit to device background #494

Open MomoDeLuxe opened 2 years ago

MomoDeLuxe commented 2 years ago

Describe the bug App crash iOS when exit to background

What attempts have you made to resolve this error ? Default template with release build iOS. Test app via TestFlight

To Reproduce

Steps to reproduce the behavior:

  1. Build iOS release.
  2. Upload to Apple connect
  3. Install on device
  4. When player on exit app iOS any OS version or model APP crash

Expected behavior To exit APP.

fijkplayer version Latest v0.10.1

Smartphone (please complete the following information):

Additional context Crash log: Thread 36 name: Thread 36 Crashed: 0 Flutter 0x0000000106e15b8c -[FlutterEngine textureFrameAvailable:] + 32 1 Runner 0x0000000104709c28 vout_display_overlay + 941096 (ijksdl_vout_ios_gles2.m:146) 2 Runner 0x00000001046f48e0 video_display2 + 854240 (ff_ffplay.c:1101) 3 Runner 0x00000001046f29a0 video_refresh_thread + 846240 (ff_ffplay.c:3840) 4 Runner 0x00000001046f6d58 SDL_RunThread + 863576 (ijksdl_thread_ios.m:33) 5 libsystem_pthread.dylib 0x00000001dbd9c3a4 _pthread_start + 116 (pthread.c:891) 6 libsystem_pthread.dylib 0x00000001dbd9a9fc thread_start + 8

alexmercerind commented 2 years ago

Do you have any solution? 😕

alexmercerind commented 2 years ago

Just wanted y'all to know that you can use my fork: https://github.com/alexmercerind/fijkplayer.

It doesn't crash on iOS 16. The workaround isn't ideal, but my intended approach wasn't working.

Thanks!

fingerart commented 1 year ago

Thanks, very useful given the current maintenance status of the project.