hyzp_ybqx-Commit163:版本号更新为version: 1.4.33+20220515。升级插件到自定义的my_flutter_superplayer 0.0.3,能够正常播放点位视频
This commit is contained in:
+100
-100
@@ -142,11 +142,11 @@ class _SuperPlayerPageState extends State<SuperPlayerPage> with SuperPlayerListe
|
||||
Widget build(BuildContext context) {
|
||||
playerRegionProvide = Provider.of<PlayerRegionProvide>(context);
|
||||
playerRatioProvide = Provider.of<PlayerRatioProvide>(context);
|
||||
List<Widget> listData = getDataListControl2();
|
||||
// List<Widget> listData = getDataListControl2();
|
||||
double btnHeight1 = 70; //第一按钮行高度
|
||||
double btnHeight2 = 160; //第二按钮行高度
|
||||
int btnCount = 4; //每行按钮个数
|
||||
int btnCount3 = listData.length; //每行按钮个数
|
||||
// int btnCount3 = listData.length; //每行按钮个数
|
||||
var mediaSize = MediaQuery.of(context).size;
|
||||
|
||||
// widget.id:播放点位视频的点位编号,-2 表示播放违章视频
|
||||
@@ -616,104 +616,104 @@ class _SuperPlayerPageState extends State<SuperPlayerPage> with SuperPlayerListe
|
||||
}
|
||||
|
||||
//生成播放控制区第2行按钮List
|
||||
List<Widget> getDataListControl2() {
|
||||
double _diameter = 100;
|
||||
double _iconSize = 70;
|
||||
double _fontSize = 14;
|
||||
double _marginVer = 8;
|
||||
|
||||
List<Widget> list = [
|
||||
// getRoundButton(
|
||||
// diameter: _diameter,
|
||||
// iconSize: _iconSize,
|
||||
// text: '快退',
|
||||
// icon: Icons.fast_rewind,
|
||||
// onPress: () {
|
||||
// fastSeek(false);
|
||||
// },
|
||||
// ),
|
||||
// getRoundButton(
|
||||
// diameter: _diameter,
|
||||
// iconSize: _iconSize,
|
||||
// text: '快进',
|
||||
// icon: Icons.fast_forward,
|
||||
// onPress: () {
|
||||
// fastSeek(true);
|
||||
// },
|
||||
// ),
|
||||
getRoundButton(
|
||||
diameter: _diameter,
|
||||
iconSize: _iconSize,
|
||||
fontSize: _fontSize,
|
||||
marginVer: _marginVer,
|
||||
text: '放大',
|
||||
icon: Icons.zoom_in,
|
||||
onPress: () {
|
||||
//print('Icons.videocam');
|
||||
//_inputDialog(context2);
|
||||
if (10 >= playerRatioProvide.scale) {
|
||||
playerRatioProvide.changeScale(playerRatioProvide.scale + 0.5);
|
||||
}
|
||||
},
|
||||
),
|
||||
getRoundButton(
|
||||
diameter: _diameter,
|
||||
iconSize: _iconSize,
|
||||
fontSize: _fontSize,
|
||||
marginVer: _marginVer,
|
||||
text: '缩小',
|
||||
icon: Icons.zoom_out,
|
||||
onPress: () {
|
||||
//print('Icons.videocam');
|
||||
//_getFileDialog(context2);
|
||||
if (1 < playerRatioProvide.scale) {
|
||||
playerRatioProvide.changeScale(playerRatioProvide.scale - 0.5);
|
||||
}
|
||||
},
|
||||
),
|
||||
// _getIconAndTextButton(
|
||||
// '还原',
|
||||
// Icons.reply,
|
||||
// Colors.orange,
|
||||
// () {
|
||||
// //print('Icons.videocam');
|
||||
// //_getFileDialog(context2);
|
||||
// // 更新当前位置
|
||||
// playerRatioProvide.changeScale(1.0);
|
||||
// playerRatioProvide.changeOffset(Offset(0, 0));
|
||||
// playerRatioProvide.changeDeltaX(0.0);
|
||||
// playerRatioProvide.changeDeltaY(0.0);
|
||||
// },
|
||||
// ),
|
||||
getRoundButton(
|
||||
diameter: _diameter,
|
||||
iconSize: _iconSize,
|
||||
fontSize: _fontSize,
|
||||
marginVer: _marginVer,
|
||||
text: '截图',
|
||||
icon: Icons.camera_alt,
|
||||
onPress: () {
|
||||
//通过上面定义的key,才能准确调用该类型的该对象的方法
|
||||
//_myFijkPanelWidgetBuilderStateKey.currentState.takeSnapshot();
|
||||
//_fijkPanelWidgetBuilder.currentState..takeSnapshot();
|
||||
takeSnapshot();
|
||||
},
|
||||
),
|
||||
getRoundButton(
|
||||
diameter: _diameter,
|
||||
iconSize: _iconSize,
|
||||
fontSize: _fontSize,
|
||||
marginVer: _marginVer,
|
||||
text: '全屏',
|
||||
icon: Icons.fullscreen,
|
||||
onPress: () {
|
||||
//player.enterFullScreen();
|
||||
_playerController.toFullScreen();
|
||||
},
|
||||
),
|
||||
];
|
||||
return list;
|
||||
}
|
||||
// List<Widget> getDataListControl2() {
|
||||
// double _diameter = 100;
|
||||
// double _iconSize = 70;
|
||||
// double _fontSize = 14;
|
||||
// double _marginVer = 8;
|
||||
//
|
||||
// List<Widget> list = [
|
||||
// // getRoundButton(
|
||||
// // diameter: _diameter,
|
||||
// // iconSize: _iconSize,
|
||||
// // text: '快退',
|
||||
// // icon: Icons.fast_rewind,
|
||||
// // onPress: () {
|
||||
// // fastSeek(false);
|
||||
// // },
|
||||
// // ),
|
||||
// // getRoundButton(
|
||||
// // diameter: _diameter,
|
||||
// // iconSize: _iconSize,
|
||||
// // text: '快进',
|
||||
// // icon: Icons.fast_forward,
|
||||
// // onPress: () {
|
||||
// // fastSeek(true);
|
||||
// // },
|
||||
// // ),
|
||||
// getRoundButton(
|
||||
// diameter: _diameter,
|
||||
// iconSize: _iconSize,
|
||||
// fontSize: _fontSize,
|
||||
// marginVer: _marginVer,
|
||||
// text: '放大',
|
||||
// icon: Icons.zoom_in,
|
||||
// onPress: () {
|
||||
// //print('Icons.videocam');
|
||||
// //_inputDialog(context2);
|
||||
// if (10 >= playerRatioProvide.scale) {
|
||||
// playerRatioProvide.changeScale(playerRatioProvide.scale + 0.5);
|
||||
// }
|
||||
// },
|
||||
// ),
|
||||
// getRoundButton(
|
||||
// diameter: _diameter,
|
||||
// iconSize: _iconSize,
|
||||
// fontSize: _fontSize,
|
||||
// marginVer: _marginVer,
|
||||
// text: '缩小',
|
||||
// icon: Icons.zoom_out,
|
||||
// onPress: () {
|
||||
// //print('Icons.videocam');
|
||||
// //_getFileDialog(context2);
|
||||
// if (1 < playerRatioProvide.scale) {
|
||||
// playerRatioProvide.changeScale(playerRatioProvide.scale - 0.5);
|
||||
// }
|
||||
// },
|
||||
// ),
|
||||
// // _getIconAndTextButton(
|
||||
// // '还原',
|
||||
// // Icons.reply,
|
||||
// // Colors.orange,
|
||||
// // () {
|
||||
// // //print('Icons.videocam');
|
||||
// // //_getFileDialog(context2);
|
||||
// // // 更新当前位置
|
||||
// // playerRatioProvide.changeScale(1.0);
|
||||
// // playerRatioProvide.changeOffset(Offset(0, 0));
|
||||
// // playerRatioProvide.changeDeltaX(0.0);
|
||||
// // playerRatioProvide.changeDeltaY(0.0);
|
||||
// // },
|
||||
// // ),
|
||||
// getRoundButton(
|
||||
// diameter: _diameter,
|
||||
// iconSize: _iconSize,
|
||||
// fontSize: _fontSize,
|
||||
// marginVer: _marginVer,
|
||||
// text: '截图',
|
||||
// icon: Icons.camera_alt,
|
||||
// onPress: () {
|
||||
// //通过上面定义的key,才能准确调用该类型的该对象的方法
|
||||
// //_myFijkPanelWidgetBuilderStateKey.currentState.takeSnapshot();
|
||||
// //_fijkPanelWidgetBuilder.currentState..takeSnapshot();
|
||||
// takeSnapshot();
|
||||
// },
|
||||
// ),
|
||||
// getRoundButton(
|
||||
// diameter: _diameter,
|
||||
// iconSize: _iconSize,
|
||||
// fontSize: _fontSize,
|
||||
// marginVer: _marginVer,
|
||||
// text: '全屏',
|
||||
// icon: Icons.fullscreen,
|
||||
// onPress: () {
|
||||
// //player.enterFullScreen();
|
||||
// _playerController.toFullScreen();
|
||||
// },
|
||||
// ),
|
||||
// ];
|
||||
// return list;
|
||||
// }
|
||||
|
||||
void takeSnapshot() {
|
||||
// player.takeSnapShot().then((v) {
|
||||
|
||||
Reference in New Issue
Block a user