Skip to content

Commit 3d7bc67

Browse files
committed
Delint and stuff.
1 parent 0e8ddac commit 3d7bc67

File tree

3 files changed

+68
-59
lines changed

3 files changed

+68
-59
lines changed
Lines changed: 61 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,172 +1,176 @@
1+
## 2.7.0
2+
3+
- Re-adds [support for Impeller](https://docs.flutter.dev/release/breaking-changes/android-surface-plugins).
4+
15
## 2.6.0
26

3-
* Adds RTSP support.
7+
- Adds RTSP support.
48

59
## 2.5.4
610

7-
* Updates Media3-ExoPlayer to 1.4.0.
11+
- Updates Media3-ExoPlayer to 1.4.0.
812

913
## 2.5.3
1014

11-
* Updates lint checks to ignore NewerVersionAvailable.
15+
- Updates lint checks to ignore NewerVersionAvailable.
1216

1317
## 2.5.2
1418

15-
* Updates Android Gradle plugin to 8.5.0.
19+
- Updates Android Gradle plugin to 8.5.0.
1620

1721
## 2.5.1
1822

19-
* Removes additional references to the v1 Android embedding.
23+
- Removes additional references to the v1 Android embedding.
2024

2125
## 2.5.0
2226

23-
* Migrates ExoPlayer to Media3-ExoPlayer 1.3.1.
27+
- Migrates ExoPlayer to Media3-ExoPlayer 1.3.1.
2428

2529
## 2.4.17
2630

27-
* Revert Impeller support.
31+
- Revert Impeller support.
2832

2933
## 2.4.16
3034

31-
* [Supports Impeller](https://docs.flutter.dev/release/breaking-changes/android-surface-plugins).
35+
- [Supports Impeller](https://docs.flutter.dev/release/breaking-changes/android-surface-plugins).
3236

3337
## 2.4.15
3438

35-
* Updates minimum supported SDK version to Flutter 3.22/Dart 3.4.
36-
* Removes support for apps using the v1 Android embedding.
39+
- Updates minimum supported SDK version to Flutter 3.22/Dart 3.4.
40+
- Removes support for apps using the v1 Android embedding.
3741

3842
## 2.4.14
3943

40-
* Calls `onDestroy` instead of `initialize` in onDetachedFromEngine.
44+
- Calls `onDestroy` instead of `initialize` in onDetachedFromEngine.
4145

4246
## 2.4.13
4347

44-
* Updates minSdkVersion to 19.
45-
* Updates minimum supported SDK version to Flutter 3.16/Dart 3.2.
48+
- Updates minSdkVersion to 19.
49+
- Updates minimum supported SDK version to Flutter 3.16/Dart 3.2.
4650

4751
## 2.4.12
4852

49-
* Updates compileSdk version to 34.
50-
* Adds error handling for `BehindLiveWindowException`, which may occur upon live-video playback failure.
53+
- Updates compileSdk version to 34.
54+
- Adds error handling for `BehindLiveWindowException`, which may occur upon live-video playback failure.
5155

5256
## 2.4.11
5357

54-
* Updates minimum supported SDK version to Flutter 3.10/Dart 3.0.
55-
* Fixes new lint warnings.
58+
- Updates minimum supported SDK version to Flutter 3.10/Dart 3.0.
59+
- Fixes new lint warnings.
5660

5761
## 2.4.10
5862

59-
* Adds pub topics to package metadata.
60-
* Updates minimum supported SDK version to Flutter 3.7/Dart 2.19.
63+
- Adds pub topics to package metadata.
64+
- Updates minimum supported SDK version to Flutter 3.7/Dart 2.19.
6165

6266
## 2.4.9
6367

64-
* Bumps ExoPlayer version to 2.18.7.
68+
- Bumps ExoPlayer version to 2.18.7.
6569

6670
## 2.4.8
6771

68-
* Bumps ExoPlayer version to 2.18.6.
72+
- Bumps ExoPlayer version to 2.18.6.
6973

7074
## 2.4.7
7175

72-
* Fixes Java warnings.
76+
- Fixes Java warnings.
7377

7478
## 2.4.6
7579

76-
* Fixes compatibility with AGP versions older than 4.2.
80+
- Fixes compatibility with AGP versions older than 4.2.
7781

7882
## 2.4.5
7983

80-
* Adds a namespace for compatibility with AGP 8.0.
84+
- Adds a namespace for compatibility with AGP 8.0.
8185

8286
## 2.4.4
8387

84-
* Synchronizes `VideoPlayerValue.isPlaying` with `ExoPlayer`.
85-
* Updates minimum Flutter version to 3.3.
88+
- Synchronizes `VideoPlayerValue.isPlaying` with `ExoPlayer`.
89+
- Updates minimum Flutter version to 3.3.
8690

8791
## 2.4.3
8892

89-
* Bumps ExoPlayer version to 2.18.5.
93+
- Bumps ExoPlayer version to 2.18.5.
9094

9195
## 2.4.2
9296

93-
* Bumps ExoPlayer version to 2.18.4.
97+
- Bumps ExoPlayer version to 2.18.4.
9498

9599
## 2.4.1
96100

97-
* Changes the severity of `javac` warnings so that they are treated as errors and fixes the violations.
101+
- Changes the severity of `javac` warnings so that they are treated as errors and fixes the violations.
98102

99103
## 2.4.0
100104

101-
* Allows setting the ExoPlayer user agent by passing a User-Agent HTTP header.
105+
- Allows setting the ExoPlayer user agent by passing a User-Agent HTTP header.
102106

103107
## 2.3.12
104108

105-
* Clarifies explanation of endorsement in README.
106-
* Aligns Dart and Flutter SDK constraints.
107-
* Updates compileSdkVersion to 33.
109+
- Clarifies explanation of endorsement in README.
110+
- Aligns Dart and Flutter SDK constraints.
111+
- Updates compileSdkVersion to 33.
108112

109113
## 2.3.11
110114

111-
* Updates links for the merge of flutter/plugins into flutter/packages.
112-
* Updates minimum Flutter version to 3.0.
115+
- Updates links for the merge of flutter/plugins into flutter/packages.
116+
- Updates minimum Flutter version to 3.0.
113117

114118
## 2.3.10
115119

116-
* Adds compatibilty with version 6.0 of the platform interface.
117-
* Fixes file URI construction in example.
118-
* Updates code for new analysis options.
119-
* Updates code for `no_leading_underscores_for_local_identifiers` lint.
120-
* Updates minimum Flutter version to 2.10.
121-
* Fixes violations of new analysis option use_named_constants.
122-
* Removes an unnecessary override in example code.
120+
- Adds compatibilty with version 6.0 of the platform interface.
121+
- Fixes file URI construction in example.
122+
- Updates code for new analysis options.
123+
- Updates code for `no_leading_underscores_for_local_identifiers` lint.
124+
- Updates minimum Flutter version to 2.10.
125+
- Fixes violations of new analysis option use_named_constants.
126+
- Removes an unnecessary override in example code.
123127

124128
## 2.3.9
125129

126-
* Updates ExoPlayer to 2.18.1.
127-
* Fixes avoid_redundant_argument_values lint warnings and minor typos.
130+
- Updates ExoPlayer to 2.18.1.
131+
- Fixes avoid_redundant_argument_values lint warnings and minor typos.
128132

129133
## 2.3.8
130134

131-
* Updates ExoPlayer to 2.18.0.
135+
- Updates ExoPlayer to 2.18.0.
132136

133137
## 2.3.7
134138

135-
* Bumps gradle version to 7.2.1.
136-
* Ignores unnecessary import warnings in preparation for [upcoming Flutter changes](https://github.com/flutter/flutter/pull/106316).
139+
- Bumps gradle version to 7.2.1.
140+
- Ignores unnecessary import warnings in preparation for [upcoming Flutter changes](https://github.com/flutter/flutter/pull/106316).
137141

138142
## 2.3.6
139143

140-
* Updates references to the obsolete master branch.
144+
- Updates references to the obsolete master branch.
141145

142146
## 2.3.5
143147

144-
* Sets rotationCorrection for videos recorded in landscapeRight (https://github.com/flutter/flutter/issues/60327).
148+
- Sets rotationCorrection for videos recorded in landscapeRight (https://github.com/flutter/flutter/issues/60327).
145149

146150
## 2.3.4
147151

148-
* Updates ExoPlayer to 2.17.1.
152+
- Updates ExoPlayer to 2.17.1.
149153

150154
## 2.3.3
151155

152-
* Removes unnecessary imports.
153-
* Fixes library_private_types_in_public_api, sort_child_properties_last and use_key_in_widget_constructors
156+
- Removes unnecessary imports.
157+
- Fixes library_private_types_in_public_api, sort_child_properties_last and use_key_in_widget_constructors
154158
lint warnings.
155159

156160
## 2.3.2
157161

158-
* Updates ExoPlayer to 2.17.0.
162+
- Updates ExoPlayer to 2.17.0.
159163

160164
## 2.3.1
161165

162-
* Renames internal method channels to avoid potential confusion with the
166+
- Renames internal method channels to avoid potential confusion with the
163167
default implementation's method channel.
164-
* Updates Pigeon to 2.0.1.
168+
- Updates Pigeon to 2.0.1.
165169

166170
## 2.3.0
167171

168-
* Updates Pigeon to ^1.0.16.
172+
- Updates Pigeon to ^1.0.16.
169173

170174
## 2.2.17
171175

172-
* Splits from `video_player` as a federated implementation.
176+
- Splits from `video_player` as a federated implementation.

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ interface ExoPlayerProvider {
8585
new TextureRegistry.SurfaceProducer.Callback() {
8686
@Override
8787
public void onSurfaceCreated() {
88-
exoPlayer = createVideoPlayer();
88+
setExoPlayer(createVideoPlayer());
8989
if (savedStateDuring != null) {
9090
savedStateDuring.restore(exoPlayer);
9191
savedStateDuring = null;
@@ -101,6 +101,11 @@ public void onSurfaceDestroyed() {
101101
});
102102
}
103103

104+
// Used to avoid synthetic accessor.
105+
private void setExoPlayer(@NonNull ExoPlayer exoPlayer) {
106+
this.exoPlayer = exoPlayer;
107+
}
108+
104109
private ExoPlayer createVideoPlayer() {
105110
ExoPlayer exoPlayer = exoPlayerProvider.get();
106111
exoPlayer.setMediaItem(mediaItem);

packages/video_player/video_player_android/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: video_player_android
22
description: Android implementation of the video_player plugin.
33
repository: https://github.com/flutter/packages/tree/main/packages/video_player/video_player_android
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+video_player%22
5-
version: 2.6.0
5+
version: 2.7.0
66

77
environment:
88
sdk: ^3.4.0

0 commit comments

Comments
 (0)