Skip to content
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

[BUG] Progress indicator stutters #831

Open
ahmed-alqazzaz opened this issue Jun 1, 2023 · 0 comments · May be fixed by #832
Open

[BUG] Progress indicator stutters #831

ahmed-alqazzaz opened this issue Jun 1, 2023 · 0 comments · May be fixed by #832
Assignees
Labels
bug Something isn't working

Comments

@ahmed-alqazzaz
Copy link

Describe the bug
when being dragged aggressively, progress indicator stutters on some occasions

To Reproduce

void main() {
  runApp(
    const MaterialApp(
      home: YoutubePlayerWithStutteringProgressBarExample(),
      debugShowCheckedModeBanner: false,
    ),
  );
}

class YoutubePlayerWithStutteringProgressBarExample extends StatefulWidget {
  const YoutubePlayerWithStutteringProgressBarExample({super.key});

  @override
  State<YoutubePlayerWithStutteringProgressBarExample> createState() =>
      _YoutubePlayerWithStutteringProgressBarExampleState();
}

class _YoutubePlayerWithStutteringProgressBarExampleState
    extends State<YoutubePlayerWithStutteringProgressBarExample> {
  late final YoutubePlayerController _controller;

  @override
  void initState() {
    _controller = YoutubePlayerController(initialVideoId: 'q1fsBWLpYW4');
    super.initState();
  }

  @override
  void dispose() {
    _controller.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return SafeArea(
      child: Scaffold(
        body: YoutubePlayer(controller: _controller),
      ),
    );
  }
}

Video
https://github.com/sarbagyastha/youtube_player_flutter/assets/85782358/09b14ae8-1346-4719-b583-e8c46403875f

Technical Details:

  • Device: [Black Shark2]
  • OS: [Android 9]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants
@sarbagyastha @ahmed-alqazzaz and others