video_360 0.0.1 copy "video_360: ^0.0.1" to clipboard
video_360: ^0.0.1 copied to clipboard

outdated

simple video 360 player

video_360 #

Simple 360 video player plugin

Getting Started #

The Android uses the open source Google ExoPlayer

Google ExoPlayer Version: 2.12.1

Unfortunately, iOS will support later.

If you need all the platforms, Uses video_player_360

Installation #

Add pubspec.yaml dependencies.

dependencies:
  video_360: ^0.0.1

Add AndroidManifest.xml

<activity
    android:name="com.kino.video_360.VRActivity"
    android:theme="@style/NormalTheme"
    android:launchMode="singleTask"
    android:configChanges="screenSize|smallestScreenSize|screenLayout|orientation|layoutDirection"
    android:imeOptions="flagNoExtractUi|flagNoFullscreen"
    android:windowSoftInputMode="adjustNothing|stateHidden" />

How to use #

importing the libray:

import 'package:video_360/video_360.dart';

play video:

Video360.playVideo("360_VIDEO_URL_HERE");

samepl code:

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('Video 360 example app'),
        ),
        body: Center(
          child: MaterialButton(
             onPressed: () =>
                Video360.playVideo(
                  'your video url'
                ),
             color: Colors.grey[100],
             child: Text('Play Video'),
           ),
         ),
      ),
    );
  }
}
22
likes
0
pub points
79%
popularity

Publisher

unverified uploader

simple video 360 player

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on video_360