gumlet_video_player 1.0.0+1 copy "gumlet_video_player: ^1.0.0+1" to clipboard
gumlet_video_player: ^1.0.0+1 copied to clipboard

Platformweb

Flutter plugin for displaying inline video with other Flutter widgets on Android, iOS, and web.

example/lib/main.dart

import 'package:gumlet_video_player/video_player.dart';
import 'package:flutter/material.dart';

void main() => runApp(const VideoApp());

/// Stateful widget to fetch and then display video content.
class VideoApp extends StatefulWidget {
  const VideoApp({Key? key}) : super(key: key);

  @override
  _VideoAppState createState() => _VideoAppState();
}

class _VideoAppState extends State<VideoApp> {
  late VideoPlayerController videoPlayerController;
  @override
  void initState() {
    super.initState();
    videoPlayerController = VideoPlayerController(
        url: "YOUR_EMBED_URL")
        ..initialize().then((_) {
          setState(() {});
        });
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Video Demo',
      home: Scaffold(
        appBar: AppBar(title: Text("Gumlet Example"),),
        body: Center(
          child:
            VideoPlayer(controller: videoPlayerController),
        ),
      ),
    );
  }
}
0
likes
130
pub points
14%
popularity

Publisher

verified publishergumlet.com

Flutter plugin for displaying inline video with other Flutter widgets on Android, iOS, and web.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_inappwebview, gumlet_video_player_platform_interface, gumlet_video_player_web

More

Packages that depend on gumlet_video_player