Open SalahAdDin opened 2 years ago
@SalahAdDin Can you provide error log?
@SalahAdDin Can you provide error log?
[ +137 ms] I/ExoPlayerImpl( 5641): Init 8cc2ca5 [ExoPlayerLib/2.15.1] [generic_x86, Android SDK built for x86, unknown, 23]
[ +368 ms] I/ExoPlayerImpl( 5641): Init 55a8915 [ExoPlayerLib/2.15.1] [generic_x86, Android SDK built for x86, unknown, 23]
[ +155 ms] W/VideoCapabilities( 5641): Unrecognized profile/level 0/0 for video/mpeg2
[ +2 ms] W/VideoCapabilities( 5641): Unrecognized profile/level 0/2 for video/mpeg2
[ ] W/VideoCapabilities( 5641): Unrecognized profile/level 0/3 for video/mpeg2
[ +37 ms] I/VideoCapabilities( 5641): Unsupported profile 4 for video/mp4v-es
[ +18 ms] I/OMXClient( 5641): Using client-side OMX mux.
[ +133 ms] E/OMXNodeInstance( 5641): setConfig(1:google.mp3.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001)
[ ] I/ACodec ( 5641): codec does not support config priority (err -2147483648)
[ ] E/OMXNodeInstance( 5641): setConfig(1:google.mp3.decoder, ConfigOperatingRate(0x6f800003)) ERROR: Undefined(0x80001001)
[ ] I/ACodec ( 5641): codec does not support config operating rate (err -2147483648)
[+5288 ms] E/ExoPlayerImplInternal( 5641): Playback error
[ ] E/ExoPlayerImplInternal( 5641): com.google.android.exoplayer2.ExoPlaybackException: Source error
[ ] E/ExoPlayerImplInternal( 5641): at com.google.android.exoplayer2.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:624)
[ ] E/ExoPlayerImplInternal( 5641): at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:594)
[ ] E/ExoPlayerImplInternal( 5641): at android.os.Handler.dispatchMessage(Handler.java:98)
[ ] E/ExoPlayerImplInternal( 5641): at android.os.Looper.loop(Looper.java:148)
[ ] E/ExoPlayerImplInternal( 5641): at android.os.HandlerThread.run(HandlerThread.java:61)
[ ] E/ExoPlayerImplInternal( 5641): Caused by: com.google.android.exoplayer2.ParserException: Loading finished before preparation is complete.
[ ] E/ExoPlayerImplInternal( 5641): at com.google.android.exoplayer2.source.ProgressiveMediaPeriod.maybeThrowPrepareError(ProgressiveMediaPeriod.java:240)
[ ] E/ExoPlayerImplInternal( 5641): at com.google.android.exoplayer2.source.MaskingMediaPeriod.maybeThrowPrepareError(MaskingMediaPeriod.java:154)
[ ] E/ExoPlayerImplInternal( 5641): at com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:995)
[ ] E/ExoPlayerImplInternal( 5641): at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:482)
[ ] E/ExoPlayerImplInternal( 5641): ... 3 more
@jhomlala This issue also occurs on android version 10.
Example to reproduce is the official cache example in this repository.
It is sometimes able to play the video when I navigate back while the video is still playing but only plays up to the buffered position.
On the contrary when an mp4 video is used it works without errors.
[✓] Flutter (Channel stable, 3.3.9, on Linux 6.1.1-arch1-1, locale en_GB.UTF-8)
• Flutter version 3.3.9 on channel stable at /home/path/to/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision b8f7f1f986 (5 weeks ago), 2022-11-23 06:43:51 +0900
• Engine revision 8f2221fbef
• Dart version 2.18.5
• DevTools version 2.15.0
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
• Android SDK at /home/path/to/android/sdk
• Platform android-33, build-tools 33.0.0
• Java binary at: /home/path/to/jre/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
Version: ^0.0.83
Device: Huawei Y9 prime
OS: Android 10 (API 29)
History check I checked all issues and i couldn't fine anything related this issue.
Describe the bug We created a widget to handle all videos on our application with a cache by default; we tested it on latest Android versions and it does no show any problem, but when we test it on old Android version, we get
Video player had error com.google.android.exoplayer2.ExoPlaybackException: Source error
.We know it is related to cache cause if we remove the cache configuration, we have no any error.
To Reproduce Steps to reproduce the behavior:
*Example code
cached_network_video.dart
main
:Expected behavior It should show the video as normal it does on superior android versions.
Screenshots
Flutter doctor
Better Player version
Smartphone (please complete the following information):
Additional context It happens on versions earlier to Android 7.0(API 24).