mod: 直播页面控制条

This commit is contained in:
guozhigq
2023-09-04 15:01:02 +08:00
parent 0f134b8dca
commit 1bebb32a0d
4 changed files with 182 additions and 110 deletions

View File

@ -105,6 +105,7 @@ class PlPlayerController {
];
PreferredSizeWidget? headerControl;
PreferredSizeWidget? bottomControl;
Widget? danmuWidget;
/// 数据加载监听
@ -819,6 +820,7 @@ class PlPlayerController {
child: PLVideoPlayer(
controller: this,
headerControl: headerControl,
bottomControl: bottomControl,
danmuWidget: danmuWidget,
),
),
@ -867,6 +869,9 @@ class PlPlayerController {
if (!_enableHeart) {
return false;
}
if (videoType.value == 'live') {
return;
}
// 播放状态变化时,更新
if (type == 'status') {
await VideoHttp.heartBeat(