video_360 0.0.2 video_360: ^0.0.2 copied to clipboard
simple video 360 player
import 'package:flutter/material.dart';
import 'package:video_360/video_360.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
_MyAppState 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: MaterialButton(
onPressed: () =>
Video360.playVideo(
'https://multiplatform-f.akamaihd.net/i/multi/will/bunny/big_buck_bunny_,640x360_400,640x360_700,640x360_1000,950x540_1500,.f4v.csmil/master.m3u8'
),
color: Colors.grey[100],
child: Text('Play Video'),
),
),
),
);
}
}