merge design

This commit is contained in:
guozhigq
2023-09-04 15:17:19 +08:00
7 changed files with 332 additions and 237 deletions

View File

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