Skip to content

Commit

Permalink
GS-10328 video reconnect issue (#2297)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkhoudor authored and github-actions[bot] committed Sep 19, 2023
1 parent 3188e09 commit a6656ae
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/ui/widgets/video_player/picnic_video_player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,13 @@ class _PicnicVideoPlayerState extends State<PicnicVideoPlayer> {
void _handleVideoError(VideoPlayerController controller) {
_errorDescription = controller.value.errorDescription;
_log("error in video playback of ${widget.url}\n: $_errorDescription");
Timer(
const Duration(milliseconds: 500),
//ignore: prefer-extracting-callbacks
() async {
unawaited(_ensureVideoController());
},
);
}

void _onAspectRatioChanged(double aspectRatio) {
Expand Down

0 comments on commit a6656ae

Please sign in to comment.