更新日志
This commit is contained in:
7
change_log/1.0.1.0817.md
Normal file
7
change_log/1.0.1.0817.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
## 1.0.1
|
||||||
|
|
||||||
|
### 修复
|
||||||
|
+ 升级播放器依赖
|
||||||
|
+ android平台 AV1格式视频支持
|
||||||
|
+ 视频全屏功能
|
||||||
|
|
@ -1,16 +1,16 @@
|
|||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:device_info_plus/device_info_plus.dart';
|
import 'package:device_info_plus/device_info_plus.dart';
|
||||||
// import 'package:auto_orientation/auto_orientation.dart';
|
import 'package:auto_orientation/auto_orientation.dart';
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
|
|
||||||
//横屏
|
//横屏
|
||||||
/// 低版本xcode不支持auto_orientation
|
/// 低版本xcode不支持auto_orientation
|
||||||
// Future<void> landScape() async {
|
Future<void> landScape() async {
|
||||||
// if (Platform.isAndroid || Platform.isIOS) {
|
if (Platform.isAndroid || Platform.isIOS) {
|
||||||
// await AutoOrientation.landscapeAutoMode(forceSensor: true);
|
await AutoOrientation.landscapeAutoMode(forceSensor: true);
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
|
|
||||||
//竖屏
|
//竖屏
|
||||||
Future<void> verticalScreen() async {
|
Future<void> verticalScreen() async {
|
||||||
|
@ -166,7 +166,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
/// 进入全屏
|
/// 进入全屏
|
||||||
await enterFullScreen();
|
await enterFullScreen();
|
||||||
// 横屏
|
// 横屏
|
||||||
// await landScape();
|
await landScape();
|
||||||
} else {
|
} else {
|
||||||
// 竖屏
|
// 竖屏
|
||||||
await verticalScreen();
|
await verticalScreen();
|
||||||
@ -177,14 +177,14 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
/// 进入全屏
|
/// 进入全屏
|
||||||
await enterFullScreen();
|
await enterFullScreen();
|
||||||
// 横屏
|
// 横屏
|
||||||
// await landScape();
|
await landScape();
|
||||||
break;
|
break;
|
||||||
case FullScreenMode.horizontal:
|
case FullScreenMode.horizontal:
|
||||||
|
|
||||||
/// 进入全屏
|
/// 进入全屏
|
||||||
await enterFullScreen();
|
await enterFullScreen();
|
||||||
// 横屏
|
// 横屏
|
||||||
// await landScape();
|
await landScape();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -57,6 +57,14 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.0.1"
|
version: "1.0.1"
|
||||||
|
auto_orientation:
|
||||||
|
dependency: "direct main"
|
||||||
|
description:
|
||||||
|
name: auto_orientation
|
||||||
|
sha256: cd56bb59b36fa54cc28ee254bc600524f022a4862f31d5ab20abd7bb1c54e678
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "2.3.1"
|
||||||
boolean_selector:
|
boolean_selector:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -108,7 +108,7 @@ dependencies:
|
|||||||
# 进度条
|
# 进度条
|
||||||
audio_video_progress_bar: ^1.0.1
|
audio_video_progress_bar: ^1.0.1
|
||||||
animations: ^2.0.7
|
animations: ^2.0.7
|
||||||
# auto_orientation: ^2.3.1
|
auto_orientation: ^2.3.1
|
||||||
|
|
||||||
# 获取appx信息
|
# 获取appx信息
|
||||||
package_info_plus: ^4.1.0
|
package_info_plus: ^4.1.0
|
||||||
|
Reference in New Issue
Block a user