mod: 直播页面控制条
This commit is contained in:
@ -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(
|
||||
|
||||
Reference in New Issue
Block a user