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.64k stars 352 forks source link

[BUG]Error during attachToGLContext #249

Open wy353208214 opened 4 years ago

wy353208214 commented 4 years ago

Bug Description 第一次安装并打开进入播放界面会报如crash,再次启动进入就不会再报错了。 [ERROR:flutter/shell/platform/android/platform_view_android_jni.cc(39)] java.lang.RuntimeException: Error during attachToGLContext (see logcat for details) at android.graphics.SurfaceTexture.attachToGLContext(SurfaceTexture.java:289) 2020-06-04 11:48:05.102 15266-15358/com.example.qpidnetwork A/flutter: [FATAL:flutter/shell/platform/android/platform_view_android_jni.cc(123)] Check failed: CheckException(env).

fijkplayer version ^0.8.4

Smart phone information

Flutter doctor

` flutter doctor -v
[✓] Flutter (Channel stable, v1.12.13+hotfix.8, on Mac OS X 10.15.5 19F101, locale zh-Hans-CN) • Flutter version 1.12.13+hotfix.8 at /Users/steven/Flutter/flutter • Framework revision 0b8abb4724 (4 months ago), 2020-02-11 11:44:36 -0800 • Engine revision e1e6ced81d • Dart version 2.7.0 [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3) • Android SDK at /Users/steven/Library/Android/sdk • Android NDK at /Users/steven/Library/Android/sdk/ndk-bundle • Platform android-29, build-tools 29.0.3 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 11.4.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 11.4.1, Build version 11E503a • CocoaPods version 1.9.1

[✓] Android Studio (version 4.0) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 46.0.2 • Dart plugin version 193.7361 • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[!] IntelliJ IDEA Ultimate Edition (version 2018.3) • IntelliJ at /Applications/IntelliJ IDEA.app ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. • For information about installing plugins, see https://flutter.dev/intellij-setup/#installing-the-plugins

[!] VS Code (version 1.45.1) • VS Code at /Applications/Visual Studio Code.app/Contents ✗ Flutter extension not installed; install from https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter `

befovy commented 4 years ago

你是使用纯 flutter app,还是混合栈开发的 android app?

wy353208214 commented 4 years ago

你是使用纯 flutter app,还是混合栈开发的 android app?

纯flutter

patton88 commented 4 years ago

是纯flutter

ybmj@vip.163.com

From: wangyang1989 Date: 2020-06-29 08:44 To: befovy/fijkplayer CC: Subscribed Subject: Re: [befovy/fijkplayer] [BUG]Error during attachToGLContext (#249) 你是使用纯 flutter app,还是混合栈开发的 android app? 纯flutter ― You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

patton88 commented 4 years ago

我用的是纯flutter,我的QQ:153248043。发现问题的代码在附件中,编译的是fijkplayer-0.8.4\example下面的代码。

你的邮箱附件有限制,所以删除了下面目录: fijkplayer-0.8.4-0.rar\fijkplayer-0.8.4\example.dart_tool\

ybmj@vip.163.com

From: wangyang1989 Date: 2020-06-29 08:44 To: befovy/fijkplayer CC: Subscribed Subject: Re: [befovy/fijkplayer] [BUG]Error during attachToGLContext (#249) 你是使用纯 flutter app,还是混合栈开发的 android app? 纯flutter — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

befovy commented 4 years ago

@patton88 不是我的邮箱有限制,是github issue 自动发邮件,你回复的是 issues。 有问题可加钉钉交流群