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] Scrolling inside YotubePlayer not working #926

Open
thefelix22 opened this issue Mar 20, 2024 · 0 comments
Open

[BUG] Scrolling inside YotubePlayer not working #926

thefelix22 opened this issue Mar 20, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@thefelix22
Copy link

thefelix22 commented Mar 20, 2024

Describe the bug
When you use the YoutubePlayer you sometimes need to change settings like Audiotrack or Subtiles, when there are plenty languages its necessary to scroll, but that doesnt work.
image

To Reproduce

class YoutubeScreen extends StatefulWidget {
  YoutubeScreen({super.key});

  @override
  State<YoutubeScreen> createState() => _YoutubeScreenState();
}

class _YoutubeScreenState extends State<YoutubeScreen> {
  late WebViewController controller;
  final _controllerY = YoutubePlayerController.fromVideoId(
    videoId: 'krsBRQbOPQ4',
    autoPlay: false,
    params: const YoutubePlayerParams(showFullscreenButton: true),
  );

  Widget build(BuildContext context) {
    // Obtain screen size
    var screenSize = MediaQuery.of(context).size;

    return Scaffold(
      body: Container(
        // Set container height and width to screen size
        height: screenSize.height,
        width: screenSize.width,
        child: SafeArea(
          child: YoutubePlayer(
            controller: _controllerY,
            aspectRatio: 16 / 9,
          ),
        ),
      ),
    );
  }
}

Expected behavior
The are which you also see in the screenshot should be scrollable.

Technical Details:

  • Tested on Andorid Emulator and Ios real device with the latest version

Additional context
I love the plugin, but i think its often crucial to have the option to change subtiles and audio track languages. I also tested it with using the WebViewController by myself and it works there for me.

@thefelix22 thefelix22 added the bug Something isn't working label Mar 20, 2024
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

No branches or pull requests

2 participants