Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit b916bb9

Browse files
committed
[video_player] upgraded pigeon to 1.0
1 parent 46dd609 commit b916bb9

File tree

11 files changed

+915
-550
lines changed

11 files changed

+915
-550
lines changed

packages/video_player/video_player/android/src/main/java/io/flutter/plugins/videoplayer/Messages.java

Lines changed: 279 additions & 202 deletions
Large diffs are not rendered by default.

packages/video_player/video_player/example/ios/Flutter/AppFrameworkInfo.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
<string>arm64</string>
2626
</array>
2727
<key>MinimumOSVersion</key>
28-
<string>8.0</string>
28+
<string>9.0</string>
2929
</dict>
3030
</plist>

packages/video_player/video_player/example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@
274274
TargetAttributes = {
275275
97C146ED1CF9000F007C117D = {
276276
CreatedOnToolsVersion = 7.3.1;
277+
DevelopmentTeam = S8QB4VV633;
277278
};
278279
F7151F2B26603EBD0028CB91 = {
279280
CreatedOnToolsVersion = 12.5;
@@ -516,7 +517,7 @@
516517
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
517518
GCC_WARN_UNUSED_FUNCTION = YES;
518519
GCC_WARN_UNUSED_VARIABLE = YES;
519-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
520+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
520521
MTL_ENABLE_DEBUG_INFO = YES;
521522
ONLY_ACTIVE_ARCH = YES;
522523
SDKROOT = iphoneos;
@@ -566,7 +567,7 @@
566567
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
567568
GCC_WARN_UNUSED_FUNCTION = YES;
568569
GCC_WARN_UNUSED_VARIABLE = YES;
569-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
570+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
570571
MTL_ENABLE_DEBUG_INFO = NO;
571572
SDKROOT = iphoneos;
572573
TARGETED_DEVICE_FAMILY = "1,2";
@@ -579,6 +580,7 @@
579580
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
580581
buildSettings = {
581582
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
583+
DEVELOPMENT_TEAM = S8QB4VV633;
582584
ENABLE_BITCODE = NO;
583585
FRAMEWORK_SEARCH_PATHS = (
584586
"$(inherited)",
@@ -600,6 +602,7 @@
600602
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
601603
buildSettings = {
602604
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
605+
DEVELOPMENT_TEAM = S8QB4VV633;
603606
ENABLE_BITCODE = NO;
604607
FRAMEWORK_SEARCH_PATHS = (
605608
"$(inherited)",

packages/video_player/video_player/ios/Classes/FLTVideoPlayerPlugin.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ - (FLTTextureMessage*)onPlayerSetup:(FLTVideoPlayer*)player
511511
return result;
512512
}
513513

514-
- (void)initialize:(FlutterError* __autoreleasing*)error {
514+
- (void)initialize:(FlutterError* _Nullable __autoreleasing*)error {
515515
// Allow audio playback when the Ring/Silent switch is set to silent
516516
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error:nil];
517517

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,25 @@
1-
// Copyright 2013 The Flutter Authors. All rights reserved.
2-
// Use of this source code is governed by a BSD-style license that can be
3-
// found in the LICENSE file.
4-
5-
// Autogenerated from Pigeon (v0.1.21), do not edit directly.
1+
// Autogenerated from Pigeon (v0.3.0), do not edit directly.
62
// See also: https://pub.dev/packages/pigeon
73
#import <Foundation/Foundation.h>
84
@protocol FlutterBinaryMessenger;
5+
@protocol FlutterMessageCodec;
96
@class FlutterError;
107
@class FlutterStandardTypedData;
118

129
NS_ASSUME_NONNULL_BEGIN
1310

1411
@class FLTTextureMessage;
15-
@class FLTCreateMessage;
1612
@class FLTLoopingMessage;
1713
@class FLTVolumeMessage;
1814
@class FLTPlaybackSpeedMessage;
1915
@class FLTPositionMessage;
16+
@class FLTCreateMessage;
2017
@class FLTMixWithOthersMessage;
2118

2219
@interface FLTTextureMessage : NSObject
2320
@property(nonatomic, strong, nullable) NSNumber *textureId;
2421
@end
2522

26-
@interface FLTCreateMessage : NSObject
27-
@property(nonatomic, copy, nullable) NSString *asset;
28-
@property(nonatomic, copy, nullable) NSString *uri;
29-
@property(nonatomic, copy, nullable) NSString *packageName;
30-
@property(nonatomic, copy, nullable) NSString *formatHint;
31-
@property(nonatomic, strong, nullable) NSDictionary *httpHeaders;
32-
@end
33-
3423
@interface FLTLoopingMessage : NSObject
3524
@property(nonatomic, strong, nullable) NSNumber *textureId;
3625
@property(nonatomic, strong, nullable) NSNumber *isLooping;
@@ -51,29 +40,40 @@ NS_ASSUME_NONNULL_BEGIN
5140
@property(nonatomic, strong, nullable) NSNumber *position;
5241
@end
5342

43+
@interface FLTCreateMessage : NSObject
44+
@property(nonatomic, copy, nullable) NSString *asset;
45+
@property(nonatomic, copy, nullable) NSString *uri;
46+
@property(nonatomic, copy, nullable) NSString *packageName;
47+
@property(nonatomic, copy, nullable) NSString *formatHint;
48+
@property(nonatomic, strong, nullable) NSDictionary<NSString *, NSString *> *httpHeaders;
49+
@end
50+
5451
@interface FLTMixWithOthersMessage : NSObject
5552
@property(nonatomic, strong, nullable) NSNumber *mixWithOthers;
5653
@end
5754

55+
/// The codec used by FLTVideoPlayerApi.
56+
NSObject<FlutterMessageCodec> *FLTVideoPlayerApiGetCodec(void);
57+
5858
@protocol FLTVideoPlayerApi
5959
- (void)initialize:(FlutterError *_Nullable *_Nonnull)error;
60-
- (nullable FLTTextureMessage *)create:(FLTCreateMessage *)input
60+
- (nullable FLTTextureMessage *)create:(FLTCreateMessage *)msg
6161
error:(FlutterError *_Nullable *_Nonnull)error;
62-
- (void)dispose:(FLTTextureMessage *)input error:(FlutterError *_Nullable *_Nonnull)error;
63-
- (void)setLooping:(FLTLoopingMessage *)input error:(FlutterError *_Nullable *_Nonnull)error;
64-
- (void)setVolume:(FLTVolumeMessage *)input error:(FlutterError *_Nullable *_Nonnull)error;
65-
- (void)setPlaybackSpeed:(FLTPlaybackSpeedMessage *)input
62+
- (void)dispose:(FLTTextureMessage *)msg error:(FlutterError *_Nullable *_Nonnull)error;
63+
- (void)setLooping:(FLTLoopingMessage *)msg error:(FlutterError *_Nullable *_Nonnull)error;
64+
- (void)setVolume:(FLTVolumeMessage *)msg error:(FlutterError *_Nullable *_Nonnull)error;
65+
- (void)setPlaybackSpeed:(FLTPlaybackSpeedMessage *)msg
6666
error:(FlutterError *_Nullable *_Nonnull)error;
67-
- (void)play:(FLTTextureMessage *)input error:(FlutterError *_Nullable *_Nonnull)error;
68-
- (nullable FLTPositionMessage *)position:(FLTTextureMessage *)input
67+
- (void)play:(FLTTextureMessage *)msg error:(FlutterError *_Nullable *_Nonnull)error;
68+
- (nullable FLTPositionMessage *)position:(FLTTextureMessage *)msg
6969
error:(FlutterError *_Nullable *_Nonnull)error;
70-
- (void)seekTo:(FLTPositionMessage *)input error:(FlutterError *_Nullable *_Nonnull)error;
71-
- (void)pause:(FLTTextureMessage *)input error:(FlutterError *_Nullable *_Nonnull)error;
72-
- (void)setMixWithOthers:(FLTMixWithOthersMessage *)input
70+
- (void)seekTo:(FLTPositionMessage *)msg error:(FlutterError *_Nullable *_Nonnull)error;
71+
- (void)pause:(FLTTextureMessage *)msg error:(FlutterError *_Nullable *_Nonnull)error;
72+
- (void)setMixWithOthers:(FLTMixWithOthersMessage *)msg
7373
error:(FlutterError *_Nullable *_Nonnull)error;
7474
@end
7575

7676
extern void FLTVideoPlayerApiSetup(id<FlutterBinaryMessenger> binaryMessenger,
77-
id<FLTVideoPlayerApi> _Nullable api);
77+
NSObject<FLTVideoPlayerApi> *_Nullable api);
7878

7979
NS_ASSUME_NONNULL_END

0 commit comments

Comments
 (0)