mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-17 22:54:04 +08:00
add player listener if needed
Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -182,6 +182,11 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<void>? playCallBack() {
|
Future<void>? playCallBack() {
|
||||||
|
if (!isShowing) {
|
||||||
|
plPlayerController
|
||||||
|
?..addStatusLister(playerListener)
|
||||||
|
..addPositionListener(positionListener);
|
||||||
|
}
|
||||||
return plPlayerController?.play();
|
return plPlayerController?.play();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user