Skip to content

Files

Latest commit

 

History

History
44 lines (33 loc) · 1.05 KB

install.md

File metadata and controls

44 lines (33 loc) · 1.05 KB

Install

  1. Add this to your pubspec.yaml file:
dependencies:
  better_player: ^0.0.83
  1. Install it
$ flutter pub get
  1. Import it
import 'package:better_player/better_player.dart';
  1. (Required) iOS configuration You need to change these settings in order to run Better Player on iOS:
  • Set deployment info of your project to min. iOS 11.0 version.
  • Set Swift 5 version.
  1. (Required) Android configuration. You need to change these settings in order to run Better Player on Android:
  • Set compileSdkVersion to 31.
  • Set kotlin version to 1.5.31.
  • Enable multidex.
  1. (Optional) Additional iOS configuration

Add this into your info.plist file to support full screen rotation (Better Player will rotate screen to horizontal position when full screen is enabled):

<key>UISupportedInterfaceOrientations</key>
<array>
   <string>UIInterfaceOrientationPortrait</string>
   <string>UIInterfaceOrientationLandscapeLeft</string>
   <string>UIInterfaceOrientationLandscapeRight</string>
</array>