mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
set player proxy
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -841,10 +841,7 @@ class PlPlayerController {
|
||||
if (isAnim) {
|
||||
setShader(superResolutionType.value, pp);
|
||||
}
|
||||
await pp.setProperty(
|
||||
"af",
|
||||
"scaletempo2=max-speed=8",
|
||||
);
|
||||
await pp.setProperty("af", "scaletempo2=max-speed=8");
|
||||
if (Platform.isAndroid) {
|
||||
await pp.setProperty("volume-max", "100");
|
||||
String ao = Pref.useOpenSLES
|
||||
@@ -859,6 +856,16 @@ class PlPlayerController {
|
||||
// await pp.setProperty("gpu-context", "android");
|
||||
// await pp.setProperty("gpu-api", "opengl");
|
||||
await player.setAudioTrack(AudioTrack.auto());
|
||||
if (Pref.enableSystemProxy) {
|
||||
final systemProxyHost = Pref.systemProxyHost;
|
||||
final systemProxyPort = int.tryParse(Pref.systemProxyPort);
|
||||
if (systemProxyPort != null && systemProxyHost.isNotEmpty) {
|
||||
await pp.setProperty(
|
||||
"http-proxy",
|
||||
'http://$systemProxyHost:$systemProxyPort',
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 音轨
|
||||
|
||||
Reference in New Issue
Block a user