|
|
|
@ -49,6 +49,8 @@ class _SuperPlayerPageState extends State<SuperPlayerPage> with SuperPlayerListe
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
void dispose() {
|
|
|
|
void dispose() {
|
|
|
|
Playing = false;
|
|
|
|
Playing = false;
|
|
|
|
|
|
|
|
// 云台控制代码:1:停止动作、3:启动雨刷、11:焦距变大、12:焦距变小
|
|
|
|
|
|
|
|
setSphericalCameraDio(id: widget.id, dwip: widget.dwip, cmdCode: 1);
|
|
|
|
super.dispose();
|
|
|
|
super.dispose();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -269,7 +271,10 @@ class _SuperPlayerPageState extends State<SuperPlayerPage> with SuperPlayerListe
|
|
|
|
text: '雨刷',
|
|
|
|
text: '雨刷',
|
|
|
|
image_path: 'assets/images/wiper.png',
|
|
|
|
image_path: 'assets/images/wiper.png',
|
|
|
|
diameter: 130,
|
|
|
|
diameter: 130,
|
|
|
|
onPress: () {},
|
|
|
|
onPress: () {
|
|
|
|
|
|
|
|
// 云台控制代码:1:停止动作、3:启动雨刷、11:焦距变大、12:焦距变小
|
|
|
|
|
|
|
|
setSphericalCameraDio(id: widget.id, dwip: widget.dwip, cmdCode: 3);
|
|
|
|
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(width: ScreenUtil().setWidth(btn_gap)),
|
|
|
|
SizedBox(width: ScreenUtil().setWidth(btn_gap)),
|
|
|
|
getRoundButton_image(
|
|
|
|
getRoundButton_image(
|
|
|
|
@ -410,6 +415,8 @@ class _SuperPlayerPageState extends State<SuperPlayerPage> with SuperPlayerListe
|
|
|
|
onWillPop: () {
|
|
|
|
onWillPop: () {
|
|
|
|
Playing = false;
|
|
|
|
Playing = false;
|
|
|
|
getingDwVideo = false;
|
|
|
|
getingDwVideo = false;
|
|
|
|
|
|
|
|
// 云台控制代码:1:停止动作、3:启动雨刷、11:焦距变大、12:焦距变小
|
|
|
|
|
|
|
|
setSphericalCameraDio(id: widget.id, dwip: widget.dwip, cmdCode: 1);
|
|
|
|
Navigator.pop(context); //关闭弹框,播放输入视频地址
|
|
|
|
Navigator.pop(context); //关闭弹框,播放输入视频地址
|
|
|
|
},
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -514,6 +521,7 @@ class _SuperPlayerPageState extends State<SuperPlayerPage> with SuperPlayerListe
|
|
|
|
double fontSize = 16,
|
|
|
|
double fontSize = 16,
|
|
|
|
double imageSize = 90,
|
|
|
|
double imageSize = 90,
|
|
|
|
Color color = const Color.fromRGBO(52, 157, 237, 1),
|
|
|
|
Color color = const Color.fromRGBO(52, 157, 237, 1),
|
|
|
|
|
|
|
|
Color color_bkg = Colors.white,
|
|
|
|
var onPress}) {
|
|
|
|
var onPress}) {
|
|
|
|
return InkWell(
|
|
|
|
return InkWell(
|
|
|
|
onTap: onPress,
|
|
|
|
onTap: onPress,
|
|
|
|
@ -534,7 +542,7 @@ class _SuperPlayerPageState extends State<SuperPlayerPage> with SuperPlayerListe
|
|
|
|
// color: Color.fromRGBO(52, 157, 237, 1),
|
|
|
|
// color: Color.fromRGBO(52, 157, 237, 1),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: Colors.white,
|
|
|
|
color: color_bkg,
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(200)),
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(200)),
|
|
|
|
border: Border.all(width: 0, style: BorderStyle.none),
|
|
|
|
border: Border.all(width: 0, style: BorderStyle.none),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|