mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-12 21:17:41 +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() {
|
||||
if (!isShowing) {
|
||||
plPlayerController
|
||||
?..addStatusLister(playerListener)
|
||||
..addPositionListener(positionListener);
|
||||
}
|
||||
return plPlayerController?.play();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user