Skip to content

Play Pause and 10sec forward backword option not appearing once seek to a position or clicking on 10sec forward backword buttons. #903

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
saiful00000 opened this issue Mar 22, 2025 · 1 comment

Comments

@saiful00000
Copy link

saiful00000 commented Mar 22, 2025

Once its start buffering when seeking the progress of by clicking 10sec forward or backward button its keep showing the Circular Progress Indicator even after video play completed.

Reproducible code:

import 'package:flutter/material.dart';
import 'package:video_player/video_player.dart';

class MovieVideoPlayer extends StatefulWidget {
  final String? url;

  const MovieVideoPlayer({super.key, required this.url});

  @override
  State<MovieVideoPlayer> createState() => _MovieVideoPlayerState();
}

class _MovieVideoPlayerState extends State<MovieVideoPlayer> {
  late final VideoPlayerController playerController;
  late final ChewieController chewieController;

  @override
  void initState() {
    playerController = VideoPlayerController.networkUrl(
      Uri.parse(widget.url ?? 'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4'),
    );
    chewieController = ChewieController(
      videoPlayerController: playerController,
      aspectRatio: 16 / 9,
      allowedScreenSleep: false,
      allowFullScreen: true,
    );

    super.initState();
  }

  @override
  void dispose() {
    playerController.dispose();
    chewieController.dispose();

    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    if (widget.url == null) {
      return const Center(
        child: Text('No video found.'),
      );
    }
    return AspectRatio(
      aspectRatio: 16 / 9,
      child: Chewie(
        controller: chewieController,
      ),
    );
  }
}
@dharmic6
Copy link

to add more context, this happens in case of listview with videos.

  video_player: 2.9.3
  chewie: 1.11.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants