mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-08 23:18:16 -07:00
feature: Video BufferSize settings for MPV (#314)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
3896bb90f5
commit
d4380d5f6f
9 changed files with 56 additions and 8 deletions
|
|
@ -31,12 +31,13 @@ class LibMPV extends BasePlayer {
|
|||
dispose();
|
||||
|
||||
mpv.MediaKit.ensureInitialized();
|
||||
|
||||
|
||||
_player = mpv.Player(
|
||||
configuration: mpv.PlayerConfiguration(
|
||||
title: "nl.jknaapen.fladder",
|
||||
libassAndroidFont: libassFallbackFont,
|
||||
libass: !kIsWeb && settings.useLibass,
|
||||
bufferSize: settings.bufferSize * 1024 * 1024, // MPV uses buffer size in bytes
|
||||
),
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue