You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
E/flutter ( 2622): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(VideoError, Video player had error com.google.android.exoplayer2.ExoPlaybackException: Source error, null, null)
E/flutter ( 2622):
E/FlutterJNI( 2622): Failed to decode image
E/FlutterJNI( 2622): android.graphics.ImageDecoder$DecodeException: Failed to create image decoder with message 'unimplemented'Input contained an error.
E/FlutterJNI( 2622): at android.graphics.ImageDecoder.nCreate(Native Method)
E/FlutterJNI( 2622): at android.graphics.ImageDecoder.access$200(ImageDecoder.java:172)
E/FlutterJNI( 2622): at android.graphics.ImageDecoder$ByteBufferSource.createImageDecoder(ImageDecoder.java:242)
E/FlutterJNI( 2622): at android.graphics.ImageDecoder.decodeBitmapImpl(ImageDecoder.java:2015)
E/FlutterJNI( 2622): at android.graphics.ImageDecoder.decodeBitmap(ImageDecoder.java:2008)
E/FlutterJNI( 2622): at io.flutter.embedding.engine.FlutterJNI.decodeImage(FlutterJNI.java:524)
E/FlutterJNI( 2622): Failed to decode image
E/FlutterJNI( 2622): android.graphics.ImageDecoder$DecodeException: Failed to create image decoder with message 'unimplemented'Input contained an error.
E/FlutterJNI( 2622): at android.graphics.ImageDecoder.nCreate(Native Method)
E/FlutterJNI( 2622): at android.graphics.ImageDecoder.access$200(ImageDecoder.java:172)
E/FlutterJNI( 2622): at android.graphics.ImageDecoder$ByteBufferSource.createImageDecoder(ImageDecoder.java:242)
E/FlutterJNI( 2622): at android.graphics.ImageDecoder.decodeBitmapImpl(ImageDecoder.java:2015)
E/FlutterJNI( 2622): at android.graphics.ImageDecoder.decodeBitmap(ImageDecoder.java:2008)
E/FlutterJNI( 2622): at io.flutter.embedding.engine.FlutterJNI.decodeImage(FlutterJNI.java:524)
To use http:// video source, on iOS and Android, the following changes, as described in the video_player package, may help:
iOS
If you need to access videos using http (rather than https) URLs, you will need to add the appropriate NSAppTransportSecurity permissions to your app's Info.plist file, located in <project root>/ios/Runner/Info.plist. See Apple's documentation to determine the right combination of entries for your use case and supported iOS versions.
Android
If you are using network-based videos, ensure that the following permission is present in your Android Manifest file, located in <project root>/android/app/src/main/AndroidManifest.xml:
On Android, add the following in AndroidManifest.xml:
Using a video source from
http://
instead ofhttps://
will cause anUnhandled Exception
on Android.Let's take this video link as an example:
<video src="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4">
To use
http://
video source, on iOS and Android, the following changes, as described in the video_player package, may help:On Android, add the following in
AndroidManifest.xml
:Clean up, update, and re-run
$ flutter clean && flutter pub get && flutter run --debug
No more errors while accessing the video file from
http://
.The text was updated successfully, but these errors were encountered: