Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added some methods in controller #166

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "pod_player",
"request": "launch",
"type": "dart"
},
{
"name": "pod_player (profile mode)",
"request": "launch",
"type": "dart",
"flutterMode": "profile"
},
{
"name": "pod_player (release mode)",
"request": "launch",
"type": "dart",
"flutterMode": "release"
},
{
"name": "example",
"cwd": "example",
"request": "launch",
"type": "dart"
},
{
"name": "example (profile mode)",
"cwd": "example",
"request": "launch",
"type": "dart",
"flutterMode": "profile"
},
{
"name": "example (release mode)",
"cwd": "example",
"request": "launch",
"type": "dart",
"flutterMode": "release"
}
]
}
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ import 'package:pod_player/pod_player.dart';
import 'package:flutter/material.dart';

class PlayVideoFromNetwork extends StatefulWidget {
const PlayVideoFromNetwork({Key? key}) : super(key: key);
const PlayVideoFromNetwork({super.key});

@override
State<PlayVideoFromNetwork> createState() => _PlayVideoFromNetworkState();
Expand Down Expand Up @@ -308,7 +308,7 @@ import 'package:pod_player/pod_player.dart';
import 'package:flutter/material.dart';

class PlayVideoFromYoutube extends StatefulWidget {
const PlayVideoFromYoutube({Key? key}) : super(key: key);
const PlayVideoFromYoutube({super.key});

@override
State<PlayVideoFromYoutube> createState() => _PlayVideoFromYoutubeState();
Expand Down Expand Up @@ -350,7 +350,7 @@ import 'package:pod_player/pod_player.dart';
import 'package:flutter/material.dart';

class PlayVideoFromVimeo extends StatefulWidget {
const PlayVideoFromVimeo({Key? key}) : super(key: key);
const PlayVideoFromVimeo({super.key});

@override
State<PlayVideoFromVimeo> createState() => _PlayVideoFromVimeoState();
Expand Down Expand Up @@ -392,7 +392,7 @@ import 'package:pod_player/pod_player.dart';
import 'package:flutter/material.dart';

class PlayVideoFromVimeo extends StatefulWidget {
const PlayVideoFromVimeo({Key? key}) : super(key: key);
const PlayVideoFromVimeo({super.key});

@override
State<PlayVideoFromVimeo> createState() => _PlayVideoFromVimeoState();
Expand Down Expand Up @@ -434,7 +434,7 @@ import 'package:pod_player/pod_player.dart';
import 'package:flutter/material.dart';

class PlayVideoFromVimeoPrivateVideo extends StatefulWidget {
const PlayVideoFromVimeoPrivateVideo({Key? key}) : super(key: key);
const PlayVideoFromVimeoPrivateVideo({super.key});

@override
State<PlayVideoFromVimeoPrivateVideo> createState() =>
Expand Down
2 changes: 1 addition & 1 deletion example/ios/Flutter/AppFrameworkInfo.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>11.0</string>
<string>12.0</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion example/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Uncomment this line to define a global platform for your project
# platform :ios, '11.0'
# platform :ios, '12.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
Expand Down
15 changes: 8 additions & 7 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ PODS:
- Flutter
- video_player_avfoundation (0.0.1):
- Flutter
- FlutterMacOS
- wakelock_plus (0.0.1):
- Flutter

DEPENDENCIES:
- Flutter (from `Flutter`)
- package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
- video_player_avfoundation (from `.symlinks/plugins/video_player_avfoundation/ios`)
- video_player_avfoundation (from `.symlinks/plugins/video_player_avfoundation/darwin`)
- wakelock_plus (from `.symlinks/plugins/wakelock_plus/ios`)

EXTERNAL SOURCES:
Expand All @@ -19,16 +20,16 @@ EXTERNAL SOURCES:
package_info_plus:
:path: ".symlinks/plugins/package_info_plus/ios"
video_player_avfoundation:
:path: ".symlinks/plugins/video_player_avfoundation/ios"
:path: ".symlinks/plugins/video_player_avfoundation/darwin"
wakelock_plus:
:path: ".symlinks/plugins/wakelock_plus/ios"

SPEC CHECKSUMS:
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
package_info_plus: fd030dabf36271f146f1f3beacd48f564b0f17f7
video_player_avfoundation: 81e49bb3d9fb63dccf9fa0f6d877dc3ddbeac126
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
package_info_plus: 115f4ad11e0698c8c1c5d8a689390df880f47e85
video_player_avfoundation: e9e6f9cae7d7a6d9b43519b0aab382bca60fcfd1
wakelock_plus: 8b09852c8876491e4b6d179e17dfe2a0b5f60d47

PODFILE CHECKSUM: ef19549a9bc3046e7bb7d2fab4d021637c0c58a3
PODFILE CHECKSUM: c4c93c5f6502fe2754f48404d3594bf779584011

COCOAPODS: 1.11.2
COCOAPODS: 1.15.2
8 changes: 4 additions & 4 deletions example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
97C146E61CF9000F007C117D /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1300;
LastUpgradeCheck = 1430;
ORGANIZATIONNAME = "";
TargetAttributes = {
97C146ED1CF9000F007C117D = {
Expand Down Expand Up @@ -342,7 +342,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
Expand Down Expand Up @@ -420,7 +420,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -469,7 +469,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1300"
LastUpgradeVersion = "1430"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
4 changes: 2 additions & 2 deletions example/lib/examples/load_vimeo_from_urls.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ void main(List<String> args) {
}

class VimeoApp extends StatelessWidget {
const VimeoApp({Key? key}) : super(key: key);
const VimeoApp({super.key});

@override
Widget build(BuildContext context) {
Expand All @@ -20,7 +20,7 @@ class VimeoApp extends StatelessWidget {
}

class VimeoVideoViewer extends StatefulWidget {
const VimeoVideoViewer({Key? key}) : super(key: key);
const VimeoVideoViewer({super.key});

@override
State<VimeoVideoViewer> createState() => VimeoVideoViewerState();
Expand Down
4 changes: 2 additions & 2 deletions example/lib/examples/load_youtube_from_urls.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ void main(List<String> args) {
}

class YoutubeApp extends StatelessWidget {
const YoutubeApp({Key? key}) : super(key: key);
const YoutubeApp({super.key});

@override
Widget build(BuildContext context) {
Expand All @@ -21,7 +21,7 @@ class YoutubeApp extends StatelessWidget {
}

class YoutubeVideoViewer extends StatefulWidget {
const YoutubeVideoViewer({Key? key}) : super(key: key);
const YoutubeVideoViewer({super.key});

@override
State<YoutubeVideoViewer> createState() => _YoutubeVideoViewerState();
Expand Down
8 changes: 3 additions & 5 deletions example/lib/examples/play_list_of_videos.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ void main(List<String> args) {
}

class ListOfVideosApp extends StatelessWidget {
const ListOfVideosApp({Key? key}) : super(key: key);
const ListOfVideosApp({super.key});

@override
Widget build(BuildContext context) {
Expand Down Expand Up @@ -82,8 +82,7 @@ class ListOfVideosApp extends StatelessWidget {

class ListOfVideosScreen extends StatelessWidget {
final List<PlayVideoFrom> videosList;
const ListOfVideosScreen({Key? key, required this.videosList})
: super(key: key);
const ListOfVideosScreen({super.key, required this.videosList});

@override
Widget build(BuildContext context) {
Expand All @@ -100,8 +99,7 @@ class ListOfVideosScreen extends StatelessWidget {

class ListOfVideosViewer extends StatefulWidget {
final List<PlayVideoFrom> videosList;
const ListOfVideosViewer({Key? key, required this.videosList})
: super(key: key);
const ListOfVideosViewer({super.key, required this.videosList});

@override
State<ListOfVideosViewer> createState() => _ListOfVideosViewerState();
Expand Down
9 changes: 4 additions & 5 deletions example/lib/examples/play_videos_list_dynamically.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ void main(List<String> args) {
}

class ListOfVideosApp extends StatelessWidget {
const ListOfVideosApp({Key? key}) : super(key: key);
const ListOfVideosApp({super.key});

@override
Widget build(BuildContext context) {
Expand Down Expand Up @@ -50,8 +50,7 @@ class ListOfVideosApp extends StatelessWidget {
class ListOfVideosScreen extends StatelessWidget {
final List<PodPlayerController> controllers;

const ListOfVideosScreen({Key? key, required this.controllers})
: super(key: key);
const ListOfVideosScreen({super.key, required this.controllers});

@override
Widget build(BuildContext context) {
Expand All @@ -76,10 +75,10 @@ class VideoViewer extends StatefulWidget {
final List<PodPlayerController> controllers;

const VideoViewer({
Key? key,
super.key,
required this.controller,
required this.controllers,
}) : super(key: key);
});

@override
State<VideoViewer> createState() => VideoViewerState();
Expand Down
4 changes: 2 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ void main() {
}

class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

@override
Widget build(BuildContext context) {
Expand All @@ -37,7 +37,7 @@ class MyApp extends StatelessWidget {
}

class MainPage extends StatefulWidget {
const MainPage({Key? key}) : super(key: key);
const MainPage({super.key});

@override
State<MainPage> createState() => _MainPageState();
Expand Down
2 changes: 1 addition & 1 deletion example/lib/screens/cutom_video_controllers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

class CustomVideoControlls extends StatefulWidget {
const CustomVideoControlls({Key? key}) : super(key: key);
const CustomVideoControlls({super.key});

@override
State<CustomVideoControlls> createState() => _CustomVideoControllsState();
Expand Down
2 changes: 1 addition & 1 deletion example/lib/screens/from_asset.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:pod_player/pod_player.dart';
import 'package:flutter/material.dart';

class PlayVideoFromAsset extends StatefulWidget {
const PlayVideoFromAsset({Key? key}) : super(key: key);
const PlayVideoFromAsset({super.key});

@override
State<PlayVideoFromAsset> createState() => _PlayVideoFromAssetState();
Expand Down
2 changes: 1 addition & 1 deletion example/lib/screens/from_network.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

class PlayVideoFromNetwork extends StatefulWidget {
const PlayVideoFromNetwork({Key? key}) : super(key: key);
const PlayVideoFromNetwork({super.key});

@override
State<PlayVideoFromNetwork> createState() => _PlayVideoFromAssetState();
Expand Down
2 changes: 1 addition & 1 deletion example/lib/screens/from_network_urls.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

class PlayVideoFromNetworkQualityUrls extends StatefulWidget {
const PlayVideoFromNetworkQualityUrls({Key? key}) : super(key: key);
const PlayVideoFromNetworkQualityUrls({super.key});

@override
State<PlayVideoFromNetworkQualityUrls> createState() =>
Expand Down
2 changes: 1 addition & 1 deletion example/lib/screens/from_vimeo_id.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:pod_player/pod_player.dart';
import 'package:flutter/material.dart';

class PlayVideoFromVimeoId extends StatefulWidget {
const PlayVideoFromVimeoId({Key? key}) : super(key: key);
const PlayVideoFromVimeoId({super.key});

@override
State<PlayVideoFromVimeoId> createState() => _PlayVideoFromVimeoIdState();
Expand Down
2 changes: 1 addition & 1 deletion example/lib/screens/from_vimeo_private_id.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:pod_player/pod_player.dart';
import 'package:flutter/material.dart';

class PlayVideoFromVimeoPrivateId extends StatefulWidget {
const PlayVideoFromVimeoPrivateId({Key? key}) : super(key: key);
const PlayVideoFromVimeoPrivateId({super.key});

@override
State<PlayVideoFromVimeoPrivateId> createState() =>
Expand Down
2 changes: 1 addition & 1 deletion example/lib/screens/from_youtube.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
import 'package:pod_player/pod_player.dart';

class PlayVideoFromYoutube extends StatefulWidget {
const PlayVideoFromYoutube({Key? key}) : super(key: key);
const PlayVideoFromYoutube({super.key});

@override
State<PlayVideoFromYoutube> createState() => _PlayVideoFromVimeoIdState();
Expand Down
4 changes: 3 additions & 1 deletion example/macos/Flutter/GeneratedPluginRegistrant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ import FlutterMacOS
import Foundation

import package_info_plus
import video_player_avfoundation
import wakelock_plus

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
FLTPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FLTPackageInfoPlusPlugin"))
FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin"))
FVPVideoPlayerPlugin.register(with: registry.registrar(forPlugin: "FVPVideoPlayerPlugin"))
WakelockPlusMacosPlugin.register(with: registry.registrar(forPlugin: "WakelockPlusMacosPlugin"))
}
Loading