We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
youtube_player_flutter
import 'package:flutter/material.dart'; import 'package:youtube_player_flutter/youtube_player_flutter.dart'; Future<void> showVideoDialog(BuildContext context, String videoUrl) { final videoId = YoutubePlayer.convertUrlToId(videoUrl); final YoutubePlayerController controller = YoutubePlayerController( initialVideoId: videoId!, flags: YoutubePlayerFlags( autoPlay: true, mute: false, ), ); return showDialog( context: context, builder: (BuildContext context) { return Dialog( child: YoutubePlayer( controller: controller, showVideoProgressIndicator: false, ), ); }, ); }
Video should play automatically when Dialog will be open. I am opening dialog with a button click and video url is dynamic coming from API.
Nothing
No response
The text was updated successfully, but these errors were encountered:
sarbagyastha
No branches or pull requests
Is there an existing issue for this?
Package
youtube_player_flutter
What happened?
What is the expected behaviour?
Video should play automatically when Dialog will be open. I am opening dialog with a button click and video url is dynamic coming from API.
How to reproduce?
Nothing
Flutter Doctor Output
No response
The text was updated successfully, but these errors were encountered: