mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 08:08:19 +08:00
refa player (#1848)
* tweak
* Reapply "opt: audio uri" (#1833)
This reverts commit 8e726f49b2.
* opt: player
* opt: player
* refa: create player
* refa: player
* opt: UaType
* fix: sb seek preview
* opt: setSub
* fix: screenshot
* opt: unnecessary final player state
* opt: player track
* opt FileSource constructor [skip ci]
* fixes
* fix: dispose player
* fix: quote
* update
* fix: multi ua & remove unused loop
* remove unneeded check [skip ci]
---------
Co-authored-by: dom <githubaccount56556@proton.me>
This commit is contained in:
committed by
GitHub
parent
6782bee11a
commit
7276cde48a
@@ -380,13 +380,12 @@ class _ReplyPageState extends CommonRichTextPubPageState<ReplyPage> {
|
||||
final res = await plPlayerController
|
||||
.plPlayerController
|
||||
.videoPlayerController
|
||||
?.screenshot(format: 'image/png');
|
||||
?.screenshot(format: .png);
|
||||
if (res != null) {
|
||||
final file = File(
|
||||
'$tmpDirPath/${Utils.generateRandomString(8)}.png',
|
||||
);
|
||||
await file.writeAsBytes(res);
|
||||
imageList.add(FilePicModel(path: file.path));
|
||||
final path =
|
||||
'$tmpDirPath/${Utils.generateRandomString(8)}.png';
|
||||
await File(path).writeAsBytes(res);
|
||||
imageList.add(FilePicModel(path: path));
|
||||
} else {
|
||||
debugPrint('null screenshot');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user