File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,8 @@ class _ButterFlyAssetVideoState extends State<_ButterFlyAssetVideo> {
156156 @override
157157 void initState () {
158158 super .initState ();
159- _controller = VideoPlayerController .network ('https://cdn.theoplayer.com/video/big_buck_bunny/stream-3-3000000/index.m3u8' );
159+ _controller = VideoPlayerController .network (
160+ 'https://cdn.theoplayer.com/video/big_buck_bunny/stream-3-3000000/index.m3u8' );
160161
161162 _controller.addListener (() {
162163 setState (() {});
@@ -393,16 +394,18 @@ class _PlayerVideoAndPopPageState extends State<_PlayerVideoAndPopPage> {
393394
394395 void _onVideoControllerValueUpdated () {
395396 if (startedPlaying && ! _videoPlayerController.value.isPlaying) {
396- _videoPlayerController.removeListener (_onVideoControllerValueUpdated); // https://github.com/flutter/flutter/issues/122690
397+ _videoPlayerController.removeListener (
398+ _onVideoControllerValueUpdated); // https://github.com/flutter/flutter/issues/122690
397399 Navigator .pop (context);
398400 }
399401 }
402+
400403 @override
401404 void initState () {
402405 super .initState ();
403406
404- _videoPlayerController =
405- VideoPlayerController . network ( 'https://ks3-cn-beijing.ksyun.com/ksplayer/h265/mp4_resource/jinjie_265.mp4' );
407+ _videoPlayerController = VideoPlayerController . network (
408+ 'https://ks3-cn-beijing.ksyun.com/ksplayer/h265/mp4_resource/jinjie_265.mp4' );
406409 _videoPlayerController.addListener (_onVideoControllerValueUpdated);
407410 }
408411
Original file line number Diff line number Diff line change @@ -90,7 +90,8 @@ class Player {
9090 if (! oldValue.test (MediaStatus .loaded) &&
9191 newValue.test (MediaStatus .loaded)) {
9292 final video = mediaInfo.video;
93- var size = const ui.Size (16 , 16 ); // if no video stream, create a dummy texture
93+ var size =
94+ const ui.Size (16 , 16 ); // if no video stream, create a dummy texture
9495 if (video != null ) {
9596 final vc = video[0 ].codec;
9697 size = ui.Size (vc.width.toDouble (), vc.height.toDouble ());
You can’t perform that action at this time.
0 commit comments