video_player_360 0.1.5

  • Readme
  • Changelog
  • Example
  • Installing
  • 84

video_player_360 #

A Flutter plugin to stream 360° videos on iOS and Android

Getting Started #

This is a Flutter plugin to play 360° videos via a remote URL.

The iOS player uses the open source Google VR SDK for iOS

The Android player uses the open source Google VR SDK for Android

Installation #

Add video_player_360: ^0.1.4 in your pubspec.yaml dependencies.

How to use #

importing the library:

import 'package:video_player_360/video_player_360.dart';

play video:

await VideoPlayer360.playVideoURL("ENTER_360_VIDEO_URL_HERE");

Note - iOS #

This plugin will not work if the flutter project was created with -i swift flag.

0.0.1 #

  • First release with iOS only.

0.0.2 #

  • Fixed typo in README

0.0.3 #

  • Hide target acquired label

0.0.4 #

  • Android support

0.0.5 #

  • Androidx library fix

0.0.6 #

  • Android Issue with Guess file type method: Disabled file types images and audio.

0.0.7 #

  • Replaced HTY360Player with GVR iOS SDK

0.0.8 #

  • Updated pubspec description

0.0.9 #

  • Android: receive config parameters

0.0.10 #

  • Android: output success response when display 360 video is loaded

0.0.11 #

  • Android: Fix VideoActivity in Portrait orientation

0.1.0 #

  • Added progress indicator
  • Added tilt placeholder view

0.1.1 #

  • Make tilt placeholder view optional

0.1.2 #

  • Android compatibility fix

0.1.3 #

  • Android compatibility fix

0.1.4 #

  • Android progress loader crash fix

0.1.5 #

  • Updated README

example/lib/main.dart

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"),
          ),
        ),
      ),
    );
  }
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  video_player_360: ^0.1.5

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:video_player_360/video_player_360.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
68
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
84
Learn more about scoring.

We analyzed this package on Apr 7, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.7
  • Flutter: 1.12.13+hotfix.9

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test