Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 1.97 KB

README.md

File metadata and controls

46 lines (31 loc) · 1.97 KB

video_player_plus

Required privileges

To use this plugin in a Tizen application, the mediastorage, externalstorage and internet privileges are required. Add below lines under the <manifest> section in your tizen-manifest.xml file.

<privileges>
  <privilege>http://tizen.org/privilege/mediastorage</privilege>
  <privilege>http://tizen.org/privilege/externalstorage</privilege>
  <privilege>http://tizen.org/privilege/internet</privilege>
</privileges>
  • The mediastorage privilege (http://tizen.org/privilege/mediastorage) must be added to play video files located in the internal storage.
  • The externalstorage privilege (http://tizen.org/privilege/externalstorage) must be added to play video files located in the external storage.
  • The internet privilege (http://tizen.org/privilege/internet) must be added to play any URLs from network.

For details, see Security and API Privileges.

Usage

This package is not an endorsed implementation of video_player. Therefore, you have to include video_player_tizen alongside video_player as dependencies in your pubspec.yaml file.

dependencies:
  video_player_plus: ^1.1.0

Then you can import video_player_plus in your Dart code:

import 'package:video_player_plus/video_player.dart';

For how to use the plugin, see https://github.com/flutter/plugins/tree/master/packages/video_player/video_player#usage.

Limitations

The 'httpheaders' option for 'VideoPlayerController.network' and 'mixWithOthers' option of 'VideoPlayerOptions' will be silently ignored in Tizen platform.

This plugin has some limitations on TV:

  • The 'setPlaybackSpeed' method will fail if triggered within last 3 seconds.
  • The playback speed will reset to 1.0 when video is replayed in loop mode.
  • The 'seekTo' method works only when playback speed is 1.0, and it sets video position to the nearest key frame which may differ from the passed argument.