Ben Hagen 7 年 前
コミット
4b96ceb0a0
1 ファイル変更0 行追加33 行削除
  1. 0 33
      lib/src/player_with_controls.dart

+ 0 - 33
lib/src/player_with_controls.dart

@@ -71,37 +71,4 @@ class PlayerWithControls extends StatelessWidget {
 
     return width > height ? width / height : height / width;
   }
-
-// TODO: Add playback hack somewhere or better: fix in the VideoPlayer plugin
-//  @override
-//  void initState() {
-//    // Hack to show the video when it starts playing. Should be fixed by the
-//    // Plugin IMO.
-//    widget.controller.addListener(_onPlay);
-//
-//    super.initState();
-//  }
-//
-//  @override
-//  void didUpdateWidget(PlayerWithControls oldWidget) {
-//    super.didUpdateWidget(oldWidget);
-//
-//    if (widget.controller.dataSource != oldWidget.controller.dataSource) {
-//      widget.controller.addListener(_onPlay);
-//    }
-//  }
-//
-//  @override
-//  dispose() {
-//    widget.controller.removeListener(_onPlay);
-//    super.dispose();
-//  }
-//
-//  void _onPlay() {
-//    if (widget.controller.value.isPlaying) {
-//      setState(() {
-//        widget.controller.removeListener(_onPlay);
-//      });
-//    }
-//  }
 }