y_player 2.0.3 copy "y_player: ^2.0.3" to clipboard
y_player: ^2.0.3 copied to clipboard

YPlayer is a Flutter package that provides an easy-to-use YouTube video player widget

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:y_player/y_player.dart';

void main() {
  YPlayerInitializer.ensureInitialized();
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

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

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('YPlayer Example'),
        ),
        body: const Column(
          children: [
            YPlayer(
              youtubeUrl: "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
              autoPlay: false,
            ),
          ],
        ),
      ),
    );
  }
}
13
likes
150
points
470
downloads

Publisher

verified publishervexellab.com

Weekly Downloads

YPlayer is a Flutter package that provides an easy-to-use YouTube video player widget

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, media_kit, media_kit_libs_video, media_kit_video, youtube_explode_dart

More

Packages that depend on y_player