youtube_player_native 0.0.8 copy "youtube_player_native: ^0.0.8" to clipboard
youtube_player_native: ^0.0.8 copied to clipboard

A Flutter plugin for playing YouTube videos using native WebView on iOS/Android.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:youtube_player_native/youtube_player.dart';

void main() {
  runApp(const MyApp());
}

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('Plugin example app')),
        body: Center(
          child: AspectRatio(
            aspectRatio: 16 / 9,
            child: YoutubePlayerWeb(url: "https://www.youtube.com/embed/dQw4w9WgXcQ"),
          ),
        ),
      ),
    );
  }
}
1
likes
140
points
600
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for playing YouTube videos using native WebView on iOS/Android.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface, web

More

Packages that depend on youtube_player_native

Packages that implement youtube_player_native