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

Commit 35e22a9

Browse files
committed
[video_player] Updated Pigeon version
1 parent 9378670 commit 35e22a9

File tree

13 files changed

+1093
-669
lines changed

13 files changed

+1093
-669
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.3.0
2+
3+
* Update Pigeon to 1.0.x.
4+
15
## 2.2.17
26

37
* Splits from `video_player` as a federated implementation.

packages/video_player/video_player_avfoundation/CONTRIBUTING.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
## Updating pigeon-generated files
22

33
If you update files in the pigeons/ directory, run the following
4-
command in this directory (ignore the errors you get about
5-
dependencies in the examples directory):
4+
command in this directory:
65

76
```bash
87
flutter pub upgrade
9-
flutter pub run pigeon --dart_null_safety --input pigeons/messages.dart
8+
flutter pub run pigeon --input pigeons/messages.dart
109
# git commit your changes so that your working environment is clean
1110
(cd ../../../; ./script/tool_runner.sh format --clang-format=clang-format-7)
1211
```
@@ -28,6 +27,5 @@ publish pigeon before you can land the updates to this package, since
2827
the CI tests run the analysis using latest published version of
2928
pigeon, not your version or the version on master.
3029

31-
In either case, the configuration will be obtained automatically from
32-
the `pigeons/messages.dart` file (see `configurePigeon` at the bottom
33-
of that file).
30+
In either case, the configuration will be obtained automatically from the
31+
`pigeons/messages.dart` file (see `ConfigurePigeon` at the top of that file).

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#import "FLTVideoPlayerPlugin.h"
66
#import <AVFoundation/AVFoundation.h>
77
#import <GLKit/GLKit.h>
8-
#import "messages.h"
8+
#import "messages.g.h"
99

1010
#if !__has_feature(objc_arc)
1111
#error Code Requires ARC.
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,95 @@
11
// Copyright 2013 The Flutter Authors. All rights reserved.
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
4-
5-
// Autogenerated from Pigeon (v0.1.21), do not edit directly.
4+
// Autogenerated from Pigeon (v1.0.16), do not edit directly.
65
// See also: https://pub.dev/packages/pigeon
76
#import <Foundation/Foundation.h>
87
@protocol FlutterBinaryMessenger;
8+
@protocol FlutterMessageCodec;
99
@class FlutterError;
1010
@class FlutterStandardTypedData;
1111

1212
NS_ASSUME_NONNULL_BEGIN
1313

1414
@class FLTTextureMessage;
15-
@class FLTCreateMessage;
1615
@class FLTLoopingMessage;
1716
@class FLTVolumeMessage;
1817
@class FLTPlaybackSpeedMessage;
1918
@class FLTPositionMessage;
19+
@class FLTCreateMessage;
2020
@class FLTMixWithOthersMessage;
2121

2222
@interface FLTTextureMessage : NSObject
23+
+ (instancetype)makeWithTextureId:(nullable NSNumber *)textureId;
2324
@property(nonatomic, strong, nullable) NSNumber *textureId;
2425
@end
2526

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-
3427
@interface FLTLoopingMessage : NSObject
28+
+ (instancetype)makeWithTextureId:(nullable NSNumber *)textureId
29+
isLooping:(nullable NSNumber *)isLooping;
3530
@property(nonatomic, strong, nullable) NSNumber *textureId;
3631
@property(nonatomic, strong, nullable) NSNumber *isLooping;
3732
@end
3833

3934
@interface FLTVolumeMessage : NSObject
35+
+ (instancetype)makeWithTextureId:(nullable NSNumber *)textureId volume:(nullable NSNumber *)volume;
4036
@property(nonatomic, strong, nullable) NSNumber *textureId;
4137
@property(nonatomic, strong, nullable) NSNumber *volume;
4238
@end
4339

4440
@interface FLTPlaybackSpeedMessage : NSObject
41+
+ (instancetype)makeWithTextureId:(nullable NSNumber *)textureId speed:(nullable NSNumber *)speed;
4542
@property(nonatomic, strong, nullable) NSNumber *textureId;
4643
@property(nonatomic, strong, nullable) NSNumber *speed;
4744
@end
4845

4946
@interface FLTPositionMessage : NSObject
47+
+ (instancetype)makeWithTextureId:(nullable NSNumber *)textureId
48+
position:(nullable NSNumber *)position;
5049
@property(nonatomic, strong, nullable) NSNumber *textureId;
5150
@property(nonatomic, strong, nullable) NSNumber *position;
5251
@end
5352

53+
@interface FLTCreateMessage : NSObject
54+
+ (instancetype)makeWithAsset:(nullable NSString *)asset
55+
uri:(nullable NSString *)uri
56+
packageName:(nullable NSString *)packageName
57+
formatHint:(nullable NSString *)formatHint
58+
httpHeaders:(nullable NSDictionary<NSString *, NSString *> *)httpHeaders;
59+
@property(nonatomic, copy, nullable) NSString *asset;
60+
@property(nonatomic, copy, nullable) NSString *uri;
61+
@property(nonatomic, copy, nullable) NSString *packageName;
62+
@property(nonatomic, copy, nullable) NSString *formatHint;
63+
@property(nonatomic, strong, nullable) NSDictionary<NSString *, NSString *> *httpHeaders;
64+
@end
65+
5466
@interface FLTMixWithOthersMessage : NSObject
67+
+ (instancetype)makeWithMixWithOthers:(nullable NSNumber *)mixWithOthers;
5568
@property(nonatomic, strong, nullable) NSNumber *mixWithOthers;
5669
@end
5770

71+
/// The codec used by FLTVideoPlayerApi.
72+
NSObject<FlutterMessageCodec> *FLTVideoPlayerApiGetCodec(void);
73+
5874
@protocol FLTVideoPlayerApi
5975
- (void)initialize:(FlutterError *_Nullable *_Nonnull)error;
60-
- (nullable FLTTextureMessage *)create:(FLTCreateMessage *)input
76+
- (nullable FLTTextureMessage *)create:(FLTCreateMessage *)msg
6177
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
78+
- (void)dispose:(FLTTextureMessage *)msg error:(FlutterError *_Nullable *_Nonnull)error;
79+
- (void)setLooping:(FLTLoopingMessage *)msg error:(FlutterError *_Nullable *_Nonnull)error;
80+
- (void)setVolume:(FLTVolumeMessage *)msg error:(FlutterError *_Nullable *_Nonnull)error;
81+
- (void)setPlaybackSpeed:(FLTPlaybackSpeedMessage *)msg
6682
error:(FlutterError *_Nullable *_Nonnull)error;
67-
- (void)play:(FLTTextureMessage *)input error:(FlutterError *_Nullable *_Nonnull)error;
68-
- (nullable FLTPositionMessage *)position:(FLTTextureMessage *)input
83+
- (void)play:(FLTTextureMessage *)msg error:(FlutterError *_Nullable *_Nonnull)error;
84+
- (nullable FLTPositionMessage *)position:(FLTTextureMessage *)msg
6985
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
86+
- (void)seekTo:(FLTPositionMessage *)msg error:(FlutterError *_Nullable *_Nonnull)error;
87+
- (void)pause:(FLTTextureMessage *)msg error:(FlutterError *_Nullable *_Nonnull)error;
88+
- (void)setMixWithOthers:(FLTMixWithOthersMessage *)msg
7389
error:(FlutterError *_Nullable *_Nonnull)error;
7490
@end
7591

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

7995
NS_ASSUME_NONNULL_END

0 commit comments

Comments
 (0)