├── ios ├── Assets │ └── .gitkeep ├── Classes │ ├── BmsVideoPlayerPlugin.h │ ├── VideoViewFactory.h │ ├── BMSVideoPlayerViewController.h │ ├── BmsVideoPlayerPlugin.m │ ├── VideoViewFactory.m │ └── BMSVideoPlayerViewController.m ├── .gitignore └── bms_video_player.podspec ├── LICENSE ├── CHANGELOG.md ├── android ├── settings.gradle ├── .settings │ └── org.eclipse.buildship.core.prefs ├── gradle.properties ├── .gitignore ├── src │ └── main │ │ ├── AndroidManifest.xml │ │ ├── res │ │ └── layout │ │ │ └── jz_video.xml │ │ └── java │ │ └── com │ │ └── xueyoubangedu │ │ └── bmsvideoplayer │ │ ├── VideoViewFactory.java │ │ ├── BmsVideoPlayerPlugin.java │ │ └── VideoView.java ├── .classpath ├── .project └── build.gradle ├── example ├── android │ ├── gradle.properties │ ├── .settings │ │ └── org.eclipse.buildship.core.prefs │ ├── app │ │ ├── .settings │ │ │ └── org.eclipse.buildship.core.prefs │ │ ├── src │ │ │ ├── main │ │ │ │ ├── res │ │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── values │ │ │ │ │ │ └── styles.xml │ │ │ │ │ └── drawable │ │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── java │ │ │ │ │ └── com │ │ │ │ │ │ └── xueyoubangedu │ │ │ │ │ │ └── bmsvideoplayerexample │ │ │ │ │ │ └── MainActivity.java │ │ │ │ └── AndroidManifest.xml │ │ │ ├── debug │ │ │ │ └── AndroidManifest.xml │ │ │ └── profile │ │ │ │ └── AndroidManifest.xml │ │ ├── .classpath │ │ ├── .project │ │ └── build.gradle │ ├── gradle │ │ └── wrapper │ │ │ └── gradle-wrapper.properties │ ├── .project │ ├── settings.gradle │ └── build.gradle ├── ios │ ├── Flutter │ │ ├── Debug.xcconfig │ │ ├── Release.xcconfig │ │ └── AppFrameworkInfo.plist │ ├── Runner │ │ ├── AppDelegate.h │ │ ├── Assets.xcassets │ │ │ ├── LaunchImage.imageset │ │ │ │ ├── LaunchImage.png │ │ │ │ ├── LaunchImage@2x.png │ │ │ │ ├── LaunchImage@3x.png │ │ │ │ ├── README.md │ │ │ │ └── Contents.json │ │ │ └── AppIcon.appiconset │ │ │ │ ├── Icon-App-20x20@1x.png │ │ │ │ ├── Icon-App-20x20@2x.png │ │ │ │ ├── Icon-App-20x20@3x.png │ │ │ │ ├── Icon-App-29x29@1x.png │ │ │ │ ├── Icon-App-29x29@2x.png │ │ │ │ ├── Icon-App-29x29@3x.png │ │ │ │ ├── Icon-App-40x40@1x.png │ │ │ │ ├── Icon-App-40x40@2x.png │ │ │ │ ├── Icon-App-40x40@3x.png │ │ │ │ ├── Icon-App-60x60@2x.png │ │ │ │ ├── Icon-App-60x60@3x.png │ │ │ │ ├── Icon-App-76x76@1x.png │ │ │ │ ├── Icon-App-76x76@2x.png │ │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ │ └── Contents.json │ │ ├── main.m │ │ ├── AppDelegate.m │ │ ├── Base.lproj │ │ │ ├── Main.storyboard │ │ │ └── LaunchScreen.storyboard │ │ └── Info.plist │ ├── Runner.xcodeproj │ │ ├── project.xcworkspace │ │ │ └── contents.xcworkspacedata │ │ ├── xcshareddata │ │ │ └── xcschemes │ │ │ │ └── Runner.xcscheme │ │ └── project.pbxproj │ ├── Runner.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ ├── Podfile.lock │ └── Podfile ├── .metadata ├── README.md ├── test │ └── widget_test.dart ├── lib │ └── main.dart ├── .gitignore ├── pubspec.yaml └── pubspec.lock ├── .gitignore ├── .idea ├── libraries │ ├── Flutter_for_Android.xml │ └── Dart_SDK.xml ├── runConfigurations │ └── example_lib_main_dart.xml ├── modules.xml └── workspace.xml ├── .metadata ├── bms_video_player.iml ├── pubspec.lock ├── pubspec.yaml ├── lib └── bms_video_player.dart └── README.md /ios/Assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | TODO: Add your license here. 2 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 0.0.1 2 | 3 | * TODO: Describe initial release. 4 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'bms_video_player' 2 | -------------------------------------------------------------------------------- /example/android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .dart_tool/ 3 | 4 | .packages 5 | .pub/ 6 | 7 | build/ 8 | .idea/ -------------------------------------------------------------------------------- /android/.settings/org.eclipse.buildship.core.prefs: -------------------------------------------------------------------------------- 1 | connection.project.dir= 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true -------------------------------------------------------------------------------- /example/android/.settings/org.eclipse.buildship.core.prefs: -------------------------------------------------------------------------------- 1 | connection.project.dir= 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /example/android/app/.settings/org.eclipse.buildship.core.prefs: -------------------------------------------------------------------------------- 1 | connection.project.dir=.. 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /ios/Classes/BmsVideoPlayerPlugin.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface BmsVideoPlayerPlugin : NSObject 4 | @end 5 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | -------------------------------------------------------------------------------- /example/ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/ios/Runner/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : FlutterAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fanly/bms_video_player/HEAD/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fanly/bms_video_player/HEAD/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fanly/bms_video_player/HEAD/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fanly/bms_video_player/HEAD/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fanly/bms_video_player/HEAD/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fanly/bms_video_player/HEAD/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fanly/bms_video_player/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fanly/bms_video_player/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fanly/bms_video_player/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fanly/bms_video_player/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fanly/bms_video_player/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fanly/bms_video_player/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fanly/bms_video_player/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fanly/bms_video_player/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fanly/bms_video_player/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fanly/bms_video_player/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fanly/bms_video_player/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fanly/bms_video_player/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fanly/bms_video_player/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fanly/bms_video_player/HEAD/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fanly/bms_video_player/HEAD/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fanly/bms_video_player/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fanly/bms_video_player/HEAD/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Classes/VideoViewFactory.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface VideoViewFactory : NSObject 4 | - (instancetype)initWithMessenger:(NSObject*)messenger; 5 | @end -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/ios/Runner/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char* argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /example/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip 7 | -------------------------------------------------------------------------------- /android/src/main/res/layout/jz_video.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /example/ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildSystemType 6 | Original 7 | 8 | 9 | -------------------------------------------------------------------------------- /.idea/libraries/Flutter_for_Android.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/runConfigurations/example_lib_main_dart.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 6c7fb880595c5ebb8bd3c046542216ae479481de 8 | channel: master 9 | 10 | project_type: plugin 11 | -------------------------------------------------------------------------------- /example/.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 6c7fb880595c5ebb8bd3c046542216ae479481de 8 | channel: master 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /android/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /example/android/app/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /example/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Classes/BMSVideoPlayerViewController.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface BMSVideoPlayerViewController : NSObject 4 | 5 | - (instancetype)initWithWithFrame:(CGRect)frame 6 | viewIdentifier:(int64_t)viewId 7 | arguments:(id _Nullable)args 8 | binaryMessenger:(NSObject*)messenger; 9 | 10 | @end -------------------------------------------------------------------------------- /example/ios/Runner/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #include "AppDelegate.h" 2 | #include "GeneratedPluginRegistrant.h" 3 | 4 | @implementation AppDelegate 5 | 6 | - (BOOL)application:(UIApplication *)application 7 | didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 8 | [GeneratedPluginRegistrant registerWithRegistry:self]; 9 | // Override point for customization after application launch. 10 | return [super application:application didFinishLaunchingWithOptions:launchOptions]; 11 | } 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /example/android/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | android 4 | Project android created by Buildship. 5 | 6 | 7 | 8 | 9 | org.eclipse.buildship.core.gradleprojectbuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.buildship.core.gradleprojectnature 16 | 17 | 18 | -------------------------------------------------------------------------------- /example/android/app/src/main/java/com/xueyoubangedu/bmsvideoplayerexample/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.xueyoubangedu.bmsvideoplayerexample; 2 | 3 | import android.os.Bundle; 4 | import io.flutter.app.FlutterActivity; 5 | import io.flutter.plugins.GeneratedPluginRegistrant; 6 | 7 | public class MainActivity extends FlutterActivity { 8 | @Override 9 | protected void onCreate(Bundle savedInstanceState) { 10 | super.onCreate(savedInstanceState); 11 | GeneratedPluginRegistrant.registerWith(this); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vagrant/ 3 | .sconsign.dblite 4 | .svn/ 5 | 6 | .DS_Store 7 | *.swp 8 | profile 9 | 10 | DerivedData/ 11 | build/ 12 | GeneratedPluginRegistrant.h 13 | GeneratedPluginRegistrant.m 14 | 15 | .generated/ 16 | 17 | *.pbxuser 18 | *.mode1v3 19 | *.mode2v3 20 | *.perspectivev3 21 | 22 | !default.pbxuser 23 | !default.mode1v3 24 | !default.mode2v3 25 | !default.perspectivev3 26 | 27 | xcuserdata 28 | 29 | *.moved-aside 30 | 31 | *.pyc 32 | *sync/ 33 | Icon? 34 | .tags* 35 | 36 | /Flutter/Generated.xcconfig 37 | -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /example/android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 4 | 5 | def plugins = new Properties() 6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 7 | if (pluginsFile.exists()) { 8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 9 | } 10 | 11 | plugins.each { name, path -> 12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 13 | include ":$name" 14 | project(":$name").projectDir = pluginDirectory 15 | } 16 | -------------------------------------------------------------------------------- /example/android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | google() 4 | jcenter() 5 | } 6 | 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:3.2.1' 9 | } 10 | } 11 | 12 | allprojects { 13 | repositories { 14 | google() 15 | jcenter() 16 | } 17 | } 18 | 19 | rootProject.buildDir = '../build' 20 | subprojects { 21 | project.buildDir = "${rootProject.buildDir}/${project.name}" 22 | } 23 | subprojects { 24 | project.evaluationDependsOn(':app') 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /example/README.md: -------------------------------------------------------------------------------- 1 | # bms_video_player_example 2 | 3 | Demonstrates how to use the bms_video_player plugin. 4 | 5 | ## Getting Started 6 | 7 | This project is a starting point for a Flutter application. 8 | 9 | A few resources to get you started if this is your first Flutter project: 10 | 11 | - [Lab: Write your first Flutter app](https://flutter.io/docs/get-started/codelab) 12 | - [Cookbook: Useful Flutter samples](https://flutter.io/docs/cookbook) 13 | 14 | For help getting started with Flutter, view our 15 | [online documentation](https://flutter.io/docs), which offers tutorials, 16 | samples, guidance on mobile development, and a full API reference. 17 | -------------------------------------------------------------------------------- /example/android/app/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | app 4 | Project app created by Buildship. 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.buildship.core.gradleprojectbuilder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.buildship.core.gradleprojectnature 22 | 23 | 24 | -------------------------------------------------------------------------------- /android/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | bms_video_player 4 | Project bms_video_player created by Buildship. 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.buildship.core.gradleprojectbuilder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.buildship.core.gradleprojectnature 22 | 23 | 24 | -------------------------------------------------------------------------------- /ios/Classes/BmsVideoPlayerPlugin.m: -------------------------------------------------------------------------------- 1 | #import "BmsVideoPlayerPlugin.h" 2 | #import "VideoViewFactory.h" 3 | 4 | @implementation BmsVideoPlayerPlugin 5 | + (void)registerWithRegistrar:(NSObject*)registrar { 6 | VideoViewFactory* factory = 7 | [[VideoViewFactory alloc] initWithMessenger:registrar.messenger]; 8 | [registrar registerViewFactory:factory withId:@"plugins.bms_video_player/view"]; 9 | } 10 | 11 | - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result { 12 | if ([@"getPlatformVersion" isEqualToString:call.method]) { 13 | result([@"iOS " stringByAppendingString:[[UIDevice currentDevice] systemVersion]]); 14 | } else { 15 | result(FlutterMethodNotImplemented); 16 | } 17 | } 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /ios/bms_video_player.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html 3 | # 4 | Pod::Spec.new do |s| 5 | s.name = 'bms_video_player' 6 | s.version = '0.0.1' 7 | s.summary = 'A new flutter plugin project.' 8 | s.description = <<-DESC 9 | A new flutter plugin project. 10 | DESC 11 | s.homepage = 'http://example.com' 12 | s.license = { :file => '../LICENSE' } 13 | s.author = { 'Your Company' => 'email@example.com' } 14 | s.source = { :path => '.' } 15 | s.source_files = 'Classes/**/*' 16 | s.public_header_files = 'Classes/**/*.h' 17 | s.dependency 'Flutter' 18 | s.dependency 'JPVideoPlayer' 19 | 20 | s.ios.deployment_target = '8.0' 21 | end 22 | 23 | -------------------------------------------------------------------------------- /example/ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - bms_video_player (0.0.1): 3 | - Flutter 4 | - JPVideoPlayer 5 | - Flutter (1.0.0) 6 | - JPVideoPlayer (3.1.1) 7 | 8 | DEPENDENCIES: 9 | - bms_video_player (from `.symlinks/plugins/bms_video_player/ios`) 10 | - Flutter (from `.symlinks/flutter/ios`) 11 | 12 | SPEC REPOS: 13 | https://github.com/cocoapods/specs.git: 14 | - JPVideoPlayer 15 | 16 | EXTERNAL SOURCES: 17 | bms_video_player: 18 | :path: ".symlinks/plugins/bms_video_player/ios" 19 | Flutter: 20 | :path: ".symlinks/flutter/ios" 21 | 22 | SPEC CHECKSUMS: 23 | bms_video_player: 9e34ce538faee34bf84d7dec23d7ffe539bbdec5 24 | Flutter: 9d0fac939486c9aba2809b7982dfdbb47a7b0296 25 | JPVideoPlayer: 234c2fc5c9dfd67b969a5dd8233815eb872472c6 26 | 27 | PODFILE CHECKSUM: aff02bfeed411c636180d6812254b2daeea14d09 28 | 29 | COCOAPODS: 1.5.3 30 | -------------------------------------------------------------------------------- /android/src/main/java/com/xueyoubangedu/bmsvideoplayer/VideoViewFactory.java: -------------------------------------------------------------------------------- 1 | package com.xueyoubangedu.bmsvideoplayer; 2 | 3 | import android.content.Context; 4 | import io.flutter.plugin.common.BinaryMessenger; 5 | import io.flutter.plugin.common.StandardMessageCodec; 6 | import io.flutter.plugin.platform.PlatformView; 7 | import io.flutter.plugin.platform.PlatformViewFactory; 8 | import io.flutter.plugin.common.PluginRegistry.Registrar; 9 | 10 | public class VideoViewFactory extends PlatformViewFactory { 11 | private final Registrar registrar; 12 | 13 | public VideoViewFactory(Registrar registrar) { 14 | super(StandardMessageCodec.INSTANCE); 15 | this.registrar = registrar; 16 | } 17 | 18 | @Override 19 | public PlatformView create(Context context, int viewId, Object args) { 20 | return new VideoView(context, viewId, args, this.registrar); 21 | } 22 | } -------------------------------------------------------------------------------- /example/ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | group 'com.xueyoubangedu.bmsvideoplayer' 2 | version '1.0-SNAPSHOT' 3 | 4 | buildscript { 5 | repositories { 6 | google() 7 | jcenter() 8 | } 9 | 10 | dependencies { 11 | classpath 'com.android.tools.build:gradle:3.2.1' 12 | } 13 | } 14 | 15 | rootProject.allprojects { 16 | repositories { 17 | google() 18 | jcenter() 19 | } 20 | } 21 | 22 | apply plugin: 'com.android.library' 23 | 24 | android { 25 | compileSdkVersion 27 26 | 27 | defaultConfig { 28 | minSdkVersion 16 29 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 30 | } 31 | lintOptions { 32 | disable 'InvalidPackage' 33 | } 34 | } 35 | 36 | dependencies { 37 | implementation 'com.shuyu:gsyVideoPlayer-java:7.0.0-beta1' 38 | 39 | //是否需要ExoPlayer模式 40 | implementation 'com.shuyu:GSYVideoPlayer-exo2:7.0.0-beta1' 41 | //更多ijk的编码支持 42 | implementation 'com.shuyu:gsyVideoPlayer-ex_so:7.0.0-beta1' 43 | } -------------------------------------------------------------------------------- /bms_video_player.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /example/test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:bms_video_player_example/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Verify Platform version', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(MyApp()); 17 | 18 | // Verify that platform version is retrieved. 19 | expect( 20 | find.byWidgetPredicate( 21 | (Widget widget) => widget is Text && 22 | widget.data.startsWith('Running on:'), 23 | ), 24 | findsOneWidget, 25 | ); 26 | }); 27 | } 28 | -------------------------------------------------------------------------------- /android/src/main/java/com/xueyoubangedu/bmsvideoplayer/BmsVideoPlayerPlugin.java: -------------------------------------------------------------------------------- 1 | package com.xueyoubangedu.bmsvideoplayer; 2 | 3 | import io.flutter.plugin.common.MethodCall; 4 | import io.flutter.plugin.common.MethodChannel; 5 | import io.flutter.plugin.common.MethodChannel.MethodCallHandler; 6 | import io.flutter.plugin.common.MethodChannel.Result; 7 | import io.flutter.plugin.common.PluginRegistry.Registrar; 8 | 9 | /** BmsVideoPlayerPlugin */ 10 | public class BmsVideoPlayerPlugin implements MethodCallHandler { 11 | /** Plugin registration. */ 12 | public static void registerWith(Registrar registrar) { 13 | registrar.platformViewRegistry() 14 | .registerViewFactory("plugins.bms_video_player/view", new VideoViewFactory(registrar)); 15 | } 16 | 17 | @Override 18 | public void onMethodCall(MethodCall call, Result result) { 19 | if (call.method.equals("getPlatformVersion")) { 20 | result.success("Android " + android.os.Build.VERSION.RELEASE); 21 | } else { 22 | result.notImplemented(); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://www.dartlang.org/tools/pub/glossary#lockfile 3 | packages: 4 | collection: 5 | dependency: transitive 6 | description: 7 | name: collection 8 | url: "https://pub.flutter-io.cn" 9 | source: hosted 10 | version: "1.14.11" 11 | flutter: 12 | dependency: "direct main" 13 | description: flutter 14 | source: sdk 15 | version: "0.0.0" 16 | meta: 17 | dependency: transitive 18 | description: 19 | name: meta 20 | url: "https://pub.flutter-io.cn" 21 | source: hosted 22 | version: "1.1.6" 23 | sky_engine: 24 | dependency: transitive 25 | description: flutter 26 | source: sdk 27 | version: "0.0.99" 28 | typed_data: 29 | dependency: transitive 30 | description: 31 | name: typed_data 32 | url: "https://pub.flutter-io.cn" 33 | source: hosted 34 | version: "1.1.6" 35 | vector_math: 36 | dependency: transitive 37 | description: 38 | name: vector_math 39 | url: "https://pub.flutter-io.cn" 40 | source: hosted 41 | version: "2.0.8" 42 | sdks: 43 | dart: ">=2.1.0 <3.0.0" 44 | -------------------------------------------------------------------------------- /ios/Classes/VideoViewFactory.m: -------------------------------------------------------------------------------- 1 | #import "VideoViewFactory.h" 2 | #import "BMSVideoPlayerViewController.h" 3 | 4 | @implementation VideoViewFactory { 5 | NSObject* _messenger; 6 | } 7 | 8 | - (instancetype)initWithMessenger:(NSObject*)messenger { 9 | self = [super init]; 10 | if (self) { 11 | _messenger = messenger; 12 | } 13 | return self; 14 | } 15 | 16 | - (NSObject*)createArgsCodec { 17 | return [FlutterStandardMessageCodec sharedInstance]; 18 | } 19 | 20 | - (nonnull NSObject *)createWithFrame:(CGRect)frame 21 | viewIdentifier:(int64_t)viewId 22 | arguments:(id _Nullable)args { 23 | BMSVideoPlayerViewController* viewController = 24 | [[BMSVideoPlayerViewController alloc] initWithWithFrame:frame 25 | viewIdentifier:viewId 26 | arguments:args 27 | binaryMessenger:_messenger]; 28 | return viewController; 29 | } 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /.idea/libraries/Dart_SDK.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /example/lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import 'package:bms_video_player/bms_video_player.dart'; 4 | 5 | void main() => runApp(MyApp()); 6 | 7 | class MyApp extends StatefulWidget { 8 | @override 9 | _MyAppState createState() => _MyAppState(); 10 | } 11 | 12 | class _MyAppState extends State { 13 | 14 | var viewPlayerController; 15 | 16 | @override 17 | void initState() { 18 | super.initState(); 19 | } 20 | 21 | @override 22 | Widget build(BuildContext context) { 23 | var x = 0.0; 24 | var y = 0.0; 25 | var width = 400.0; 26 | var height = width * 9.0 / 16.0; 27 | 28 | BmsVideoPlayer videoPlayer = new BmsVideoPlayer( 29 | onCreated: onViewPlayerCreated, 30 | x: x, 31 | y: y, 32 | width: width, 33 | height: height 34 | ); 35 | return MaterialApp( 36 | home: Scaffold( 37 | appBar: AppBar( 38 | title: const Text('Plugin example app'), 39 | ), 40 | body: Container( 41 | child: videoPlayer, 42 | width: width, 43 | height: height 44 | ) 45 | ), 46 | ); 47 | } 48 | 49 | void onViewPlayerCreated(viewPlayerController) { 50 | this.viewPlayerController = viewPlayerController; 51 | this.viewPlayerController.loadUrl("https://apissources.bamasoso.com/video/rvz3YaO8Gbxq/0e5fdab9c4935093877390e6db94443c.mp4"); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # Visual Studio Code related 19 | .vscode/ 20 | 21 | # Flutter/Dart/Pub related 22 | **/doc/api/ 23 | .dart_tool/ 24 | .flutter-plugins 25 | .packages 26 | .pub-cache/ 27 | .pub/ 28 | build/ 29 | 30 | # Android related 31 | **/android/**/gradle-wrapper.jar 32 | **/android/.gradle 33 | **/android/captures/ 34 | **/android/gradlew 35 | **/android/gradlew.bat 36 | **/android/local.properties 37 | **/android/**/GeneratedPluginRegistrant.java 38 | 39 | # iOS/XCode related 40 | **/ios/**/*.mode1v3 41 | **/ios/**/*.mode2v3 42 | **/ios/**/*.moved-aside 43 | **/ios/**/*.pbxuser 44 | **/ios/**/*.perspectivev3 45 | **/ios/**/*sync/ 46 | **/ios/**/.sconsign.dblite 47 | **/ios/**/.tags* 48 | **/ios/**/.vagrant/ 49 | **/ios/**/DerivedData/ 50 | **/ios/**/Icon? 51 | **/ios/**/Pods/ 52 | **/ios/**/.symlinks/ 53 | **/ios/**/profile 54 | **/ios/**/xcuserdata 55 | **/ios/.generated/ 56 | **/ios/Flutter/App.framework 57 | **/ios/Flutter/Flutter.framework 58 | **/ios/Flutter/Generated.xcconfig 59 | **/ios/Flutter/app.flx 60 | **/ios/Flutter/app.zip 61 | **/ios/Flutter/flutter_assets/ 62 | **/ios/ServiceDefinitions.json 63 | **/ios/Runner/GeneratedPluginRegistrant.* 64 | 65 | # Exceptions to above rules. 66 | !**/ios/**/default.mode1v3 67 | !**/ios/**/default.mode2v3 68 | !**/ios/**/default.pbxuser 69 | !**/ios/**/default.perspectivev3 70 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 71 | -------------------------------------------------------------------------------- /example/ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /example/ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | bms_video_player_example 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | io.flutter.embedded_views_preview 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /example/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 9 | 13 | 20 | 24 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: bms_video_player 2 | description: A new flutter plugin project. 3 | version: 0.0.1 4 | author: 5 | homepage: 6 | 7 | environment: 8 | sdk: ">=2.1.0 <3.0.0" 9 | 10 | dependencies: 11 | flutter: 12 | sdk: flutter 13 | 14 | # For information on the generic Dart part of this file, see the 15 | # following page: https://www.dartlang.org/tools/pub/pubspec 16 | 17 | # The following section is specific to Flutter. 18 | flutter: 19 | # This section identifies this Flutter project as a plugin project. 20 | # The androidPackage and pluginClass identifiers should not ordinarily 21 | # be modified. They are used by the tooling to maintain consistency when 22 | # adding or updating assets for this project. 23 | plugin: 24 | androidPackage: com.xueyoubangedu.bmsvideoplayer 25 | pluginClass: BmsVideoPlayerPlugin 26 | 27 | # To add assets to your plugin package, add an assets section, like this: 28 | # assets: 29 | # - images/a_dot_burr.jpeg 30 | # - images/a_dot_ham.jpeg 31 | # 32 | # For details regarding assets in packages, see 33 | # https://flutter.io/assets-and-images/#from-packages 34 | # 35 | # An image asset can refer to one or more resolution-specific "variants", see 36 | # https://flutter.io/assets-and-images/#resolution-aware. 37 | 38 | # To add custom fonts to your plugin package, add a fonts section here, 39 | # in this "flutter" section. Each entry in this list should have a 40 | # "family" key with the font family name, and a "fonts" key with a 41 | # list giving the asset and other descriptors for the font. For 42 | # example: 43 | # fonts: 44 | # - family: Schyler 45 | # fonts: 46 | # - asset: fonts/Schyler-Regular.ttf 47 | # - asset: fonts/Schyler-Italic.ttf 48 | # style: italic 49 | # - family: Trajan Pro 50 | # fonts: 51 | # - asset: fonts/TrajanPro.ttf 52 | # - asset: fonts/TrajanPro_Bold.ttf 53 | # weight: 700 54 | # 55 | # For details regarding fonts in packages, see 56 | # https://flutter.io/custom-fonts/#from-packages 57 | -------------------------------------------------------------------------------- /example/android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 26 | 27 | android { 28 | compileSdkVersion 27 29 | 30 | lintOptions { 31 | disable 'InvalidPackage' 32 | } 33 | 34 | defaultConfig { 35 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 36 | applicationId "com.xueyoubangedu.bmsvideoplayerexample" 37 | minSdkVersion 16 38 | targetSdkVersion 27 39 | versionCode flutterVersionCode.toInteger() 40 | versionName flutterVersionName 41 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 42 | } 43 | 44 | buildTypes { 45 | release { 46 | // TODO: Add your own signing config for the release build. 47 | // Signing with the debug keys for now, so `flutter run --release` works. 48 | signingConfig signingConfigs.debug 49 | } 50 | } 51 | } 52 | 53 | flutter { 54 | source '../..' 55 | } 56 | 57 | dependencies { 58 | testImplementation 'junit:junit:4.12' 59 | androidTestImplementation 'com.android.support.test:runner:1.0.2' 60 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 61 | } 62 | -------------------------------------------------------------------------------- /.idea/workspace.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /example/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: bms_video_player_example 2 | description: Demonstrates how to use the bms_video_player plugin. 3 | publish_to: 'none' 4 | 5 | environment: 6 | sdk: ">=2.1.0 <3.0.0" 7 | 8 | dependencies: 9 | flutter: 10 | sdk: flutter 11 | 12 | # The following adds the Cupertino Icons font to your application. 13 | # Use with the CupertinoIcons class for iOS style icons. 14 | cupertino_icons: ^0.1.2 15 | 16 | dev_dependencies: 17 | flutter_test: 18 | sdk: flutter 19 | 20 | bms_video_player: 21 | path: ../ 22 | 23 | # For information on the generic Dart part of this file, see the 24 | # following page: https://www.dartlang.org/tools/pub/pubspec 25 | 26 | # The following section is specific to Flutter. 27 | flutter: 28 | 29 | # The following line ensures that the Material Icons font is 30 | # included with your application, so that you can use the icons in 31 | # the material Icons class. 32 | uses-material-design: true 33 | 34 | # To add assets to your application, add an assets section, like this: 35 | # assets: 36 | # - images/a_dot_burr.jpeg 37 | # - images/a_dot_ham.jpeg 38 | 39 | # An image asset can refer to one or more resolution-specific "variants", see 40 | # https://flutter.io/assets-and-images/#resolution-aware. 41 | 42 | # For details regarding adding assets from package dependencies, see 43 | # https://flutter.io/assets-and-images/#from-packages 44 | 45 | # To add custom fonts to your application, add a fonts section here, 46 | # in this "flutter" section. Each entry in this list should have a 47 | # "family" key with the font family name, and a "fonts" key with a 48 | # list giving the asset and other descriptors for the font. For 49 | # example: 50 | # fonts: 51 | # - family: Schyler 52 | # fonts: 53 | # - asset: fonts/Schyler-Regular.ttf 54 | # - asset: fonts/Schyler-Italic.ttf 55 | # style: italic 56 | # - family: Trajan Pro 57 | # fonts: 58 | # - asset: fonts/TrajanPro.ttf 59 | # - asset: fonts/TrajanPro_Bold.ttf 60 | # weight: 700 61 | # 62 | # For details regarding fonts from package dependencies, 63 | # see https://flutter.io/custom-fonts/#from-packages 64 | -------------------------------------------------------------------------------- /example/ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | 4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 6 | 7 | project 'Runner', { 8 | 'Debug' => :debug, 9 | 'Profile' => :release, 10 | 'Release' => :release, 11 | } 12 | 13 | def parse_KV_file(file, separator='=') 14 | file_abs_path = File.expand_path(file) 15 | if !File.exists? file_abs_path 16 | return []; 17 | end 18 | pods_ary = [] 19 | skip_line_start_symbols = ["#", "/"] 20 | File.foreach(file_abs_path) { |line| 21 | next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ } 22 | plugin = line.split(pattern=separator) 23 | if plugin.length == 2 24 | podname = plugin[0].strip() 25 | path = plugin[1].strip() 26 | podpath = File.expand_path("#{path}", file_abs_path) 27 | pods_ary.push({:name => podname, :path => podpath}); 28 | else 29 | puts "Invalid plugin specification: #{line}" 30 | end 31 | } 32 | return pods_ary 33 | end 34 | 35 | target 'Runner' do 36 | # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock 37 | # referring to absolute paths on developers' machines. 38 | system('rm -rf .symlinks') 39 | system('mkdir -p .symlinks/plugins') 40 | 41 | # Flutter Pods 42 | generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig') 43 | if generated_xcode_build_settings.empty? 44 | puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter packages get is executed first." 45 | end 46 | generated_xcode_build_settings.map { |p| 47 | if p[:name] == 'FLUTTER_FRAMEWORK_DIR' 48 | symlink = File.join('.symlinks', 'flutter') 49 | File.symlink(File.dirname(p[:path]), symlink) 50 | pod 'Flutter', :path => File.join(symlink, File.basename(p[:path])) 51 | end 52 | } 53 | 54 | # Plugin Pods 55 | plugin_pods = parse_KV_file('../.flutter-plugins') 56 | plugin_pods.map { |p| 57 | symlink = File.join('.symlinks', 'plugins', p[:name]) 58 | File.symlink(p[:path], symlink) 59 | pod p[:name], :path => File.join(symlink, 'ios') 60 | } 61 | end 62 | 63 | post_install do |installer| 64 | installer.pods_project.targets.each do |target| 65 | target.build_configurations.each do |config| 66 | config.build_settings['ENABLE_BITCODE'] = 'NO' 67 | end 68 | end 69 | end 70 | -------------------------------------------------------------------------------- /example/ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /ios/Classes/BMSVideoPlayerViewController.m: -------------------------------------------------------------------------------- 1 | #import "BMSVideoPlayerViewController.h" 2 | #import 3 | 4 | @interface BMSVideoPlayerViewController () 5 | 6 | @end 7 | 8 | @implementation BMSVideoPlayerViewController { 9 | UIView * _videoView; 10 | int64_t _viewId; 11 | FlutterMethodChannel* _channel; 12 | } 13 | 14 | #pragma mark - life cycle 15 | 16 | - (instancetype)initWithWithFrame:(CGRect)frame 17 | viewIdentifier:(int64_t)viewId 18 | arguments:(id _Nullable)args 19 | binaryMessenger:(NSObject*)messenger { 20 | if ([super init]) { 21 | _viewId = viewId; 22 | _videoView = [UIView new]; 23 | _videoView.backgroundColor = [UIColor greenColor]; 24 | NSDictionary *dic = args; 25 | CGFloat x = [dic[@"x"] floatValue]; 26 | CGFloat y = [dic[@"y"] floatValue]; 27 | CGFloat width = [dic[@"width"] floatValue]; 28 | CGFloat height = [dic[@"height"] floatValue]; 29 | _videoView.frame = CGRectMake(x, y, width, height); 30 | _videoView.jp_videoPlayerDelegate = self; 31 | NSString* channelName = [NSString stringWithFormat:@"bms_video_player_%lld", viewId]; 32 | _channel = [FlutterMethodChannel methodChannelWithName:channelName binaryMessenger:messenger]; 33 | __weak __typeof__(self) weakSelf = self; 34 | [_channel setMethodCallHandler:^(FlutterMethodCall* call, FlutterResult result) { 35 | [weakSelf onMethodCall:call result:result]; 36 | }]; 37 | 38 | } 39 | return self; 40 | } 41 | 42 | - (nonnull UIView *)view { 43 | return _videoView; 44 | } 45 | 46 | - (void)onMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result { 47 | if ([[call method] isEqualToString:@"loadUrl"]) { 48 | [self onLoadUrl:call result:result]; 49 | } else { 50 | result(FlutterMethodNotImplemented); 51 | } 52 | } 53 | 54 | - (void)onLoadUrl:(FlutterMethodCall*)call result:(FlutterResult)result { 55 | NSString* url = [call arguments]; 56 | if (![self loadUrl:url]) { 57 | result([FlutterError errorWithCode:@"loadUrl_failed" 58 | message:@"Failed parsing the URL" 59 | details:[NSString stringWithFormat:@"URL was: '%@'", url]]); 60 | } else { 61 | result(nil); 62 | } 63 | } 64 | 65 | - (bool)loadUrl:(NSString*)url { 66 | NSURL* nsUrl = [NSURL URLWithString:url]; 67 | if (!nsUrl) { 68 | return false; 69 | } 70 | 71 | [_videoView jp_playVideoWithURL:nsUrl 72 | bufferingIndicator:nil 73 | controlView:nil 74 | progressView:nil 75 | configuration:^(UIView *view, JPVideoPlayerModel *playerModel) { 76 | // self.muteSwitch.on = ![self.videoContainer jp_muted]; 77 | }]; 78 | return true; 79 | } 80 | 81 | #pragma mark - JPVideoPlayerDelegate 82 | 83 | - (BOOL)shouldAutoReplayForURL:(nonnull NSURL *)videoURL { 84 | return true; 85 | } 86 | @end -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 31 | 32 | 33 | 34 | 40 | 41 | 42 | 43 | 44 | 45 | 56 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 75 | 77 | 83 | 84 | 85 | 86 | 88 | 89 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /lib/bms_video_player.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:flutter/foundation.dart'; 4 | import 'package:flutter/gestures.dart'; 5 | import 'package:flutter/services.dart'; 6 | import 'package:flutter/widgets.dart'; 7 | 8 | typedef void BmsVideoPlayerCreatedCallback(BmsVideoPlayerController controller); 9 | 10 | class BmsVideoPlayerController { 11 | 12 | MethodChannel _channel; 13 | 14 | BmsVideoPlayerController.init(int id) { 15 | _channel = new MethodChannel('bms_video_player_$id'); 16 | } 17 | 18 | Future loadUrl(String url) async { 19 | assert(url != null); 20 | return _channel.invokeMethod('loadUrl', url); 21 | } 22 | } 23 | 24 | class BmsVideoPlayer extends StatefulWidget { 25 | 26 | final BmsVideoPlayerCreatedCallback onCreated; 27 | final x; 28 | final y; 29 | final width; 30 | final height; 31 | 32 | BmsVideoPlayer({ 33 | Key key, 34 | @required this.onCreated, 35 | @required this.x, 36 | @required this.y, 37 | @required this.width, 38 | @required this.height, 39 | }); 40 | 41 | @override 42 | State createState() => _VideoPlayerState(); 43 | 44 | } 45 | 46 | class _VideoPlayerState extends State { 47 | 48 | @override 49 | void initState() { 50 | super.initState(); 51 | } 52 | 53 | @override 54 | Widget build(BuildContext context) { 55 | return GestureDetector( 56 | behavior: HitTestBehavior.opaque, 57 | child: nativeView(), 58 | onHorizontalDragStart: (DragStartDetails details) { 59 | print("onHorizontalDragStart: ${details.globalPosition}"); 60 | // if (!controller.value.initialized) { 61 | // return; 62 | // } 63 | // _controllerWasPlaying = controller.value.isPlaying; 64 | // if (_controllerWasPlaying) { 65 | // controller.pause(); 66 | // } 67 | }, 68 | onHorizontalDragUpdate: (DragUpdateDetails details) { 69 | print("onHorizontalDragUpdate: ${details.globalPosition}"); 70 | print(details.globalPosition); 71 | // if (!controller.value.initialized) { 72 | // return; 73 | // } 74 | // seekToRelativePosition(details.globalPosition); 75 | }, 76 | onHorizontalDragEnd: (DragEndDetails details) { 77 | print("onHorizontalDragEnd"); 78 | // if (_controllerWasPlaying) { 79 | // controller.play(); 80 | // } 81 | }, 82 | onTapDown: (TapDownDetails details) { 83 | print("onTapDown: ${details.globalPosition}"); 84 | }, 85 | ); 86 | } 87 | 88 | nativeView() { 89 | if (defaultTargetPlatform == TargetPlatform.android) { 90 | return AndroidView( 91 | viewType: 'plugins.bms_video_player/view', 92 | onPlatformViewCreated: onPlatformViewCreated, 93 | creationParams: { 94 | "x": widget.x, 95 | "y": widget.y, 96 | "width": widget.width, 97 | "height": widget.height, 98 | }, 99 | creationParamsCodec: const StandardMessageCodec(), 100 | ); 101 | } else { 102 | return UiKitView( 103 | viewType: 'plugins.bms_video_player/view', 104 | onPlatformViewCreated: onPlatformViewCreated, 105 | creationParams: { 106 | "x": widget.x, 107 | "y": widget.y, 108 | "width": widget.width, 109 | "height": widget.height, 110 | }, 111 | creationParamsCodec: const StandardMessageCodec(), 112 | ); 113 | } 114 | } 115 | 116 | Future onPlatformViewCreated(id) async { 117 | if (widget.onCreated == null) { 118 | return; 119 | } 120 | 121 | widget.onCreated(new BmsVideoPlayerController.init(id)); 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /example/pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://www.dartlang.org/tools/pub/glossary#lockfile 3 | packages: 4 | async: 5 | dependency: transitive 6 | description: 7 | name: async 8 | url: "https://pub.flutter-io.cn" 9 | source: hosted 10 | version: "2.0.8" 11 | bms_video_player: 12 | dependency: "direct dev" 13 | description: 14 | path: ".." 15 | relative: true 16 | source: path 17 | version: "0.0.1" 18 | boolean_selector: 19 | dependency: transitive 20 | description: 21 | name: boolean_selector 22 | url: "https://pub.flutter-io.cn" 23 | source: hosted 24 | version: "1.0.4" 25 | charcode: 26 | dependency: transitive 27 | description: 28 | name: charcode 29 | url: "https://pub.flutter-io.cn" 30 | source: hosted 31 | version: "1.1.2" 32 | collection: 33 | dependency: transitive 34 | description: 35 | name: collection 36 | url: "https://pub.flutter-io.cn" 37 | source: hosted 38 | version: "1.14.11" 39 | cupertino_icons: 40 | dependency: "direct main" 41 | description: 42 | name: cupertino_icons 43 | url: "https://pub.flutter-io.cn" 44 | source: hosted 45 | version: "0.1.2" 46 | flutter: 47 | dependency: "direct main" 48 | description: flutter 49 | source: sdk 50 | version: "0.0.0" 51 | flutter_test: 52 | dependency: "direct dev" 53 | description: flutter 54 | source: sdk 55 | version: "0.0.0" 56 | matcher: 57 | dependency: transitive 58 | description: 59 | name: matcher 60 | url: "https://pub.flutter-io.cn" 61 | source: hosted 62 | version: "0.12.3+1" 63 | meta: 64 | dependency: transitive 65 | description: 66 | name: meta 67 | url: "https://pub.flutter-io.cn" 68 | source: hosted 69 | version: "1.1.6" 70 | path: 71 | dependency: transitive 72 | description: 73 | name: path 74 | url: "https://pub.flutter-io.cn" 75 | source: hosted 76 | version: "1.6.2" 77 | pedantic: 78 | dependency: transitive 79 | description: 80 | name: pedantic 81 | url: "https://pub.flutter-io.cn" 82 | source: hosted 83 | version: "1.5.0" 84 | quiver: 85 | dependency: transitive 86 | description: 87 | name: quiver 88 | url: "https://pub.flutter-io.cn" 89 | source: hosted 90 | version: "2.0.1" 91 | sky_engine: 92 | dependency: transitive 93 | description: flutter 94 | source: sdk 95 | version: "0.0.99" 96 | source_span: 97 | dependency: transitive 98 | description: 99 | name: source_span 100 | url: "https://pub.flutter-io.cn" 101 | source: hosted 102 | version: "1.5.5" 103 | stack_trace: 104 | dependency: transitive 105 | description: 106 | name: stack_trace 107 | url: "https://pub.flutter-io.cn" 108 | source: hosted 109 | version: "1.9.3" 110 | stream_channel: 111 | dependency: transitive 112 | description: 113 | name: stream_channel 114 | url: "https://pub.flutter-io.cn" 115 | source: hosted 116 | version: "1.6.8" 117 | string_scanner: 118 | dependency: transitive 119 | description: 120 | name: string_scanner 121 | url: "https://pub.flutter-io.cn" 122 | source: hosted 123 | version: "1.0.4" 124 | term_glyph: 125 | dependency: transitive 126 | description: 127 | name: term_glyph 128 | url: "https://pub.flutter-io.cn" 129 | source: hosted 130 | version: "1.1.0" 131 | test_api: 132 | dependency: transitive 133 | description: 134 | name: test_api 135 | url: "https://pub.flutter-io.cn" 136 | source: hosted 137 | version: "0.2.2" 138 | typed_data: 139 | dependency: transitive 140 | description: 141 | name: typed_data 142 | url: "https://pub.flutter-io.cn" 143 | source: hosted 144 | version: "1.1.6" 145 | vector_math: 146 | dependency: transitive 147 | description: 148 | name: vector_math 149 | url: "https://pub.flutter-io.cn" 150 | source: hosted 151 | version: "2.0.8" 152 | sdks: 153 | dart: ">=2.2.0 <3.0.0" 154 | -------------------------------------------------------------------------------- /android/src/main/java/com/xueyoubangedu/bmsvideoplayer/VideoView.java: -------------------------------------------------------------------------------- 1 | package com.xueyoubangedu.bmsvideoplayer; 2 | 3 | import android.content.Context; 4 | import android.view.View; 5 | import android.view.LayoutInflater; 6 | import android.widget.TextView; 7 | import io.flutter.plugin.common.MethodCall; 8 | import io.flutter.plugin.common.MethodChannel; 9 | import static io.flutter.plugin.common.MethodChannel.MethodCallHandler; 10 | import static io.flutter.plugin.common.MethodChannel.Result; 11 | import io.flutter.plugin.common.PluginRegistry.Registrar; 12 | import io.flutter.plugin.platform.PlatformView; 13 | import com.shuyu.gsyvideoplayer.GSYVideoManager; 14 | import com.shuyu.gsyvideoplayer.utils.OrientationUtils; 15 | import com.shuyu.gsyvideoplayer.video.StandardGSYVideoPlayer; 16 | import com.shuyu.gsyvideoplayer.GSYVideoManager; 17 | import com.shuyu.gsyvideoplayer.listener.GSYSampleCallBack; 18 | import com.shuyu.gsyvideoplayer.listener.LockClickListener; 19 | import com.shuyu.gsyvideoplayer.builder.GSYVideoOptionBuilder; 20 | 21 | public class VideoView implements PlatformView, MethodCallHandler { 22 | private StandardGSYVideoPlayer bmsVideo; 23 | private OrientationUtils orientationUtils; 24 | private GSYVideoOptionBuilder gsyVideoOption; 25 | private final MethodChannel methodChannel; 26 | private final Registrar registrar; 27 | 28 | VideoView(Context context, int viewId, Object args, Registrar registrar) { 29 | this.registrar = registrar; 30 | bmsVideo = (StandardGSYVideoPlayer) LayoutInflater.from(registrar.activity()).inflate(R.layout.jz_video, null); 31 | this.methodChannel = new MethodChannel(registrar.messenger(), "bms_video_player_" + viewId); 32 | this.methodChannel.setMethodCallHandler(this); 33 | } 34 | 35 | @Override 36 | public View getView() { 37 | return bmsVideo; 38 | } 39 | 40 | @Override 41 | public void onMethodCall(MethodCall methodCall, MethodChannel.Result result) { 42 | switch (methodCall.method) { 43 | case "loadUrl": 44 | String url = methodCall.arguments.toString(); 45 | getBmsVideo(url); 46 | break; 47 | default: 48 | result.notImplemented(); 49 | } 50 | 51 | } 52 | 53 | @Override 54 | public void dispose() {} 55 | 56 | private void getBmsVideo(String url) { 57 | // 初始化 58 | //设置旋转 59 | orientationUtils = new OrientationUtils(registrar.activity(), bmsVideo); 60 | 61 | //是否可以滑动调整 62 | bmsVideo.setIsTouchWiget(true); 63 | //设置返回按键 64 | bmsVideo.getBackButton().setVisibility(View.GONE); 65 | 66 | //初始化不打开外部的旋转 67 | orientationUtils.setEnable(false); 68 | 69 | gsyVideoOption = new GSYVideoOptionBuilder(); 70 | gsyVideoOption.setIsTouchWiget(true) 71 | .setRotateViewAuto(false) 72 | .setLockLand(false) 73 | .setAutoFullWithSize(true) 74 | .setShowFullAnimation(false) 75 | .setNeedLockFull(true) 76 | .setUrl(url) 77 | .setCacheWithPlay(true) 78 | .setVideoAllCallBack(new GSYSampleCallBack() { 79 | @Override 80 | public void onPrepared(String url, Object... objects) { 81 | super.onPrepared(url, objects); 82 | //开始播放了才能旋转和全屏 83 | orientationUtils.setEnable(true); 84 | // isPlay = true; 85 | } 86 | 87 | @Override 88 | public void onQuitFullscreen(String url, Object... objects) { 89 | super.onQuitFullscreen(url, objects); 90 | if (orientationUtils != null) { 91 | orientationUtils.backToProtVideo(); 92 | } 93 | } 94 | }).setLockClickListener(new LockClickListener() { 95 | @Override 96 | public void onClick(View view, boolean lock) { 97 | if (orientationUtils != null) { 98 | //配合下方的onConfigurationChanged 99 | orientationUtils.setEnable(!lock); 100 | } 101 | } 102 | }).build(bmsVideo); 103 | 104 | bmsVideo.getFullscreenButton().setOnClickListener(new View.OnClickListener() { 105 | @Override 106 | public void onClick(View v) { 107 | orientationUtils.resolveByClick(); 108 | // 第一个 true 是否需要隐藏 actionbar,第二个 true 是否需要隐藏 statusbar 109 | // todo 暂时都设置为 false 110 | bmsVideo.startWindowFullscreen(registrar.activity(), false, false); 111 | } 112 | }); 113 | 114 | bmsVideo.startPlayLogic(); 115 | } 116 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # bms_video_player 2 | 3 | 当团队准备着手做 APP 时,我们把目标对准了 Flutter,尤其近期 Flutter 的使用热度一直不断攀升。由于第一次使用 Flutter,就想通过自己的实践去提升自己的能力。 4 | 5 | 在做 APP 时,我们用到了视频播放器,当前使用官方提供的插件「video_player」[https://github.com/flutter/plugins/tree/master/packages/video_player](https://github.com/flutter/plugins/tree/master/packages/video_player),可能该插件在国外没什么问题,但国内很多视频播放器做的很精良,自定义功能很齐全。 6 | 7 | 举一个例子:国内的 APP 全屏播放视频时,几乎都是横向全屏的,但官方提供的插件在 iOS 端是竖向直播的,效果很不好。 8 | 9 | ![](http://image.coding01.cn/2019/03/20/15530857812029.jpg) 10 | 11 | 因此萌生了自己想做一个视频播放插件: 12 | 13 | > **要求** 14 | > 15 | > 1. Android 和 iOS 端都是使用原生开发,体验效果好; 16 | > 2. 尽可能使用 GitHub Star 靠前的第三方开源插件,减轻自己的开发工作量; 17 | 18 | 根据以上的「2」要求,我主要找到了 `lipangit/JiaoZiVideoPlayer` 和 `newyjp/JPVideoPlayer` 19 | 20 | ![](http://image.coding01.cn/2019/03/20/15530867971433.jpg) 21 | 22 | ![](http://image.coding01.cn/2019/03/20/15530869471641.jpg) 23 | 24 | 25 | 好了,所有铺垫都做好了,我们开始一步步实现插件开发吧~ 26 | 27 | **1. 创建插件** 28 | 29 | ``` 30 | flutter create --org com.***.test --template=plugin bms_video_player 31 | ``` 32 | 33 | **2. 创建关联类** 34 | 35 | 在 `lib/bms_video_player.dart` 文件中创建 `BmsVideoPlayerController` 类,用于和原生代码关联: 36 | 37 | ``` 38 | class BmsVideoPlayerController { 39 | 40 | MethodChannel _channel; 41 | 42 | BmsVideoPlayerController.init(int id) { 43 | _channel = new MethodChannel('bms_video_player_$id'); 44 | } 45 | 46 | Future loadUrl(String url) async { 47 | assert(url != null); 48 | return _channel.invokeMethod('loadUrl', url); 49 | } 50 | } 51 | ``` 52 | 这里存在的 `MethodChannel` 有待于下一次好好研究研究。 53 | 54 | **3. 创建 Callback** 55 | 56 | ``` 57 | typedef void BmsVideoPlayerCreatedCallback(BmsVideoPlayerController controller); 58 | ``` 59 | 60 | **4. 创建 Widget 布局** 61 | 62 | 创建 Widget,用于添加原生布局: 63 | 64 | ``` 65 | class BmsVideoPlayer extends StatefulWidget { 66 | 67 | final BmsVideoPlayerCreatedCallback onCreated; 68 | final x; 69 | final y; 70 | final width; 71 | final height; 72 | 73 | BmsVideoPlayer({ 74 | Key key, 75 | @required this.onCreated, 76 | @required this.x, 77 | @required this.y, 78 | @required this.width, 79 | @required this.height, 80 | }); 81 | 82 | @override 83 | State createState() => _VideoPlayerState(); 84 | 85 | } 86 | 87 | class _VideoPlayerState extends State { 88 | 89 | @override 90 | void initState() { 91 | super.initState(); 92 | } 93 | 94 | @override 95 | Widget build(BuildContext context) { 96 | return GestureDetector( 97 | behavior: HitTestBehavior.opaque, 98 | child: nativeView(), 99 | onHorizontalDragStart: (DragStartDetails details) { 100 | print("onHorizontalDragStart: ${details.globalPosition}"); 101 | // if (!controller.value.initialized) { 102 | // return; 103 | // } 104 | // _controllerWasPlaying = controller.value.isPlaying; 105 | // if (_controllerWasPlaying) { 106 | // controller.pause(); 107 | // } 108 | }, 109 | onHorizontalDragUpdate: (DragUpdateDetails details) { 110 | print("onHorizontalDragUpdate: ${details.globalPosition}"); 111 | print(details.globalPosition); 112 | // if (!controller.value.initialized) { 113 | // return; 114 | // } 115 | // seekToRelativePosition(details.globalPosition); 116 | }, 117 | onHorizontalDragEnd: (DragEndDetails details) { 118 | print("onHorizontalDragEnd"); 119 | // if (_controllerWasPlaying) { 120 | // controller.play(); 121 | // } 122 | }, 123 | onTapDown: (TapDownDetails details) { 124 | print("onTapDown: ${details.globalPosition}"); 125 | }, 126 | ); 127 | } 128 | 129 | nativeView() { 130 | if (defaultTargetPlatform == TargetPlatform.android) { 131 | return AndroidView( 132 | viewType: 'plugins.bms_video_player/view', 133 | onPlatformViewCreated: onPlatformViewCreated, 134 | creationParams: { 135 | "x": widget.x, 136 | "y": widget.y, 137 | "width": widget.width, 138 | "height": widget.height, 139 | }, 140 | creationParamsCodec: const StandardMessageCodec(), 141 | ); 142 | } else { 143 | return UiKitView( 144 | viewType: 'plugins.bms_video_player/view', 145 | onPlatformViewCreated: onPlatformViewCreated, 146 | creationParams: { 147 | "x": widget.x, 148 | "y": widget.y, 149 | "width": widget.width, 150 | "height": widget.height, 151 | }, 152 | creationParamsCodec: const StandardMessageCodec(), 153 | ); 154 | } 155 | } 156 | 157 | Future onPlatformViewCreated(id) async { 158 | if (widget.onCreated == null) { 159 | return; 160 | } 161 | 162 | widget.onCreated(new BmsVideoPlayerController.init(id)); 163 | } 164 | } 165 | ``` 166 | 这里的 `AndroidView` 和 `UiKitView` 字如其意,不同的系统使用不同的 widget。 167 | 168 | 其中,`AndroidView` 和 `UiKitView` 都自带几个参数,如: 169 | 170 | 1. viewType:用于区分不同的插件名称和来源; 171 | 2. onPlatformViewCreated:用于在 widget 创建后,调用其函数 (`onPlatformViewCreated`); 172 | 3. creationParams:用于将参数传递给原生控件。 173 | 174 | 下面开始,根据 iOS 和 Android 分别注册插件和实现功能,首先是 Android。 175 | 176 | **5.1 注册 ViewFactory** 177 | 178 | 在 `BmsVideoPlayerPlugin` 类中注册 `ViewFactory`:`new VideoViewFactory(registrar)`,并命名为 「plugins.bms_video_player/view」: 179 | 180 | ```java 181 | public static void registerWith(Registrar registrar) { 182 | registrar.platformViewRegistry() 183 | .registerViewFactory("plugins.bms_video_player/view", new VideoViewFactory(registrar)); 184 | } 185 | ``` 186 | 187 | **5.2 创建 VideoViewFactory** 188 | 189 | 该 `VideoViewFactory` 类需要集成类 `PlatformViewFactory`,实现函数:`create(Context context, int viewId, Object args)`: 190 | 191 | ```java 192 | public class VideoViewFactory extends PlatformViewFactory { 193 | private final Registrar registrar; 194 | 195 | public VideoViewFactory(Registrar registrar) { 196 | super(StandardMessageCodec.INSTANCE); 197 | this.registrar = registrar; 198 | } 199 | 200 | @Override 201 | public PlatformView create(Context context, int viewId, Object args) { 202 | return new VideoView(context, viewId, args, this.registrar); 203 | } 204 | } 205 | ``` 206 | 207 | 开始我们的正餐了,创建实现类 `VideoView`。 208 | 209 | **5.3 VideoView** 210 | 211 | ```java 212 | public class VideoView implements PlatformView, MethodCallHandler { 213 | private final JzvdStd jzvdStd; 214 | private final MethodChannel methodChannel; 215 | private final Registrar registrar; 216 | 217 | VideoView(Context context, int viewId, Object args, Registrar registrar) { 218 | this.registrar = registrar; 219 | this.jzvdStd = getJzvStd(registrar, args); 220 | this.methodChannel = new MethodChannel(registrar.messenger(), "bms_video_player_" + viewId); 221 | this.methodChannel.setMethodCallHandler(this); 222 | } 223 | 224 | @Override 225 | public View getView() { 226 | return jzvdStd; 227 | } 228 | 229 | @Override 230 | public void onMethodCall(MethodCall methodCall, MethodChannel.Result result) { 231 | switch (methodCall.method) { 232 | case "loadUrl": 233 | String url = methodCall.arguments.toString(); 234 | jzvdStd.setUp(url, "", Jzvd.SCREEN_NORMAL); 235 | break; 236 | default: 237 | result.notImplemented(); 238 | } 239 | 240 | } 241 | 242 | @Override 243 | public void dispose() {} 244 | 245 | private JzvdStd getJzvStd(Registrar registrar, Object args) { 246 | JzvdStd view = (JzvdStd) LayoutInflater.from(registrar.activity()).inflate(R.layout.jz_video, null); 247 | return view; 248 | } 249 | } 250 | ``` 251 | 252 | 直接分析代码: 253 | 254 | 1. 实现接口:PlatformView 和 MethodCallHandler,第一个接口「PlatformView」,用于 `return` 原生 View,也就是我们使用的第三方插件:JzvdStd。第二个接口「MethodCallHandler」,用于处理从 Dart 发过来的请求函数,如本文创建的函数:`loadUrl` 255 | 2. 这里 `return` 的 `JzvdStd`,使用 xml: 256 | 257 | ```xml 258 | 259 | 264 | ``` 265 | 266 | **5.4 引入第三方插件** 267 | 268 | 当然,我们需要在 `build.gradle` 最后加入插件: 269 | 270 | ``` 271 | dependencies { 272 | implementation 'cn.jzvd:jiaozivideoplayer:7.0_preview' 273 | } 274 | ``` 275 | 276 | 至此,我们的 Android 端就算完成了,接下来看看 iOS 端。 277 | 278 | **6.1 注册 ViewFactory** 279 | 同样的,在类 `BmsVideoPlayerPlugin` 中注册 `VideoViewFactory` 280 | 281 | ``` 282 | + (void)registerWithRegistrar:(NSObject*)registrar { 283 | VideoViewFactory* factory = 284 | [[VideoViewFactory alloc] initWithMessenger:registrar.messenger]; 285 | [registrar registerViewFactory:factory withId:@"plugins.bms_video_player/view"]; 286 | } 287 | ``` 288 | 289 | **6.2 创建 VideoViewFactory** 290 | 291 | ``` 292 | #import "VideoViewFactory.h" 293 | #import "BMSVideoPlayerViewController.h" 294 | 295 | @implementation VideoViewFactory { 296 | NSObject* _messenger; 297 | } 298 | 299 | - (instancetype)initWithMessenger:(NSObject*)messenger { 300 | self = [super init]; 301 | if (self) { 302 | _messenger = messenger; 303 | } 304 | return self; 305 | } 306 | 307 | - (NSObject*)createArgsCodec { 308 | return [FlutterStandardMessageCodec sharedInstance]; 309 | } 310 | 311 | - (nonnull NSObject *)createWithFrame:(CGRect)frame 312 | viewIdentifier:(int64_t)viewId 313 | arguments:(id _Nullable)args { 314 | BMSVideoPlayerViewController* viewController = 315 | [[BMSVideoPlayerViewController alloc] initWithWithFrame:frame 316 | viewIdentifier:viewId 317 | arguments:args 318 | binaryMessenger:_messenger]; 319 | return viewController; 320 | } 321 | 322 | @end 323 | ``` 324 | 325 | 代码还是很简单,重点往下看 `BMSVideoPlayerViewController` 326 | 327 | **6.3 BMSVideoPlayerViewController** 328 | 329 | ``` 330 | #import "BMSVideoPlayerViewController.h" 331 | #import 332 | 333 | @interface BMSVideoPlayerViewController () 334 | 335 | @end 336 | 337 | @implementation BMSVideoPlayerViewController { 338 | UIView * _videoView; 339 | int64_t _viewId; 340 | FlutterMethodChannel* _channel; 341 | } 342 | 343 | #pragma mark - life cycle 344 | 345 | - (instancetype)initWithWithFrame:(CGRect)frame 346 | viewIdentifier:(int64_t)viewId 347 | arguments:(id _Nullable)args 348 | binaryMessenger:(NSObject*)messenger { 349 | if ([super init]) { 350 | _viewId = viewId; 351 | _videoView = [UIView new]; 352 | _videoView.backgroundColor = [UIColor greenColor]; 353 | NSDictionary *dic = args; 354 | CGFloat x = [dic[@"x"] floatValue]; 355 | CGFloat y = [dic[@"y"] floatValue]; 356 | CGFloat width = [dic[@"width"] floatValue]; 357 | CGFloat height = [dic[@"height"] floatValue]; 358 | _videoView.frame = CGRectMake(x, y, width, height); 359 | _videoView.jp_videoPlayerDelegate = self; 360 | NSString* channelName = [NSString stringWithFormat:@"bms_video_player_%lld", viewId]; 361 | _channel = [FlutterMethodChannel methodChannelWithName:channelName binaryMessenger:messenger]; 362 | __weak __typeof__(self) weakSelf = self; 363 | [_channel setMethodCallHandler:^(FlutterMethodCall* call, FlutterResult result) { 364 | [weakSelf onMethodCall:call result:result]; 365 | }]; 366 | 367 | } 368 | return self; 369 | } 370 | 371 | - (nonnull UIView *)view { 372 | return _videoView; 373 | } 374 | 375 | - (void)onMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result { 376 | if ([[call method] isEqualToString:@"loadUrl"]) { 377 | [self onLoadUrl:call result:result]; 378 | } else { 379 | result(FlutterMethodNotImplemented); 380 | } 381 | } 382 | 383 | - (void)onLoadUrl:(FlutterMethodCall*)call result:(FlutterResult)result { 384 | NSString* url = [call arguments]; 385 | if (![self loadUrl:url]) { 386 | result([FlutterError errorWithCode:@"loadUrl_failed" 387 | message:@"Failed parsing the URL" 388 | details:[NSString stringWithFormat:@"URL was: '%@'", url]]); 389 | } else { 390 | result(nil); 391 | } 392 | } 393 | 394 | - (bool)loadUrl:(NSString*)url { 395 | NSURL* nsUrl = [NSURL URLWithString:url]; 396 | if (!nsUrl) { 397 | return false; 398 | } 399 | 400 | [_videoView jp_playVideoWithURL:nsUrl 401 | bufferingIndicator:nil 402 | controlView:nil 403 | progressView:nil 404 | configuration:^(UIView *view, JPVideoPlayerModel *playerModel) { 405 | // self.muteSwitch.on = ![self.videoContainer jp_muted]; 406 | }]; 407 | return true; 408 | } 409 | 410 | #pragma mark - JPVideoPlayerDelegate 411 | 412 | - (BOOL)shouldAutoReplayForURL:(nonnull NSURL *)videoURL { 413 | return true; 414 | } 415 | @end 416 | ``` 417 | 其实,代码实现都很简单,唯一和 Android 端不一样的就是控件的创建不一样,Android 的我直接用 xml,iOS 的主要是需要定义 Frame 大小,我尝试使用函数传递的 frame 值,貌似不管用。如果有人知道问题所在,欢迎告知我! 418 | 419 | 最后,和 Android 一样,引入我们使用的第三方插件: 420 | 421 | **6.4 引入 JPVideoPlayer** 422 | 423 | 在文件 `bms_video_player.podspec` 引入: 424 | 425 | ``` 426 | s.dependency 'JPVideoPlayer' 427 | ``` 428 | 429 | **7. 链接调用** 430 | 431 | 看「4」的创建 widget 后的回调函数: 432 | 433 | ``` 434 | Future onPlatformViewCreated(id) async { 435 | if (widget.onCreated == null) { 436 | return; 437 | } 438 | 439 | widget.onCreated(new BmsVideoPlayerController.init(id)); 440 | } 441 | ``` 442 | 直接 `new BmsVideoPlayerController.init(id)`,即创建了 `channel`: 443 | 444 | ``` 445 | MethodChannel _channel; 446 | 447 | BmsVideoPlayerController.init(int id) { 448 | _channel = new MethodChannel('bms_video_player_$id'); 449 | } 450 | 451 | Future loadUrl(String url) async { 452 | assert(url != null); 453 | return _channel.invokeMethod('loadUrl', url); 454 | } 455 | ``` 456 | 457 | 有了 `channel` 自然和原生代码串联起来了,同时创建 `loadUrl` 函数供外界调用。 458 | 459 | **8. 测试使用** 460 | 461 | 藉此,我们的插件实现了基本功能了,写个 demo,测试下效果: 462 | 463 | ``` 464 | import 'package:flutter/material.dart'; 465 | 466 | import 'package:bms_video_player/bms_video_player.dart'; 467 | 468 | void main() => runApp(MyApp()); 469 | 470 | class MyApp extends StatefulWidget { 471 | @override 472 | _MyAppState createState() => _MyAppState(); 473 | } 474 | 475 | class _MyAppState extends State { 476 | 477 | var viewPlayerController; 478 | 479 | @override 480 | void initState() { 481 | super.initState(); 482 | } 483 | 484 | @override 485 | Widget build(BuildContext context) { 486 | var x = 0.0; 487 | var y = 0.0; 488 | var width = 400.0; 489 | var height = width * 9.0 / 16.0; 490 | 491 | BmsVideoPlayer videoPlayer = new BmsVideoPlayer( 492 | onCreated: onViewPlayerCreated, 493 | x: x, 494 | y: y, 495 | width: width, 496 | height: height 497 | ); 498 | return MaterialApp( 499 | home: Scaffold( 500 | appBar: AppBar( 501 | title: const Text('Plugin example app'), 502 | ), 503 | body: Container( 504 | child: videoPlayer, 505 | width: width, 506 | height: height 507 | ) 508 | ), 509 | ); 510 | } 511 | 512 | void onViewPlayerCreated(viewPlayerController) { 513 | this.viewPlayerController = viewPlayerController; 514 | this.viewPlayerController.loadUrl("https://www.****.com/****.mp4"); 515 | } 516 | } 517 | ``` 518 | 相信这代码不用多解释了,引入我们的插件 widget,然后调用 `loadUrl` 函数,传入我们的视频链接,即可开始播放了。 519 | 520 | **iOS 效果** 521 | 522 | ![](http://image.coding01.cn/2019/03/20/15530723766227.jpg) 523 | 524 | **Android 效果** 525 | 526 | ![](http://image.coding01.cn/2019/03/20/15530724023308.jpg) 527 | 528 | ## 总结 529 | 530 | 第一次使用 Flutter,第一次实现基本的插件功能,写的比较粗糙,但相信基本的写法都在里面了。接下来就是实现播放视频的所有功能,如:暂停/播放,小窗口播放、全屏播放、缓存、静音等。 531 | 532 | 还有,就是如何实现 Dart 和原生代码进行通讯的。 533 | 534 | ![](http://image.coding01.cn/2019/01/12/15472793450210.png) 535 | 536 | **未完待续,敬请期待** 537 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 229C48DC42AA71115B8CB6C7 /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C86E824FA2E105B714012761 /* libPods-Runner.a */; }; 12 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 13 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 14 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 15 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 16 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 17 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; }; 18 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; 19 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; 20 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 21 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 22 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXCopyFilesBuildPhase section */ 26 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 27 | isa = PBXCopyFilesBuildPhase; 28 | buildActionMask = 2147483647; 29 | dstPath = ""; 30 | dstSubfolderSpec = 10; 31 | files = ( 32 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 33 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 34 | ); 35 | name = "Embed Frameworks"; 36 | runOnlyForDeploymentPostprocessing = 0; 37 | }; 38 | /* End PBXCopyFilesBuildPhase section */ 39 | 40 | /* Begin PBXFileReference section */ 41 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 42 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 43 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 44 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 45 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 46 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 47 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 48 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 49 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 50 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 51 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 53 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 54 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 55 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 56 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 57 | C86E824FA2E105B714012761 /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 58 | /* End PBXFileReference section */ 59 | 60 | /* Begin PBXFrameworksBuildPhase section */ 61 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 66 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 67 | 229C48DC42AA71115B8CB6C7 /* libPods-Runner.a in Frameworks */, 68 | ); 69 | runOnlyForDeploymentPostprocessing = 0; 70 | }; 71 | /* End PBXFrameworksBuildPhase section */ 72 | 73 | /* Begin PBXGroup section */ 74 | 9740EEB11CF90186004384FC /* Flutter */ = { 75 | isa = PBXGroup; 76 | children = ( 77 | 3B80C3931E831B6300D905FE /* App.framework */, 78 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 79 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 80 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 81 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 82 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 83 | ); 84 | name = Flutter; 85 | sourceTree = ""; 86 | }; 87 | 97C146E51CF9000F007C117D = { 88 | isa = PBXGroup; 89 | children = ( 90 | 9740EEB11CF90186004384FC /* Flutter */, 91 | 97C146F01CF9000F007C117D /* Runner */, 92 | 97C146EF1CF9000F007C117D /* Products */, 93 | F4523D1946D747455DD3B9DC /* Pods */, 94 | C509C58F830754B7D0E61D6B /* Frameworks */, 95 | ); 96 | sourceTree = ""; 97 | }; 98 | 97C146EF1CF9000F007C117D /* Products */ = { 99 | isa = PBXGroup; 100 | children = ( 101 | 97C146EE1CF9000F007C117D /* Runner.app */, 102 | ); 103 | name = Products; 104 | sourceTree = ""; 105 | }; 106 | 97C146F01CF9000F007C117D /* Runner */ = { 107 | isa = PBXGroup; 108 | children = ( 109 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, 110 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, 111 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 112 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 113 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 114 | 97C147021CF9000F007C117D /* Info.plist */, 115 | 97C146F11CF9000F007C117D /* Supporting Files */, 116 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 117 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 118 | ); 119 | path = Runner; 120 | sourceTree = ""; 121 | }; 122 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 123 | isa = PBXGroup; 124 | children = ( 125 | 97C146F21CF9000F007C117D /* main.m */, 126 | ); 127 | name = "Supporting Files"; 128 | sourceTree = ""; 129 | }; 130 | C509C58F830754B7D0E61D6B /* Frameworks */ = { 131 | isa = PBXGroup; 132 | children = ( 133 | C86E824FA2E105B714012761 /* libPods-Runner.a */, 134 | ); 135 | name = Frameworks; 136 | sourceTree = ""; 137 | }; 138 | F4523D1946D747455DD3B9DC /* Pods */ = { 139 | isa = PBXGroup; 140 | children = ( 141 | ); 142 | name = Pods; 143 | sourceTree = ""; 144 | }; 145 | /* End PBXGroup section */ 146 | 147 | /* Begin PBXNativeTarget section */ 148 | 97C146ED1CF9000F007C117D /* Runner */ = { 149 | isa = PBXNativeTarget; 150 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 151 | buildPhases = ( 152 | E51CFD8D1B9281716CFE34ED /* [CP] Check Pods Manifest.lock */, 153 | 9740EEB61CF901F6004384FC /* Run Script */, 154 | 97C146EA1CF9000F007C117D /* Sources */, 155 | 97C146EB1CF9000F007C117D /* Frameworks */, 156 | 97C146EC1CF9000F007C117D /* Resources */, 157 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 158 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 159 | 861954EA3AA633C250E134A7 /* [CP] Embed Pods Frameworks */, 160 | 5C0F0775CCB1CF335846E40F /* [CP] Copy Pods Resources */, 161 | ); 162 | buildRules = ( 163 | ); 164 | dependencies = ( 165 | ); 166 | name = Runner; 167 | productName = Runner; 168 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 169 | productType = "com.apple.product-type.application"; 170 | }; 171 | /* End PBXNativeTarget section */ 172 | 173 | /* Begin PBXProject section */ 174 | 97C146E61CF9000F007C117D /* Project object */ = { 175 | isa = PBXProject; 176 | attributes = { 177 | LastUpgradeCheck = 0910; 178 | ORGANIZATIONNAME = "The Chromium Authors"; 179 | TargetAttributes = { 180 | 97C146ED1CF9000F007C117D = { 181 | CreatedOnToolsVersion = 7.3.1; 182 | DevelopmentTeam = 6V3827LM63; 183 | }; 184 | }; 185 | }; 186 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 187 | compatibilityVersion = "Xcode 3.2"; 188 | developmentRegion = English; 189 | hasScannedForEncodings = 0; 190 | knownRegions = ( 191 | en, 192 | Base, 193 | ); 194 | mainGroup = 97C146E51CF9000F007C117D; 195 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 196 | projectDirPath = ""; 197 | projectRoot = ""; 198 | targets = ( 199 | 97C146ED1CF9000F007C117D /* Runner */, 200 | ); 201 | }; 202 | /* End PBXProject section */ 203 | 204 | /* Begin PBXResourcesBuildPhase section */ 205 | 97C146EC1CF9000F007C117D /* Resources */ = { 206 | isa = PBXResourcesBuildPhase; 207 | buildActionMask = 2147483647; 208 | files = ( 209 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 210 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 211 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */, 212 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 213 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 214 | ); 215 | runOnlyForDeploymentPostprocessing = 0; 216 | }; 217 | /* End PBXResourcesBuildPhase section */ 218 | 219 | /* Begin PBXShellScriptBuildPhase section */ 220 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 221 | isa = PBXShellScriptBuildPhase; 222 | buildActionMask = 2147483647; 223 | files = ( 224 | ); 225 | inputPaths = ( 226 | ); 227 | name = "Thin Binary"; 228 | outputPaths = ( 229 | ); 230 | runOnlyForDeploymentPostprocessing = 0; 231 | shellPath = /bin/sh; 232 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 233 | }; 234 | 5C0F0775CCB1CF335846E40F /* [CP] Copy Pods Resources */ = { 235 | isa = PBXShellScriptBuildPhase; 236 | buildActionMask = 2147483647; 237 | files = ( 238 | ); 239 | inputFileListPaths = ( 240 | ); 241 | inputPaths = ( 242 | "${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-resources.sh", 243 | "${PODS_ROOT}/JPVideoPlayer/JPVideoPlayer/JPVideoPlayer.bundle", 244 | ); 245 | name = "[CP] Copy Pods Resources"; 246 | outputFileListPaths = ( 247 | ); 248 | outputPaths = ( 249 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/JPVideoPlayer.bundle", 250 | ); 251 | runOnlyForDeploymentPostprocessing = 0; 252 | shellPath = /bin/sh; 253 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n"; 254 | showEnvVarsInLog = 0; 255 | }; 256 | 861954EA3AA633C250E134A7 /* [CP] Embed Pods Frameworks */ = { 257 | isa = PBXShellScriptBuildPhase; 258 | buildActionMask = 2147483647; 259 | files = ( 260 | ); 261 | inputFileListPaths = ( 262 | ); 263 | inputPaths = ( 264 | "${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh", 265 | "${PODS_ROOT}/../.symlinks/flutter/ios/Flutter.framework", 266 | ); 267 | name = "[CP] Embed Pods Frameworks"; 268 | outputFileListPaths = ( 269 | ); 270 | outputPaths = ( 271 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework", 272 | ); 273 | runOnlyForDeploymentPostprocessing = 0; 274 | shellPath = /bin/sh; 275 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; 276 | showEnvVarsInLog = 0; 277 | }; 278 | 9740EEB61CF901F6004384FC /* Run Script */ = { 279 | isa = PBXShellScriptBuildPhase; 280 | buildActionMask = 2147483647; 281 | files = ( 282 | ); 283 | inputPaths = ( 284 | ); 285 | name = "Run Script"; 286 | outputPaths = ( 287 | ); 288 | runOnlyForDeploymentPostprocessing = 0; 289 | shellPath = /bin/sh; 290 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 291 | }; 292 | E51CFD8D1B9281716CFE34ED /* [CP] Check Pods Manifest.lock */ = { 293 | isa = PBXShellScriptBuildPhase; 294 | buildActionMask = 2147483647; 295 | files = ( 296 | ); 297 | inputFileListPaths = ( 298 | ); 299 | inputPaths = ( 300 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 301 | "${PODS_ROOT}/Manifest.lock", 302 | ); 303 | name = "[CP] Check Pods Manifest.lock"; 304 | outputFileListPaths = ( 305 | ); 306 | outputPaths = ( 307 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", 308 | ); 309 | runOnlyForDeploymentPostprocessing = 0; 310 | shellPath = /bin/sh; 311 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 312 | showEnvVarsInLog = 0; 313 | }; 314 | /* End PBXShellScriptBuildPhase section */ 315 | 316 | /* Begin PBXSourcesBuildPhase section */ 317 | 97C146EA1CF9000F007C117D /* Sources */ = { 318 | isa = PBXSourcesBuildPhase; 319 | buildActionMask = 2147483647; 320 | files = ( 321 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, 322 | 97C146F31CF9000F007C117D /* main.m in Sources */, 323 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 324 | ); 325 | runOnlyForDeploymentPostprocessing = 0; 326 | }; 327 | /* End PBXSourcesBuildPhase section */ 328 | 329 | /* Begin PBXVariantGroup section */ 330 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 331 | isa = PBXVariantGroup; 332 | children = ( 333 | 97C146FB1CF9000F007C117D /* Base */, 334 | ); 335 | name = Main.storyboard; 336 | sourceTree = ""; 337 | }; 338 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 339 | isa = PBXVariantGroup; 340 | children = ( 341 | 97C147001CF9000F007C117D /* Base */, 342 | ); 343 | name = LaunchScreen.storyboard; 344 | sourceTree = ""; 345 | }; 346 | /* End PBXVariantGroup section */ 347 | 348 | /* Begin XCBuildConfiguration section */ 349 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 350 | isa = XCBuildConfiguration; 351 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 352 | buildSettings = { 353 | ALWAYS_SEARCH_USER_PATHS = NO; 354 | CLANG_ANALYZER_NONNULL = YES; 355 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 356 | CLANG_CXX_LIBRARY = "libc++"; 357 | CLANG_ENABLE_MODULES = YES; 358 | CLANG_ENABLE_OBJC_ARC = YES; 359 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 360 | CLANG_WARN_BOOL_CONVERSION = YES; 361 | CLANG_WARN_COMMA = YES; 362 | CLANG_WARN_CONSTANT_CONVERSION = YES; 363 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 364 | CLANG_WARN_EMPTY_BODY = YES; 365 | CLANG_WARN_ENUM_CONVERSION = YES; 366 | CLANG_WARN_INFINITE_RECURSION = YES; 367 | CLANG_WARN_INT_CONVERSION = YES; 368 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 369 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 370 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 371 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 372 | CLANG_WARN_STRICT_PROTOTYPES = YES; 373 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 374 | CLANG_WARN_UNREACHABLE_CODE = YES; 375 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 376 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 377 | COPY_PHASE_STRIP = NO; 378 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 379 | ENABLE_NS_ASSERTIONS = NO; 380 | ENABLE_STRICT_OBJC_MSGSEND = YES; 381 | GCC_C_LANGUAGE_STANDARD = gnu99; 382 | GCC_NO_COMMON_BLOCKS = YES; 383 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 384 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 385 | GCC_WARN_UNDECLARED_SELECTOR = YES; 386 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 387 | GCC_WARN_UNUSED_FUNCTION = YES; 388 | GCC_WARN_UNUSED_VARIABLE = YES; 389 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 390 | MTL_ENABLE_DEBUG_INFO = NO; 391 | SDKROOT = iphoneos; 392 | TARGETED_DEVICE_FAMILY = "1,2"; 393 | VALIDATE_PRODUCT = YES; 394 | }; 395 | name = Profile; 396 | }; 397 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 398 | isa = XCBuildConfiguration; 399 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 400 | buildSettings = { 401 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 402 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 403 | DEVELOPMENT_TEAM = 6V3827LM63; 404 | ENABLE_BITCODE = NO; 405 | FRAMEWORK_SEARCH_PATHS = ( 406 | "$(inherited)", 407 | "$(PROJECT_DIR)/Flutter", 408 | ); 409 | INFOPLIST_FILE = Runner/Info.plist; 410 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 411 | LIBRARY_SEARCH_PATHS = ( 412 | "$(inherited)", 413 | "$(PROJECT_DIR)/Flutter", 414 | ); 415 | PRODUCT_BUNDLE_IDENTIFIER = com.xueyoubangedu.test; 416 | PRODUCT_NAME = "$(TARGET_NAME)"; 417 | VERSIONING_SYSTEM = "apple-generic"; 418 | }; 419 | name = Profile; 420 | }; 421 | 97C147031CF9000F007C117D /* Debug */ = { 422 | isa = XCBuildConfiguration; 423 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 424 | buildSettings = { 425 | ALWAYS_SEARCH_USER_PATHS = NO; 426 | CLANG_ANALYZER_NONNULL = YES; 427 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 428 | CLANG_CXX_LIBRARY = "libc++"; 429 | CLANG_ENABLE_MODULES = YES; 430 | CLANG_ENABLE_OBJC_ARC = YES; 431 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 432 | CLANG_WARN_BOOL_CONVERSION = YES; 433 | CLANG_WARN_COMMA = YES; 434 | CLANG_WARN_CONSTANT_CONVERSION = YES; 435 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 436 | CLANG_WARN_EMPTY_BODY = YES; 437 | CLANG_WARN_ENUM_CONVERSION = YES; 438 | CLANG_WARN_INFINITE_RECURSION = YES; 439 | CLANG_WARN_INT_CONVERSION = YES; 440 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 441 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 442 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 443 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 444 | CLANG_WARN_STRICT_PROTOTYPES = YES; 445 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 446 | CLANG_WARN_UNREACHABLE_CODE = YES; 447 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 448 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 449 | COPY_PHASE_STRIP = NO; 450 | DEBUG_INFORMATION_FORMAT = dwarf; 451 | ENABLE_STRICT_OBJC_MSGSEND = YES; 452 | ENABLE_TESTABILITY = YES; 453 | GCC_C_LANGUAGE_STANDARD = gnu99; 454 | GCC_DYNAMIC_NO_PIC = NO; 455 | GCC_NO_COMMON_BLOCKS = YES; 456 | GCC_OPTIMIZATION_LEVEL = 0; 457 | GCC_PREPROCESSOR_DEFINITIONS = ( 458 | "DEBUG=1", 459 | "$(inherited)", 460 | ); 461 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 462 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 463 | GCC_WARN_UNDECLARED_SELECTOR = YES; 464 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 465 | GCC_WARN_UNUSED_FUNCTION = YES; 466 | GCC_WARN_UNUSED_VARIABLE = YES; 467 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 468 | MTL_ENABLE_DEBUG_INFO = YES; 469 | ONLY_ACTIVE_ARCH = YES; 470 | SDKROOT = iphoneos; 471 | TARGETED_DEVICE_FAMILY = "1,2"; 472 | }; 473 | name = Debug; 474 | }; 475 | 97C147041CF9000F007C117D /* Release */ = { 476 | isa = XCBuildConfiguration; 477 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 478 | buildSettings = { 479 | ALWAYS_SEARCH_USER_PATHS = NO; 480 | CLANG_ANALYZER_NONNULL = YES; 481 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 482 | CLANG_CXX_LIBRARY = "libc++"; 483 | CLANG_ENABLE_MODULES = YES; 484 | CLANG_ENABLE_OBJC_ARC = YES; 485 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 486 | CLANG_WARN_BOOL_CONVERSION = YES; 487 | CLANG_WARN_COMMA = YES; 488 | CLANG_WARN_CONSTANT_CONVERSION = YES; 489 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 490 | CLANG_WARN_EMPTY_BODY = YES; 491 | CLANG_WARN_ENUM_CONVERSION = YES; 492 | CLANG_WARN_INFINITE_RECURSION = YES; 493 | CLANG_WARN_INT_CONVERSION = YES; 494 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 495 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 496 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 497 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 498 | CLANG_WARN_STRICT_PROTOTYPES = YES; 499 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 500 | CLANG_WARN_UNREACHABLE_CODE = YES; 501 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 502 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 503 | COPY_PHASE_STRIP = NO; 504 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 505 | ENABLE_NS_ASSERTIONS = NO; 506 | ENABLE_STRICT_OBJC_MSGSEND = YES; 507 | GCC_C_LANGUAGE_STANDARD = gnu99; 508 | GCC_NO_COMMON_BLOCKS = YES; 509 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 510 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 511 | GCC_WARN_UNDECLARED_SELECTOR = YES; 512 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 513 | GCC_WARN_UNUSED_FUNCTION = YES; 514 | GCC_WARN_UNUSED_VARIABLE = YES; 515 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 516 | MTL_ENABLE_DEBUG_INFO = NO; 517 | SDKROOT = iphoneos; 518 | TARGETED_DEVICE_FAMILY = "1,2"; 519 | VALIDATE_PRODUCT = YES; 520 | }; 521 | name = Release; 522 | }; 523 | 97C147061CF9000F007C117D /* Debug */ = { 524 | isa = XCBuildConfiguration; 525 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 526 | buildSettings = { 527 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 528 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 529 | DEVELOPMENT_TEAM = 6V3827LM63; 530 | ENABLE_BITCODE = NO; 531 | FRAMEWORK_SEARCH_PATHS = ( 532 | "$(inherited)", 533 | "$(PROJECT_DIR)/Flutter", 534 | ); 535 | INFOPLIST_FILE = Runner/Info.plist; 536 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 537 | LIBRARY_SEARCH_PATHS = ( 538 | "$(inherited)", 539 | "$(PROJECT_DIR)/Flutter", 540 | ); 541 | PRODUCT_BUNDLE_IDENTIFIER = com.xueyoubangedu.test; 542 | PRODUCT_NAME = "$(TARGET_NAME)"; 543 | VERSIONING_SYSTEM = "apple-generic"; 544 | }; 545 | name = Debug; 546 | }; 547 | 97C147071CF9000F007C117D /* Release */ = { 548 | isa = XCBuildConfiguration; 549 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 550 | buildSettings = { 551 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 552 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 553 | DEVELOPMENT_TEAM = 6V3827LM63; 554 | ENABLE_BITCODE = NO; 555 | FRAMEWORK_SEARCH_PATHS = ( 556 | "$(inherited)", 557 | "$(PROJECT_DIR)/Flutter", 558 | ); 559 | INFOPLIST_FILE = Runner/Info.plist; 560 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 561 | LIBRARY_SEARCH_PATHS = ( 562 | "$(inherited)", 563 | "$(PROJECT_DIR)/Flutter", 564 | ); 565 | PRODUCT_BUNDLE_IDENTIFIER = com.xueyoubangedu.test; 566 | PRODUCT_NAME = "$(TARGET_NAME)"; 567 | VERSIONING_SYSTEM = "apple-generic"; 568 | }; 569 | name = Release; 570 | }; 571 | /* End XCBuildConfiguration section */ 572 | 573 | /* Begin XCConfigurationList section */ 574 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 575 | isa = XCConfigurationList; 576 | buildConfigurations = ( 577 | 97C147031CF9000F007C117D /* Debug */, 578 | 97C147041CF9000F007C117D /* Release */, 579 | 249021D3217E4FDB00AE95B9 /* Profile */, 580 | ); 581 | defaultConfigurationIsVisible = 0; 582 | defaultConfigurationName = Release; 583 | }; 584 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 585 | isa = XCConfigurationList; 586 | buildConfigurations = ( 587 | 97C147061CF9000F007C117D /* Debug */, 588 | 97C147071CF9000F007C117D /* Release */, 589 | 249021D4217E4FDB00AE95B9 /* Profile */, 590 | ); 591 | defaultConfigurationIsVisible = 0; 592 | defaultConfigurationName = Release; 593 | }; 594 | /* End XCConfigurationList section */ 595 | }; 596 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 597 | } 598 | --------------------------------------------------------------------------------