betterplayer
betterplayer copied to clipboard
startAt settings error - Andoird [BUG]
Describe the bug A clear and concise description of what the bug is.
To Reproduce The progress bar shows the time set in startAt. however, the video starts from zero point and the progress bar is stopped in the time that was defined in the startAt.
When the video reaches the defined point, then the progress bar starts working again.
On iOs everything is working fine, with the same code
*Example code
BetterPlayerConfiguration( aspectRatio: 16 / 9, autoPlay: false, startAt: Duration(23), deviceOrientationsAfterFullScreen: [ DeviceOrientation.portraitUp, ], )
Expected behavior The video should start at the time set in startAt
Screenshots
Flutter doctor Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.0.1, on macOS 12.3.1 21E258 darwin-x64, locale pt-BR) [✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1) [✓] Xcode - develop for iOS and macOS (Xcode 13.4) [✓] Chrome - develop for the web [✓] Android Studio (version 2021.2) [✓] VS Code (version 1.67.2) [✓] Connected device (5 available) [✓] HTTP Host Availability
Better Player version better_player: ^0.0.83
Smartphone (please complete the following information): Emulator and Real Device (any)
See this: #1031. Try commenting the line exoPlayer.seekTo(0) at the end of setupPlayerNotification() in BetterPlayer.kt and see if it fixes the issue.