From 4ae2a4db2b0b6f94e1cbd21f20094ca44099d813 Mon Sep 17 00:00:00 2001 From: WinUser01 Date: Fri, 31 Dec 2021 17:22:02 +0800 Subject: [PATCH] =?UTF-8?q?hyzp=5Fybqx-Commit057=EF=BC=9A=E5=B7=B2?= =?UTF-8?q?=E7=BB=8F=E8=B0=83=E6=95=B4=E6=AD=A5=E8=BF=9Bspeed=20=3D=202?= =?UTF-8?q?=EF=BC=8C=E5=B7=B2=E7=BB=8F=E5=88=9D=E6=AD=A5=E5=AE=9E=E7=8E=B0?= =?UTF-8?q?=E7=90=83=E6=9C=BA=E9=9B=A8=E5=88=B7=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/widget/my_superplayer.dart | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/widget/my_superplayer.dart b/lib/widget/my_superplayer.dart index 04e2db3..150370b 100644 --- a/lib/widget/my_superplayer.dart +++ b/lib/widget/my_superplayer.dart @@ -49,6 +49,8 @@ class _SuperPlayerPageState extends State with SuperPlayerListe @override void dispose() { Playing = false; + // 云台控制代码:1:停止动作、3:启动雨刷、11:焦距变大、12:焦距变小 + setSphericalCameraDio(id: widget.id, dwip: widget.dwip, cmdCode: 1); super.dispose(); } @@ -269,7 +271,10 @@ class _SuperPlayerPageState extends State with SuperPlayerListe text: '雨刷', image_path: 'assets/images/wiper.png', diameter: 130, - onPress: () {}, + onPress: () { + // 云台控制代码:1:停止动作、3:启动雨刷、11:焦距变大、12:焦距变小 + setSphericalCameraDio(id: widget.id, dwip: widget.dwip, cmdCode: 3); + }, ), SizedBox(width: ScreenUtil().setWidth(btn_gap)), getRoundButton_image( @@ -410,6 +415,8 @@ class _SuperPlayerPageState extends State with SuperPlayerListe onWillPop: () { Playing = false; getingDwVideo = false; + // 云台控制代码:1:停止动作、3:启动雨刷、11:焦距变大、12:焦距变小 + setSphericalCameraDio(id: widget.id, dwip: widget.dwip, cmdCode: 1); Navigator.pop(context); //关闭弹框,播放输入视频地址 }, ), @@ -514,6 +521,7 @@ class _SuperPlayerPageState extends State with SuperPlayerListe double fontSize = 16, double imageSize = 90, Color color = const Color.fromRGBO(52, 157, 237, 1), + Color color_bkg = Colors.white, var onPress}) { return InkWell( onTap: onPress, @@ -534,7 +542,7 @@ class _SuperPlayerPageState extends State with SuperPlayerListe // color: Color.fromRGBO(52, 157, 237, 1), // ), decoration: BoxDecoration( - color: Colors.white, + color: color_bkg, borderRadius: BorderRadius.all(Radius.circular(200)), border: Border.all(width: 0, style: BorderStyle.none), ),