video_player_360 0.1.5 video_player_360: ^0.1.5 copied to clipboard
A flutter plugin to stream 360° videos on iOS and Android via a remote URL. The plugin uses the open source Google VR SDK.
import 'package:flutter/material.dart';
import 'package:video_player_360/video_player_360.dart';
void main() => runApp(MyApp());
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('360 Video Player Flutter'),
),
body: Center(
child: RaisedButton(
onPressed: () async {
await VideoPlayer360.playVideoURL(
"https://github.com/stephangopaul/video_samples/blob/master/gb.mp4?raw=true");
},
child: Text("Click to play Video URL"),
),
),
),
);
}
}