Merge branch 'fix' into alpha
This commit is contained in:
@ -61,12 +61,15 @@ class VideoIntroController extends GetxController {
|
|||||||
RxString total = '1'.obs;
|
RxString total = '1'.obs;
|
||||||
Timer? timer;
|
Timer? timer;
|
||||||
bool isPaused = false;
|
bool isPaused = false;
|
||||||
String heroTag = Get.arguments['heroTag'];
|
String heroTag = '';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void onInit() {
|
void onInit() {
|
||||||
super.onInit();
|
super.onInit();
|
||||||
userInfo = userInfoCache.get('userInfoCache');
|
userInfo = userInfoCache.get('userInfoCache');
|
||||||
|
try {
|
||||||
|
heroTag = Get.arguments['heroTag'];
|
||||||
|
} catch (_) {}
|
||||||
if (Get.arguments.isNotEmpty) {
|
if (Get.arguments.isNotEmpty) {
|
||||||
if (Get.arguments.containsKey('videoItem')) {
|
if (Get.arguments.containsKey('videoItem')) {
|
||||||
preRender = true;
|
preRender = true;
|
||||||
|
|||||||
@ -328,6 +328,9 @@ class PlPlayerController {
|
|||||||
await pause(notify: false);
|
await pause(notify: false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_playerCount.value == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
// 配置Player 音轨、字幕等等
|
// 配置Player 音轨、字幕等等
|
||||||
_videoPlayerController = await _createVideoController(
|
_videoPlayerController = await _createVideoController(
|
||||||
dataSource, _looping, enableHA, width, height);
|
dataSource, _looping, enableHA, width, height);
|
||||||
@ -992,6 +995,8 @@ class PlPlayerController {
|
|||||||
localCache.put(LocalCacheKey.danmakuFontScale, fontSizeVal);
|
localCache.put(LocalCacheKey.danmakuFontScale, fontSizeVal);
|
||||||
localCache.put(LocalCacheKey.danmakuSpeed, danmakuSpeedVal);
|
localCache.put(LocalCacheKey.danmakuSpeed, danmakuSpeedVal);
|
||||||
|
|
||||||
|
var pp = _videoPlayerController!.platform as NativePlayer;
|
||||||
|
await pp.setProperty('audio-files', '');
|
||||||
removeListeners();
|
removeListeners();
|
||||||
await _videoPlayerController?.dispose();
|
await _videoPlayerController?.dispose();
|
||||||
_videoPlayerController = null;
|
_videoPlayerController = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user