video_player_oneplusdream 0.0.1+1 copy "video_player_oneplusdream: ^0.0.1+1" to clipboard
video_player_oneplusdream: ^0.0.1+1 copied to clipboard

outdated

this plugin used for video player in ios, android, web with many functions.

example/lib/main.dart

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

import 'package:flutter/services.dart';
import 'package:video_player_oneplusdream/video_player.widget.dart';
import 'package:video_player_oneplusdream/video_player_event.model.dart';
import 'package:video_player_oneplusdream/video_player_oneplusdream.dart';
import 'package:video_player_oneplusdream/video_player_setting.model.dart';

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

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

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

class _MyAppState extends State<MyApp> {
  String _platformVersion = 'Unknown';
  final _videoPlayerOneplusdreamPlugin = VideoPlayerOneplusdream();

  @override
  void initState() {
    super.initState();
  }

  // Platform messages are asynchronous, so we initialize in an async method.

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: SafeArea(
            child: Column(
              children: [
                Text("hello world"),
                SizedBox(
                  height: 200,
                  child: VideoPlayer(
                    [
                      PlayingItem(
                          "https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8",
                          title: "Rabbit"),
                      PlayingItem(
                          "http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8",
                          title: "BigBop"),
                    ],
                    enableMarquee: true,
                    enablePreventScreenCapture: true,
                    marqueeText: "Hello",
                    autoPlay: false,
                  ),
                ),
                ElevatedButton(
                    onPressed: () {
                      _videoPlayerOneplusdreamPlugin
                          .toggleFullScreen(ToggleFullScreenParam());
                    },
                    child: Text("open full screen"))
              ],
            ),
          ),
        ),
      ),
    );
  }
}
6
likes
0
points
36
downloads

Publisher

unverified uploader

Weekly Downloads

this plugin used for video player in ios, android, web with many functions.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface

More

Packages that depend on video_player_oneplusdream