mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 08:38:18 +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) {
|
if (isAnim) {
|
||||||
setShader(superResolutionType.value, pp);
|
setShader(superResolutionType.value, pp);
|
||||||
}
|
}
|
||||||
await pp.setProperty(
|
await pp.setProperty("af", "scaletempo2=max-speed=8");
|
||||||
"af",
|
|
||||||
"scaletempo2=max-speed=8",
|
|
||||||
);
|
|
||||||
if (Platform.isAndroid) {
|
if (Platform.isAndroid) {
|
||||||
await pp.setProperty("volume-max", "100");
|
await pp.setProperty("volume-max", "100");
|
||||||
String ao = Pref.useOpenSLES
|
String ao = Pref.useOpenSLES
|
||||||
@@ -859,6 +856,16 @@ class PlPlayerController {
|
|||||||
// await pp.setProperty("gpu-context", "android");
|
// await pp.setProperty("gpu-context", "android");
|
||||||
// await pp.setProperty("gpu-api", "opengl");
|
// await pp.setProperty("gpu-api", "opengl");
|
||||||
await player.setAudioTrack(AudioTrack.auto());
|
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