File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
packages/video_player/video_player_avfoundation Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 1+ ## NEXT
2+
3+ * Adds an integration test for a bug where the aspect ratios of some HLS videos are incorrectly inverted.
4+
15## 2.3.7
26
37* Fixes a bug where the aspect ratio of some HLS videos are incorrectly inverted.
Original file line number Diff line number Diff line change @@ -177,5 +177,19 @@ void main() {
177177 expect (livestreamController.value.duration,
178178 (Duration duration) => duration != Duration .zero);
179179 });
180+
181+ testWidgets ('rotated m3u8 has correct aspect ratio' ,
182+ (WidgetTester tester) async {
183+ // Some m3u8 files contain rotation data that may incorrectly invert the aspect ratio.
184+ // More info [here](https://github.com/flutter/flutter/issues/109116).
185+ final MiniController livestreamController = MiniController .network (
186+ 'https://flutter.github.io/assets-for-api-docs/assets/videos/hls/rotated_nail_manifest.m3u8' ,
187+ );
188+ await livestreamController.initialize ();
189+
190+ expect (livestreamController.value.isInitialized, true );
191+ expect (livestreamController.value.size.width,
192+ lessThan (livestreamController.value.size.height));
193+ });
180194 });
181195}
You can’t perform that action at this time.
0 commit comments