-
-
Notifications
You must be signed in to change notification settings - Fork 893
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
YouTube #74
Comments
There's actually a package for inline displaying YouTube videos (https://github.com/hoanglm4/flutter_youtube_view). So I think this shouldn't be really complicated. If this feature is urgent for you, you should consider making a pr. The maintainer of the package hasn't got a lot of time. |
@evgenijromanishyn I won't be adding native support for youtube videos since that's outside the scope of this project. (However, you can use the |
It is wonderful! Thank you for your work :-) |
Example code: Html(
data: '<video src="https://www.youtube.com/embed/tgbNymZ7vqY"></video>',
customRender: (node, children) {
if (node is dom.Element) {
if (node.localName == 'video') {
FlutterYoutube.playYoutubeVideoById(
apiKey: "<API_KEY>",
videoId: node.attributes['src'],
autoPlay: true,
fullScreen: true
);
}
}
},
), you could alternatively do the same for iframes. |
It would be great to add YouTube support.
The text was updated successfully, but these errors were encountered: