Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
19806d9b54 | ||
|
|
79b75483bd | ||
|
|
78090d8bd6 | ||
|
|
2fe0fdb975 | ||
|
|
930534ee31 | ||
|
|
3b611a1e18 | ||
|
|
120749e442 | ||
|
|
d333ac2382 | ||
|
|
c3ca6e4c49 | ||
|
|
ad6ed04901 | ||
|
|
25e5ea042f | ||
|
|
4462b44e9b | ||
|
|
7df969cb90 | ||
|
|
719f317b5d | ||
|
|
c32806d987 | ||
|
|
86637012dc | ||
|
|
bd7f37a3f6 | ||
|
|
d5c575cbfe | ||
|
|
f29030c3a0 | ||
|
|
f04691d321 | ||
|
|
dbe804f8db | ||
|
|
37e4153602 | ||
|
|
b0b14bcd18 | ||
|
|
7b917462c7 | ||
|
|
791433bceb | ||
|
|
e90835c234 | ||
|
|
8affbb7af6 | ||
|
|
21c4ab430e | ||
|
|
c9dc15b1d8 | ||
|
|
b4967ca075 | ||
|
|
cd1978ee1c | ||
|
|
a5e422d284 | ||
|
|
5a1d378b42 | ||
|
|
19abd7831f | ||
|
|
0d78020fbf | ||
|
|
7e1d5ad4c4 | ||
|
|
94f2daa22e | ||
|
|
075e4aeb32 | ||
|
|
52d70dd97d | ||
|
|
d9b03160f0 | ||
|
|
b11c63f557 | ||
|
|
a75cf5fd35 | ||
|
|
6f39a286d3 | ||
|
|
66b80a33ba | ||
|
|
84b9eac09b | ||
|
|
39788ab64a | ||
|
|
4cd289b4b8 | ||
|
|
d49bd20fa0 | ||
|
|
618251b8eb | ||
|
|
9437956b83 | ||
|
|
f602925896 | ||
|
|
1aecb9d2d2 | ||
|
|
4a5731976a | ||
|
|
8198ea9522 | ||
|
|
e069d30555 | ||
|
|
1aa06ffe90 | ||
|
|
1b29cb3ef7 | ||
|
|
ba22dca9e5 | ||
|
|
b5a9f09f12 | ||
|
|
8bf5dbb379 | ||
|
|
5fc599439e | ||
|
|
27723e6f29 | ||
|
|
a4c444435f | ||
|
|
6292685b5d | ||
|
|
7195702242 | ||
|
|
b459c5150c | ||
|
|
dba292cbfb | ||
|
|
01a5d11ef5 | ||
|
|
5e2bd4efa8 | ||
|
|
b23ba4c839 | ||
|
|
06bd9d775d | ||
|
|
d6487e24c9 | ||
|
|
c404589382 | ||
|
|
f1689a7794 | ||
|
|
a861a4110f | ||
|
|
e7809b3160 | ||
|
|
edd0618e64 | ||
|
|
849e62df7e | ||
|
|
e1c0df3bd7 | ||
|
|
349b5b0513 | ||
|
|
3ad049cb28 | ||
|
|
656cf1158b | ||
|
|
f3cb508649 | ||
|
|
c39b5a5cf1 | ||
|
|
9ff3099a9d | ||
|
|
c24a2aade0 | ||
|
|
8f862d1ca0 | ||
|
|
b56608f94f | ||
|
|
2876e1bf78 | ||
|
|
ebd850b0d5 | ||
|
|
f3f962a7c9 | ||
|
|
49ae1fdc34 | ||
|
|
dc769bda41 | ||
|
|
75ba6b0627 | ||
|
|
1e40d21bd8 | ||
|
|
3c43874342 | ||
|
|
4f422f1485 | ||
|
|
85d9b6ebab | ||
|
|
90662e2173 | ||
|
|
24980aff95 | ||
|
|
804261605b | ||
|
|
8a65c78999 | ||
|
|
979db254d1 | ||
|
|
18ebe77806 | ||
|
|
0de856e929 | ||
|
|
a6d82b4637 | ||
|
|
acfb79c857 | ||
|
|
dcfe0f8308 | ||
|
|
23a423fe85 | ||
|
|
b2cb874b73 | ||
|
|
f671f367ea | ||
|
|
665603b314 | ||
|
|
0d7dd093c4 | ||
|
|
c849a213f0 | ||
|
|
49ff0854c0 | ||
|
|
5047057521 | ||
|
|
e28e2b9371 | ||
|
|
bb92b6083b | ||
|
|
acdae74587 | ||
|
|
5e4449247b | ||
|
|
c2fe142293 | ||
|
|
431b0f9b0c | ||
|
|
959e6e9398 | ||
|
|
18e47d2327 | ||
|
|
b2e5e02204 | ||
|
|
e6a488a4e2 | ||
|
|
75d0164a8b | ||
|
|
05251edaf3 | ||
|
|
892dfee381 | ||
|
|
7f1eb3a818 | ||
|
|
bd0a0c5d6b | ||
|
|
71b05fd4b2 | ||
|
|
587609d7f6 | ||
|
|
cceba28d0a | ||
|
|
03c623e8c7 | ||
|
|
2b34f4a9d7 | ||
|
|
ad3cc6b986 | ||
|
|
133db721a2 | ||
|
|
a03d30fa45 | ||
|
|
62abd3c30a | ||
|
|
97ba02f45e | ||
|
|
0f1bf5e011 | ||
|
|
d816d82a38 | ||
|
|
c89c88647e | ||
|
|
3599b0b0e1 | ||
|
|
1adb89c6b3 | ||
|
|
7ec1c2ebdc | ||
|
|
7ec062deaf | ||
|
|
a5c7d5b52a | ||
|
|
e54bbd11f1 | ||
|
|
38afdab2e4 | ||
|
|
f214c50c15 | ||
|
|
1fc081ed6b | ||
|
|
cbaed8cdfb | ||
|
|
eac0e26696 | ||
|
|
77af810d1f | ||
|
|
1292d7ac34 | ||
|
|
e75ab94eb9 | ||
|
|
804bea8e9a | ||
|
|
0502dd7ba0 | ||
|
|
3221a0cb1a | ||
|
|
e7efa458e5 | ||
|
|
9b48f26463 | ||
|
|
903b8eced8 | ||
|
|
3753967caf | ||
|
|
516925cf50 | ||
|
|
cd9498abb8 | ||
|
|
18642cae15 | ||
|
|
92063bd58f | ||
|
|
726281ed44 | ||
|
|
e02daa89b8 | ||
|
|
7de7802368 | ||
|
|
d44a8994ce | ||
|
|
42d9168941 | ||
|
|
38616770e5 | ||
|
|
bf7558f80d | ||
|
|
381e82d61a | ||
|
|
9cebcb97c5 | ||
|
|
eef73e6447 | ||
|
|
e8df18e7b2 | ||
|
|
54512b8f93 |
+2
-2
@@ -1,6 +1,6 @@
|
||||
cask "plezy" do
|
||||
version "2.4.1"
|
||||
sha256 "c0658bf43b793a04755a9beaedd27c05c897f2c72298cd5da6531463baf15e0c"
|
||||
version "2.7.1"
|
||||
sha256 "b649195b030add21f3901dabfc90e3f893e08171c51928a7327f19b4ac9150c5"
|
||||
|
||||
url "https://github.com/edde746/plezy/releases/download/#{version}/plezy-macos.dmg"
|
||||
name "Plezy"
|
||||
|
||||
@@ -23,21 +23,28 @@ val downloadLibmpv by tasks.registering {
|
||||
}
|
||||
}
|
||||
|
||||
val assVersion = "fp-3"
|
||||
val assDir = layout.buildDirectory.dir("libass").get().asFile
|
||||
val assAars = listOf("lib_ass-release.aar", "lib_ass_kt-release.aar", "lib_ass_media-release.aar")
|
||||
|
||||
val downloadLibass by tasks.registering {
|
||||
val stamp = File(assDir, ".version")
|
||||
outputs.upToDateWhen { stamp.exists() && stamp.readText().trim() == assVersion }
|
||||
// Extract libc++_shared.so from the libmpv AAR so the app source set can package
|
||||
// it with top merge priority (see packaging { jniLibs } and sourceSets below).
|
||||
val extractMpvLibcxx by tasks.registering {
|
||||
dependsOn(downloadLibmpv)
|
||||
val aar = File(mpvDir, mpvAar)
|
||||
val outDir = File(mpvDir, "libcxx")
|
||||
inputs.file(aar)
|
||||
outputs.dir(outDir)
|
||||
doLast {
|
||||
assDir.mkdirs()
|
||||
val baseUrl = "https://github.com/edde746/libass-android/releases/download/$assVersion"
|
||||
assAars.forEach { name ->
|
||||
val dest = File(assDir, name)
|
||||
exec { commandLine("curl", "-sfL", "$baseUrl/$name", "-o", dest.absolutePath) }
|
||||
outDir.deleteRecursively() // drop stale ABIs from a previous AAR version
|
||||
outDir.mkdirs()
|
||||
exec {
|
||||
commandLine(
|
||||
"unzip",
|
||||
"-q",
|
||||
"-o",
|
||||
aar.absolutePath,
|
||||
"jni/*/libc++_shared.so",
|
||||
"-d",
|
||||
outDir.absolutePath
|
||||
)
|
||||
}
|
||||
stamp.writeText(assVersion)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -145,25 +152,37 @@ android {
|
||||
|
||||
packaging {
|
||||
jniLibs {
|
||||
// Resolve conflict between libass-android and libmpv native libraries
|
||||
// pickFirst only suppresses the duplicate libc++ merge error; the
|
||||
// sourceSets rule below makes libmpv's newer runtime win for
|
||||
// std::from_chars<float>, while older native consumers remain ABI-compatible.
|
||||
pickFirsts.add("lib/*/libc++_shared.so")
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
getByName("main") {
|
||||
// PROJECT-scope jniLibs merge ahead of subprojects/AARs, so dependency
|
||||
// order cannot accidentally select the older libc++ copy.
|
||||
jniLibs.srcDir(File(mpvDir, "libcxx/jni"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
flutter {
|
||||
source = "../.."
|
||||
}
|
||||
|
||||
// Download libdovi before any CMake/native build task
|
||||
tasks.matching { it.name.contains("CMake") || it.name.contains("externalNative") }.configureEach {
|
||||
dependsOn(downloadLibdovi)
|
||||
}
|
||||
|
||||
// Download libmpv and libass AARs before compilation
|
||||
tasks.matching { it.name.startsWith("pre") && it.name.endsWith("Build") }.configureEach {
|
||||
dependsOn(downloadLibmpv)
|
||||
dependsOn(downloadLibass)
|
||||
dependsOn(downloadLibmpv, extractMpvLibcxx)
|
||||
}
|
||||
// Gradle snapshots jniLibs source dirs before task execution; this keeps the
|
||||
// extracted libmpv libc++ directory present during input discovery.
|
||||
tasks.matching { it.name.startsWith("merge") && it.name.endsWith("JniLibFolders") }.configureEach {
|
||||
dependsOn(extractMpvLibcxx)
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@@ -186,6 +205,9 @@ dependencies {
|
||||
// FFmpeg audio decoder for unsupported codecs (ALAC, DTS, TrueHD, etc.)
|
||||
implementation("org.jellyfin.media3:media3-ffmpeg-decoder:1.9.0+1")
|
||||
|
||||
// libass-android for ASS/SSA subtitle rendering
|
||||
assAars.forEach { implementation(files(File(assDir, it))) }
|
||||
// Keeping libass in-project lets its static core share the app's native
|
||||
// packaging rules.
|
||||
implementation(project(":libass"))
|
||||
|
||||
testImplementation("junit:junit:4.13.2")
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
|
||||
<!-- Internet access permissions -->
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
|
||||
|
||||
|
||||
<!-- PIP and media session foreground service permissions -->
|
||||
|
||||
@@ -4,16 +4,19 @@ import android.app.Activity
|
||||
import android.app.ActivityManager
|
||||
import android.app.AppOpsManager
|
||||
import android.app.PictureInPictureParams
|
||||
import android.content.ActivityNotFoundException
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.content.pm.PackageManager
|
||||
import android.content.res.Configuration
|
||||
import android.graphics.SurfaceTexture
|
||||
import android.media.AudioManager
|
||||
import android.net.Uri
|
||||
import android.os.Build
|
||||
import android.os.Bundle
|
||||
import android.os.Handler
|
||||
import android.os.Looper
|
||||
import android.os.Process
|
||||
import android.provider.Settings
|
||||
import android.util.Log
|
||||
import android.util.Rational
|
||||
@@ -22,6 +25,7 @@ import android.view.KeyEvent
|
||||
import android.view.TextureView
|
||||
import android.view.ViewGroup
|
||||
import android.view.WindowInsets
|
||||
import android.view.WindowManager
|
||||
import android.view.inputmethod.InputMethodManager
|
||||
import android.widget.FrameLayout
|
||||
import androidx.core.content.FileProvider
|
||||
@@ -38,6 +42,7 @@ import io.flutter.embedding.engine.FlutterEngine
|
||||
import io.flutter.embedding.engine.FlutterShellArgs
|
||||
import io.flutter.plugin.common.MethodChannel
|
||||
import java.io.File
|
||||
import kotlin.math.roundToInt
|
||||
|
||||
class MainActivity : FlutterActivity() {
|
||||
|
||||
@@ -76,12 +81,14 @@ class MainActivity : FlutterActivity() {
|
||||
private val EXTERNAL_PLAYER_CHANNEL = "com.plezy/external_player"
|
||||
private val THEME_CHANNEL = "com.plezy/theme"
|
||||
private val DEVICE_CHANNEL = "com.plezy/device"
|
||||
private val DEVICE_ADJUSTMENT_CHANNEL = "com.plezy/device_adjustment"
|
||||
private val TEXT_INPUT_CHANNEL = "com.plezy/text_input"
|
||||
private val APP_EXIT_CHANNEL = "com.plezy/app_exit"
|
||||
private val APP_FOREGROUND_CHANNEL = "com.plezy/app_foreground"
|
||||
private var watchNextPlugin: WatchNextPlugin? = null
|
||||
private var nativeTextInputFocused = false
|
||||
private var pendingExternalPlayerResult: MethodChannel.Result? = null
|
||||
private var originalWindowBrightness: Float? = null
|
||||
|
||||
private inline fun logTextInputDiag(message: () -> String) {
|
||||
if (TEXT_INPUT_DIAGNOSTICS_ENABLED) {
|
||||
@@ -190,6 +197,19 @@ class MainActivity : FlutterActivity() {
|
||||
)
|
||||
}
|
||||
|
||||
/** Hardware capability signals used by Dart to pick the visual-effects tier. */
|
||||
private fun getPerformanceSignals(): Map<String, Any> {
|
||||
val activityManager = getSystemService(Context.ACTIVITY_SERVICE) as ActivityManager
|
||||
val memoryInfo = ActivityManager.MemoryInfo()
|
||||
activityManager.getMemoryInfo(memoryInfo)
|
||||
return mapOf(
|
||||
// Actual process bitness: low-end TV boxes often run 32-bit userspace.
|
||||
"is64Bit" to Process.is64Bit(),
|
||||
"isLowRamDevice" to activityManager.isLowRamDevice,
|
||||
"totalMemBytes" to memoryInfo.totalMem
|
||||
)
|
||||
}
|
||||
|
||||
/** User-assigned device name (Settings > About > Device name), or null. */
|
||||
private fun getDeviceName(): String? {
|
||||
// The name the user gave the device; also used by Cast/Nearby.
|
||||
@@ -440,10 +460,15 @@ class MainActivity : FlutterActivity() {
|
||||
when (call.method) {
|
||||
"getTvDetection" -> result.success(getAndroidTvDetection())
|
||||
"getDeviceName" -> result.success(getDeviceName())
|
||||
"getPerformanceSignals" -> result.success(getPerformanceSignals())
|
||||
else -> result.notImplemented()
|
||||
}
|
||||
}
|
||||
|
||||
MethodChannel(flutterEngine.dartExecutor.binaryMessenger, DEVICE_ADJUSTMENT_CHANNEL).setMethodCallHandler { call, result ->
|
||||
handleDeviceAdjustmentCall(call.method, call.arguments, result)
|
||||
}
|
||||
|
||||
MethodChannel(flutterEngine.dartExecutor.binaryMessenger, TEXT_INPUT_CHANNEL).setMethodCallHandler { call, result ->
|
||||
when (call.method) {
|
||||
"setNativeTextInputFocused" -> {
|
||||
@@ -482,7 +507,9 @@ class MainActivity : FlutterActivity() {
|
||||
when (call.method) {
|
||||
"openVideo" -> {
|
||||
val filePath = call.argument<String>("filePath")
|
||||
val packageName = call.argument<String>("package")
|
||||
val packageNames = call.argument<List<Any?>>("packages")
|
||||
?.mapNotNull { (it as? String)?.trim()?.takeIf { value -> value.isNotEmpty() } }
|
||||
?: emptyList()
|
||||
val title = call.argument<String>("title")?.trim()?.takeIf { it.isNotEmpty() }
|
||||
val startPositionMs = call.argument<Number>("startPositionMs")?.toLong() ?: 0L
|
||||
|
||||
@@ -516,14 +543,12 @@ class MainActivity : FlutterActivity() {
|
||||
grantRead = true
|
||||
}
|
||||
|
||||
val intent = Intent(Intent.ACTION_VIEW).apply {
|
||||
fun buildIntent(packageName: String?): Intent = Intent(Intent.ACTION_VIEW).apply {
|
||||
setDataAndType(uri, "video/*")
|
||||
if (grantRead) {
|
||||
addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
|
||||
}
|
||||
if (packageName != null) {
|
||||
setPackage(packageName)
|
||||
}
|
||||
packageName?.let { setPackage(it) }
|
||||
val startPosition = startPositionMs.coerceAtLeast(0).coerceAtMost(Int.MAX_VALUE.toLong()).toInt()
|
||||
if (startPosition > 0) {
|
||||
putExtra(API_MX_RESULT_POSITION, startPosition)
|
||||
@@ -538,11 +563,25 @@ class MainActivity : FlutterActivity() {
|
||||
}
|
||||
fileName?.let { putExtra(API_MX_FILENAME, it) }
|
||||
}
|
||||
pendingExternalPlayerResult = result
|
||||
startActivityForResult(intent, EXTERNAL_PLAYER_REQUEST_CODE)
|
||||
} catch (e: android.content.ActivityNotFoundException) {
|
||||
|
||||
val targetPackages = if (packageNames.isEmpty()) listOf<String?>(null) else packageNames
|
||||
for (packageName in targetPackages) {
|
||||
try {
|
||||
pendingExternalPlayerResult = result
|
||||
startActivityForResult(buildIntent(packageName), EXTERNAL_PLAYER_REQUEST_CODE)
|
||||
return@setMethodCallHandler
|
||||
} catch (e: ActivityNotFoundException) {
|
||||
pendingExternalPlayerResult = null
|
||||
}
|
||||
}
|
||||
|
||||
pendingExternalPlayerResult = null
|
||||
result.error("APP_NOT_FOUND", "No app found for package: $packageName", null)
|
||||
val message = if (packageNames.isEmpty()) {
|
||||
"No app found for video"
|
||||
} else {
|
||||
"No app found for packages: ${packageNames.joinToString(", ")}"
|
||||
}
|
||||
result.error("APP_NOT_FOUND", message, null)
|
||||
} catch (e: Exception) {
|
||||
pendingExternalPlayerResult = null
|
||||
result.error("LAUNCH_FAILED", e.message ?: e.javaClass.simpleName, null)
|
||||
@@ -672,6 +711,92 @@ class MainActivity : FlutterActivity() {
|
||||
}
|
||||
}
|
||||
|
||||
private fun handleDeviceAdjustmentCall(method: String, arguments: Any?, result: MethodChannel.Result) {
|
||||
try {
|
||||
when (method) {
|
||||
"getBrightness" -> result.success(getScreenBrightnessFraction())
|
||||
"setBrightness" -> {
|
||||
setScreenBrightnessFraction(argumentAsDouble(arguments))
|
||||
result.success(null)
|
||||
}
|
||||
"restoreBrightness" -> {
|
||||
restoreScreenBrightness()
|
||||
result.success(null)
|
||||
}
|
||||
"getMediaVolume" -> result.success(getMediaVolumeFraction())
|
||||
"setMediaVolume" -> {
|
||||
setMediaVolumeFraction(argumentAsDouble(arguments))
|
||||
result.success(null)
|
||||
}
|
||||
else -> result.notImplemented()
|
||||
}
|
||||
} catch (e: IllegalArgumentException) {
|
||||
result.error("INVALID_ARGUMENT", e.message ?: e.javaClass.simpleName, null)
|
||||
} catch (e: Exception) {
|
||||
result.error("DEVICE_ADJUSTMENT_FAILED", e.message ?: e.javaClass.simpleName, null)
|
||||
}
|
||||
}
|
||||
|
||||
private fun argumentAsDouble(arguments: Any?): Double {
|
||||
val value = (arguments as? Number)?.toDouble()
|
||||
?: throw IllegalArgumentException("Expected a numeric value")
|
||||
if (value.isNaN() || value.isInfinite()) {
|
||||
throw IllegalArgumentException("Expected a finite numeric value")
|
||||
}
|
||||
return value.coerceIn(0.0, 1.0)
|
||||
}
|
||||
|
||||
private fun getScreenBrightnessFraction(): Double {
|
||||
val windowBrightness = window.attributes.screenBrightness
|
||||
if (windowBrightness >= 0f) return windowBrightness.coerceIn(0f, 1f).toDouble()
|
||||
|
||||
return try {
|
||||
Settings.System.getInt(contentResolver, Settings.System.SCREEN_BRIGHTNESS).coerceIn(0, 255) / 255.0
|
||||
} catch (e: Settings.SettingNotFoundException) {
|
||||
0.5
|
||||
}
|
||||
}
|
||||
|
||||
private fun setScreenBrightnessFraction(value: Double) {
|
||||
if (originalWindowBrightness == null) originalWindowBrightness = window.attributes.screenBrightness
|
||||
val attributes = window.attributes
|
||||
attributes.screenBrightness = value.coerceIn(0.0, 1.0).toFloat()
|
||||
window.attributes = attributes
|
||||
}
|
||||
|
||||
private fun restoreScreenBrightness() {
|
||||
val attributes = window.attributes
|
||||
attributes.screenBrightness = originalWindowBrightness ?: WindowManager.LayoutParams.BRIGHTNESS_OVERRIDE_NONE
|
||||
window.attributes = attributes
|
||||
originalWindowBrightness = null
|
||||
}
|
||||
|
||||
private fun getMediaVolumeFraction(): Double {
|
||||
val audioManager = getSystemService(Context.AUDIO_SERVICE) as AudioManager
|
||||
val maxVolume = audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC)
|
||||
val minVolume = streamMinVolume(audioManager)
|
||||
if (maxVolume <= minVolume) return 0.0
|
||||
|
||||
val volume = audioManager.getStreamVolume(AudioManager.STREAM_MUSIC).coerceIn(minVolume, maxVolume)
|
||||
return (volume - minVolume).toDouble() / (maxVolume - minVolume).toDouble()
|
||||
}
|
||||
|
||||
private fun setMediaVolumeFraction(value: Double) {
|
||||
val audioManager = getSystemService(Context.AUDIO_SERVICE) as AudioManager
|
||||
val maxVolume = audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC)
|
||||
val minVolume = streamMinVolume(audioManager)
|
||||
val target = (minVolume + value.coerceIn(0.0, 1.0) * (maxVolume - minVolume))
|
||||
.roundToInt()
|
||||
.coerceIn(minVolume, maxVolume)
|
||||
audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, target, 0)
|
||||
}
|
||||
|
||||
private fun streamMinVolume(audioManager: AudioManager): Int = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
|
||||
audioManager.getStreamMinVolume(AudioManager.STREAM_MUSIC)
|
||||
} else {
|
||||
0
|
||||
}
|
||||
|
||||
override fun onPictureInPictureModeChanged(isInPictureInPictureMode: Boolean, newConfig: Configuration) {
|
||||
super.onPictureInPictureModeChanged(isInPictureInPictureMode, newConfig)
|
||||
flutterEngine?.let { engine ->
|
||||
|
||||
@@ -0,0 +1,202 @@
|
||||
package com.edde746.plezy.exoplayer
|
||||
|
||||
import android.os.Build
|
||||
import android.view.SurfaceControl
|
||||
import android.view.SurfaceView
|
||||
import java.util.concurrent.atomic.AtomicBoolean
|
||||
import java.util.concurrent.atomic.AtomicInteger
|
||||
import kotlin.math.abs
|
||||
import kotlin.math.roundToInt
|
||||
|
||||
/**
|
||||
* Auto-calibrates [ExoPlayerCore]'s subtitle/video layer offset by measuring, per device, how much
|
||||
* later the codec VIDEO plane reaches the display than the GL subtitle OVERLAY plane — the
|
||||
* inter-plane latency (a deep video VPP on TV boxes) that otherwise makes subtitles a frame ahead.
|
||||
*
|
||||
* Both planes are pinned to the same video-frame target (releaseTimeNs). Measuring BOTH with the
|
||||
* same mechanism — [SurfaceTxProbe] + the API-34 previous-release fence — the per-SoC buffer-recycle
|
||||
* bias cancels in the difference, leaving the pure offset:
|
||||
*
|
||||
* offsetFrames = round( (median(videoReleaseVsTarget) − median(overlayReleaseVsTarget)) / frameMs )
|
||||
*
|
||||
* This is a MEDIAN-of-each-plane model, NOT a per-frame paired difference: every sample is
|
||||
* self-paired to its own frame's target, and the per-plane release-vs-target is a steady hardware
|
||||
* constant, so the two medians need not come from the same frames — only from the same (stable)
|
||||
* device. Both medians use a recent-sample window so they stay roughly contemporaneous, and a
|
||||
* confidence gate refuses to converge on an ambiguous (~half-frame) result.
|
||||
*
|
||||
* Video samples arrive every few frames from the metadata listener (codec thread); overlay samples
|
||||
* from the libass GL thread's pre-swap hook (sparse — only when subtitles swap). Once both planes
|
||||
* have enough samples and the result is confident it converges ONCE, applies + persists, and stops
|
||||
* all probing (zero steady-state overhead). Re-runs each play to re-confirm.
|
||||
*
|
||||
* Threads: probeVideo (codec), probeOverlay (libass GL), onResult (probe reader). The lock guards
|
||||
* only counter/sample state and is NEVER held across the binder/JNI `applyTransactionToFrame` call
|
||||
* (so the GL swap path is never stalled by it). The native slot ring is allocated atomically.
|
||||
*/
|
||||
internal class AssLatencyCalibrator(
|
||||
private val videoSurface: SurfaceView,
|
||||
private val overlaySurface: SurfaceView,
|
||||
private val onCalibrated: (Int) -> Unit,
|
||||
private val onDone: () -> Unit,
|
||||
private val log: (String) -> Unit
|
||||
) {
|
||||
private val lock = Any()
|
||||
private val finished = AtomicBoolean(false)
|
||||
private val applyFail = AtomicInteger(0)
|
||||
|
||||
@Volatile private var frameIntervalNs: Long = 0L
|
||||
|
||||
@Volatile private var converged = false
|
||||
|
||||
@Volatile private var stopped = false
|
||||
|
||||
private var videoFrames = 0
|
||||
private var videoAttempts = 0
|
||||
private var overlaySwaps = 0
|
||||
private var overlayAttempts = 0
|
||||
private val videoRel = ArrayDeque<Double>()
|
||||
private val overlayRel = ArrayDeque<Double>()
|
||||
|
||||
fun start() {
|
||||
SurfaceTxProbe.sink = { tag, latch, release, count, state, source, cb ->
|
||||
onResult(tag, latch, release, count, state, source, cb)
|
||||
}
|
||||
log("calibration started (API ${Build.VERSION.SDK_INT})")
|
||||
}
|
||||
|
||||
fun probeVideo(releaseTimeNs: Long, fps: Float) {
|
||||
if (stopped || converged || Build.VERSION.SDK_INT < 34) return
|
||||
if (fps > 1f) frameIntervalNs = (1_000_000_000.0 / fps).toLong()
|
||||
var doAttach = false
|
||||
var giveUp = false
|
||||
synchronized(lock) {
|
||||
videoFrames++
|
||||
if (videoFrames > GIVEUP_FRAMES) {
|
||||
giveUp = true
|
||||
} else if (videoAttempts < VIDEO_ATTEMPT_CAP && videoFrames % VIDEO_EVERY == 0) {
|
||||
videoAttempts++
|
||||
doAttach = true
|
||||
}
|
||||
}
|
||||
if (giveUp) {
|
||||
finishIncomplete()
|
||||
} else if (doAttach) {
|
||||
attach(videoSurface, releaseTimeNs, SurfaceTxProbe.SOURCE_VIDEO)
|
||||
}
|
||||
}
|
||||
|
||||
fun probeOverlay(releaseTimeNs: Long) {
|
||||
if (stopped || converged || Build.VERSION.SDK_INT < 34) return
|
||||
var doAttach = false
|
||||
synchronized(lock) {
|
||||
overlaySwaps++
|
||||
if (overlayAttempts < OVERLAY_ATTEMPT_CAP && overlaySwaps % OVERLAY_EVERY == 0) {
|
||||
overlayAttempts++
|
||||
doAttach = true
|
||||
}
|
||||
}
|
||||
if (doAttach) attach(overlaySurface, releaseTimeNs, SurfaceTxProbe.SOURCE_OVERLAY)
|
||||
}
|
||||
|
||||
/** Never called while holding [lock]: applyTransactionToFrame is a binder call and runs on the
|
||||
* GL swap path. The native slot allocation is atomic, so concurrent callers are safe. */
|
||||
private fun attach(surface: SurfaceView, releaseTimeNs: Long, source: Int) {
|
||||
try {
|
||||
val tx = SurfaceControl.Transaction()
|
||||
SurfaceTxProbe.nativeAttach(tx, releaseTimeNs, source)
|
||||
surface.applyTransactionToFrame(tx)
|
||||
} catch (t: Throwable) {
|
||||
if (applyFail.incrementAndGet() == 1) {
|
||||
log("applyTransactionToFrame failed: ${t.javaClass.simpleName}: ${t.message}")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun onResult(
|
||||
tag: Long,
|
||||
latchNs: Long,
|
||||
releaseNs: Long,
|
||||
surfaceCount: Int,
|
||||
fenceState: Int,
|
||||
source: Int,
|
||||
callbackNs: Long
|
||||
) {
|
||||
if (surfaceCount <= 0 || fenceState != FENCE_OK || releaseNs <= 0) return
|
||||
val relMs = (releaseNs - tag) / 1_000_000.0
|
||||
var result: Int? = null
|
||||
synchronized(lock) {
|
||||
if (converged || stopped) return
|
||||
val list = if (source == SurfaceTxProbe.SOURCE_OVERLAY) overlayRel else videoRel
|
||||
val window = if (source == SurfaceTxProbe.SOURCE_OVERLAY) OVERLAY_WINDOW else VIDEO_WINDOW
|
||||
list.addLast(relMs)
|
||||
while (list.size > window) list.removeFirst() // keep a recent window so medians stay fresh
|
||||
result = tryComputeOffset()
|
||||
}
|
||||
result?.let {
|
||||
onCalibrated(it)
|
||||
finish()
|
||||
}
|
||||
}
|
||||
|
||||
private fun tryComputeOffset(): Int? {
|
||||
val frameMs = frameIntervalNs / 1_000_000.0
|
||||
if (frameMs <= 0.5) return null
|
||||
if (videoRel.size < VIDEO_MIN || overlayRel.size < OVERLAY_MIN) return null
|
||||
val medV = median(videoRel)
|
||||
val medO = median(overlayRel)
|
||||
val offsetMs = medV - medO
|
||||
val raw = offsetMs / frameMs
|
||||
val frames = raw.roundToInt()
|
||||
// Confidence gate: only trust a measurement that points clearly at an integer frame count.
|
||||
// An ambiguous ~half-frame result (corruption / drift / wrong fps) keeps collecting instead.
|
||||
if (abs(raw - frames) > CONFIDENCE_TOL) return null
|
||||
val clamped = frames.coerceIn(-2, 2)
|
||||
converged = true
|
||||
log(
|
||||
"CALIBRATED offsetFrames=$clamped raw=${"%.2f".format(raw)} " +
|
||||
"(video=${"%.1f".format(medV)}ms − overlay=${"%.1f".format(medO)}ms = ${"%.1f".format(offsetMs)}ms " +
|
||||
"/ frameMs=${"%.2f".format(frameMs)}) samples video=${videoRel.size} overlay=${overlayRel.size} " +
|
||||
"applyFail=${applyFail.get()}"
|
||||
)
|
||||
return clamped
|
||||
}
|
||||
|
||||
private fun finishIncomplete() {
|
||||
if (converged || stopped) return
|
||||
log(
|
||||
"calibration incomplete after $videoFrames frames " +
|
||||
"(video=${videoRel.size} overlay=${overlayRel.size}); keeping seed"
|
||||
)
|
||||
finish()
|
||||
}
|
||||
|
||||
fun stop() = finish()
|
||||
|
||||
private fun finish() {
|
||||
if (!finished.compareAndSet(false, true)) return
|
||||
stopped = true
|
||||
SurfaceTxProbe.sink = null
|
||||
onDone()
|
||||
}
|
||||
|
||||
private fun median(xs: Collection<Double>): Double {
|
||||
val s = xs.sorted()
|
||||
val n = s.size
|
||||
return if (n % 2 == 1) s[n / 2] else (s[n / 2 - 1] + s[n / 2]) / 2.0
|
||||
}
|
||||
|
||||
companion object {
|
||||
private const val FENCE_OK = 3
|
||||
private const val VIDEO_EVERY = 2
|
||||
private const val OVERLAY_EVERY = 1 // overlay swaps are already sparse
|
||||
private const val VIDEO_MIN = 40
|
||||
private const val OVERLAY_MIN = 12
|
||||
private const val VIDEO_WINDOW = 60 // recent-sample window for the median
|
||||
private const val OVERLAY_WINDOW = 40
|
||||
private const val VIDEO_ATTEMPT_CAP = 200 // ~16s @24fps/2 of video probing, then the window freezes
|
||||
private const val OVERLAY_ATTEMPT_CAP = 60
|
||||
private const val CONFIDENCE_TOL = 0.33 // |raw − round(raw)| must be within ⅓ frame to converge
|
||||
private const val GIVEUP_FRAMES = 1800 // ~75s @24fps without enough confident overlay samples
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,206 @@
|
||||
package com.edde746.plezy.exoplayer
|
||||
|
||||
import android.media.audiofx.DynamicsProcessing
|
||||
import android.media.audiofx.LoudnessEnhancer
|
||||
import android.os.Build
|
||||
import androidx.annotation.RequiresApi
|
||||
|
||||
/**
|
||||
* Session-bound loudness normalization approximating mpv's
|
||||
* `loudnorm=I=-14:TP=-3:LRA=4` filter (#1289).
|
||||
*
|
||||
* API 28+: DynamicsProcessing with a single full-range compressor band as a
|
||||
* slow AGC plus a limiter for the true-peak ceiling. API 25-27, or when the
|
||||
* device lacks the DynamicsProcessing effect HAL: LoudnessEnhancer (fixed
|
||||
* makeup gain with built-in limiting).
|
||||
*
|
||||
* Effects bind to the audio session, so they survive AudioTrack re-creation
|
||||
* (seeks, format changes) while the session id is stable. They only process
|
||||
* PCM mixer streams — the caller must force decoded PCM output and disable
|
||||
* tunneling while enabled. DynamicsProcessing parameters are per-channel, so
|
||||
* the effect is re-created when the output channel count changes (dialogue
|
||||
* lives in the center channel of 5.1 PCM).
|
||||
*/
|
||||
class AudioNormalizationEffect(private val log: (String, String, String) -> Unit) {
|
||||
|
||||
private companion object {
|
||||
const val EFFECT_PRIORITY = 0
|
||||
|
||||
// DynamicsProcessing — tuned for movie mixes whose dialogue sits around
|
||||
// -27 LUFS: compress above threshold, make up toward I=-14, limit at TP=-3.
|
||||
const val FRAME_DURATION_MS = 10f
|
||||
const val MBC_CUTOFF_HZ = 20_000f
|
||||
const val MBC_ATTACK_MS = 30f
|
||||
const val MBC_RELEASE_MS = 300f
|
||||
const val MBC_RATIO = 4f
|
||||
const val MBC_THRESHOLD_DB = -34f
|
||||
const val MBC_KNEE_DB = 6f
|
||||
const val MBC_NOISE_GATE_DB = -90f // effectively disabled
|
||||
const val MBC_EXPANDER_RATIO = 1f // no downward expansion
|
||||
const val MBC_POST_GAIN_DB = 15f
|
||||
const val LIMITER_ATTACK_MS = 1f
|
||||
const val LIMITER_RELEASE_MS = 60f
|
||||
const val LIMITER_RATIO = 10f
|
||||
const val LIMITER_THRESHOLD_DB = -3f
|
||||
const val DEFAULT_CHANNEL_COUNT = 2
|
||||
const val MAX_CHANNEL_COUNT = 8
|
||||
|
||||
// LoudnessEnhancer fallback: fixed boost, internally limited.
|
||||
const val LOUDNESS_ENHANCER_GAIN_MB = 900 // +9 dB
|
||||
}
|
||||
|
||||
private var dynamicsProcessing: DynamicsProcessing? = null
|
||||
private var loudnessEnhancer: LoudnessEnhancer? = null
|
||||
private var attachedSessionId = 0
|
||||
private var attachedChannelCount = 0
|
||||
|
||||
val isActive: Boolean get() = dynamicsProcessing != null || loudnessEnhancer != null
|
||||
|
||||
/** For stats/QA: which engine is processing. */
|
||||
val describe: String
|
||||
get() = when {
|
||||
dynamicsProcessing != null -> "DynamicsProcessing"
|
||||
loudnessEnhancer != null -> "LoudnessEnhancer"
|
||||
else -> "off"
|
||||
}
|
||||
|
||||
/** Attach to [sessionId]; idempotent for an unchanged (session, channels) pair. */
|
||||
fun attach(sessionId: Int, channelCount: Int?) {
|
||||
val channels = (channelCount ?: DEFAULT_CHANNEL_COUNT).coerceIn(1, MAX_CHANNEL_COUNT)
|
||||
if (sessionId == attachedSessionId && channels == attachedChannelCount && isActive) return
|
||||
release()
|
||||
if (sessionId == 0) return // AUDIO_SESSION_ID_UNSET — retry on onAudioSessionIdChanged
|
||||
attachedSessionId = sessionId
|
||||
attachedChannelCount = channels
|
||||
if (Build.VERSION.SDK_INT >= 28 && tryDynamicsProcessing(sessionId, channels)) return
|
||||
tryLoudnessEnhancer(sessionId)
|
||||
}
|
||||
|
||||
fun release() {
|
||||
dynamicsProcessing?.let { effect ->
|
||||
runCatching { effect.setEnabled(false) }
|
||||
runCatching { effect.release() }
|
||||
}
|
||||
dynamicsProcessing = null
|
||||
loudnessEnhancer?.let { effect ->
|
||||
runCatching { effect.setEnabled(false) }
|
||||
runCatching { effect.release() }
|
||||
}
|
||||
loudnessEnhancer = null
|
||||
attachedSessionId = 0
|
||||
attachedChannelCount = 0
|
||||
}
|
||||
|
||||
@RequiresApi(28)
|
||||
private fun tryDynamicsProcessing(sessionId: Int, channelCount: Int): Boolean = try {
|
||||
val band = DynamicsProcessing.MbcBand(
|
||||
// inUse
|
||||
true,
|
||||
MBC_CUTOFF_HZ,
|
||||
MBC_ATTACK_MS,
|
||||
MBC_RELEASE_MS,
|
||||
MBC_RATIO,
|
||||
MBC_THRESHOLD_DB,
|
||||
MBC_KNEE_DB,
|
||||
MBC_NOISE_GATE_DB,
|
||||
MBC_EXPANDER_RATIO,
|
||||
// preGain
|
||||
0f,
|
||||
MBC_POST_GAIN_DB
|
||||
)
|
||||
val mbc = DynamicsProcessing.Mbc(
|
||||
// inUse
|
||||
true,
|
||||
// enabled
|
||||
true,
|
||||
// bandCount
|
||||
1
|
||||
).apply { setBand(0, band) }
|
||||
val limiter = DynamicsProcessing.Limiter(
|
||||
// inUse
|
||||
true,
|
||||
// enabled
|
||||
true,
|
||||
// linkGroup
|
||||
0,
|
||||
LIMITER_ATTACK_MS,
|
||||
LIMITER_RELEASE_MS,
|
||||
LIMITER_RATIO,
|
||||
LIMITER_THRESHOLD_DB,
|
||||
// postGain
|
||||
0f
|
||||
)
|
||||
val channel = DynamicsProcessing.Channel(
|
||||
// inputGain
|
||||
0f,
|
||||
// preEqInUse
|
||||
false,
|
||||
// preEqBandCount
|
||||
0,
|
||||
// mbcInUse
|
||||
true,
|
||||
// mbcBandCount
|
||||
1,
|
||||
// postEqInUse
|
||||
false,
|
||||
// postEqBandCount
|
||||
0,
|
||||
// limiterInUse
|
||||
true
|
||||
).apply {
|
||||
setMbc(mbc)
|
||||
setLimiter(limiter)
|
||||
}
|
||||
val config = DynamicsProcessing.Config.Builder(
|
||||
DynamicsProcessing.VARIANT_FAVOR_FREQUENCY_RESOLUTION,
|
||||
channelCount,
|
||||
// preEqInUse
|
||||
false,
|
||||
// preEqBandCount
|
||||
0,
|
||||
// mbcInUse
|
||||
true,
|
||||
// mbcBandCount
|
||||
1,
|
||||
// postEqInUse
|
||||
false,
|
||||
// postEqBandCount
|
||||
0,
|
||||
// limiterInUse
|
||||
true
|
||||
)
|
||||
.setPreferredFrameDuration(FRAME_DURATION_MS)
|
||||
.setAllChannelsTo(channel)
|
||||
.build()
|
||||
dynamicsProcessing = DynamicsProcessing(EFFECT_PRIORITY, sessionId, config).apply { setEnabled(true) }
|
||||
log("info", "audio-normalization", "DynamicsProcessing attached (session=$sessionId, channels=$channelCount)")
|
||||
true
|
||||
} catch (e: Exception) {
|
||||
log(
|
||||
"warn",
|
||||
"audio-normalization",
|
||||
"DynamicsProcessing unavailable (${e.javaClass.simpleName}: ${e.message}); trying LoudnessEnhancer"
|
||||
)
|
||||
dynamicsProcessing = null
|
||||
false
|
||||
}
|
||||
|
||||
private fun tryLoudnessEnhancer(sessionId: Int) {
|
||||
try {
|
||||
loudnessEnhancer = LoudnessEnhancer(sessionId).apply {
|
||||
setTargetGain(LOUDNESS_ENHANCER_GAIN_MB)
|
||||
setEnabled(true)
|
||||
}
|
||||
log("info", "audio-normalization", "LoudnessEnhancer attached (session=$sessionId, gain=${LOUDNESS_ENHANCER_GAIN_MB}mB)")
|
||||
} catch (e: Exception) {
|
||||
loudnessEnhancer = null
|
||||
attachedSessionId = 0
|
||||
attachedChannelCount = 0
|
||||
log(
|
||||
"warn",
|
||||
"audio-normalization",
|
||||
"No loudness effect available on this device (${e.javaClass.simpleName}: ${e.message})"
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.edde746.plezy.exoplayer
|
||||
|
||||
import androidx.media3.common.MimeTypes
|
||||
|
||||
internal fun isPassthroughAudioMimeType(mimeType: String): Boolean = when (mimeType) {
|
||||
"audio/ac3",
|
||||
"audio/eac3",
|
||||
"audio/eac3-joc",
|
||||
"audio/ac4",
|
||||
"audio/vnd.dts",
|
||||
"audio/vnd.dts.hd",
|
||||
"audio/vnd.dts.uhd",
|
||||
MimeTypes.AUDIO_TRUEHD -> true
|
||||
else -> false
|
||||
}
|
||||
|
||||
internal fun shouldBlockDirectOutputForPassthrough(mimeType: String, audioPassthroughEnabled: Boolean): Boolean = !audioPassthroughEnabled && isPassthroughAudioMimeType(mimeType)
|
||||
@@ -258,24 +258,40 @@ object DoviBridge {
|
||||
}
|
||||
|
||||
private fun describeDisplayHdrCapabilities(display: Display): String {
|
||||
val hdrCapabilities = display.hdrCapabilities
|
||||
val hdrCapabilities = getDisplayHdrCapabilities(display)
|
||||
val parts = mutableListOf(
|
||||
"display=${display.displayId}:${display.name}",
|
||||
"activeMode=${describeDisplayMode(display.mode)}",
|
||||
"hdrCapabilities=${describeHdrTypes(hdrCapabilities.supportedHdrTypes)}",
|
||||
"desiredLuminance=max=${formatLuminance(hdrCapabilities.desiredMaxLuminance)}, " +
|
||||
"activeMode=${describeDisplayMode(display.mode)}"
|
||||
)
|
||||
if (hdrCapabilities == null) {
|
||||
parts += "hdrCapabilities=unavailable"
|
||||
} else {
|
||||
@Suppress("DEPRECATION")
|
||||
parts += "hdrCapabilities=${describeHdrTypes(hdrCapabilities.supportedHdrTypes)}"
|
||||
parts += "desiredLuminance=max=${formatLuminance(hdrCapabilities.desiredMaxLuminance)}, " +
|
||||
"maxAvg=${formatLuminance(hdrCapabilities.desiredMaxAverageLuminance)}, " +
|
||||
"min=${formatLuminance(hdrCapabilities.desiredMinLuminance)}"
|
||||
)
|
||||
}
|
||||
parts += "supportedModes=${display.supportedModes.joinToString(prefix = "[", postfix = "]") { describeDisplayMode(it) }}"
|
||||
return parts.joinToString(prefix = "{", postfix = "}")
|
||||
}
|
||||
|
||||
private fun getDisplayHdrTypes(display: Display): IntArray = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
|
||||
display.mode.supportedHdrTypes
|
||||
} else {
|
||||
private fun getDisplayHdrCapabilities(display: Display): Display.HdrCapabilities? = runCatching {
|
||||
display.hdrCapabilities
|
||||
}.onFailure { Log.w(TAG, "Failed to query display HDR capabilities", it) }.getOrNull()
|
||||
|
||||
private fun getDisplayHdrTypes(display: Display): IntArray {
|
||||
val hdrCapabilities = getDisplayHdrCapabilities(display) ?: return IntArray(0)
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
|
||||
return runCatching { display.mode.supportedHdrTypes }.getOrElse { error ->
|
||||
Log.w(TAG, "Failed to query mode HDR types; falling back to display HDR capabilities", error)
|
||||
@Suppress("DEPRECATION")
|
||||
hdrCapabilities.supportedHdrTypes
|
||||
}
|
||||
}
|
||||
|
||||
@Suppress("DEPRECATION")
|
||||
display.hdrCapabilities.supportedHdrTypes
|
||||
return hdrCapabilities.supportedHdrTypes
|
||||
}
|
||||
|
||||
private fun describeDisplayMode(mode: Display.Mode): String {
|
||||
|
||||
@@ -0,0 +1,172 @@
|
||||
package com.edde746.plezy.exoplayer
|
||||
|
||||
import java.nio.ByteBuffer
|
||||
|
||||
/**
|
||||
* In-place sanitizer for HEVC Annex B buffers carrying both Dolby Vision and HDR10+
|
||||
* dynamic metadata. Buggy chipsets (Fire TV 4K Max, MediaTek-based Google TV, ...)
|
||||
* crash or black-screen when a native DV codec also receives in-band HDR10+ SEI, so
|
||||
* only the metadata the active decode path consumes may be kept:
|
||||
*
|
||||
* - Native DV codec: strip HDR10+ SEI NALs (types 39/40 with ST 2094-40 payload),
|
||||
* the decoder follows the DV RPU. Port of androidx/media#3085 / Kodi xbmc#24584.
|
||||
* - HEVC fallback for a DV format: strip DV RPU/EL NALs (types 62/63) instead,
|
||||
* leaving HDR10+ for the display.
|
||||
*
|
||||
* Runs on the playback thread against MediaCodec's direct input buffers, where
|
||||
* per-byte ByteBuffer accessor calls are far too slow for high-bitrate UHD remuxes
|
||||
* (#1313). Each sample is therefore staged through a reusable heap array with a
|
||||
* single bulk get, scanned and compacted with array ops, and only the modified tail
|
||||
* is written back. Instances are not thread-safe: use one per renderer.
|
||||
*
|
||||
* Pure JVM (no android/media3 imports) so it stays unit-testable on the host.
|
||||
*/
|
||||
class DvBitstreamSanitizer {
|
||||
|
||||
private companion object {
|
||||
const val NAL_TYPE_PREFIX_SEI = 39
|
||||
const val NAL_TYPE_SUFFIX_SEI = 40
|
||||
const val NAL_TYPE_UNSPEC62 = 62 // DV RPU
|
||||
const val NAL_TYPE_UNSPEC63 = 63 // DV Enhancement Layer
|
||||
|
||||
const val SEI_PAYLOAD_TYPE_ITU_T_T35 = 4
|
||||
|
||||
const val INITIAL_SCRATCH_SIZE = 256 * 1024
|
||||
}
|
||||
|
||||
/** Reusable staging buffer — grown as needed, never shrunk. */
|
||||
private var scratch = ByteArray(INITIAL_SCRATCH_SIZE)
|
||||
|
||||
/**
|
||||
* Scans `[position, limit)` of [data] for Annex B NAL units and removes the selected
|
||||
* metadata NALs by compacting the buffer in place and reducing its limit. The position
|
||||
* is left unchanged. Returns the number of NAL units stripped.
|
||||
*
|
||||
* A sample with no start codes at all is left untouched: it cannot contain the
|
||||
* targeted NALs, and emptying it would only confuse the decoder.
|
||||
*/
|
||||
fun sanitize(data: ByteBuffer, stripHdr10PlusSei: Boolean, stripDvRpu: Boolean): Int {
|
||||
val startPos = data.position()
|
||||
val len = data.limit() - startPos
|
||||
if (len == 0) return 0
|
||||
if (scratch.size < len) scratch = ByteArray(maxOf(len, scratch.size * 2))
|
||||
val buf = scratch
|
||||
data.get(buf, 0, len)
|
||||
data.position(startPos)
|
||||
|
||||
var writeLen = 0
|
||||
var firstModified = -1
|
||||
var strippedCount = 0
|
||||
var nalStartIndex = -1
|
||||
var startCodeLen = 0
|
||||
|
||||
var i = 0
|
||||
while (i <= len) {
|
||||
// Find next start code or end of buffer.
|
||||
val atEnd = i == len
|
||||
var foundStartCode = false
|
||||
var nextStartCodeLen = 0
|
||||
if (!atEnd && i + 2 < len && buf[i].toInt() == 0 && buf[i + 1].toInt() == 0) {
|
||||
if (buf[i + 2].toInt() == 1) {
|
||||
foundStartCode = true
|
||||
nextStartCodeLen = 3
|
||||
} else if (buf[i + 2].toInt() == 0 && i + 3 < len && buf[i + 3].toInt() == 1) {
|
||||
foundStartCode = true
|
||||
nextStartCodeLen = 4
|
||||
}
|
||||
}
|
||||
|
||||
if (foundStartCode || atEnd) {
|
||||
if (nalStartIndex >= 0) {
|
||||
// Complete NAL unit (including its start code) from nalStartIndex to i.
|
||||
val nalDataStart = nalStartIndex + startCodeLen
|
||||
val nalEnd = i
|
||||
var strip = false
|
||||
|
||||
if (nalEnd - nalDataStart >= 2) {
|
||||
// HEVC NAL header: forbidden_zero_bit(1) + nal_unit_type(6) + nuh_layer_id MSB(1).
|
||||
val nalUnitType = (buf[nalDataStart].toInt() and 0x7E) shr 1
|
||||
strip = when (nalUnitType) {
|
||||
NAL_TYPE_UNSPEC62, NAL_TYPE_UNSPEC63 -> stripDvRpu
|
||||
NAL_TYPE_PREFIX_SEI, NAL_TYPE_SUFFIX_SEI ->
|
||||
stripHdr10PlusSei && isHdr10PlusSeiNalUnit(buf, nalDataStart + 2, nalEnd)
|
||||
else -> false
|
||||
}
|
||||
}
|
||||
|
||||
if (strip) {
|
||||
strippedCount++
|
||||
if (firstModified < 0) firstModified = writeLen
|
||||
} else {
|
||||
if (writeLen != nalStartIndex) {
|
||||
// Also reached with zero strips when bytes precede the first start code.
|
||||
if (firstModified < 0) firstModified = writeLen
|
||||
System.arraycopy(buf, nalStartIndex, buf, writeLen, nalEnd - nalStartIndex)
|
||||
}
|
||||
writeLen += nalEnd - nalStartIndex
|
||||
}
|
||||
}
|
||||
nalStartIndex = i
|
||||
startCodeLen = nextStartCodeLen
|
||||
i += if (nextStartCodeLen > 0) nextStartCodeLen else 1
|
||||
} else {
|
||||
i++
|
||||
}
|
||||
}
|
||||
|
||||
if (writeLen == len || firstModified < 0) return 0
|
||||
|
||||
// Bytes before firstModified are byte-identical to the buffer; write back only the tail.
|
||||
data.position(startPos + firstModified)
|
||||
data.put(buf, firstModified, writeLen - firstModified)
|
||||
data.limit(startPos + writeLen)
|
||||
data.position(startPos)
|
||||
return strippedCount
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether the SEI RBSP (starting after the 2-byte HEVC NAL header) begins with an
|
||||
* HDR10+ message: user_data_registered_itu_t_t35 with country code 0xB5 (United States),
|
||||
* provider code 0x003C (Samsung), provider oriented code 0x0001, application identifier 4
|
||||
* (ST 2094-40), application version 0 or 1. Malformed/truncated data returns false so the
|
||||
* NAL is kept.
|
||||
*/
|
||||
private fun isHdr10PlusSeiNalUnit(buf: ByteArray, rbspStart: Int, nalEnd: Int): Boolean {
|
||||
var pos = rbspStart
|
||||
if (pos >= nalEnd) return false
|
||||
|
||||
// SEI payload type: accumulated 0xFF bytes plus the final byte.
|
||||
var payloadType = 0
|
||||
while (pos < nalEnd) {
|
||||
val b = buf[pos++].toInt() and 0xFF
|
||||
payloadType += b
|
||||
if (b != 0xFF) break
|
||||
}
|
||||
|
||||
// SEI payload size, same encoding.
|
||||
var payloadSize = 0
|
||||
while (pos < nalEnd) {
|
||||
val b = buf[pos++].toInt() and 0xFF
|
||||
payloadSize += b
|
||||
if (b != 0xFF) break
|
||||
}
|
||||
|
||||
if (payloadType != SEI_PAYLOAD_TYPE_ITU_T_T35 || payloadSize < 7 || pos + 7 > nalEnd) {
|
||||
return false
|
||||
}
|
||||
|
||||
// The identifier bytes (B5 00 3C 00 01 04 00/01) cannot contain the 0x000003 emulation
|
||||
// prevention pattern, so they can be read without RBSP unescaping.
|
||||
val countryCode = buf[pos].toInt() and 0xFF
|
||||
val providerCode = ((buf[pos + 1].toInt() and 0xFF) shl 8) or (buf[pos + 2].toInt() and 0xFF)
|
||||
val orientedCode = ((buf[pos + 3].toInt() and 0xFF) shl 8) or (buf[pos + 4].toInt() and 0xFF)
|
||||
val appIdentifier = buf[pos + 5].toInt() and 0xFF
|
||||
val appVersion = buf[pos + 6].toInt() and 0xFF
|
||||
|
||||
return countryCode == 0xB5 &&
|
||||
providerCode == 0x003C &&
|
||||
orientedCode == 0x0001 &&
|
||||
appIdentifier == 4 &&
|
||||
(appVersion == 0 || appVersion == 1)
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -8,6 +8,7 @@ import android.net.Uri
|
||||
import android.os.Handler
|
||||
import android.os.Looper
|
||||
import android.util.Log
|
||||
import com.edde746.plezy.libass.media.AssHandler
|
||||
import com.edde746.plezy.mpv.MpvPlayerCore
|
||||
import io.flutter.embedding.engine.plugins.FlutterPlugin
|
||||
import io.flutter.embedding.engine.plugins.activity.ActivityAware
|
||||
@@ -38,13 +39,27 @@ class ExoPlayerPlugin :
|
||||
private var fallbackInProgress: Boolean = false
|
||||
private var activity: Activity? = null
|
||||
private var activityBinding: ActivityPluginBinding? = null
|
||||
private val nameToId = mutableMapOf<String, Int>()
|
||||
|
||||
// Every Dart observeProperty registration, kept so an ExoPlayer→MPV
|
||||
// fallback can re-observe exactly what Dart asked for instead of
|
||||
// maintaining a parallel hard-coded list.
|
||||
private data class ObservedProperty(val id: Int, val format: String)
|
||||
private val observedProperties = LinkedHashMap<String, ObservedProperty>()
|
||||
|
||||
private val mainHandler = Handler(Looper.getMainLooper())
|
||||
private var configuredBufferSizeBytes: Int? = null
|
||||
|
||||
private var sessionGeneration = 0
|
||||
private var debugLoggingEnabled: Boolean = false
|
||||
private val pendingMpvProperties = mutableListOf<Pair<String, String>>()
|
||||
|
||||
// mpv properties set while ExoPlayer is active (including before
|
||||
// initialize — Dart queues its startup properties first), replayed into a
|
||||
// fallback MPV core. Keyed by property name (last write wins) and cleared
|
||||
// only at real session boundaries (dispose, engine detach, open while the
|
||||
// fallback is already active) so one playback's properties never leak into
|
||||
// the next session's fallback.
|
||||
private val pendingMpvProperties = LinkedHashMap<String, String>()
|
||||
private var currentExternalSubtitles: List<Map<String, Any?>>? = null
|
||||
|
||||
// FlutterPlugin
|
||||
|
||||
@@ -80,6 +95,8 @@ class ExoPlayerPlugin :
|
||||
mpvCore = null
|
||||
usingMpvFallback = false
|
||||
fallbackInProgress = false
|
||||
currentExternalSubtitles = null
|
||||
pendingMpvProperties.clear()
|
||||
activity = null
|
||||
activityBinding = null
|
||||
Log.d(TAG, "Detached from activity")
|
||||
@@ -150,6 +167,8 @@ class ExoPlayerPlugin :
|
||||
"setBoxFitMode" -> handleSetBoxFitMode(call, result)
|
||||
"setVideoZoom" -> handleSetVideoZoom(call, result)
|
||||
"setDvConversionMode" -> handleSetDvConversionMode(call, result)
|
||||
"setAudioNormalization" -> handleSetAudioNormalization(call, result)
|
||||
"setAudioPassthrough" -> handleSetAudioPassthrough(call, result)
|
||||
"observeProperty" -> handleObserveProperty(call, result)
|
||||
"setMpvProperty" -> handleSetMpvProperty(call, result)
|
||||
"setLogLevel" -> {
|
||||
@@ -182,10 +201,19 @@ class ExoPlayerPlugin :
|
||||
val bufferSizeBytes = call.argument<Int>("bufferSizeBytes")
|
||||
val tunnelingEnabled = call.argument<Boolean>("tunnelingEnabled") ?: true
|
||||
val dvConversionMode = call.argument<String>("dvConversionMode") ?: "auto"
|
||||
val audioPassthroughEnabled = call.argument<Boolean>("audioPassthroughEnabled") ?: false
|
||||
val assVideoLatencyFrames = call.argument<Int>("assVideoLatencyFrames") ?: 0
|
||||
val subtitleRenderScale = call.argument<Double>("subtitleRenderScale")?.toFloat() ?: 1.0f
|
||||
configuredBufferSizeBytes = bufferSizeBytes
|
||||
// Global libass overlay render scale — set before the player/handler is built below so the
|
||||
// first frame-size apply already uses it.
|
||||
AssHandler.setRenderScale(subtitleRenderScale)
|
||||
|
||||
currentActivity.runOnUiThread {
|
||||
sessionGeneration++
|
||||
// Do NOT clear pendingMpvProperties here: Dart queues its startup
|
||||
// properties (sub-ass, subtitle fonts, ...) before initialize, and the
|
||||
// fallback replay in setupMpvFallback needs them. Dispose/detach clear.
|
||||
|
||||
if (mpvCore != null || fallbackInProgress) {
|
||||
mpvCore?.dispose()
|
||||
@@ -201,11 +229,14 @@ class ExoPlayerPlugin :
|
||||
}
|
||||
val success = playerCore?.initialize(
|
||||
bufferSizeBytes = bufferSizeBytes,
|
||||
tunnelingEnabled = tunnelingEnabled
|
||||
tunnelingEnabled = tunnelingEnabled,
|
||||
audioPassthroughEnabled = audioPassthroughEnabled
|
||||
) ?: false
|
||||
if (success && playerCore?.setDebugDvConversionMode(dvConversionMode) != true) {
|
||||
Log.w(TAG, "Invalid DV conversion mode during initialize: $dvConversionMode")
|
||||
}
|
||||
// Seed from this device's persisted calibration, falling back to the Dart perf-tier proxy.
|
||||
playerCore?.seedAssVideoLatencyFrames(assVideoLatencyFrames)
|
||||
|
||||
// Start hidden
|
||||
playerCore?.setVisible(false)
|
||||
@@ -228,6 +259,8 @@ class ExoPlayerPlugin :
|
||||
mpvCore = null
|
||||
usingMpvFallback = false
|
||||
fallbackInProgress = false
|
||||
currentExternalSubtitles = null
|
||||
pendingMpvProperties.clear()
|
||||
Log.d(TAG, "Disposed")
|
||||
result.success(null)
|
||||
} ?: result.success(null)
|
||||
@@ -238,6 +271,7 @@ class ExoPlayerPlugin :
|
||||
val uri = call.argument<String>("uri")
|
||||
val headers = call.argument<Map<String, String>>("headers")
|
||||
val startPositionMs = call.argument<Number>("startPositionMs")?.toLong() ?: 0L
|
||||
val hasStartPosition = call.argument<Boolean>("hasStartPosition") ?: (startPositionMs > 0L)
|
||||
val autoPlay = call.argument<Boolean>("autoPlay") ?: true
|
||||
val isLive = call.argument<Boolean>("isLive") ?: false
|
||||
val externalSubtitles = call.argument<List<Map<String, Any?>>>("externalSubtitles")
|
||||
@@ -246,9 +280,13 @@ class ExoPlayerPlugin :
|
||||
result.error("INVALID_ARGS", "Missing 'uri'", null)
|
||||
return
|
||||
}
|
||||
val externalSubtitleSnapshot = externalSubtitles?.map { it.toMap() }
|
||||
currentExternalSubtitles = externalSubtitleSnapshot
|
||||
|
||||
// Only clear pending MPV properties when MPV is the active backend.
|
||||
// When ExoPlayer is active, keep them for potential ExoPlayer→MPV fallback.
|
||||
// Only clear pending MPV state when MPV is the active backend. A same-core
|
||||
// MPV reload must not inherit a fallback switch that was armed for the
|
||||
// previous load. When ExoPlayer is active, keep queued properties for a
|
||||
// potential ExoPlayer→MPV fallback.
|
||||
if (usingMpvFallback) {
|
||||
pendingMpvProperties.clear()
|
||||
}
|
||||
@@ -258,19 +296,24 @@ class ExoPlayerPlugin :
|
||||
// MPV: Build loadfile command with options
|
||||
val startSeconds = startPositionMs / 1000.0
|
||||
val options = mutableListOf<String>()
|
||||
options.add("start=$startSeconds")
|
||||
options.add(if (hasStartPosition && startPositionMs > 0L) "start=$startSeconds" else "start=none")
|
||||
if (!autoPlay) options.add("pause=yes")
|
||||
options.add("sid=no")
|
||||
options.add("secondary-sid=no")
|
||||
appendExternalSubtitleOptions(options, externalSubtitleSnapshot)
|
||||
headers?.forEach { (key, value) ->
|
||||
options.add("http-header-fields-append=$key: $value")
|
||||
}
|
||||
val optionsStr = options.joinToString(",")
|
||||
// Convert content:// URIs to fdclose:// for MPV (SAF SD card downloads)
|
||||
val mpvUri = openContentFd(uri)?.let { "fdclose://$it" } ?: uri
|
||||
mpvCore?.command(arrayOf("loadfile", mpvUri, "replace", "-1", optionsStr))
|
||||
mpvCore?.command(arrayOf("loadfile", mpvUri, "replace", "-1", optionsStr)) { success ->
|
||||
if (success && autoPlay) {
|
||||
mpvCore?.setProperty("pause", "no")
|
||||
}
|
||||
}
|
||||
} else {
|
||||
playerCore?.open(uri, headers, startPositionMs, autoPlay, isLive, externalSubtitles)
|
||||
playerCore?.open(uri, headers, startPositionMs, autoPlay, isLive, externalSubtitleSnapshot)
|
||||
}
|
||||
result.success(null)
|
||||
} ?: result.error("NO_ACTIVITY", "Activity not available", null)
|
||||
@@ -413,11 +456,18 @@ class ExoPlayerPlugin :
|
||||
activity?.runOnUiThread {
|
||||
if (usingMpvFallback) {
|
||||
val selectFlag = if (select) "select" else "auto"
|
||||
mpvCore?.command(arrayOf("sub-add", uri, selectFlag, title ?: "External"))
|
||||
val core = mpvCore
|
||||
if (core == null) {
|
||||
result.success(null)
|
||||
} else {
|
||||
core.command(arrayOf("sub-add", uri, selectFlag, title ?: "External")) {
|
||||
result.success(null)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
playerCore?.addSubtitleTrack(uri, title, language, mimeType, select)
|
||||
result.success(null)
|
||||
}
|
||||
result.success(null)
|
||||
} ?: result.success(null)
|
||||
}
|
||||
|
||||
@@ -450,22 +500,24 @@ class ExoPlayerPlugin :
|
||||
val fps = call.argument<Double>("fps")?.toFloat() ?: 0f
|
||||
val duration = call.argument<Number>("duration")?.toLong() ?: 0L
|
||||
val extraDelayMs = call.argument<Number>("extraDelayMs")?.toLong() ?: 0L
|
||||
val videoWidth = call.argument<Number>("videoWidth")?.toInt() ?: 0
|
||||
val videoHeight = call.argument<Number>("videoHeight")?.toInt() ?: 0
|
||||
|
||||
Log.d(TAG, "setVideoFrameRate: fps=$fps, duration=$duration, extraDelayMs=$extraDelayMs")
|
||||
Log.d(TAG, "setVideoFrameRate: fps=$fps, duration=$duration, extraDelayMs=$extraDelayMs, video=${videoWidth}x$videoHeight")
|
||||
val onComplete: (Boolean) -> Unit = { switched -> result.success(switched) }
|
||||
if (usingMpvFallback) {
|
||||
val core = mpvCore
|
||||
if (core == null) {
|
||||
result.success(false)
|
||||
} else {
|
||||
core.setVideoFrameRate(fps, duration, extraDelayMs, onComplete)
|
||||
core.setVideoFrameRate(fps, duration, extraDelayMs, videoWidth, videoHeight, onComplete)
|
||||
}
|
||||
} else {
|
||||
val core = playerCore
|
||||
if (core == null) {
|
||||
result.success(false)
|
||||
} else {
|
||||
core.setVideoFrameRate(fps, duration, extraDelayMs, onComplete)
|
||||
core.setVideoFrameRate(fps, duration, extraDelayMs, videoWidth, videoHeight, onComplete)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -503,13 +555,14 @@ class ExoPlayerPlugin :
|
||||
private fun handleObserveProperty(call: MethodCall, result: MethodChannel.Result) {
|
||||
val name = call.argument<String>("name")
|
||||
val id = call.argument<Int>("id")
|
||||
val format = call.argument<String>("format") ?: "string"
|
||||
|
||||
if (name == null || id == null) {
|
||||
result.error("INVALID_ARGS", "Missing 'name' or 'id'", null)
|
||||
return
|
||||
}
|
||||
|
||||
nameToId[name] = id
|
||||
observedProperties[name] = ObservedProperty(id, format)
|
||||
result.success(null)
|
||||
}
|
||||
|
||||
@@ -589,6 +642,42 @@ class ExoPlayerPlugin :
|
||||
} ?: result.error("NO_ACTIVITY", "Activity not available", null)
|
||||
}
|
||||
|
||||
private fun handleSetAudioNormalization(call: MethodCall, result: MethodChannel.Result) {
|
||||
val enabled = call.argument<Boolean>("enabled")
|
||||
if (enabled == null) {
|
||||
result.error("INVALID_ARGS", "Missing 'enabled'", null)
|
||||
return
|
||||
}
|
||||
if (usingMpvFallback) {
|
||||
// mpv applies loudnorm via the 'af' property the Dart layer also sends.
|
||||
result.success(true)
|
||||
return
|
||||
}
|
||||
activity?.runOnUiThread {
|
||||
playerCore?.setAudioNormalization(enabled)
|
||||
result.success(true)
|
||||
} ?: result.error("NO_ACTIVITY", "Activity not available", null)
|
||||
}
|
||||
|
||||
private fun handleSetAudioPassthrough(call: MethodCall, result: MethodChannel.Result) {
|
||||
val enabled = call.argument<Boolean>("enabled")
|
||||
if (enabled == null) {
|
||||
result.error("INVALID_ARGS", "Missing 'enabled'", null)
|
||||
return
|
||||
}
|
||||
val audioSpdif = if (enabled) "ac3,eac3,dts,dts-hd,truehd" else ""
|
||||
pendingMpvProperties["audio-spdif"] = audioSpdif
|
||||
if (usingMpvFallback) {
|
||||
mpvCore?.setProperty("audio-spdif", audioSpdif)
|
||||
result.success(true)
|
||||
return
|
||||
}
|
||||
activity?.runOnUiThread {
|
||||
playerCore?.setAudioPassthrough(enabled)
|
||||
result.success(true)
|
||||
} ?: result.error("NO_ACTIVITY", "Activity not available", null)
|
||||
}
|
||||
|
||||
private fun handleSetMpvProperty(call: MethodCall, result: MethodChannel.Result) {
|
||||
val name = call.argument<String>("name")
|
||||
val value = call.argument<String>("value")
|
||||
@@ -603,6 +692,10 @@ class ExoPlayerPlugin :
|
||||
when (name) {
|
||||
"audio-delay" -> playerCore?.setAudioDelay(value.toDoubleOrNull() ?: 0.0)
|
||||
"sub-delay" -> playerCore?.setSubtitleDelay(value.toDoubleOrNull() ?: 0.0)
|
||||
// mpv semantics mirrored on the libass overlay: anchor non-positioned ASS
|
||||
// events to the visible screen (Dart sets 'yes' for cover mode / zoom > 1)
|
||||
"sub-ass-force-margins" -> playerCore?.setAssForceMargins(value == "yes")
|
||||
"force-seekable" -> playerCore?.setForceSeekable(value == "yes")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -610,7 +703,7 @@ class ExoPlayerPlugin :
|
||||
mpvCore?.setProperty(name, value)
|
||||
} else {
|
||||
// Store for later application if ExoPlayer falls back to MPV
|
||||
pendingMpvProperties.add(Pair(name, value))
|
||||
pendingMpvProperties[name] = value
|
||||
}
|
||||
result.success(null)
|
||||
}
|
||||
@@ -634,57 +727,7 @@ class ExoPlayerPlugin :
|
||||
* Queries relevant MPV properties and returns them in a map format
|
||||
* compatible with the performance overlay.
|
||||
*/
|
||||
private fun getMpvStats(): Map<String, Any?> {
|
||||
val mpv = mpvCore ?: return mapOf("playerType" to "mpv")
|
||||
|
||||
val hasVideo = mpv.getProperty("video-params/w") != null
|
||||
|
||||
val stats = mutableMapOf<String, Any?>(
|
||||
"playerType" to "mpv",
|
||||
// Video metrics
|
||||
"video-codec" to mpv.getProperty("video-codec"),
|
||||
"video-params/w" to mpv.getProperty("video-params/w"),
|
||||
"video-params/h" to mpv.getProperty("video-params/h"),
|
||||
"videoWidth" to mpv.getProperty("dwidth"),
|
||||
"videoHeight" to mpv.getProperty("dheight"),
|
||||
"container-fps" to mpv.getProperty("container-fps"),
|
||||
"estimated-vf-fps" to mpv.getProperty("estimated-vf-fps"),
|
||||
"video-bitrate" to mpv.getProperty("video-bitrate"),
|
||||
"hwdec-current" to mpv.getProperty("hwdec-current"),
|
||||
// Audio metrics
|
||||
"audio-codec-name" to mpv.getProperty("audio-codec-name"),
|
||||
"audio-params/samplerate" to mpv.getProperty("audio-params/samplerate"),
|
||||
"audio-params/hr-channels" to mpv.getProperty("audio-params/hr-channels"),
|
||||
"audio-bitrate" to mpv.getProperty("audio-bitrate"),
|
||||
// Performance metrics
|
||||
"total-avsync-change" to mpv.getProperty("total-avsync-change"),
|
||||
"cache-speed" to mpv.getProperty("cache-speed"),
|
||||
"frame-drop-count" to mpv.getProperty("frame-drop-count"),
|
||||
"decoder-frame-drop-count" to mpv.getProperty("decoder-frame-drop-count"),
|
||||
"demuxer-cache-duration" to mpv.getProperty("demuxer-cache-duration")
|
||||
)
|
||||
|
||||
// Only query properties that require an active video track
|
||||
if (hasVideo) {
|
||||
stats["display-fps"] = mpv.getProperty("display-fps")
|
||||
// Color/Format properties
|
||||
stats["video-params/pixelformat"] = mpv.getProperty("video-params/pixelformat")
|
||||
stats["video-params/hw-pixelformat"] = mpv.getProperty("video-params/hw-pixelformat")
|
||||
stats["video-params/colormatrix"] = mpv.getProperty("video-params/colormatrix")
|
||||
stats["video-params/primaries"] = mpv.getProperty("video-params/primaries")
|
||||
stats["video-params/gamma"] = mpv.getProperty("video-params/gamma")
|
||||
// HDR metadata
|
||||
stats["video-params/max-luma"] = mpv.getProperty("video-params/max-luma")
|
||||
stats["video-params/min-luma"] = mpv.getProperty("video-params/min-luma")
|
||||
stats["video-params/max-cll"] = mpv.getProperty("video-params/max-cll")
|
||||
stats["video-params/max-fall"] = mpv.getProperty("video-params/max-fall")
|
||||
// Other
|
||||
stats["video-params/aspect-name"] = mpv.getProperty("video-params/aspect-name")
|
||||
stats["video-params/rotate"] = mpv.getProperty("video-params/rotate")
|
||||
}
|
||||
|
||||
return stats
|
||||
}
|
||||
private fun getMpvStats(): Map<String, Any?> = mpvCore?.getStats() ?: mapOf("playerType" to "mpv")
|
||||
|
||||
// PiP Mode handling
|
||||
|
||||
@@ -701,19 +744,28 @@ class ExoPlayerPlugin :
|
||||
// ExoPlayerDelegate
|
||||
|
||||
override fun onPropertyChange(name: String, value: Any?) {
|
||||
val propId = nameToId[name] ?: return
|
||||
val propId = observedProperties[name]?.id ?: return
|
||||
mainHandler.post { eventSink?.success(listOf(propId, value)) }
|
||||
}
|
||||
|
||||
override fun onEvent(name: String, data: Map<String, Any>?) {
|
||||
private fun eventPayload(name: String, data: Map<String, Any>? = null): Map<String, Any> {
|
||||
val event = mutableMapOf<String, Any>(
|
||||
"type" to "event",
|
||||
"name" to name
|
||||
)
|
||||
data?.let { event["data"] = it }
|
||||
return event
|
||||
}
|
||||
|
||||
override fun onEvent(name: String, data: Map<String, Any>?) {
|
||||
val event = eventPayload(name, data)
|
||||
mainHandler.post { eventSink?.success(event) }
|
||||
}
|
||||
|
||||
private fun notifyBackendSwitched() {
|
||||
mainHandler.post { eventSink?.success(eventPayload("backend-switched")) }
|
||||
}
|
||||
|
||||
/**
|
||||
* Opens a content:// URI via ContentResolver and returns the raw FD number,
|
||||
* or null if the URI is not a content:// scheme or opening fails.
|
||||
@@ -736,6 +788,112 @@ class ExoPlayerPlugin :
|
||||
}
|
||||
}
|
||||
|
||||
private fun appendExternalSubtitleOptions(
|
||||
options: MutableList<String>,
|
||||
externalSubtitles: List<Map<String, Any?>>?
|
||||
) {
|
||||
val escapedUris = externalSubtitles.orEmpty()
|
||||
.mapNotNull { it["uri"] as? String }
|
||||
.filter { it.isNotEmpty() }
|
||||
.map(::escapeMpvPathListEntry)
|
||||
.toList()
|
||||
|
||||
if (escapedUris.isEmpty()) return
|
||||
|
||||
val pathList = escapedUris.joinToString(":")
|
||||
options.add("sub-files=%${pathList.toByteArray(Charsets.UTF_8).size}%$pathList")
|
||||
}
|
||||
|
||||
private fun escapeMpvPathListEntry(value: String): String = value.replace("\\", "\\\\").replace(":", "\\:")
|
||||
|
||||
/**
|
||||
* Configure a freshly initialized MPV fallback core: replay the properties
|
||||
* and observers Dart registered against the ExoPlayer session, then resume
|
||||
* the media at the handoff position. Runs in MpvPlayerCore.initialize's
|
||||
* completion callback on the main thread.
|
||||
*/
|
||||
private fun setupMpvFallback(
|
||||
core: MpvPlayerCore,
|
||||
act: Activity,
|
||||
uri: String,
|
||||
headers: Map<String, String>?,
|
||||
positionMs: Long,
|
||||
externalSubtitles: List<Map<String, Any?>>?
|
||||
) {
|
||||
// Snapshot Dart-registered state on main thread before clearing
|
||||
val pendingProps = pendingMpvProperties.toList()
|
||||
pendingMpvProperties.clear()
|
||||
val observedProps = observedProperties.toList()
|
||||
|
||||
// Compute content FD on main thread (needs contentResolver)
|
||||
val mpvUri = openContentFd(uri, act.contentResolver)
|
||||
?.let { "fdclose://$it" } ?: uri
|
||||
|
||||
// Buffer size for closure
|
||||
val bufferSize = configuredBufferSizeBytes
|
||||
|
||||
if (mpvCore !== core) {
|
||||
core.dispose()
|
||||
fallbackInProgress = false
|
||||
return
|
||||
}
|
||||
// Configure basic MPV properties for Plex playback
|
||||
core.setProperty("hwdec", "mediacodec,mediacodec-copy")
|
||||
core.setProperty("vo", "gpu")
|
||||
core.setProperty("ao", "audiotrack")
|
||||
|
||||
// Forward user's buffer config to MPV fallback
|
||||
if (bufferSize != null && bufferSize > 0) {
|
||||
core.setProperty("demuxer-max-bytes", bufferSize.toString())
|
||||
}
|
||||
|
||||
// Apply pending MPV properties from Dart
|
||||
for ((propName, propValue) in pendingProps) {
|
||||
core.setProperty(propName, propValue)
|
||||
}
|
||||
|
||||
// Re-observe exactly what Dart registered via observeProperty, so the
|
||||
// event stream keeps flowing for every property the Dart side consumes.
|
||||
for ((propName, observed) in observedProps) {
|
||||
core.observeProperty(propName, observed.format)
|
||||
}
|
||||
|
||||
// Show the MPV surface (internally posts to UI)
|
||||
core.setVisible(true)
|
||||
|
||||
// Load media at the same position
|
||||
val startSeconds = positionMs / 1000.0
|
||||
val options = mutableListOf<String>()
|
||||
options.add(if (positionMs > 0L) "start=$startSeconds" else "start=none")
|
||||
options.add("sid=no")
|
||||
options.add("secondary-sid=no")
|
||||
appendExternalSubtitleOptions(options, externalSubtitles)
|
||||
headers?.forEach { (key, value) ->
|
||||
options.add("http-header-fields-append=$key: $value")
|
||||
}
|
||||
val optionsStr = options.joinToString(",")
|
||||
notifyBackendSwitched()
|
||||
core.command(arrayOf("loadfile", mpvUri, "replace", "-1", optionsStr))
|
||||
|
||||
// On GPUs without compute shaders, MPV can't do dynamic peak detection
|
||||
// and spline tone-mapping produces dim/washed-out results with extreme
|
||||
// static HDR peak metadata. Use reinhard which handles this better.
|
||||
Thread {
|
||||
val peakDetection = core.getProperty("hdr-compute-peak")
|
||||
if (peakDetection == "no") {
|
||||
Log.i(TAG, "No compute shaders — overriding tone-mapping to reinhard")
|
||||
core.setProperty("tone-mapping", "reinhard")
|
||||
core.setProperty("tone-mapping-param", "0.7")
|
||||
core.setProperty("tone-mapping-mode", "luma")
|
||||
}
|
||||
}.start()
|
||||
|
||||
// Request audio focus
|
||||
core.requestAudioFocus()
|
||||
|
||||
Log.i(TAG, "Successfully switched to MPV fallback")
|
||||
}
|
||||
|
||||
override fun onFormatUnsupported(
|
||||
uri: String,
|
||||
headers: Map<String, String>?,
|
||||
@@ -748,6 +906,7 @@ class ExoPlayerPlugin :
|
||||
}
|
||||
|
||||
val currentActivity = activity ?: return false
|
||||
val fallbackExternalSubtitles = currentExternalSubtitles?.map { it.toMap() }
|
||||
fallbackInProgress = true
|
||||
|
||||
Log.i(TAG, "ExoPlayer error, switching to MPV fallback at ${positionMs}ms: $errorMessage")
|
||||
@@ -813,86 +972,7 @@ class ExoPlayerPlugin :
|
||||
usingMpvFallback = true
|
||||
fallbackInProgress = false
|
||||
|
||||
// Snapshot pending properties on main thread before clearing
|
||||
val pendingProps = pendingMpvProperties.toList()
|
||||
pendingMpvProperties.clear()
|
||||
|
||||
// Compute content FD on main thread (needs contentResolver)
|
||||
val mpvUri = openContentFd(uri, act.contentResolver)
|
||||
?.let { "fdclose://$it" } ?: uri
|
||||
|
||||
// Buffer size for closure
|
||||
val bufferSize = configuredBufferSizeBytes
|
||||
|
||||
if (mpvCore !== core) {
|
||||
core.dispose()
|
||||
fallbackInProgress = false
|
||||
return@initialize
|
||||
}
|
||||
// Configure basic MPV properties for Plex playback
|
||||
core.setProperty("hwdec", "mediacodec,mediacodec-copy")
|
||||
core.setProperty("vo", "gpu")
|
||||
core.setProperty("ao", "audiotrack")
|
||||
|
||||
// Forward user's buffer config to MPV fallback
|
||||
if (bufferSize != null && bufferSize > 0) {
|
||||
core.setProperty("demuxer-max-bytes", bufferSize.toString())
|
||||
}
|
||||
|
||||
// Apply pending MPV properties from Dart
|
||||
for ((propName, propValue) in pendingProps) {
|
||||
core.setProperty(propName, propValue)
|
||||
}
|
||||
|
||||
// Setup property observers
|
||||
core.observeProperty("time-pos", "double")
|
||||
core.observeProperty("duration", "double")
|
||||
core.observeProperty("seekable", "flag")
|
||||
core.observeProperty("pause", "flag")
|
||||
core.observeProperty("paused-for-cache", "flag")
|
||||
core.observeProperty("demuxer-cache-time", "double")
|
||||
core.observeProperty("eof-reached", "flag")
|
||||
core.observeProperty("track-list", "string")
|
||||
core.observeProperty("aid", "string")
|
||||
core.observeProperty("sid", "string")
|
||||
core.observeProperty("volume", "double")
|
||||
core.observeProperty("speed", "double")
|
||||
|
||||
// Show the MPV surface (internally posts to UI)
|
||||
core.setVisible(true)
|
||||
|
||||
// Load media at the same position
|
||||
val startSeconds = positionMs / 1000.0
|
||||
val options = mutableListOf<String>()
|
||||
options.add("start=$startSeconds")
|
||||
headers?.forEach { (key, value) ->
|
||||
options.add("http-header-fields-append=$key: $value")
|
||||
}
|
||||
val optionsStr = options.joinToString(",")
|
||||
core.command(arrayOf("loadfile", mpvUri, "replace", "-1", optionsStr))
|
||||
|
||||
// On GPUs without compute shaders, MPV can't do dynamic peak detection
|
||||
// and spline tone-mapping produces dim/washed-out results with extreme
|
||||
// static HDR peak metadata. Use reinhard which handles this better.
|
||||
Thread {
|
||||
val peakDetection = core.getProperty("hdr-compute-peak")
|
||||
if (peakDetection == "no") {
|
||||
Log.i(TAG, "No compute shaders — overriding tone-mapping to reinhard")
|
||||
core.setProperty("tone-mapping", "reinhard")
|
||||
core.setProperty("tone-mapping-param", "0.7")
|
||||
core.setProperty("tone-mapping-mode", "luma")
|
||||
}
|
||||
}.start()
|
||||
|
||||
// Request audio focus
|
||||
core.requestAudioFocus()
|
||||
|
||||
// Emit backend-switched event on main thread
|
||||
activity?.runOnUiThread {
|
||||
onEvent("backend-switched", null)
|
||||
}
|
||||
|
||||
Log.i(TAG, "Successfully switched to MPV fallback")
|
||||
setupMpvFallback(core, act, uri, headers, positionMs, fallbackExternalSubtitles)
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
fallbackInProgress = false
|
||||
|
||||
@@ -3,11 +3,14 @@ package com.edde746.plezy.exoplayer
|
||||
import android.content.Context
|
||||
import android.media.AudioDeviceInfo
|
||||
import android.os.Build
|
||||
import android.os.Handler
|
||||
import androidx.annotation.OptIn
|
||||
import androidx.media3.common.Format
|
||||
import androidx.media3.common.MimeTypes
|
||||
import androidx.media3.common.PlaybackParameters
|
||||
import androidx.media3.common.util.Clock
|
||||
import androidx.media3.common.util.UnstableApi
|
||||
import androidx.media3.decoder.DecoderInputBuffer
|
||||
import androidx.media3.exoplayer.DefaultRenderersFactory
|
||||
import androidx.media3.exoplayer.Renderer
|
||||
import androidx.media3.exoplayer.analytics.PlayerId
|
||||
@@ -18,6 +21,10 @@ import androidx.media3.exoplayer.audio.AudioTrackAudioOutputProvider
|
||||
import androidx.media3.exoplayer.audio.DefaultAudioSink
|
||||
import androidx.media3.exoplayer.audio.DefaultAudioTrackBufferSizeProvider
|
||||
import androidx.media3.exoplayer.audio.ForwardingAudioSink
|
||||
import androidx.media3.exoplayer.mediacodec.MediaCodecAdapter
|
||||
import androidx.media3.exoplayer.mediacodec.MediaCodecSelector
|
||||
import androidx.media3.exoplayer.video.MediaCodecVideoRenderer
|
||||
import androidx.media3.exoplayer.video.VideoRendererEventListener
|
||||
import java.nio.ByteBuffer
|
||||
import java.util.concurrent.atomic.AtomicLong
|
||||
import kotlin.math.abs
|
||||
@@ -36,6 +43,46 @@ class PlezyRenderersFactory(context: Context) : DefaultRenderersFactory(context)
|
||||
|
||||
var audioDiagnosticsLogger: ((String, String, String) -> Unit)? = null
|
||||
|
||||
var videoDiagnosticsLogger: ((String, String, String) -> Unit)? = null
|
||||
|
||||
override fun buildVideoRenderers(
|
||||
context: Context,
|
||||
extensionRendererMode: Int,
|
||||
mediaCodecSelector: MediaCodecSelector,
|
||||
enableDecoderFallback: Boolean,
|
||||
eventHandler: Handler,
|
||||
eventListener: VideoRendererEventListener,
|
||||
allowedVideoJoiningTimeMs: Long,
|
||||
out: ArrayList<Renderer>
|
||||
) {
|
||||
// Let super build the full list (it also appends extension renderers reflectively,
|
||||
// e.g. the jellyfin ffmpeg artifact's video renderer), then swap the stock
|
||||
// MediaCodecVideoRenderer for the DV-sanitizing variant at the same index.
|
||||
super.buildVideoRenderers(
|
||||
context,
|
||||
extensionRendererMode,
|
||||
mediaCodecSelector,
|
||||
enableDecoderFallback,
|
||||
eventHandler,
|
||||
eventListener,
|
||||
allowedVideoJoiningTimeMs,
|
||||
out
|
||||
)
|
||||
val index = out.indexOfFirst { it.javaClass == MediaCodecVideoRenderer::class.java }
|
||||
if (index < 0) return
|
||||
out[index] = DvSanitizingVideoRenderer(
|
||||
MediaCodecVideoRenderer.Builder(context)
|
||||
.setCodecAdapterFactory(codecAdapterFactory)
|
||||
.setMediaCodecSelector(mediaCodecSelector)
|
||||
.setAllowedJoiningTimeMs(allowedVideoJoiningTimeMs)
|
||||
.setEnableDecoderFallback(enableDecoderFallback)
|
||||
.setEventHandler(eventHandler)
|
||||
.setEventListener(eventListener)
|
||||
.setMaxDroppedFramesToNotify(MAX_DROPPED_VIDEO_FRAME_COUNT_TO_NOTIFY),
|
||||
videoDiagnosticsLogger
|
||||
)
|
||||
}
|
||||
|
||||
override fun buildAudioSink(
|
||||
context: Context,
|
||||
enableFloatOutput: Boolean,
|
||||
@@ -280,6 +327,96 @@ internal class SubtitleDelayRenderer(
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MediaCodecVideoRenderer that resolves the DV / HDR10+ dual-dynamic-metadata conflict
|
||||
* per decode path (#1296, generalizes androidx/media#3085):
|
||||
* - native DV codec selected (media3 only selects one when decoder AND display support DV):
|
||||
* strip in-band HDR10+ SEI — conflicting dynamic metadata crashes Fire TV-class chipsets
|
||||
* - HEVC fallback for an HEVC-based DV format: strip DV RPU/EL NALs (profiles 7/8, where the
|
||||
* base layer remains valid HDR10/HLG), keeping HDR10+ for the display
|
||||
*
|
||||
* Flags are reassigned on every codec init: tunneling toggles and DV retries re-init the
|
||||
* codec without recreating renderers, and decoder fallback can switch the codec MIME.
|
||||
*/
|
||||
@OptIn(UnstableApi::class)
|
||||
internal class DvSanitizingVideoRenderer(
|
||||
builder: Builder,
|
||||
private val log: ((String, String, String) -> Unit)?
|
||||
) : MediaCodecVideoRenderer(builder) {
|
||||
|
||||
private val sanitizer = DvBitstreamSanitizer()
|
||||
|
||||
private var stripHdr10PlusSei = false
|
||||
private var stripDvRpu = false
|
||||
|
||||
// Sanitize diagnostics — playback-thread only, cumulative for the renderer's lifetime.
|
||||
private var sanitizedSampleCount = 0L
|
||||
private var totalSanitizeTimeUs = 0L
|
||||
private var maxSanitizeTimeUs = 0L
|
||||
private var totalStrippedNals = 0L
|
||||
private var totalStrippedBytes = 0L
|
||||
|
||||
override fun onCodecInitialized(
|
||||
name: String,
|
||||
configuration: MediaCodecAdapter.Configuration,
|
||||
initializedTimestampMs: Long,
|
||||
initializationDurationMs: Long
|
||||
) {
|
||||
super.onCodecInitialized(name, configuration, initializedTimestampMs, initializationDurationMs)
|
||||
val codecs = configuration.format.codecs?.lowercase() ?: ""
|
||||
val dvHevcFormat = configuration.format.sampleMimeType == MimeTypes.VIDEO_DOLBY_VISION &&
|
||||
(codecs.startsWith("dvhe.") || codecs.startsWith("dvh1."))
|
||||
val codecMimeType = configuration.codecInfo.codecMimeType
|
||||
val newStripHdr10PlusSei = dvHevcFormat && codecMimeType == MimeTypes.VIDEO_DOLBY_VISION
|
||||
val newStripDvRpu = dvHevcFormat &&
|
||||
codecMimeType == MimeTypes.VIDEO_H265 &&
|
||||
isBlCompatibleDvProfile(codecs)
|
||||
if (newStripHdr10PlusSei != stripHdr10PlusSei || newStripDvRpu != stripDvRpu) {
|
||||
log?.invoke(
|
||||
"info",
|
||||
"video",
|
||||
"DV bitstream sanitizing: stripHdr10PlusSei=$newStripHdr10PlusSei, " +
|
||||
"stripDvRpu=$newStripDvRpu (codec=$name, codecs=${configuration.format.codecs})"
|
||||
)
|
||||
}
|
||||
stripHdr10PlusSei = newStripHdr10PlusSei
|
||||
stripDvRpu = newStripDvRpu
|
||||
}
|
||||
|
||||
override fun onQueueInputBuffer(buffer: DecoderInputBuffer) {
|
||||
if (stripHdr10PlusSei || stripDvRpu) {
|
||||
val data = buffer.data
|
||||
if (data != null && data.hasRemaining() && !buffer.isEncrypted) {
|
||||
val sizeBefore = data.remaining()
|
||||
val startNs = System.nanoTime()
|
||||
val stripped = sanitizer.sanitize(data, stripHdr10PlusSei, stripDvRpu)
|
||||
val elapsedUs = (System.nanoTime() - startNs) / 1_000
|
||||
sanitizedSampleCount++
|
||||
totalSanitizeTimeUs += elapsedUs
|
||||
if (elapsedUs > maxSanitizeTimeUs) maxSanitizeTimeUs = elapsedUs
|
||||
totalStrippedNals += stripped
|
||||
totalStrippedBytes += sizeBefore - data.remaining()
|
||||
if (sanitizedSampleCount <= 3 || sanitizedSampleCount % 500 == 0L) {
|
||||
log?.invoke(
|
||||
"debug",
|
||||
"dv-sanitize",
|
||||
"Sample #$sanitizedSampleCount: ${sizeBefore}B -> ${data.remaining()}B, " +
|
||||
"stripped=$stripped, took=${elapsedUs}us " +
|
||||
"(avg=${totalSanitizeTimeUs / sanitizedSampleCount}us, max=${maxSanitizeTimeUs}us, " +
|
||||
"totalNals=$totalStrippedNals, totalBytes=${totalStrippedBytes}B)"
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
super.onQueueInputBuffer(buffer)
|
||||
}
|
||||
|
||||
private fun isBlCompatibleDvProfile(codecs: String): Boolean = codecs.startsWith("dvhe.07") ||
|
||||
codecs.startsWith("dvh1.07") ||
|
||||
codecs.startsWith("dvhe.08") ||
|
||||
codecs.startsWith("dvh1.08")
|
||||
}
|
||||
|
||||
// --- AudioOutput wrapping: shares raw position with PositionFixAudioSink ---
|
||||
// Also implements AudioTrack reuse across seeks to avoid expensive teardown/recreation.
|
||||
// DefaultAudioSink releases the AudioOutput on every flush (seek), which destroys the
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.edde746.plezy.exoplayer
|
||||
|
||||
import android.view.SurfaceControl
|
||||
import androidx.annotation.Keep
|
||||
|
||||
/**
|
||||
* EXPERIMENTAL SPIKE: the API-34 transaction callback path is the only in-app signal we have
|
||||
* for comparing the codec video plane and the libass overlay plane with the same clock.
|
||||
*/
|
||||
// R8 cannot see the JNI-by-name callback edge, and class-level @Keep is not enough for members.
|
||||
@Keep
|
||||
object SurfaceTxProbe {
|
||||
init {
|
||||
System.loadLibrary("asskt")
|
||||
}
|
||||
|
||||
const val SOURCE_VIDEO = 0
|
||||
const val SOURCE_OVERLAY = 1
|
||||
|
||||
// CLOCK_MONOTONIC keeps native callback times comparable with ExoPlayer release targets.
|
||||
@Volatile
|
||||
@JvmStatic
|
||||
var sink: ((Long, Long, Long, Int, Int, Int, Long) -> Unit)? = null
|
||||
|
||||
// The same transaction must be applied to the frame so the callback follows that buffer.
|
||||
@JvmStatic
|
||||
external fun nativeAttach(transaction: SurfaceControl.Transaction, tag: Long, source: Int)
|
||||
|
||||
// JNI calls this by name after shrink.
|
||||
@Keep
|
||||
@JvmStatic
|
||||
fun onResult(
|
||||
tag: Long,
|
||||
latchNs: Long,
|
||||
releaseNs: Long,
|
||||
surfaceCount: Int,
|
||||
fenceState: Int,
|
||||
source: Int,
|
||||
callbackNs: Long
|
||||
) {
|
||||
val s = sink ?: return
|
||||
s.invoke(tag, latchNs, releaseNs, surfaceCount, fenceState, source, callbackNs)
|
||||
}
|
||||
}
|
||||
@@ -7,8 +7,8 @@ import androidx.media3.extractor.SeekMap
|
||||
import androidx.media3.extractor.TrackOutput
|
||||
import androidx.media3.extractor.mkv.MatroskaExtractor
|
||||
import androidx.media3.extractor.text.SubtitleParser
|
||||
import io.github.peerless2012.ass.media.AssHandler
|
||||
import io.github.peerless2012.ass.media.extractor.AssMatroskaExtractor
|
||||
import com.edde746.plezy.libass.media.AssHandler
|
||||
import com.edde746.plezy.libass.media.extractor.AssMatroskaExtractor
|
||||
|
||||
/**
|
||||
* Extends AssMatroskaExtractor to add support for MKV ContentCompAlgo 0 (zlib).
|
||||
|
||||
@@ -76,6 +76,7 @@ class MpvPlayerCore(private val activity: Activity) : SurfaceHolder.Callback {
|
||||
|
||||
@Volatile private var videoOutputEpoch: Long = 0L
|
||||
private val videoOutputMutex = Mutex()
|
||||
private val commandMutex = Mutex()
|
||||
private var pendingVideoOutputDisableJob: Job? = null
|
||||
private var pendingVideoOutputRefreshJob: Job? = null
|
||||
|
||||
@@ -111,20 +112,29 @@ class MpvPlayerCore(private val activity: Activity) : SurfaceHolder.Callback {
|
||||
return refreshRate.toString()
|
||||
}
|
||||
|
||||
private fun updateDisplayFpsOverride(p: MpvPlayer, reason: String) {
|
||||
private fun updateDisplayFpsOverride(p: MpvPlayer, reason: String, onComplete: () -> Unit = {}) {
|
||||
val fps = currentDisplayFpsOverride()
|
||||
if (fps == null) {
|
||||
Log.d(TAG, "Skipping display-fps-override update ($reason): no display rate")
|
||||
onComplete()
|
||||
return
|
||||
}
|
||||
if (!scope.isActive) {
|
||||
onComplete()
|
||||
return
|
||||
}
|
||||
|
||||
try {
|
||||
runBlocking(Dispatchers.IO) {
|
||||
scope.launch(Dispatchers.IO) {
|
||||
try {
|
||||
p.setProperty("display-fps-override", fps)
|
||||
Log.d(TAG, "Updated display-fps-override=$fps ($reason)")
|
||||
} catch (e: Exception) {
|
||||
Log.w(TAG, "Failed to update display-fps-override ($reason)", e)
|
||||
} finally {
|
||||
withContext(NonCancellable + Dispatchers.Main) {
|
||||
onComplete()
|
||||
}
|
||||
}
|
||||
Log.d(TAG, "Updated display-fps-override=$fps ($reason)")
|
||||
} catch (e: Exception) {
|
||||
Log.w(TAG, "Failed to update display-fps-override ($reason)", e)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -649,8 +659,11 @@ class MpvPlayerCore(private val activity: Activity) : SurfaceHolder.Callback {
|
||||
|
||||
// Public API
|
||||
|
||||
fun setProperty(name: String, value: String) {
|
||||
if (!isInitialized || disposing) return
|
||||
fun setProperty(name: String, value: String, onComplete: ((Boolean) -> Unit)? = null) {
|
||||
if (!isInitialized || disposing || !scope.isActive) {
|
||||
onComplete?.invoke(false)
|
||||
return
|
||||
}
|
||||
if (name == "pause") {
|
||||
val paused = normalizePauseValue(value)
|
||||
if (paused == true) {
|
||||
@@ -664,6 +677,7 @@ class MpvPlayerCore(private val activity: Activity) : SurfaceHolder.Callback {
|
||||
if (!hasReadyVideoOutput()) {
|
||||
deferredResumeRequested = true
|
||||
Log.d(TAG, "Deferring public resume until video output is ready")
|
||||
onComplete?.invoke(true)
|
||||
return
|
||||
}
|
||||
cachedPaused = false
|
||||
@@ -671,16 +685,30 @@ class MpvPlayerCore(private val activity: Activity) : SurfaceHolder.Callback {
|
||||
Log.d(TAG, "Public pause state updated: paused=false")
|
||||
}
|
||||
}
|
||||
scope.launch {
|
||||
scope.launch(Dispatchers.IO) {
|
||||
var success = false
|
||||
try {
|
||||
player?.setProperty(name, value)
|
||||
success = true
|
||||
} catch (e: Exception) {
|
||||
Log.w(TAG, "setProperty($name) failed", e)
|
||||
} finally {
|
||||
withContext(NonCancellable + Dispatchers.Main) {
|
||||
onComplete?.invoke(success)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun getProperty(name: String): String? {
|
||||
if (Looper.myLooper() == Looper.getMainLooper()) {
|
||||
Log.w(TAG, "Refusing synchronous getProperty($name) on the main thread")
|
||||
return null
|
||||
}
|
||||
return getPropertyBlocking(name)
|
||||
}
|
||||
|
||||
private fun getPropertyBlocking(name: String): String? {
|
||||
if (!isInitialized || disposing) return null
|
||||
return try {
|
||||
runBlocking(Dispatchers.IO) { player?.getString(name) }
|
||||
@@ -689,6 +717,75 @@ class MpvPlayerCore(private val activity: Activity) : SurfaceHolder.Callback {
|
||||
}
|
||||
}
|
||||
|
||||
fun getPropertyAsync(name: String, onResult: (String?) -> Unit) {
|
||||
if (!isInitialized || disposing) {
|
||||
onResult(null)
|
||||
return
|
||||
}
|
||||
|
||||
Thread {
|
||||
val value = getPropertyBlocking(name)
|
||||
activity.runOnUiThread {
|
||||
onResult(if (!disposing && isInitialized) value else null)
|
||||
}
|
||||
}.start()
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns MPV stats in the same key format used by the performance overlay.
|
||||
* This method performs synchronous native property reads and must not be
|
||||
* called on Android's main thread.
|
||||
*/
|
||||
fun getStats(): Map<String, Any?> {
|
||||
if (Looper.myLooper() == Looper.getMainLooper()) {
|
||||
Log.w(TAG, "Refusing synchronous getStats() on the main thread")
|
||||
return mapOf("playerType" to "mpv")
|
||||
}
|
||||
|
||||
val hasVideo = getProperty("video-params/w") != null
|
||||
|
||||
val stats = mutableMapOf<String, Any?>(
|
||||
"playerType" to "mpv",
|
||||
"video-codec" to getProperty("video-codec"),
|
||||
"video-params/w" to getProperty("video-params/w"),
|
||||
"video-params/h" to getProperty("video-params/h"),
|
||||
"videoWidth" to getProperty("dwidth"),
|
||||
"videoHeight" to getProperty("dheight"),
|
||||
"container-fps" to getProperty("container-fps"),
|
||||
"estimated-vf-fps" to getProperty("estimated-vf-fps"),
|
||||
"video-bitrate" to getProperty("video-bitrate"),
|
||||
"hwdec-current" to getProperty("hwdec-current"),
|
||||
"audio-codec-name" to getProperty("audio-codec-name"),
|
||||
"audio-params/samplerate" to getProperty("audio-params/samplerate"),
|
||||
"audio-params/hr-channels" to getProperty("audio-params/hr-channels"),
|
||||
"audio-bitrate" to getProperty("audio-bitrate"),
|
||||
"total-avsync-change" to getProperty("total-avsync-change"),
|
||||
"cache-used" to getProperty("cache-used"),
|
||||
"demuxer-max-bytes" to getProperty("demuxer-max-bytes"),
|
||||
"cache-speed" to getProperty("cache-speed"),
|
||||
"frame-drop-count" to getProperty("frame-drop-count"),
|
||||
"decoder-frame-drop-count" to getProperty("decoder-frame-drop-count"),
|
||||
"demuxer-cache-duration" to getProperty("demuxer-cache-duration")
|
||||
)
|
||||
|
||||
if (hasVideo) {
|
||||
stats["display-fps"] = getProperty("display-fps")
|
||||
stats["video-params/pixelformat"] = getProperty("video-params/pixelformat")
|
||||
stats["video-params/hw-pixelformat"] = getProperty("video-params/hw-pixelformat")
|
||||
stats["video-params/colormatrix"] = getProperty("video-params/colormatrix")
|
||||
stats["video-params/primaries"] = getProperty("video-params/primaries")
|
||||
stats["video-params/gamma"] = getProperty("video-params/gamma")
|
||||
stats["video-params/max-luma"] = getProperty("video-params/max-luma")
|
||||
stats["video-params/min-luma"] = getProperty("video-params/min-luma")
|
||||
stats["video-params/max-cll"] = getProperty("video-params/max-cll")
|
||||
stats["video-params/max-fall"] = getProperty("video-params/max-fall")
|
||||
stats["video-params/aspect-name"] = getProperty("video-params/aspect-name")
|
||||
stats["video-params/rotate"] = getProperty("video-params/rotate")
|
||||
}
|
||||
|
||||
return stats
|
||||
}
|
||||
|
||||
fun observeProperty(name: String, format: String) {
|
||||
val p = player ?: return
|
||||
if (!isInitialized) return
|
||||
@@ -706,15 +803,19 @@ class MpvPlayerCore(private val activity: Activity) : SurfaceHolder.Callback {
|
||||
onComplete?.invoke(false)
|
||||
return
|
||||
}
|
||||
scope.launch {
|
||||
scope.launch(Dispatchers.IO) {
|
||||
var success = false
|
||||
try {
|
||||
player?.command(*args)
|
||||
success = true
|
||||
commandMutex.withLock {
|
||||
player?.command(*args)
|
||||
success = true
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
Log.w(TAG, "command failed", e)
|
||||
} finally {
|
||||
onComplete?.invoke(success)
|
||||
withContext(NonCancellable + Dispatchers.Main) {
|
||||
onComplete?.invoke(success)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -785,6 +886,8 @@ class MpvPlayerCore(private val activity: Activity) : SurfaceHolder.Callback {
|
||||
fps: Float,
|
||||
videoDurationMs: Long,
|
||||
extraDelayMs: Long,
|
||||
videoWidth: Int,
|
||||
videoHeight: Int,
|
||||
onComplete: (switched: Boolean) -> Unit
|
||||
) {
|
||||
val mgr = frameRateManager
|
||||
@@ -792,9 +895,12 @@ class MpvPlayerCore(private val activity: Activity) : SurfaceHolder.Callback {
|
||||
onComplete(false)
|
||||
return
|
||||
}
|
||||
mgr.setVideoFrameRate(fps, videoDurationMs, extraDelayMs) { switched ->
|
||||
player?.let { updateDisplayFpsOverride(it, "frame rate switch, switched=$switched") }
|
||||
onComplete(switched)
|
||||
mgr.setVideoFrameRate(fps, videoDurationMs, extraDelayMs, videoWidth, videoHeight) { switched ->
|
||||
player?.let {
|
||||
updateDisplayFpsOverride(it, "frame rate switch, switched=$switched") {
|
||||
onComplete(switched)
|
||||
}
|
||||
} ?: onComplete(switched)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -813,6 +919,11 @@ class MpvPlayerCore(private val activity: Activity) : SurfaceHolder.Callback {
|
||||
check(Looper.myLooper() == Looper.getMainLooper())
|
||||
Log.d(TAG, "Disposing")
|
||||
|
||||
surfaceContainer?.let { container ->
|
||||
container.visibility = View.INVISIBLE
|
||||
Log.d(TAG, "Hiding surface container during dispose")
|
||||
}
|
||||
|
||||
handler.removeCallbacksAndMessages(null)
|
||||
|
||||
// Clean up frame rate and audio focus.
|
||||
|
||||
@@ -110,6 +110,7 @@ class MpvPlayerPlugin :
|
||||
"dispose" -> handleDispose(result)
|
||||
"setProperty" -> handleSetProperty(call, result)
|
||||
"getProperty" -> handleGetProperty(call, result)
|
||||
"getStats" -> handleGetStats(result)
|
||||
"observeProperty" -> handleObserveProperty(call, result)
|
||||
"command" -> handleCommand(call, result)
|
||||
"setVisible" -> handleSetVisible(call, result)
|
||||
@@ -232,8 +233,15 @@ class MpvPlayerPlugin :
|
||||
return
|
||||
}
|
||||
|
||||
playerCore?.setProperty(name, value)
|
||||
result.success(null)
|
||||
val core = playerCore
|
||||
if (core == null) {
|
||||
result.success(null)
|
||||
return
|
||||
}
|
||||
|
||||
core.setProperty(name, value) {
|
||||
result.success(null)
|
||||
}
|
||||
}
|
||||
|
||||
private fun handleGetProperty(call: MethodCall, result: MethodChannel.Result) {
|
||||
@@ -244,8 +252,41 @@ class MpvPlayerPlugin :
|
||||
return
|
||||
}
|
||||
|
||||
val value = playerCore?.getProperty(name)
|
||||
result.success(value)
|
||||
val core = playerCore
|
||||
if (core == null) {
|
||||
result.success(null)
|
||||
return
|
||||
}
|
||||
|
||||
val gen = sessionGeneration
|
||||
core.getPropertyAsync(name) { value ->
|
||||
if (gen != sessionGeneration || playerCore !== core) {
|
||||
result.success(null)
|
||||
} else {
|
||||
result.success(value)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun handleGetStats(result: MethodChannel.Result) {
|
||||
val currentActivity = activity
|
||||
val core = playerCore
|
||||
if (currentActivity == null || core == null) {
|
||||
result.success(mapOf("playerType" to "mpv"))
|
||||
return
|
||||
}
|
||||
|
||||
val gen = sessionGeneration
|
||||
Thread {
|
||||
val stats = core.getStats()
|
||||
currentActivity.runOnUiThread {
|
||||
if (gen != sessionGeneration || playerCore !== core) {
|
||||
result.success(mapOf("playerType" to "mpv"))
|
||||
} else {
|
||||
result.success(stats)
|
||||
}
|
||||
}
|
||||
}.start()
|
||||
}
|
||||
|
||||
private fun handleObserveProperty(call: MethodCall, result: MethodChannel.Result) {
|
||||
@@ -302,14 +343,16 @@ class MpvPlayerPlugin :
|
||||
val fps = call.argument<Double>("fps")?.toFloat() ?: 0f
|
||||
val duration = call.argument<Number>("duration")?.toLong() ?: 0L
|
||||
val extraDelayMs = call.argument<Number>("extraDelayMs")?.toLong() ?: 0L
|
||||
val videoWidth = call.argument<Number>("videoWidth")?.toInt() ?: 0
|
||||
val videoHeight = call.argument<Number>("videoHeight")?.toInt() ?: 0
|
||||
|
||||
Log.d(TAG, "setVideoFrameRate: fps=$fps, duration=$duration, extraDelayMs=$extraDelayMs")
|
||||
Log.d(TAG, "setVideoFrameRate: fps=$fps, duration=$duration, extraDelayMs=$extraDelayMs, video=${videoWidth}x$videoHeight")
|
||||
val core = playerCore
|
||||
if (core == null) {
|
||||
result.success(false)
|
||||
return
|
||||
}
|
||||
core.setVideoFrameRate(fps, duration, extraDelayMs) { switched ->
|
||||
core.setVideoFrameRate(fps, duration, extraDelayMs, videoWidth, videoHeight) { switched ->
|
||||
result.success(switched)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,6 +37,8 @@ class FrameRateManager(
|
||||
)
|
||||
|
||||
private var currentVideoFps: Float = 0f
|
||||
private var currentVideoWidth: Int = 0
|
||||
private var currentVideoHeight: Int = 0
|
||||
private var displayListener: DisplayManager.DisplayListener? = null
|
||||
private var pendingSettleRunnable: Runnable? = null
|
||||
private var watchdogRunnable: Runnable? = null
|
||||
@@ -57,9 +59,13 @@ class FrameRateManager(
|
||||
fps: Float,
|
||||
videoDurationMs: Long,
|
||||
extraDelayMs: Long,
|
||||
videoWidth: Int = 0,
|
||||
videoHeight: Int = 0,
|
||||
onComplete: (switched: Boolean) -> Unit
|
||||
) {
|
||||
currentVideoFps = fps
|
||||
currentVideoWidth = videoWidth
|
||||
currentVideoHeight = videoHeight
|
||||
if (fps <= 0f) {
|
||||
Log.d(TAG, "setVideoFrameRate: Invalid fps ($fps), skipping")
|
||||
onComplete(false)
|
||||
@@ -68,7 +74,7 @@ class FrameRateManager(
|
||||
|
||||
log(
|
||||
"request fps=$fps, duration=${videoDurationMs}ms, extraDelayMs=$extraDelayMs, " +
|
||||
"API=${Build.VERSION.SDK_INT}, currentMode=${currentModeDescription()}"
|
||||
"video=${videoWidth}x$videoHeight, API=${Build.VERSION.SDK_INT}, currentMode=${currentModeDescription()}"
|
||||
)
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
||||
@@ -208,17 +214,42 @@ class FrameRateManager(
|
||||
private fun describeSupportedModes(modes: Array<Display.Mode>): String = modes.joinToString(prefix = "[", postfix = "]") { describeMode(it) }
|
||||
|
||||
@RequiresApi(Build.VERSION_CODES.M)
|
||||
private fun findBestModeMatch(fps: Float, currentMode: Display.Mode, supportedModes: Array<Display.Mode>): DisplayModeCandidate? = supportedModes.asSequence()
|
||||
.filter { mode ->
|
||||
mode.physicalHeight == currentMode.physicalHeight &&
|
||||
mode.physicalWidth == currentMode.physicalWidth
|
||||
}
|
||||
.mapNotNull { mode -> matchRefreshRate(mode.refreshRate, fps)?.let { DisplayModeCandidate(mode, it) } }
|
||||
.minWithOrNull(
|
||||
compareBy<DisplayModeCandidate> { it.match.priority }
|
||||
.thenBy { it.match.error }
|
||||
.thenBy { abs(it.mode.refreshRate - currentMode.refreshRate) }
|
||||
)
|
||||
private fun findBestModeMatch(
|
||||
fps: Float,
|
||||
currentMode: Display.Mode,
|
||||
supportedModes: Array<Display.Mode>,
|
||||
videoWidth: Int,
|
||||
videoHeight: Int
|
||||
): DisplayModeCandidate? {
|
||||
// Tier 1 — a matching-refresh mode at the CURRENT resolution: a refresh-only
|
||||
// switch, the least disruptive (no resolution/HDMI renegotiation).
|
||||
supportedModes.asSequence()
|
||||
.filter { it.physicalHeight == currentMode.physicalHeight && it.physicalWidth == currentMode.physicalWidth }
|
||||
.mapNotNull { mode -> matchRefreshRate(mode.refreshRate, fps)?.let { DisplayModeCandidate(mode, it) } }
|
||||
.minWithOrNull(
|
||||
compareBy<DisplayModeCandidate> { it.match.priority }
|
||||
.thenBy { it.match.error }
|
||||
.thenBy { abs(it.mode.refreshRate - currentMode.refreshRate) }
|
||||
)
|
||||
?.let { return it }
|
||||
|
||||
// Tier 2 — no same-resolution match (e.g. a 4K panel with no 4K@24 mode, but a
|
||||
// 1080p@23.976 mode for 1080p content). Allow a resolution change, but never one
|
||||
// that downscales the video below its native size (trading detail for cadence).
|
||||
// Requires known video dimensions; without them keep Tier-1-only behaviour.
|
||||
if (videoWidth <= 0 || videoHeight <= 0) return null
|
||||
val currentArea = currentMode.physicalWidth.toLong() * currentMode.physicalHeight
|
||||
return supportedModes.asSequence()
|
||||
.filter { it.physicalWidth >= videoWidth && it.physicalHeight >= videoHeight }
|
||||
.mapNotNull { mode -> matchRefreshRate(mode.refreshRate, fps)?.let { DisplayModeCandidate(mode, it) } }
|
||||
.minWithOrNull(
|
||||
// Prefer the resolution closest to the panel's current one (least change,
|
||||
// keeps panel-native res when a high-res match exists), then refresh match.
|
||||
compareBy<DisplayModeCandidate> { abs(it.mode.physicalWidth.toLong() * it.mode.physicalHeight - currentArea) }
|
||||
.thenBy { it.match.priority }
|
||||
.thenBy { it.match.error }
|
||||
)
|
||||
}
|
||||
|
||||
@RequiresApi(Build.VERSION_CODES.M)
|
||||
private fun setDisplayMode(fps: Float, extraDelayMs: Long, onComplete: (switched: Boolean) -> Unit) {
|
||||
@@ -239,9 +270,12 @@ class FrameRateManager(
|
||||
val currentMode = display.mode
|
||||
log("supported modes=${describeSupportedModes(supportedModes)}")
|
||||
|
||||
val modeMatch = findBestModeMatch(fps, currentMode, supportedModes)
|
||||
val modeMatch = findBestModeMatch(fps, currentMode, supportedModes, currentVideoWidth, currentVideoHeight)
|
||||
if (modeMatch == null) {
|
||||
log("no matching display mode for ${fps}fps at ${currentMode.physicalWidth}x${currentMode.physicalHeight}")
|
||||
log(
|
||||
"no matching display mode for ${fps}fps at ${currentMode.physicalWidth}x${currentMode.physicalHeight} " +
|
||||
"(video=${currentVideoWidth}x$currentVideoHeight)"
|
||||
)
|
||||
onComplete(false)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Modify this file to customize your launch splash screen -->
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@android:color/white" />
|
||||
<item android:drawable="@color/splash_background" />
|
||||
|
||||
<!-- You can insert your own image assets here -->
|
||||
<!-- <item>
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- TV (Android TV / Google TV / Fire TV) launch + window background.
|
||||
The television UI-mode qualifier outranks night/notnight, so this wins
|
||||
even on TVs that report notnight (most do) where values/ would resolve
|
||||
the near-white #F7F7F8. Black matches the OLED default theme on TV. -->
|
||||
<color name="splash_background">#000000</color>
|
||||
</resources>
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.edde746.plezy.exoplayer
|
||||
|
||||
import androidx.media3.common.MimeTypes
|
||||
import org.junit.Assert.assertFalse
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Test
|
||||
|
||||
class AudioOutputPolicyTest {
|
||||
|
||||
@Test
|
||||
fun passthroughDisabledBlocksBitstreamFormats() {
|
||||
val bitstreamFormats = listOf(
|
||||
"audio/ac3",
|
||||
"audio/eac3",
|
||||
"audio/eac3-joc",
|
||||
"audio/ac4",
|
||||
"audio/vnd.dts",
|
||||
"audio/vnd.dts.hd",
|
||||
"audio/vnd.dts.uhd",
|
||||
MimeTypes.AUDIO_TRUEHD
|
||||
)
|
||||
|
||||
for (mimeType in bitstreamFormats) {
|
||||
assertTrue(mimeType, shouldBlockDirectOutputForPassthrough(mimeType, audioPassthroughEnabled = false))
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
fun passthroughEnabledAllowsBitstreamFormats() {
|
||||
assertFalse(shouldBlockDirectOutputForPassthrough("audio/ac3", audioPassthroughEnabled = true))
|
||||
assertFalse(shouldBlockDirectOutputForPassthrough(MimeTypes.AUDIO_TRUEHD, audioPassthroughEnabled = true))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun passthroughDisabledLeavesDecodedFormatsAvailable() {
|
||||
val decodedFormats = listOf(
|
||||
MimeTypes.AUDIO_AAC,
|
||||
MimeTypes.AUDIO_OPUS,
|
||||
MimeTypes.AUDIO_RAW,
|
||||
MimeTypes.AUDIO_FLAC
|
||||
)
|
||||
|
||||
for (mimeType in decodedFormats) {
|
||||
assertFalse(mimeType, shouldBlockDirectOutputForPassthrough(mimeType, audioPassthroughEnabled = false))
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,313 @@
|
||||
package com.edde746.plezy.exoplayer
|
||||
|
||||
import java.nio.ByteBuffer
|
||||
import org.junit.Assert.assertArrayEquals
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Test
|
||||
|
||||
class DvBitstreamSanitizerTest {
|
||||
|
||||
private val sanitizer = DvBitstreamSanitizer()
|
||||
|
||||
// --- HDR10+ SEI stripping (native DV codec path) ---
|
||||
|
||||
@Test
|
||||
fun stripsHdr10PlusPrefixSeiBetweenVclNals() {
|
||||
val vcl1 = annexBNal(1, byteArrayOf(0x01, 0x02))
|
||||
val vcl2 = annexBNal(1, byteArrayOf(0x03, 0x04))
|
||||
val buffer = bufferOf(vcl1, hdr10PlusSei(), vcl2)
|
||||
val originalLimit = buffer.limit()
|
||||
|
||||
sanitizer.sanitize(buffer, stripHdr10PlusSei = true, stripDvRpu = false)
|
||||
|
||||
assertArrayEquals(concat(vcl1, vcl2), remainingBytes(buffer))
|
||||
assertTrue(buffer.limit() < originalLimit)
|
||||
assertEquals(0, buffer.position())
|
||||
}
|
||||
|
||||
@Test
|
||||
fun stripsSuffixSei() {
|
||||
val vcl = annexBNal(1, byteArrayOf(0x01))
|
||||
val suffixSei = annexBNal(40, hdr10PlusSeiPayload())
|
||||
val buffer = bufferOf(vcl, suffixSei)
|
||||
|
||||
sanitizer.sanitize(buffer, stripHdr10PlusSei = true, stripDvRpu = false)
|
||||
|
||||
assertArrayEquals(vcl, remainingBytes(buffer))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun handles3ByteStartCodes() {
|
||||
val vcl1 = annexBNal(1, byteArrayOf(0x01, 0x02), startCodeLen = 3)
|
||||
val sei = annexBNal(39, hdr10PlusSeiPayload(), startCodeLen = 3)
|
||||
val vcl2 = annexBNal(1, byteArrayOf(0x03), startCodeLen = 3)
|
||||
val buffer = bufferOf(vcl1, sei, vcl2)
|
||||
|
||||
sanitizer.sanitize(buffer, stripHdr10PlusSei = true, stripDvRpu = false)
|
||||
|
||||
assertArrayEquals(concat(vcl1, vcl2), remainingBytes(buffer))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun preservesNonHdr10PlusT35Sei() {
|
||||
// Same T.35 layout but wrong country code (0x00 instead of 0xB5).
|
||||
val sei = annexBNal(
|
||||
39,
|
||||
byteArrayOf(0x04, 0x07, 0x00, 0x00, 0x3C, 0x00, 0x01, 0x04, 0x00)
|
||||
)
|
||||
val buffer = bufferOf(annexBNal(1, byteArrayOf(0x01)), sei, annexBNal(1, byteArrayOf(0x02)))
|
||||
val original = remainingBytes(buffer)
|
||||
|
||||
sanitizer.sanitize(buffer, stripHdr10PlusSei = true, stripDvRpu = false)
|
||||
|
||||
assertArrayEquals(original, remainingBytes(buffer))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun noOpWithoutSeiNals() {
|
||||
val buffer = bufferOf(annexBNal(1, byteArrayOf(0x01, 0x02)), annexBNal(1, byteArrayOf(0x03)))
|
||||
val original = remainingBytes(buffer)
|
||||
|
||||
sanitizer.sanitize(buffer, stripHdr10PlusSei = true, stripDvRpu = true)
|
||||
|
||||
assertArrayEquals(original, remainingBytes(buffer))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun keepsTruncatedSei() {
|
||||
// Declares payload size 7 but the identifier bytes are cut short.
|
||||
val truncated = annexBNal(39, byteArrayOf(0x04, 0x07, 0xB5.toByte(), 0x00, 0x3C))
|
||||
val buffer = bufferOf(annexBNal(1, byteArrayOf(0x01)), truncated)
|
||||
val original = remainingBytes(buffer)
|
||||
|
||||
sanitizer.sanitize(buffer, stripHdr10PlusSei = true, stripDvRpu = false)
|
||||
|
||||
assertArrayEquals(original, remainingBytes(buffer))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun keepsHdr10PlusSeiWhenFlagOff() {
|
||||
val buffer = bufferOf(annexBNal(1, byteArrayOf(0x01)), hdr10PlusSei())
|
||||
val original = remainingBytes(buffer)
|
||||
|
||||
sanitizer.sanitize(buffer, stripHdr10PlusSei = false, stripDvRpu = false)
|
||||
|
||||
assertArrayEquals(original, remainingBytes(buffer))
|
||||
}
|
||||
|
||||
// --- DV RPU/EL stripping (HEVC fallback path) ---
|
||||
|
||||
@Test
|
||||
fun rpuModeStripsRpuAndElButKeepsHdr10PlusSei() {
|
||||
val vcl = annexBNal(1, byteArrayOf(0x01))
|
||||
val rpu = annexBNal(62, byteArrayOf(0x19, 0x08))
|
||||
val el = annexBNal(63, byteArrayOf(0x42))
|
||||
val sei = hdr10PlusSei()
|
||||
val buffer = bufferOf(vcl, rpu, sei, el)
|
||||
|
||||
sanitizer.sanitize(buffer, stripHdr10PlusSei = false, stripDvRpu = true)
|
||||
|
||||
assertArrayEquals(concat(vcl, sei), remainingBytes(buffer))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun bothFlagsStripBothMetadataKinds() {
|
||||
val vcl1 = annexBNal(19, byteArrayOf(0x00)) // IDR_W_RADL
|
||||
val vcl2 = annexBNal(1, byteArrayOf(0x05))
|
||||
val buffer = bufferOf(vcl1, annexBNal(62, byteArrayOf(0x19)), hdr10PlusSei(), vcl2)
|
||||
|
||||
sanitizer.sanitize(buffer, stripHdr10PlusSei = true, stripDvRpu = true)
|
||||
|
||||
assertArrayEquals(concat(vcl1, vcl2), remainingBytes(buffer))
|
||||
}
|
||||
|
||||
// --- Buffer handling ---
|
||||
|
||||
@Test
|
||||
fun respectsPositionAndRestoresIt() {
|
||||
val prefix = byteArrayOf(0xAA.toByte(), 0xBB.toByte())
|
||||
val vcl = annexBNal(1, byteArrayOf(0x01))
|
||||
val content = concat(prefix, vcl, hdr10PlusSei())
|
||||
val buffer = ByteBuffer.wrap(content.copyOf())
|
||||
buffer.position(prefix.size)
|
||||
|
||||
sanitizer.sanitize(buffer, stripHdr10PlusSei = true, stripDvRpu = false)
|
||||
|
||||
assertEquals(prefix.size, buffer.position())
|
||||
assertArrayEquals(vcl, remainingBytes(buffer))
|
||||
// Bytes before the position are untouched.
|
||||
assertEquals(0xAA.toByte(), buffer.get(0))
|
||||
assertEquals(0xBB.toByte(), buffer.get(1))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun worksOnDirectBuffers() {
|
||||
val vcl = annexBNal(1, byteArrayOf(0x01, 0x02))
|
||||
val buffer = directBufferOf(vcl, hdr10PlusSei())
|
||||
|
||||
sanitizer.sanitize(buffer, stripHdr10PlusSei = true, stripDvRpu = false)
|
||||
|
||||
assertArrayEquals(vcl, remainingBytes(buffer))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun emptyBufferIsNoOp() {
|
||||
val buffer = ByteBuffer.allocate(0)
|
||||
|
||||
sanitizer.sanitize(buffer, stripHdr10PlusSei = true, stripDvRpu = true)
|
||||
|
||||
assertEquals(0, buffer.position())
|
||||
assertEquals(0, buffer.limit())
|
||||
}
|
||||
|
||||
@Test
|
||||
fun stripsOnDirectBufferWithNonZeroPosition() {
|
||||
val vcl1 = annexBNal(1, byteArrayOf(0x01, 0x02))
|
||||
val vcl2 = annexBNal(1, byteArrayOf(0x03))
|
||||
val buffer = directBufferOf(byteArrayOf(0xAA.toByte(), 0xBB.toByte()), vcl1, hdr10PlusSei(), vcl2)
|
||||
buffer.position(2)
|
||||
|
||||
val stripped = sanitizer.sanitize(buffer, stripHdr10PlusSei = true, stripDvRpu = false)
|
||||
|
||||
assertEquals(1, stripped)
|
||||
assertEquals(2, buffer.position())
|
||||
assertArrayEquals(concat(vcl1, vcl2), remainingBytes(buffer))
|
||||
// Bytes before the position are untouched.
|
||||
assertEquals(0xAA.toByte(), buffer.get(0))
|
||||
assertEquals(0xBB.toByte(), buffer.get(1))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun noStripLeavesDirectBufferStateUntouched() {
|
||||
val vcl1 = annexBNal(1, byteArrayOf(0x01, 0x02))
|
||||
val vcl2 = annexBNal(1, byteArrayOf(0x03))
|
||||
val buffer = directBufferOf(vcl1, vcl2)
|
||||
val originalLimit = buffer.limit()
|
||||
|
||||
val stripped = sanitizer.sanitize(buffer, stripHdr10PlusSei = true, stripDvRpu = true)
|
||||
|
||||
assertEquals(0, stripped)
|
||||
assertEquals(0, buffer.position())
|
||||
assertEquals(originalLimit, buffer.limit())
|
||||
assertArrayEquals(concat(vcl1, vcl2), remainingBytes(buffer))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun stripsTrailingRpuWithZeroByteTailWriteBack() {
|
||||
val vcl1 = annexBNal(1, byteArrayOf(0x01, 0x02))
|
||||
val vcl2 = annexBNal(1, byteArrayOf(0x03))
|
||||
val rpu = annexBNal(62, byteArrayOf(0x19, 0x08))
|
||||
val buffer = directBufferOf(vcl1, vcl2, rpu)
|
||||
val originalLimit = buffer.limit()
|
||||
|
||||
val stripped = sanitizer.sanitize(buffer, stripHdr10PlusSei = false, stripDvRpu = true)
|
||||
|
||||
assertEquals(1, stripped)
|
||||
assertEquals(originalLimit - rpu.size, buffer.limit())
|
||||
assertArrayEquals(concat(vcl1, vcl2), remainingBytes(buffer))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun growsScratchForLargeSamples() {
|
||||
// Exceeds the initial 256KB scratch and one doubling; non-zero filler so no
|
||||
// accidental start codes appear in the payloads.
|
||||
val vcl1 = annexBNal(1, ByteArray(800_000) { 0xAB.toByte() })
|
||||
val vcl2 = annexBNal(1, ByteArray(700_000) { 0xCD.toByte() })
|
||||
val buffer = bufferOf(vcl1, hdr10PlusSei(), vcl2)
|
||||
|
||||
val stripped = sanitizer.sanitize(buffer, stripHdr10PlusSei = true, stripDvRpu = false)
|
||||
|
||||
assertEquals(1, stripped)
|
||||
assertArrayEquals(concat(vcl1, vcl2), remainingBytes(buffer))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun reusesSanitizerAcrossSequentialBuffers() {
|
||||
val vcl1 = annexBNal(1, byteArrayOf(0x01, 0x02))
|
||||
val vcl2 = annexBNal(1, byteArrayOf(0x03, 0x04))
|
||||
|
||||
val first = bufferOf(vcl1, hdr10PlusSei(), vcl2)
|
||||
assertEquals(1, sanitizer.sanitize(first, stripHdr10PlusSei = true, stripDvRpu = false))
|
||||
assertArrayEquals(concat(vcl1, vcl2), remainingBytes(first))
|
||||
|
||||
val second = bufferOf(vcl1, vcl2)
|
||||
assertEquals(0, sanitizer.sanitize(second, stripHdr10PlusSei = true, stripDvRpu = false))
|
||||
assertArrayEquals(concat(vcl1, vcl2), remainingBytes(second))
|
||||
|
||||
val third = bufferOf(hdr10PlusSei(), vcl1, annexBNal(62, byteArrayOf(0x19)), vcl2, hdr10PlusSei())
|
||||
assertEquals(3, sanitizer.sanitize(third, stripHdr10PlusSei = true, stripDvRpu = true))
|
||||
assertArrayEquals(concat(vcl1, vcl2), remainingBytes(third))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun keepsBufferWithoutStartCodes() {
|
||||
val content = byteArrayOf(0x12, 0x34, 0x56, 0x78)
|
||||
val buffer = ByteBuffer.wrap(content.copyOf())
|
||||
|
||||
val stripped = sanitizer.sanitize(buffer, stripHdr10PlusSei = true, stripDvRpu = true)
|
||||
|
||||
assertEquals(0, stripped)
|
||||
assertEquals(0, buffer.position())
|
||||
assertEquals(content.size, buffer.limit())
|
||||
assertArrayEquals(content, remainingBytes(buffer))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun stripsMultipleSeisInOneAccessUnit() {
|
||||
val vcl1 = annexBNal(1, byteArrayOf(0x01, 0x02))
|
||||
val vcl2 = annexBNal(1, byteArrayOf(0x03))
|
||||
val suffixSei = annexBNal(40, hdr10PlusSeiPayload())
|
||||
val buffer = bufferOf(vcl1, hdr10PlusSei(), vcl2, suffixSei)
|
||||
|
||||
val stripped = sanitizer.sanitize(buffer, stripHdr10PlusSei = true, stripDvRpu = false)
|
||||
|
||||
assertEquals(2, stripped)
|
||||
assertArrayEquals(concat(vcl1, vcl2), remainingBytes(buffer))
|
||||
}
|
||||
|
||||
// --- Helpers ---
|
||||
|
||||
/** Builds an HEVC NAL unit: start code + 2-byte NAL header encoding [nalUnitType] + payload. */
|
||||
private fun annexBNal(nalUnitType: Int, payload: ByteArray, startCodeLen: Int = 4): ByteArray {
|
||||
val startCode = if (startCodeLen == 3) byteArrayOf(0, 0, 1) else byteArrayOf(0, 0, 0, 1)
|
||||
val header = byteArrayOf(((nalUnitType shl 1) and 0x7E).toByte(), 0x01)
|
||||
return concat(startCode, header, payload)
|
||||
}
|
||||
|
||||
/**
|
||||
* SEI payload: type 4 (user_data_registered_itu_t_t35), size 7, then the HDR10+
|
||||
* identifiers — country 0xB5, provider 0x003C, oriented code 0x0001, app id 4, version 0 —
|
||||
* closed by the rbsp_trailing_bits stop byte real SEI NALs always end with (a trailing 0x00
|
||||
* would otherwise be ambiguous against a following 3-byte start code).
|
||||
*/
|
||||
private fun hdr10PlusSeiPayload(): ByteArray = byteArrayOf(0x04, 0x07, 0xB5.toByte(), 0x00, 0x3C, 0x00, 0x01, 0x04, 0x00, 0x80.toByte())
|
||||
|
||||
private fun hdr10PlusSei(): ByteArray = annexBNal(39, hdr10PlusSeiPayload())
|
||||
|
||||
private fun concat(vararg parts: ByteArray): ByteArray {
|
||||
val result = ByteArray(parts.sumOf { it.size })
|
||||
var offset = 0
|
||||
for (part in parts) {
|
||||
part.copyInto(result, offset)
|
||||
offset += part.size
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
private fun bufferOf(vararg parts: ByteArray): ByteBuffer = ByteBuffer.wrap(concat(*parts))
|
||||
|
||||
private fun directBufferOf(vararg parts: ByteArray): ByteBuffer {
|
||||
val content = concat(*parts)
|
||||
val buffer = ByteBuffer.allocateDirect(content.size)
|
||||
buffer.put(content)
|
||||
buffer.flip()
|
||||
return buffer
|
||||
}
|
||||
|
||||
private fun remainingBytes(buffer: ByteBuffer): ByteArray {
|
||||
val copy = ByteArray(buffer.remaining())
|
||||
buffer.duplicate().get(copy)
|
||||
return copy
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
// Static-linking the native core here avoids shipping a separate libass.so with
|
||||
// different merge rules from the app.
|
||||
plugins {
|
||||
id("com.android.library")
|
||||
id("org.jetbrains.kotlin.android")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.edde746.plezy.libass"
|
||||
compileSdk = 36
|
||||
// Matches flutter.ndkVersion so only one NDK is provisioned. This module's
|
||||
// CMake build (-DANDROID_STL=c++_shared) contributes NDK 28.2's
|
||||
// libc++_shared.so to packaging, but that copy is NOT what ships: the app
|
||||
// packages the libmpv AAR's newer copy with top merge priority (see
|
||||
// app/build.gradle.kts packaging { jniLibs } + sourceSets).
|
||||
ndkVersion = "28.2.13676358"
|
||||
|
||||
defaultConfig {
|
||||
minSdk = 21
|
||||
consumerProguardFiles("consumer-rules.pro")
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
// HarfBuzz pulls in C++, so the JNI library must use the shared STL that
|
||||
// the app already pins through libmpv.
|
||||
// A shared cache keeps per-ABI CMake runs from redownloading libass.
|
||||
arguments += listOf(
|
||||
"-DANDROID_STL=c++_shared",
|
||||
"-DLIBASS_CACHE_DIR=${layout.buildDirectory.get().asFile}/libass-prebuilt"
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_11
|
||||
targetCompatibility = JavaVersion.VERSION_11
|
||||
}
|
||||
|
||||
kotlinOptions {
|
||||
jvmTarget = JavaVersion.VERSION_11.toString()
|
||||
}
|
||||
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
path = file("src/main/cpp/CMakeLists.txt")
|
||||
version = "3.22.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("androidx.annotation:annotation:1.9.1")
|
||||
implementation("androidx.annotation:annotation-experimental:1.5.1")
|
||||
implementation("androidx.media3:media3-exoplayer:1.9.2")
|
||||
implementation("androidx.media3:media3-ui:1.9.2")
|
||||
|
||||
testImplementation("junit:junit:4.13.2")
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
# Constructed from JNI via FindClass/NewObject (AssKt.c).
|
||||
-keep class com.edde746.plezy.libass.AssAtlasFrame { *; }
|
||||
# JNI exports bind by name (Java_com_edde746_plezy_libass_*); keep the names stable.
|
||||
-keepclasseswithmembernames class com.edde746.plezy.libass.* {
|
||||
native <methods>;
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
</manifest>
|
||||
@@ -0,0 +1,643 @@
|
||||
// JNI bindings for libass. Exports use standard Java_<package>_<Class>_<method>
|
||||
// naming so no RegisterNatives/JNI_OnLoad registration is needed.
|
||||
#include <EGL/egl.h>
|
||||
#include <EGL/eglext.h>
|
||||
#include <android/log.h>
|
||||
#include <jni.h>
|
||||
#include <limits.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
#include <time.h>
|
||||
|
||||
static inline long long nowMs(void) {
|
||||
struct timespec ts;
|
||||
clock_gettime(CLOCK_MONOTONIC, &ts);
|
||||
return (long long)ts.tv_sec * 1000 + ts.tv_nsec / 1000000;
|
||||
}
|
||||
|
||||
#include "ass/ass.h"
|
||||
|
||||
#define LOG_TAG "SubtitleRenderer"
|
||||
|
||||
static void assMessageCallback(int level, const char* fmt, va_list args, void* data) {
|
||||
if (level > 4) return;
|
||||
|
||||
if (level >= 2) {
|
||||
__android_log_vprint(ANDROID_LOG_WARN, LOG_TAG, fmt, args);
|
||||
} else {
|
||||
__android_log_vprint(ANDROID_LOG_ERROR, LOG_TAG, fmt, args);
|
||||
}
|
||||
}
|
||||
|
||||
// --- Ass (library) ---
|
||||
|
||||
JNIEXPORT jlong JNICALL Java_com_edde746_plezy_libass_Ass_nativeAssInit(JNIEnv* env, jclass clazz) {
|
||||
ASS_Library* assLibrary = ass_library_init();
|
||||
ass_set_message_cb(assLibrary, assMessageCallback, NULL);
|
||||
ass_set_extract_fonts(assLibrary, 1);
|
||||
return (jlong)assLibrary;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_com_edde746_plezy_libass_Ass_nativeAssAddFont(
|
||||
JNIEnv* env, jclass clazz, jlong ass, jstring name, jbyteArray byteArray) {
|
||||
jsize length = (*env)->GetArrayLength(env, byteArray);
|
||||
jbyte* bytePtr = (*env)->GetByteArrayElements(env, byteArray, NULL);
|
||||
if (bytePtr == NULL) {
|
||||
return;
|
||||
}
|
||||
const char* cName = (*env)->GetStringUTFChars(env, name, NULL);
|
||||
ass_add_font(((ASS_Library*)ass), cName, (char*)bytePtr, length);
|
||||
(*env)->ReleaseByteArrayElements(env, byteArray, bytePtr, 0);
|
||||
if (cName != NULL) {
|
||||
(*env)->ReleaseStringUTFChars(env, name, cName);
|
||||
}
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_com_edde746_plezy_libass_Ass_nativeAssDeinit(JNIEnv* env, jclass clazz, jlong ass) {
|
||||
if (ass) {
|
||||
ass_library_done((ASS_Library*)ass);
|
||||
}
|
||||
}
|
||||
|
||||
// --- AssTrack ---
|
||||
|
||||
JNIEXPORT jlong JNICALL
|
||||
Java_com_edde746_plezy_libass_AssTrack_nativeAssTrackInit(JNIEnv* env, jclass clazz, jlong ass) {
|
||||
ASS_Track* track = ass_new_track((ASS_Library*)ass);
|
||||
if (track != NULL) {
|
||||
if (ass_track_set_feature(track, ASS_FEATURE_FAST_BLUR, 1) != 0) {
|
||||
__android_log_print(ANDROID_LOG_WARN, LOG_TAG, "ASS_FEATURE_FAST_BLUR unavailable in libass build");
|
||||
}
|
||||
}
|
||||
return (jlong)track;
|
||||
}
|
||||
|
||||
// Shared body of readBuffer/readChunk: pins the byte array and feeds libass.
|
||||
// chunked != 0 routes to ass_process_chunk (timed dialogue), else ass_process_data.
|
||||
static void processTrackBytes(
|
||||
JNIEnv* env, jlong track, jbyteArray buffer, jint offset, jint length, jlong start, jlong duration, int chunked) {
|
||||
if (!track) return;
|
||||
jbyte* elements = (*env)->GetByteArrayElements(env, buffer, NULL);
|
||||
if (elements == NULL) {
|
||||
return;
|
||||
}
|
||||
if (chunked) {
|
||||
ass_process_chunk((ASS_Track*)track, (char*)(elements + offset), length, start, duration);
|
||||
} else {
|
||||
ass_process_data((ASS_Track*)track, (char*)(elements + offset), length);
|
||||
}
|
||||
(*env)->ReleaseByteArrayElements(env, buffer, elements, 0);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_com_edde746_plezy_libass_AssTrack_nativeAssTrackReadBuffer(
|
||||
JNIEnv* env, jclass clazz, jlong track, jbyteArray buffer, jint offset, jint length) {
|
||||
processTrackBytes(env, track, buffer, offset, length, 0, 0, 0);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_com_edde746_plezy_libass_AssTrack_nativeAssTrackReadChunk(
|
||||
JNIEnv* env, jclass clazz, jlong track, jlong start, jlong duration, jbyteArray buffer, jint offset, jint length) {
|
||||
processTrackBytes(env, track, buffer, offset, length, start, duration, 1);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_com_edde746_plezy_libass_AssTrack_nativeAssTrackDeinit(JNIEnv* env, jclass clazz, jlong track) {
|
||||
if (!track) return;
|
||||
ass_free_track((ASS_Track*)track);
|
||||
}
|
||||
|
||||
// Earliest event Start strictly after afterMs, or -1. Lets the render pipeline
|
||||
// pre-render (cache-warm) the next upcoming event during idle stretches so
|
||||
// heavy typesetting doesn't pay its cache-cold rasterization at appearance.
|
||||
JNIEXPORT jlong JNICALL Java_com_edde746_plezy_libass_AssTrack_nativeAssTrackNextEventStart(
|
||||
JNIEnv* env, jclass clazz, jlong track, jlong afterMs) {
|
||||
if (!track) return -1;
|
||||
ASS_Track* t = (ASS_Track*)track;
|
||||
long long best = -1;
|
||||
for (int i = 0; i < t->n_events; i++) {
|
||||
const long long start = t->events[i].Start;
|
||||
if (start > afterMs && (best < 0 || start < best)) best = start;
|
||||
}
|
||||
return (jlong)best;
|
||||
}
|
||||
|
||||
// Earliest visible-content boundary (event Start OR End) strictly after afterMs,
|
||||
// or -1. A cache-warming prefetch is only invisible while no boundary passes:
|
||||
// the render pipeline uses this to ensure nothing on screen is due to change
|
||||
// before the event it is about to warm.
|
||||
JNIEXPORT jlong JNICALL Java_com_edde746_plezy_libass_AssTrack_nativeAssTrackNextEventChange(
|
||||
JNIEnv* env, jclass clazz, jlong track, jlong afterMs) {
|
||||
if (!track) return -1;
|
||||
ASS_Track* t = (ASS_Track*)track;
|
||||
long long best = -1;
|
||||
for (int i = 0; i < t->n_events; i++) {
|
||||
const long long start = t->events[i].Start;
|
||||
const long long end = start + t->events[i].Duration;
|
||||
if (start > afterMs && (best < 0 || start < best)) best = start;
|
||||
if (end > afterMs && (best < 0 || end < best)) best = end;
|
||||
}
|
||||
return (jlong)best;
|
||||
}
|
||||
|
||||
// --- AssRender ---
|
||||
|
||||
// The fork's fontconfig build has no Android font search defaults. A tiny
|
||||
// process-local config lets /system fonts resolve without adding Context/JNI plumbing.
|
||||
static char* ensureFontsConf(void) {
|
||||
const char* tmp = getenv("TMPDIR");
|
||||
if (tmp == NULL || tmp[0] == '\0') tmp = "/data/local/tmp";
|
||||
|
||||
char cacheDir[PATH_MAX];
|
||||
snprintf(cacheDir, sizeof(cacheDir), "%s/fontconfig", tmp);
|
||||
mkdir(cacheDir, 0700);
|
||||
|
||||
char* confPath = (char*)malloc(PATH_MAX);
|
||||
if (confPath == NULL) return NULL;
|
||||
snprintf(confPath, PATH_MAX, "%s/fonts.conf", tmp);
|
||||
|
||||
FILE* f = fopen(confPath, "w");
|
||||
if (f == NULL) {
|
||||
free(confPath);
|
||||
return NULL;
|
||||
}
|
||||
fprintf(
|
||||
f,
|
||||
"<?xml version=\"1.0\"?>\n"
|
||||
"<!DOCTYPE fontconfig SYSTEM \"fonts.dtd\">\n"
|
||||
"<fontconfig>\n"
|
||||
" <dir>/system/fonts</dir>\n"
|
||||
" <dir>/system/font</dir>\n"
|
||||
" <dir>/product/fonts</dir>\n"
|
||||
" <dir>/data/fonts</dir>\n"
|
||||
" <cachedir>%s</cachedir>\n"
|
||||
"</fontconfig>\n",
|
||||
cacheDir);
|
||||
fclose(f);
|
||||
return confPath;
|
||||
}
|
||||
|
||||
JNIEXPORT jlong JNICALL
|
||||
Java_com_edde746_plezy_libass_AssRender_nativeAssRenderInit(JNIEnv* env, jclass clazz, jlong ass) {
|
||||
ASS_Renderer* assRenderer = ass_renderer_init((ASS_Library*)ass);
|
||||
if (assRenderer == NULL) return 0;
|
||||
unsigned threads = ass_set_threads(assRenderer, 0);
|
||||
if (threads == 0) {
|
||||
__android_log_print(ANDROID_LOG_WARN, LOG_TAG, "libass threading unavailable in native build");
|
||||
} else {
|
||||
__android_log_print(ANDROID_LOG_INFO, LOG_TAG, "libass rendering threads enabled: %u", threads);
|
||||
}
|
||||
char* fontsConf = ensureFontsConf();
|
||||
ass_set_fonts(assRenderer, NULL, "sans-serif", ASS_FONTPROVIDER_FONTCONFIG, fontsConf, 1);
|
||||
free(fontsConf);
|
||||
return (jlong)assRenderer;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_com_edde746_plezy_libass_AssRender_nativeAssRenderSetFontScale(
|
||||
JNIEnv* env, jclass clazz, jlong render, jfloat scale) {
|
||||
if (!render) return;
|
||||
ass_set_font_scale((ASS_Renderer*)render, scale);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_com_edde746_plezy_libass_AssRender_nativeAssRenderSetCacheLimit(
|
||||
JNIEnv* env, jclass clazz, jlong render, jint glyphMax, jint bitmapMaxSize) {
|
||||
if (!render) return;
|
||||
ass_set_cache_limits((ASS_Renderer*)render, glyphMax, bitmapMaxSize);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_com_edde746_plezy_libass_AssRender_nativeAssRenderSetFrameSize(
|
||||
JNIEnv* env, jclass clazz, jlong render, jint width, jint height) {
|
||||
if (!render) return;
|
||||
ass_set_frame_size((ASS_Renderer*)render, width, height);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_com_edde746_plezy_libass_AssRender_nativeAssRenderSetStorageSize(
|
||||
JNIEnv* env, jclass clazz, jlong render, jint width, jint height) {
|
||||
if (!render) return;
|
||||
ass_set_storage_size((ASS_Renderer*)render, width, height);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_com_edde746_plezy_libass_AssRender_nativeAssRenderSetMargins(
|
||||
JNIEnv* env, jclass clazz, jlong render, jint top, jint bottom, jint left, jint right) {
|
||||
if (!render) return;
|
||||
ass_set_margins((ASS_Renderer*)render, top, bottom, left, right);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_com_edde746_plezy_libass_AssRender_nativeAssRenderSetUseMargins(
|
||||
JNIEnv* env, jclass clazz, jlong render, jboolean use) {
|
||||
if (!render) return;
|
||||
ass_set_use_margins((ASS_Renderer*)render, use ? 1 : 0);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_com_edde746_plezy_libass_AssRender_nativeAssRenderDeinit(JNIEnv* env, jclass clazz, jlong render) {
|
||||
if (render) {
|
||||
ass_renderer_done((ASS_Renderer*)render);
|
||||
}
|
||||
}
|
||||
|
||||
// (image, original-list index) pair so packing can run in height-sorted order
|
||||
// while slots stay keyed by list position (= blend order) for pass 2.
|
||||
typedef struct {
|
||||
ASS_Image* img;
|
||||
int idx;
|
||||
} PackItem;
|
||||
|
||||
static int comparePackItemsByHeightDesc(const void* a, const void* b) {
|
||||
const PackItem* ia = (const PackItem*)a;
|
||||
const PackItem* ib = (const PackItem*)b;
|
||||
return ib->img->h - ia->img->h;
|
||||
}
|
||||
|
||||
static int imageListHasOutput(ASS_Image* image) {
|
||||
for (ASS_Image* img = image; img != NULL; img = img->next) {
|
||||
if (img->w > 0 && img->h > 0) return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Throttle for truncation warnings (shared across renderers; logging only).
|
||||
static int truncationLogCounter = 0;
|
||||
|
||||
// Renders a frame into the provided atlas + vertex direct ByteBuffers.
|
||||
//
|
||||
// - atlasBuf holds packed ALPHA_8 pixels with row stride atlasMaxW. Only the first
|
||||
// atlasHeight rows are written; the caller uploads that region to a texture
|
||||
// allocated once at atlasMaxW × atlasMaxH.
|
||||
// - vertexBuf holds a per-quad vertex stream (6 vertices × (2 pos + 2 uv + 4 color)
|
||||
// floats = 48 floats = 192 bytes per quad). Must match BYTES_PER_QUAD/VERTEX in
|
||||
// AssSubtitleAtlasPipeline.kt. Ready for a single glDrawArrays(GL_TRIANGLES, 0, N * 6).
|
||||
// - UVs are normalized against atlasMaxW × atlasMaxH (the allocated texture dims),
|
||||
// not the packed region, so the texture never needs reallocation.
|
||||
// - Images are packed in height-sorted rows (minimizes packed height) but vertices
|
||||
// are emitted in original list order — the list order is libass's painter order.
|
||||
//
|
||||
// Never fails on content size: images that don't fit the remaining atlas/vertex
|
||||
// capacity are dropped and counted in AssAtlasFrame.truncated, so a heavy frame
|
||||
// degrades instead of going stale. Returns NULL only for missing buffers/handles.
|
||||
// On changed == 0, returns (0, 0, 0, changed, 0, hasOutput) without touching the
|
||||
// buffers. hasOutput lets Kotlin distinguish "reuse the previous atlas" from
|
||||
// "the current frame is blank and the GL surface must be cleared."
|
||||
JNIEXPORT jobject JNICALL Java_com_edde746_plezy_libass_AssRender_nativeAssRenderFrameAtlas(
|
||||
JNIEnv* env, jclass clazz, jlong render, jlong track, jlong time, jobject atlasBuf, jint atlasMaxW, jint atlasMaxH,
|
||||
jobject vertexBuf) {
|
||||
if (!render || !track || !atlasBuf || !vertexBuf || atlasMaxW <= 0 || atlasMaxH <= 0) return NULL;
|
||||
|
||||
jclass atlasFrameClass = (*env)->FindClass(env, "com/edde746/plezy/libass/AssAtlasFrame");
|
||||
if (!atlasFrameClass) return NULL;
|
||||
jmethodID ctor = (*env)->GetMethodID(env, atlasFrameClass, "<init>", "(IIIIIZ)V");
|
||||
if (!ctor) return NULL;
|
||||
|
||||
const long long t0 = nowMs();
|
||||
int changed;
|
||||
ASS_Image* image = ass_render_frame((ASS_Renderer*)render, (ASS_Track*)track, time, &changed);
|
||||
const long long tAss = nowMs();
|
||||
|
||||
if (changed == 0) {
|
||||
const jboolean hasOutput = imageListHasOutput(image) ? JNI_TRUE : JNI_FALSE;
|
||||
if (tAss - t0 > 40) {
|
||||
__android_log_print(
|
||||
ANDROID_LOG_WARN, LOG_TAG, "slow render t=%lldms: ass=%lldms (changed=%d, hasOutput=%d)", (long long)time,
|
||||
tAss - t0, changed, hasOutput == JNI_TRUE);
|
||||
}
|
||||
return (*env)->NewObject(env, atlasFrameClass, ctor, 0, 0, 0, changed, 0, hasOutput);
|
||||
}
|
||||
|
||||
if (image == NULL) {
|
||||
if (tAss - t0 > 40) {
|
||||
__android_log_print(
|
||||
ANDROID_LOG_WARN, LOG_TAG, "slow render t=%lldms: ass=%lldms (changed=%d, no output)", (long long)time,
|
||||
tAss - t0, changed);
|
||||
}
|
||||
return (*env)->NewObject(env, atlasFrameClass, ctor, 0, 0, 0, changed, 0, JNI_FALSE);
|
||||
}
|
||||
|
||||
uint8_t* atlasPixels = (uint8_t*)(*env)->GetDirectBufferAddress(env, atlasBuf);
|
||||
jlong atlasCap = (*env)->GetDirectBufferCapacity(env, atlasBuf);
|
||||
float* vertices = (float*)(*env)->GetDirectBufferAddress(env, vertexBuf);
|
||||
jlong vertexCap = (*env)->GetDirectBufferCapacity(env, vertexBuf);
|
||||
if (!atlasPixels || !vertices) return NULL;
|
||||
if ((jlong)atlasMaxW * atlasMaxH > atlasCap) {
|
||||
__android_log_print(
|
||||
ANDROID_LOG_ERROR, LOG_TAG, "atlas buffer smaller than %dx%d (capacity %lld bytes)", atlasMaxW, atlasMaxH,
|
||||
(long long)atlasCap);
|
||||
return NULL;
|
||||
}
|
||||
// 48 floats per quad × 4 bytes = 192 bytes/quad
|
||||
const int maxQuads = (int)(vertexCap / 192);
|
||||
|
||||
int total = 0;
|
||||
for (ASS_Image* img = image; img != NULL; img = img->next) {
|
||||
if (img->w > 0 && img->h > 0) total++;
|
||||
}
|
||||
if (total == 0) {
|
||||
return (*env)->NewObject(env, atlasFrameClass, ctor, 0, 0, 0, changed, 0, JNI_FALSE);
|
||||
}
|
||||
|
||||
// Pass 1: assign packing slots in height-sorted order so mixed-size frames pack
|
||||
// tight rows. slotX/slotY are keyed by the image's position in the original
|
||||
// list; -1 marks images dropped for capacity.
|
||||
PackItem* items = (PackItem*)malloc(sizeof(PackItem) * (size_t)total);
|
||||
int* slotX = (int*)malloc(sizeof(int) * (size_t)total);
|
||||
int* slotY = (int*)malloc(sizeof(int) * (size_t)total);
|
||||
if (!items || !slotX || !slotY) {
|
||||
free(items);
|
||||
free(slotX);
|
||||
free(slotY);
|
||||
return NULL;
|
||||
}
|
||||
int n = 0;
|
||||
for (ASS_Image* img = image; img != NULL; img = img->next) {
|
||||
if (img->w > 0 && img->h > 0) {
|
||||
items[n].img = img;
|
||||
items[n].idx = n;
|
||||
n++;
|
||||
}
|
||||
}
|
||||
qsort(items, (size_t)n, sizeof(PackItem), comparePackItemsByHeightDesc);
|
||||
|
||||
int cursorX = 0, cursorY = 0, rowH = 0;
|
||||
int truncated = 0;
|
||||
int packedH = 0;
|
||||
int accepted = 0;
|
||||
long long srcPixels = 0;
|
||||
for (int i = 0; i < n; i++) {
|
||||
ASS_Image* img = items[i].img;
|
||||
srcPixels += (long long)img->w * img->h;
|
||||
int sx = -1, sy = -1;
|
||||
if (img->w <= atlasMaxW && accepted < maxQuads) {
|
||||
int cx = cursorX, cy = cursorY, rh = rowH;
|
||||
if (cx + img->w > atlasMaxW) {
|
||||
cy += rh;
|
||||
cx = 0;
|
||||
rh = 0;
|
||||
}
|
||||
if (cy + img->h <= atlasMaxH) {
|
||||
sx = cx;
|
||||
sy = cy;
|
||||
cursorX = cx + img->w;
|
||||
cursorY = cy;
|
||||
rowH = (img->h > rh) ? img->h : rh;
|
||||
if (cy + img->h > packedH) packedH = cy + img->h;
|
||||
accepted++;
|
||||
}
|
||||
}
|
||||
if (sx < 0) truncated++;
|
||||
slotX[items[i].idx] = sx;
|
||||
slotY[items[i].idx] = sy;
|
||||
}
|
||||
|
||||
if (truncated > 0 && (truncationLogCounter++ & 63) == 0) {
|
||||
__android_log_print(
|
||||
ANDROID_LOG_WARN, LOG_TAG, "atlas truncation: %d of %d images dropped (atlas %dx%d, %d quads max)", truncated,
|
||||
n, atlasMaxW, atlasMaxH, maxQuads);
|
||||
}
|
||||
if (accepted == 0) {
|
||||
free(items);
|
||||
free(slotX);
|
||||
free(slotY);
|
||||
return (*env)->NewObject(env, atlasFrameClass, ctor, 0, 0, 0, changed, truncated, JNI_TRUE);
|
||||
}
|
||||
|
||||
memset(atlasPixels, 0, (size_t)atlasMaxW * packedH);
|
||||
|
||||
// Pass 2: walk the original list (= libass's painter/blend order), copying each
|
||||
// accepted image into its assigned slot and emitting its quad.
|
||||
int qi = 0;
|
||||
int k = 0;
|
||||
for (ASS_Image* img = image; img != NULL; img = img->next) {
|
||||
if (img->w <= 0 || img->h <= 0) continue;
|
||||
const int px = slotX[k];
|
||||
const int py = slotY[k];
|
||||
k++;
|
||||
if (px < 0) continue;
|
||||
|
||||
for (int y = 0; y < img->h; y++) {
|
||||
uint8_t* dst = atlasPixels + (size_t)(py + y) * atlasMaxW + px;
|
||||
const uint8_t* src = img->bitmap + (size_t)y * img->stride;
|
||||
memcpy(dst, src, (size_t)img->w);
|
||||
}
|
||||
|
||||
const float x0 = (float)img->dst_x;
|
||||
const float y0 = (float)img->dst_y;
|
||||
const float x1 = x0 + (float)img->w;
|
||||
const float y1 = y0 + (float)img->h;
|
||||
const float u0 = (float)px / (float)atlasMaxW;
|
||||
const float v0 = (float)py / (float)atlasMaxH;
|
||||
const float u1 = (float)(px + img->w) / (float)atlasMaxW;
|
||||
const float v1 = (float)(py + img->h) / (float)atlasMaxH;
|
||||
const unsigned int c = img->color;
|
||||
const float r = (float)((c >> 24) & 0xFFu) / 255.0f;
|
||||
const float g = (float)((c >> 16) & 0xFFu) / 255.0f;
|
||||
const float b = (float)((c >> 8) & 0xFFu) / 255.0f;
|
||||
const float a = (float)(0xFFu - (c & 0xFFu)) / 255.0f;
|
||||
|
||||
float* vx = vertices + (size_t)qi * 48;
|
||||
// 8 floats per vertex: x, y, u, v, r, g, b, a.
|
||||
// Triangle 1: (x0,y0) (x1,y0) (x0,y1)
|
||||
vx[0] = x0;
|
||||
vx[1] = y0;
|
||||
vx[2] = u0;
|
||||
vx[3] = v0;
|
||||
vx[4] = r;
|
||||
vx[5] = g;
|
||||
vx[6] = b;
|
||||
vx[7] = a;
|
||||
vx[8] = x1;
|
||||
vx[9] = y0;
|
||||
vx[10] = u1;
|
||||
vx[11] = v0;
|
||||
vx[12] = r;
|
||||
vx[13] = g;
|
||||
vx[14] = b;
|
||||
vx[15] = a;
|
||||
vx[16] = x0;
|
||||
vx[17] = y1;
|
||||
vx[18] = u0;
|
||||
vx[19] = v1;
|
||||
vx[20] = r;
|
||||
vx[21] = g;
|
||||
vx[22] = b;
|
||||
vx[23] = a;
|
||||
// Triangle 2: (x1,y0) (x1,y1) (x0,y1)
|
||||
vx[24] = x1;
|
||||
vx[25] = y0;
|
||||
vx[26] = u1;
|
||||
vx[27] = v0;
|
||||
vx[28] = r;
|
||||
vx[29] = g;
|
||||
vx[30] = b;
|
||||
vx[31] = a;
|
||||
vx[32] = x1;
|
||||
vx[33] = y1;
|
||||
vx[34] = u1;
|
||||
vx[35] = v1;
|
||||
vx[36] = r;
|
||||
vx[37] = g;
|
||||
vx[38] = b;
|
||||
vx[39] = a;
|
||||
vx[40] = x0;
|
||||
vx[41] = y1;
|
||||
vx[42] = u0;
|
||||
vx[43] = v1;
|
||||
vx[44] = r;
|
||||
vx[45] = g;
|
||||
vx[46] = b;
|
||||
vx[47] = a;
|
||||
|
||||
qi++;
|
||||
}
|
||||
|
||||
free(items);
|
||||
free(slotX);
|
||||
free(slotY);
|
||||
|
||||
// Slow-render breakdown: separates libass's own cost (rasterize/blur/shape)
|
||||
// from this function's packing + memcpy, so device logs attribute the time.
|
||||
const long long tEnd = nowMs();
|
||||
if (tEnd - t0 > 40) {
|
||||
__android_log_print(
|
||||
ANDROID_LOG_WARN, LOG_TAG,
|
||||
"slow render t=%lldms: total=%lldms ass=%lldms pack+copy=%lldms images=%d srcPx=%lldk atlas=%dx%d quads=%d",
|
||||
(long long)time, tEnd - t0, tAss - t0, tEnd - tAss, n, srcPixels / 1000, atlasMaxW, packedH, qi);
|
||||
}
|
||||
|
||||
// atlasWidth is the full row stride (GLES2 can't upload with stride ≠ width);
|
||||
// atlasHeight is the packed height — the only rows worth uploading.
|
||||
return (*env)->NewObject(env, atlasFrameClass, ctor, atlasMaxW, packedH, qi, changed, truncated, JNI_TRUE);
|
||||
}
|
||||
|
||||
// --- AssFrameTimestamps (EGL_ANDROID_get_frame_timestamps) ---
|
||||
//
|
||||
// Measures the overlay buffer's ACTUAL on-screen present time so subtitle
|
||||
// frame-perfection can be checked against the video frame's release time as
|
||||
// ground truth, instead of the queue time (eglSwapBuffers return) the swap loop
|
||||
// otherwise sees. The Java EGLExt only exposes eglPresentationTimeANDROID, so the
|
||||
// frame-timestamp entry points are resolved here via eglGetProcAddress.
|
||||
//
|
||||
// All functions run on the GL thread with the pipeline's EGL context current.
|
||||
|
||||
// Older NDK eglext.h may predate the extension; fall back to the spec values.
|
||||
#ifndef EGL_TIMESTAMPS_ANDROID
|
||||
#define EGL_TIMESTAMPS_ANDROID 0x3430
|
||||
#endif
|
||||
#ifndef EGL_COMPOSITION_LATCH_TIME_ANDROID
|
||||
#define EGL_COMPOSITION_LATCH_TIME_ANDROID 0x3436
|
||||
#endif
|
||||
#ifndef EGL_FIRST_COMPOSITION_START_TIME_ANDROID
|
||||
#define EGL_FIRST_COMPOSITION_START_TIME_ANDROID 0x3437
|
||||
#endif
|
||||
#ifndef EGL_DISPLAY_PRESENT_TIME_ANDROID
|
||||
#define EGL_DISPLAY_PRESENT_TIME_ANDROID 0x343A
|
||||
#endif
|
||||
#ifndef EGL_TIMESTAMP_INVALID_ANDROID
|
||||
#define EGL_TIMESTAMP_INVALID_ANDROID (-1)
|
||||
#endif
|
||||
#ifndef EGL_TIMESTAMP_PENDING_ANDROID
|
||||
#define EGL_TIMESTAMP_PENDING_ANDROID (-2)
|
||||
#endif
|
||||
#ifndef EGL_ANDROID_get_frame_timestamps
|
||||
typedef khronos_stime_nanoseconds_t EGLnsecsANDROID;
|
||||
typedef EGLBoolean(EGLAPIENTRYP PFNEGLGETNEXTFRAMEIDANDROIDPROC)(EGLDisplay, EGLSurface, EGLuint64KHR*);
|
||||
typedef EGLBoolean(EGLAPIENTRYP PFNEGLGETFRAMETIMESTAMPSANDROIDPROC)(
|
||||
EGLDisplay, EGLSurface, EGLuint64KHR, EGLint, const EGLint*, EGLnsecsANDROID*);
|
||||
typedef EGLBoolean(EGLAPIENTRYP PFNEGLGETFRAMETIMESTAMPSUPPORTEDANDROIDPROC)(EGLDisplay, EGLSurface, EGLint);
|
||||
#endif
|
||||
|
||||
// nativeInit status: success codes are the chosen timestamp source (≥ 0); the
|
||||
// actual display present time on code 0, and SurfaceFlinger composition timestamps
|
||||
// (a near-constant ~1-vsync earlier than scanout) on codes 1/2 — a constant bias
|
||||
// that doesn't hide the inter-layer jitter / multi-vsync outliers we look for.
|
||||
// Negative codes are failure reasons surfaced to the stats path for diagnosis.
|
||||
#define FT_SRC_PRESENT 0
|
||||
#define FT_SRC_COMPOSITION_START 1
|
||||
#define FT_SRC_COMPOSITION_LATCH 2
|
||||
#define FT_ERR_NO_SURFACE (-1)
|
||||
#define FT_ERR_NO_EXTENSION (-2)
|
||||
#define FT_ERR_NO_PROC (-3)
|
||||
#define FT_ERR_UNSUPPORTED (-4)
|
||||
#define FT_ERR_ENABLE_FAILED (-5)
|
||||
|
||||
static PFNEGLGETNEXTFRAMEIDANDROIDPROC pEglGetNextFrameId = NULL;
|
||||
static PFNEGLGETFRAMETIMESTAMPSANDROIDPROC pEglGetFrameTimestamps = NULL;
|
||||
static PFNEGLGETFRAMETIMESTAMPSUPPORTEDANDROIDPROC pEglGetFrameTimestampSupported = NULL;
|
||||
static EGLDisplay gFtDisplay = EGL_NO_DISPLAY;
|
||||
static EGLSurface gFtSurface = EGL_NO_SURFACE;
|
||||
static EGLint gFtPresentName = EGL_DISPLAY_PRESENT_TIME_ANDROID;
|
||||
|
||||
// Probes the extension on the currently-current draw surface and enables capture.
|
||||
// Re-resolves the display/surface each call so surface recreation is handled.
|
||||
// Returns one of the FT_* codes above.
|
||||
JNIEXPORT jint JNICALL Java_com_edde746_plezy_libass_AssFrameTimestamps_nativeInit(JNIEnv* env, jclass clazz) {
|
||||
gFtSurface = EGL_NO_SURFACE;
|
||||
EGLDisplay dpy = eglGetCurrentDisplay();
|
||||
EGLSurface surf = eglGetCurrentSurface(EGL_DRAW);
|
||||
if (dpy == EGL_NO_DISPLAY || surf == EGL_NO_SURFACE) return FT_ERR_NO_SURFACE;
|
||||
|
||||
const char* exts = eglQueryString(dpy, EGL_EXTENSIONS);
|
||||
if (exts == NULL || strstr(exts, "EGL_ANDROID_get_frame_timestamps") == NULL) {
|
||||
__android_log_print(ANDROID_LOG_INFO, LOG_TAG, "frame-timestamps: extension not present");
|
||||
return FT_ERR_NO_EXTENSION;
|
||||
}
|
||||
if (pEglGetNextFrameId == NULL) {
|
||||
pEglGetNextFrameId = (PFNEGLGETNEXTFRAMEIDANDROIDPROC)eglGetProcAddress("eglGetNextFrameIdANDROID");
|
||||
pEglGetFrameTimestamps = (PFNEGLGETFRAMETIMESTAMPSANDROIDPROC)eglGetProcAddress("eglGetFrameTimestampsANDROID");
|
||||
pEglGetFrameTimestampSupported =
|
||||
(PFNEGLGETFRAMETIMESTAMPSUPPORTEDANDROIDPROC)eglGetProcAddress("eglGetFrameTimestampSupportedANDROID");
|
||||
}
|
||||
if (pEglGetNextFrameId == NULL || pEglGetFrameTimestamps == NULL || pEglGetFrameTimestampSupported == NULL) {
|
||||
__android_log_print(ANDROID_LOG_WARN, LOG_TAG, "frame-timestamps: entry points unresolved");
|
||||
return FT_ERR_NO_PROC;
|
||||
}
|
||||
|
||||
// Prefer true display present; many TV HWCs (e.g. Amlogic) don't report present
|
||||
// fences but do report SurfaceFlinger composition timestamps. Take the first
|
||||
// supported — composition timing still pins the swap to a vsync for A-vs-B.
|
||||
jint status;
|
||||
if (pEglGetFrameTimestampSupported(dpy, surf, EGL_DISPLAY_PRESENT_TIME_ANDROID)) {
|
||||
gFtPresentName = EGL_DISPLAY_PRESENT_TIME_ANDROID;
|
||||
status = FT_SRC_PRESENT;
|
||||
} else if (pEglGetFrameTimestampSupported(dpy, surf, EGL_FIRST_COMPOSITION_START_TIME_ANDROID)) {
|
||||
gFtPresentName = EGL_FIRST_COMPOSITION_START_TIME_ANDROID;
|
||||
status = FT_SRC_COMPOSITION_START;
|
||||
} else if (pEglGetFrameTimestampSupported(dpy, surf, EGL_COMPOSITION_LATCH_TIME_ANDROID)) {
|
||||
gFtPresentName = EGL_COMPOSITION_LATCH_TIME_ANDROID;
|
||||
status = FT_SRC_COMPOSITION_LATCH;
|
||||
} else {
|
||||
__android_log_print(ANDROID_LOG_INFO, LOG_TAG, "frame-timestamps: no supported timestamp name");
|
||||
return FT_ERR_UNSUPPORTED;
|
||||
}
|
||||
|
||||
if (!eglSurfaceAttrib(dpy, surf, EGL_TIMESTAMPS_ANDROID, EGL_TRUE)) {
|
||||
__android_log_print(ANDROID_LOG_WARN, LOG_TAG, "frame-timestamps: enable failed 0x%x", eglGetError());
|
||||
return FT_ERR_ENABLE_FAILED;
|
||||
}
|
||||
gFtDisplay = dpy;
|
||||
gFtSurface = surf;
|
||||
__android_log_print(ANDROID_LOG_INFO, LOG_TAG, "frame-timestamps: enabled (source=%d)", status);
|
||||
return status;
|
||||
}
|
||||
|
||||
// Frame id the next eglSwapBuffers will produce; call immediately before it.
|
||||
JNIEXPORT jlong JNICALL
|
||||
Java_com_edde746_plezy_libass_AssFrameTimestamps_nativeGetNextFrameId(JNIEnv* env, jclass clazz) {
|
||||
if (pEglGetNextFrameId == NULL || gFtSurface == EGL_NO_SURFACE) return -1;
|
||||
EGLuint64KHR id = 0;
|
||||
if (!pEglGetNextFrameId(gFtDisplay, gFtSurface, &id)) return -1;
|
||||
return (jlong)id;
|
||||
}
|
||||
|
||||
// Present (or composition) time for frameId (System.nanoTime() domain), or the
|
||||
// PENDING(-2)/INVALID(-1) sentinels. Reported a few frames after the swap.
|
||||
JNIEXPORT jlong JNICALL
|
||||
Java_com_edde746_plezy_libass_AssFrameTimestamps_nativeGetDisplayPresentTime(JNIEnv* env, jclass clazz, jlong frameId) {
|
||||
if (pEglGetFrameTimestamps == NULL || gFtSurface == EGL_NO_SURFACE) return EGL_TIMESTAMP_INVALID_ANDROID;
|
||||
const EGLint names[1] = {gFtPresentName};
|
||||
EGLnsecsANDROID values[1] = {0};
|
||||
if (!pEglGetFrameTimestamps(gFtDisplay, gFtSurface, (EGLuint64KHR)frameId, 1, names, values)) {
|
||||
// Frame id evicted from SurfaceFlinger's history, or bad surface.
|
||||
return EGL_TIMESTAMP_INVALID_ANDROID;
|
||||
}
|
||||
return (jlong)values[0];
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
cmake_minimum_required(VERSION 3.22.1)
|
||||
|
||||
project("asskt")
|
||||
|
||||
# Fetching the fork release at configure time keeps per-ABI static archives out
|
||||
# of git; the pinned hash makes that network step reproducible.
|
||||
set(LIBASS_VERSION "0.18.1")
|
||||
set(LIBASS_SHA256 "56088619d3907fabbede978d053eca842c1acdda2fea8f11a1e4e1c5722f0624")
|
||||
set(LIBASS_ZIP_URL "https://github.com/edde746/libass/releases/download/${LIBASS_VERSION}/libass-android-${LIBASS_VERSION}.zip")
|
||||
|
||||
# Gradle passes one cache root so per-ABI CMake builds share the download.
|
||||
if(NOT DEFINED LIBASS_CACHE_DIR)
|
||||
set(LIBASS_CACHE_DIR "${CMAKE_BINARY_DIR}/libass-prebuilt")
|
||||
endif()
|
||||
set(LIBASS_ROOT "${LIBASS_CACHE_DIR}/libass-android-${LIBASS_VERSION}")
|
||||
set(LIBASS_ARCHIVE "${LIBASS_ROOT}/lib/${ANDROID_ABI}/libass.a")
|
||||
set(LIBASS_HEADER "${LIBASS_ROOT}/include/ass/ass.h")
|
||||
|
||||
# The downloaded archive lives under Flutter's root build/ directory, which can
|
||||
# be deleted without invalidating android/libass/.cxx. Model it as a Ninja output
|
||||
# so stale CMake configure caches can regenerate it during the build step.
|
||||
file(MAKE_DIRECTORY "${LIBASS_ROOT}/include")
|
||||
add_custom_command(
|
||||
OUTPUT "${LIBASS_ARCHIVE}" "${LIBASS_HEADER}"
|
||||
COMMAND "${CMAKE_COMMAND}"
|
||||
"-DLIBASS_VERSION=${LIBASS_VERSION}"
|
||||
"-DLIBASS_SHA256=${LIBASS_SHA256}"
|
||||
"-DLIBASS_ZIP_URL=${LIBASS_ZIP_URL}"
|
||||
"-DLIBASS_CACHE_DIR=${LIBASS_CACHE_DIR}"
|
||||
"-DLIBASS_ROOT=${LIBASS_ROOT}"
|
||||
"-DLIBASS_ARCHIVE=${LIBASS_ARCHIVE}"
|
||||
"-DLIBASS_HEADER=${LIBASS_HEADER}"
|
||||
"-DANDROID_ABI=${ANDROID_ABI}"
|
||||
-P "${CMAKE_CURRENT_LIST_DIR}/FetchLibass.cmake"
|
||||
COMMENT "Preparing fork libass ${LIBASS_VERSION} for ${ANDROID_ABI}"
|
||||
VERBATIM)
|
||||
|
||||
string(REPLACE "-" "_" LIBASS_ABI_TARGET "${ANDROID_ABI}")
|
||||
add_custom_target(libass_prebuilt_${LIBASS_ABI_TARGET}
|
||||
DEPENDS "${LIBASS_ARCHIVE}" "${LIBASS_HEADER}")
|
||||
|
||||
add_library(ass STATIC IMPORTED)
|
||||
set_target_properties(ass PROPERTIES
|
||||
IMPORTED_LOCATION "${LIBASS_ARCHIVE}")
|
||||
target_include_directories(ass INTERFACE "${LIBASS_ROOT}/include")
|
||||
|
||||
add_library(${CMAKE_PROJECT_NAME} SHARED AssKt.c SurfaceTxProbe.c)
|
||||
add_dependencies(${CMAKE_PROJECT_NAME} libass_prebuilt_${LIBASS_ABI_TARGET})
|
||||
# HarfBuzz brings C++; link the shared STL that the app already packages.
|
||||
# (SurfaceTxProbe resolves its libandroid/libsync entry points via dlsym, so no extra link.)
|
||||
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE
|
||||
ass
|
||||
log
|
||||
EGL
|
||||
c++_shared)
|
||||
@@ -0,0 +1,47 @@
|
||||
cmake_minimum_required(VERSION 3.22.1)
|
||||
|
||||
foreach(_var IN ITEMS
|
||||
LIBASS_VERSION
|
||||
LIBASS_SHA256
|
||||
LIBASS_ZIP_URL
|
||||
LIBASS_CACHE_DIR
|
||||
LIBASS_ROOT
|
||||
LIBASS_ARCHIVE
|
||||
LIBASS_HEADER
|
||||
ANDROID_ABI)
|
||||
if(NOT DEFINED ${_var} OR "${${_var}}" STREQUAL "")
|
||||
message(FATAL_ERROR "${_var} is required")
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
get_filename_component(_cache_parent "${LIBASS_CACHE_DIR}" DIRECTORY)
|
||||
file(MAKE_DIRECTORY "${_cache_parent}")
|
||||
|
||||
# Android Gradle can build ABI variants in parallel; serialize the shared cache.
|
||||
file(LOCK "${LIBASS_CACHE_DIR}.lock" GUARD PROCESS TIMEOUT 300)
|
||||
|
||||
if(NOT EXISTS "${LIBASS_ARCHIVE}" OR NOT EXISTS "${LIBASS_HEADER}")
|
||||
file(MAKE_DIRECTORY "${LIBASS_CACHE_DIR}")
|
||||
set(_libass_zip "${LIBASS_CACHE_DIR}/libass-android-${LIBASS_VERSION}.zip")
|
||||
|
||||
message(STATUS "Fetching fork libass ${LIBASS_VERSION} from ${LIBASS_ZIP_URL}")
|
||||
file(DOWNLOAD "${LIBASS_ZIP_URL}" "${_libass_zip}"
|
||||
EXPECTED_HASH "SHA256=${LIBASS_SHA256}"
|
||||
TLS_VERIFY ON
|
||||
STATUS _libass_dl)
|
||||
list(GET _libass_dl 0 _libass_dl_code)
|
||||
if(NOT _libass_dl_code EQUAL 0)
|
||||
file(REMOVE "${_libass_zip}")
|
||||
message(FATAL_ERROR "Failed to download libass: ${_libass_dl}")
|
||||
endif()
|
||||
|
||||
file(REMOVE_RECURSE "${LIBASS_ROOT}")
|
||||
file(ARCHIVE_EXTRACT INPUT "${_libass_zip}" DESTINATION "${LIBASS_CACHE_DIR}")
|
||||
endif()
|
||||
|
||||
if(NOT EXISTS "${LIBASS_ARCHIVE}")
|
||||
message(FATAL_ERROR "libass archive for ${ANDROID_ABI} was not extracted: ${LIBASS_ARCHIVE}")
|
||||
endif()
|
||||
if(NOT EXISTS "${LIBASS_HEADER}")
|
||||
message(FATAL_ERROR "libass headers were not extracted: ${LIBASS_HEADER}")
|
||||
endif()
|
||||
@@ -0,0 +1,317 @@
|
||||
// EXPERIMENTAL SPIKE — does the codec VIDEO plane's actual present time differ from a
|
||||
// GL OSD overlay's, and is that difference measurable in-app? (See the memory note
|
||||
// project_libass_present_time_instrumentation.)
|
||||
//
|
||||
// Android exposes no present time for a codec-owned video layer. The one runtime lead is
|
||||
// API 34 `SurfaceView.applyTransactionToFrame()`: it merges an otherwise-empty,
|
||||
// callback-bearing transaction with the codec's *next buffer* transaction. The completion
|
||||
// stats then carry, per surface, the PREVIOUS-RELEASE fence — the moment the buffer the new
|
||||
// frame replaced stopped being read by the display ≈ when the new codec frame actually
|
||||
// reached the video plane. Compared in Kotlin to that frame's `releaseTimeNs` target (the
|
||||
// overlay's own present error is ~0), the delta is the inter-plane lag.
|
||||
//
|
||||
// The SurfaceControl transaction-stats / fromJava APIs are API 29/34 while this module's
|
||||
// minSdk is 21; clang's __builtin_available doesn't guard the Android availability domain in
|
||||
// this toolchain. So the libandroid entry points are resolved by dlsym (no
|
||||
// availability-attributed declarations get compiled). Every call site is additionally
|
||||
// hard-gated to API >= 34 in Kotlin (VideoLayerLatencyProbe).
|
||||
//
|
||||
// Fence timestamps are read with the raw SYNC_IOC_FILE_INFO ioctl rather than libsync:
|
||||
// libsync.so is NOT a public NDK library, so an app's linker namespace blocks dlopen of it.
|
||||
//
|
||||
// Compiled into the libass "asskt" .so; called from app Kotlin SurfaceTxProbe.
|
||||
#include <android/log.h>
|
||||
#include <dlfcn.h>
|
||||
#include <jni.h>
|
||||
#include <poll.h>
|
||||
#include <pthread.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#define LOG_TAG "SurfaceTxProbe"
|
||||
#define LOGW(...) __android_log_print(ANDROID_LOG_WARN, LOG_TAG, __VA_ARGS__)
|
||||
|
||||
#ifndef SYNC_IOC_MAGIC
|
||||
#define SYNC_IOC_MAGIC '>'
|
||||
#endif
|
||||
struct stp_fence_info {
|
||||
char obj_name[32];
|
||||
char driver_name[32];
|
||||
int32_t status;
|
||||
uint32_t flags;
|
||||
uint64_t timestamp_ns;
|
||||
};
|
||||
struct stp_file_info {
|
||||
char name[32];
|
||||
int32_t status;
|
||||
uint32_t flags;
|
||||
uint32_t num_fences;
|
||||
uint32_t pad;
|
||||
uint64_t sync_fence_info;
|
||||
};
|
||||
#ifndef SYNC_IOC_FILE_INFO
|
||||
#define SYNC_IOC_FILE_INFO _IOWR(SYNC_IOC_MAGIC, 4, struct stp_file_info)
|
||||
#endif
|
||||
|
||||
// libsync is hidden from app linker namespaces, so use the kernel ioctl directly.
|
||||
static int64_t readFenceTimeNs(int fd, int* outStatus) {
|
||||
*outStatus = -1;
|
||||
if (fd < 0) return -1;
|
||||
struct stp_file_info probe;
|
||||
memset(&probe, 0, sizeof(probe));
|
||||
if (ioctl(fd, SYNC_IOC_FILE_INFO, &probe) < 0) return -1;
|
||||
*outStatus = probe.status;
|
||||
if (probe.status != 1 || probe.num_fences == 0) return -1;
|
||||
struct stp_fence_info* arr = (struct stp_fence_info*)calloc(probe.num_fences, sizeof(struct stp_fence_info));
|
||||
if (!arr) return -1;
|
||||
struct stp_file_info req;
|
||||
memset(&req, 0, sizeof(req));
|
||||
req.num_fences = probe.num_fences;
|
||||
req.sync_fence_info = (uint64_t)(uintptr_t)arr;
|
||||
int64_t t = -1;
|
||||
if (ioctl(fd, SYNC_IOC_FILE_INFO, &req) == 0) {
|
||||
for (uint32_t i = 0; i < req.num_fences; i++) {
|
||||
if ((int64_t)arr[i].timestamp_ns > t) t = (int64_t)arr[i].timestamp_ns;
|
||||
}
|
||||
}
|
||||
free(arr);
|
||||
return t;
|
||||
}
|
||||
|
||||
typedef struct ASurfaceTransaction ASurfaceTransaction;
|
||||
typedef struct ASurfaceControl ASurfaceControl;
|
||||
typedef struct ASurfaceTransactionStats ASurfaceTransactionStats;
|
||||
typedef void (*OnCompleteFn)(void* context, ASurfaceTransactionStats* stats);
|
||||
|
||||
typedef ASurfaceTransaction* (*pf_fromJava)(JNIEnv*, jobject);
|
||||
typedef void (*pf_setOnComplete)(ASurfaceTransaction*, void*, OnCompleteFn);
|
||||
typedef int64_t (*pf_latchTime)(ASurfaceTransactionStats*);
|
||||
typedef void (*pf_getControls)(ASurfaceTransactionStats*, ASurfaceControl***, size_t*);
|
||||
typedef int (*pf_prevRelease)(ASurfaceTransactionStats*, ASurfaceControl*);
|
||||
typedef void (*pf_releaseControls)(ASurfaceControl**);
|
||||
|
||||
static pf_fromJava p_fromJava = NULL;
|
||||
static pf_setOnComplete p_setOnComplete = NULL;
|
||||
static pf_latchTime p_latchTime = NULL;
|
||||
static pf_getControls p_getControls = NULL;
|
||||
static pf_prevRelease p_prevRelease = NULL;
|
||||
static pf_releaseControls p_releaseControls = NULL;
|
||||
static int gScResolved = 0;
|
||||
static int gScOk = 0;
|
||||
static int gScWarningLogged = 0;
|
||||
|
||||
// Runtime lookup keeps this API-34 probe buildable with the module's minSdk 21.
|
||||
static int resolveSc(void) {
|
||||
if (gScResolved) return gScOk;
|
||||
gScResolved = 1;
|
||||
void* h = dlopen("libandroid.so", RTLD_NOW | RTLD_GLOBAL);
|
||||
if (!h) return 0;
|
||||
p_fromJava = (pf_fromJava)dlsym(h, "ASurfaceTransaction_fromJava");
|
||||
p_setOnComplete = (pf_setOnComplete)dlsym(h, "ASurfaceTransaction_setOnComplete");
|
||||
p_latchTime = (pf_latchTime)dlsym(h, "ASurfaceTransactionStats_getLatchTime");
|
||||
p_getControls = (pf_getControls)dlsym(h, "ASurfaceTransactionStats_getASurfaceControls");
|
||||
p_prevRelease = (pf_prevRelease)dlsym(h, "ASurfaceTransactionStats_getPreviousReleaseFenceFd");
|
||||
p_releaseControls = (pf_releaseControls)dlsym(h, "ASurfaceTransactionStats_releaseASurfaceControls");
|
||||
gScOk = (p_fromJava && p_setOnComplete && p_latchTime && p_getControls && p_prevRelease && p_releaseControls) ? 1 : 0;
|
||||
return gScOk;
|
||||
}
|
||||
|
||||
// The completion context is pointer-width, so 32-bit devices need an index side-channel.
|
||||
#define TAG_RING_SIZE 256
|
||||
static int64_t gTagRing[TAG_RING_SIZE];
|
||||
static int gSrcRing[TAG_RING_SIZE];
|
||||
static int gTagSeq = 0;
|
||||
|
||||
static JavaVM* gVm = NULL;
|
||||
static jclass gProbeClass = NULL;
|
||||
static jmethodID gOnResult = NULL;
|
||||
static int gCallbackLookupAttempted = 0;
|
||||
static pthread_mutex_t gInitLock = PTHREAD_MUTEX_INITIALIZER;
|
||||
|
||||
static int64_t nowMonoNs(void) {
|
||||
struct timespec ts;
|
||||
clock_gettime(CLOCK_MONOTONIC, &ts);
|
||||
return (int64_t)ts.tv_sec * 1000000000LL + ts.tv_nsec;
|
||||
}
|
||||
|
||||
static void reportResult(
|
||||
JNIEnv* env, int64_t tag, int64_t latchNs, int64_t releaseNs, int count, int fenceState, int source, int64_t cbNs) {
|
||||
if (!env || !gProbeClass || !gOnResult) return;
|
||||
(*env)->CallStaticVoidMethod(
|
||||
env, gProbeClass, gOnResult, (jlong)tag, (jlong)latchNs, (jlong)releaseNs, (jint)count, (jint)fenceState,
|
||||
(jint)source, (jlong)cbNs);
|
||||
if ((*env)->ExceptionCheck(env)) (*env)->ExceptionClear(env);
|
||||
}
|
||||
|
||||
// Previous-release fences can still be pending in the binder callback; a worker
|
||||
// thread keeps SurfaceFlinger's callback dispatch unblocked.
|
||||
struct fenceJob {
|
||||
int fd;
|
||||
int64_t tag;
|
||||
int64_t latch;
|
||||
int count;
|
||||
int source;
|
||||
};
|
||||
#define JOB_RING 64
|
||||
static struct fenceJob gJobs[JOB_RING];
|
||||
static int gJobHead = 0, gJobTail = 0;
|
||||
static int gJobDrops = 0;
|
||||
static pthread_mutex_t gJobLock = PTHREAD_MUTEX_INITIALIZER;
|
||||
static pthread_cond_t gJobCond = PTHREAD_COND_INITIALIZER;
|
||||
static pthread_t gReader;
|
||||
static int gReaderStarted = 0;
|
||||
|
||||
static void* readerMain(void* arg);
|
||||
|
||||
static int ensureProbeInit(JNIEnv* env, jclass clazz) {
|
||||
int scOk = 0;
|
||||
pthread_mutex_lock(&gInitLock);
|
||||
if (!gVm && (*env)->GetJavaVM(env, &gVm) != JNI_OK) {
|
||||
LOGW("GetJavaVM failed — transaction probe disabled");
|
||||
pthread_mutex_unlock(&gInitLock);
|
||||
return 0;
|
||||
}
|
||||
if (!gProbeClass) {
|
||||
gProbeClass = (*env)->NewGlobalRef(env, clazz);
|
||||
if (!gProbeClass) {
|
||||
LOGW("NewGlobalRef(SurfaceTxProbe) failed — transaction probe disabled");
|
||||
pthread_mutex_unlock(&gInitLock);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
if (!gCallbackLookupAttempted) {
|
||||
gCallbackLookupAttempted = 1;
|
||||
gOnResult = (*env)->GetStaticMethodID(env, clazz, "onResult", "(JJJIIIJ)V");
|
||||
if (!gOnResult) {
|
||||
(*env)->ExceptionClear(env);
|
||||
LOGW("onResult(JJJIIIJ)V not found — JNI callback disabled (R8 stripped it?)");
|
||||
}
|
||||
}
|
||||
if (!gOnResult) {
|
||||
pthread_mutex_unlock(&gInitLock);
|
||||
return 0;
|
||||
}
|
||||
scOk = resolveSc();
|
||||
if (!scOk) {
|
||||
if (!gScWarningLogged) {
|
||||
gScWarningLogged = 1;
|
||||
LOGW("libandroid SurfaceControl transaction-stats API unavailable");
|
||||
}
|
||||
pthread_mutex_unlock(&gInitLock);
|
||||
return 0;
|
||||
}
|
||||
if (!gReaderStarted) {
|
||||
const int rc = pthread_create(&gReader, NULL, readerMain, NULL);
|
||||
if (rc != 0) {
|
||||
LOGW("fence reader thread start failed: %d", rc);
|
||||
pthread_mutex_unlock(&gInitLock);
|
||||
return 0;
|
||||
}
|
||||
gReaderStarted = 1;
|
||||
}
|
||||
pthread_mutex_unlock(&gInitLock);
|
||||
return scOk;
|
||||
}
|
||||
|
||||
static void* readerMain(void* arg) {
|
||||
(void)arg;
|
||||
JNIEnv* env = NULL;
|
||||
if ((*gVm)->AttachCurrentThread(gVm, &env, NULL) != JNI_OK) return NULL;
|
||||
for (;;) {
|
||||
pthread_mutex_lock(&gJobLock);
|
||||
while (gJobHead == gJobTail) pthread_cond_wait(&gJobCond, &gJobLock);
|
||||
struct fenceJob job = gJobs[gJobTail];
|
||||
gJobTail = (gJobTail + 1) % JOB_RING;
|
||||
pthread_mutex_unlock(&gJobLock);
|
||||
|
||||
int64_t releaseNs = -1;
|
||||
int fenceState;
|
||||
struct pollfd pfd = {.fd = job.fd, .events = POLLIN, .revents = 0};
|
||||
int pr = poll(&pfd, 1, 250);
|
||||
if (pr > 0 && (pfd.revents & POLLIN)) {
|
||||
int st = -1;
|
||||
releaseNs = readFenceTimeNs(job.fd, &st);
|
||||
fenceState = (releaseNs > 0) ? 3 : 1;
|
||||
} else {
|
||||
fenceState = 2;
|
||||
}
|
||||
close(job.fd);
|
||||
reportResult(env, job.tag, job.latch, releaseNs, job.count, fenceState, job.source, nowMonoNs());
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void onComplete(void* context, ASurfaceTransactionStats* stats) {
|
||||
int slot = (int)(intptr_t)context;
|
||||
__atomic_thread_fence(__ATOMIC_ACQUIRE);
|
||||
int64_t tag = gTagRing[slot & (TAG_RING_SIZE - 1)];
|
||||
int source = gSrcRing[slot & (TAG_RING_SIZE - 1)];
|
||||
int64_t latchNs = p_latchTime ? p_latchTime(stats) : -1;
|
||||
|
||||
// Display-global present fences are abort-prone; per-surface release fences are stable here.
|
||||
int chosenFd = -1;
|
||||
int count = 0;
|
||||
ASurfaceControl** controls = NULL;
|
||||
size_t n = 0;
|
||||
if (p_getControls) p_getControls(stats, &controls, &n);
|
||||
count = (int)n;
|
||||
for (size_t i = 0; i < n; i++) {
|
||||
int rfd = p_prevRelease ? p_prevRelease(stats, controls[i]) : -1;
|
||||
if (rfd < 0) continue;
|
||||
if (chosenFd < 0)
|
||||
chosenFd = rfd;
|
||||
else
|
||||
close(rfd);
|
||||
}
|
||||
if (controls && p_releaseControls) p_releaseControls(controls);
|
||||
|
||||
if (chosenFd < 0) {
|
||||
JNIEnv* env = NULL;
|
||||
int didAttach = 0;
|
||||
if ((*gVm)->GetEnv(gVm, (void**)&env, JNI_VERSION_1_6) != JNI_OK) {
|
||||
if ((*gVm)->AttachCurrentThread(gVm, &env, NULL) != JNI_OK) return;
|
||||
didAttach = 1;
|
||||
}
|
||||
reportResult(env, tag, latchNs, -1, count, 0, source, nowMonoNs());
|
||||
if (didAttach) (*gVm)->DetachCurrentThread(gVm);
|
||||
return;
|
||||
}
|
||||
|
||||
pthread_mutex_lock(&gJobLock);
|
||||
int next = (gJobHead + 1) % JOB_RING;
|
||||
if (next == gJobTail) {
|
||||
close(chosenFd);
|
||||
if (gJobDrops++ == 0) LOGW("fence job ring full — dropping samples (slow fence reader?)");
|
||||
} else {
|
||||
gJobs[gJobHead].fd = chosenFd;
|
||||
gJobs[gJobHead].tag = tag;
|
||||
gJobs[gJobHead].latch = latchNs;
|
||||
gJobs[gJobHead].count = count;
|
||||
gJobs[gJobHead].source = source;
|
||||
gJobHead = next;
|
||||
pthread_cond_signal(&gJobCond);
|
||||
}
|
||||
pthread_mutex_unlock(&gJobLock);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_com_edde746_plezy_exoplayer_SurfaceTxProbe_nativeAttach(
|
||||
JNIEnv* env, jclass clazz, jobject jtransaction, jlong tag, jint source) {
|
||||
if (!ensureProbeInit(env, clazz)) return;
|
||||
int slot = __atomic_fetch_add(&gTagSeq, 1, __ATOMIC_RELAXED) & (TAG_RING_SIZE - 1);
|
||||
gTagRing[slot] = (int64_t)tag;
|
||||
gSrcRing[slot] = (int)source;
|
||||
// Binder carries only the slot index, so the ring write has to win publication.
|
||||
__atomic_thread_fence(__ATOMIC_RELEASE);
|
||||
|
||||
ASurfaceTransaction* tx = p_fromJava(env, jtransaction);
|
||||
if (!tx) {
|
||||
LOGW("ASurfaceTransaction_fromJava returned null");
|
||||
return;
|
||||
}
|
||||
p_setOnComplete(tx, (void*)(intptr_t)slot, onComplete);
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.edde746.plezy.libass
|
||||
|
||||
import java.util.concurrent.locks.ReentrantLock
|
||||
import kotlin.concurrent.withLock
|
||||
|
||||
class Ass {
|
||||
|
||||
companion object {
|
||||
|
||||
init {
|
||||
System.loadLibrary("asskt")
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
external fun nativeAssInit(): Long
|
||||
|
||||
@JvmStatic
|
||||
external fun nativeAssAddFont(ptr: Long, name: String, buffer: ByteArray)
|
||||
|
||||
@JvmStatic
|
||||
external fun nativeAssDeinit(ptr: Long)
|
||||
}
|
||||
|
||||
/** Single lock for all libass calls on this library instance. */
|
||||
val lock = ReentrantLock()
|
||||
|
||||
private var nativeAss: Long = nativeAssInit()
|
||||
|
||||
@Volatile
|
||||
var released = false
|
||||
private set
|
||||
|
||||
private fun <T> create(block: (Long) -> T): T = lock.withLock {
|
||||
check(!released && nativeAss != 0L) { "Ass already released" }
|
||||
block(nativeAss)
|
||||
}
|
||||
|
||||
fun createTrack(): AssTrack = create { AssTrack(it, lock) }
|
||||
|
||||
fun createRender(): AssRender = create { AssRender(it, lock) }
|
||||
|
||||
fun addFont(name: String, buffer: ByteArray) {
|
||||
lock.withLock {
|
||||
if (!released && nativeAss != 0L) nativeAssAddFont(nativeAss, name, buffer)
|
||||
}
|
||||
}
|
||||
|
||||
fun release() {
|
||||
lock.withLock {
|
||||
if (released) return
|
||||
released = true
|
||||
if (nativeAss != 0L) {
|
||||
nativeAssDeinit(nativeAss)
|
||||
nativeAss = 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected fun finalize() {
|
||||
release()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.edde746.plezy.libass
|
||||
|
||||
/**
|
||||
* Result of a packed-atlas render. The atlas pixel data is stored in the direct ByteBuffer
|
||||
* that was passed into [AssRender.renderFrameAtlas]; the vertex stream is in the other.
|
||||
*
|
||||
* @param atlasWidth atlas row stride in pixels (= the allocated width; 0 when [changed] == 0)
|
||||
* @param atlasHeight packed atlas height in pixels — the rows worth uploading
|
||||
* @param quadCount number of quads; the vertex buffer holds [quadCount] * 6 vertices
|
||||
* @param changed libass change flag (0 = no change, 1 = positions, 2 = content)
|
||||
* @param truncated images dropped because they exceeded the atlas/vertex capacity;
|
||||
* the frame is incomplete but never stale (> 0 should be rare —
|
||||
* it means even the GL-max-sized atlas couldn't fit the frame)
|
||||
* @param hasOutput true when libass reported at least one visible image for this
|
||||
* timestamp, even when [changed] is 0 and the buffers were not
|
||||
* rewritten. false means this timestamp should be blank.
|
||||
*/
|
||||
class AssAtlasFrame(
|
||||
val atlasWidth: Int,
|
||||
val atlasHeight: Int,
|
||||
val quadCount: Int,
|
||||
val changed: Int,
|
||||
val truncated: Int,
|
||||
val hasOutput: Boolean
|
||||
) {
|
||||
constructor(
|
||||
atlasWidth: Int,
|
||||
atlasHeight: Int,
|
||||
quadCount: Int,
|
||||
changed: Int,
|
||||
truncated: Int
|
||||
) : this(atlasWidth, atlasHeight, quadCount, changed, truncated, quadCount > 0)
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
package com.edde746.plezy.libass
|
||||
|
||||
/**
|
||||
* Thin binding over the `EGL_ANDROID_get_frame_timestamps` extension.
|
||||
*
|
||||
* The atlas pipeline pins each overlay swap to the video frame's `releaseTimeNs`,
|
||||
* but the swap loop can only measure when [android.opengl.EGL14.eglSwapBuffers]
|
||||
* *returns* — i.e. when the buffer was queued, not when SurfaceFlinger actually
|
||||
* presented it. That can't reveal a one-vsync compositor latch offset, which is
|
||||
* exactly the error frame-perfection work chases. This binding reads the buffer's
|
||||
* *actual on-screen present time* so it can be compared against `releaseTimeNs`
|
||||
* (the video frame's vsync target) as ground truth.
|
||||
*
|
||||
* `android.opengl.EGLExt` exposes only `eglPresentationTimeANDROID`; the
|
||||
* frame-timestamp entry points are resolved natively via `eglGetProcAddress`.
|
||||
*
|
||||
* Requires Android 10 (API 29)+ and the extension; probe with [nativeInit].
|
||||
* All calls must run on the GL thread with the pipeline's EGL context current.
|
||||
*/
|
||||
internal object AssFrameTimestamps {
|
||||
/** Present time not yet reported by SurfaceFlinger; query the frame again later. */
|
||||
const val PENDING = -2L
|
||||
|
||||
/** The frame was dropped/never presented, or its id was evicted from history. */
|
||||
const val INVALID = -1L
|
||||
|
||||
// [nativeInit] status. Success codes are the timestamp source in use (≥ 0):
|
||||
// true scanout present (SRC_PRESENT) or — where the HWC reports no present fence,
|
||||
// common on TV SoCs — a SurfaceFlinger composition timestamp ~1 vsync earlier
|
||||
// (SRC_COMPOSITION_*; a constant bias, harmless to the jitter/outlier analysis).
|
||||
// Negative codes are failure reasons, surfaced to the stats path for diagnosis.
|
||||
const val SRC_PRESENT = 0
|
||||
const val SRC_COMPOSITION_START = 1
|
||||
const val SRC_COMPOSITION_LATCH = 2
|
||||
const val ERR_NO_SURFACE = -1
|
||||
const val ERR_NO_EXTENSION = -2
|
||||
const val ERR_NO_PROC = -3
|
||||
const val ERR_UNSUPPORTED = -4
|
||||
const val ERR_ENABLE_FAILED = -5
|
||||
|
||||
/** Short label for a [nativeInit] status code, for logs/getStats. */
|
||||
fun sourceLabel(status: Int): String = when (status) {
|
||||
SRC_PRESENT -> "present"
|
||||
SRC_COMPOSITION_START -> "comp-start"
|
||||
SRC_COMPOSITION_LATCH -> "comp-latch"
|
||||
ERR_NO_SURFACE -> "off:no-surface"
|
||||
ERR_NO_EXTENSION -> "off:no-ext"
|
||||
ERR_NO_PROC -> "off:no-proc"
|
||||
ERR_UNSUPPORTED -> "off:unsupported"
|
||||
ERR_ENABLE_FAILED -> "off:enable-failed"
|
||||
else -> "off:$status"
|
||||
}
|
||||
|
||||
/**
|
||||
* Probes the extension on the currently-current draw surface and enables
|
||||
* timestamp capture, preferring true present then composition timestamps.
|
||||
* Returns an `SRC_*` code (≥ 0) on success or an `ERR_*` code (< 0). Re-resolves
|
||||
* the surface each call, so it is safe to re-invoke after surface recreation.
|
||||
*/
|
||||
@JvmStatic external fun nativeInit(): Int
|
||||
|
||||
/** Frame id the next `eglSwapBuffers` will produce; call immediately before it. */
|
||||
@JvmStatic external fun nativeGetNextFrameId(): Long
|
||||
|
||||
/**
|
||||
* Present (or composition) time for [frameId] in the `System.nanoTime()` domain,
|
||||
* or the [PENDING]/[INVALID] sentinels. Results are deferred a few frames past
|
||||
* the swap, so a caller drains pending ids lazily.
|
||||
*/
|
||||
@JvmStatic external fun nativeGetDisplayPresentTime(frameId: Long): Long
|
||||
}
|
||||
@@ -0,0 +1,164 @@
|
||||
package com.edde746.plezy.libass
|
||||
|
||||
import java.nio.ByteBuffer
|
||||
import java.util.concurrent.locks.ReentrantLock
|
||||
import kotlin.concurrent.withLock
|
||||
|
||||
class AssRender(nativeAss: Long, private val lock: ReentrantLock) {
|
||||
|
||||
companion object {
|
||||
|
||||
@JvmStatic
|
||||
external fun nativeAssRenderInit(ass: Long): Long
|
||||
|
||||
@JvmStatic
|
||||
external fun nativeAssRenderSetFontScale(render: Long, scale: Float)
|
||||
|
||||
@JvmStatic
|
||||
external fun nativeAssRenderSetCacheLimit(render: Long, glyphMax: Int, bitmapMaxSize: Int)
|
||||
|
||||
@JvmStatic
|
||||
external fun nativeAssRenderSetStorageSize(render: Long, width: Int, height: Int)
|
||||
|
||||
@JvmStatic
|
||||
external fun nativeAssRenderSetFrameSize(render: Long, width: Int, height: Int)
|
||||
|
||||
@JvmStatic
|
||||
external fun nativeAssRenderSetMargins(render: Long, top: Int, bottom: Int, left: Int, right: Int)
|
||||
|
||||
@JvmStatic
|
||||
external fun nativeAssRenderSetUseMargins(render: Long, use: Boolean)
|
||||
|
||||
@JvmStatic
|
||||
external fun nativeAssRenderFrameAtlas(
|
||||
render: Long,
|
||||
track: Long,
|
||||
time: Long,
|
||||
atlasBuf: ByteBuffer,
|
||||
atlasMaxWidth: Int,
|
||||
atlasMaxHeight: Int,
|
||||
vertexBuf: ByteBuffer
|
||||
): AssAtlasFrame?
|
||||
|
||||
@JvmStatic
|
||||
external fun nativeAssRenderDeinit(render: Long)
|
||||
}
|
||||
|
||||
private var nativeRender: Long = nativeAssRenderInit(nativeAss)
|
||||
|
||||
@Volatile
|
||||
var released = false
|
||||
private set
|
||||
|
||||
private var track: AssTrack? = null
|
||||
|
||||
/**
|
||||
* Bumped on every renderer-state mutation (track, sizes, margins, font scale).
|
||||
* Lets the render-ahead pipeline detect that a speculatively rendered frame was
|
||||
* produced against stale state and must not be presented.
|
||||
*/
|
||||
private val generation = java.util.concurrent.atomic.AtomicInteger(0)
|
||||
|
||||
/** Current renderer-state generation; see [generation]. */
|
||||
val stateGeneration: Int get() = generation.get()
|
||||
|
||||
/** Runs [block] with the native handle under the shared libass lock; no-op once released. */
|
||||
private inline fun withNative(block: (Long) -> Unit) {
|
||||
lock.withLock {
|
||||
if (!released && nativeRender != 0L) block(nativeRender)
|
||||
}
|
||||
}
|
||||
|
||||
fun setTrack(track: AssTrack?) {
|
||||
generation.incrementAndGet()
|
||||
lock.withLock { this.track = track }
|
||||
}
|
||||
|
||||
fun setFontScale(scale: Float) {
|
||||
generation.incrementAndGet()
|
||||
withNative { nativeAssRenderSetFontScale(it, scale) }
|
||||
}
|
||||
|
||||
fun setCacheLimit(glyphMax: Int, bitmapMaxSize: Int) = withNative { nativeAssRenderSetCacheLimit(it, glyphMax, bitmapMaxSize) }
|
||||
|
||||
fun setStorageSize(width: Int, height: Int) {
|
||||
generation.incrementAndGet()
|
||||
withNative { nativeAssRenderSetStorageSize(it, width, height) }
|
||||
}
|
||||
|
||||
fun setFrameSize(width: Int, height: Int) {
|
||||
generation.incrementAndGet()
|
||||
withNative { nativeAssRenderSetFrameSize(it, width, height) }
|
||||
}
|
||||
|
||||
/**
|
||||
* mpv-style frame margins: offsets of the video dst rect within the frame set by
|
||||
* [setFrameSize]. Negative when the video extends beyond the frame (zoomed in / cover).
|
||||
*/
|
||||
fun setMargins(top: Int, bottom: Int, left: Int, right: Int) {
|
||||
generation.incrementAndGet()
|
||||
withNative { nativeAssRenderSetMargins(it, top, bottom, left, right) }
|
||||
}
|
||||
|
||||
/**
|
||||
* mpv's sub-ass-force-margins: lay out non-positioned events against the full frame
|
||||
* (kept on the visible screen) instead of the video rect between the margins.
|
||||
*/
|
||||
fun setUseMargins(use: Boolean) {
|
||||
generation.incrementAndGet()
|
||||
withNative { nativeAssRenderSetUseMargins(it, use) }
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders a frame into a packed ALPHA_8 texture atlas plus a single vertex stream
|
||||
* ready for `glDrawArrays(GL_TRIANGLES, 0, quadCount * 6)`.
|
||||
*
|
||||
* UVs are normalized against ([atlasMaxW], [atlasMaxH]) — the allocated texture
|
||||
* dims — so the caller can allocate the texture once and `glTexSubImage2D` only
|
||||
* the packed rows. Images that exceed the capacity are dropped and counted in
|
||||
* [AssAtlasFrame.truncated]; the render never fails on content size.
|
||||
*
|
||||
* @param atlasBuf direct ByteBuffer receiving the packed pixels (≥ atlasMaxW × atlasMaxH)
|
||||
* @param atlasMaxW atlas row stride in pixels (bound by `GL_MAX_TEXTURE_SIZE`)
|
||||
* @param atlasMaxH atlas height in pixels (bound by `GL_MAX_TEXTURE_SIZE`)
|
||||
* @param vertexBuf direct ByteBuffer receiving the vertex stream (192 bytes per quad)
|
||||
*/
|
||||
/** How long the most recent [renderFrameAtlas] waited to acquire the shared
|
||||
* libass lock (contended by track dialogue/font feeding), in milliseconds. */
|
||||
@Volatile
|
||||
var lastLockWaitMs: Long = 0
|
||||
private set
|
||||
|
||||
fun renderFrameAtlas(
|
||||
time: Long,
|
||||
atlasBuf: ByteBuffer,
|
||||
atlasMaxW: Int,
|
||||
atlasMaxH: Int,
|
||||
vertexBuf: ByteBuffer
|
||||
): AssAtlasFrame? {
|
||||
val tQueue = System.nanoTime()
|
||||
lock.withLock {
|
||||
lastLockWaitMs = (System.nanoTime() - tQueue) / 1_000_000
|
||||
if (released || nativeRender == 0L) return null
|
||||
val t = track ?: return null
|
||||
if (t.released || t.nativeAssTrack == 0L) return null
|
||||
return nativeAssRenderFrameAtlas(nativeRender, t.nativeAssTrack, time, atlasBuf, atlasMaxW, atlasMaxH, vertexBuf)
|
||||
}
|
||||
}
|
||||
|
||||
fun release() {
|
||||
lock.withLock {
|
||||
if (released) return
|
||||
released = true
|
||||
track = null
|
||||
if (nativeRender != 0L) {
|
||||
nativeAssRenderDeinit(nativeRender)
|
||||
nativeRender = 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected fun finalize() {
|
||||
release()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
package com.edde746.plezy.libass
|
||||
|
||||
import java.util.concurrent.locks.ReentrantLock
|
||||
import kotlin.concurrent.withLock
|
||||
|
||||
class AssTrack(private val ass: Long, private val lock: ReentrantLock) {
|
||||
|
||||
companion object {
|
||||
|
||||
@JvmStatic
|
||||
external fun nativeAssTrackInit(track: Long): Long
|
||||
|
||||
@JvmStatic
|
||||
external fun nativeAssTrackReadBuffer(track: Long, byteArray: ByteArray, offset: Int, length: Int)
|
||||
|
||||
@JvmStatic
|
||||
external fun nativeAssTrackReadChunk(track: Long, start: Long, duration: Long, byteArray: ByteArray, offset: Int, length: Int)
|
||||
|
||||
@JvmStatic
|
||||
external fun nativeAssTrackDeinit(track: Long)
|
||||
|
||||
@JvmStatic
|
||||
external fun nativeAssTrackNextEventStart(track: Long, afterMs: Long): Long
|
||||
|
||||
@JvmStatic
|
||||
external fun nativeAssTrackNextEventChange(track: Long, afterMs: Long): Long
|
||||
}
|
||||
|
||||
var nativeAssTrack = nativeAssTrackInit(ass)
|
||||
private set
|
||||
|
||||
@Volatile
|
||||
var released = false
|
||||
private set
|
||||
|
||||
/** Runs [block] with the native handle under the shared libass lock; no-op once released. */
|
||||
private inline fun withNative(block: (Long) -> Unit) {
|
||||
lock.withLock {
|
||||
if (!released && nativeAssTrack != 0L) block(nativeAssTrack)
|
||||
}
|
||||
}
|
||||
|
||||
fun readBuffer(array: ByteArray, offset: Int = 0, length: Int = array.size) = withNative { nativeAssTrackReadBuffer(it, array, offset, length) }
|
||||
|
||||
fun readChunk(start: Long, duration: Long, array: ByteArray, offset: Int = 0, length: Int = array.size) = withNative { nativeAssTrackReadChunk(it, start, duration, array, offset, length) }
|
||||
|
||||
/** Earliest event start strictly after [afterMs], or -1 if none (yet). */
|
||||
fun nextEventStartMs(afterMs: Long): Long {
|
||||
lock.withLock {
|
||||
if (released || nativeAssTrack == 0L) return -1
|
||||
return nativeAssTrackNextEventStart(nativeAssTrack, afterMs)
|
||||
}
|
||||
}
|
||||
|
||||
/** Earliest event start OR end strictly after [afterMs], or -1 if none (yet). */
|
||||
fun nextEventChangeMs(afterMs: Long): Long {
|
||||
lock.withLock {
|
||||
if (released || nativeAssTrack == 0L) return -1
|
||||
return nativeAssTrackNextEventChange(nativeAssTrack, afterMs)
|
||||
}
|
||||
}
|
||||
|
||||
fun release() {
|
||||
lock.withLock {
|
||||
if (released) return
|
||||
released = true
|
||||
if (nativeAssTrack != 0L) {
|
||||
nativeAssTrackDeinit(nativeAssTrack)
|
||||
nativeAssTrack = 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected fun finalize() {
|
||||
release()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,405 @@
|
||||
package com.edde746.plezy.libass.media
|
||||
|
||||
import android.util.Log
|
||||
import androidx.annotation.OptIn
|
||||
import androidx.media3.common.Format
|
||||
import androidx.media3.common.MediaItem
|
||||
import androidx.media3.common.MimeTypes
|
||||
import androidx.media3.common.MimeTypes.TEXT_SSA
|
||||
import androidx.media3.common.Player.Listener
|
||||
import androidx.media3.common.Tracks
|
||||
import androidx.media3.common.VideoSize
|
||||
import androidx.media3.common.util.Size
|
||||
import androidx.media3.common.util.UnstableApi
|
||||
import androidx.media3.exoplayer.ExoPlayer
|
||||
import androidx.media3.exoplayer.video.VideoFrameMetadataListener
|
||||
import com.edde746.plezy.libass.Ass
|
||||
import com.edde746.plezy.libass.AssRender
|
||||
import com.edde746.plezy.libass.AssTrack
|
||||
import com.edde746.plezy.libass.media.parser.AssHeaderParser
|
||||
import com.edde746.plezy.libass.media.widget.AssAtlasPipelineConfig
|
||||
|
||||
/**
|
||||
* Handles ASS subtitle rendering and integration with ExoPlayer.
|
||||
*
|
||||
* This class listens to ExoPlayer events and manages the creation, selection, and rendering of ASS
|
||||
* subtitle tracks. Rendering always happens on a GL overlay surface (atlas pipeline) — the
|
||||
* libass frame is the overlay surface, not the video.
|
||||
*/
|
||||
@OptIn(UnstableApi::class)
|
||||
class AssHandler(
|
||||
val config: AssHandlerConfig = AssHandlerConfig()
|
||||
) : Listener {
|
||||
|
||||
/** The ASS instance used for creating tracks and renderers. This is lazy to avoid loading
|
||||
* libass if the played media does not have ASS tracks. */
|
||||
private val assDelegate = lazy { Ass() }
|
||||
val ass by assDelegate
|
||||
|
||||
/** The current ASS renderer. It's created as soon as a ASS track is detected. */
|
||||
var render: AssRender? = null
|
||||
private set
|
||||
|
||||
/**
|
||||
* AssRender changed callback
|
||||
*/
|
||||
var renderCallback: ((AssRender?) -> Unit)? = null
|
||||
|
||||
/** The currently selected ASS track. */
|
||||
var track: AssTrack? = null
|
||||
private set
|
||||
|
||||
/** The available ASS tracks in the current media. */
|
||||
private val availableTracks = mutableMapOf<String, AssTrack>()
|
||||
|
||||
/** Fonts encountered before any ASS track was created. Flushed in [createTrack]. */
|
||||
private val pendingFonts = mutableListOf<Pair<String, ByteArray>>()
|
||||
|
||||
/** The size of the video track. */
|
||||
var videoSize = Size.ZERO
|
||||
private set
|
||||
|
||||
/** The size of the surface on which subtitles are rendered. */
|
||||
var surfaceSize = Size.ZERO
|
||||
private set
|
||||
|
||||
/**
|
||||
* True once an overlay widget reported its surface size via [setOverlaySurfaceSize].
|
||||
* From then on the Player.Listener surface size (= the video output surface, which
|
||||
* may differ from the subtitle overlay once the overlay is parented elsewhere) is
|
||||
* ignored as a frame-size source.
|
||||
*/
|
||||
private var overlaySizeFromWidget = false
|
||||
|
||||
/** mpv-style margins of the video rect within the frame: top, bottom, left, right. */
|
||||
private var margins: IntArray? = null
|
||||
|
||||
/** mpv's sub-ass-force-margins: anchor non-positioned events to the visible frame. */
|
||||
private var useMargins = false
|
||||
|
||||
/**
|
||||
* Per-video-frame callback. Fired by ExoPlayer just before MediaCodec releases the frame
|
||||
* to the output surface. Carries the exact PTS of the frame and the System.nanoTime()
|
||||
* domain target release time, so subtitle renderers can align composition to the same
|
||||
* display vsync as the video.
|
||||
*
|
||||
* - [presentationTimeUs] is track-relative microseconds matching the subtitle track's PTS.
|
||||
* - [releaseTimeNs] may be [androidx.media3.common.C.TIME_UNSET] in rare paths.
|
||||
*
|
||||
* Invoked on the playback thread.
|
||||
*/
|
||||
var videoFrameCallback: ((presentationTimeUs: Long, releaseTimeNs: Long) -> Unit)? = null
|
||||
|
||||
private val videoFrameMetadataListener = VideoFrameMetadataListener { pts, releaseNs, _, _ ->
|
||||
videoFrameCallback?.invoke(pts, releaseNs)
|
||||
}
|
||||
|
||||
private var player: ExoPlayer? = null
|
||||
|
||||
/** The current selected ass format. */
|
||||
private var format: Format? = null
|
||||
|
||||
/**
|
||||
* Initializes the handler with the provided ExoPlayer instance.
|
||||
* @param player The ExoPlayer instance to attach to.
|
||||
*/
|
||||
fun init(player: ExoPlayer) {
|
||||
this.player = player
|
||||
player.addListener(this)
|
||||
player.setVideoFrameMetadataListener(videoFrameMetadataListener)
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles transitions between media items in the player and resets everything to the initial
|
||||
* state.
|
||||
*/
|
||||
override fun onMediaItemTransition(mediaItem: MediaItem?, reason: Int) {
|
||||
super.onMediaItemTransition(mediaItem, reason)
|
||||
Log.i("AssHandler", "onMediaItemTransition: item = $mediaItem, reason = $reason")
|
||||
resetMediaState(releaseNative = true)
|
||||
}
|
||||
|
||||
private fun resetMediaState(releaseNative: Boolean) {
|
||||
val oldRender = render
|
||||
val oldTracks = availableTracks.values.toList()
|
||||
|
||||
render = null
|
||||
track = null
|
||||
format = null
|
||||
availableTracks.clear()
|
||||
pendingFonts.clear()
|
||||
videoSize = Size.ZERO
|
||||
renderCallback?.invoke(null)
|
||||
|
||||
if (releaseNative) {
|
||||
oldRender?.release()
|
||||
oldTracks.forEach { it.release() }
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles changes to the tracks available in the current media.
|
||||
* Configures the selected ASS track if available.
|
||||
* @param tracks The selected tracks.
|
||||
*/
|
||||
override fun onTracksChanged(tracks: Tracks) {
|
||||
Log.i("AssHandler", "onTracksChanged $tracks")
|
||||
|
||||
val selectedVideoTrack = getSelectedVideoTrack(tracks)
|
||||
if (selectedVideoTrack != null) {
|
||||
setVideoSize(selectedVideoTrack.width, selectedVideoTrack.height)
|
||||
}
|
||||
|
||||
format = getSelectedAssTrack(tracks)
|
||||
if (format == null) {
|
||||
Log.i("AssHandler", "subtitle track disabled")
|
||||
track = null
|
||||
render?.setTrack(null)
|
||||
return
|
||||
}
|
||||
|
||||
updateTrack()
|
||||
}
|
||||
|
||||
private fun updateTrack() {
|
||||
val track = availableTracks.firstNotNullOfOrNull {
|
||||
// When media without external subtitles, format id will not change.
|
||||
// When media with external subtitles, format will become like 1:1 .
|
||||
// So to compat both situation, we extract the actual id after the colon.
|
||||
if (format?.id?.substringAfter(":") == it.key) {
|
||||
it.value
|
||||
} else {
|
||||
null
|
||||
}
|
||||
}
|
||||
if (track == null || this.track == track) return
|
||||
|
||||
Log.i("AssHandler", "subtitle track changed to $format")
|
||||
this.track = track
|
||||
val render = requireNotNull(render)
|
||||
applyRenderState(render)
|
||||
render.setTrack(track)
|
||||
}
|
||||
|
||||
/**
|
||||
* (Re)applies sizing and margin state to [render]. Called whenever a render is
|
||||
* (re)created or the selected track changes, so renderer state survives both.
|
||||
*/
|
||||
private fun applyRenderState(render: AssRender) {
|
||||
// Storage (script/video authoring size) stays full-res; only the frame and
|
||||
// margins follow RENDER_SCALE so the raster shrinks while layout is unchanged.
|
||||
if (videoSize.isValid) render.setStorageSize(videoSize.width, videoSize.height)
|
||||
when {
|
||||
surfaceSize.isValid -> render.setFrameSize(scaledForRender(surfaceSize.width), scaledForRender(surfaceSize.height))
|
||||
// Fallback frame until the overlay surface reports its size.
|
||||
videoSize.isValid -> render.setFrameSize(scaledForRender(videoSize.width), scaledForRender(videoSize.height))
|
||||
}
|
||||
margins?.let { m -> render.setMargins(scaledForRender(m[0]), scaledForRender(m[1]), scaledForRender(m[2]), scaledForRender(m[3])) }
|
||||
render.setUseMargins(useMargins)
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles changes to the surface size for video playback.
|
||||
* Notifies the callback if the size has changed.
|
||||
* @param width The new width of the surface.
|
||||
* @param height The new height of the surface.
|
||||
*/
|
||||
override fun onSurfaceSizeChanged(width: Int, height: Int) {
|
||||
super.onSurfaceSizeChanged(width, height)
|
||||
Log.i("AssHandler", "onSurfaceSizeChanged: width = $width, height = $height")
|
||||
// The video output surface is only a frame-size proxy until an overlay widget
|
||||
// reports its own size — they diverge when the overlay isn't video-rect-sized.
|
||||
if (overlaySizeFromWidget) return
|
||||
if (surfaceSize.width == width && surfaceSize.height == height) return
|
||||
surfaceSize = Size(width, height)
|
||||
}
|
||||
|
||||
/**
|
||||
* Reports the subtitle overlay widget's actual surface size — the authoritative
|
||||
* libass frame size for OVERLAY render types.
|
||||
*/
|
||||
fun setOverlaySurfaceSize(width: Int, height: Int) {
|
||||
overlaySizeFromWidget = true
|
||||
if (surfaceSize.width == width && surfaceSize.height == height) return
|
||||
Log.i("AssHandler", "setOverlaySurfaceSize: width = $width, height = $height")
|
||||
surfaceSize = Size(width, height)
|
||||
render?.setFrameSize(scaledForRender(width), scaledForRender(height))
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets mpv-style frame margins: the offsets of the video dst rect within the libass
|
||||
* frame ([setOverlaySurfaceSize]); negative when the video extends beyond the frame.
|
||||
* Applied to the current render and re-applied whenever a render is (re)created.
|
||||
*/
|
||||
fun setMargins(top: Int, bottom: Int, left: Int, right: Int) {
|
||||
margins = intArrayOf(top, bottom, left, right)
|
||||
render?.setMargins(scaledForRender(top), scaledForRender(bottom), scaledForRender(left), scaledForRender(right))
|
||||
}
|
||||
|
||||
/** Frame/margin extents go to libass at the overlay's render resolution; the GL
|
||||
* side scales the result back up. Identity unless RENDER_SCALE < 1. */
|
||||
private fun scaledForRender(px: Int): Int = AssAtlasPipelineConfig.scaledForRender(px)
|
||||
|
||||
/** mpv's sub-ass-force-margins: anchor non-positioned events to the visible frame. */
|
||||
fun setUseMargins(use: Boolean) {
|
||||
useMargins = use
|
||||
render?.setUseMargins(use)
|
||||
}
|
||||
|
||||
override fun onVideoSizeChanged(videoSize: VideoSize) {
|
||||
super.onVideoSizeChanged(videoSize)
|
||||
this.videoSize = Size(videoSize.width, videoSize.height)
|
||||
Log.i("AssHandler", "onVideoSizeChanged: width = ${videoSize.width}, height = ${videoSize.height}")
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the video size for the ASS renderer. Called as soon as the video size is known in
|
||||
* order to properly render subtitles.
|
||||
* @param width The width of the video.
|
||||
* @param height The height of the video.
|
||||
*/
|
||||
fun setVideoSize(width: Int, height: Int) {
|
||||
Log.i("AssHandler", "setVideoSize: width = $width, height = $height")
|
||||
videoSize = Size(width, height)
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the current media has ASS tracks, false otherwise.
|
||||
*/
|
||||
fun hasTracks(): Boolean = availableTracks.isNotEmpty()
|
||||
|
||||
/**
|
||||
* Adds a font to the ASS library. If no tracks have been created yet, the font is buffered
|
||||
* and will be added when the first track is created via [createTrack].
|
||||
*/
|
||||
@Synchronized
|
||||
fun addFont(name: String, data: ByteArray) {
|
||||
if (hasTracks()) {
|
||||
ass.addFont(name, data)
|
||||
} else {
|
||||
pendingFonts.add(name to data)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new ASS track from the given format and saves it in the [availableTracks].
|
||||
* The renderer and libass are also created if needed.
|
||||
* @param format The format of the ASS track.
|
||||
* @return The created ASS track.
|
||||
*/
|
||||
@Synchronized
|
||||
fun createTrack(format: Format): AssTrack {
|
||||
Log.i("AssHandler", "createTrack: format = $format")
|
||||
// Ensure the renderer is created before creating tracks.
|
||||
createRenderIfNeeded()
|
||||
|
||||
// Flush any fonts that were buffered before the first track was created.
|
||||
if (pendingFonts.isNotEmpty()) {
|
||||
for ((name, data) in pendingFonts) {
|
||||
ass.addFont(name, data)
|
||||
}
|
||||
pendingFonts.clear()
|
||||
}
|
||||
|
||||
val track = ass.createTrack()
|
||||
if (format.initializationData.size > 0) {
|
||||
val header = AssHeaderParser.parse(format)
|
||||
track.readBuffer(header)
|
||||
}
|
||||
availableTracks[format.id!!] = track
|
||||
|
||||
updateTrack()
|
||||
|
||||
return track
|
||||
}
|
||||
|
||||
/**
|
||||
* Ensures the ASS renderer is created if it does not already exist.
|
||||
*/
|
||||
private fun createRenderIfNeeded() {
|
||||
if (render != null) return
|
||||
Log.i("AssHandler", "createRender (cacheSize: ${config.cacheSize}MB, glyphSize: ${config.glyphSize})")
|
||||
render = ass.createRender().also { render ->
|
||||
render.setCacheLimit(config.glyphSize, config.cacheSize)
|
||||
applyRenderState(render)
|
||||
}
|
||||
renderCallback?.invoke(render)
|
||||
}
|
||||
|
||||
/**
|
||||
* Reads a dialogue into the track of the given [trackId].
|
||||
* Thread-safe: AssTrack.readChunk internally acquires the shared libass lock.
|
||||
*/
|
||||
fun readTrackDialogue(
|
||||
trackId: String?,
|
||||
start: Long,
|
||||
duration: Long,
|
||||
data: ByteArray,
|
||||
offset: Int = 0,
|
||||
length: Int = data.size
|
||||
) {
|
||||
val t = availableTracks[trackId] ?: return
|
||||
t.readChunk(start, duration, data, offset, length)
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the selected video track, if any.
|
||||
*/
|
||||
private fun getSelectedVideoTrack(tracks: Tracks): Format? = tracks.groups.find { group ->
|
||||
if (group.isSelected) {
|
||||
(0 until group.length).any { index ->
|
||||
val track = group.getTrackFormat(index)
|
||||
MimeTypes.isVideo(track.sampleMimeType)
|
||||
}
|
||||
} else {
|
||||
false
|
||||
}
|
||||
}?.getTrackFormat(0)
|
||||
|
||||
/**
|
||||
* Retrieves the ID of the selected ASS track, if any.
|
||||
* @param tracks The selected tracks.
|
||||
* @return The ID of the selected ASS track, or null if none.
|
||||
*/
|
||||
private fun getSelectedAssTrack(tracks: Tracks): Format? = tracks.groups.find { group ->
|
||||
if (group.isSelected) {
|
||||
(0 until group.length).any { index ->
|
||||
val track = group.getTrackFormat(index)
|
||||
track.sampleMimeType == TEXT_SSA || track.codecs == TEXT_SSA
|
||||
}
|
||||
} else {
|
||||
false
|
||||
}
|
||||
}?.getTrackFormat(0)
|
||||
|
||||
/**
|
||||
* Releases all native resources held by this handler.
|
||||
*/
|
||||
fun release() {
|
||||
videoFrameCallback = null
|
||||
player?.clearVideoFrameMetadataListener(videoFrameMetadataListener)
|
||||
player = null
|
||||
resetMediaState(releaseNative = true)
|
||||
if (assDelegate.isInitialized()) {
|
||||
ass.release()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the size is valid (both width and height are greater than 0).
|
||||
*/
|
||||
private val Size.isValid
|
||||
get() = width > 0 && height > 0
|
||||
|
||||
companion object {
|
||||
/**
|
||||
* Sets the global libass overlay render scale (fraction of the surface resolution; 1.0 = no
|
||||
* downscale). Cheaper raster for the render-bound tail on weak GPUs, at some sharpness. Set
|
||||
* before/at playback init — [AssAtlasPipelineConfig.scaledForRender] reads it on the next
|
||||
* frame-size apply (overlay surface create / size change), so it takes effect from playback.
|
||||
*/
|
||||
fun setRenderScale(scale: Float) {
|
||||
AssAtlasPipelineConfig.renderScale = scale.coerceIn(0.2f, 1.0f)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package com.edde746.plezy.libass.media
|
||||
|
||||
data class AssHandlerConfig(
|
||||
val glyphSize: Int = 10000,
|
||||
val cacheSize: Int = 128
|
||||
)
|
||||
+127
@@ -0,0 +1,127 @@
|
||||
package com.edde746.plezy.libass.media.extractor
|
||||
|
||||
import androidx.annotation.OptIn
|
||||
import androidx.media3.common.util.ParsableByteArray
|
||||
import androidx.media3.common.util.UnstableApi
|
||||
import androidx.media3.extractor.ExtractorInput
|
||||
import androidx.media3.extractor.ExtractorOutput
|
||||
import androidx.media3.extractor.mkv.EbmlProcessor
|
||||
import androidx.media3.extractor.mkv.MatroskaExtractor
|
||||
import androidx.media3.extractor.text.SubtitleParser
|
||||
import com.edde746.plezy.libass.media.AssHandler
|
||||
import com.edde746.plezy.libass.media.text.AssSubtitleExtractorOutput
|
||||
|
||||
@OptIn(UnstableApi::class)
|
||||
open class AssMatroskaExtractor(
|
||||
subtitleParserFactory: SubtitleParser.Factory,
|
||||
private val assHandler: AssHandler,
|
||||
flags: Int = 0
|
||||
) : MatroskaExtractor(subtitleParserFactory, flags) {
|
||||
|
||||
private var currentAttachmentName: String? = null
|
||||
private var currentAttachmentMime: String? = null
|
||||
|
||||
internal val subtitleSample = subtitleSampleField.get(this) as ParsableByteArray
|
||||
|
||||
override fun getElementType(id: Int): Int = when (id) {
|
||||
ID_ATTACHMENTS -> EbmlProcessor.ELEMENT_TYPE_MASTER
|
||||
ID_ATTACHED_FILE -> EbmlProcessor.ELEMENT_TYPE_MASTER
|
||||
ID_FILE_NAME -> EbmlProcessor.ELEMENT_TYPE_STRING
|
||||
ID_FILE_MIME_TYPE -> EbmlProcessor.ELEMENT_TYPE_STRING
|
||||
ID_FILE_DATA -> EbmlProcessor.ELEMENT_TYPE_BINARY
|
||||
else -> super.getElementType(id)
|
||||
}
|
||||
|
||||
override fun isLevel1Element(id: Int): Boolean = super.isLevel1Element(id) || id == ID_ATTACHMENTS
|
||||
|
||||
override fun startMasterElement(id: Int, contentPosition: Long, contentSize: Long) {
|
||||
when (id) {
|
||||
ID_EBML -> {
|
||||
val currentExtractor = extractorOutput.get(this) as ExtractorOutput
|
||||
if (currentExtractor !is AssSubtitleExtractorOutput) {
|
||||
extractorOutput.set(
|
||||
this,
|
||||
AssSubtitleExtractorOutput(currentExtractor, assHandler, this)
|
||||
)
|
||||
}
|
||||
super.startMasterElement(id, contentPosition, contentSize)
|
||||
}
|
||||
ID_ATTACHED_FILE -> clearAttachment()
|
||||
else -> super.startMasterElement(id, contentPosition, contentSize)
|
||||
}
|
||||
}
|
||||
|
||||
override fun endMasterElement(id: Int) {
|
||||
when (id) {
|
||||
ID_VIDEO -> {
|
||||
// We need to get the video dimensions very early
|
||||
val track = getCurrentTrack(id)
|
||||
assHandler.setVideoSize(track.width, track.height)
|
||||
super.endMasterElement(id)
|
||||
}
|
||||
ID_ATTACHED_FILE -> clearAttachment()
|
||||
else -> super.endMasterElement(id)
|
||||
}
|
||||
}
|
||||
|
||||
override fun stringElement(id: Int, value: String) {
|
||||
when (id) {
|
||||
ID_FILE_NAME -> currentAttachmentName = value
|
||||
ID_FILE_MIME_TYPE -> currentAttachmentMime = value
|
||||
else -> super.stringElement(id, value)
|
||||
}
|
||||
}
|
||||
|
||||
override fun binaryElement(id: Int, contentSize: Int, input: ExtractorInput) {
|
||||
when (id) {
|
||||
ID_FILE_DATA -> {
|
||||
val attachmentName = requireNotNull(currentAttachmentName)
|
||||
val attachmentMime = requireNotNull(currentAttachmentMime)
|
||||
|
||||
if (attachmentMime in fontMimeTypes) {
|
||||
val data = ByteArray(contentSize)
|
||||
input.readFully(data, 0, contentSize)
|
||||
assHandler.addFont(attachmentName, data)
|
||||
} else {
|
||||
input.skipFully(contentSize)
|
||||
}
|
||||
}
|
||||
else -> super.binaryElement(id, contentSize, input)
|
||||
}
|
||||
}
|
||||
|
||||
private fun clearAttachment() {
|
||||
currentAttachmentName = null
|
||||
currentAttachmentMime = null
|
||||
}
|
||||
|
||||
companion object {
|
||||
const val ID_EBML = 0x1A45DFA3
|
||||
const val ID_VIDEO = 0xE0
|
||||
const val ID_ATTACHMENTS = 0x1941A469
|
||||
const val ID_ATTACHED_FILE = 0x61A7
|
||||
const val ID_FILE_NAME = 0x466E
|
||||
const val ID_FILE_MIME_TYPE = 0x4660
|
||||
const val ID_FILE_DATA = 0x465C
|
||||
|
||||
val fontMimeTypes = listOf(
|
||||
"font/ttf",
|
||||
"font/otf",
|
||||
"font/sfnt",
|
||||
"font/woff",
|
||||
"font/woff2",
|
||||
"application/font-sfnt",
|
||||
"application/font-woff",
|
||||
"application/x-truetype-font",
|
||||
"application/vnd.ms-opentype",
|
||||
"application/x-font-ttf"
|
||||
)
|
||||
|
||||
val extractorOutput = MatroskaExtractor::class.java.getDeclaredField("extractorOutput").apply {
|
||||
isAccessible = true
|
||||
}
|
||||
val subtitleSampleField = MatroskaExtractor::class.java.getDeclaredField("subtitleSample").apply {
|
||||
isAccessible = true
|
||||
}
|
||||
}
|
||||
}
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
package com.edde746.plezy.libass.media.parser
|
||||
|
||||
import androidx.media3.common.Format
|
||||
import androidx.media3.common.util.Consumer
|
||||
import androidx.media3.common.util.UnstableApi
|
||||
import androidx.media3.extractor.text.CuesWithTiming
|
||||
import androidx.media3.extractor.text.SubtitleParser
|
||||
import com.edde746.plezy.libass.AssTrack
|
||||
|
||||
/**
|
||||
* Parser for full (non-embedded) ASS documents, e.g. external sidecar files.
|
||||
* Feeds the whole document into the libass track; rendering happens on the
|
||||
* overlay surface, so no Media3 cues are emitted.
|
||||
*/
|
||||
@UnstableApi
|
||||
class AssFullSubtitleParser(private val track: AssTrack) : SubtitleParser {
|
||||
|
||||
override fun parse(
|
||||
data: ByteArray,
|
||||
offset: Int,
|
||||
length: Int,
|
||||
outputOptions: SubtitleParser.OutputOptions,
|
||||
output: Consumer<CuesWithTiming>
|
||||
) {
|
||||
track.readBuffer(data, offset, length)
|
||||
}
|
||||
|
||||
override fun getCueReplacementBehavior(): Int = Format.CUE_REPLACEMENT_BEHAVIOR_REPLACE
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.edde746.plezy.libass.media.parser
|
||||
|
||||
import androidx.annotation.OptIn
|
||||
import androidx.media3.common.Format
|
||||
import androidx.media3.common.util.UnstableApi
|
||||
|
||||
@OptIn(UnstableApi::class)
|
||||
object AssHeaderParser {
|
||||
|
||||
private const val ASS_EVENTS = "[Events]\n" +
|
||||
"Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text"
|
||||
|
||||
/**
|
||||
* Fix some ass header with error end.
|
||||
* https://github.com/jellyfin/jellyfin-ffmpeg/issues/506
|
||||
*/
|
||||
private fun fixAssHeaderIfNeed(buffer: ByteArray): ByteArray = if (buffer[buffer.size - 1] != 0.toByte()) {
|
||||
// validate ass header
|
||||
buffer
|
||||
} else {
|
||||
// remote the last null character and append the events tag
|
||||
(String(buffer, 0, buffer.size - 1) + "\n" + ASS_EVENTS).toByteArray()
|
||||
}
|
||||
|
||||
/**
|
||||
* Parses the headers from the initialization data of the given [format]. The original
|
||||
* headers are preserved (duplication checks are handled by libass).
|
||||
*/
|
||||
fun parse(format: Format): ByteArray = fixAssHeaderIfNeed(format.initializationData[1])
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
package com.edde746.plezy.libass.media.parser
|
||||
|
||||
import androidx.media3.common.Format
|
||||
import androidx.media3.common.util.Consumer
|
||||
import androidx.media3.common.util.UnstableApi
|
||||
import androidx.media3.extractor.text.CuesWithTiming
|
||||
import androidx.media3.extractor.text.SubtitleParser
|
||||
|
||||
/**
|
||||
* No operation subtitle parser.
|
||||
*/
|
||||
@UnstableApi
|
||||
class AssNoOpSubtitleParser : SubtitleParser {
|
||||
override fun parse(
|
||||
p0: ByteArray,
|
||||
p1: Int,
|
||||
p2: Int,
|
||||
p3: SubtitleParser.OutputOptions,
|
||||
p4: Consumer<CuesWithTiming>
|
||||
) {
|
||||
}
|
||||
|
||||
override fun getCueReplacementBehavior(): Int = Format.CUE_REPLACEMENT_BEHAVIOR_REPLACE
|
||||
}
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
package com.edde746.plezy.libass.media.parser
|
||||
|
||||
import androidx.media3.common.Format
|
||||
import androidx.media3.common.MimeTypes
|
||||
import androidx.media3.common.util.UnstableApi
|
||||
import androidx.media3.extractor.text.DefaultSubtitleParserFactory
|
||||
import androidx.media3.extractor.text.SubtitleParser
|
||||
import com.edde746.plezy.libass.media.AssHandler
|
||||
|
||||
@UnstableApi
|
||||
class AssSubtitleParserFactory(private val assHandler: AssHandler) : SubtitleParser.Factory {
|
||||
|
||||
private val defaultSubtitleParserFactory = DefaultSubtitleParserFactory()
|
||||
|
||||
override fun supportsFormat(format: Format): Boolean = defaultSubtitleParserFactory.supportsFormat(format)
|
||||
|
||||
override fun getCueReplacementBehavior(format: Format): Int = defaultSubtitleParserFactory.getCueReplacementBehavior(format)
|
||||
|
||||
override fun create(format: Format): SubtitleParser = if (format.sampleMimeType == MimeTypes.TEXT_SSA) {
|
||||
val embeddedSubtitles = MimeTypes.VIDEO_MATROSKA
|
||||
.contentEquals(format.containerMimeType)
|
||||
val track = assHandler.createTrack(format)
|
||||
if (embeddedSubtitles) {
|
||||
// Embedded dialogue lines reach libass via AssTrackOutput; nothing to parse here.
|
||||
AssNoOpSubtitleParser()
|
||||
} else {
|
||||
AssFullSubtitleParser(track)
|
||||
}
|
||||
} else {
|
||||
defaultSubtitleParserFactory.create(format)
|
||||
}
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
package com.edde746.plezy.libass.media.text
|
||||
|
||||
import androidx.media3.common.C
|
||||
import androidx.media3.common.util.UnstableApi
|
||||
import androidx.media3.extractor.ExtractorOutput
|
||||
import androidx.media3.extractor.TrackOutput
|
||||
import com.edde746.plezy.libass.media.AssHandler
|
||||
import com.edde746.plezy.libass.media.extractor.AssMatroskaExtractor
|
||||
|
||||
/**
|
||||
* This class is only used by the overlay renderer. It's needed to get the start time of the subtitles.
|
||||
*/
|
||||
@UnstableApi
|
||||
class AssSubtitleExtractorOutput(
|
||||
private val delegate: ExtractorOutput,
|
||||
private val assHandler: AssHandler,
|
||||
private val extractor: AssMatroskaExtractor
|
||||
) : ExtractorOutput by delegate {
|
||||
override fun track(id: Int, type: Int): TrackOutput = if (type == C.TRACK_TYPE_TEXT) {
|
||||
// We can't know at this time if the subtitle track is ASS or other format, so we wrap
|
||||
// every subtitle track
|
||||
AssTrackOutput(delegate.track(id, type), assHandler, extractor)
|
||||
} else {
|
||||
delegate.track(id, type)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
package com.edde746.plezy.libass.media.text
|
||||
|
||||
import androidx.media3.common.C
|
||||
import androidx.media3.common.Format
|
||||
import androidx.media3.common.MimeTypes
|
||||
import androidx.media3.common.util.UnstableApi
|
||||
import androidx.media3.common.util.Util
|
||||
import androidx.media3.extractor.TrackOutput
|
||||
import com.edde746.plezy.libass.media.AssHandler
|
||||
import com.edde746.plezy.libass.media.extractor.AssMatroskaExtractor
|
||||
import java.util.regex.Pattern
|
||||
|
||||
/**
|
||||
* This class is only used by the overlay renderer. It's needed to get the start time of the subtitles.
|
||||
*/
|
||||
@UnstableApi
|
||||
class AssTrackOutput(
|
||||
private val delegate: TrackOutput,
|
||||
private val assHandler: AssHandler,
|
||||
private val extractor: AssMatroskaExtractor
|
||||
) : TrackOutput by delegate {
|
||||
|
||||
private var isAss = false
|
||||
|
||||
private var trackId: String? = null
|
||||
|
||||
override fun format(format: Format) {
|
||||
if (format.sampleMimeType == MimeTypes.TEXT_SSA || format.codecs == MimeTypes.TEXT_SSA) {
|
||||
isAss = true
|
||||
trackId = format.id
|
||||
}
|
||||
delegate.format(format)
|
||||
}
|
||||
|
||||
override fun sampleMetadata(
|
||||
timeUs: Long,
|
||||
flags: Int,
|
||||
size: Int,
|
||||
offset: Int,
|
||||
cryptoData: TrackOutput.CryptoData?
|
||||
) {
|
||||
if (isAss && timeUs.isValidTs) {
|
||||
val sample = extractor.subtitleSample
|
||||
val endIndex = findTokenIndex(sample.data, 1)
|
||||
val lineIndex = findTokenIndex(sample.data, 2)
|
||||
|
||||
val rawDuration = sample.data.decodeToString(endIndex, lineIndex - 1)
|
||||
val durationUs = parseTimecodeUs(rawDuration)
|
||||
|
||||
assHandler.readTrackDialogue(
|
||||
trackId = trackId,
|
||||
start = timeUs / 1000,
|
||||
duration = durationUs / 1000,
|
||||
data = sample.data,
|
||||
offset = lineIndex,
|
||||
length = sample.limit() - lineIndex
|
||||
)
|
||||
}
|
||||
delegate.sampleMetadata(timeUs, flags, size, offset, cryptoData)
|
||||
}
|
||||
|
||||
private fun parseTimecodeUs(timeString: String): Long {
|
||||
val matcher = SSA_TIMECODE_PATTERN.matcher(timeString.trim { it <= ' ' })
|
||||
if (!matcher.matches()) {
|
||||
return C.TIME_UNSET
|
||||
}
|
||||
var timestampUs =
|
||||
Util.castNonNull(matcher.group(1)).toLong() * 60 * 60 * C.MICROS_PER_SECOND
|
||||
timestampUs += Util.castNonNull(matcher.group(2)).toLong() * 60 * C.MICROS_PER_SECOND
|
||||
timestampUs += Util.castNonNull(matcher.group(3)).toLong() * C.MICROS_PER_SECOND
|
||||
timestampUs += Util.castNonNull(matcher.group(4)).toLong() * 10000
|
||||
return timestampUs
|
||||
}
|
||||
|
||||
private fun findTokenIndex(array: ByteArray, tokenNumber: Int): Int {
|
||||
if (tokenNumber == 0) return 0
|
||||
var tokensFound = 0
|
||||
array.forEachIndexed { index, byte ->
|
||||
if (byte == COMMA && ++tokensFound == tokenNumber) {
|
||||
return index + 1
|
||||
}
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
private val Long.isValidTs
|
||||
get() = this != C.TIME_UNSET
|
||||
|
||||
private companion object {
|
||||
val SSA_TIMECODE_PATTERN: Pattern =
|
||||
Pattern.compile("""(?:(\d+):)?(\d+):(\d+)[:.](\d+)""")
|
||||
|
||||
const val COMMA = ','.code.toByte()
|
||||
}
|
||||
}
|
||||
+1526
File diff suppressed because it is too large
Load Diff
+177
@@ -0,0 +1,177 @@
|
||||
package com.edde746.plezy.libass.media.widget
|
||||
|
||||
import android.app.ActivityManager
|
||||
import android.content.Context
|
||||
import android.graphics.PixelFormat
|
||||
import android.view.SurfaceHolder
|
||||
import android.view.SurfaceView
|
||||
import androidx.media3.common.util.UnstableApi
|
||||
import com.edde746.plezy.libass.media.AssHandler
|
||||
|
||||
/**
|
||||
* Subtitle overlay rendered through a dedicated [SurfaceView] layer.
|
||||
*
|
||||
* Uses a SurfaceFlinger layer directly, which lets the atlas-based pipeline
|
||||
* vsync-align its swap with the corresponding video frame via
|
||||
* `eglPresentationTimeANDROID`.
|
||||
*/
|
||||
@UnstableApi
|
||||
class AssSubtitleSurfaceView(
|
||||
context: Context,
|
||||
private val assHandler: AssHandler
|
||||
) : SurfaceView(context),
|
||||
SurfaceHolder.Callback {
|
||||
|
||||
private var pipeline: AssAtlasPipeline? = null
|
||||
private var preSwapProbe: ((Long) -> Unit)? = null
|
||||
|
||||
init {
|
||||
setZOrderMediaOverlay(true)
|
||||
holder.setFormat(PixelFormat.TRANSLUCENT)
|
||||
holder.addCallback(this)
|
||||
}
|
||||
|
||||
/**
|
||||
* Hook invoked on the GL thread just before each pinned overlay swap, with that swap's target
|
||||
* releaseTimeNs. Set by the app's latency calibrator; cleared (null) once it converges.
|
||||
* Survives pipeline recreation (re-applied in [surfaceCreated]).
|
||||
*/
|
||||
fun setPreSwapProbe(hook: ((Long) -> Unit)?) {
|
||||
preSwapProbe = hook
|
||||
pipeline?.preSwapProbe = hook
|
||||
}
|
||||
|
||||
fun requestRender(presentationTimeUs: Long, releaseTimeNs: Long) {
|
||||
pipeline?.requestRender(presentationTimeUs, releaseTimeNs)
|
||||
}
|
||||
|
||||
/** Re-renders the last position, e.g. after margin changes while paused. */
|
||||
fun invalidateSubtitles() {
|
||||
pipeline?.invalidate()
|
||||
}
|
||||
|
||||
/** Vsync-pinned swaps performed by the current pipeline. */
|
||||
val swapCount: Long get() = pipeline?.swapCount ?: 0L
|
||||
|
||||
/** Pinned swaps that finished past the swap-time budget (possible missed vsync). */
|
||||
val lateSwapCount: Long get() = pipeline?.lateSwapCount ?: 0L
|
||||
|
||||
/** Worst observed swap lateness past the target release time, in milliseconds. */
|
||||
val maxLateMs: Long get() = pipeline?.maxLateMs ?: 0L
|
||||
|
||||
/** Total libass renders performed by the current pipeline. */
|
||||
val renderCount: Long get() = pipeline?.renderCount ?: 0L
|
||||
|
||||
/** Renders where libass reported changed content. */
|
||||
val changedRenderCount: Long get() = pipeline?.changedRenderCount ?: 0L
|
||||
|
||||
/** Renders that overflowed the atlas/vertex capacity. */
|
||||
val overflowCount: Long get() = pipeline?.overflowCount ?: 0L
|
||||
|
||||
/** Duration of the most recent libass render, in milliseconds. */
|
||||
val lastLibassMs: Long get() = pipeline?.lastLibassMs ?: 0L
|
||||
|
||||
/** Worst observed libass render duration, in milliseconds. */
|
||||
val maxLibassMs: Long get() = pipeline?.maxLibassMs ?: 0L
|
||||
|
||||
/** Changed-render duration histogram: [≤10ms, ≤25ms, ≤42ms, ≤84ms, >84ms]. */
|
||||
val libassMsHistogram: List<Long> get() = pipeline?.libassMsHistogram ?: emptyList()
|
||||
|
||||
/** Requests served from a pre-rendered (speculative) frame. */
|
||||
val specHits: Long get() = pipeline?.specHits ?: 0L
|
||||
|
||||
/** Requests where speculation existed but didn't match (seek, state change). */
|
||||
val specMisses: Long get() = pipeline?.specMisses ?: 0L
|
||||
|
||||
/** Speculation rounds skipped (paused, pending request, no confident cadence). */
|
||||
val specSkips: Long get() = pipeline?.specSkips ?: 0L
|
||||
|
||||
/** changed==0/no-output renders forced into explicit transparent swaps. */
|
||||
val blankClearCount: Long get() = pipeline?.blankClearCount ?: 0L
|
||||
|
||||
/** Cache-warming prefetch renders of upcoming events. */
|
||||
val prefetchCount: Long get() = pipeline?.prefetchCount ?: 0L
|
||||
|
||||
/** Frame requests replaced before the libass worker serviced them. */
|
||||
val coalescedRequestCount: Long get() = pipeline?.coalescedRequestCount ?: 0L
|
||||
|
||||
/** Completed libass results discarded because renderer state changed before handoff. */
|
||||
val staleGenerationCount: Long get() = pipeline?.staleGenerationCount ?: 0L
|
||||
|
||||
/** Completed overlay snapshots skipped because newer completed content superseded them. */
|
||||
val supersededBeforeSwapCount: Long get() = pipeline?.supersededBeforeSwapCount ?: 0L
|
||||
|
||||
/** Completed overlay snapshots skipped because renderer state changed before swap. */
|
||||
val staleBeforeSwapCount: Long get() = pipeline?.staleBeforeSwapCount ?: 0L
|
||||
|
||||
/** Minimum lead of changed-content pinned swaps vs the video frame's release
|
||||
* time, in ms (negative = late); null until one happened. */
|
||||
val minLeadChangedMs: Long? get() = pipeline?.minLeadChangedMs?.takeIf { it != Long.MAX_VALUE }
|
||||
|
||||
/** Current compositor phase lead applied by the atlas pipeline, in ms. */
|
||||
val phaseLeadMs: Long get() = pipeline?.phaseLeadMs ?: 0L
|
||||
|
||||
/** Most recent pinned swap lead vs its target release time, in ms. */
|
||||
val lastSwapLeadMs: Long get() = pipeline?.lastSwapLeadMs ?: 0L
|
||||
|
||||
/** Most recent pinned swap headroom when GL work started, in ms. */
|
||||
val lastSwapHeadroomMs: Long get() = pipeline?.lastSwapHeadroomMs ?: 0L
|
||||
|
||||
/** Most recent phase-led wait before swap, in ms. */
|
||||
val lastScheduledSleepMs: Long get() = pipeline?.lastScheduledSleepMs ?: 0L
|
||||
|
||||
/** Adaptive swap lead actually in effect (half the measured refresh interval), in ms. */
|
||||
val swapLeadMs: Long get() = pipeline?.swapLeadMs ?: 0L
|
||||
|
||||
/** True once the EGL frame-timestamp extension is probed and capturing present
|
||||
* times (API 26+, real device). False on the emulator / pre-26 / no driver support. */
|
||||
val presentTimingEnabled: Boolean get() = pipeline?.presentTimingEnabled ?: false
|
||||
|
||||
/** Active present-time source, or why it's off (present/comp-start/comp-latch/off:…). */
|
||||
val presentSource: String get() = pipeline?.presentSource ?: "off:no-pipeline"
|
||||
|
||||
/** Actual on-screen present time of the most recent measured swap minus its
|
||||
* target release time, in ms (negative = before the video frame's vsync). The
|
||||
* frame-perfection ground truth; null until a swap has been measured. */
|
||||
val lastPresentErrorMs: Long? get() = pipeline?.lastPresentErrorMs.takeIf { presentMeasuredCount > 0 }
|
||||
|
||||
/** Largest-magnitude present error observed, in ms; null until measured. */
|
||||
val worstPresentErrorMs: Long? get() = pipeline?.worstPresentErrorMs.takeIf { presentMeasuredCount > 0 }
|
||||
|
||||
/** Pinned swaps whose actual present time was read back from SurfaceFlinger. */
|
||||
val presentMeasuredCount: Long get() = pipeline?.presentMeasuredCount ?: 0L
|
||||
|
||||
/** Swaps SurfaceFlinger reported as dropped/never-presented. */
|
||||
val presentInvalidCount: Long get() = pipeline?.presentInvalidCount ?: 0L
|
||||
|
||||
/** Pending present-time reads evicted unread because the ring filled. */
|
||||
val presentDroppedCount: Long get() = pipeline?.presentDroppedCount ?: 0L
|
||||
|
||||
/** Present-error distribution in vsync-interval units:
|
||||
* [≤−1.5, (−1.5,−0.5), (−0.5,+0.5), [+0.5,+1.5), ≥+1.5]. Middle = frame-perfect. */
|
||||
val presentErrorHistogram: List<Long> get() = pipeline?.presentErrorHistogram ?: emptyList()
|
||||
|
||||
override fun surfaceCreated(holder: SurfaceHolder) {
|
||||
val rect = holder.surfaceFrame
|
||||
assHandler.setOverlaySurfaceSize(rect.width(), rect.height())
|
||||
val lowRam = (context.getSystemService(Context.ACTIVITY_SERVICE) as? ActivityManager)
|
||||
?.isLowRamDevice ?: false
|
||||
// Display refresh drives the present-error histogram's vsync-relative buckets.
|
||||
val refreshRate = display?.refreshRate?.takeIf { it >= 1f } ?: 60f
|
||||
pipeline = AssAtlasPipeline(holder.surface, rect.width(), rect.height(), assHandler, lowRam, refreshRate)
|
||||
.also {
|
||||
it.preSwapProbe = preSwapProbe
|
||||
it.start()
|
||||
}
|
||||
}
|
||||
|
||||
override fun surfaceChanged(holder: SurfaceHolder, format: Int, width: Int, height: Int) {
|
||||
assHandler.setOverlaySurfaceSize(width, height)
|
||||
pipeline?.onSurfaceSizeChanged(width, height)
|
||||
}
|
||||
|
||||
override fun surfaceDestroyed(holder: SurfaceHolder) {
|
||||
pipeline?.releaseAndWait()
|
||||
pipeline = null
|
||||
}
|
||||
}
|
||||
+287
@@ -0,0 +1,287 @@
|
||||
package com.edde746.plezy.libass.media.widget
|
||||
|
||||
import com.edde746.plezy.libass.AssAtlasFrame
|
||||
|
||||
/**
|
||||
* Decision core of the speculative render-ahead pipeline.
|
||||
*
|
||||
* The problem it solves: ExoPlayer's frame-metadata callback gives only ~40 ms
|
||||
* between "video frame scheduled" and that frame's vsync, while a changed-content
|
||||
* libass render can take longer — so a render started at the callback lands a
|
||||
* frame (or more) late. The engine renders the *predicted next* PTS right after
|
||||
* servicing the current one, in the dead time between frames; when the next
|
||||
* request matches the prediction, only the GL upload+swap (~6–11 ms) sits inside
|
||||
* the deadline.
|
||||
*
|
||||
* Pure logic, single-threaded (the libass worker) — rendering, buffers and GL
|
||||
* are behind injected closures, so the state machine is unit-testable. Only the
|
||||
* stat fields are read from other threads.
|
||||
*
|
||||
* Slot ownership invariant: a slot handed to GL ([lastPostedSlot]) or currently
|
||||
* read by GL ([glTakenSlot]) is never chosen as a render target. With 3 slots and
|
||||
* at most 2 exclusions a target always exists; with 2 slots (low-RAM devices)
|
||||
* speculation must be disabled and the legacy alternation behavior falls out.
|
||||
*
|
||||
* Key subtlety inherited from libass: `ass_render_frame`'s `changed` flag compares
|
||||
* against libass's *previous render* — which, with speculation, may be content
|
||||
* that never reached the screen. The engine therefore tracks [libassLastSlot]
|
||||
* (the slot holding libass's most recent render output) rather than the last
|
||||
* *posted* slot, and prefers it as the render target: on `changed == 0` the
|
||||
* buffers were untouched and that slot already holds exactly the right content.
|
||||
*/
|
||||
internal class SpecRenderEngine(
|
||||
private val slotCount: Int,
|
||||
private val speculationEnabled: Boolean,
|
||||
/**
|
||||
* Renders the current track at [timeMs] into the slot's buffers. Returns null
|
||||
* when the renderer/track is gone. The closure owns timing/stat accounting.
|
||||
*/
|
||||
private val renderAt: (timeMs: Long, slot: Int) -> AssAtlasFrame?,
|
||||
/**
|
||||
* Renderer identity + state generation as one comparable value. Must change
|
||||
* whenever a speculatively rendered frame could be stale: margins, sizes,
|
||||
* track switches, renderer recreation.
|
||||
*/
|
||||
private val stateGeneration: () -> Long,
|
||||
/** Slot the GL thread most recently took for drawing, or -1. Never write it. */
|
||||
private val glTakenSlot: () -> Int,
|
||||
/** Diagnostic sink for hit/miss/skip decisions; null disables (no string cost). */
|
||||
private val debugLog: ((String) -> Unit)? = null
|
||||
) {
|
||||
|
||||
/** What the caller should do after [service]. */
|
||||
sealed class Outcome {
|
||||
/** Nothing to post (no renderer, or no rendered content exists yet). */
|
||||
object Skip : Outcome()
|
||||
|
||||
/**
|
||||
* Post [slot] to GL. [newContent] means this call wrote fresh content into
|
||||
* the slot (the caller bumps the payload's content seq). [specHit] means the
|
||||
* content was pre-rendered — no libass render ran inside the deadline.
|
||||
*/
|
||||
class Post(val slot: Int, val frame: AssAtlasFrame, val newContent: Boolean, val specHit: Boolean) : Outcome()
|
||||
}
|
||||
|
||||
/** A speculative render that wrote new content into [slot] (bump its seq). */
|
||||
class SpecWrite(val slot: Int, val frame: AssAtlasFrame)
|
||||
|
||||
// Speculation state: content for specPtsUs is pre-rendered and lives either in
|
||||
// specSlot, or — when the spec render returned changed == 0 — is identical to
|
||||
// libassLastSlot's content (specIsLibassLast).
|
||||
private var specPtsUs = UNSET
|
||||
private var specSlot = -1
|
||||
private var specIsLibassLast = false
|
||||
private var specGen = 0L
|
||||
|
||||
// The slot holding libass's most recent render output and its frame.
|
||||
private var libassLastSlot = -1
|
||||
private var libassLastFrame: AssAtlasFrame? = null
|
||||
private var lastPostedSlot = -1
|
||||
|
||||
// Request-cadence estimator over pinned (playing) requests: median of the last
|
||||
// 8 PTS deltas, valid after 4, reset on any non-monotonic or > 250 ms jump.
|
||||
private val deltas = LongArray(DELTA_SAMPLES)
|
||||
private var deltaCount = 0
|
||||
private var deltaIndex = 0
|
||||
private var lastPinnedPtsUs = UNSET
|
||||
|
||||
// Stats; single-writer (the libass thread), read from the stats path.
|
||||
@Volatile
|
||||
var specHits = 0L
|
||||
private set
|
||||
|
||||
@Volatile
|
||||
var specMisses = 0L
|
||||
private set
|
||||
|
||||
@Volatile
|
||||
var specSkips = 0L
|
||||
private set
|
||||
|
||||
@Volatile
|
||||
var blankClearCount = 0L
|
||||
private set
|
||||
|
||||
/**
|
||||
* Services a render request for [ptsUs]. [pinned] is false for invalidate
|
||||
* repaints (paused margin changes etc.), which never feed the cadence
|
||||
* estimator and never count as speculation misses against playback.
|
||||
*/
|
||||
fun service(ptsUs: Long, pinned: Boolean): Outcome {
|
||||
if (pinned) updateDeltaEstimator(ptsUs)
|
||||
|
||||
val ptsMs = toLibassMs(ptsUs)
|
||||
if (specPtsUs != UNSET) {
|
||||
val specPtsMs = toLibassMs(specPtsUs)
|
||||
val genNow = stateGeneration()
|
||||
val hit = genNow == specGen && ptsMs == specPtsMs
|
||||
val slot = if (specIsLibassLast) libassLastSlot else specSlot
|
||||
val frame = libassLastFrame
|
||||
val specPts = specPtsUs
|
||||
specPtsUs = UNSET
|
||||
if (hit && slot >= 0 && frame != null) {
|
||||
specHits++
|
||||
lastPostedSlot = slot
|
||||
debugLog?.invoke(
|
||||
"hit pts=${ptsMs}ms spec=${specPtsMs}ms dUs=${ptsUs - specPts} slot=$slot"
|
||||
)
|
||||
return Outcome.Post(slot, frame, newContent = false, specHit = true)
|
||||
}
|
||||
specMisses++
|
||||
debugLog?.invoke(
|
||||
"miss pts=${ptsMs}ms spec=${specPtsMs}ms dUs=${ptsUs - specPts} " +
|
||||
"gen=${if (genNow == specGen) "ok" else "CHANGED"} slot=$slot frame=${frame != null}"
|
||||
)
|
||||
} else {
|
||||
debugLog?.invoke("no-spec pts=${ptsMs}ms")
|
||||
}
|
||||
|
||||
// On-demand render. For changed == 0 with visible output, the buffers were
|
||||
// untouched and libassLastSlot already holds the right content.
|
||||
val target = renderTargetSlot() ?: return Outcome.Skip
|
||||
val frame = renderAt(ptsMs, target) ?: return Outcome.Skip
|
||||
if (frame.changed == 0) {
|
||||
if (isImplicitBlank(frame)) {
|
||||
blankClearCount++
|
||||
libassLastSlot = target
|
||||
libassLastFrame = frame
|
||||
lastPostedSlot = target
|
||||
return Outcome.Post(target, frame, newContent = true, specHit = false)
|
||||
}
|
||||
val lastSlot = libassLastSlot
|
||||
val lastFrame = libassLastFrame ?: return Outcome.Skip
|
||||
if (lastSlot < 0) return Outcome.Skip
|
||||
lastPostedSlot = lastSlot
|
||||
return Outcome.Post(lastSlot, lastFrame, newContent = false, specHit = false)
|
||||
}
|
||||
libassLastSlot = target
|
||||
libassLastFrame = frame
|
||||
lastPostedSlot = target
|
||||
return Outcome.Post(target, frame, newContent = true, specHit = false)
|
||||
}
|
||||
|
||||
/**
|
||||
* Speculatively renders the predicted next request ([servicedPtsUs] + median
|
||||
* delta) into a free slot. Call after posting the current frame; skipped while
|
||||
* paused ([pinned] false), when a newer request is already waiting, or while
|
||||
* the cadence estimator has no confident delta.
|
||||
*/
|
||||
fun speculateAfter(servicedPtsUs: Long, pinned: Boolean, hasPending: Boolean): SpecWrite? {
|
||||
if (!speculationEnabled) return null
|
||||
if (!pinned || hasPending || !deltaValid()) {
|
||||
specSkips++
|
||||
debugLog?.invoke(
|
||||
"spec-skip after=${servicedPtsUs / 1000}ms pinned=$pinned pending=$hasPending cadence=${deltaValid()}"
|
||||
)
|
||||
return null
|
||||
}
|
||||
val target = renderTargetSlot() ?: run {
|
||||
specSkips++
|
||||
debugLog?.invoke("spec-skip after=${servicedPtsUs / 1000}ms no-free-slot")
|
||||
return null
|
||||
}
|
||||
val gen = stateGeneration()
|
||||
val specPts = servicedPtsUs + medianDeltaUs()
|
||||
val frame = renderAt(toLibassMs(specPts), target) ?: run {
|
||||
specSkips++
|
||||
return null
|
||||
}
|
||||
specGen = gen
|
||||
specPtsUs = specPts
|
||||
if (frame.changed == 0) {
|
||||
if (isImplicitBlank(frame)) {
|
||||
blankClearCount++
|
||||
libassLastSlot = target
|
||||
libassLastFrame = frame
|
||||
specIsLibassLast = false
|
||||
specSlot = target
|
||||
return SpecWrite(target, frame)
|
||||
}
|
||||
// Content at specPts is identical to libass's last render — nothing was
|
||||
// written; a hit will repost libassLastSlot (and GL will skip the upload).
|
||||
specIsLibassLast = true
|
||||
specSlot = -1
|
||||
return null
|
||||
}
|
||||
libassLastSlot = target
|
||||
libassLastFrame = frame
|
||||
specIsLibassLast = false
|
||||
specSlot = target
|
||||
return SpecWrite(target, frame)
|
||||
}
|
||||
|
||||
private fun isImplicitBlank(frame: AssAtlasFrame): Boolean = !frame.hasOutput && libassLastFrame?.hasOutput == true
|
||||
|
||||
/**
|
||||
* Pre-renders [ptsUs] (an upcoming event's start) purely to warm the
|
||||
* renderer's glyph/bitmap caches before that content is actually needed —
|
||||
* heavy typesetting otherwise pays its cache-cold rasterization (measured
|
||||
* 0.8–2.6 s on weak devices) exactly when the sign appears. The result is
|
||||
* never posted; like any render it becomes libass's last-rendered content,
|
||||
* so any pending speculation is invalidated first (its slot/content
|
||||
* references would go stale).
|
||||
*
|
||||
* Returns the slot written (caller bumps its content seq) or null when
|
||||
* nothing was rendered.
|
||||
*/
|
||||
fun prefetch(ptsUs: Long): SpecWrite? {
|
||||
specPtsUs = UNSET
|
||||
val target = renderTargetSlot() ?: return null
|
||||
val frame = renderAt(toLibassMs(ptsUs), target) ?: return null
|
||||
prefetchCount++
|
||||
if (frame.changed == 0) return null
|
||||
libassLastSlot = target
|
||||
libassLastFrame = frame
|
||||
return SpecWrite(target, frame)
|
||||
}
|
||||
|
||||
/** Cache-warming prefetch renders performed; single-writer, read cross-thread. */
|
||||
@Volatile
|
||||
var prefetchCount = 0L
|
||||
private set
|
||||
|
||||
private fun renderTargetSlot(): Int? {
|
||||
// The GL exclusion only exists in ≥3-slot mode; with 2 slots this reduces to
|
||||
// the legacy "don't write the posted slot" alternation.
|
||||
val taken = if (slotCount > 2) glTakenSlot() else -1
|
||||
val last = libassLastSlot
|
||||
if (last >= 0 && last != lastPostedSlot && last != taken) return last
|
||||
for (s in 0 until slotCount) {
|
||||
if (s != lastPostedSlot && s != taken) return s
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
private fun updateDeltaEstimator(ptsUs: Long) {
|
||||
val prev = lastPinnedPtsUs
|
||||
lastPinnedPtsUs = ptsUs
|
||||
if (prev == UNSET) return
|
||||
val d = ptsUs - prev
|
||||
if (d <= 0 || d > MAX_DELTA_US) {
|
||||
// Seek/discontinuity (or duplicate PTS): forget the cadence.
|
||||
deltaCount = 0
|
||||
deltaIndex = 0
|
||||
return
|
||||
}
|
||||
deltas[deltaIndex] = d
|
||||
deltaIndex = (deltaIndex + 1) % DELTA_SAMPLES
|
||||
if (deltaCount < DELTA_SAMPLES) deltaCount++
|
||||
}
|
||||
|
||||
private fun deltaValid() = deltaCount >= MIN_DELTA_SAMPLES
|
||||
|
||||
private fun medianDeltaUs(): Long {
|
||||
val copy = deltas.copyOfRange(0, deltaCount)
|
||||
copy.sort()
|
||||
return copy[deltaCount / 2]
|
||||
}
|
||||
|
||||
private fun toLibassMs(ptsUs: Long): Long = Math.floorDiv(ptsUs, 1_000L)
|
||||
|
||||
private companion object {
|
||||
const val UNSET = Long.MIN_VALUE
|
||||
const val DELTA_SAMPLES = 8
|
||||
const val MIN_DELTA_SAMPLES = 4
|
||||
const val MAX_DELTA_US = 250_000L
|
||||
}
|
||||
}
|
||||
+405
@@ -0,0 +1,405 @@
|
||||
package com.edde746.plezy.libass.media.widget
|
||||
|
||||
import com.edde746.plezy.libass.AssAtlasFrame
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Assert.assertFalse
|
||||
import org.junit.Assert.assertNotNull
|
||||
import org.junit.Assert.assertNull
|
||||
import org.junit.Assert.assertTrue
|
||||
import org.junit.Test
|
||||
|
||||
/**
|
||||
* Tests for the speculative render-ahead state machine. The render function is
|
||||
* scripted: each call records (timeMs, slot) and returns the next queued frame.
|
||||
*/
|
||||
class SpecRenderEngineTest {
|
||||
|
||||
private class RenderCall(val timeMs: Long, val slot: Int)
|
||||
|
||||
private class Harness(
|
||||
slotCount: Int = 3,
|
||||
speculationEnabled: Boolean = true
|
||||
) {
|
||||
val calls = mutableListOf<RenderCall>()
|
||||
val script = ArrayDeque<AssAtlasFrame?>()
|
||||
var generation = 0L
|
||||
var glTaken = -1
|
||||
|
||||
val engine = SpecRenderEngine(
|
||||
slotCount = slotCount,
|
||||
speculationEnabled = speculationEnabled,
|
||||
renderAt = { timeMs, slot ->
|
||||
calls.add(RenderCall(timeMs, slot))
|
||||
if (script.isEmpty()) changed() else script.removeFirst()
|
||||
},
|
||||
stateGeneration = { generation },
|
||||
glTakenSlot = { glTaken }
|
||||
)
|
||||
|
||||
/** Primes the cadence estimator with [n] steady requests; returns last pts. */
|
||||
fun prime(n: Int = 5, startUs: Long = 0L, deltaUs: Long = 42_000L): Long {
|
||||
var pts = startUs
|
||||
repeat(n) {
|
||||
engine.service(pts, pinned = true)
|
||||
engine.speculateAfter(pts, pinned = true, hasPending = false)
|
||||
pts += deltaUs
|
||||
}
|
||||
return pts - deltaUs
|
||||
}
|
||||
}
|
||||
|
||||
private companion object {
|
||||
const val DELTA = 42_000L
|
||||
|
||||
fun changed(quads: Int = 5) = AssAtlasFrame(2048, 100, quads, 2, 0)
|
||||
|
||||
fun unchanged() = AssAtlasFrame(0, 0, 0, 0, 0, hasOutput = true)
|
||||
|
||||
fun blankUnchanged() = AssAtlasFrame(0, 0, 0, 0, 0, hasOutput = false)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `steady state hits serve without rendering`() {
|
||||
val h = Harness()
|
||||
val last = h.prime()
|
||||
|
||||
// Cadence is confident by now: the last speculateAfter pre-rendered last+Δ.
|
||||
val before = h.calls.size
|
||||
val outcome = h.engine.service(last + DELTA, pinned = true)
|
||||
|
||||
assertTrue(outcome is SpecRenderEngine.Outcome.Post)
|
||||
outcome as SpecRenderEngine.Outcome.Post
|
||||
assertTrue(outcome.specHit)
|
||||
assertFalse(outcome.newContent) // content was written (and seq-bumped) at spec time
|
||||
assertEquals("service must not render on a hit", before, h.calls.size)
|
||||
assertEquals(1L, h.engine.specHits)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `hit tolerates jitter only within the same libass millisecond`() {
|
||||
val h = Harness()
|
||||
val last = h.prime()
|
||||
|
||||
val outcome = h.engine.service(last + DELTA + 999, pinned = true)
|
||||
|
||||
assertTrue((outcome as SpecRenderEngine.Outcome.Post).specHit)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `jitter crossing a libass millisecond boundary misses`() {
|
||||
val h = Harness()
|
||||
val last = h.prime()
|
||||
val before = h.calls.size
|
||||
|
||||
h.script.add(changed())
|
||||
val outcome = h.engine.service(last + DELTA + 1_000, pinned = true)
|
||||
|
||||
assertTrue(outcome is SpecRenderEngine.Outcome.Post)
|
||||
assertFalse((outcome as SpecRenderEngine.Outcome.Post).specHit)
|
||||
assertEquals(before + 1, h.calls.size)
|
||||
assertEquals(1L, h.engine.specMisses)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `negative pts floors to the preceding libass millisecond`() {
|
||||
val h = Harness()
|
||||
|
||||
h.script.add(changed())
|
||||
h.engine.service(-1, pinned = true)
|
||||
|
||||
assertEquals(-1L, h.calls.last().timeMs)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `seek misses and renders on demand into the spec slot`() {
|
||||
val h = Harness()
|
||||
val last = h.prime()
|
||||
val specSlot = h.calls.last().slot // where the speculative content went
|
||||
|
||||
val before = h.calls.size
|
||||
h.script.add(changed())
|
||||
val outcome = h.engine.service(last + 1_000_000, pinned = true)
|
||||
|
||||
assertTrue(outcome is SpecRenderEngine.Outcome.Post)
|
||||
outcome as SpecRenderEngine.Outcome.Post
|
||||
assertFalse(outcome.specHit)
|
||||
assertTrue(outcome.newContent)
|
||||
assertEquals(before + 1, h.calls.size)
|
||||
assertEquals("miss must render into the slot holding libass's last content", specSlot, h.calls.last().slot)
|
||||
assertEquals(1L, h.engine.specMisses)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `miss with changed 0 posts the spec slot not stale screen content`() {
|
||||
// The trap: spec rendered NEW content (never posted); a mismatched request
|
||||
// then returns changed == 0 (identical to libass's LAST render = the spec
|
||||
// content). Posting "last posted" content would be stale — the engine must
|
||||
// post the slot libass last wrote.
|
||||
val h = Harness()
|
||||
val last = h.prime()
|
||||
val specSlot = h.calls.last().slot
|
||||
|
||||
h.script.add(unchanged())
|
||||
val outcome = h.engine.service(last + 200_000, pinned = true) // > ε, miss; estimator resets too
|
||||
|
||||
assertTrue(outcome is SpecRenderEngine.Outcome.Post)
|
||||
outcome as SpecRenderEngine.Outcome.Post
|
||||
assertFalse(outcome.specHit)
|
||||
assertFalse(outcome.newContent)
|
||||
assertEquals("changed==0 must repost libass's last-rendered slot", specSlot, outcome.slot)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `state generation change invalidates speculation`() {
|
||||
val h = Harness()
|
||||
val last = h.prime()
|
||||
|
||||
h.generation++ // margins/zoom/track switch between spec render and the request
|
||||
h.script.add(changed())
|
||||
val before = h.calls.size
|
||||
val outcome = h.engine.service(last + DELTA, pinned = true)
|
||||
|
||||
assertTrue(outcome is SpecRenderEngine.Outcome.Post)
|
||||
assertFalse((outcome as SpecRenderEngine.Outcome.Post).specHit)
|
||||
assertEquals("stale spec must be re-rendered", before + 1, h.calls.size)
|
||||
assertEquals(1L, h.engine.specMisses)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `unpinned requests never feed the estimator or speculate`() {
|
||||
val h = Harness()
|
||||
val last = h.prime()
|
||||
|
||||
// Paused invalidate-repaint at an arbitrary position.
|
||||
h.script.add(changed())
|
||||
h.engine.service(last, pinned = false)
|
||||
val specBefore = h.calls.size
|
||||
assertNull(h.engine.speculateAfter(last, pinned = false, hasPending = false))
|
||||
assertEquals("unpinned must not speculate", specBefore, h.calls.size)
|
||||
|
||||
// Cadence survives the unpinned request: the next pinned pair still hits.
|
||||
h.engine.service(last + DELTA, pinned = true)
|
||||
h.engine.speculateAfter(last + DELTA, pinned = true, hasPending = false)
|
||||
val outcome = h.engine.service(last + 2 * DELTA, pinned = true)
|
||||
assertTrue((outcome as SpecRenderEngine.Outcome.Post).specHit)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `speculation skipped while a request is pending`() {
|
||||
val h = Harness()
|
||||
val last = h.prime()
|
||||
val before = h.calls.size
|
||||
|
||||
assertNull(h.engine.speculateAfter(last, pinned = true, hasPending = true))
|
||||
assertEquals(before, h.calls.size)
|
||||
assertTrue(h.engine.specSkips > 0)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `no speculation until cadence is confident`() {
|
||||
val h = Harness()
|
||||
h.engine.service(0, pinned = true)
|
||||
// Only one delta sample so far (needs 4).
|
||||
h.engine.service(DELTA, pinned = true)
|
||||
val before = h.calls.size
|
||||
assertNull(h.engine.speculateAfter(DELTA, pinned = true, hasPending = false))
|
||||
assertEquals(before, h.calls.size)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `render target avoids posted and gl taken slots`() {
|
||||
val h = Harness()
|
||||
h.script.add(changed())
|
||||
val first = h.engine.service(0, pinned = true) as SpecRenderEngine.Outcome.Post
|
||||
val posted = first.slot
|
||||
|
||||
h.glTaken = (posted + 1) % 3
|
||||
h.script.add(changed())
|
||||
val second = h.engine.service(1_000_000, pinned = true) as SpecRenderEngine.Outcome.Post
|
||||
|
||||
val expected = (0 until 3).first { it != posted && it != h.glTaken }
|
||||
assertEquals(expected, second.slot)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `changed 0 before any content skips`() {
|
||||
val h = Harness()
|
||||
h.script.add(unchanged())
|
||||
assertEquals(SpecRenderEngine.Outcome.Skip, h.engine.service(0, pinned = true))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `changed 0 without output clears previous content`() {
|
||||
val h = Harness()
|
||||
h.script.add(changed())
|
||||
val first = h.engine.service(0, pinned = true) as SpecRenderEngine.Outcome.Post
|
||||
|
||||
h.script.add(blankUnchanged())
|
||||
val outcome = h.engine.service(DELTA, pinned = true) as SpecRenderEngine.Outcome.Post
|
||||
|
||||
assertTrue(outcome.newContent)
|
||||
assertFalse(outcome.specHit)
|
||||
assertFalse(outcome.frame.hasOutput)
|
||||
assertEquals(0, outcome.frame.quadCount)
|
||||
assertTrue("blank frame should use a fresh metadata slot", outcome.slot != first.slot)
|
||||
assertEquals(1L, h.engine.blankClearCount)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `renderer gone skips`() {
|
||||
val h = Harness()
|
||||
h.script.add(null)
|
||||
assertEquals(SpecRenderEngine.Outcome.Skip, h.engine.service(0, pinned = true))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `two slot mode alternates and never speculates`() {
|
||||
val h = Harness(slotCount = 2, speculationEnabled = false)
|
||||
h.script.add(changed())
|
||||
val a = h.engine.service(0, pinned = true) as SpecRenderEngine.Outcome.Post
|
||||
assertNull(h.engine.speculateAfter(0, pinned = true, hasPending = false))
|
||||
|
||||
h.script.add(changed())
|
||||
val b = h.engine.service(DELTA, pinned = true) as SpecRenderEngine.Outcome.Post
|
||||
assertTrue(a.slot != b.slot)
|
||||
assertTrue(a.slot in 0..1 && b.slot in 0..1)
|
||||
assertEquals(0, h.calls.count { it.slot >= 2 })
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `static dialogue hit reposts the same slot without new content`() {
|
||||
// Spec render returns changed == 0 (nothing moves): a hit must repost the
|
||||
// last-rendered slot so GL skips the upload entirely.
|
||||
val h = Harness()
|
||||
h.script.add(changed())
|
||||
val first = h.engine.service(0, pinned = true) as SpecRenderEngine.Outcome.Post
|
||||
var pts = 0L
|
||||
repeat(4) {
|
||||
// build cadence; renders return changed for simplicity
|
||||
pts += DELTA
|
||||
h.engine.service(pts, pinned = true)
|
||||
}
|
||||
h.script.add(unchanged()) // speculative render: nothing changes at pts+Δ
|
||||
assertNull(h.engine.speculateAfter(pts, pinned = true, hasPending = false))
|
||||
|
||||
val before = h.calls.size
|
||||
val outcome = h.engine.service(pts + DELTA, pinned = true) as SpecRenderEngine.Outcome.Post
|
||||
assertTrue(outcome.specHit)
|
||||
assertFalse(outcome.newContent)
|
||||
assertEquals(before, h.calls.size)
|
||||
assertNotNull(first) // first slot existed; hit reposts whichever slot was last rendered
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `speculative changed 0 without output clears on hit`() {
|
||||
val h = Harness()
|
||||
h.script.add(changed())
|
||||
h.engine.service(0, pinned = true)
|
||||
var pts = 0L
|
||||
repeat(4) {
|
||||
pts += DELTA
|
||||
h.script.add(changed())
|
||||
h.engine.service(pts, pinned = true)
|
||||
}
|
||||
|
||||
h.script.add(blankUnchanged())
|
||||
val write = h.engine.speculateAfter(pts, pinned = true, hasPending = false)
|
||||
assertNotNull(write)
|
||||
assertFalse(write!!.frame.hasOutput)
|
||||
|
||||
val before = h.calls.size
|
||||
val outcome = h.engine.service(pts + DELTA, pinned = true) as SpecRenderEngine.Outcome.Post
|
||||
|
||||
assertTrue(outcome.specHit)
|
||||
assertFalse(outcome.newContent)
|
||||
assertFalse(outcome.frame.hasOutput)
|
||||
assertEquals(0, outcome.frame.quadCount)
|
||||
assertEquals(before, h.calls.size)
|
||||
assertEquals(1L, h.engine.blankClearCount)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `speculative write reports slot for seq bump`() {
|
||||
val h = Harness()
|
||||
val last = h.prime()
|
||||
h.script.add(changed())
|
||||
val write = h.engine.speculateAfter(last, pinned = true, hasPending = false)
|
||||
assertNotNull(write)
|
||||
assertEquals(h.calls.last().slot, write!!.slot)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `spec predicts pts plus median delta`() {
|
||||
val h = Harness()
|
||||
val last = h.prime()
|
||||
h.script.add(changed())
|
||||
h.engine.speculateAfter(last, pinned = true, hasPending = false)
|
||||
assertEquals((last + DELTA) / 1000, h.calls.last().timeMs)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `prefetch renders the requested future pts and reports its slot`() {
|
||||
val h = Harness()
|
||||
h.script.add(changed())
|
||||
h.engine.service(0, pinned = true) // some content on screen
|
||||
|
||||
h.script.add(changed())
|
||||
val write = h.engine.prefetch(5_000_000)
|
||||
|
||||
assertNotNull(write)
|
||||
assertEquals(5_000L, h.calls.last().timeMs)
|
||||
assertEquals(h.calls.last().slot, write!!.slot)
|
||||
assertEquals(1L, h.engine.prefetchCount)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `prefetch invalidates pending speculation`() {
|
||||
// Prefetch rewrites libass's last-rendered content (and possibly the spec
|
||||
// slot itself); a stale spec hit would post future-event content.
|
||||
val h = Harness()
|
||||
val last = h.prime() // leaves a valid spec for last+Δ
|
||||
|
||||
h.script.add(changed())
|
||||
h.engine.prefetch(last + 5_000_000)
|
||||
|
||||
val before = h.calls.size
|
||||
h.script.add(changed())
|
||||
val outcome = h.engine.service(last + DELTA, pinned = true)
|
||||
|
||||
assertTrue(outcome is SpecRenderEngine.Outcome.Post)
|
||||
assertFalse((outcome as SpecRenderEngine.Outcome.Post).specHit)
|
||||
assertEquals("post-prefetch request must render on demand", before + 1, h.calls.size)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `render after prefetch with changed 0 posts the prefetched slot`() {
|
||||
// changed==0 after a prefetch means "identical to libass's last render" =
|
||||
// the prefetched content — correct exactly when playback reached the
|
||||
// prefetched event. The engine must post that slot, not older content.
|
||||
val h = Harness()
|
||||
h.script.add(changed())
|
||||
h.engine.service(0, pinned = true)
|
||||
|
||||
h.script.add(changed())
|
||||
val write = h.engine.prefetch(5_000_000)!!
|
||||
|
||||
h.script.add(unchanged())
|
||||
val outcome = h.engine.service(5_000_000, pinned = true) as SpecRenderEngine.Outcome.Post
|
||||
assertEquals(write.slot, outcome.slot)
|
||||
assertFalse(outcome.newContent)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `prefetch avoids posted and gl taken slots`() {
|
||||
val h = Harness()
|
||||
h.script.add(changed())
|
||||
val posted = (h.engine.service(0, pinned = true) as SpecRenderEngine.Outcome.Post).slot
|
||||
h.glTaken = (posted + 1) % 3
|
||||
|
||||
h.script.add(changed())
|
||||
val write = h.engine.prefetch(5_000_000)
|
||||
|
||||
val expected = (0 until 3).first { it != posted && it != h.glTaken }
|
||||
assertEquals(expected, write!!.slot)
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,9 @@ pluginManagement {
|
||||
plugins {
|
||||
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
|
||||
id("com.android.application") version "8.9.1" apply false
|
||||
id("com.android.library") version "8.9.1" apply false
|
||||
id("org.jetbrains.kotlin.android") version "2.1.0" apply false
|
||||
}
|
||||
|
||||
include(":app")
|
||||
include(":libass")
|
||||
|
||||
@@ -788,8 +788,8 @@
|
||||
isa = XCRemoteSwiftPackageReference;
|
||||
repositoryURL = "https://github.com/edde746/MPVKit";
|
||||
requirement = {
|
||||
kind = revision;
|
||||
revision = 1b0134a2ea04a3b967f61a726b5864351280b420;
|
||||
kind = exactVersion;
|
||||
version = 1.0.6;
|
||||
};
|
||||
};
|
||||
/* End XCRemoteSwiftPackageReference section */
|
||||
|
||||
@@ -40,7 +40,8 @@
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/edde746/MPVKit",
|
||||
"state" : {
|
||||
"revision" : "1b0134a2ea04a3b967f61a726b5864351280b420"
|
||||
"revision" : "bed69a1cd381934c987376db1ed30b8c4725ae0c",
|
||||
"version" : "1.0.6"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -40,7 +40,8 @@
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/edde746/MPVKit",
|
||||
"state" : {
|
||||
"revision" : "1b0134a2ea04a3b967f61a726b5864351280b420"
|
||||
"revision" : "bed69a1cd381934c987376db1ed30b8c4725ae0c",
|
||||
"version" : "1.0.6"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -1,9 +1,15 @@
|
||||
import Flutter
|
||||
import UIKit
|
||||
import AVFoundation
|
||||
import MediaPlayer
|
||||
|
||||
@main
|
||||
@objc class AppDelegate: FlutterAppDelegate, FlutterImplicitEngineDelegate {
|
||||
private var deviceAdjustmentChannel: FlutterMethodChannel?
|
||||
private var originalBrightness: CGFloat?
|
||||
private var volumeView: MPVolumeView?
|
||||
private weak var volumeSlider: UISlider?
|
||||
|
||||
override func application(
|
||||
_ application: UIApplication,
|
||||
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
|
||||
@@ -29,5 +35,119 @@ import AVFoundation
|
||||
if let registrar = engineBridge.pluginRegistry.registrar(forPlugin: "MpvPlayerPlugin") {
|
||||
MpvPlayerPlugin.register(with: registrar)
|
||||
}
|
||||
|
||||
if let registrar = engineBridge.pluginRegistry.registrar(forPlugin: "DeviceAdjustmentChannel") {
|
||||
registerDeviceAdjustmentChannel(messenger: registrar.messenger())
|
||||
}
|
||||
}
|
||||
|
||||
private func registerDeviceAdjustmentChannel(messenger: FlutterBinaryMessenger) {
|
||||
let channel = FlutterMethodChannel(name: "com.plezy/device_adjustment", binaryMessenger: messenger)
|
||||
channel.setMethodCallHandler { [weak self] call, result in
|
||||
DispatchQueue.main.async {
|
||||
self?.handleDeviceAdjustmentCall(call, result: result)
|
||||
}
|
||||
}
|
||||
deviceAdjustmentChannel = channel
|
||||
}
|
||||
|
||||
private func handleDeviceAdjustmentCall(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||
switch call.method {
|
||||
case "getBrightness":
|
||||
result(Double(UIScreen.main.brightness))
|
||||
case "setBrightness":
|
||||
guard let value = normalizedArgument(call.arguments, result: result) else { return }
|
||||
if originalBrightness == nil {
|
||||
originalBrightness = UIScreen.main.brightness
|
||||
}
|
||||
UIScreen.main.brightness = CGFloat(value)
|
||||
result(nil)
|
||||
case "restoreBrightness":
|
||||
if let originalBrightness = originalBrightness {
|
||||
UIScreen.main.brightness = originalBrightness
|
||||
self.originalBrightness = nil
|
||||
}
|
||||
result(nil)
|
||||
case "getMediaVolume":
|
||||
result(Double(AVAudioSession.sharedInstance().outputVolume))
|
||||
case "setMediaVolume":
|
||||
guard let value = normalizedArgument(call.arguments, result: result) else { return }
|
||||
if setMediaVolume(value) {
|
||||
result(nil)
|
||||
} else {
|
||||
result(
|
||||
FlutterError(code: "DEVICE_ADJUSTMENT_UNAVAILABLE", message: "System volume slider unavailable", details: nil)
|
||||
)
|
||||
}
|
||||
default:
|
||||
result(FlutterMethodNotImplemented)
|
||||
}
|
||||
}
|
||||
|
||||
private func normalizedArgument(_ arguments: Any?, result: @escaping FlutterResult) -> Double? {
|
||||
guard let value = arguments as? NSNumber else {
|
||||
result(FlutterError(code: "INVALID_ARGUMENT", message: "Expected a numeric value", details: nil))
|
||||
return nil
|
||||
}
|
||||
let doubleValue = value.doubleValue
|
||||
guard doubleValue.isFinite else {
|
||||
result(FlutterError(code: "INVALID_ARGUMENT", message: "Expected a finite numeric value", details: nil))
|
||||
return nil
|
||||
}
|
||||
return min(1.0, max(0.0, doubleValue))
|
||||
}
|
||||
|
||||
private func setMediaVolume(_ value: Double) -> Bool {
|
||||
guard let slider = ensureVolumeSlider() else { return false }
|
||||
slider.setValue(Float(value), animated: false)
|
||||
slider.sendActions(for: .valueChanged)
|
||||
slider.sendActions(for: .touchUpInside)
|
||||
return true
|
||||
}
|
||||
|
||||
private func ensureVolumeSlider() -> UISlider? {
|
||||
if let volumeSlider = volumeSlider { return volumeSlider }
|
||||
|
||||
let volumeView = self.volumeView ?? MPVolumeView(frame: CGRect(x: -1000, y: -1000, width: 1, height: 1))
|
||||
volumeView.showsRouteButton = false
|
||||
volumeView.showsVolumeSlider = true
|
||||
volumeView.alpha = 0.01
|
||||
volumeView.isUserInteractionEnabled = false
|
||||
|
||||
if volumeView.superview == nil {
|
||||
activeWindow?.addSubview(volumeView)
|
||||
}
|
||||
volumeView.layoutIfNeeded()
|
||||
|
||||
self.volumeView = volumeView
|
||||
let slider = findVolumeSlider(in: volumeView)
|
||||
volumeSlider = slider
|
||||
return slider
|
||||
}
|
||||
|
||||
private func findVolumeSlider(in view: UIView) -> UISlider? {
|
||||
if let slider = view as? UISlider { return slider }
|
||||
for subview in view.subviews {
|
||||
if let slider = findVolumeSlider(in: subview) { return slider }
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
private var activeWindow: UIWindow? {
|
||||
if #available(iOS 13.0, *) {
|
||||
for scene in UIApplication.shared.connectedScenes {
|
||||
guard let windowScene = scene as? UIWindowScene else { continue }
|
||||
if let keyWindow = windowScene.windows.first(where: { $0.isKeyWindow }) {
|
||||
return keyWindow
|
||||
}
|
||||
}
|
||||
for scene in UIApplication.shared.connectedScenes {
|
||||
guard let windowScene = scene as? UIWindowScene, let window = windowScene.windows.first else { continue }
|
||||
return window
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
return UIApplication.shared.windows.first(where: { $0.isKeyWindow }) ?? UIApplication.shared.windows.first
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"colors" : [
|
||||
{
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0xF8",
|
||||
"green" : "0xF7",
|
||||
"red" : "0xF7"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
},
|
||||
{
|
||||
"appearances" : [
|
||||
{
|
||||
"appearance" : "luminosity",
|
||||
"value" : "dark"
|
||||
}
|
||||
],
|
||||
"color" : {
|
||||
"color-space" : "srgb",
|
||||
"components" : {
|
||||
"alpha" : "1.000",
|
||||
"blue" : "0x12",
|
||||
"green" : "0x0F",
|
||||
"red" : "0x0E"
|
||||
}
|
||||
},
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,7 @@
|
||||
<dependencies>
|
||||
<deployment identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12089"/>
|
||||
<capability name="Named colors" minToolsVersion="9.0"/>
|
||||
</dependencies>
|
||||
<scenes>
|
||||
<!--View Controller-->
|
||||
@@ -19,7 +20,7 @@
|
||||
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4">
|
||||
</imageView>
|
||||
</subviews>
|
||||
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<color key="backgroundColor" name="LaunchBackground"/>
|
||||
<constraints>
|
||||
<constraint firstItem="YRO-k0-Ey4" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="1a2-6s-vTC"/>
|
||||
<constraint firstItem="YRO-k0-Ey4" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="4X2-HB-R7a"/>
|
||||
@@ -33,5 +34,8 @@
|
||||
</scenes>
|
||||
<resources>
|
||||
<image name="LaunchImage" width="168" height="185"/>
|
||||
<namedColor name="LaunchBackground">
|
||||
<color red="0.96862745098039216" green="0.96862745098039216" blue="0.97254901960784312" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</namedColor>
|
||||
</resources>
|
||||
</document>
|
||||
|
||||
@@ -13,10 +13,19 @@ class MpvPlayerCore: MpvPlayerCoreBase {
|
||||
private var mainBlankView: UIView?
|
||||
private var isVisible = false
|
||||
private var isDisposed = false
|
||||
private var activeDisplayCriteriaKey: String?
|
||||
private static var activeDisplayCriteriaKey: String?
|
||||
private var lastDisplayCriteriaMutation: DisplayCriteriaMutation = .skipped
|
||||
#if os(tvOS)
|
||||
private var displayModeSwitchWaiter: DisplayModeSwitchWaiter?
|
||||
private var displayModeSwitchWaiterGeneration = 0
|
||||
#endif
|
||||
|
||||
var isPipStarting = false
|
||||
|
||||
private static func log(_ message: String) {
|
||||
NSLog("[MpvPlayerCore] %@", message)
|
||||
}
|
||||
|
||||
func initialize(in window: UIWindow) -> Bool {
|
||||
guard !isInitialized else {
|
||||
print("[MpvPlayerCore] Already initialized")
|
||||
@@ -245,6 +254,7 @@ class MpvPlayerCore: MpvPlayerCoreBase {
|
||||
colorMatrix: String?
|
||||
) -> Bool {
|
||||
#if os(tvOS)
|
||||
lastDisplayCriteriaMutation = .skipped
|
||||
guard let window = containerView?.window ?? self.window else { return false }
|
||||
let displayManager = window.avDisplayManager
|
||||
|
||||
@@ -255,7 +265,9 @@ class MpvPlayerCore: MpvPlayerCoreBase {
|
||||
|
||||
let refreshRate = Float(fps > 0 ? fps : 0)
|
||||
let sourceHasDolbyVision = doviProfile > 0
|
||||
guard sourceHasDolbyVision || sigPeak > 0 || gamma != nil || primaries != nil || colorMatrix != nil else {
|
||||
guard
|
||||
refreshRate > 0 || sourceHasDolbyVision || sigPeak > 0 || gamma != nil || primaries != nil || colorMatrix != nil
|
||||
else {
|
||||
clearDisplayCriteria(displayManager, reason: "no display metadata")
|
||||
return false
|
||||
}
|
||||
@@ -315,15 +327,20 @@ class MpvPlayerCore: MpvPlayerCoreBase {
|
||||
|
||||
let criteriaKey =
|
||||
"\(displayRange.rawValue)|\(refreshRate)|\(width)x\(height)|\(doviProfile)|\(doviLevel)|\(doviCompatibilityId ?? -1)"
|
||||
if activeDisplayCriteriaKey == criteriaKey { return true }
|
||||
if Self.activeDisplayCriteriaKey == criteriaKey && displayManager.preferredDisplayCriteria != nil {
|
||||
lastDisplayCriteriaMutation = .unchanged
|
||||
return true
|
||||
}
|
||||
|
||||
displayManager.preferredDisplayCriteria = AVDisplayCriteria(
|
||||
let displayCriteria = AVDisplayCriteria(
|
||||
refreshRate: refreshRate,
|
||||
formatDescription: formatDescription
|
||||
)
|
||||
activeDisplayCriteriaKey = criteriaKey
|
||||
print(
|
||||
"[MpvPlayerCore] preferredDisplayCriteria set to \(displayRange.rawValue) (source: \(sourceRange.rawValue), fps: \(refreshRate), \(width)x\(height), DV profile: \(doviProfile), level: \(doviLevel), compat: \(doviCompatibilityId ?? -1))"
|
||||
displayManager.preferredDisplayCriteria = displayCriteria
|
||||
Self.activeDisplayCriteriaKey = criteriaKey
|
||||
lastDisplayCriteriaMutation = .set
|
||||
Self.log(
|
||||
"preferredDisplayCriteria set to \(displayRange.rawValue) (source: \(sourceRange.rawValue), fps: \(refreshRate), \(width)x\(height), DV profile: \(doviProfile), level: \(doviLevel), compat: \(doviCompatibilityId ?? -1))"
|
||||
)
|
||||
return true
|
||||
#else
|
||||
@@ -331,6 +348,49 @@ class MpvPlayerCore: MpvPlayerCoreBase {
|
||||
#endif
|
||||
}
|
||||
|
||||
func setServerDisplayCriteriaForPlayback(
|
||||
_ criteria: ServerDisplayCriteria?,
|
||||
extraDelayMs: Int,
|
||||
completion: @escaping () -> Void
|
||||
) {
|
||||
let apply = { [weak self] in
|
||||
guard let self else {
|
||||
completion()
|
||||
return
|
||||
}
|
||||
|
||||
self.setServerDisplayCriteria(criteria) { [weak self] applied in
|
||||
guard let self else {
|
||||
completion()
|
||||
return
|
||||
}
|
||||
|
||||
#if os(tvOS)
|
||||
guard applied || self.lastDisplayCriteriaMutation == .cleared else {
|
||||
completion()
|
||||
return
|
||||
}
|
||||
self.waitForDisplayModeSwitchIfNeeded(extraDelayMs: extraDelayMs, completion: completion)
|
||||
#else
|
||||
completion()
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
if Thread.isMainThread {
|
||||
apply()
|
||||
} else {
|
||||
DispatchQueue.main.async(execute: apply)
|
||||
}
|
||||
}
|
||||
|
||||
private enum DisplayCriteriaMutation {
|
||||
case skipped
|
||||
case unchanged
|
||||
case set
|
||||
case cleared
|
||||
}
|
||||
|
||||
#if os(tvOS)
|
||||
private enum DisplayDynamicRange: String {
|
||||
case sdr = "SDR"
|
||||
@@ -340,10 +400,197 @@ class MpvPlayerCore: MpvPlayerCoreBase {
|
||||
}
|
||||
|
||||
private func clearDisplayCriteria(_ displayManager: AVDisplayManager, reason: String) {
|
||||
if activeDisplayCriteriaKey != nil || displayManager.preferredDisplayCriteria != nil {
|
||||
if Self.activeDisplayCriteriaKey != nil || displayManager.preferredDisplayCriteria != nil {
|
||||
displayManager.preferredDisplayCriteria = nil
|
||||
activeDisplayCriteriaKey = nil
|
||||
print("[MpvPlayerCore] preferredDisplayCriteria cleared (\(reason))")
|
||||
Self.activeDisplayCriteriaKey = nil
|
||||
lastDisplayCriteriaMutation = .cleared
|
||||
Self.log("preferredDisplayCriteria cleared (\(reason))")
|
||||
} else {
|
||||
lastDisplayCriteriaMutation = .unchanged
|
||||
}
|
||||
}
|
||||
|
||||
private func waitForDisplayModeSwitchIfNeeded(extraDelayMs: Int, completion: @escaping () -> Void) {
|
||||
guard let window = containerView?.window ?? self.window else {
|
||||
completion()
|
||||
return
|
||||
}
|
||||
|
||||
let displayManager = window.avDisplayManager
|
||||
let mutation = lastDisplayCriteriaMutation
|
||||
let shouldWaitForStart = mutation == .set || mutation == .cleared
|
||||
if !shouldWaitForStart && !displayManager.isDisplayModeSwitchInProgress {
|
||||
completion()
|
||||
return
|
||||
}
|
||||
|
||||
displayModeSwitchWaiter?.cancel(complete: true)
|
||||
displayModeSwitchWaiterGeneration += 1
|
||||
let waiterGeneration = displayModeSwitchWaiterGeneration
|
||||
let waiter = DisplayModeSwitchWaiter(
|
||||
displayManager: displayManager,
|
||||
shouldWaitForStart: shouldWaitForStart,
|
||||
extraDelayMs: extraDelayMs
|
||||
) { [weak self] in
|
||||
if let self, self.displayModeSwitchWaiterGeneration == waiterGeneration {
|
||||
self.displayModeSwitchWaiter = nil
|
||||
}
|
||||
completion()
|
||||
}
|
||||
displayModeSwitchWaiter = waiter
|
||||
waiter.start()
|
||||
}
|
||||
|
||||
private final class DisplayModeSwitchWaiter {
|
||||
private weak var displayManager: AVDisplayManager?
|
||||
private let shouldWaitForStart: Bool
|
||||
private let extraDelayMs: Int
|
||||
private let completion: () -> Void
|
||||
private var startObserver: NSObjectProtocol?
|
||||
private var endObserver: NSObjectProtocol?
|
||||
private var startWatchdog: DispatchWorkItem?
|
||||
private var endWatchdog: DispatchWorkItem?
|
||||
private var settleWorkItem: DispatchWorkItem?
|
||||
private var finished = false
|
||||
private var completionDelivered = false
|
||||
|
||||
private static let startWindowMs = 500
|
||||
private static let switchWatchdogMs = 8000
|
||||
private static let settleMs = 200
|
||||
|
||||
init(
|
||||
displayManager: AVDisplayManager,
|
||||
shouldWaitForStart: Bool,
|
||||
extraDelayMs: Int,
|
||||
completion: @escaping () -> Void
|
||||
) {
|
||||
self.displayManager = displayManager
|
||||
self.shouldWaitForStart = shouldWaitForStart
|
||||
self.extraDelayMs = max(0, min(extraDelayMs, 10_000))
|
||||
self.completion = completion
|
||||
}
|
||||
|
||||
func start() {
|
||||
guard let displayManager else {
|
||||
finish(waited: false, reason: "manager unavailable")
|
||||
return
|
||||
}
|
||||
|
||||
if displayManager.isDisplayModeSwitchInProgress {
|
||||
beginWaitingForEnd(reason: "already in progress")
|
||||
return
|
||||
}
|
||||
|
||||
guard shouldWaitForStart else {
|
||||
finish(waited: false, reason: "no switch in progress")
|
||||
return
|
||||
}
|
||||
|
||||
let center = NotificationCenter.default
|
||||
startObserver = center.addObserver(
|
||||
forName: .AVDisplayManagerModeSwitchStart,
|
||||
object: nil,
|
||||
queue: .main
|
||||
) { [weak self] _ in
|
||||
self?.beginWaitingForEnd(reason: "start notification")
|
||||
}
|
||||
|
||||
let watchdog = DispatchWorkItem { [weak self] in
|
||||
guard let self else { return }
|
||||
if self.displayManager?.isDisplayModeSwitchInProgress == true {
|
||||
self.beginWaitingForEnd(reason: "progress poll")
|
||||
} else {
|
||||
self.finish(waited: false, reason: "start watchdog")
|
||||
}
|
||||
}
|
||||
startWatchdog = watchdog
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + .milliseconds(Self.startWindowMs), execute: watchdog)
|
||||
}
|
||||
|
||||
func cancel(complete: Bool = false) {
|
||||
finished = true
|
||||
cleanup()
|
||||
if complete { completeOnce() }
|
||||
}
|
||||
|
||||
private func beginWaitingForEnd(reason: String) {
|
||||
guard !finished else { return }
|
||||
startWatchdog?.cancel()
|
||||
startWatchdog = nil
|
||||
if let startObserver {
|
||||
NotificationCenter.default.removeObserver(startObserver)
|
||||
self.startObserver = nil
|
||||
}
|
||||
|
||||
guard displayManager?.isDisplayModeSwitchInProgress == true else {
|
||||
finish(waited: true, reason: "ended before wait (\(reason))")
|
||||
return
|
||||
}
|
||||
|
||||
let center = NotificationCenter.default
|
||||
endObserver = center.addObserver(
|
||||
forName: .AVDisplayManagerModeSwitchEnd,
|
||||
object: nil,
|
||||
queue: .main
|
||||
) { [weak self] _ in
|
||||
self?.finish(waited: true, reason: "end notification")
|
||||
}
|
||||
|
||||
let watchdog = DispatchWorkItem { [weak self] in
|
||||
self?.finish(waited: true, reason: "end watchdog")
|
||||
}
|
||||
endWatchdog = watchdog
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + .milliseconds(Self.switchWatchdogMs), execute: watchdog)
|
||||
}
|
||||
|
||||
private func finish(waited: Bool, reason: String) {
|
||||
guard !finished else { return }
|
||||
finished = true
|
||||
cleanup()
|
||||
|
||||
let delayMs = waited ? Self.settleMs + extraDelayMs : 0
|
||||
MpvPlayerCore.log(
|
||||
"display mode switch wait complete "
|
||||
+ "(\(reason), waited: \(waited), extraDelayMs: \(extraDelayMs))"
|
||||
)
|
||||
guard delayMs > 0 else {
|
||||
completeOnce()
|
||||
return
|
||||
}
|
||||
let workItem = DispatchWorkItem { [weak self] in
|
||||
self?.completeOnce()
|
||||
}
|
||||
settleWorkItem = workItem
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + .milliseconds(delayMs), execute: workItem)
|
||||
}
|
||||
|
||||
private func completeOnce() {
|
||||
guard !completionDelivered else { return }
|
||||
completionDelivered = true
|
||||
settleWorkItem?.cancel()
|
||||
settleWorkItem = nil
|
||||
completion()
|
||||
}
|
||||
|
||||
private func cleanup() {
|
||||
startWatchdog?.cancel()
|
||||
endWatchdog?.cancel()
|
||||
settleWorkItem?.cancel()
|
||||
startWatchdog = nil
|
||||
endWatchdog = nil
|
||||
settleWorkItem = nil
|
||||
if let startObserver {
|
||||
NotificationCenter.default.removeObserver(startObserver)
|
||||
self.startObserver = nil
|
||||
}
|
||||
if let endObserver {
|
||||
NotificationCenter.default.removeObserver(endObserver)
|
||||
self.endObserver = nil
|
||||
}
|
||||
}
|
||||
|
||||
deinit {
|
||||
cancel()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -529,21 +776,37 @@ class MpvPlayerCore: MpvPlayerCoreBase {
|
||||
}
|
||||
#endif
|
||||
|
||||
func dispose() {
|
||||
func dispose(preserveDisplayCriteria: Bool = false) {
|
||||
// Guard double-dispose: the plugin calls dispose() then drops the
|
||||
// strong ref, which fires deinit → dispose() again. The second call
|
||||
// would re-enter and crash on weak-ref formation during dealloc.
|
||||
guard !isDisposed else { return }
|
||||
isDisposed = true
|
||||
|
||||
#if os(tvOS)
|
||||
if preserveDisplayCriteria {
|
||||
Self.log("dispose preserving display criteria (key: \(Self.activeDisplayCriteriaKey ?? "nil"))")
|
||||
}
|
||||
#endif
|
||||
|
||||
// Reset the HDMI mode hint synchronously while self is still alive
|
||||
// and on main. An async-to-main dispatch here would be drained after
|
||||
// dealloc (the plugin sets playerCore = nil right after this call
|
||||
// returns), leaving the link stuck at the last clip's refresh rate.
|
||||
updateDisplayCriteria(
|
||||
doviProfile: 0, doviLevel: 0, doviCompatibilityId: nil,
|
||||
fps: 0, width: 0, height: 0, sigPeak: 0,
|
||||
gamma: nil, primaries: nil, colorMatrix: nil)
|
||||
// During video-to-video replacement, keep the hint so tvOS doesn't
|
||||
// renegotiate back to default before the replacement route can set its
|
||||
// next criteria.
|
||||
if !preserveDisplayCriteria {
|
||||
updateDisplayCriteria(
|
||||
doviProfile: 0, doviLevel: 0, doviCompatibilityId: nil,
|
||||
fps: 0, width: 0, height: 0, sigPeak: 0,
|
||||
gamma: nil, primaries: nil, colorMatrix: nil)
|
||||
}
|
||||
|
||||
#if os(tvOS)
|
||||
displayModeSwitchWaiter?.cancel(complete: true)
|
||||
displayModeSwitchWaiter = nil
|
||||
#endif
|
||||
|
||||
NotificationCenter.default.removeObserver(self)
|
||||
#if os(iOS)
|
||||
@@ -558,7 +821,8 @@ class MpvPlayerCore: MpvPlayerCoreBase {
|
||||
mainBlankView?.removeFromSuperview()
|
||||
mainBlankView = nil
|
||||
isInitialized = false
|
||||
print("[MpvPlayerCore] Disposed")
|
||||
|
||||
Self.log("Disposed")
|
||||
}
|
||||
|
||||
deinit {
|
||||
|
||||
@@ -72,7 +72,7 @@ class MpvPlayerPlugin: NSObject, FlutterPlugin, FlutterStreamHandler, MpvPluginS
|
||||
case "initialize":
|
||||
handleInitialize(result: result)
|
||||
case "dispose":
|
||||
handleDispose(result: result)
|
||||
handleDispose(call: call, result: result)
|
||||
case "setProperty":
|
||||
handleSetProperty(call: call, result: result)
|
||||
case "getProperty":
|
||||
@@ -326,45 +326,27 @@ class MpvPlayerPlugin: NSObject, FlutterPlugin, FlutterStreamHandler, MpvPluginS
|
||||
}
|
||||
}
|
||||
|
||||
private func handleDispose(result: @escaping FlutterResult) {
|
||||
private func handleDispose(call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||
let args = call.arguments as? [String: Any]
|
||||
let preserveDisplayMode = args?["preserveDisplayMode"] as? Bool ?? false
|
||||
DispatchQueue.main.async { [weak self] in
|
||||
guard let self = self else { result(nil); return }
|
||||
NSLog("[MpvPlayerPlugin] dispose preserveDisplayMode=%@", preserveDisplayMode.description)
|
||||
self.pipController?.teardown()
|
||||
self.pipController = nil
|
||||
self.autoPipEnabled = false
|
||||
self.pendingInlineRestoreAfterPip = false
|
||||
self.unregisterSceneActivationObserver()
|
||||
self.stopPipTimebaseSync()
|
||||
self.playerCore?.dispose()
|
||||
self.playerCore?.dispose(preserveDisplayCriteria: preserveDisplayMode)
|
||||
self.playerCore = nil
|
||||
result(nil)
|
||||
}
|
||||
}
|
||||
|
||||
private func handleSetProperty(call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||
guard let args = call.arguments as? [String: Any],
|
||||
let name = args["name"] as? String,
|
||||
let value = args["value"] as? String
|
||||
else {
|
||||
result(
|
||||
FlutterError(
|
||||
code: "INVALID_ARGS", message: "Missing 'name' or 'value' argument",
|
||||
details: nil))
|
||||
return
|
||||
}
|
||||
|
||||
guard let core = playerCore else {
|
||||
result(nil)
|
||||
return
|
||||
}
|
||||
|
||||
core.setPropertyAsync(name, value: value) { [weak self] _ in
|
||||
if name == "pause" {
|
||||
self?.pipController?.invalidatePlaybackState()
|
||||
if core.isPipActive == true { self?.syncPipTimebase() }
|
||||
}
|
||||
result(nil)
|
||||
}
|
||||
func didSetPauseProperty(value: String) {
|
||||
pipController?.invalidatePlaybackState()
|
||||
if playerCore?.isPipActive == true { syncPipTimebase() }
|
||||
}
|
||||
|
||||
private func handleSetDisplayCriteria(call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||
@@ -378,10 +360,12 @@ class MpvPlayerPlugin: NSObject, FlutterPlugin, FlutterStreamHandler, MpvPluginS
|
||||
return
|
||||
}
|
||||
|
||||
let extraDelayMs = int64Value(args["extraDelayMs"]).map { Int(clamping: $0) } ?? 0
|
||||
guard let raw = args["criteria"] as? [String: Any] else {
|
||||
DispatchQueue.main.async {
|
||||
core.setServerDisplayCriteria(nil)
|
||||
result(nil)
|
||||
core.setServerDisplayCriteriaForPlayback(nil, extraDelayMs: extraDelayMs) {
|
||||
result(nil)
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
@@ -398,8 +382,9 @@ class MpvPlayerPlugin: NSObject, FlutterPlugin, FlutterStreamHandler, MpvPluginS
|
||||
colorMatrix: stringValue(raw["matrix"])
|
||||
)
|
||||
DispatchQueue.main.async {
|
||||
core.setServerDisplayCriteria(criteria)
|
||||
result(nil)
|
||||
core.setServerDisplayCriteriaForPlayback(criteria, extraDelayMs: extraDelayMs) {
|
||||
result(nil)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ class AppDatabase extends _$AppDatabase {
|
||||
AppDatabase.forTesting(super.e);
|
||||
|
||||
@override
|
||||
int get schemaVersion => 15;
|
||||
int get schemaVersion => 16;
|
||||
|
||||
@override
|
||||
MigrationStrategy get migration {
|
||||
@@ -214,6 +214,13 @@ class AppDatabase extends _$AppDatabase {
|
||||
() => m.addColumn(downloadedMedia, downloadedMedia.mediaSourceId),
|
||||
);
|
||||
}
|
||||
if (from < 16) {
|
||||
appLogger.i('Adding includeSpecials column to SyncRules (v16 migration)');
|
||||
await _ignoreAlreadyExists(
|
||||
'SyncRules.includeSpecials column',
|
||||
() => m.addColumn(syncRules, syncRules.includeSpecials),
|
||||
);
|
||||
}
|
||||
},
|
||||
);
|
||||
}
|
||||
@@ -532,6 +539,7 @@ class AppDatabase extends _$AppDatabase {
|
||||
required int episodeCount,
|
||||
int mediaIndex = 0,
|
||||
String downloadFilter = 'unwatched',
|
||||
bool includeSpecials = true,
|
||||
}) async {
|
||||
// [insertOnConflictUpdate] defaults the conflict target to the primary
|
||||
// key (`id`), which is auto-incremented — the conflict never triggers
|
||||
@@ -549,6 +557,7 @@ class AppDatabase extends _$AppDatabase {
|
||||
createdAt: DateTime.now().millisecondsSinceEpoch,
|
||||
mediaIndex: Value(mediaIndex),
|
||||
downloadFilter: Value(downloadFilter),
|
||||
includeSpecials: Value(includeSpecials),
|
||||
),
|
||||
onConflict: DoUpdate(
|
||||
(_) => SyncRulesCompanion(
|
||||
@@ -559,6 +568,7 @@ class AppDatabase extends _$AppDatabase {
|
||||
episodeCount: Value(episodeCount),
|
||||
mediaIndex: Value(mediaIndex),
|
||||
downloadFilter: Value(downloadFilter),
|
||||
includeSpecials: Value(includeSpecials),
|
||||
),
|
||||
target: [syncRules.globalKey],
|
||||
),
|
||||
@@ -663,13 +673,18 @@ Future<void> migrateLegacyDesktopDatabase({
|
||||
Future<void> Function(File source, String targetPath)? renameOverride,
|
||||
}) async {
|
||||
final File oldFile;
|
||||
if (sourceOverride != null) {
|
||||
oldFile = sourceOverride;
|
||||
} else {
|
||||
final oldFolder = await getApplicationDocumentsDirectory();
|
||||
oldFile = File(p.join(oldFolder.path, 'plezy_downloads.db'));
|
||||
try {
|
||||
if (sourceOverride != null) {
|
||||
oldFile = sourceOverride;
|
||||
} else {
|
||||
final oldFolder = await getApplicationDocumentsDirectory();
|
||||
oldFile = File(p.join(oldFolder.path, 'plezy_downloads.db'));
|
||||
}
|
||||
if (!await oldFile.exists()) return;
|
||||
} catch (e, st) {
|
||||
appLogger.w('Legacy DB migration skipped before source lookup completed', error: e, stackTrace: st);
|
||||
return;
|
||||
}
|
||||
if (!await oldFile.exists()) return;
|
||||
|
||||
try {
|
||||
if (renameOverride != null) {
|
||||
|
||||
@@ -3150,6 +3150,21 @@ class $SyncRulesTable extends SyncRules
|
||||
requiredDuringInsert: false,
|
||||
defaultValue: const Constant('unwatched'),
|
||||
);
|
||||
static const VerificationMeta _includeSpecialsMeta = const VerificationMeta(
|
||||
'includeSpecials',
|
||||
);
|
||||
@override
|
||||
late final GeneratedColumn<bool> includeSpecials = GeneratedColumn<bool>(
|
||||
'include_specials',
|
||||
aliasedName,
|
||||
false,
|
||||
type: DriftSqlType.bool,
|
||||
requiredDuringInsert: false,
|
||||
defaultConstraints: GeneratedColumn.constraintIsAlways(
|
||||
'CHECK ("include_specials" IN (0, 1))',
|
||||
),
|
||||
defaultValue: const Constant(true),
|
||||
);
|
||||
@override
|
||||
List<GeneratedColumn> get $columns => [
|
||||
id,
|
||||
@@ -3164,6 +3179,7 @@ class $SyncRulesTable extends SyncRules
|
||||
lastExecutedAt,
|
||||
mediaIndex,
|
||||
downloadFilter,
|
||||
includeSpecials,
|
||||
];
|
||||
@override
|
||||
String get aliasedName => _alias ?? actualTableName;
|
||||
@@ -3267,6 +3283,15 @@ class $SyncRulesTable extends SyncRules
|
||||
),
|
||||
);
|
||||
}
|
||||
if (data.containsKey('include_specials')) {
|
||||
context.handle(
|
||||
_includeSpecialsMeta,
|
||||
includeSpecials.isAcceptableOrUnknown(
|
||||
data['include_specials']!,
|
||||
_includeSpecialsMeta,
|
||||
),
|
||||
);
|
||||
}
|
||||
return context;
|
||||
}
|
||||
|
||||
@@ -3324,6 +3349,10 @@ class $SyncRulesTable extends SyncRules
|
||||
DriftSqlType.string,
|
||||
data['${effectivePrefix}download_filter'],
|
||||
)!,
|
||||
includeSpecials: attachedDatabase.typeMapping.read(
|
||||
DriftSqlType.bool,
|
||||
data['${effectivePrefix}include_specials'],
|
||||
)!,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -3346,6 +3375,7 @@ class SyncRuleItem extends DataClass implements Insertable<SyncRuleItem> {
|
||||
final int? lastExecutedAt;
|
||||
final int mediaIndex;
|
||||
final String downloadFilter;
|
||||
final bool includeSpecials;
|
||||
const SyncRuleItem({
|
||||
required this.id,
|
||||
required this.profileId,
|
||||
@@ -3359,6 +3389,7 @@ class SyncRuleItem extends DataClass implements Insertable<SyncRuleItem> {
|
||||
this.lastExecutedAt,
|
||||
required this.mediaIndex,
|
||||
required this.downloadFilter,
|
||||
required this.includeSpecials,
|
||||
});
|
||||
@override
|
||||
Map<String, Expression> toColumns(bool nullToAbsent) {
|
||||
@@ -3377,6 +3408,7 @@ class SyncRuleItem extends DataClass implements Insertable<SyncRuleItem> {
|
||||
}
|
||||
map['media_index'] = Variable<int>(mediaIndex);
|
||||
map['download_filter'] = Variable<String>(downloadFilter);
|
||||
map['include_specials'] = Variable<bool>(includeSpecials);
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -3396,6 +3428,7 @@ class SyncRuleItem extends DataClass implements Insertable<SyncRuleItem> {
|
||||
: Value(lastExecutedAt),
|
||||
mediaIndex: Value(mediaIndex),
|
||||
downloadFilter: Value(downloadFilter),
|
||||
includeSpecials: Value(includeSpecials),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -3417,6 +3450,7 @@ class SyncRuleItem extends DataClass implements Insertable<SyncRuleItem> {
|
||||
lastExecutedAt: serializer.fromJson<int?>(json['lastExecutedAt']),
|
||||
mediaIndex: serializer.fromJson<int>(json['mediaIndex']),
|
||||
downloadFilter: serializer.fromJson<String>(json['downloadFilter']),
|
||||
includeSpecials: serializer.fromJson<bool>(json['includeSpecials']),
|
||||
);
|
||||
}
|
||||
@override
|
||||
@@ -3435,6 +3469,7 @@ class SyncRuleItem extends DataClass implements Insertable<SyncRuleItem> {
|
||||
'lastExecutedAt': serializer.toJson<int?>(lastExecutedAt),
|
||||
'mediaIndex': serializer.toJson<int>(mediaIndex),
|
||||
'downloadFilter': serializer.toJson<String>(downloadFilter),
|
||||
'includeSpecials': serializer.toJson<bool>(includeSpecials),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -3451,6 +3486,7 @@ class SyncRuleItem extends DataClass implements Insertable<SyncRuleItem> {
|
||||
Value<int?> lastExecutedAt = const Value.absent(),
|
||||
int? mediaIndex,
|
||||
String? downloadFilter,
|
||||
bool? includeSpecials,
|
||||
}) => SyncRuleItem(
|
||||
id: id ?? this.id,
|
||||
profileId: profileId ?? this.profileId,
|
||||
@@ -3466,6 +3502,7 @@ class SyncRuleItem extends DataClass implements Insertable<SyncRuleItem> {
|
||||
: this.lastExecutedAt,
|
||||
mediaIndex: mediaIndex ?? this.mediaIndex,
|
||||
downloadFilter: downloadFilter ?? this.downloadFilter,
|
||||
includeSpecials: includeSpecials ?? this.includeSpecials,
|
||||
);
|
||||
SyncRuleItem copyWithCompanion(SyncRulesCompanion data) {
|
||||
return SyncRuleItem(
|
||||
@@ -3491,6 +3528,9 @@ class SyncRuleItem extends DataClass implements Insertable<SyncRuleItem> {
|
||||
downloadFilter: data.downloadFilter.present
|
||||
? data.downloadFilter.value
|
||||
: this.downloadFilter,
|
||||
includeSpecials: data.includeSpecials.present
|
||||
? data.includeSpecials.value
|
||||
: this.includeSpecials,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -3508,7 +3548,8 @@ class SyncRuleItem extends DataClass implements Insertable<SyncRuleItem> {
|
||||
..write('createdAt: $createdAt, ')
|
||||
..write('lastExecutedAt: $lastExecutedAt, ')
|
||||
..write('mediaIndex: $mediaIndex, ')
|
||||
..write('downloadFilter: $downloadFilter')
|
||||
..write('downloadFilter: $downloadFilter, ')
|
||||
..write('includeSpecials: $includeSpecials')
|
||||
..write(')'))
|
||||
.toString();
|
||||
}
|
||||
@@ -3527,6 +3568,7 @@ class SyncRuleItem extends DataClass implements Insertable<SyncRuleItem> {
|
||||
lastExecutedAt,
|
||||
mediaIndex,
|
||||
downloadFilter,
|
||||
includeSpecials,
|
||||
);
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
@@ -3543,7 +3585,8 @@ class SyncRuleItem extends DataClass implements Insertable<SyncRuleItem> {
|
||||
other.createdAt == this.createdAt &&
|
||||
other.lastExecutedAt == this.lastExecutedAt &&
|
||||
other.mediaIndex == this.mediaIndex &&
|
||||
other.downloadFilter == this.downloadFilter);
|
||||
other.downloadFilter == this.downloadFilter &&
|
||||
other.includeSpecials == this.includeSpecials);
|
||||
}
|
||||
|
||||
class SyncRulesCompanion extends UpdateCompanion<SyncRuleItem> {
|
||||
@@ -3559,6 +3602,7 @@ class SyncRulesCompanion extends UpdateCompanion<SyncRuleItem> {
|
||||
final Value<int?> lastExecutedAt;
|
||||
final Value<int> mediaIndex;
|
||||
final Value<String> downloadFilter;
|
||||
final Value<bool> includeSpecials;
|
||||
const SyncRulesCompanion({
|
||||
this.id = const Value.absent(),
|
||||
this.profileId = const Value.absent(),
|
||||
@@ -3572,6 +3616,7 @@ class SyncRulesCompanion extends UpdateCompanion<SyncRuleItem> {
|
||||
this.lastExecutedAt = const Value.absent(),
|
||||
this.mediaIndex = const Value.absent(),
|
||||
this.downloadFilter = const Value.absent(),
|
||||
this.includeSpecials = const Value.absent(),
|
||||
});
|
||||
SyncRulesCompanion.insert({
|
||||
this.id = const Value.absent(),
|
||||
@@ -3586,6 +3631,7 @@ class SyncRulesCompanion extends UpdateCompanion<SyncRuleItem> {
|
||||
this.lastExecutedAt = const Value.absent(),
|
||||
this.mediaIndex = const Value.absent(),
|
||||
this.downloadFilter = const Value.absent(),
|
||||
this.includeSpecials = const Value.absent(),
|
||||
}) : serverId = Value(serverId),
|
||||
ratingKey = Value(ratingKey),
|
||||
globalKey = Value(globalKey),
|
||||
@@ -3605,6 +3651,7 @@ class SyncRulesCompanion extends UpdateCompanion<SyncRuleItem> {
|
||||
Expression<int>? lastExecutedAt,
|
||||
Expression<int>? mediaIndex,
|
||||
Expression<String>? downloadFilter,
|
||||
Expression<bool>? includeSpecials,
|
||||
}) {
|
||||
return RawValuesInsertable({
|
||||
if (id != null) 'id': id,
|
||||
@@ -3619,6 +3666,7 @@ class SyncRulesCompanion extends UpdateCompanion<SyncRuleItem> {
|
||||
if (lastExecutedAt != null) 'last_executed_at': lastExecutedAt,
|
||||
if (mediaIndex != null) 'media_index': mediaIndex,
|
||||
if (downloadFilter != null) 'download_filter': downloadFilter,
|
||||
if (includeSpecials != null) 'include_specials': includeSpecials,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -3635,6 +3683,7 @@ class SyncRulesCompanion extends UpdateCompanion<SyncRuleItem> {
|
||||
Value<int?>? lastExecutedAt,
|
||||
Value<int>? mediaIndex,
|
||||
Value<String>? downloadFilter,
|
||||
Value<bool>? includeSpecials,
|
||||
}) {
|
||||
return SyncRulesCompanion(
|
||||
id: id ?? this.id,
|
||||
@@ -3649,6 +3698,7 @@ class SyncRulesCompanion extends UpdateCompanion<SyncRuleItem> {
|
||||
lastExecutedAt: lastExecutedAt ?? this.lastExecutedAt,
|
||||
mediaIndex: mediaIndex ?? this.mediaIndex,
|
||||
downloadFilter: downloadFilter ?? this.downloadFilter,
|
||||
includeSpecials: includeSpecials ?? this.includeSpecials,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -3691,6 +3741,9 @@ class SyncRulesCompanion extends UpdateCompanion<SyncRuleItem> {
|
||||
if (downloadFilter.present) {
|
||||
map['download_filter'] = Variable<String>(downloadFilter.value);
|
||||
}
|
||||
if (includeSpecials.present) {
|
||||
map['include_specials'] = Variable<bool>(includeSpecials.value);
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
@@ -3708,7 +3761,8 @@ class SyncRulesCompanion extends UpdateCompanion<SyncRuleItem> {
|
||||
..write('createdAt: $createdAt, ')
|
||||
..write('lastExecutedAt: $lastExecutedAt, ')
|
||||
..write('mediaIndex: $mediaIndex, ')
|
||||
..write('downloadFilter: $downloadFilter')
|
||||
..write('downloadFilter: $downloadFilter, ')
|
||||
..write('includeSpecials: $includeSpecials')
|
||||
..write(')'))
|
||||
.toString();
|
||||
}
|
||||
@@ -6842,6 +6896,7 @@ typedef $$SyncRulesTableCreateCompanionBuilder =
|
||||
Value<int?> lastExecutedAt,
|
||||
Value<int> mediaIndex,
|
||||
Value<String> downloadFilter,
|
||||
Value<bool> includeSpecials,
|
||||
});
|
||||
typedef $$SyncRulesTableUpdateCompanionBuilder =
|
||||
SyncRulesCompanion Function({
|
||||
@@ -6857,6 +6912,7 @@ typedef $$SyncRulesTableUpdateCompanionBuilder =
|
||||
Value<int?> lastExecutedAt,
|
||||
Value<int> mediaIndex,
|
||||
Value<String> downloadFilter,
|
||||
Value<bool> includeSpecials,
|
||||
});
|
||||
|
||||
class $$SyncRulesTableFilterComposer
|
||||
@@ -6927,6 +6983,11 @@ class $$SyncRulesTableFilterComposer
|
||||
column: $table.downloadFilter,
|
||||
builder: (column) => ColumnFilters(column),
|
||||
);
|
||||
|
||||
ColumnFilters<bool> get includeSpecials => $composableBuilder(
|
||||
column: $table.includeSpecials,
|
||||
builder: (column) => ColumnFilters(column),
|
||||
);
|
||||
}
|
||||
|
||||
class $$SyncRulesTableOrderingComposer
|
||||
@@ -6997,6 +7058,11 @@ class $$SyncRulesTableOrderingComposer
|
||||
column: $table.downloadFilter,
|
||||
builder: (column) => ColumnOrderings(column),
|
||||
);
|
||||
|
||||
ColumnOrderings<bool> get includeSpecials => $composableBuilder(
|
||||
column: $table.includeSpecials,
|
||||
builder: (column) => ColumnOrderings(column),
|
||||
);
|
||||
}
|
||||
|
||||
class $$SyncRulesTableAnnotationComposer
|
||||
@@ -7053,6 +7119,11 @@ class $$SyncRulesTableAnnotationComposer
|
||||
column: $table.downloadFilter,
|
||||
builder: (column) => column,
|
||||
);
|
||||
|
||||
GeneratedColumn<bool> get includeSpecials => $composableBuilder(
|
||||
column: $table.includeSpecials,
|
||||
builder: (column) => column,
|
||||
);
|
||||
}
|
||||
|
||||
class $$SyncRulesTableTableManager
|
||||
@@ -7098,6 +7169,7 @@ class $$SyncRulesTableTableManager
|
||||
Value<int?> lastExecutedAt = const Value.absent(),
|
||||
Value<int> mediaIndex = const Value.absent(),
|
||||
Value<String> downloadFilter = const Value.absent(),
|
||||
Value<bool> includeSpecials = const Value.absent(),
|
||||
}) => SyncRulesCompanion(
|
||||
id: id,
|
||||
profileId: profileId,
|
||||
@@ -7111,6 +7183,7 @@ class $$SyncRulesTableTableManager
|
||||
lastExecutedAt: lastExecutedAt,
|
||||
mediaIndex: mediaIndex,
|
||||
downloadFilter: downloadFilter,
|
||||
includeSpecials: includeSpecials,
|
||||
),
|
||||
createCompanionCallback:
|
||||
({
|
||||
@@ -7126,6 +7199,7 @@ class $$SyncRulesTableTableManager
|
||||
Value<int?> lastExecutedAt = const Value.absent(),
|
||||
Value<int> mediaIndex = const Value.absent(),
|
||||
Value<String> downloadFilter = const Value.absent(),
|
||||
Value<bool> includeSpecials = const Value.absent(),
|
||||
}) => SyncRulesCompanion.insert(
|
||||
id: id,
|
||||
profileId: profileId,
|
||||
@@ -7139,6 +7213,7 @@ class $$SyncRulesTableTableManager
|
||||
lastExecutedAt: lastExecutedAt,
|
||||
mediaIndex: mediaIndex,
|
||||
downloadFilter: downloadFilter,
|
||||
includeSpecials: includeSpecials,
|
||||
),
|
||||
withReferenceMapper: (p0) => p0
|
||||
.map((e) => (e.readTable(table), BaseReferences(db, table, e)))
|
||||
|
||||
@@ -101,6 +101,7 @@ class SyncRules extends Table {
|
||||
IntColumn get lastExecutedAt => integer().nullable()();
|
||||
IntColumn get mediaIndex => integer().withDefault(const Constant(0))();
|
||||
TextColumn get downloadFilter => text().withDefault(const Constant('unwatched'))();
|
||||
BoolColumn get includeSpecials => boolean().withDefault(const Constant(true))();
|
||||
}
|
||||
|
||||
/// Persisted media-server connections.
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'focus_theme.dart';
|
||||
|
||||
/// Exposes the focus state of an enclosing focus wrapper to a descendant
|
||||
/// [CardFocusBorder] that draws the focus border itself.
|
||||
///
|
||||
/// Wrappers ([FocusableWrapper]/[FocusBuilders.buildFocusableCard]) insert this
|
||||
/// instead of painting a border when `delegateFocusBorder` is set, so cards can
|
||||
/// put the border on the exact rect the design highlights (the poster image,
|
||||
/// not the card-plus-captions rect — issue #1278). Only the [CardFocusBorder]
|
||||
/// element registers a dependency, so a focus flip rebuilds just that border
|
||||
/// box: a stable `child:` card subtree (e.g. the TV rail's MediaCard) is not
|
||||
/// rebuilt.
|
||||
class CardFocusScope extends InheritedWidget {
|
||||
const CardFocusScope({super.key, required this.showFocus, required super.child});
|
||||
|
||||
/// Whether the enclosing wrapper currently shows focus visuals
|
||||
/// (focused while in keyboard/d-pad input mode).
|
||||
final bool showFocus;
|
||||
|
||||
/// Null when no delegating wrapper is above (touch mode skips the focus
|
||||
/// wrappers entirely) — [CardFocusBorder] then renders its child bare.
|
||||
static bool? maybeOf(BuildContext context) => context.dependOnInheritedWidgetOfExactType<CardFocusScope>()?.showFocus;
|
||||
|
||||
@override
|
||||
bool updateShouldNotify(CardFocusScope oldWidget) => showFocus != oldWidget.showFocus;
|
||||
}
|
||||
|
||||
/// Draws the focus border around its child based on the enclosing
|
||||
/// [CardFocusScope], letting the card decide which rect gets highlighted.
|
||||
///
|
||||
/// Defaults to an outside stroke so the border hugs the child exactly like the
|
||||
/// full-bleed card treatment (the child's own corner radius nests inside it).
|
||||
/// Decoration only — never affects layout. Renders the child unchanged when no
|
||||
/// scope is present.
|
||||
class CardFocusBorder extends StatelessWidget {
|
||||
const CardFocusBorder({
|
||||
super.key,
|
||||
required this.borderRadius,
|
||||
this.strokeAlign = BorderSide.strokeAlignOutside,
|
||||
required this.child,
|
||||
});
|
||||
|
||||
final double borderRadius;
|
||||
final double strokeAlign;
|
||||
final Widget child;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final showFocus = CardFocusScope.maybeOf(context);
|
||||
if (showFocus == null) return child;
|
||||
|
||||
return AnimatedContainer(
|
||||
duration: FocusTheme.getAnimationDuration(context),
|
||||
curve: Curves.easeOutCubic,
|
||||
foregroundDecoration: FocusTheme.focusDecoration(
|
||||
context,
|
||||
isFocused: showFocus,
|
||||
borderRadius: borderRadius,
|
||||
borderStrokeAlign: strokeAlign,
|
||||
),
|
||||
child: child,
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -99,35 +99,17 @@ class SelectKeyUpSuppressor {
|
||||
|
||||
/// Global helper to suppress the next BACK key-up event.
|
||||
///
|
||||
/// Use this when a modal (bottom sheet, dialog) closes to prevent
|
||||
/// the BACK key-up from propagating to the underlying screen.
|
||||
/// Armed when a modal (dialog, sheet) closes while a back key is still held —
|
||||
/// e.g. by [BackKeySuppressorObserver] when a route pops mid-press — so the
|
||||
/// in-flight key-up doesn't propagate to the underlying screen's back handler.
|
||||
class BackKeyUpSuppressor {
|
||||
static final _instance = _KeyUpSuppressor((k) => k.isBackKey);
|
||||
static bool _closedViaBackKey = false;
|
||||
|
||||
/// Mark that a modal is being closed via back key press.
|
||||
/// Call this before Navigator.pop() in back key handlers.
|
||||
static void markClosedViaBackKey() {
|
||||
_closedViaBackKey = true;
|
||||
}
|
||||
|
||||
/// Request suppression of back key-up events.
|
||||
/// Suppression is skipped if the modal was closed via back key
|
||||
/// (since the key-up already triggered the close).
|
||||
static void suppressBackUntilKeyUp() {
|
||||
if (_closedViaBackKey) {
|
||||
_closedViaBackKey = false;
|
||||
return;
|
||||
}
|
||||
_instance.suppress();
|
||||
}
|
||||
static void suppressBackUntilKeyUp() => _instance.suppress();
|
||||
|
||||
/// Clear any pending suppression. Call when opening a new modal
|
||||
/// to ensure stale suppression from previous closes doesn't affect it.
|
||||
static void clearSuppression() {
|
||||
_instance.clearSuppression();
|
||||
_closedViaBackKey = false;
|
||||
}
|
||||
static void clearSuppression() => _instance.clearSuppression();
|
||||
|
||||
static bool consumeIfSuppressed(KeyEvent event) => _instance.consumeIfSuppressed(event);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../services/device_performance.dart';
|
||||
import '../services/settings_service.dart';
|
||||
import 'focus_theme.dart';
|
||||
|
||||
/// Renders the focus glow for a focused card in the root [Overlay] so it paints
|
||||
@@ -55,10 +57,15 @@ class _FocusGlowOverlayState extends State<FocusGlowOverlay> {
|
||||
/// fades out before the portal is hidden in [_handleFadeEnd].
|
||||
bool _visible = false;
|
||||
|
||||
/// Glow is skipped on the reduced effects tier (blurred shadows + fade
|
||||
/// saveLayer are too expensive on weak GPUs) and when the user turned the
|
||||
/// Focus Glow setting off (#1278). The crisp focus border remains.
|
||||
static bool get _disabled => DevicePerformance.isReduced || !SettingsService.instance.read(SettingsService.focusGlow);
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
if (widget.isFocused) {
|
||||
if (widget.isFocused && !_disabled) {
|
||||
_visible = true;
|
||||
_controller.show();
|
||||
}
|
||||
@@ -67,6 +74,7 @@ class _FocusGlowOverlayState extends State<FocusGlowOverlay> {
|
||||
@override
|
||||
void didUpdateWidget(FocusGlowOverlay oldWidget) {
|
||||
super.didUpdateWidget(oldWidget);
|
||||
if (_disabled) return;
|
||||
if (widget.isFocused == oldWidget.isFocused) return;
|
||||
if (widget.isFocused) {
|
||||
_controller.show();
|
||||
@@ -90,6 +98,8 @@ class _FocusGlowOverlayState extends State<FocusGlowOverlay> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (_disabled) return widget.child;
|
||||
|
||||
// Gate the LeaderLayer to the focused card only: when not focused and not
|
||||
// mid-fade, return the bare child (no OverlayPortal, no leader).
|
||||
if (!widget.isFocused && !_controller.isShowing) {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import '../services/device_performance.dart';
|
||||
import '../theme/mono_tokens.dart';
|
||||
|
||||
class FocusTheme {
|
||||
@@ -17,6 +18,9 @@ class FocusTheme {
|
||||
}
|
||||
|
||||
static Duration getAnimationDuration(BuildContext context) {
|
||||
// Reduced tier: snap focus transitions (scale/border/glow) instead of
|
||||
// animating — each animation frame re-rasterizes the focused card.
|
||||
if (DevicePerformance.isReduced) return Duration.zero;
|
||||
return Theme.of(context).extension<MonoTokens>()?.fast ?? const Duration(milliseconds: 150);
|
||||
}
|
||||
|
||||
|
||||
@@ -585,24 +585,6 @@ abstract class _FocusableTextInputBase extends StatelessWidget {
|
||||
return null;
|
||||
}
|
||||
|
||||
Future<void> _showTvKeyboard(BuildContext context) {
|
||||
if (!enabled) return Future.value();
|
||||
return showTvVirtualKeyboard(
|
||||
context: context,
|
||||
controller: controller,
|
||||
hintText: _keyboardHint(decoration),
|
||||
keyboardType: keyboardType,
|
||||
textInputAction: textInputAction,
|
||||
inputFormatters: inputFormatters,
|
||||
obscureText: obscureText,
|
||||
maxLength: maxLength,
|
||||
maxLines: maxLines,
|
||||
onChanged: onChanged,
|
||||
onSubmitted: onSubmitted,
|
||||
onAction: _handleTvKeyboardAction,
|
||||
);
|
||||
}
|
||||
|
||||
void _handleTvKeyboardAction() {
|
||||
if (onEditingComplete != null) {
|
||||
onEditingComplete!();
|
||||
@@ -666,6 +648,7 @@ class _FocusableTextInputHostState extends State<_FocusableTextInputHost> {
|
||||
late final VoidCallback _focusListener = _handleFocusChanged;
|
||||
final Object _nativeFocusToken = Object();
|
||||
bool _reportedNativeTextInputFocused = false;
|
||||
TvVirtualKeyboardHandle? _tvKeyboardHandle;
|
||||
bool _tvKeyboardOpen = false;
|
||||
bool _tvKeyboardOpenScheduled = false;
|
||||
bool _suppressTvKeyboardAutoOpen = false;
|
||||
@@ -679,6 +662,8 @@ class _FocusableTextInputHostState extends State<_FocusableTextInputHost> {
|
||||
void didUpdateWidget(_FocusableTextInputHost oldWidget) {
|
||||
super.didUpdateWidget(oldWidget);
|
||||
if (oldWidget.input.focusNode != widget.input.focusNode) {
|
||||
// An open keyboard dialog intentionally survives rebuilds and focusNode
|
||||
// swaps; it is closed only when this host unmounts — see dispose.
|
||||
_restoreInstalledHandler();
|
||||
_suppressTvKeyboardAutoOpen = false;
|
||||
_tvKeyboardOpenScheduled = false;
|
||||
@@ -691,6 +676,13 @@ class _FocusableTextInputHostState extends State<_FocusableTextInputHost> {
|
||||
@override
|
||||
void dispose() {
|
||||
_restoreInstalledHandler();
|
||||
// The keyboard is a navigator route — it must not outlive the field that
|
||||
// opened it (e.g. a form section swapped out while the keyboard is up).
|
||||
// Navigator mutation is unsafe during tree finalization; defer a frame.
|
||||
final keyboard = _tvKeyboardHandle;
|
||||
if (keyboard != null) {
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) => keyboard.close());
|
||||
}
|
||||
_ownedFocusNode?.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
@@ -776,8 +768,43 @@ class _FocusableTextInputHostState extends State<_FocusableTextInputHost> {
|
||||
_suppressTvKeyboardForCurrentFocus = false;
|
||||
_suppressTvKeyboardAutoOpen = true;
|
||||
_logTvTextInput('Host.openTvKeyboard node=${_installedFocusNode?.debugLabel}');
|
||||
// The dialog outlives input rebuilds (e.g. a search field whose
|
||||
// onNavigateDown appears once results arrive while the keyboard is up),
|
||||
// so only static configuration may be snapshotted here — the callbacks
|
||||
// must resolve against widget.input at invoke time.
|
||||
final input = widget.input;
|
||||
final keyboard = showTvVirtualKeyboard(
|
||||
context: context,
|
||||
controller: input.controller,
|
||||
hintText: _keyboardHint(input.decoration),
|
||||
keyboardType: input.keyboardType,
|
||||
textInputAction: input.textInputAction,
|
||||
inputFormatters: input.inputFormatters,
|
||||
obscureText: input.obscureText,
|
||||
maxLength: input.maxLength,
|
||||
maxLines: input.maxLines,
|
||||
onChanged: (text) {
|
||||
if (!mounted) return;
|
||||
widget.input.onChanged?.call(text);
|
||||
},
|
||||
onSubmitted: (text) {
|
||||
if (!mounted) return;
|
||||
final current = widget.input;
|
||||
if (current.onSubmitted != null) {
|
||||
current.onSubmitted!(text);
|
||||
} else {
|
||||
current._handleTvKeyboardAction();
|
||||
}
|
||||
},
|
||||
);
|
||||
if (keyboard == null) {
|
||||
_tvKeyboardOpen = false;
|
||||
return;
|
||||
}
|
||||
_tvKeyboardHandle = keyboard;
|
||||
unawaited(
|
||||
widget.input._showTvKeyboard(context).whenComplete(() {
|
||||
keyboard.closed.whenComplete(() {
|
||||
_tvKeyboardHandle = null;
|
||||
if (!mounted) return;
|
||||
_tvKeyboardOpen = false;
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
|
||||
@@ -5,6 +5,7 @@ import 'package:flutter/services.dart';
|
||||
|
||||
import '../widgets/clickable_cursor.dart';
|
||||
import '../utils/text_input_diagnostics.dart';
|
||||
import 'card_focus_scope.dart';
|
||||
import 'dpad_navigator.dart';
|
||||
import 'focus_glow_overlay.dart';
|
||||
import 'focus_theme.dart';
|
||||
@@ -110,14 +111,13 @@ class FocusableWrapper extends StatefulWidget {
|
||||
/// Scale used for the focus animation.
|
||||
final double focusScale;
|
||||
|
||||
/// Stroke alignment for the focus border.
|
||||
final double focusBorderStrokeAlign;
|
||||
|
||||
/// Whether to draw a glow around the focused widget.
|
||||
final bool useFocusGlow;
|
||||
|
||||
/// Whether to draw the focus border as a foreground decoration.
|
||||
final bool useForegroundFocusDecoration;
|
||||
/// Skip drawing the focus border here and expose the focus state through a
|
||||
/// [CardFocusScope] instead, so the child places the border on the exact
|
||||
/// rect it wants highlighted (e.g. MediaCard's poster image).
|
||||
final bool delegateFocusBorder;
|
||||
|
||||
/// Whether descendants can receive focus.
|
||||
/// Set to false when the child widget has its own Focus (e.g. buttons)
|
||||
@@ -150,9 +150,8 @@ class FocusableWrapper extends StatefulWidget {
|
||||
this.focusColor,
|
||||
this.disableScale = false,
|
||||
this.focusScale = FocusTheme.focusScale,
|
||||
this.focusBorderStrokeAlign = BorderSide.strokeAlignInside,
|
||||
this.useFocusGlow = false,
|
||||
this.useForegroundFocusDecoration = false,
|
||||
this.delegateFocusBorder = false,
|
||||
this.descendantsAreFocusable = true,
|
||||
});
|
||||
|
||||
@@ -471,16 +470,6 @@ class _FocusableWrapperState extends State<FocusableWrapper> with SingleTickerPr
|
||||
_animationController.duration = duration;
|
||||
}
|
||||
|
||||
// Choose decoration based on useBackgroundFocus
|
||||
final focusDecoration = widget.useBackgroundFocus
|
||||
? FocusTheme.focusBackgroundDecoration(isFocused: showFocus, borderRadius: widget.borderRadius)
|
||||
: FocusTheme.focusDecoration(
|
||||
context,
|
||||
isFocused: showFocus,
|
||||
borderRadius: widget.borderRadius,
|
||||
color: widget.focusColor,
|
||||
borderStrokeAlign: widget.focusBorderStrokeAlign,
|
||||
);
|
||||
Widget result = Focus(
|
||||
focusNode: _focusNode,
|
||||
autofocus: widget.autofocus,
|
||||
@@ -493,13 +482,25 @@ class _FocusableWrapperState extends State<FocusableWrapper> with SingleTickerPr
|
||||
final shouldScale = showFocus && !widget.disableScale;
|
||||
// The glow (full-bleed cards) is drawn in an overlay above siblings so
|
||||
// it stays symmetric; the in-card decoration only carries the border.
|
||||
Widget card = AnimatedContainer(
|
||||
duration: duration,
|
||||
curve: Curves.easeOutCubic,
|
||||
decoration: widget.useForegroundFocusDecoration ? null : focusDecoration,
|
||||
foregroundDecoration: widget.useForegroundFocusDecoration ? focusDecoration : null,
|
||||
child: widget.child,
|
||||
);
|
||||
Widget card;
|
||||
if (widget.delegateFocusBorder) {
|
||||
card = CardFocusScope(showFocus: showFocus, child: widget.child);
|
||||
} else {
|
||||
final focusDecoration = widget.useBackgroundFocus
|
||||
? FocusTheme.focusBackgroundDecoration(isFocused: showFocus, borderRadius: widget.borderRadius)
|
||||
: FocusTheme.focusDecoration(
|
||||
context,
|
||||
isFocused: showFocus,
|
||||
borderRadius: widget.borderRadius,
|
||||
color: widget.focusColor,
|
||||
);
|
||||
card = AnimatedContainer(
|
||||
duration: duration,
|
||||
curve: Curves.easeOutCubic,
|
||||
decoration: focusDecoration,
|
||||
child: widget.child,
|
||||
);
|
||||
}
|
||||
if (widget.useFocusGlow) {
|
||||
card = FocusGlowOverlay(
|
||||
isFocused: showFocus,
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
@@ -40,6 +42,13 @@ class InputModeTracker extends StatefulWidget {
|
||||
return of(context) == InputMode.keyboard;
|
||||
}
|
||||
|
||||
/// Whether system back must be blocked because the dpad key handler owns
|
||||
/// back navigation: on Android in keyboard mode (TV/gamepad), letting the
|
||||
/// system back through as well double-pops the route.
|
||||
static bool shouldBlockSystemBack(BuildContext context) {
|
||||
return Platform.isAndroid && isKeyboardMode(context);
|
||||
}
|
||||
|
||||
@override
|
||||
State<InputModeTracker> createState() => _InputModeTrackerState();
|
||||
}
|
||||
|
||||
@@ -62,14 +62,15 @@ KeyEventResult handleBackKeyAction(KeyEvent event, VoidCallback onBack) {
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
|
||||
// AppleTV physical-keyboard back (Siri Remote Menu via engine-synthesized
|
||||
// escape): run onBack on KeyDown only; consume KeyUp silently. The
|
||||
// suppressor-based "arm-on-KeyDown, clear-on-KeyUp" pattern leaks here
|
||||
// AppleTV back (Siri Remote Menu via engine-synthesized escape): run onBack
|
||||
// on KeyDown only; consume KeyUp silently. Some engine paths report Menu as
|
||||
// a non-keyboard device, but the same down-only handling is still required.
|
||||
// The suppressor-based "arm-on-KeyDown, clear-on-KeyUp" pattern leaks here
|
||||
// because onBack typically calls Navigator.pop, swapping the focus tree
|
||||
// before the matching KeyUp is dispatched — the orphaned KeyUp then never
|
||||
// reaches a consumeIfSuppressed call, pinning the suppressor armed and
|
||||
// silently swallowing the next press's KeyDown.
|
||||
if (PlatformDetector.isAppleTV() && event.isPhysicalKeyboardEvent) {
|
||||
if (PlatformDetector.isAppleTV()) {
|
||||
if (event is KeyDownEvent) {
|
||||
BackKeyCoordinator.markHandled();
|
||||
onBack();
|
||||
@@ -79,8 +80,6 @@ KeyEventResult handleBackKeyAction(KeyEvent event, VoidCallback onBack) {
|
||||
|
||||
if (event is KeyUpEvent) {
|
||||
BackKeyCoordinator.markHandled();
|
||||
// Mark that we're closing via back key so suppressBackUntilKeyUp() knows to skip
|
||||
BackKeyUpSuppressor.markClosedViaBackKey();
|
||||
onBack();
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
|
||||
+20
-13
@@ -14,7 +14,6 @@
|
||||
"or": "или",
|
||||
"connectToJellyfin": "Свързване с Jellyfin",
|
||||
"useQuickConnect": "Използвай Quick Connect",
|
||||
"quickConnectCode": "Quick Connect код",
|
||||
"quickConnectInstructions": "Отворете Quick Connect в Jellyfin и въведете този код.",
|
||||
"quickConnectWaiting": "Изчакване на одобрение…",
|
||||
"quickConnectCancel": "Отказ",
|
||||
@@ -54,6 +53,7 @@
|
||||
"ok": "OK",
|
||||
"off": "Изкл.",
|
||||
"seasonNumber": "Сезон ${number}",
|
||||
"episodeNumberTitle": "Епизод ${number} - ${title}",
|
||||
"chapterNumber": "Глава ${number}",
|
||||
"reconnect": "Свържи отново",
|
||||
"exit": "Изход",
|
||||
@@ -115,6 +115,12 @@
|
||||
"gridView": "Мрежа",
|
||||
"listView": "Списък",
|
||||
"showHeroSection": "Показвай водеща секция",
|
||||
"continueWatchingAction": "Действие за продължаване на гледането",
|
||||
"continueWatchingPlay": "Пусни",
|
||||
"continueWatchingDetails": "Отвори подробности",
|
||||
"episodeAction": "Действие за епизод",
|
||||
"episodePlay": "Пусни",
|
||||
"episodeDetails": "Отвори подробности",
|
||||
"useGlobalHubs": "Използвай начално оформление",
|
||||
"useGlobalHubsDescription": "Показвай обединени начални хъбове. В противен случай използвай препоръките на библиотеката.",
|
||||
"showServerNameOnHubs": "Показвай името на сървъра в хъбовете",
|
||||
@@ -131,6 +137,8 @@
|
||||
"showSeasonPostersOnTabsDescription": "Показвай постера на всеки сезон над неговия таб",
|
||||
"tvFullCardLayout": "Пълни TV карти",
|
||||
"tvFullCardLayoutDescription": "Използвай TV карти само с изображения, с насложени имена на актьорите",
|
||||
"focusGlow": "Сияние при фокус",
|
||||
"focusGlowDescription": "Показвай меко сияние около фокусираната карта",
|
||||
"hideSpoilers": "Скривай спойлери за негледани епизоди",
|
||||
"hideSpoilersDescription": "Замазвай миниатюри и описания за негледани епизоди",
|
||||
"playerBackend": "Енджин на плеъра",
|
||||
@@ -360,8 +368,8 @@
|
||||
"markAsWatched": "Маркирай като гледано",
|
||||
"markAsUnwatched": "Маркирай като негледано",
|
||||
"removeFromContinueWatching": "Премахни от продължаване на гледането",
|
||||
"viewDetails": "Виж подробности",
|
||||
"goToSeries": "Към сериала",
|
||||
"goToSeason": "Към сезона",
|
||||
"shufflePlay": "Разбъркано възпроизвеждане",
|
||||
"shuffleNotAvailableOffline": "Разбърканото възпроизвеждане не е налично офлайн",
|
||||
"fileInfo": "Информация за файла",
|
||||
@@ -507,7 +515,6 @@
|
||||
"fileInfoNotAvailable": "Информацията за файла не е налична",
|
||||
"errorLoadingFileInfo": "Грешка при зареждане на информация за файла: ${error}",
|
||||
"errorLoadingSeries": "Грешка при зареждане на сериала",
|
||||
"errorLoadingSeason": "Грешка при зареждане на сезона",
|
||||
"musicNotSupported": "Възпроизвеждането на музика все още не се поддържа",
|
||||
"noDescriptionAvailable": "Няма налично описание",
|
||||
"noProfilesAvailable": "Няма налични профили",
|
||||
@@ -553,7 +560,10 @@
|
||||
"position": "Позиция",
|
||||
"assOverride": "ASS презаписване",
|
||||
"bold": "Получер",
|
||||
"italic": "Курсив"
|
||||
"italic": "Курсив",
|
||||
"renderResolution": "Резолюция на изобразяване",
|
||||
"renderResolutionScreen": "Резолюция на екрана",
|
||||
"renderResolutionVideo": "Резолюция на видеото"
|
||||
},
|
||||
"mpvConfig": {
|
||||
"title": "mpv.conf",
|
||||
@@ -751,6 +761,7 @@
|
||||
"rating": "Рейтинг",
|
||||
"communityRating": "Оценка от общността",
|
||||
"criticRating": "Оценка от критиците",
|
||||
"userRating": "Потребителска оценка",
|
||||
"lastPlayed": "Последно възпроизведено",
|
||||
"datePlayed": "Дата на възпроизвеждане",
|
||||
"playCount": "Брой възпроизвеждания",
|
||||
@@ -763,7 +774,8 @@
|
||||
"studio": "Студио",
|
||||
"random": "Случайно",
|
||||
"dateShared": "Дата на споделяне",
|
||||
"latestEpisodeAirDate": "Дата на излъчване на последния епизод"
|
||||
"latestEpisodeAirDate": "Дата на излъчване на последния епизод",
|
||||
"lastEpisodeDateAdded": "Дата на добавяне на последния епизод"
|
||||
}
|
||||
},
|
||||
"about": {
|
||||
@@ -1019,6 +1031,7 @@
|
||||
"unwatchedOnly": "Само негледани",
|
||||
"nextNUnwatched": "Следващите ${count} негледани",
|
||||
"customAmount": "Персонален брой...",
|
||||
"includeSpecials": "Включи специалните",
|
||||
"howManyEpisodes": "Колко епизода?",
|
||||
"itemsQueued": "${count} елемента са добавени в опашката за изтегляне",
|
||||
"keepSynced": "Поддържай синхронизирано",
|
||||
@@ -1179,6 +1192,7 @@
|
||||
"maxCll": "MaxCLL",
|
||||
"maxFall": "MaxFALL",
|
||||
"cacheUsed": "Използван кеш",
|
||||
"cacheLimit": "Лимит на кеша",
|
||||
"speed": "Скорост",
|
||||
"player": "Плеър",
|
||||
"memory": "Памет",
|
||||
@@ -1353,10 +1367,8 @@
|
||||
},
|
||||
"addServer": {
|
||||
"addJellyfinTitle": "Добави Jellyfin сървър",
|
||||
"jellyfinUrlIntro": "Въведете URL адреса на сървъра, напр. `https://jellyfin.example.com`.",
|
||||
"jellyfinUrlsIntro": "Въведете един или повече URL адреси на сървъра, разделени със запетаи. Plezy ще използва достъпния URL адрес с най-ниска латентност.",
|
||||
"serverUrl": "URL адрес на сървъра",
|
||||
"serverUrls": "URL адреси на сървъра",
|
||||
"serverUrlsHelper": "Позволени са няколко URL адреса, разделени със запетаи.",
|
||||
"findServer": "Намери сървър",
|
||||
"searchingLocalServers": "Търсене на локални Jellyfin сървъри...",
|
||||
"localServers": "Локални Jellyfin сървъри",
|
||||
@@ -1369,17 +1381,12 @@
|
||||
"signInFailed": "Входът е неуспешен: ${error}",
|
||||
"quickConnectFailed": "Quick Connect е неуспешен: ${error}",
|
||||
"addPlexTitle": "Вход с Plex",
|
||||
"plexAuthIntro": "Влезте с браузър или QR код.",
|
||||
"plexQRPrompt": "Сканирайте този QR код, за да влезете.",
|
||||
"waitingForPlexConfirmation": "Изчакване plex.tv да потвърди вашия вход…",
|
||||
"pinExpired": "PIN-ът изтече преди вход. Моля, опитайте отново.",
|
||||
"duplicatePlexAccount": "Вече сте влезли в Plex. Излезте, за да смените акаунта.",
|
||||
"failedToRegisterAccount": "Неуспешна регистрация на акаунт: ${error}",
|
||||
"enterJellyfinUrlError": "Въведете URL адреса на вашия Jellyfin сървър",
|
||||
"addConnectionTitle": "Добави връзка",
|
||||
"addConnectionTitleScoped": "Добави към ${name}",
|
||||
"addConnectionIntroGlobal": "Добавете друг медиен сървър. Plex и Jellyfin се показват заедно на началния екран.",
|
||||
"addConnectionIntroScoped": "Добавете нов сървър или използвайте такъв от друг профил.",
|
||||
"signInWithPlexCard": "Вход с Plex",
|
||||
"signInWithPlexCardSubtitle": "Удостоверете това устройство. Споделените сървъри се добавят.",
|
||||
"signInWithPlexCardSubtitleScoped": "Удостоверете Plex акаунт. Домашните потребители стават профили.",
|
||||
|
||||
+20
-13
@@ -14,7 +14,6 @@
|
||||
"or": "eller",
|
||||
"connectToJellyfin": "Forbind til Jellyfin",
|
||||
"useQuickConnect": "Brug Quick Connect",
|
||||
"quickConnectCode": "Quick Connect-kode",
|
||||
"quickConnectInstructions": "Åbn Quick Connect i Jellyfin, og indtast denne kode.",
|
||||
"quickConnectWaiting": "Venter på godkendelse…",
|
||||
"quickConnectCancel": "Annullér",
|
||||
@@ -54,6 +53,7 @@
|
||||
"ok": "OK",
|
||||
"off": "Fra",
|
||||
"seasonNumber": "Sæson ${number}",
|
||||
"episodeNumberTitle": "Episode ${number} - ${title}",
|
||||
"chapterNumber": "Kapitel ${number}",
|
||||
"reconnect": "Genopret forbindelse",
|
||||
"exit": "Afslut",
|
||||
@@ -115,6 +115,12 @@
|
||||
"gridView": "Gitter",
|
||||
"listView": "Liste",
|
||||
"showHeroSection": "Vis hero-sektion",
|
||||
"continueWatchingAction": "Handling for Fortsæt med at se",
|
||||
"continueWatchingPlay": "Afspil",
|
||||
"continueWatchingDetails": "Åbn detaljer",
|
||||
"episodeAction": "Handling for afsnit",
|
||||
"episodePlay": "Afspil",
|
||||
"episodeDetails": "Åbn detaljer",
|
||||
"useGlobalHubs": "Brug startlayout",
|
||||
"useGlobalHubsDescription": "Vis samlet startsideindhold. Brug ellers biblioteksanbefalinger.",
|
||||
"showServerNameOnHubs": "Vis servernavn på hubbe",
|
||||
@@ -131,6 +137,8 @@
|
||||
"showSeasonPostersOnTabsDescription": "Vis hver sæsons plakat over dens fane",
|
||||
"tvFullCardLayout": "Fuldflade TV-kort",
|
||||
"tvFullCardLayoutDescription": "Brug TV-kort kun med billeder og skuespillernavne ovenpå",
|
||||
"focusGlow": "Fokusglød",
|
||||
"focusGlowDescription": "Vis en blød glød omkring det fokuserede kort",
|
||||
"hideSpoilers": "Skjul spoilere for usete episoder",
|
||||
"hideSpoilersDescription": "Slør miniaturebilleder og beskrivelser for usete episoder",
|
||||
"playerBackend": "Afspillerbackend",
|
||||
@@ -360,8 +368,8 @@
|
||||
"markAsWatched": "Markér som set",
|
||||
"markAsUnwatched": "Markér som uset",
|
||||
"removeFromContinueWatching": "Fjern fra Fortsæt med at se",
|
||||
"viewDetails": "Vis detaljer",
|
||||
"goToSeries": "Gå til serie",
|
||||
"goToSeason": "Gå til sæson",
|
||||
"shufflePlay": "Afspil tilfældigt",
|
||||
"shuffleNotAvailableOffline": "Bland afspilning er ikke tilgængelig offline",
|
||||
"fileInfo": "Filinfo",
|
||||
@@ -507,7 +515,6 @@
|
||||
"fileInfoNotAvailable": "Filinfo ikke tilgængelig",
|
||||
"errorLoadingFileInfo": "Fejl ved indlæsning af filinfo: ${error}",
|
||||
"errorLoadingSeries": "Fejl ved indlæsning af serie",
|
||||
"errorLoadingSeason": "Fejl ved indlæsning af sæson",
|
||||
"musicNotSupported": "Musikafspilning understøttes endnu ikke",
|
||||
"noDescriptionAvailable": "Ingen beskrivelse tilgængelig",
|
||||
"noProfilesAvailable": "Ingen profiler tilgængelige",
|
||||
@@ -553,7 +560,10 @@
|
||||
"position": "Position",
|
||||
"assOverride": "ASS-tilsidesættelse",
|
||||
"bold": "Fed",
|
||||
"italic": "Kursiv"
|
||||
"italic": "Kursiv",
|
||||
"renderResolution": "Gengivelsesopløsning",
|
||||
"renderResolutionScreen": "Skærmopløsning",
|
||||
"renderResolutionVideo": "Videoopløsning"
|
||||
},
|
||||
"mpvConfig": {
|
||||
"title": "mpv.conf",
|
||||
@@ -751,6 +761,7 @@
|
||||
"rating": "Vurdering",
|
||||
"communityRating": "Fællesskabsvurdering",
|
||||
"criticRating": "Kritikerbedømmelse",
|
||||
"userRating": "Brugerbedømmelse",
|
||||
"lastPlayed": "Sidst afspillet",
|
||||
"datePlayed": "Afspilningsdato",
|
||||
"playCount": "Antal afspilninger",
|
||||
@@ -763,7 +774,8 @@
|
||||
"studio": "Studie",
|
||||
"random": "Tilfældig",
|
||||
"dateShared": "Delt dato",
|
||||
"latestEpisodeAirDate": "Seneste episodes premieredato"
|
||||
"latestEpisodeAirDate": "Seneste episodes premieredato",
|
||||
"lastEpisodeDateAdded": "Dato for senest tilføjede episode"
|
||||
}
|
||||
},
|
||||
"about": {
|
||||
@@ -1019,6 +1031,7 @@
|
||||
"unwatchedOnly": "Kun usete",
|
||||
"nextNUnwatched": "Næste ${count} usete",
|
||||
"customAmount": "Angiv antal...",
|
||||
"includeSpecials": "Inkludér specials",
|
||||
"howManyEpisodes": "Hvor mange episoder?",
|
||||
"itemsQueued": "${count} elementer sat i kø til download",
|
||||
"keepSynced": "Hold synkroniseret",
|
||||
@@ -1179,6 +1192,7 @@
|
||||
"maxCll": "MaxCLL",
|
||||
"maxFall": "MaxFALL",
|
||||
"cacheUsed": "Brugt cache",
|
||||
"cacheLimit": "Cachegrænse",
|
||||
"speed": "Hastighed",
|
||||
"player": "Afspiller",
|
||||
"memory": "Hukommelse",
|
||||
@@ -1353,10 +1367,8 @@
|
||||
},
|
||||
"addServer": {
|
||||
"addJellyfinTitle": "Tilføj Jellyfin-server",
|
||||
"jellyfinUrlIntro": "Indtast server-URL'en, f.eks. `https://jellyfin.example.com`.",
|
||||
"jellyfinUrlsIntro": "Indtast en eller flere server-URL'er, adskilt med kommaer. Plezy bruger den tilgængelige URL med lavest latenstid.",
|
||||
"serverUrl": "Server-URL",
|
||||
"serverUrls": "Server-URL'er",
|
||||
"serverUrlsHelper": "Flere URL'er er tilladt, adskilt med kommaer.",
|
||||
"findServer": "Find server",
|
||||
"searchingLocalServers": "Søger efter lokale Jellyfin-servere...",
|
||||
"localServers": "Lokale Jellyfin-servere",
|
||||
@@ -1369,17 +1381,12 @@
|
||||
"signInFailed": "Login mislykkedes: ${error}",
|
||||
"quickConnectFailed": "Quick Connect mislykkedes: ${error}",
|
||||
"addPlexTitle": "Log ind med Plex",
|
||||
"plexAuthIntro": "Log ind med en browser eller QR-kode.",
|
||||
"plexQRPrompt": "Scan denne QR-kode for at logge ind.",
|
||||
"waitingForPlexConfirmation": "Venter på at plex.tv bekræfter login…",
|
||||
"pinExpired": "PIN udløb før login. Prøv igen.",
|
||||
"duplicatePlexAccount": "Allerede logget ind på Plex. Log ud for at skifte konto.",
|
||||
"failedToRegisterAccount": "Kunne ikke registrere kontoen: ${error}",
|
||||
"enterJellyfinUrlError": "Angiv URL'en til din Jellyfin-server",
|
||||
"addConnectionTitle": "Tilføj forbindelse",
|
||||
"addConnectionTitleScoped": "Tilføj til ${name}",
|
||||
"addConnectionIntroGlobal": "Tilføj en anden medieserver. Plex og Jellyfin vises sammen på Hjem.",
|
||||
"addConnectionIntroScoped": "Tilføj en ny server, eller lån en fra en anden profil.",
|
||||
"signInWithPlexCard": "Log ind med Plex",
|
||||
"signInWithPlexCardSubtitle": "Godkend denne enhed. Delte servere tilføjes.",
|
||||
"signInWithPlexCardSubtitleScoped": "Godkend en Plex-konto. Home-brugere bliver profiler.",
|
||||
|
||||
+20
-13
@@ -14,7 +14,6 @@
|
||||
"or": "oder",
|
||||
"connectToJellyfin": "Mit Jellyfin verbinden",
|
||||
"useQuickConnect": "Quick Connect verwenden",
|
||||
"quickConnectCode": "Quick Connect-Code",
|
||||
"quickConnectInstructions": "Öffne Quick Connect in Jellyfin und gib diesen Code ein.",
|
||||
"quickConnectWaiting": "Warte auf Bestätigung…",
|
||||
"quickConnectCancel": "Abbrechen",
|
||||
@@ -54,6 +53,7 @@
|
||||
"ok": "OK",
|
||||
"off": "Aus",
|
||||
"seasonNumber": "Staffel ${number}",
|
||||
"episodeNumberTitle": "Episode ${number} - ${title}",
|
||||
"chapterNumber": "Kapitel ${number}",
|
||||
"reconnect": "Erneut verbinden",
|
||||
"exit": "Beenden",
|
||||
@@ -115,6 +115,12 @@
|
||||
"gridView": "Raster",
|
||||
"listView": "Liste",
|
||||
"showHeroSection": "Hero-Bereich anzeigen",
|
||||
"continueWatchingAction": "Aktion für Weiterschauen",
|
||||
"continueWatchingPlay": "Abspielen",
|
||||
"continueWatchingDetails": "Details öffnen",
|
||||
"episodeAction": "Episodenaktion",
|
||||
"episodePlay": "Abspielen",
|
||||
"episodeDetails": "Details öffnen",
|
||||
"useGlobalHubs": "Startlayout verwenden",
|
||||
"useGlobalHubsDescription": "Einheitliche Start-Hubs anzeigen. Sonst Bibliotheksempfehlungen verwenden.",
|
||||
"showServerNameOnHubs": "Servername bei Hubs anzeigen",
|
||||
@@ -131,6 +137,8 @@
|
||||
"showSeasonPostersOnTabsDescription": "Poster jeder Staffel über ihrem Tab anzeigen",
|
||||
"tvFullCardLayout": "Vollflächige TV-Karten",
|
||||
"tvFullCardLayoutDescription": "TV-Karten nur mit Bild verwenden und Darstellernamen einblenden",
|
||||
"focusGlow": "Fokus-Leuchten",
|
||||
"focusGlowDescription": "Sanftes Leuchten um die fokussierte Karte anzeigen",
|
||||
"hideSpoilers": "Spoiler für nicht gesehene Episoden verbergen",
|
||||
"hideSpoilersDescription": "Vorschaubilder und Beschreibungen ungesehener Episoden verwischen",
|
||||
"playerBackend": "Player-Backend",
|
||||
@@ -360,8 +368,8 @@
|
||||
"markAsWatched": "Als gesehen markieren",
|
||||
"markAsUnwatched": "Als ungesehen markieren",
|
||||
"removeFromContinueWatching": "Aus ‚Weiterschauen‘ entfernen",
|
||||
"viewDetails": "Details anzeigen",
|
||||
"goToSeries": "Zur Serie",
|
||||
"goToSeason": "Zur Staffel",
|
||||
"shufflePlay": "Zufallswiedergabe",
|
||||
"shuffleNotAvailableOffline": "Zufallswiedergabe ist offline nicht verfügbar",
|
||||
"fileInfo": "Dateiinfo",
|
||||
@@ -507,7 +515,6 @@
|
||||
"fileInfoNotAvailable": "Dateiinfo nicht verfügbar",
|
||||
"errorLoadingFileInfo": "Fehler beim Laden der Dateiinfo: ${error}",
|
||||
"errorLoadingSeries": "Fehler beim Laden der Serie",
|
||||
"errorLoadingSeason": "Fehler beim Laden der Staffel",
|
||||
"musicNotSupported": "Musikwiedergabe wird noch nicht unterstützt",
|
||||
"noDescriptionAvailable": "Keine Beschreibung verfügbar",
|
||||
"noProfilesAvailable": "Keine Profile verfügbar",
|
||||
@@ -553,7 +560,10 @@
|
||||
"position": "Position",
|
||||
"assOverride": "ASS-Überschreibung",
|
||||
"bold": "Fett",
|
||||
"italic": "Kursiv"
|
||||
"italic": "Kursiv",
|
||||
"renderResolution": "Render-Auflösung",
|
||||
"renderResolutionScreen": "Bildschirmauflösung",
|
||||
"renderResolutionVideo": "Videoauflösung"
|
||||
},
|
||||
"mpvConfig": {
|
||||
"title": "mpv-Konfiguration",
|
||||
@@ -751,6 +761,7 @@
|
||||
"rating": "Bewertung",
|
||||
"communityRating": "Community-Bewertung",
|
||||
"criticRating": "Kritikerbewertung",
|
||||
"userRating": "Benutzerbewertung",
|
||||
"lastPlayed": "Zuletzt abgespielt",
|
||||
"datePlayed": "Wiedergabedatum",
|
||||
"playCount": "Wiedergaben",
|
||||
@@ -763,7 +774,8 @@
|
||||
"studio": "Studio",
|
||||
"random": "Zufällig",
|
||||
"dateShared": "Datum geteilt",
|
||||
"latestEpisodeAirDate": "Letztes Folgenausstrahlungsdatum"
|
||||
"latestEpisodeAirDate": "Letztes Folgenausstrahlungsdatum",
|
||||
"lastEpisodeDateAdded": "Datum der zuletzt hinzugefügten Folge"
|
||||
}
|
||||
},
|
||||
"about": {
|
||||
@@ -1019,6 +1031,7 @@
|
||||
"unwatchedOnly": "Nur ungesehene",
|
||||
"nextNUnwatched": "Nächste ${count} ungesehene",
|
||||
"customAmount": "Eigene Anzahl...",
|
||||
"includeSpecials": "Specials einschließen",
|
||||
"howManyEpisodes": "Wie viele Episoden?",
|
||||
"itemsQueued": "${count} Elemente zum Download eingereiht",
|
||||
"keepSynced": "Synchronisiert halten",
|
||||
@@ -1179,6 +1192,7 @@
|
||||
"maxCll": "MaxCLL",
|
||||
"maxFall": "MaxFALL",
|
||||
"cacheUsed": "Cache genutzt",
|
||||
"cacheLimit": "Cache-Limit",
|
||||
"speed": "Geschwindigkeit",
|
||||
"player": "Player",
|
||||
"memory": "Speicher",
|
||||
@@ -1353,10 +1367,8 @@
|
||||
},
|
||||
"addServer": {
|
||||
"addJellyfinTitle": "Jellyfin-Server hinzufügen",
|
||||
"jellyfinUrlIntro": "Gib die Server-URL ein, z. B. `https://jellyfin.example.com`.",
|
||||
"jellyfinUrlsIntro": "Gib eine oder mehrere Server-URLs ein, getrennt durch Kommas. Plezy verwendet die erreichbare URL mit der geringsten Latenz.",
|
||||
"serverUrl": "Server-URL",
|
||||
"serverUrls": "Server-URLs",
|
||||
"serverUrlsHelper": "Mehrere URLs möglich, durch Kommas getrennt.",
|
||||
"findServer": "Server finden",
|
||||
"searchingLocalServers": "Suche nach lokalen Jellyfin-Servern...",
|
||||
"localServers": "Lokale Jellyfin-Server",
|
||||
@@ -1369,17 +1381,12 @@
|
||||
"signInFailed": "Anmeldung fehlgeschlagen: ${error}",
|
||||
"quickConnectFailed": "Quick Connect fehlgeschlagen: ${error}",
|
||||
"addPlexTitle": "Mit Plex anmelden",
|
||||
"plexAuthIntro": "Melde dich mit Browser oder QR-Code an.",
|
||||
"plexQRPrompt": "Scanne diesen QR-Code zum Anmelden.",
|
||||
"waitingForPlexConfirmation": "Warte auf Bestätigung durch plex.tv…",
|
||||
"pinExpired": "PIN ist vor der Anmeldung abgelaufen. Bitte erneut versuchen.",
|
||||
"duplicatePlexAccount": "Bereits bei Plex angemeldet. Melde dich ab, um Konten zu wechseln.",
|
||||
"failedToRegisterAccount": "Konto konnte nicht registriert werden: ${error}",
|
||||
"enterJellyfinUrlError": "Gib die URL deines Jellyfin-Servers ein",
|
||||
"addConnectionTitle": "Verbindung hinzufügen",
|
||||
"addConnectionTitleScoped": "Zu ${name} hinzufügen",
|
||||
"addConnectionIntroGlobal": "Füge einen weiteren Medienserver hinzu. Plex und Jellyfin erscheinen zusammen auf der Startseite.",
|
||||
"addConnectionIntroScoped": "Füge einen neuen Server hinzu oder leihe einen von einem anderen Profil aus.",
|
||||
"signInWithPlexCard": "Mit Plex anmelden",
|
||||
"signInWithPlexCardSubtitle": "Dieses Gerät autorisieren. Geteilte Server werden hinzugefügt.",
|
||||
"signInWithPlexCardSubtitleScoped": "Ein Plex-Konto autorisieren. Home-Benutzer werden zu Profilen.",
|
||||
|
||||
+29
-13
@@ -14,7 +14,6 @@
|
||||
"or": "or",
|
||||
"connectToJellyfin": "Connect to Jellyfin",
|
||||
"useQuickConnect": "Use Quick Connect",
|
||||
"quickConnectCode": "Quick Connect code",
|
||||
"quickConnectInstructions": "Open Quick Connect in Jellyfin and enter this code.",
|
||||
"quickConnectWaiting": "Waiting for approval…",
|
||||
"quickConnectCancel": "Cancel",
|
||||
@@ -54,6 +53,7 @@
|
||||
"ok": "OK",
|
||||
"off": "Off",
|
||||
"seasonNumber": "Season ${number}",
|
||||
"episodeNumberTitle": "Episode ${number} - ${title}",
|
||||
"chapterNumber": "Chapter ${number}",
|
||||
"reconnect": "Reconnect",
|
||||
"exit": "Exit",
|
||||
@@ -115,6 +115,12 @@
|
||||
"gridView": "Grid",
|
||||
"listView": "List",
|
||||
"showHeroSection": "Show Hero Section",
|
||||
"continueWatchingAction": "Continue Watching Action",
|
||||
"continueWatchingPlay": "Play",
|
||||
"continueWatchingDetails": "Open Details",
|
||||
"episodeAction": "Episode Action",
|
||||
"episodePlay": "Play",
|
||||
"episodeDetails": "Open Details",
|
||||
"useGlobalHubs": "Use Home Layout",
|
||||
"useGlobalHubsDescription": "Show unified home hubs. Otherwise use library recommendations.",
|
||||
"showServerNameOnHubs": "Show Server Name on Hubs",
|
||||
@@ -131,6 +137,14 @@
|
||||
"showSeasonPostersOnTabsDescription": "Show each season's poster above its tab",
|
||||
"tvFullCardLayout": "Full TV Cards",
|
||||
"tvFullCardLayoutDescription": "Use image-only TV cards with actor names overlaid",
|
||||
"focusGlow": "Focus Glow",
|
||||
"focusGlowDescription": "Draw a soft glow around the focused card",
|
||||
"visualEffects": "Visual Effects",
|
||||
"visualEffectsAuto": "Auto",
|
||||
"visualEffectsAutoDescription": "Reduce effects automatically on low-power devices",
|
||||
"visualEffectsFull": "Full",
|
||||
"visualEffectsReduced": "Reduced",
|
||||
"visualEffectsReducedDescription": "Fewer animations and lower-resolution artwork",
|
||||
"hideSpoilers": "Hide Spoilers for Unwatched Episodes",
|
||||
"hideSpoilersDescription": "Blur thumbnails and descriptions for unwatched episodes",
|
||||
"playerBackend": "Player Backend",
|
||||
@@ -360,8 +374,8 @@
|
||||
"markAsWatched": "Mark as Watched",
|
||||
"markAsUnwatched": "Mark as Unwatched",
|
||||
"removeFromContinueWatching": "Remove from Continue Watching",
|
||||
"viewDetails": "View details",
|
||||
"goToSeries": "Go to series",
|
||||
"goToSeason": "Go to season",
|
||||
"shufflePlay": "Shuffle Play",
|
||||
"shuffleNotAvailableOffline": "Shuffle not available offline",
|
||||
"fileInfo": "File Info",
|
||||
@@ -507,7 +521,6 @@
|
||||
"fileInfoNotAvailable": "File information not available",
|
||||
"errorLoadingFileInfo": "Error loading file info: ${error}",
|
||||
"errorLoadingSeries": "Error loading series",
|
||||
"errorLoadingSeason": "Error loading season",
|
||||
"musicNotSupported": "Music playback is not yet supported",
|
||||
"noDescriptionAvailable": "No description available",
|
||||
"noProfilesAvailable": "No profiles available",
|
||||
@@ -553,7 +566,10 @@
|
||||
"position": "Position",
|
||||
"assOverride": "ASS Override",
|
||||
"bold": "Bold",
|
||||
"italic": "Italic"
|
||||
"italic": "Italic",
|
||||
"renderResolution": "Render Resolution",
|
||||
"renderResolutionScreen": "Screen resolution",
|
||||
"renderResolutionVideo": "Video resolution"
|
||||
},
|
||||
"mpvConfig": {
|
||||
"title": "mpv.conf",
|
||||
@@ -751,6 +767,7 @@
|
||||
"rating": "Rating",
|
||||
"communityRating": "Community Rating",
|
||||
"criticRating": "Critic Rating",
|
||||
"userRating": "User Rating",
|
||||
"lastPlayed": "Last Played",
|
||||
"datePlayed": "Date Played",
|
||||
"playCount": "Play Count",
|
||||
@@ -763,7 +780,8 @@
|
||||
"studio": "Studio",
|
||||
"random": "Random",
|
||||
"dateShared": "Date Shared",
|
||||
"latestEpisodeAirDate": "Latest Episode Air Date"
|
||||
"latestEpisodeAirDate": "Latest Episode Air Date",
|
||||
"lastEpisodeDateAdded": "Last Episode Date Added"
|
||||
}
|
||||
},
|
||||
"about": {
|
||||
@@ -973,7 +991,10 @@
|
||||
"participantResumed": "${name} resumed",
|
||||
"participantSeeked": "${name} seeked",
|
||||
"participantBuffering": "${name} is buffering",
|
||||
"participantNeedsUpdate": "${name} is on an older app version — sync unavailable",
|
||||
"resumingWithout": "Resuming without ${name}",
|
||||
"waitingForParticipants": "Waiting for others to load...",
|
||||
"waitingForName": "Waiting for ${name}...",
|
||||
"recentRooms": "Recent Rooms",
|
||||
"renameRoom": "Rename Room",
|
||||
"removeRoom": "Remove",
|
||||
@@ -1019,6 +1040,7 @@
|
||||
"unwatchedOnly": "Unwatched only",
|
||||
"nextNUnwatched": "Next ${count} unwatched",
|
||||
"customAmount": "Custom amount...",
|
||||
"includeSpecials": "Include Specials",
|
||||
"howManyEpisodes": "How many episodes?",
|
||||
"itemsQueued": "${count} items queued for download",
|
||||
"keepSynced": "Keep synced",
|
||||
@@ -1179,6 +1201,7 @@
|
||||
"maxCll": "MaxCLL",
|
||||
"maxFall": "MaxFALL",
|
||||
"cacheUsed": "Cache Used",
|
||||
"cacheLimit": "Cache Limit",
|
||||
"speed": "Speed",
|
||||
"player": "Player",
|
||||
"memory": "Memory",
|
||||
@@ -1353,10 +1376,8 @@
|
||||
},
|
||||
"addServer": {
|
||||
"addJellyfinTitle": "Add Jellyfin server",
|
||||
"jellyfinUrlIntro": "Enter the server URL, e.g. `https://jellyfin.example.com`.",
|
||||
"jellyfinUrlsIntro": "Enter one or more server URLs, separated by commas. Plezy will use the reachable URL with the lowest latency.",
|
||||
"serverUrl": "Server URL",
|
||||
"serverUrls": "Server URLs",
|
||||
"serverUrlsHelper": "Multiple URLs allowed, separated by commas.",
|
||||
"findServer": "Find server",
|
||||
"searchingLocalServers": "Looking for local Jellyfin servers...",
|
||||
"localServers": "Local Jellyfin servers",
|
||||
@@ -1369,17 +1390,12 @@
|
||||
"signInFailed": "Sign-in failed: ${error}",
|
||||
"quickConnectFailed": "Quick Connect failed: ${error}",
|
||||
"addPlexTitle": "Sign in with Plex",
|
||||
"plexAuthIntro": "Sign in with a browser or QR code.",
|
||||
"plexQRPrompt": "Scan this QR code to sign in.",
|
||||
"waitingForPlexConfirmation": "Waiting for plex.tv to confirm your sign-in…",
|
||||
"pinExpired": "PIN expired before sign-in. Please try again.",
|
||||
"duplicatePlexAccount": "Already signed in to Plex. Sign out to switch accounts.",
|
||||
"failedToRegisterAccount": "Failed to register account: ${error}",
|
||||
"enterJellyfinUrlError": "Enter your Jellyfin server URL",
|
||||
"addConnectionTitle": "Add connection",
|
||||
"addConnectionTitleScoped": "Add to ${name}",
|
||||
"addConnectionIntroGlobal": "Add another media server. Plex and Jellyfin appear together on Home.",
|
||||
"addConnectionIntroScoped": "Add a new server, or borrow one from another profile.",
|
||||
"signInWithPlexCard": "Sign in with Plex",
|
||||
"signInWithPlexCardSubtitle": "Authorize this device. Shared servers are added.",
|
||||
"signInWithPlexCardSubtitleScoped": "Authorize a Plex account. Home users become profiles.",
|
||||
|
||||
+20
-13
@@ -14,7 +14,6 @@
|
||||
"or": "o",
|
||||
"connectToJellyfin": "Conectar a Jellyfin",
|
||||
"useQuickConnect": "Usar Quick Connect",
|
||||
"quickConnectCode": "Código de Quick Connect",
|
||||
"quickConnectInstructions": "Abre Quick Connect en Jellyfin e introduce este código.",
|
||||
"quickConnectWaiting": "Esperando aprobación…",
|
||||
"quickConnectCancel": "Cancelar",
|
||||
@@ -54,6 +53,7 @@
|
||||
"ok": "OK",
|
||||
"off": "Desactivado",
|
||||
"seasonNumber": "Temporada ${number}",
|
||||
"episodeNumberTitle": "Episodio ${number} - ${title}",
|
||||
"chapterNumber": "Capítulo ${number}",
|
||||
"reconnect": "Reconectar",
|
||||
"exit": "Salir",
|
||||
@@ -115,6 +115,12 @@
|
||||
"gridView": "Cuadrícula",
|
||||
"listView": "Lista",
|
||||
"showHeroSection": "Mostrar Sección Destacada",
|
||||
"continueWatchingAction": "Acción de Seguir viendo",
|
||||
"continueWatchingPlay": "Reproducir",
|
||||
"continueWatchingDetails": "Abrir detalles",
|
||||
"episodeAction": "Acción de episodio",
|
||||
"episodePlay": "Reproducir",
|
||||
"episodeDetails": "Abrir detalles",
|
||||
"useGlobalHubs": "Usar diseño de inicio",
|
||||
"useGlobalHubsDescription": "Mostrar hubs de inicio unificados. Si no, usar recomendaciones de biblioteca.",
|
||||
"showServerNameOnHubs": "Mostrar Nombre del Servidor en los Hubs",
|
||||
@@ -131,6 +137,8 @@
|
||||
"showSeasonPostersOnTabsDescription": "Mostrar el póster de cada temporada sobre su pestaña",
|
||||
"tvFullCardLayout": "Tarjetas TV completas",
|
||||
"tvFullCardLayoutDescription": "Usar tarjetas TV solo con imagen y nombres de actores superpuestos",
|
||||
"focusGlow": "Brillo de foco",
|
||||
"focusGlowDescription": "Mostrar un brillo suave alrededor de la tarjeta con foco",
|
||||
"hideSpoilers": "Ocultar spoilers de episodios no vistos",
|
||||
"hideSpoilersDescription": "Desenfocar miniaturas y descripciones de episodios no vistos",
|
||||
"playerBackend": "Reproductor",
|
||||
@@ -360,8 +368,8 @@
|
||||
"markAsWatched": "Marcar como Visto",
|
||||
"markAsUnwatched": "Marcar como No Visto",
|
||||
"removeFromContinueWatching": "Eliminar de Seguir Viendo",
|
||||
"viewDetails": "Ver detalles",
|
||||
"goToSeries": "Ir a la serie",
|
||||
"goToSeason": "Ir a la temporada",
|
||||
"shufflePlay": "Reproducción Aleatoria",
|
||||
"shuffleNotAvailableOffline": "La reproducción aleatoria no está disponible sin conexión",
|
||||
"fileInfo": "Información del Archivo",
|
||||
@@ -507,7 +515,6 @@
|
||||
"fileInfoNotAvailable": "Información de archivo no disponible",
|
||||
"errorLoadingFileInfo": "Error al cargar info de archivo: ${error}",
|
||||
"errorLoadingSeries": "Error al cargar la serie",
|
||||
"errorLoadingSeason": "Error al cargar la temporada",
|
||||
"musicNotSupported": "La reproducción de música aún no está soportada",
|
||||
"noDescriptionAvailable": "No hay descripción disponible",
|
||||
"noProfilesAvailable": "No hay perfiles disponibles",
|
||||
@@ -553,7 +560,10 @@
|
||||
"position": "Posición",
|
||||
"assOverride": "Sobreescritura ASS",
|
||||
"bold": "Negrita",
|
||||
"italic": "Cursiva"
|
||||
"italic": "Cursiva",
|
||||
"renderResolution": "Resolución de renderizado",
|
||||
"renderResolutionScreen": "Resolución de pantalla",
|
||||
"renderResolutionVideo": "Resolución del vídeo"
|
||||
},
|
||||
"mpvConfig": {
|
||||
"title": "Configuración de mpv",
|
||||
@@ -751,6 +761,7 @@
|
||||
"rating": "Valoración",
|
||||
"communityRating": "Calificación de comunidad",
|
||||
"criticRating": "Calificación de crítica",
|
||||
"userRating": "Calificación del usuario",
|
||||
"lastPlayed": "Última reproducción",
|
||||
"datePlayed": "Fecha de reproducción",
|
||||
"playCount": "Reproducciones",
|
||||
@@ -763,7 +774,8 @@
|
||||
"studio": "Estudio",
|
||||
"random": "Aleatorio",
|
||||
"dateShared": "Fecha de compartición",
|
||||
"latestEpisodeAirDate": "Última fecha de emisión del episodio"
|
||||
"latestEpisodeAirDate": "Última fecha de emisión del episodio",
|
||||
"lastEpisodeDateAdded": "Fecha de adición del último episodio"
|
||||
}
|
||||
},
|
||||
"about": {
|
||||
@@ -1019,6 +1031,7 @@
|
||||
"unwatchedOnly": "Solo no vistos",
|
||||
"nextNUnwatched": "Próximos ${count} no vistos",
|
||||
"customAmount": "Cantidad personalizada...",
|
||||
"includeSpecials": "Incluir especiales",
|
||||
"howManyEpisodes": "¿Cuántos episodios?",
|
||||
"itemsQueued": "${count} elementos en cola de descarga",
|
||||
"keepSynced": "Mantener sincronizado",
|
||||
@@ -1179,6 +1192,7 @@
|
||||
"maxCll": "MaxCLL",
|
||||
"maxFall": "MaxFALL",
|
||||
"cacheUsed": "Caché usada",
|
||||
"cacheLimit": "Límite de caché",
|
||||
"speed": "Velocidad",
|
||||
"player": "Reproductor",
|
||||
"memory": "Memoria",
|
||||
@@ -1353,10 +1367,8 @@
|
||||
},
|
||||
"addServer": {
|
||||
"addJellyfinTitle": "Añadir servidor Jellyfin",
|
||||
"jellyfinUrlIntro": "Introduce la URL del servidor, p. ej. `https://jellyfin.example.com`.",
|
||||
"jellyfinUrlsIntro": "Introduce una o más URL del servidor, separadas por comas. Plezy usará la URL accesible con menor latencia.",
|
||||
"serverUrl": "URL del servidor",
|
||||
"serverUrls": "URL del servidor",
|
||||
"serverUrlsHelper": "Se permiten varias URL, separadas por comas.",
|
||||
"findServer": "Buscar servidor",
|
||||
"searchingLocalServers": "Buscando servidores Jellyfin locales...",
|
||||
"localServers": "Servidores Jellyfin locales",
|
||||
@@ -1369,17 +1381,12 @@
|
||||
"signInFailed": "Error al iniciar sesión: ${error}",
|
||||
"quickConnectFailed": "Quick Connect ha fallado: ${error}",
|
||||
"addPlexTitle": "Iniciar sesión con Plex",
|
||||
"plexAuthIntro": "Inicia sesión con un navegador o código QR.",
|
||||
"plexQRPrompt": "Escanea este código QR para iniciar sesión.",
|
||||
"waitingForPlexConfirmation": "Esperando que plex.tv confirme tu inicio de sesión…",
|
||||
"pinExpired": "El PIN caducó antes de iniciar sesión. Inténtalo de nuevo.",
|
||||
"duplicatePlexAccount": "Ya iniciaste sesión en Plex. Cierra sesión para cambiar de cuenta.",
|
||||
"failedToRegisterAccount": "No se pudo registrar la cuenta: ${error}",
|
||||
"enterJellyfinUrlError": "Introduce la URL de tu servidor Jellyfin",
|
||||
"addConnectionTitle": "Añadir conexión",
|
||||
"addConnectionTitleScoped": "Añadir a ${name}",
|
||||
"addConnectionIntroGlobal": "Añade otro servidor multimedia. Plex y Jellyfin aparecen juntos en Inicio.",
|
||||
"addConnectionIntroScoped": "Añade un servidor nuevo o toma prestado uno de otro perfil.",
|
||||
"signInWithPlexCard": "Iniciar sesión con Plex",
|
||||
"signInWithPlexCardSubtitle": "Autoriza este dispositivo. Se añaden servidores compartidos.",
|
||||
"signInWithPlexCardSubtitleScoped": "Autoriza una cuenta Plex. Los usuarios de Home se convierten en perfiles.",
|
||||
|
||||
+20
-13
@@ -14,7 +14,6 @@
|
||||
"or": "ou",
|
||||
"connectToJellyfin": "Se connecter à Jellyfin",
|
||||
"useQuickConnect": "Utiliser Quick Connect",
|
||||
"quickConnectCode": "Code Quick Connect",
|
||||
"quickConnectInstructions": "Ouvrez Quick Connect dans Jellyfin et saisissez ce code.",
|
||||
"quickConnectWaiting": "En attente d'approbation…",
|
||||
"quickConnectCancel": "Annuler",
|
||||
@@ -54,6 +53,7 @@
|
||||
"ok": "OK",
|
||||
"off": "Désactivé",
|
||||
"seasonNumber": "Saison ${number}",
|
||||
"episodeNumberTitle": "Épisode ${number} - ${title}",
|
||||
"chapterNumber": "Chapitre ${number}",
|
||||
"reconnect": "Reconnecter",
|
||||
"exit": "Quitter",
|
||||
@@ -115,6 +115,12 @@
|
||||
"gridView": "Grille",
|
||||
"listView": "Liste",
|
||||
"showHeroSection": "Afficher la section Hero",
|
||||
"continueWatchingAction": "Action Continuer à regarder",
|
||||
"continueWatchingPlay": "Lire",
|
||||
"continueWatchingDetails": "Ouvrir les détails",
|
||||
"episodeAction": "Action des épisodes",
|
||||
"episodePlay": "Lire",
|
||||
"episodeDetails": "Ouvrir les détails",
|
||||
"useGlobalHubs": "Utiliser la mise en page d'accueil",
|
||||
"useGlobalHubsDescription": "Afficher des hubs d'accueil unifiés. Sinon, utiliser les recommandations de bibliothèque.",
|
||||
"showServerNameOnHubs": "Afficher le nom du serveur sur les hubs",
|
||||
@@ -131,6 +137,8 @@
|
||||
"showSeasonPostersOnTabsDescription": "Afficher l'affiche de chaque saison au-dessus de son onglet",
|
||||
"tvFullCardLayout": "Cartes TV pleines",
|
||||
"tvFullCardLayoutDescription": "Utiliser des cartes TV avec image seule et noms des acteurs superposés",
|
||||
"focusGlow": "Halo de sélection",
|
||||
"focusGlowDescription": "Afficher un léger halo autour de la carte sélectionnée",
|
||||
"hideSpoilers": "Masquer les spoilers des épisodes non vus",
|
||||
"hideSpoilersDescription": "Flouter les miniatures et descriptions des épisodes non vus",
|
||||
"playerBackend": "Moteur de lecture",
|
||||
@@ -360,8 +368,8 @@
|
||||
"markAsWatched": "Marquer comme vu",
|
||||
"markAsUnwatched": "Marquer comme non visionné",
|
||||
"removeFromContinueWatching": "Supprimer de la liste \"Continuer à regarder\"",
|
||||
"viewDetails": "Voir les détails",
|
||||
"goToSeries": "Aller à la série",
|
||||
"goToSeason": "Aller à la saison",
|
||||
"shufflePlay": "Lecture aléatoire",
|
||||
"shuffleNotAvailableOffline": "La lecture aléatoire n’est pas disponible hors ligne",
|
||||
"fileInfo": "Informations sur le fichier",
|
||||
@@ -507,7 +515,6 @@
|
||||
"fileInfoNotAvailable": "Informations sur le fichier non disponibles",
|
||||
"errorLoadingFileInfo": "Erreur lors du chargement des informations sur le fichier: ${error}",
|
||||
"errorLoadingSeries": "Erreur lors du chargement de la série",
|
||||
"errorLoadingSeason": "Erreur lors du chargement de la saison",
|
||||
"musicNotSupported": "La lecture de musique n'est pas encore prise en charge",
|
||||
"noDescriptionAvailable": "Aucune description disponible",
|
||||
"noProfilesAvailable": "Aucun profil disponible",
|
||||
@@ -553,7 +560,10 @@
|
||||
"position": "Position",
|
||||
"assOverride": "Remplacement ASS",
|
||||
"bold": "Gras",
|
||||
"italic": "Italique"
|
||||
"italic": "Italique",
|
||||
"renderResolution": "Résolution de rendu",
|
||||
"renderResolutionScreen": "Résolution de l'écran",
|
||||
"renderResolutionVideo": "Résolution de la vidéo"
|
||||
},
|
||||
"mpvConfig": {
|
||||
"title": "Configuration mpv",
|
||||
@@ -751,6 +761,7 @@
|
||||
"rating": "Note",
|
||||
"communityRating": "Note communautaire",
|
||||
"criticRating": "Note critique",
|
||||
"userRating": "Note utilisateur",
|
||||
"lastPlayed": "Dernière lecture",
|
||||
"datePlayed": "Date de lecture",
|
||||
"playCount": "Lectures",
|
||||
@@ -763,7 +774,8 @@
|
||||
"studio": "Studio",
|
||||
"random": "Aléatoire",
|
||||
"dateShared": "Date de partage",
|
||||
"latestEpisodeAirDate": "Dernière date de diffusion"
|
||||
"latestEpisodeAirDate": "Dernière date de diffusion",
|
||||
"lastEpisodeDateAdded": "Date d'ajout du dernier épisode"
|
||||
}
|
||||
},
|
||||
"about": {
|
||||
@@ -1019,6 +1031,7 @@
|
||||
"unwatchedOnly": "Non vus uniquement",
|
||||
"nextNUnwatched": "${count} prochains non vus",
|
||||
"customAmount": "Quantité personnalisée...",
|
||||
"includeSpecials": "Inclure les spéciaux",
|
||||
"howManyEpisodes": "Combien d'épisodes ?",
|
||||
"itemsQueued": "${count} éléments mis en file d'attente",
|
||||
"keepSynced": "Garder synchronisé",
|
||||
@@ -1179,6 +1192,7 @@
|
||||
"maxCll": "MaxCLL",
|
||||
"maxFall": "MaxFALL",
|
||||
"cacheUsed": "Cache utilisé",
|
||||
"cacheLimit": "Limite du cache",
|
||||
"speed": "Vitesse",
|
||||
"player": "Lecteur",
|
||||
"memory": "Mémoire",
|
||||
@@ -1353,10 +1367,8 @@
|
||||
},
|
||||
"addServer": {
|
||||
"addJellyfinTitle": "Ajouter un serveur Jellyfin",
|
||||
"jellyfinUrlIntro": "Saisissez l'URL du serveur, par ex. `https://jellyfin.example.com`.",
|
||||
"jellyfinUrlsIntro": "Saisissez une ou plusieurs URL de serveur, séparées par des virgules. Plezy utilisera l'URL joignable avec la latence la plus faible.",
|
||||
"serverUrl": "URL du serveur",
|
||||
"serverUrls": "URL du serveur",
|
||||
"serverUrlsHelper": "Plusieurs URL possibles, séparées par des virgules.",
|
||||
"findServer": "Rechercher un serveur",
|
||||
"searchingLocalServers": "Recherche de serveurs Jellyfin locaux...",
|
||||
"localServers": "Serveurs Jellyfin locaux",
|
||||
@@ -1369,17 +1381,12 @@
|
||||
"signInFailed": "Échec de la connexion : ${error}",
|
||||
"quickConnectFailed": "Échec de Quick Connect : ${error}",
|
||||
"addPlexTitle": "Se connecter avec Plex",
|
||||
"plexAuthIntro": "Connectez-vous avec un navigateur ou un code QR.",
|
||||
"plexQRPrompt": "Scannez ce QR code pour vous connecter.",
|
||||
"waitingForPlexConfirmation": "En attente de la confirmation de plex.tv…",
|
||||
"pinExpired": "Le PIN a expiré avant la connexion. Veuillez réessayer.",
|
||||
"duplicatePlexAccount": "Déjà connecté à Plex. Déconnectez-vous pour changer de compte.",
|
||||
"failedToRegisterAccount": "Échec de l'enregistrement du compte : ${error}",
|
||||
"enterJellyfinUrlError": "Saisissez l'URL de votre serveur Jellyfin",
|
||||
"addConnectionTitle": "Ajouter une connexion",
|
||||
"addConnectionTitleScoped": "Ajouter à ${name}",
|
||||
"addConnectionIntroGlobal": "Ajoutez un autre serveur multimédia. Plex et Jellyfin apparaissent ensemble sur Accueil.",
|
||||
"addConnectionIntroScoped": "Ajoutez un nouveau serveur, ou empruntez-en un à un autre profil.",
|
||||
"signInWithPlexCard": "Se connecter avec Plex",
|
||||
"signInWithPlexCardSubtitle": "Autorisez cet appareil. Les serveurs partagés sont ajoutés.",
|
||||
"signInWithPlexCardSubtitleScoped": "Autorisez un compte Plex. Les utilisateurs Home deviennent des profils.",
|
||||
|
||||
+20
-13
@@ -14,7 +14,6 @@
|
||||
"or": "o",
|
||||
"connectToJellyfin": "Connetti a Jellyfin",
|
||||
"useQuickConnect": "Usa Quick Connect",
|
||||
"quickConnectCode": "Codice Quick Connect",
|
||||
"quickConnectInstructions": "Apri Quick Connect in Jellyfin e inserisci questo codice.",
|
||||
"quickConnectWaiting": "In attesa di approvazione…",
|
||||
"quickConnectCancel": "Annulla",
|
||||
@@ -54,6 +53,7 @@
|
||||
"ok": "OK",
|
||||
"off": "Disattivato",
|
||||
"seasonNumber": "Stagione ${number}",
|
||||
"episodeNumberTitle": "Episodio ${number} - ${title}",
|
||||
"chapterNumber": "Capitolo ${number}",
|
||||
"reconnect": "Riconnetti",
|
||||
"exit": "Esci",
|
||||
@@ -115,6 +115,12 @@
|
||||
"gridView": "Griglia",
|
||||
"listView": "Elenco",
|
||||
"showHeroSection": "Mostra sezione principale",
|
||||
"continueWatchingAction": "Azione Continua a guardare",
|
||||
"continueWatchingPlay": "Riproduci",
|
||||
"continueWatchingDetails": "Apri dettagli",
|
||||
"episodeAction": "Azione episodio",
|
||||
"episodePlay": "Riproduci",
|
||||
"episodeDetails": "Apri dettagli",
|
||||
"useGlobalHubs": "Usa layout home",
|
||||
"useGlobalHubsDescription": "Mostra hub Home unificati. Altrimenti usa i consigli della libreria.",
|
||||
"showServerNameOnHubs": "Mostra nome server sugli hub",
|
||||
@@ -131,6 +137,8 @@
|
||||
"showSeasonPostersOnTabsDescription": "Mostra il poster di ogni stagione sopra la sua scheda",
|
||||
"tvFullCardLayout": "Schede TV piene",
|
||||
"tvFullCardLayoutDescription": "Usa schede TV solo immagine con i nomi degli attori sovrapposti",
|
||||
"focusGlow": "Bagliore di selezione",
|
||||
"focusGlowDescription": "Mostra un leggero bagliore attorno alla scheda selezionata",
|
||||
"hideSpoilers": "Nascondi spoiler per episodi non visti",
|
||||
"hideSpoilersDescription": "Sfoca miniature e descrizioni degli episodi non visti",
|
||||
"playerBackend": "Motore di riproduzione",
|
||||
@@ -360,8 +368,8 @@
|
||||
"markAsWatched": "Segna come visto",
|
||||
"markAsUnwatched": "Segna come non visto",
|
||||
"removeFromContinueWatching": "Rimuovi da Continua a guardare",
|
||||
"viewDetails": "Vedi dettagli",
|
||||
"goToSeries": "Vai alle serie",
|
||||
"goToSeason": "Vai alla stagione",
|
||||
"shufflePlay": "Riproduzione casuale",
|
||||
"shuffleNotAvailableOffline": "Riproduzione casuale non disponibile offline",
|
||||
"fileInfo": "Info sul file",
|
||||
@@ -507,7 +515,6 @@
|
||||
"fileInfoNotAvailable": "Informazioni sul file non disponibili",
|
||||
"errorLoadingFileInfo": "Errore caricamento informazioni sul file: ${error}",
|
||||
"errorLoadingSeries": "Errore caricamento serie",
|
||||
"errorLoadingSeason": "Errore caricamento stagione",
|
||||
"musicNotSupported": "La riproduzione musicale non è ancora supportata",
|
||||
"noDescriptionAvailable": "Nessuna descrizione disponibile",
|
||||
"noProfilesAvailable": "Nessun profilo disponibile",
|
||||
@@ -553,7 +560,10 @@
|
||||
"position": "Posizione",
|
||||
"assOverride": "Sovrascrittura ASS",
|
||||
"bold": "Grassetto",
|
||||
"italic": "Corsivo"
|
||||
"italic": "Corsivo",
|
||||
"renderResolution": "Risoluzione di rendering",
|
||||
"renderResolutionScreen": "Risoluzione dello schermo",
|
||||
"renderResolutionVideo": "Risoluzione del video"
|
||||
},
|
||||
"mpvConfig": {
|
||||
"title": "Configurazione mpv",
|
||||
@@ -751,6 +761,7 @@
|
||||
"rating": "Valutazione",
|
||||
"communityRating": "Valutazione della community",
|
||||
"criticRating": "Valutazione critica",
|
||||
"userRating": "Valutazione utente",
|
||||
"lastPlayed": "Ultima riproduzione",
|
||||
"datePlayed": "Data di riproduzione",
|
||||
"playCount": "Riproduzioni",
|
||||
@@ -763,7 +774,8 @@
|
||||
"studio": "Studio",
|
||||
"random": "Casuale",
|
||||
"dateShared": "Data di condivisione",
|
||||
"latestEpisodeAirDate": "Data ultima messa in onda"
|
||||
"latestEpisodeAirDate": "Data ultima messa in onda",
|
||||
"lastEpisodeDateAdded": "Data aggiunta ultimo episodio"
|
||||
}
|
||||
},
|
||||
"about": {
|
||||
@@ -1019,6 +1031,7 @@
|
||||
"unwatchedOnly": "Solo non visti",
|
||||
"nextNUnwatched": "Prossimi ${count} non visti",
|
||||
"customAmount": "Quantità personalizzata...",
|
||||
"includeSpecials": "Includi gli speciali",
|
||||
"howManyEpisodes": "Quanti episodi?",
|
||||
"itemsQueued": "${count} elementi in coda per il download",
|
||||
"keepSynced": "Mantieni sincronizzato",
|
||||
@@ -1179,6 +1192,7 @@
|
||||
"maxCll": "MaxCLL",
|
||||
"maxFall": "MaxFALL",
|
||||
"cacheUsed": "Cache usata",
|
||||
"cacheLimit": "Limite cache",
|
||||
"speed": "Velocità",
|
||||
"player": "Player",
|
||||
"memory": "Memoria",
|
||||
@@ -1353,10 +1367,8 @@
|
||||
},
|
||||
"addServer": {
|
||||
"addJellyfinTitle": "Aggiungi server Jellyfin",
|
||||
"jellyfinUrlIntro": "Inserisci l'URL del server, es. `https://jellyfin.example.com`.",
|
||||
"jellyfinUrlsIntro": "Inserisci uno o più URL del server, separati da virgole. Plezy userà l'URL raggiungibile con la latenza più bassa.",
|
||||
"serverUrl": "URL del server",
|
||||
"serverUrls": "URL del server",
|
||||
"serverUrlsHelper": "Sono consentiti più URL, separati da virgole.",
|
||||
"findServer": "Trova server",
|
||||
"searchingLocalServers": "Ricerca server Jellyfin locali...",
|
||||
"localServers": "Server Jellyfin locali",
|
||||
@@ -1369,17 +1381,12 @@
|
||||
"signInFailed": "Accesso non riuscito: ${error}",
|
||||
"quickConnectFailed": "Quick Connect non riuscito: ${error}",
|
||||
"addPlexTitle": "Accedi con Plex",
|
||||
"plexAuthIntro": "Accedi con un browser o un codice QR.",
|
||||
"plexQRPrompt": "Scansiona questo QR code per accedere.",
|
||||
"waitingForPlexConfirmation": "In attesa della conferma da plex.tv…",
|
||||
"pinExpired": "PIN scaduto prima dell'accesso. Riprova.",
|
||||
"duplicatePlexAccount": "Accesso a Plex già effettuato. Esci per cambiare account.",
|
||||
"failedToRegisterAccount": "Registrazione account non riuscita: ${error}",
|
||||
"enterJellyfinUrlError": "Inserisci l'URL del tuo server Jellyfin",
|
||||
"addConnectionTitle": "Aggiungi connessione",
|
||||
"addConnectionTitleScoped": "Aggiungi a ${name}",
|
||||
"addConnectionIntroGlobal": "Aggiungi un altro server multimediale. Plex e Jellyfin appaiono insieme in Home.",
|
||||
"addConnectionIntroScoped": "Aggiungi un nuovo server, o prendine in prestito uno da un altro profilo.",
|
||||
"signInWithPlexCard": "Accedi con Plex",
|
||||
"signInWithPlexCardSubtitle": "Autorizza questo dispositivo. I server condivisi vengono aggiunti.",
|
||||
"signInWithPlexCardSubtitleScoped": "Autorizza un account Plex. Gli utenti Home diventano profili.",
|
||||
|
||||
+20
-13
@@ -14,7 +14,6 @@
|
||||
"or": "または",
|
||||
"connectToJellyfin": "Jellyfinに接続",
|
||||
"useQuickConnect": "Quick Connect を使う",
|
||||
"quickConnectCode": "Quick Connect コード",
|
||||
"quickConnectInstructions": "JellyfinでQuick Connectを開き、このコードを入力してください。",
|
||||
"quickConnectWaiting": "承認を待っています…",
|
||||
"quickConnectCancel": "キャンセル",
|
||||
@@ -54,6 +53,7 @@
|
||||
"ok": "OK",
|
||||
"off": "オフ",
|
||||
"seasonNumber": "シーズン${number}",
|
||||
"episodeNumberTitle": "エピソード${number} - ${title}",
|
||||
"chapterNumber": "チャプター${number}",
|
||||
"reconnect": "再接続",
|
||||
"exit": "終了",
|
||||
@@ -115,6 +115,12 @@
|
||||
"gridView": "グリッド",
|
||||
"listView": "リスト",
|
||||
"showHeroSection": "ヒーローセクションを表示",
|
||||
"continueWatchingAction": "視聴中の操作",
|
||||
"continueWatchingPlay": "再生",
|
||||
"continueWatchingDetails": "詳細を開く",
|
||||
"episodeAction": "エピソードの操作",
|
||||
"episodePlay": "再生",
|
||||
"episodeDetails": "詳細を開く",
|
||||
"useGlobalHubs": "ホームレイアウトを使用",
|
||||
"useGlobalHubsDescription": "統合ホームハブを表示します。オフの場合はライブラリのおすすめを使用します。",
|
||||
"showServerNameOnHubs": "ハブにサーバー名を表示",
|
||||
@@ -131,6 +137,8 @@
|
||||
"showSeasonPostersOnTabsDescription": "各シーズンのポスターをタブの上に表示します",
|
||||
"tvFullCardLayout": "フルTVカード",
|
||||
"tvFullCardLayoutDescription": "TVカードを画像のみで表示し、俳優名を重ねて表示します",
|
||||
"focusGlow": "フォーカス時の光彩",
|
||||
"focusGlowDescription": "フォーカス中のカードの周りに柔らかい光彩を表示します",
|
||||
"hideSpoilers": "未視聴エピソードのネタバレを非表示",
|
||||
"hideSpoilersDescription": "未視聴エピソードのサムネイルと説明をぼかします",
|
||||
"playerBackend": "プレーヤーバックエンド",
|
||||
@@ -360,8 +368,8 @@
|
||||
"markAsWatched": "視聴済みにする",
|
||||
"markAsUnwatched": "未視聴にする",
|
||||
"removeFromContinueWatching": "視聴中から削除",
|
||||
"viewDetails": "詳細を表示",
|
||||
"goToSeries": "シリーズへ移動",
|
||||
"goToSeason": "シーズンへ移動",
|
||||
"shufflePlay": "シャッフル再生",
|
||||
"shuffleNotAvailableOffline": "オフラインではシャッフルを利用できません",
|
||||
"fileInfo": "ファイル情報",
|
||||
@@ -507,7 +515,6 @@
|
||||
"fileInfoNotAvailable": "ファイル情報が利用できません",
|
||||
"errorLoadingFileInfo": "ファイル情報の読み込みエラー: ${error}",
|
||||
"errorLoadingSeries": "シリーズの読み込みエラー",
|
||||
"errorLoadingSeason": "シーズンの読み込みエラー",
|
||||
"musicNotSupported": "音楽の再生はまだサポートされていません",
|
||||
"noDescriptionAvailable": "説明はありません",
|
||||
"noProfilesAvailable": "利用可能なプロフィールがありません",
|
||||
@@ -553,7 +560,10 @@
|
||||
"position": "位置",
|
||||
"assOverride": "ASSオーバーライド",
|
||||
"bold": "太字",
|
||||
"italic": "斜体"
|
||||
"italic": "斜体",
|
||||
"renderResolution": "レンダリング解像度",
|
||||
"renderResolutionScreen": "画面解像度",
|
||||
"renderResolutionVideo": "動画解像度"
|
||||
},
|
||||
"mpvConfig": {
|
||||
"title": "mpv.conf",
|
||||
@@ -751,6 +761,7 @@
|
||||
"rating": "評価",
|
||||
"communityRating": "コミュニティ評価",
|
||||
"criticRating": "批評家評価",
|
||||
"userRating": "ユーザー評価",
|
||||
"lastPlayed": "最終再生",
|
||||
"datePlayed": "再生日",
|
||||
"playCount": "再生回数",
|
||||
@@ -763,7 +774,8 @@
|
||||
"studio": "スタジオ",
|
||||
"random": "ランダム",
|
||||
"dateShared": "共有日",
|
||||
"latestEpisodeAirDate": "最新エピソード放送日"
|
||||
"latestEpisodeAirDate": "最新エピソード放送日",
|
||||
"lastEpisodeDateAdded": "最新エピソード追加日"
|
||||
}
|
||||
},
|
||||
"about": {
|
||||
@@ -1019,6 +1031,7 @@
|
||||
"unwatchedOnly": "未視聴のみ",
|
||||
"nextNUnwatched": "次の${count}件の未視聴",
|
||||
"customAmount": "数を指定...",
|
||||
"includeSpecials": "スペシャルを含める",
|
||||
"howManyEpisodes": "何エピソード?",
|
||||
"itemsQueued": "${count}件をダウンロードキューに追加",
|
||||
"keepSynced": "同期を維持",
|
||||
@@ -1179,6 +1192,7 @@
|
||||
"maxCll": "MaxCLL",
|
||||
"maxFall": "MaxFALL",
|
||||
"cacheUsed": "使用キャッシュ",
|
||||
"cacheLimit": "キャッシュ上限",
|
||||
"speed": "速度",
|
||||
"player": "プレーヤー",
|
||||
"memory": "メモリ",
|
||||
@@ -1353,10 +1367,8 @@
|
||||
},
|
||||
"addServer": {
|
||||
"addJellyfinTitle": "Jellyfinサーバーを追加",
|
||||
"jellyfinUrlIntro": "サーバーURLを入力してください。例: `https://jellyfin.example.com`。",
|
||||
"jellyfinUrlsIntro": "サーバーURLを1つ以上、カンマで区切って入力してください。Plezyは到達可能なURLのうち最も低遅延のものを使用します。",
|
||||
"serverUrl": "サーバーURL",
|
||||
"serverUrls": "サーバーURL",
|
||||
"serverUrlsHelper": "複数のURLをカンマ区切りで入力できます。",
|
||||
"findServer": "サーバーを検索",
|
||||
"searchingLocalServers": "ローカル Jellyfin サーバーを検索中...",
|
||||
"localServers": "ローカル Jellyfin サーバー",
|
||||
@@ -1369,17 +1381,12 @@
|
||||
"signInFailed": "サインインに失敗しました: ${error}",
|
||||
"quickConnectFailed": "Quick Connectに失敗しました: ${error}",
|
||||
"addPlexTitle": "Plexでサインイン",
|
||||
"plexAuthIntro": "ブラウザまたはQRコードでサインインします。",
|
||||
"plexQRPrompt": "このQRコードをスキャンしてサインインしてください。",
|
||||
"waitingForPlexConfirmation": "plex.tvがサインインを確認するのを待っています…",
|
||||
"pinExpired": "サインイン前にPINの有効期限が切れました。もう一度お試しください。",
|
||||
"duplicatePlexAccount": "すでにPlexにサインインしています。アカウントを切り替えるにはサインアウトしてください。",
|
||||
"failedToRegisterAccount": "アカウントの登録に失敗しました: ${error}",
|
||||
"enterJellyfinUrlError": "JellyfinサーバーのURLを入力してください",
|
||||
"addConnectionTitle": "接続を追加",
|
||||
"addConnectionTitleScoped": "${name}に追加",
|
||||
"addConnectionIntroGlobal": "別のメディアサーバーを追加します。PlexとJellyfinはホームに一緒に表示されます。",
|
||||
"addConnectionIntroScoped": "新しいサーバーを追加するか、別のプロファイルから借りてください。",
|
||||
"signInWithPlexCard": "Plexでサインイン",
|
||||
"signInWithPlexCardSubtitle": "このデバイスを承認します。共有サーバーが追加されます。",
|
||||
"signInWithPlexCardSubtitleScoped": "Plexアカウントを承認します。Homeユーザーはプロフィールになります。",
|
||||
|
||||
+20
-13
@@ -14,7 +14,6 @@
|
||||
"or": "또는",
|
||||
"connectToJellyfin": "Jellyfin에 연결",
|
||||
"useQuickConnect": "Quick Connect 사용",
|
||||
"quickConnectCode": "Quick Connect 코드",
|
||||
"quickConnectInstructions": "Jellyfin에서 Quick Connect를 열고 이 코드를 입력하세요.",
|
||||
"quickConnectWaiting": "승인 대기 중…",
|
||||
"quickConnectCancel": "취소",
|
||||
@@ -54,6 +53,7 @@
|
||||
"ok": "확인",
|
||||
"off": "끔",
|
||||
"seasonNumber": "시즌 ${number}",
|
||||
"episodeNumberTitle": "${number}화 - ${title}",
|
||||
"chapterNumber": "챕터 ${number}",
|
||||
"reconnect": "다시 연결",
|
||||
"exit": "종료",
|
||||
@@ -115,6 +115,12 @@
|
||||
"gridView": "그리드 보기",
|
||||
"listView": "목록 보기",
|
||||
"showHeroSection": "주요 추천 영역 표시",
|
||||
"continueWatchingAction": "계속 보기 동작",
|
||||
"continueWatchingPlay": "재생",
|
||||
"continueWatchingDetails": "상세 정보 열기",
|
||||
"episodeAction": "에피소드 동작",
|
||||
"episodePlay": "재생",
|
||||
"episodeDetails": "상세 정보 열기",
|
||||
"useGlobalHubs": "홈 레이아웃 사용",
|
||||
"useGlobalHubsDescription": "통합 홈 허브를 표시합니다. 끄면 라이브러리 추천을 사용합니다.",
|
||||
"showServerNameOnHubs": "허브에 서버 이름 표시",
|
||||
@@ -131,6 +137,8 @@
|
||||
"showSeasonPostersOnTabsDescription": "각 시즌 포스터를 탭 위에 표시",
|
||||
"tvFullCardLayout": "전체 TV 카드",
|
||||
"tvFullCardLayoutDescription": "TV 카드에 이미지만 표시하고 배우 이름을 오버레이로 표시",
|
||||
"focusGlow": "포커스 글로우",
|
||||
"focusGlowDescription": "포커스된 카드 주위에 은은한 빛 효과를 표시",
|
||||
"hideSpoilers": "미시청 에피소드 스포일러 숨기기",
|
||||
"hideSpoilersDescription": "시청하지 않은 에피소드의 썸네일과 설명을 흐리게 처리",
|
||||
"playerBackend": "플레이어 백엔드",
|
||||
@@ -360,8 +368,8 @@
|
||||
"markAsWatched": "시청 완료로 표시",
|
||||
"markAsUnwatched": "시청 안 함으로 표시",
|
||||
"removeFromContinueWatching": "계속 보기에서 제거",
|
||||
"viewDetails": "상세 정보 보기",
|
||||
"goToSeries": "시리즈로 이동",
|
||||
"goToSeason": "시즌으로 이동",
|
||||
"shufflePlay": "무작위 재생",
|
||||
"shuffleNotAvailableOffline": "오프라인에서는 셔플을 사용할 수 없습니다",
|
||||
"fileInfo": "파일 정보",
|
||||
@@ -507,7 +515,6 @@
|
||||
"fileInfoNotAvailable": "파일 정보가 없습니다",
|
||||
"errorLoadingFileInfo": "파일 정보 로딩 중 오류: ${error}",
|
||||
"errorLoadingSeries": "시리즈 로딩 중 오류",
|
||||
"errorLoadingSeason": "시즌 로딩 중 오류",
|
||||
"musicNotSupported": "음악 재생 미지원",
|
||||
"noDescriptionAvailable": "설명이 없습니다",
|
||||
"noProfilesAvailable": "사용 가능한 프로필이 없습니다",
|
||||
@@ -553,7 +560,10 @@
|
||||
"position": "위치",
|
||||
"assOverride": "ASS 오버라이드",
|
||||
"bold": "굵게",
|
||||
"italic": "기울임꼴"
|
||||
"italic": "기울임꼴",
|
||||
"renderResolution": "렌더링 해상도",
|
||||
"renderResolutionScreen": "화면 해상도",
|
||||
"renderResolutionVideo": "영상 해상도"
|
||||
},
|
||||
"mpvConfig": {
|
||||
"title": "mpv 설정",
|
||||
@@ -751,6 +761,7 @@
|
||||
"rating": "평점",
|
||||
"communityRating": "커뮤니티 평점",
|
||||
"criticRating": "평론가 평점",
|
||||
"userRating": "사용자 평점",
|
||||
"lastPlayed": "마지막 재생",
|
||||
"datePlayed": "재생일",
|
||||
"playCount": "재생 횟수",
|
||||
@@ -763,7 +774,8 @@
|
||||
"studio": "스튜디오",
|
||||
"random": "무작위",
|
||||
"dateShared": "공유된 날짜",
|
||||
"latestEpisodeAirDate": "최신 에피소드 방영일"
|
||||
"latestEpisodeAirDate": "최신 에피소드 방영일",
|
||||
"lastEpisodeDateAdded": "최신 에피소드 추가일"
|
||||
}
|
||||
},
|
||||
"about": {
|
||||
@@ -1019,6 +1031,7 @@
|
||||
"unwatchedOnly": "시청하지 않은 것만",
|
||||
"nextNUnwatched": "다음 ${count}개 미시청",
|
||||
"customAmount": "직접 입력...",
|
||||
"includeSpecials": "스페셜 포함",
|
||||
"howManyEpisodes": "몇 개의 에피소드?",
|
||||
"itemsQueued": "${count}개 항목이 다운로드 대기열에 추가됨",
|
||||
"keepSynced": "동기화 유지",
|
||||
@@ -1179,6 +1192,7 @@
|
||||
"maxCll": "MaxCLL",
|
||||
"maxFall": "MaxFALL",
|
||||
"cacheUsed": "사용 캐시",
|
||||
"cacheLimit": "캐시 제한",
|
||||
"speed": "속도",
|
||||
"player": "플레이어",
|
||||
"memory": "메모리",
|
||||
@@ -1353,10 +1367,8 @@
|
||||
},
|
||||
"addServer": {
|
||||
"addJellyfinTitle": "Jellyfin 서버 추가",
|
||||
"jellyfinUrlIntro": "서버 URL을 입력하세요. 예: `https://jellyfin.example.com`.",
|
||||
"jellyfinUrlsIntro": "서버 URL을 하나 이상 쉼표로 구분해 입력하세요. Plezy는 연결 가능한 URL 중 지연 시간이 가장 낮은 URL을 사용합니다.",
|
||||
"serverUrl": "서버 URL",
|
||||
"serverUrls": "서버 URL",
|
||||
"serverUrlsHelper": "쉼표로 구분하여 여러 URL을 입력할 수 있습니다.",
|
||||
"findServer": "서버 찾기",
|
||||
"searchingLocalServers": "로컬 Jellyfin 서버 검색 중...",
|
||||
"localServers": "로컬 Jellyfin 서버",
|
||||
@@ -1369,17 +1381,12 @@
|
||||
"signInFailed": "로그인 실패: ${error}",
|
||||
"quickConnectFailed": "Quick Connect 실패: ${error}",
|
||||
"addPlexTitle": "Plex로 로그인",
|
||||
"plexAuthIntro": "브라우저 또는 QR 코드로 로그인하세요.",
|
||||
"plexQRPrompt": "이 QR 코드를 스캔하여 로그인하세요.",
|
||||
"waitingForPlexConfirmation": "plex.tv에서 로그인을 확인하는 중…",
|
||||
"pinExpired": "로그인 전에 PIN이 만료되었습니다. 다시 시도하세요.",
|
||||
"duplicatePlexAccount": "이미 Plex에 로그인되어 있습니다. 계정을 전환하려면 로그아웃하세요.",
|
||||
"failedToRegisterAccount": "계정 등록 실패: ${error}",
|
||||
"enterJellyfinUrlError": "Jellyfin 서버 URL을 입력하세요",
|
||||
"addConnectionTitle": "연결 추가",
|
||||
"addConnectionTitleScoped": "${name}에 추가",
|
||||
"addConnectionIntroGlobal": "다른 미디어 서버를 추가합니다. Plex와 Jellyfin이 홈에 함께 표시됩니다.",
|
||||
"addConnectionIntroScoped": "새 서버를 추가하거나 다른 프로필에서 빌리세요.",
|
||||
"signInWithPlexCard": "Plex로 로그인",
|
||||
"signInWithPlexCardSubtitle": "이 기기를 승인합니다. 공유 서버가 추가됩니다.",
|
||||
"signInWithPlexCardSubtitleScoped": "Plex 계정을 승인합니다. Home 사용자는 프로필이 됩니다.",
|
||||
|
||||
+20
-13
@@ -14,7 +14,6 @@
|
||||
"or": "eller",
|
||||
"connectToJellyfin": "Koble til Jellyfin",
|
||||
"useQuickConnect": "Bruk Quick Connect",
|
||||
"quickConnectCode": "Quick Connect-kode",
|
||||
"quickConnectInstructions": "Åpne Quick Connect i Jellyfin og skriv inn denne koden.",
|
||||
"quickConnectWaiting": "Venter på godkjenning…",
|
||||
"quickConnectCancel": "Avbryt",
|
||||
@@ -54,6 +53,7 @@
|
||||
"ok": "OK",
|
||||
"off": "Av",
|
||||
"seasonNumber": "Sesong ${number}",
|
||||
"episodeNumberTitle": "Episode ${number} - ${title}",
|
||||
"chapterNumber": "Kapittel ${number}",
|
||||
"reconnect": "Koble til på nytt",
|
||||
"exit": "Avslutt",
|
||||
@@ -115,6 +115,12 @@
|
||||
"gridView": "Rutenett",
|
||||
"listView": "Liste",
|
||||
"showHeroSection": "Vis fremhevet seksjon",
|
||||
"continueWatchingAction": "Handling for Fortsett å se",
|
||||
"continueWatchingPlay": "Spill av",
|
||||
"continueWatchingDetails": "Åpne detaljer",
|
||||
"episodeAction": "Handling for episoder",
|
||||
"episodePlay": "Spill av",
|
||||
"episodeDetails": "Åpne detaljer",
|
||||
"useGlobalHubs": "Bruk startoppsett",
|
||||
"useGlobalHubsDescription": "Vis samlet startinnhold. Ellers brukes bibliotekanbefalinger.",
|
||||
"showServerNameOnHubs": "Vis servernavn på huber",
|
||||
@@ -131,6 +137,8 @@
|
||||
"showSeasonPostersOnTabsDescription": "Vis hver sesongs plakat over fanen",
|
||||
"tvFullCardLayout": "Fulle TV-kort",
|
||||
"tvFullCardLayoutDescription": "Bruk bildebaserte TV-kort med skuespillernavn lagt over",
|
||||
"focusGlow": "Fokusglød",
|
||||
"focusGlowDescription": "Vis en myk glød rundt kortet i fokus",
|
||||
"hideSpoilers": "Skjul spoilere for usette episoder",
|
||||
"hideSpoilersDescription": "Slør miniatyrbilder og beskrivelser for usette episoder",
|
||||
"playerBackend": "Spillermotor",
|
||||
@@ -360,8 +368,8 @@
|
||||
"markAsWatched": "Merk som sett",
|
||||
"markAsUnwatched": "Merk som usett",
|
||||
"removeFromContinueWatching": "Fjern fra Fortsett å se",
|
||||
"viewDetails": "Vis detaljer",
|
||||
"goToSeries": "Gå til serie",
|
||||
"goToSeason": "Gå til sesong",
|
||||
"shufflePlay": "Tilfeldig avspilling",
|
||||
"shuffleNotAvailableOffline": "Tilfeldig avspilling er ikke tilgjengelig offline",
|
||||
"fileInfo": "Filinformasjon",
|
||||
@@ -507,7 +515,6 @@
|
||||
"fileInfoNotAvailable": "Filinformasjon ikke tilgjengelig",
|
||||
"errorLoadingFileInfo": "Feil ved lasting av filinformasjon: ${error}",
|
||||
"errorLoadingSeries": "Feil ved lasting av serie",
|
||||
"errorLoadingSeason": "Feil ved lasting av sesong",
|
||||
"musicNotSupported": "Musikkavspilling støttes ikke ennå",
|
||||
"noDescriptionAvailable": "Ingen beskrivelse tilgjengelig",
|
||||
"noProfilesAvailable": "Ingen profiler tilgjengelige",
|
||||
@@ -553,7 +560,10 @@
|
||||
"position": "Posisjon",
|
||||
"assOverride": "ASS-overstyring",
|
||||
"bold": "Fet",
|
||||
"italic": "Kursiv"
|
||||
"italic": "Kursiv",
|
||||
"renderResolution": "Gjengivelsesoppløsning",
|
||||
"renderResolutionScreen": "Skjermoppløsning",
|
||||
"renderResolutionVideo": "Videooppløsning"
|
||||
},
|
||||
"mpvConfig": {
|
||||
"title": "mpv.conf",
|
||||
@@ -751,6 +761,7 @@
|
||||
"rating": "Vurdering",
|
||||
"communityRating": "Fellesskapsvurdering",
|
||||
"criticRating": "Kritikervurdering",
|
||||
"userRating": "Brukervurdering",
|
||||
"lastPlayed": "Sist spilt",
|
||||
"datePlayed": "Avspillingsdato",
|
||||
"playCount": "Avspillinger",
|
||||
@@ -763,7 +774,8 @@
|
||||
"studio": "Studio",
|
||||
"random": "Tilfeldig",
|
||||
"dateShared": "Delingsdato",
|
||||
"latestEpisodeAirDate": "Siste episodes sendedato"
|
||||
"latestEpisodeAirDate": "Siste episodes sendedato",
|
||||
"lastEpisodeDateAdded": "Dato for sist lagt til episode"
|
||||
}
|
||||
},
|
||||
"about": {
|
||||
@@ -1019,6 +1031,7 @@
|
||||
"unwatchedOnly": "Kun usette",
|
||||
"nextNUnwatched": "Neste ${count} usette",
|
||||
"customAmount": "Egendefinert antall...",
|
||||
"includeSpecials": "Inkluder spesialepisoder",
|
||||
"howManyEpisodes": "Hvor mange episoder?",
|
||||
"itemsQueued": "${count} elementer i nedlastingskø",
|
||||
"keepSynced": "Hold synkronisert",
|
||||
@@ -1179,6 +1192,7 @@
|
||||
"maxCll": "MaxCLL",
|
||||
"maxFall": "MaxFALL",
|
||||
"cacheUsed": "Cache brukt",
|
||||
"cacheLimit": "Cachegrense",
|
||||
"speed": "Hastighet",
|
||||
"player": "Spiller",
|
||||
"memory": "Minne",
|
||||
@@ -1353,10 +1367,8 @@
|
||||
},
|
||||
"addServer": {
|
||||
"addJellyfinTitle": "Legg til Jellyfin-server",
|
||||
"jellyfinUrlIntro": "Skriv inn server-URL-en, f.eks. `https://jellyfin.example.com`.",
|
||||
"jellyfinUrlsIntro": "Skriv inn én eller flere server-URL-er, adskilt med kommaer. Plezy bruker den tilgjengelige URL-en med lavest forsinkelse.",
|
||||
"serverUrl": "Server-URL",
|
||||
"serverUrls": "Server-URL-er",
|
||||
"serverUrlsHelper": "Flere URL-er er tillatt, atskilt med komma.",
|
||||
"findServer": "Finn server",
|
||||
"searchingLocalServers": "Søker etter lokale Jellyfin-servere...",
|
||||
"localServers": "Lokale Jellyfin-servere",
|
||||
@@ -1369,17 +1381,12 @@
|
||||
"signInFailed": "Pålogging mislyktes: ${error}",
|
||||
"quickConnectFailed": "Quick Connect mislyktes: ${error}",
|
||||
"addPlexTitle": "Logg på med Plex",
|
||||
"plexAuthIntro": "Logg inn med en nettleser eller QR-kode.",
|
||||
"plexQRPrompt": "Skann denne QR-koden for å logge på.",
|
||||
"waitingForPlexConfirmation": "Venter på at plex.tv bekrefter påloggingen…",
|
||||
"pinExpired": "PIN-koden gikk ut før pålogging. Prøv igjen.",
|
||||
"duplicatePlexAccount": "Allerede logget inn på Plex. Logg ut for å bytte konto.",
|
||||
"failedToRegisterAccount": "Kunne ikke registrere kontoen: ${error}",
|
||||
"enterJellyfinUrlError": "Oppgi URL-en til Jellyfin-serveren din",
|
||||
"addConnectionTitle": "Legg til tilkobling",
|
||||
"addConnectionTitleScoped": "Legg til i ${name}",
|
||||
"addConnectionIntroGlobal": "Legg til en annen medieserver. Plex og Jellyfin vises sammen på Hjem.",
|
||||
"addConnectionIntroScoped": "Legg til en ny server, eller lån en fra en annen profil.",
|
||||
"signInWithPlexCard": "Logg på med Plex",
|
||||
"signInWithPlexCardSubtitle": "Autoriser denne enheten. Delte servere legges til.",
|
||||
"signInWithPlexCardSubtitleScoped": "Autoriser en Plex-konto. Home-brukere blir profiler.",
|
||||
|
||||
+20
-13
@@ -14,7 +14,6 @@
|
||||
"or": "of",
|
||||
"connectToJellyfin": "Verbinden met Jellyfin",
|
||||
"useQuickConnect": "Quick Connect gebruiken",
|
||||
"quickConnectCode": "Quick Connect-code",
|
||||
"quickConnectInstructions": "Open Quick Connect in Jellyfin en voer deze code in.",
|
||||
"quickConnectWaiting": "Wachten op goedkeuring…",
|
||||
"quickConnectCancel": "Annuleren",
|
||||
@@ -54,6 +53,7 @@
|
||||
"ok": "OK",
|
||||
"off": "Uit",
|
||||
"seasonNumber": "Seizoen ${number}",
|
||||
"episodeNumberTitle": "Aflevering ${number} - ${title}",
|
||||
"chapterNumber": "Hoofdstuk ${number}",
|
||||
"reconnect": "Opnieuw verbinden",
|
||||
"exit": "Afsluiten",
|
||||
@@ -115,6 +115,12 @@
|
||||
"gridView": "Raster",
|
||||
"listView": "Lijst",
|
||||
"showHeroSection": "Toon hoofdsectie",
|
||||
"continueWatchingAction": "Actie voor Doorgaan met kijken",
|
||||
"continueWatchingPlay": "Afspelen",
|
||||
"continueWatchingDetails": "Details openen",
|
||||
"episodeAction": "Afleveringsactie",
|
||||
"episodePlay": "Afspelen",
|
||||
"episodeDetails": "Details openen",
|
||||
"useGlobalHubs": "Startlayout gebruiken",
|
||||
"useGlobalHubsDescription": "Toon gecombineerde home-hubs. Anders bibliotheekaanbevelingen gebruiken.",
|
||||
"showServerNameOnHubs": "Servernaam tonen bij hubs",
|
||||
@@ -131,6 +137,8 @@
|
||||
"showSeasonPostersOnTabsDescription": "Toon de poster van elk seizoen boven het tabblad",
|
||||
"tvFullCardLayout": "Volledige tv-kaarten",
|
||||
"tvFullCardLayoutDescription": "Gebruik tv-kaarten met alleen afbeeldingen en namen van acteurs als overlay",
|
||||
"focusGlow": "Focusgloed",
|
||||
"focusGlowDescription": "Toon een zachte gloed rond de kaart met focus",
|
||||
"hideSpoilers": "Spoilers voor ongekeken afleveringen verbergen",
|
||||
"hideSpoilersDescription": "Vervaag miniaturen en beschrijvingen voor niet-bekeken afleveringen",
|
||||
"playerBackend": "Speler backend",
|
||||
@@ -360,8 +368,8 @@
|
||||
"markAsWatched": "Markeer als gekeken",
|
||||
"markAsUnwatched": "Markeer als ongekeken",
|
||||
"removeFromContinueWatching": "Verwijder uit Doorgaan met kijken",
|
||||
"viewDetails": "Details bekijken",
|
||||
"goToSeries": "Ga naar serie",
|
||||
"goToSeason": "Ga naar seizoen",
|
||||
"shufflePlay": "Willekeurig afspelen",
|
||||
"shuffleNotAvailableOffline": "Shuffle is offline niet beschikbaar",
|
||||
"fileInfo": "Bestand info",
|
||||
@@ -507,7 +515,6 @@
|
||||
"fileInfoNotAvailable": "Bestand informatie niet beschikbaar",
|
||||
"errorLoadingFileInfo": "Fout bij laden bestand info: ${error}",
|
||||
"errorLoadingSeries": "Fout bij laden serie",
|
||||
"errorLoadingSeason": "Fout bij laden seizoen",
|
||||
"musicNotSupported": "Muziek afspelen wordt nog niet ondersteund",
|
||||
"noDescriptionAvailable": "Geen beschrijving beschikbaar",
|
||||
"noProfilesAvailable": "Geen profielen beschikbaar",
|
||||
@@ -553,7 +560,10 @@
|
||||
"position": "Positie",
|
||||
"assOverride": "ASS-overschrijving",
|
||||
"bold": "Vet",
|
||||
"italic": "Cursief"
|
||||
"italic": "Cursief",
|
||||
"renderResolution": "Renderresolutie",
|
||||
"renderResolutionScreen": "Schermresolutie",
|
||||
"renderResolutionVideo": "Videoresolutie"
|
||||
},
|
||||
"mpvConfig": {
|
||||
"title": "mpv-configuratie",
|
||||
@@ -751,6 +761,7 @@
|
||||
"rating": "Beoordeling",
|
||||
"communityRating": "Communitybeoordeling",
|
||||
"criticRating": "Criticusbeoordeling",
|
||||
"userRating": "Gebruikersbeoordeling",
|
||||
"lastPlayed": "Laatst afgespeeld",
|
||||
"datePlayed": "Afspeeldatum",
|
||||
"playCount": "Aantal afspelingen",
|
||||
@@ -763,7 +774,8 @@
|
||||
"studio": "Studio",
|
||||
"random": "Willekeurig",
|
||||
"dateShared": "Gedeeld op",
|
||||
"latestEpisodeAirDate": "Laatste afleveringsuitzending"
|
||||
"latestEpisodeAirDate": "Laatste afleveringsuitzending",
|
||||
"lastEpisodeDateAdded": "Datum laatst toegevoegde aflevering"
|
||||
}
|
||||
},
|
||||
"about": {
|
||||
@@ -1019,6 +1031,7 @@
|
||||
"unwatchedOnly": "Alleen onbekeken",
|
||||
"nextNUnwatched": "Volgende ${count} onbekeken",
|
||||
"customAmount": "Aangepast aantal...",
|
||||
"includeSpecials": "Specials opnemen",
|
||||
"howManyEpisodes": "Hoeveel afleveringen?",
|
||||
"itemsQueued": "${count} items in downloadwachtrij",
|
||||
"keepSynced": "Gesynchroniseerd houden",
|
||||
@@ -1179,6 +1192,7 @@
|
||||
"maxCll": "MaxCLL",
|
||||
"maxFall": "MaxFALL",
|
||||
"cacheUsed": "Cache gebruikt",
|
||||
"cacheLimit": "Cachelimiet",
|
||||
"speed": "Snelheid",
|
||||
"player": "Speler",
|
||||
"memory": "Geheugen",
|
||||
@@ -1353,10 +1367,8 @@
|
||||
},
|
||||
"addServer": {
|
||||
"addJellyfinTitle": "Jellyfin-server toevoegen",
|
||||
"jellyfinUrlIntro": "Voer de server-URL in, bijv. `https://jellyfin.example.com`.",
|
||||
"jellyfinUrlsIntro": "Voer een of meer server-URL's in, gescheiden door komma's. Plezy gebruikt de bereikbare URL met de laagste latentie.",
|
||||
"serverUrl": "Server-URL",
|
||||
"serverUrls": "Server-URL's",
|
||||
"serverUrlsHelper": "Meerdere URL's toegestaan, gescheiden door komma's.",
|
||||
"findServer": "Server zoeken",
|
||||
"searchingLocalServers": "Lokale Jellyfin-servers zoeken...",
|
||||
"localServers": "Lokale Jellyfin-servers",
|
||||
@@ -1369,17 +1381,12 @@
|
||||
"signInFailed": "Inloggen mislukt: ${error}",
|
||||
"quickConnectFailed": "Quick Connect mislukt: ${error}",
|
||||
"addPlexTitle": "Inloggen met Plex",
|
||||
"plexAuthIntro": "Meld je aan met een browser of QR-code.",
|
||||
"plexQRPrompt": "Scan deze QR-code om in te loggen.",
|
||||
"waitingForPlexConfirmation": "Wachten tot plex.tv je inloggen bevestigt…",
|
||||
"pinExpired": "PIN verlopen vóór inloggen. Probeer opnieuw.",
|
||||
"duplicatePlexAccount": "Al aangemeld bij Plex. Meld je af om van account te wisselen.",
|
||||
"failedToRegisterAccount": "Account registreren mislukt: ${error}",
|
||||
"enterJellyfinUrlError": "Voer de URL van je Jellyfin-server in",
|
||||
"addConnectionTitle": "Verbinding toevoegen",
|
||||
"addConnectionTitleScoped": "Toevoegen aan ${name}",
|
||||
"addConnectionIntroGlobal": "Voeg een andere mediaserver toe. Plex en Jellyfin verschijnen samen op Home.",
|
||||
"addConnectionIntroScoped": "Voeg een nieuwe server toe, of leen er een van een ander profiel.",
|
||||
"signInWithPlexCard": "Inloggen met Plex",
|
||||
"signInWithPlexCardSubtitle": "Autoriseer dit apparaat. Gedeelde servers worden toegevoegd.",
|
||||
"signInWithPlexCardSubtitleScoped": "Autoriseer een Plex-account. Home-gebruikers worden profielen.",
|
||||
|
||||
+20
-13
@@ -14,7 +14,6 @@
|
||||
"or": "lub",
|
||||
"connectToJellyfin": "Połącz z Jellyfin",
|
||||
"useQuickConnect": "Użyj Quick Connect",
|
||||
"quickConnectCode": "Kod Quick Connect",
|
||||
"quickConnectInstructions": "Otwórz Quick Connect w Jellyfin i wpisz ten kod.",
|
||||
"quickConnectWaiting": "Oczekiwanie na zatwierdzenie…",
|
||||
"quickConnectCancel": "Anuluj",
|
||||
@@ -54,6 +53,7 @@
|
||||
"ok": "OK",
|
||||
"off": "Wył.",
|
||||
"seasonNumber": "Sezon ${number}",
|
||||
"episodeNumberTitle": "Odcinek ${number} - ${title}",
|
||||
"chapterNumber": "Rozdział ${number}",
|
||||
"reconnect": "Połącz ponownie",
|
||||
"exit": "Wyjdź",
|
||||
@@ -115,6 +115,12 @@
|
||||
"gridView": "Siatka",
|
||||
"listView": "Lista",
|
||||
"showHeroSection": "Pokaż sekcję wyróżnioną",
|
||||
"continueWatchingAction": "Akcja Kontynuuj oglądanie",
|
||||
"continueWatchingPlay": "Odtwórz",
|
||||
"continueWatchingDetails": "Otwórz szczegóły",
|
||||
"episodeAction": "Akcja odcinka",
|
||||
"episodePlay": "Odtwórz",
|
||||
"episodeDetails": "Otwórz szczegóły",
|
||||
"useGlobalHubs": "Użyj układu strony głównej",
|
||||
"useGlobalHubsDescription": "Pokaż ujednolicone huby ekranu głównego. W przeciwnym razie użyj rekomendacji bibliotek.",
|
||||
"showServerNameOnHubs": "Pokaż nazwę serwera w hubach",
|
||||
@@ -131,6 +137,8 @@
|
||||
"showSeasonPostersOnTabsDescription": "Pokazuj plakat każdego sezonu nad jego kartą",
|
||||
"tvFullCardLayout": "Pełne karty TV",
|
||||
"tvFullCardLayoutDescription": "Używaj kart TV tylko z obrazem i nałożonymi nazwiskami aktorów",
|
||||
"focusGlow": "Poświata zaznaczenia",
|
||||
"focusGlowDescription": "Wyświetlaj delikatną poświatę wokół zaznaczonej karty",
|
||||
"hideSpoilers": "Ukryj spoilery nieobejrzanych odcinków",
|
||||
"hideSpoilersDescription": "Rozmywaj miniatury i opisy nieobejrzanych odcinków",
|
||||
"playerBackend": "Backend odtwarzacza",
|
||||
@@ -360,8 +368,8 @@
|
||||
"markAsWatched": "Oznacz jako obejrzane",
|
||||
"markAsUnwatched": "Oznacz jako nieobejrzane",
|
||||
"removeFromContinueWatching": "Usuń z kontynuowania oglądania",
|
||||
"viewDetails": "Pokaż szczegóły",
|
||||
"goToSeries": "Przejdź do serialu",
|
||||
"goToSeason": "Przejdź do sezonu",
|
||||
"shufflePlay": "Odtwarzanie losowe",
|
||||
"shuffleNotAvailableOffline": "Odtwarzanie losowe nie jest dostępne offline",
|
||||
"fileInfo": "Informacje o pliku",
|
||||
@@ -507,7 +515,6 @@
|
||||
"fileInfoNotAvailable": "Informacje o pliku niedostępne",
|
||||
"errorLoadingFileInfo": "Błąd ładowania informacji o pliku: ${error}",
|
||||
"errorLoadingSeries": "Błąd ładowania serialu",
|
||||
"errorLoadingSeason": "Błąd ładowania sezonu",
|
||||
"musicNotSupported": "Odtwarzanie muzyki nie jest jeszcze obsługiwane",
|
||||
"noDescriptionAvailable": "Brak dostępnego opisu",
|
||||
"noProfilesAvailable": "Brak dostępnych profili",
|
||||
@@ -553,7 +560,10 @@
|
||||
"position": "Pozycja",
|
||||
"assOverride": "Nadpisywanie ASS",
|
||||
"bold": "Pogrubienie",
|
||||
"italic": "Kursywa"
|
||||
"italic": "Kursywa",
|
||||
"renderResolution": "Rozdzielczość renderowania",
|
||||
"renderResolutionScreen": "Rozdzielczość ekranu",
|
||||
"renderResolutionVideo": "Rozdzielczość wideo"
|
||||
},
|
||||
"mpvConfig": {
|
||||
"title": "mpv.conf",
|
||||
@@ -751,6 +761,7 @@
|
||||
"rating": "Ocena",
|
||||
"communityRating": "Ocena społeczności",
|
||||
"criticRating": "Ocena krytyków",
|
||||
"userRating": "Ocena użytkownika",
|
||||
"lastPlayed": "Ostatnio odtwarzane",
|
||||
"datePlayed": "Data odtworzenia",
|
||||
"playCount": "Liczba odtworzeń",
|
||||
@@ -763,7 +774,8 @@
|
||||
"studio": "Studio",
|
||||
"random": "Losowo",
|
||||
"dateShared": "Data udostępnienia",
|
||||
"latestEpisodeAirDate": "Data emisji ostatniego odcinka"
|
||||
"latestEpisodeAirDate": "Data emisji ostatniego odcinka",
|
||||
"lastEpisodeDateAdded": "Data dodania ostatniego odcinka"
|
||||
}
|
||||
},
|
||||
"about": {
|
||||
@@ -1019,6 +1031,7 @@
|
||||
"unwatchedOnly": "Tylko nieobejrzane",
|
||||
"nextNUnwatched": "Następne ${count} nieobejrzanych",
|
||||
"customAmount": "Własna ilość...",
|
||||
"includeSpecials": "Uwzględnij odcinki specjalne",
|
||||
"howManyEpisodes": "Ile odcinków?",
|
||||
"itemsQueued": "${count} elementów dodanych do kolejki pobierania",
|
||||
"keepSynced": "Synchronizuj na bieżąco",
|
||||
@@ -1179,6 +1192,7 @@
|
||||
"maxCll": "MaxCLL",
|
||||
"maxFall": "MaxFALL",
|
||||
"cacheUsed": "Użyty cache",
|
||||
"cacheLimit": "Limit cache'u",
|
||||
"speed": "Szybkość",
|
||||
"player": "Odtwarzacz",
|
||||
"memory": "Pamięć",
|
||||
@@ -1353,10 +1367,8 @@
|
||||
},
|
||||
"addServer": {
|
||||
"addJellyfinTitle": "Dodaj serwer Jellyfin",
|
||||
"jellyfinUrlIntro": "Wpisz URL serwera, np. `https://jellyfin.example.com`.",
|
||||
"jellyfinUrlsIntro": "Wpisz co najmniej jeden URL serwera, oddzielając je przecinkami. Plezy użyje osiągalnego URL-a o najniższym opóźnieniu.",
|
||||
"serverUrl": "URL serwera",
|
||||
"serverUrls": "URL-e serwera",
|
||||
"serverUrlsHelper": "Można podać wiele adresów URL, rozdzielonych przecinkami.",
|
||||
"findServer": "Znajdź serwer",
|
||||
"searchingLocalServers": "Szukanie lokalnych serwerów Jellyfin...",
|
||||
"localServers": "Lokalne serwery Jellyfin",
|
||||
@@ -1369,17 +1381,12 @@
|
||||
"signInFailed": "Logowanie nie powiodło się: ${error}",
|
||||
"quickConnectFailed": "Quick Connect nie powiodło się: ${error}",
|
||||
"addPlexTitle": "Zaloguj się przez Plex",
|
||||
"plexAuthIntro": "Zaloguj się przez przeglądarkę lub kod QR.",
|
||||
"plexQRPrompt": "Zeskanuj ten kod QR, aby się zalogować.",
|
||||
"waitingForPlexConfirmation": "Czekam na potwierdzenie logowania przez plex.tv…",
|
||||
"pinExpired": "PIN wygasł przed zalogowaniem. Spróbuj ponownie.",
|
||||
"duplicatePlexAccount": "Już zalogowano do Plex. Wyloguj się, aby zmienić konto.",
|
||||
"failedToRegisterAccount": "Nie udało się zarejestrować konta: ${error}",
|
||||
"enterJellyfinUrlError": "Podaj URL serwera Jellyfin",
|
||||
"addConnectionTitle": "Dodaj połączenie",
|
||||
"addConnectionTitleScoped": "Dodaj do ${name}",
|
||||
"addConnectionIntroGlobal": "Dodaj kolejny serwer multimediów. Plex i Jellyfin pojawią się razem na ekranie głównym.",
|
||||
"addConnectionIntroScoped": "Dodaj nowy serwer lub pożycz z innego profilu.",
|
||||
"signInWithPlexCard": "Zaloguj się przez Plex",
|
||||
"signInWithPlexCardSubtitle": "Autoryzuj to urządzenie. Serwery udostępnione zostaną dodane.",
|
||||
"signInWithPlexCardSubtitleScoped": "Autoryzuj konto Plex. Użytkownicy Home staną się profilami.",
|
||||
|
||||
+20
-13
@@ -14,7 +14,6 @@
|
||||
"or": "ou",
|
||||
"connectToJellyfin": "Conectar ao Jellyfin",
|
||||
"useQuickConnect": "Usar Quick Connect",
|
||||
"quickConnectCode": "Código do Quick Connect",
|
||||
"quickConnectInstructions": "Abra o Quick Connect no Jellyfin e insira este código.",
|
||||
"quickConnectWaiting": "A aguardar aprovação…",
|
||||
"quickConnectCancel": "Cancelar",
|
||||
@@ -54,6 +53,7 @@
|
||||
"ok": "OK",
|
||||
"off": "Desativado",
|
||||
"seasonNumber": "Temporada ${number}",
|
||||
"episodeNumberTitle": "Episódio ${number} - ${title}",
|
||||
"chapterNumber": "Capítulo ${number}",
|
||||
"reconnect": "Reconectar",
|
||||
"exit": "Sair",
|
||||
@@ -115,6 +115,12 @@
|
||||
"gridView": "Grade",
|
||||
"listView": "Lista",
|
||||
"showHeroSection": "Mostrar Seção de Destaque",
|
||||
"continueWatchingAction": "Ação de Continuar Assistindo",
|
||||
"continueWatchingPlay": "Reproduzir",
|
||||
"continueWatchingDetails": "Abrir detalhes",
|
||||
"episodeAction": "Ação de Episódio",
|
||||
"episodePlay": "Reproduzir",
|
||||
"episodeDetails": "Abrir detalhes",
|
||||
"useGlobalHubs": "Usar layout inicial",
|
||||
"useGlobalHubsDescription": "Mostrar hubs iniciais unificados. Caso contrário, usar recomendações da biblioteca.",
|
||||
"showServerNameOnHubs": "Mostrar Nome do Servidor nos Hubs",
|
||||
@@ -131,6 +137,8 @@
|
||||
"showSeasonPostersOnTabsDescription": "Mostrar o pôster de cada temporada acima da aba",
|
||||
"tvFullCardLayout": "Cartões TV completos",
|
||||
"tvFullCardLayoutDescription": "Usar cartões de TV só com imagem e nomes dos atores sobrepostos",
|
||||
"focusGlow": "Brilho de foco",
|
||||
"focusGlowDescription": "Mostrar um brilho suave à volta do cartão em foco",
|
||||
"hideSpoilers": "Ocultar Spoilers de Episódios Não Assistidos",
|
||||
"hideSpoilersDescription": "Desfocar miniaturas e descrições de episódios não vistos",
|
||||
"playerBackend": "Backend do Player",
|
||||
@@ -360,8 +368,8 @@
|
||||
"markAsWatched": "Marcar como Assistido",
|
||||
"markAsUnwatched": "Marcar como Não Assistido",
|
||||
"removeFromContinueWatching": "Remover de Continuar Assistindo",
|
||||
"viewDetails": "Ver detalhes",
|
||||
"goToSeries": "Ir para a série",
|
||||
"goToSeason": "Ir para a temporada",
|
||||
"shufflePlay": "Reprodução Aleatória",
|
||||
"shuffleNotAvailableOffline": "Reprodução aleatória indisponível offline",
|
||||
"fileInfo": "Info do Arquivo",
|
||||
@@ -507,7 +515,6 @@
|
||||
"fileInfoNotAvailable": "Informações do arquivo não disponíveis",
|
||||
"errorLoadingFileInfo": "Erro ao carregar info do arquivo: ${error}",
|
||||
"errorLoadingSeries": "Erro ao carregar série",
|
||||
"errorLoadingSeason": "Erro ao carregar temporada",
|
||||
"musicNotSupported": "Reprodução de música ainda não é suportada",
|
||||
"noDescriptionAvailable": "Nenhuma descrição disponível",
|
||||
"noProfilesAvailable": "Nenhum perfil disponível",
|
||||
@@ -553,7 +560,10 @@
|
||||
"position": "Posição",
|
||||
"assOverride": "Substituição ASS",
|
||||
"bold": "Negrito",
|
||||
"italic": "Itálico"
|
||||
"italic": "Itálico",
|
||||
"renderResolution": "Resolução de renderização",
|
||||
"renderResolutionScreen": "Resolução da tela",
|
||||
"renderResolutionVideo": "Resolução do vídeo"
|
||||
},
|
||||
"mpvConfig": {
|
||||
"title": "mpv.conf",
|
||||
@@ -751,6 +761,7 @@
|
||||
"rating": "Avaliação",
|
||||
"communityRating": "Avaliação da comunidade",
|
||||
"criticRating": "Avaliação da crítica",
|
||||
"userRating": "Avaliação do usuário",
|
||||
"lastPlayed": "Última reprodução",
|
||||
"datePlayed": "Data de reprodução",
|
||||
"playCount": "Reproduções",
|
||||
@@ -763,7 +774,8 @@
|
||||
"studio": "Estúdio",
|
||||
"random": "Aleatório",
|
||||
"dateShared": "Data de compartilhamento",
|
||||
"latestEpisodeAirDate": "Última data de exibição do episódio"
|
||||
"latestEpisodeAirDate": "Última data de exibição do episódio",
|
||||
"lastEpisodeDateAdded": "Data de adição do último episódio"
|
||||
}
|
||||
},
|
||||
"about": {
|
||||
@@ -1019,6 +1031,7 @@
|
||||
"unwatchedOnly": "Apenas não assistidos",
|
||||
"nextNUnwatched": "Próximos ${count} não assistidos",
|
||||
"customAmount": "Quantidade personalizada...",
|
||||
"includeSpecials": "Incluir especiais",
|
||||
"howManyEpisodes": "Quantos episódios?",
|
||||
"itemsQueued": "${count} itens na fila de download",
|
||||
"keepSynced": "Manter sincronizado",
|
||||
@@ -1179,6 +1192,7 @@
|
||||
"maxCll": "MaxCLL",
|
||||
"maxFall": "MaxFALL",
|
||||
"cacheUsed": "Cache usado",
|
||||
"cacheLimit": "Limite do cache",
|
||||
"speed": "Velocidade",
|
||||
"player": "Player",
|
||||
"memory": "Memória",
|
||||
@@ -1353,10 +1367,8 @@
|
||||
},
|
||||
"addServer": {
|
||||
"addJellyfinTitle": "Adicionar servidor Jellyfin",
|
||||
"jellyfinUrlIntro": "Insira a URL do servidor, ex. `https://jellyfin.example.com`.",
|
||||
"jellyfinUrlsIntro": "Insira uma ou mais URLs do servidor, separadas por vírgulas. O Plezy usará a URL acessível com a menor latência.",
|
||||
"serverUrl": "URL do servidor",
|
||||
"serverUrls": "URLs do servidor",
|
||||
"serverUrlsHelper": "Vários URLs permitidos, separados por vírgulas.",
|
||||
"findServer": "Encontrar servidor",
|
||||
"searchingLocalServers": "A procurar servidores Jellyfin locais...",
|
||||
"localServers": "Servidores Jellyfin locais",
|
||||
@@ -1369,17 +1381,12 @@
|
||||
"signInFailed": "Falha ao entrar: ${error}",
|
||||
"quickConnectFailed": "Quick Connect falhou: ${error}",
|
||||
"addPlexTitle": "Entrar com Plex",
|
||||
"plexAuthIntro": "Entre com um navegador ou código QR.",
|
||||
"plexQRPrompt": "Escaneie este código QR para entrar.",
|
||||
"waitingForPlexConfirmation": "Aguardando o plex.tv confirmar o login…",
|
||||
"pinExpired": "O PIN expirou antes do login. Tente novamente.",
|
||||
"duplicatePlexAccount": "Você já entrou no Plex. Saia para trocar de conta.",
|
||||
"failedToRegisterAccount": "Falha ao registrar a conta: ${error}",
|
||||
"enterJellyfinUrlError": "Insira a URL do seu servidor Jellyfin",
|
||||
"addConnectionTitle": "Adicionar conexão",
|
||||
"addConnectionTitleScoped": "Adicionar a ${name}",
|
||||
"addConnectionIntroGlobal": "Adicione outro servidor de mídia. Plex e Jellyfin aparecem juntos no Início.",
|
||||
"addConnectionIntroScoped": "Adicione um novo servidor ou pegue um emprestado de outro perfil.",
|
||||
"signInWithPlexCard": "Entrar com Plex",
|
||||
"signInWithPlexCardSubtitle": "Autorize este dispositivo. Servidores compartilhados são adicionados.",
|
||||
"signInWithPlexCardSubtitleScoped": "Autorize uma conta Plex. Usuários Home viram perfis.",
|
||||
|
||||
+20
-13
@@ -14,7 +14,6 @@
|
||||
"or": "или",
|
||||
"connectToJellyfin": "Подключиться к Jellyfin",
|
||||
"useQuickConnect": "Использовать Quick Connect",
|
||||
"quickConnectCode": "Код Quick Connect",
|
||||
"quickConnectInstructions": "Откройте Quick Connect в Jellyfin и введите этот код.",
|
||||
"quickConnectWaiting": "Ожидание подтверждения…",
|
||||
"quickConnectCancel": "Отмена",
|
||||
@@ -54,6 +53,7 @@
|
||||
"ok": "OK",
|
||||
"off": "Выкл.",
|
||||
"seasonNumber": "Сезон ${number}",
|
||||
"episodeNumberTitle": "Эпизод ${number} - ${title}",
|
||||
"chapterNumber": "Глава ${number}",
|
||||
"reconnect": "Переподключить",
|
||||
"exit": "Выход",
|
||||
@@ -115,6 +115,12 @@
|
||||
"gridView": "Сетка",
|
||||
"listView": "Список",
|
||||
"showHeroSection": "Показать раздел избранного",
|
||||
"continueWatchingAction": "Действие для «Продолжить просмотр»",
|
||||
"continueWatchingPlay": "Воспроизвести",
|
||||
"continueWatchingDetails": "Открыть сведения",
|
||||
"episodeAction": "Действие для эпизодов",
|
||||
"episodePlay": "Воспроизвести",
|
||||
"episodeDetails": "Открыть сведения",
|
||||
"useGlobalHubs": "Использовать макет главной",
|
||||
"useGlobalHubsDescription": "Показывать единые разделы главной. Иначе использовать рекомендации библиотек.",
|
||||
"showServerNameOnHubs": "Показывать имя сервера в хабах",
|
||||
@@ -131,6 +137,8 @@
|
||||
"showSeasonPostersOnTabsDescription": "Показывать постер каждого сезона над его вкладкой",
|
||||
"tvFullCardLayout": "Полные TV-карточки",
|
||||
"tvFullCardLayoutDescription": "Использовать TV-карточки только с изображением и именами актёров поверх него",
|
||||
"focusGlow": "Свечение при фокусе",
|
||||
"focusGlowDescription": "Показывать мягкое свечение вокруг карточки в фокусе",
|
||||
"hideSpoilers": "Скрыть спойлеры непросмотренных эпизодов",
|
||||
"hideSpoilersDescription": "Размывать миниатюры и описания непросмотренных серий",
|
||||
"playerBackend": "Бэкенд плеера",
|
||||
@@ -360,8 +368,8 @@
|
||||
"markAsWatched": "Отметить как просмотренное",
|
||||
"markAsUnwatched": "Отметить как непросмотренное",
|
||||
"removeFromContinueWatching": "Удалить из «Продолжить просмотр»",
|
||||
"viewDetails": "Показать сведения",
|
||||
"goToSeries": "Перейти к сериалу",
|
||||
"goToSeason": "Перейти к сезону",
|
||||
"shufflePlay": "Случайное воспроизведение",
|
||||
"shuffleNotAvailableOffline": "Перемешивание недоступно офлайн",
|
||||
"fileInfo": "Информация о файле",
|
||||
@@ -507,7 +515,6 @@
|
||||
"fileInfoNotAvailable": "Информация о файле недоступна",
|
||||
"errorLoadingFileInfo": "Ошибка загрузки информации о файле: ${error}",
|
||||
"errorLoadingSeries": "Ошибка загрузки сериала",
|
||||
"errorLoadingSeason": "Ошибка загрузки сезона",
|
||||
"musicNotSupported": "Воспроизведение музыки пока не поддерживается",
|
||||
"noDescriptionAvailable": "Описание недоступно",
|
||||
"noProfilesAvailable": "Профили недоступны",
|
||||
@@ -553,7 +560,10 @@
|
||||
"position": "Позиция",
|
||||
"assOverride": "Переопределение ASS",
|
||||
"bold": "Жирный",
|
||||
"italic": "Курсив"
|
||||
"italic": "Курсив",
|
||||
"renderResolution": "Разрешение отрисовки",
|
||||
"renderResolutionScreen": "Разрешение экрана",
|
||||
"renderResolutionVideo": "Разрешение видео"
|
||||
},
|
||||
"mpvConfig": {
|
||||
"title": "mpv.conf",
|
||||
@@ -751,6 +761,7 @@
|
||||
"rating": "Рейтинг",
|
||||
"communityRating": "Оценка сообщества",
|
||||
"criticRating": "Оценка критиков",
|
||||
"userRating": "Пользовательская оценка",
|
||||
"lastPlayed": "Последний просмотр",
|
||||
"datePlayed": "Дата просмотра",
|
||||
"playCount": "Количество просмотров",
|
||||
@@ -763,7 +774,8 @@
|
||||
"studio": "Студия",
|
||||
"random": "Случайно",
|
||||
"dateShared": "Дата открытия доступа",
|
||||
"latestEpisodeAirDate": "Дата выхода последнего эпизода"
|
||||
"latestEpisodeAirDate": "Дата выхода последнего эпизода",
|
||||
"lastEpisodeDateAdded": "Дата добавления последнего эпизода"
|
||||
}
|
||||
},
|
||||
"about": {
|
||||
@@ -1019,6 +1031,7 @@
|
||||
"unwatchedOnly": "Только непросмотренные",
|
||||
"nextNUnwatched": "Следующие ${count} непросмотренных",
|
||||
"customAmount": "Указать количество...",
|
||||
"includeSpecials": "Включить спецвыпуски",
|
||||
"howManyEpisodes": "Сколько эпизодов?",
|
||||
"itemsQueued": "${count} элементов добавлено в очередь загрузки",
|
||||
"keepSynced": "Синхронизировать",
|
||||
@@ -1179,6 +1192,7 @@
|
||||
"maxCll": "MaxCLL",
|
||||
"maxFall": "MaxFALL",
|
||||
"cacheUsed": "Кэш использован",
|
||||
"cacheLimit": "Лимит кэша",
|
||||
"speed": "Скорость",
|
||||
"player": "Плеер",
|
||||
"memory": "Память",
|
||||
@@ -1353,10 +1367,8 @@
|
||||
},
|
||||
"addServer": {
|
||||
"addJellyfinTitle": "Добавить сервер Jellyfin",
|
||||
"jellyfinUrlIntro": "Введите URL сервера, например `https://jellyfin.example.com`.",
|
||||
"jellyfinUrlsIntro": "Введите один или несколько URL сервера, разделяя их запятыми. Plezy будет использовать доступный URL с минимальной задержкой.",
|
||||
"serverUrl": "URL сервера",
|
||||
"serverUrls": "URL сервера",
|
||||
"serverUrlsHelper": "Можно указать несколько URL через запятую.",
|
||||
"findServer": "Найти сервер",
|
||||
"searchingLocalServers": "Поиск локальных серверов Jellyfin...",
|
||||
"localServers": "Локальные серверы Jellyfin",
|
||||
@@ -1369,17 +1381,12 @@
|
||||
"signInFailed": "Не удалось войти: ${error}",
|
||||
"quickConnectFailed": "Quick Connect не удался: ${error}",
|
||||
"addPlexTitle": "Войти через Plex",
|
||||
"plexAuthIntro": "Войдите через браузер или QR-код.",
|
||||
"plexQRPrompt": "Отсканируйте этот QR-код, чтобы войти.",
|
||||
"waitingForPlexConfirmation": "Ожидание подтверждения от plex.tv…",
|
||||
"pinExpired": "Срок действия PIN истёк до входа. Попробуйте снова.",
|
||||
"duplicatePlexAccount": "В Plex уже выполнен вход. Выйдите, чтобы сменить аккаунт.",
|
||||
"failedToRegisterAccount": "Не удалось зарегистрировать учётную запись: ${error}",
|
||||
"enterJellyfinUrlError": "Введите URL вашего сервера Jellyfin",
|
||||
"addConnectionTitle": "Добавить подключение",
|
||||
"addConnectionTitleScoped": "Добавить в ${name}",
|
||||
"addConnectionIntroGlobal": "Добавьте еще один медиасервер. Plex и Jellyfin появятся вместе на главной.",
|
||||
"addConnectionIntroScoped": "Добавьте новый сервер или одолжите из другого профиля.",
|
||||
"signInWithPlexCard": "Войти через Plex",
|
||||
"signInWithPlexCardSubtitle": "Авторизуйте это устройство. Общие серверы будут добавлены.",
|
||||
"signInWithPlexCardSubtitleScoped": "Авторизуйте аккаунт Plex. Пользователи Home станут профилями.",
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
/// To regenerate, run: `dart run slang`
|
||||
///
|
||||
/// Locales: 16
|
||||
/// Strings: 20320 (1270 per locale)
|
||||
/// Strings: 20441 (1277 per locale)
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: type=lint, unused_import
|
||||
|
||||
+40
-26
@@ -115,7 +115,6 @@ class _TranslationsAuthBg extends TranslationsAuthEn {
|
||||
@override String get or => 'или';
|
||||
@override String get connectToJellyfin => 'Свързване с Jellyfin';
|
||||
@override String get useQuickConnect => 'Използвай Quick Connect';
|
||||
@override String get quickConnectCode => 'Quick Connect код';
|
||||
@override String get quickConnectInstructions => 'Отворете Quick Connect в Jellyfin и въведете този код.';
|
||||
@override String get quickConnectWaiting => 'Изчакване на одобрение…';
|
||||
@override String get quickConnectCancel => 'Отказ';
|
||||
@@ -162,6 +161,7 @@ class _TranslationsCommonBg extends TranslationsCommonEn {
|
||||
@override String get ok => 'OK';
|
||||
@override String get off => 'Изкл.';
|
||||
@override String seasonNumber({required Object number}) => 'Сезон ${number}';
|
||||
@override String episodeNumberTitle({required Object number, required Object title}) => 'Епизод ${number} - ${title}';
|
||||
@override String chapterNumber({required Object number}) => 'Глава ${number}';
|
||||
@override String get reconnect => 'Свържи отново';
|
||||
@override String get exit => 'Изход';
|
||||
@@ -244,6 +244,12 @@ class _TranslationsSettingsBg extends TranslationsSettingsEn {
|
||||
@override String get gridView => 'Мрежа';
|
||||
@override String get listView => 'Списък';
|
||||
@override String get showHeroSection => 'Показвай водеща секция';
|
||||
@override String get continueWatchingAction => 'Действие за продължаване на гледането';
|
||||
@override String get continueWatchingPlay => 'Пусни';
|
||||
@override String get continueWatchingDetails => 'Отвори подробности';
|
||||
@override String get episodeAction => 'Действие за епизод';
|
||||
@override String get episodePlay => 'Пусни';
|
||||
@override String get episodeDetails => 'Отвори подробности';
|
||||
@override String get useGlobalHubs => 'Използвай начално оформление';
|
||||
@override String get useGlobalHubsDescription => 'Показвай обединени начални хъбове. В противен случай използвай препоръките на библиотеката.';
|
||||
@override String get showServerNameOnHubs => 'Показвай името на сървъра в хъбовете';
|
||||
@@ -260,6 +266,8 @@ class _TranslationsSettingsBg extends TranslationsSettingsEn {
|
||||
@override String get showSeasonPostersOnTabsDescription => 'Показвай постера на всеки сезон над неговия таб';
|
||||
@override String get tvFullCardLayout => 'Пълни TV карти';
|
||||
@override String get tvFullCardLayoutDescription => 'Използвай TV карти само с изображения, с насложени имена на актьорите';
|
||||
@override String get focusGlow => 'Сияние при фокус';
|
||||
@override String get focusGlowDescription => 'Показвай меко сияние около фокусираната карта';
|
||||
@override String get hideSpoilers => 'Скривай спойлери за негледани епизоди';
|
||||
@override String get hideSpoilersDescription => 'Замазвай миниатюри и описания за негледани епизоди';
|
||||
@override String get playerBackend => 'Енджин на плеъра';
|
||||
@@ -491,8 +499,8 @@ class _TranslationsMediaMenuBg extends TranslationsMediaMenuEn {
|
||||
@override String get markAsWatched => 'Маркирай като гледано';
|
||||
@override String get markAsUnwatched => 'Маркирай като негледано';
|
||||
@override String get removeFromContinueWatching => 'Премахни от продължаване на гледането';
|
||||
@override String get viewDetails => 'Виж подробности';
|
||||
@override String get goToSeries => 'Към сериала';
|
||||
@override String get goToSeason => 'Към сезона';
|
||||
@override String get shufflePlay => 'Разбъркано възпроизвеждане';
|
||||
@override String get shuffleNotAvailableOffline => 'Разбърканото възпроизвеждане не е налично офлайн';
|
||||
@override String get fileInfo => 'Информация за файла';
|
||||
@@ -672,7 +680,6 @@ class _TranslationsMessagesBg extends TranslationsMessagesEn {
|
||||
@override String get fileInfoNotAvailable => 'Информацията за файла не е налична';
|
||||
@override String errorLoadingFileInfo({required Object error}) => 'Грешка при зареждане на информация за файла: ${error}';
|
||||
@override String get errorLoadingSeries => 'Грешка при зареждане на сериала';
|
||||
@override String get errorLoadingSeason => 'Грешка при зареждане на сезона';
|
||||
@override String get musicNotSupported => 'Възпроизвеждането на музика все още не се поддържа';
|
||||
@override String get noDescriptionAvailable => 'Няма налично описание';
|
||||
@override String get noProfilesAvailable => 'Няма налични профили';
|
||||
@@ -726,6 +733,9 @@ class _TranslationsSubtitlingStylingBg extends TranslationsSubtitlingStylingEn {
|
||||
@override String get assOverride => 'ASS презаписване';
|
||||
@override String get bold => 'Получер';
|
||||
@override String get italic => 'Курсив';
|
||||
@override String get renderResolution => 'Резолюция на изобразяване';
|
||||
@override String get renderResolutionScreen => 'Резолюция на екрана';
|
||||
@override String get renderResolutionVideo => 'Резолюция на видеото';
|
||||
}
|
||||
|
||||
// Path: mpvConfig
|
||||
@@ -1278,6 +1288,7 @@ class _TranslationsDownloadsBg extends TranslationsDownloadsEn {
|
||||
@override String get unwatchedOnly => 'Само негледани';
|
||||
@override String nextNUnwatched({required Object count}) => 'Следващите ${count} негледани';
|
||||
@override String get customAmount => 'Персонален брой...';
|
||||
@override String get includeSpecials => 'Включи специалните';
|
||||
@override String get howManyEpisodes => 'Колко епизода?';
|
||||
@override String itemsQueued({required Object count}) => '${count} елемента са добавени в опашката за изтегляне';
|
||||
@override String get keepSynced => 'Поддържай синхронизирано';
|
||||
@@ -1402,6 +1413,7 @@ class _TranslationsPerformanceOverlayBg extends TranslationsPerformanceOverlayEn
|
||||
@override String get maxCll => 'MaxCLL';
|
||||
@override String get maxFall => 'MaxFALL';
|
||||
@override String get cacheUsed => 'Използван кеш';
|
||||
@override String get cacheLimit => 'Лимит на кеша';
|
||||
@override String get speed => 'Скорост';
|
||||
@override String get player => 'Плеър';
|
||||
@override String get memory => 'Памет';
|
||||
@@ -1597,10 +1609,8 @@ class _TranslationsAddServerBg extends TranslationsAddServerEn {
|
||||
|
||||
// Translations
|
||||
@override String get addJellyfinTitle => 'Добави Jellyfin сървър';
|
||||
@override String get jellyfinUrlIntro => 'Въведете URL адреса на сървъра, напр. `https://jellyfin.example.com`.';
|
||||
@override String get jellyfinUrlsIntro => 'Въведете един или повече URL адреси на сървъра, разделени със запетаи. Plezy ще използва достъпния URL адрес с най-ниска латентност.';
|
||||
@override String get serverUrl => 'URL адрес на сървъра';
|
||||
@override String get serverUrls => 'URL адреси на сървъра';
|
||||
@override String get serverUrlsHelper => 'Позволени са няколко URL адреса, разделени със запетаи.';
|
||||
@override String get findServer => 'Намери сървър';
|
||||
@override String get searchingLocalServers => 'Търсене на локални Jellyfin сървъри...';
|
||||
@override String get localServers => 'Локални Jellyfin сървъри';
|
||||
@@ -1613,17 +1623,12 @@ class _TranslationsAddServerBg extends TranslationsAddServerEn {
|
||||
@override String signInFailed({required Object error}) => 'Входът е неуспешен: ${error}';
|
||||
@override String quickConnectFailed({required Object error}) => 'Quick Connect е неуспешен: ${error}';
|
||||
@override String get addPlexTitle => 'Вход с Plex';
|
||||
@override String get plexAuthIntro => 'Влезте с браузър или QR код.';
|
||||
@override String get plexQRPrompt => 'Сканирайте този QR код, за да влезете.';
|
||||
@override String get waitingForPlexConfirmation => 'Изчакване plex.tv да потвърди вашия вход…';
|
||||
@override String get pinExpired => 'PIN-ът изтече преди вход. Моля, опитайте отново.';
|
||||
@override String get duplicatePlexAccount => 'Вече сте влезли в Plex. Излезте, за да смените акаунта.';
|
||||
@override String failedToRegisterAccount({required Object error}) => 'Неуспешна регистрация на акаунт: ${error}';
|
||||
@override String get enterJellyfinUrlError => 'Въведете URL адреса на вашия Jellyfin сървър';
|
||||
@override String get addConnectionTitle => 'Добави връзка';
|
||||
@override String addConnectionTitleScoped({required Object name}) => 'Добави към ${name}';
|
||||
@override String get addConnectionIntroGlobal => 'Добавете друг медиен сървър. Plex и Jellyfin се показват заедно на началния екран.';
|
||||
@override String get addConnectionIntroScoped => 'Добавете нов сървър или използвайте такъв от друг профил.';
|
||||
@override String get signInWithPlexCard => 'Вход с Plex';
|
||||
@override String get signInWithPlexCardSubtitle => 'Удостоверете това устройство. Споделените сървъри се добавят.';
|
||||
@override String get signInWithPlexCardSubtitleScoped => 'Удостоверете Plex акаунт. Домашните потребители стават профили.';
|
||||
@@ -1740,6 +1745,7 @@ class _TranslationsLibrariesSortLabelsBg extends TranslationsLibrariesSortLabels
|
||||
@override String get rating => 'Рейтинг';
|
||||
@override String get communityRating => 'Оценка от общността';
|
||||
@override String get criticRating => 'Оценка от критиците';
|
||||
@override String get userRating => 'Потребителска оценка';
|
||||
@override String get lastPlayed => 'Последно възпроизведено';
|
||||
@override String get datePlayed => 'Дата на възпроизвеждане';
|
||||
@override String get playCount => 'Брой възпроизвеждания';
|
||||
@@ -1753,6 +1759,7 @@ class _TranslationsLibrariesSortLabelsBg extends TranslationsLibrariesSortLabels
|
||||
@override String get random => 'Случайно';
|
||||
@override String get dateShared => 'Дата на споделяне';
|
||||
@override String get latestEpisodeAirDate => 'Дата на излъчване на последния епизод';
|
||||
@override String get lastEpisodeDateAdded => 'Дата на добавяне на последния епизод';
|
||||
}
|
||||
|
||||
// Path: companionRemote.session
|
||||
@@ -1931,7 +1938,6 @@ extension on TranslationsBg {
|
||||
'auth.or' => 'или',
|
||||
'auth.connectToJellyfin' => 'Свързване с Jellyfin',
|
||||
'auth.useQuickConnect' => 'Използвай Quick Connect',
|
||||
'auth.quickConnectCode' => 'Quick Connect код',
|
||||
'auth.quickConnectInstructions' => 'Отворете Quick Connect в Jellyfin и въведете този код.',
|
||||
'auth.quickConnectWaiting' => 'Изчакване на одобрение…',
|
||||
'auth.quickConnectCancel' => 'Отказ',
|
||||
@@ -1969,6 +1975,7 @@ extension on TranslationsBg {
|
||||
'common.ok' => 'OK',
|
||||
'common.off' => 'Изкл.',
|
||||
'common.seasonNumber' => ({required Object number}) => 'Сезон ${number}',
|
||||
'common.episodeNumberTitle' => ({required Object number, required Object title}) => 'Епизод ${number} - ${title}',
|
||||
'common.chapterNumber' => ({required Object number}) => 'Глава ${number}',
|
||||
'common.reconnect' => 'Свържи отново',
|
||||
'common.exit' => 'Изход',
|
||||
@@ -2024,6 +2031,12 @@ extension on TranslationsBg {
|
||||
'settings.gridView' => 'Мрежа',
|
||||
'settings.listView' => 'Списък',
|
||||
'settings.showHeroSection' => 'Показвай водеща секция',
|
||||
'settings.continueWatchingAction' => 'Действие за продължаване на гледането',
|
||||
'settings.continueWatchingPlay' => 'Пусни',
|
||||
'settings.continueWatchingDetails' => 'Отвори подробности',
|
||||
'settings.episodeAction' => 'Действие за епизод',
|
||||
'settings.episodePlay' => 'Пусни',
|
||||
'settings.episodeDetails' => 'Отвори подробности',
|
||||
'settings.useGlobalHubs' => 'Използвай начално оформление',
|
||||
'settings.useGlobalHubsDescription' => 'Показвай обединени начални хъбове. В противен случай използвай препоръките на библиотеката.',
|
||||
'settings.showServerNameOnHubs' => 'Показвай името на сървъра в хъбовете',
|
||||
@@ -2040,6 +2053,8 @@ extension on TranslationsBg {
|
||||
'settings.showSeasonPostersOnTabsDescription' => 'Показвай постера на всеки сезон над неговия таб',
|
||||
'settings.tvFullCardLayout' => 'Пълни TV карти',
|
||||
'settings.tvFullCardLayoutDescription' => 'Използвай TV карти само с изображения, с насложени имена на актьорите',
|
||||
'settings.focusGlow' => 'Сияние при фокус',
|
||||
'settings.focusGlowDescription' => 'Показвай меко сияние около фокусираната карта',
|
||||
'settings.hideSpoilers' => 'Скривай спойлери за негледани епизоди',
|
||||
'settings.hideSpoilersDescription' => 'Замазвай миниатюри и описания за негледани епизоди',
|
||||
'settings.playerBackend' => 'Енджин на плеъра',
|
||||
@@ -2259,8 +2274,8 @@ extension on TranslationsBg {
|
||||
'mediaMenu.markAsWatched' => 'Маркирай като гледано',
|
||||
'mediaMenu.markAsUnwatched' => 'Маркирай като негледано',
|
||||
'mediaMenu.removeFromContinueWatching' => 'Премахни от продължаване на гледането',
|
||||
'mediaMenu.viewDetails' => 'Виж подробности',
|
||||
'mediaMenu.goToSeries' => 'Към сериала',
|
||||
'mediaMenu.goToSeason' => 'Към сезона',
|
||||
'mediaMenu.shufflePlay' => 'Разбъркано възпроизвеждане',
|
||||
'mediaMenu.shuffleNotAvailableOffline' => 'Разбърканото възпроизвеждане не е налично офлайн',
|
||||
'mediaMenu.fileInfo' => 'Информация за файла',
|
||||
@@ -2392,7 +2407,6 @@ extension on TranslationsBg {
|
||||
'messages.fileInfoNotAvailable' => 'Информацията за файла не е налична',
|
||||
'messages.errorLoadingFileInfo' => ({required Object error}) => 'Грешка при зареждане на информация за файла: ${error}',
|
||||
'messages.errorLoadingSeries' => 'Грешка при зареждане на сериала',
|
||||
'messages.errorLoadingSeason' => 'Грешка при зареждане на сезона',
|
||||
'messages.musicNotSupported' => 'Възпроизвеждането на музика все още не се поддържа',
|
||||
'messages.noDescriptionAvailable' => 'Няма налично описание',
|
||||
'messages.noProfilesAvailable' => 'Няма налични профили',
|
||||
@@ -2424,6 +2438,8 @@ extension on TranslationsBg {
|
||||
'messages.logsUploaded' => 'Логовете са качени',
|
||||
'messages.logsUploadFailed' => 'Неуспешно качване на логовете',
|
||||
'messages.logId' => 'ID на лога',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'subtitlingStyling.text' => 'Текст',
|
||||
'subtitlingStyling.border' => 'Рамка',
|
||||
'subtitlingStyling.background' => 'Фон',
|
||||
@@ -2431,14 +2447,15 @@ extension on TranslationsBg {
|
||||
'subtitlingStyling.textColor' => 'Цвят на текста',
|
||||
'subtitlingStyling.borderSize' => 'Размер на рамката',
|
||||
'subtitlingStyling.borderColor' => 'Цвят на рамката',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'subtitlingStyling.backgroundOpacity' => 'Прозрачност на фона',
|
||||
'subtitlingStyling.backgroundColor' => 'Цвят на фона',
|
||||
'subtitlingStyling.position' => 'Позиция',
|
||||
'subtitlingStyling.assOverride' => 'ASS презаписване',
|
||||
'subtitlingStyling.bold' => 'Получер',
|
||||
'subtitlingStyling.italic' => 'Курсив',
|
||||
'subtitlingStyling.renderResolution' => 'Резолюция на изобразяване',
|
||||
'subtitlingStyling.renderResolutionScreen' => 'Резолюция на екрана',
|
||||
'subtitlingStyling.renderResolutionVideo' => 'Резолюция на видеото',
|
||||
'mpvConfig.title' => 'mpv.conf',
|
||||
'mpvConfig.description' => 'Разширени настройки на видео плейъра',
|
||||
'mpvConfig.presets' => 'Пресети',
|
||||
@@ -2615,6 +2632,7 @@ extension on TranslationsBg {
|
||||
'libraries.sortLabels.rating' => 'Рейтинг',
|
||||
'libraries.sortLabels.communityRating' => 'Оценка от общността',
|
||||
'libraries.sortLabels.criticRating' => 'Оценка от критиците',
|
||||
'libraries.sortLabels.userRating' => 'Потребителска оценка',
|
||||
'libraries.sortLabels.lastPlayed' => 'Последно възпроизведено',
|
||||
'libraries.sortLabels.datePlayed' => 'Дата на възпроизвеждане',
|
||||
'libraries.sortLabels.playCount' => 'Брой възпроизвеждания',
|
||||
@@ -2628,6 +2646,7 @@ extension on TranslationsBg {
|
||||
'libraries.sortLabels.random' => 'Случайно',
|
||||
'libraries.sortLabels.dateShared' => 'Дата на споделяне',
|
||||
'libraries.sortLabels.latestEpisodeAirDate' => 'Дата на излъчване на последния епизод',
|
||||
'libraries.sortLabels.lastEpisodeDateAdded' => 'Дата на добавяне на последния епизод',
|
||||
'about.title' => 'Относно',
|
||||
'about.openSourceLicenses' => 'Лицензи с отворен код',
|
||||
'about.versionLabel' => ({required Object version}) => 'Версия ${version}',
|
||||
@@ -2860,6 +2879,7 @@ extension on TranslationsBg {
|
||||
'downloads.unwatchedOnly' => 'Само негледани',
|
||||
'downloads.nextNUnwatched' => ({required Object count}) => 'Следващите ${count} негледани',
|
||||
'downloads.customAmount' => 'Персонален брой...',
|
||||
'downloads.includeSpecials' => 'Включи специалните',
|
||||
'downloads.howManyEpisodes' => 'Колко епизода?',
|
||||
'downloads.itemsQueued' => ({required Object count}) => '${count} елемента са добавени в опашката за изтегляне',
|
||||
'downloads.keepSynced' => 'Поддържай синхронизирано',
|
||||
@@ -2932,6 +2952,8 @@ extension on TranslationsBg {
|
||||
'companionRemote.pairing.authFailed' => 'Удостоверяването е неуспешно. Двете устройства трябва да използват същия Plex акаунт.',
|
||||
'companionRemote.pairing.failedToConnect' => ({required Object error}) => 'Неуспешно свързване: ${error}',
|
||||
'companionRemote.remote.disconnectConfirm' => 'Искате ли да прекъснете връзката с дистанционната сесия?',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'companionRemote.remote.reconnecting' => 'Повторно свързване...',
|
||||
'companionRemote.remote.attemptOf' => ({required Object current}) => 'Опит ${current} от 5',
|
||||
'companionRemote.remote.retryNow' => 'Опитай сега',
|
||||
@@ -2945,8 +2967,6 @@ extension on TranslationsBg {
|
||||
'companionRemote.remote.tabSearch' => 'Търсене',
|
||||
'companionRemote.remote.tabDownloads' => 'Изтегляния',
|
||||
'companionRemote.remote.tabSettings' => 'Настройки',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'companionRemote.remote.previous' => 'Предишен',
|
||||
'companionRemote.remote.playPause' => 'Пускане/пауза',
|
||||
'companionRemote.remote.next' => 'Следващ',
|
||||
@@ -3006,6 +3026,7 @@ extension on TranslationsBg {
|
||||
'performanceOverlay.maxCll' => 'MaxCLL',
|
||||
'performanceOverlay.maxFall' => 'MaxFALL',
|
||||
'performanceOverlay.cacheUsed' => 'Използван кеш',
|
||||
'performanceOverlay.cacheLimit' => 'Лимит на кеша',
|
||||
'performanceOverlay.speed' => 'Скорост',
|
||||
'performanceOverlay.player' => 'Плеър',
|
||||
'performanceOverlay.memory' => 'Памет',
|
||||
@@ -3158,10 +3179,8 @@ extension on TranslationsBg {
|
||||
'trackers.libraryFilter.libraries' => 'Библиотеки',
|
||||
'trackers.libraryFilter.noLibraries' => 'Няма налични библиотеки',
|
||||
'addServer.addJellyfinTitle' => 'Добави Jellyfin сървър',
|
||||
'addServer.jellyfinUrlIntro' => 'Въведете URL адреса на сървъра, напр. `https://jellyfin.example.com`.',
|
||||
'addServer.jellyfinUrlsIntro' => 'Въведете един или повече URL адреси на сървъра, разделени със запетаи. Plezy ще използва достъпния URL адрес с най-ниска латентност.',
|
||||
'addServer.serverUrl' => 'URL адрес на сървъра',
|
||||
'addServer.serverUrls' => 'URL адреси на сървъра',
|
||||
'addServer.serverUrlsHelper' => 'Позволени са няколко URL адреса, разделени със запетаи.',
|
||||
'addServer.findServer' => 'Намери сървър',
|
||||
'addServer.searchingLocalServers' => 'Търсене на локални Jellyfin сървъри...',
|
||||
'addServer.localServers' => 'Локални Jellyfin сървъри',
|
||||
@@ -3174,17 +3193,12 @@ extension on TranslationsBg {
|
||||
'addServer.signInFailed' => ({required Object error}) => 'Входът е неуспешен: ${error}',
|
||||
'addServer.quickConnectFailed' => ({required Object error}) => 'Quick Connect е неуспешен: ${error}',
|
||||
'addServer.addPlexTitle' => 'Вход с Plex',
|
||||
'addServer.plexAuthIntro' => 'Влезте с браузър или QR код.',
|
||||
'addServer.plexQRPrompt' => 'Сканирайте този QR код, за да влезете.',
|
||||
'addServer.waitingForPlexConfirmation' => 'Изчакване plex.tv да потвърди вашия вход…',
|
||||
'addServer.pinExpired' => 'PIN-ът изтече преди вход. Моля, опитайте отново.',
|
||||
'addServer.duplicatePlexAccount' => 'Вече сте влезли в Plex. Излезте, за да смените акаунта.',
|
||||
'addServer.failedToRegisterAccount' => ({required Object error}) => 'Неуспешна регистрация на акаунт: ${error}',
|
||||
'addServer.enterJellyfinUrlError' => 'Въведете URL адреса на вашия Jellyfin сървър',
|
||||
'addServer.addConnectionTitle' => 'Добави връзка',
|
||||
'addServer.addConnectionTitleScoped' => ({required Object name}) => 'Добави към ${name}',
|
||||
'addServer.addConnectionIntroGlobal' => 'Добавете друг медиен сървър. Plex и Jellyfin се показват заедно на началния екран.',
|
||||
'addServer.addConnectionIntroScoped' => 'Добавете нов сървър или използвайте такъв от друг профил.',
|
||||
'addServer.signInWithPlexCard' => 'Вход с Plex',
|
||||
'addServer.signInWithPlexCardSubtitle' => 'Удостоверете това устройство. Споделените сървъри се добавят.',
|
||||
'addServer.signInWithPlexCardSubtitleScoped' => 'Удостоверете Plex акаунт. Домашните потребители стават профили.',
|
||||
|
||||
+40
-26
@@ -115,7 +115,6 @@ class _TranslationsAuthDa extends TranslationsAuthEn {
|
||||
@override String get or => 'eller';
|
||||
@override String get connectToJellyfin => 'Forbind til Jellyfin';
|
||||
@override String get useQuickConnect => 'Brug Quick Connect';
|
||||
@override String get quickConnectCode => 'Quick Connect-kode';
|
||||
@override String get quickConnectInstructions => 'Åbn Quick Connect i Jellyfin, og indtast denne kode.';
|
||||
@override String get quickConnectWaiting => 'Venter på godkendelse…';
|
||||
@override String get quickConnectCancel => 'Annullér';
|
||||
@@ -162,6 +161,7 @@ class _TranslationsCommonDa extends TranslationsCommonEn {
|
||||
@override String get ok => 'OK';
|
||||
@override String get off => 'Fra';
|
||||
@override String seasonNumber({required Object number}) => 'Sæson ${number}';
|
||||
@override String episodeNumberTitle({required Object number, required Object title}) => 'Episode ${number} - ${title}';
|
||||
@override String chapterNumber({required Object number}) => 'Kapitel ${number}';
|
||||
@override String get reconnect => 'Genopret forbindelse';
|
||||
@override String get exit => 'Afslut';
|
||||
@@ -244,6 +244,12 @@ class _TranslationsSettingsDa extends TranslationsSettingsEn {
|
||||
@override String get gridView => 'Gitter';
|
||||
@override String get listView => 'Liste';
|
||||
@override String get showHeroSection => 'Vis hero-sektion';
|
||||
@override String get continueWatchingAction => 'Handling for Fortsæt med at se';
|
||||
@override String get continueWatchingPlay => 'Afspil';
|
||||
@override String get continueWatchingDetails => 'Åbn detaljer';
|
||||
@override String get episodeAction => 'Handling for afsnit';
|
||||
@override String get episodePlay => 'Afspil';
|
||||
@override String get episodeDetails => 'Åbn detaljer';
|
||||
@override String get useGlobalHubs => 'Brug startlayout';
|
||||
@override String get useGlobalHubsDescription => 'Vis samlet startsideindhold. Brug ellers biblioteksanbefalinger.';
|
||||
@override String get showServerNameOnHubs => 'Vis servernavn på hubbe';
|
||||
@@ -260,6 +266,8 @@ class _TranslationsSettingsDa extends TranslationsSettingsEn {
|
||||
@override String get showSeasonPostersOnTabsDescription => 'Vis hver sæsons plakat over dens fane';
|
||||
@override String get tvFullCardLayout => 'Fuldflade TV-kort';
|
||||
@override String get tvFullCardLayoutDescription => 'Brug TV-kort kun med billeder og skuespillernavne ovenpå';
|
||||
@override String get focusGlow => 'Fokusglød';
|
||||
@override String get focusGlowDescription => 'Vis en blød glød omkring det fokuserede kort';
|
||||
@override String get hideSpoilers => 'Skjul spoilere for usete episoder';
|
||||
@override String get hideSpoilersDescription => 'Slør miniaturebilleder og beskrivelser for usete episoder';
|
||||
@override String get playerBackend => 'Afspillerbackend';
|
||||
@@ -491,8 +499,8 @@ class _TranslationsMediaMenuDa extends TranslationsMediaMenuEn {
|
||||
@override String get markAsWatched => 'Markér som set';
|
||||
@override String get markAsUnwatched => 'Markér som uset';
|
||||
@override String get removeFromContinueWatching => 'Fjern fra Fortsæt med at se';
|
||||
@override String get viewDetails => 'Vis detaljer';
|
||||
@override String get goToSeries => 'Gå til serie';
|
||||
@override String get goToSeason => 'Gå til sæson';
|
||||
@override String get shufflePlay => 'Afspil tilfældigt';
|
||||
@override String get shuffleNotAvailableOffline => 'Bland afspilning er ikke tilgængelig offline';
|
||||
@override String get fileInfo => 'Filinfo';
|
||||
@@ -672,7 +680,6 @@ class _TranslationsMessagesDa extends TranslationsMessagesEn {
|
||||
@override String get fileInfoNotAvailable => 'Filinfo ikke tilgængelig';
|
||||
@override String errorLoadingFileInfo({required Object error}) => 'Fejl ved indlæsning af filinfo: ${error}';
|
||||
@override String get errorLoadingSeries => 'Fejl ved indlæsning af serie';
|
||||
@override String get errorLoadingSeason => 'Fejl ved indlæsning af sæson';
|
||||
@override String get musicNotSupported => 'Musikafspilning understøttes endnu ikke';
|
||||
@override String get noDescriptionAvailable => 'Ingen beskrivelse tilgængelig';
|
||||
@override String get noProfilesAvailable => 'Ingen profiler tilgængelige';
|
||||
@@ -726,6 +733,9 @@ class _TranslationsSubtitlingStylingDa extends TranslationsSubtitlingStylingEn {
|
||||
@override String get assOverride => 'ASS-tilsidesættelse';
|
||||
@override String get bold => 'Fed';
|
||||
@override String get italic => 'Kursiv';
|
||||
@override String get renderResolution => 'Gengivelsesopløsning';
|
||||
@override String get renderResolutionScreen => 'Skærmopløsning';
|
||||
@override String get renderResolutionVideo => 'Videoopløsning';
|
||||
}
|
||||
|
||||
// Path: mpvConfig
|
||||
@@ -1278,6 +1288,7 @@ class _TranslationsDownloadsDa extends TranslationsDownloadsEn {
|
||||
@override String get unwatchedOnly => 'Kun usete';
|
||||
@override String nextNUnwatched({required Object count}) => 'Næste ${count} usete';
|
||||
@override String get customAmount => 'Angiv antal...';
|
||||
@override String get includeSpecials => 'Inkludér specials';
|
||||
@override String get howManyEpisodes => 'Hvor mange episoder?';
|
||||
@override String itemsQueued({required Object count}) => '${count} elementer sat i kø til download';
|
||||
@override String get keepSynced => 'Hold synkroniseret';
|
||||
@@ -1402,6 +1413,7 @@ class _TranslationsPerformanceOverlayDa extends TranslationsPerformanceOverlayEn
|
||||
@override String get maxCll => 'MaxCLL';
|
||||
@override String get maxFall => 'MaxFALL';
|
||||
@override String get cacheUsed => 'Brugt cache';
|
||||
@override String get cacheLimit => 'Cachegrænse';
|
||||
@override String get speed => 'Hastighed';
|
||||
@override String get player => 'Afspiller';
|
||||
@override String get memory => 'Hukommelse';
|
||||
@@ -1597,10 +1609,8 @@ class _TranslationsAddServerDa extends TranslationsAddServerEn {
|
||||
|
||||
// Translations
|
||||
@override String get addJellyfinTitle => 'Tilføj Jellyfin-server';
|
||||
@override String get jellyfinUrlIntro => 'Indtast server-URL\'en, f.eks. `https://jellyfin.example.com`.';
|
||||
@override String get jellyfinUrlsIntro => 'Indtast en eller flere server-URL\'er, adskilt med kommaer. Plezy bruger den tilgængelige URL med lavest latenstid.';
|
||||
@override String get serverUrl => 'Server-URL';
|
||||
@override String get serverUrls => 'Server-URL\'er';
|
||||
@override String get serverUrlsHelper => 'Flere URL\'er er tilladt, adskilt med kommaer.';
|
||||
@override String get findServer => 'Find server';
|
||||
@override String get searchingLocalServers => 'Søger efter lokale Jellyfin-servere...';
|
||||
@override String get localServers => 'Lokale Jellyfin-servere';
|
||||
@@ -1613,17 +1623,12 @@ class _TranslationsAddServerDa extends TranslationsAddServerEn {
|
||||
@override String signInFailed({required Object error}) => 'Login mislykkedes: ${error}';
|
||||
@override String quickConnectFailed({required Object error}) => 'Quick Connect mislykkedes: ${error}';
|
||||
@override String get addPlexTitle => 'Log ind med Plex';
|
||||
@override String get plexAuthIntro => 'Log ind med en browser eller QR-kode.';
|
||||
@override String get plexQRPrompt => 'Scan denne QR-kode for at logge ind.';
|
||||
@override String get waitingForPlexConfirmation => 'Venter på at plex.tv bekræfter login…';
|
||||
@override String get pinExpired => 'PIN udløb før login. Prøv igen.';
|
||||
@override String get duplicatePlexAccount => 'Allerede logget ind på Plex. Log ud for at skifte konto.';
|
||||
@override String failedToRegisterAccount({required Object error}) => 'Kunne ikke registrere kontoen: ${error}';
|
||||
@override String get enterJellyfinUrlError => 'Angiv URL\'en til din Jellyfin-server';
|
||||
@override String get addConnectionTitle => 'Tilføj forbindelse';
|
||||
@override String addConnectionTitleScoped({required Object name}) => 'Tilføj til ${name}';
|
||||
@override String get addConnectionIntroGlobal => 'Tilføj en anden medieserver. Plex og Jellyfin vises sammen på Hjem.';
|
||||
@override String get addConnectionIntroScoped => 'Tilføj en ny server, eller lån en fra en anden profil.';
|
||||
@override String get signInWithPlexCard => 'Log ind med Plex';
|
||||
@override String get signInWithPlexCardSubtitle => 'Godkend denne enhed. Delte servere tilføjes.';
|
||||
@override String get signInWithPlexCardSubtitleScoped => 'Godkend en Plex-konto. Home-brugere bliver profiler.';
|
||||
@@ -1740,6 +1745,7 @@ class _TranslationsLibrariesSortLabelsDa extends TranslationsLibrariesSortLabels
|
||||
@override String get rating => 'Vurdering';
|
||||
@override String get communityRating => 'Fællesskabsvurdering';
|
||||
@override String get criticRating => 'Kritikerbedømmelse';
|
||||
@override String get userRating => 'Brugerbedømmelse';
|
||||
@override String get lastPlayed => 'Sidst afspillet';
|
||||
@override String get datePlayed => 'Afspilningsdato';
|
||||
@override String get playCount => 'Antal afspilninger';
|
||||
@@ -1753,6 +1759,7 @@ class _TranslationsLibrariesSortLabelsDa extends TranslationsLibrariesSortLabels
|
||||
@override String get random => 'Tilfældig';
|
||||
@override String get dateShared => 'Delt dato';
|
||||
@override String get latestEpisodeAirDate => 'Seneste episodes premieredato';
|
||||
@override String get lastEpisodeDateAdded => 'Dato for senest tilføjede episode';
|
||||
}
|
||||
|
||||
// Path: companionRemote.session
|
||||
@@ -1931,7 +1938,6 @@ extension on TranslationsDa {
|
||||
'auth.or' => 'eller',
|
||||
'auth.connectToJellyfin' => 'Forbind til Jellyfin',
|
||||
'auth.useQuickConnect' => 'Brug Quick Connect',
|
||||
'auth.quickConnectCode' => 'Quick Connect-kode',
|
||||
'auth.quickConnectInstructions' => 'Åbn Quick Connect i Jellyfin, og indtast denne kode.',
|
||||
'auth.quickConnectWaiting' => 'Venter på godkendelse…',
|
||||
'auth.quickConnectCancel' => 'Annullér',
|
||||
@@ -1969,6 +1975,7 @@ extension on TranslationsDa {
|
||||
'common.ok' => 'OK',
|
||||
'common.off' => 'Fra',
|
||||
'common.seasonNumber' => ({required Object number}) => 'Sæson ${number}',
|
||||
'common.episodeNumberTitle' => ({required Object number, required Object title}) => 'Episode ${number} - ${title}',
|
||||
'common.chapterNumber' => ({required Object number}) => 'Kapitel ${number}',
|
||||
'common.reconnect' => 'Genopret forbindelse',
|
||||
'common.exit' => 'Afslut',
|
||||
@@ -2024,6 +2031,12 @@ extension on TranslationsDa {
|
||||
'settings.gridView' => 'Gitter',
|
||||
'settings.listView' => 'Liste',
|
||||
'settings.showHeroSection' => 'Vis hero-sektion',
|
||||
'settings.continueWatchingAction' => 'Handling for Fortsæt med at se',
|
||||
'settings.continueWatchingPlay' => 'Afspil',
|
||||
'settings.continueWatchingDetails' => 'Åbn detaljer',
|
||||
'settings.episodeAction' => 'Handling for afsnit',
|
||||
'settings.episodePlay' => 'Afspil',
|
||||
'settings.episodeDetails' => 'Åbn detaljer',
|
||||
'settings.useGlobalHubs' => 'Brug startlayout',
|
||||
'settings.useGlobalHubsDescription' => 'Vis samlet startsideindhold. Brug ellers biblioteksanbefalinger.',
|
||||
'settings.showServerNameOnHubs' => 'Vis servernavn på hubbe',
|
||||
@@ -2040,6 +2053,8 @@ extension on TranslationsDa {
|
||||
'settings.showSeasonPostersOnTabsDescription' => 'Vis hver sæsons plakat over dens fane',
|
||||
'settings.tvFullCardLayout' => 'Fuldflade TV-kort',
|
||||
'settings.tvFullCardLayoutDescription' => 'Brug TV-kort kun med billeder og skuespillernavne ovenpå',
|
||||
'settings.focusGlow' => 'Fokusglød',
|
||||
'settings.focusGlowDescription' => 'Vis en blød glød omkring det fokuserede kort',
|
||||
'settings.hideSpoilers' => 'Skjul spoilere for usete episoder',
|
||||
'settings.hideSpoilersDescription' => 'Slør miniaturebilleder og beskrivelser for usete episoder',
|
||||
'settings.playerBackend' => 'Afspillerbackend',
|
||||
@@ -2259,8 +2274,8 @@ extension on TranslationsDa {
|
||||
'mediaMenu.markAsWatched' => 'Markér som set',
|
||||
'mediaMenu.markAsUnwatched' => 'Markér som uset',
|
||||
'mediaMenu.removeFromContinueWatching' => 'Fjern fra Fortsæt med at se',
|
||||
'mediaMenu.viewDetails' => 'Vis detaljer',
|
||||
'mediaMenu.goToSeries' => 'Gå til serie',
|
||||
'mediaMenu.goToSeason' => 'Gå til sæson',
|
||||
'mediaMenu.shufflePlay' => 'Afspil tilfældigt',
|
||||
'mediaMenu.shuffleNotAvailableOffline' => 'Bland afspilning er ikke tilgængelig offline',
|
||||
'mediaMenu.fileInfo' => 'Filinfo',
|
||||
@@ -2392,7 +2407,6 @@ extension on TranslationsDa {
|
||||
'messages.fileInfoNotAvailable' => 'Filinfo ikke tilgængelig',
|
||||
'messages.errorLoadingFileInfo' => ({required Object error}) => 'Fejl ved indlæsning af filinfo: ${error}',
|
||||
'messages.errorLoadingSeries' => 'Fejl ved indlæsning af serie',
|
||||
'messages.errorLoadingSeason' => 'Fejl ved indlæsning af sæson',
|
||||
'messages.musicNotSupported' => 'Musikafspilning understøttes endnu ikke',
|
||||
'messages.noDescriptionAvailable' => 'Ingen beskrivelse tilgængelig',
|
||||
'messages.noProfilesAvailable' => 'Ingen profiler tilgængelige',
|
||||
@@ -2424,6 +2438,8 @@ extension on TranslationsDa {
|
||||
'messages.logsUploaded' => 'Logs uploadet',
|
||||
'messages.logsUploadFailed' => 'Kunne ikke uploade logs',
|
||||
'messages.logId' => 'Log-ID',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'subtitlingStyling.text' => 'Tekst',
|
||||
'subtitlingStyling.border' => 'Kant',
|
||||
'subtitlingStyling.background' => 'Baggrund',
|
||||
@@ -2431,14 +2447,15 @@ extension on TranslationsDa {
|
||||
'subtitlingStyling.textColor' => 'Tekstfarve',
|
||||
'subtitlingStyling.borderSize' => 'Kantstørrelse',
|
||||
'subtitlingStyling.borderColor' => 'Kantfarve',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'subtitlingStyling.backgroundOpacity' => 'Baggrundsgennemsigtighed',
|
||||
'subtitlingStyling.backgroundColor' => 'Baggrundsfarve',
|
||||
'subtitlingStyling.position' => 'Position',
|
||||
'subtitlingStyling.assOverride' => 'ASS-tilsidesættelse',
|
||||
'subtitlingStyling.bold' => 'Fed',
|
||||
'subtitlingStyling.italic' => 'Kursiv',
|
||||
'subtitlingStyling.renderResolution' => 'Gengivelsesopløsning',
|
||||
'subtitlingStyling.renderResolutionScreen' => 'Skærmopløsning',
|
||||
'subtitlingStyling.renderResolutionVideo' => 'Videoopløsning',
|
||||
'mpvConfig.title' => 'mpv.conf',
|
||||
'mpvConfig.description' => 'Avancerede videoafspillerindstillinger',
|
||||
'mpvConfig.presets' => 'Forudindstillinger',
|
||||
@@ -2615,6 +2632,7 @@ extension on TranslationsDa {
|
||||
'libraries.sortLabels.rating' => 'Vurdering',
|
||||
'libraries.sortLabels.communityRating' => 'Fællesskabsvurdering',
|
||||
'libraries.sortLabels.criticRating' => 'Kritikerbedømmelse',
|
||||
'libraries.sortLabels.userRating' => 'Brugerbedømmelse',
|
||||
'libraries.sortLabels.lastPlayed' => 'Sidst afspillet',
|
||||
'libraries.sortLabels.datePlayed' => 'Afspilningsdato',
|
||||
'libraries.sortLabels.playCount' => 'Antal afspilninger',
|
||||
@@ -2628,6 +2646,7 @@ extension on TranslationsDa {
|
||||
'libraries.sortLabels.random' => 'Tilfældig',
|
||||
'libraries.sortLabels.dateShared' => 'Delt dato',
|
||||
'libraries.sortLabels.latestEpisodeAirDate' => 'Seneste episodes premieredato',
|
||||
'libraries.sortLabels.lastEpisodeDateAdded' => 'Dato for senest tilføjede episode',
|
||||
'about.title' => 'Om',
|
||||
'about.openSourceLicenses' => 'Open source-licenser',
|
||||
'about.versionLabel' => ({required Object version}) => 'Version ${version}',
|
||||
@@ -2860,6 +2879,7 @@ extension on TranslationsDa {
|
||||
'downloads.unwatchedOnly' => 'Kun usete',
|
||||
'downloads.nextNUnwatched' => ({required Object count}) => 'Næste ${count} usete',
|
||||
'downloads.customAmount' => 'Angiv antal...',
|
||||
'downloads.includeSpecials' => 'Inkludér specials',
|
||||
'downloads.howManyEpisodes' => 'Hvor mange episoder?',
|
||||
'downloads.itemsQueued' => ({required Object count}) => '${count} elementer sat i kø til download',
|
||||
'downloads.keepSynced' => 'Hold synkroniseret',
|
||||
@@ -2932,6 +2952,8 @@ extension on TranslationsDa {
|
||||
'companionRemote.pairing.authFailed' => 'Godkendelse mislykkedes. Begge enheder skal bruge samme Plex-konto.',
|
||||
'companionRemote.pairing.failedToConnect' => ({required Object error}) => 'Kunne ikke oprette forbindelse: ${error}',
|
||||
'companionRemote.remote.disconnectConfirm' => 'Vil du afbryde fra fjernsessionen?',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'companionRemote.remote.reconnecting' => 'Genopretter forbindelse...',
|
||||
'companionRemote.remote.attemptOf' => ({required Object current}) => 'Forsøg ${current} af 5',
|
||||
'companionRemote.remote.retryNow' => 'Prøv igen nu',
|
||||
@@ -2945,8 +2967,6 @@ extension on TranslationsDa {
|
||||
'companionRemote.remote.tabSearch' => 'Søg',
|
||||
'companionRemote.remote.tabDownloads' => 'Downloads',
|
||||
'companionRemote.remote.tabSettings' => 'Indstillinger',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'companionRemote.remote.previous' => 'Forrige',
|
||||
'companionRemote.remote.playPause' => 'Afspil/Pause',
|
||||
'companionRemote.remote.next' => 'Næste',
|
||||
@@ -3006,6 +3026,7 @@ extension on TranslationsDa {
|
||||
'performanceOverlay.maxCll' => 'MaxCLL',
|
||||
'performanceOverlay.maxFall' => 'MaxFALL',
|
||||
'performanceOverlay.cacheUsed' => 'Brugt cache',
|
||||
'performanceOverlay.cacheLimit' => 'Cachegrænse',
|
||||
'performanceOverlay.speed' => 'Hastighed',
|
||||
'performanceOverlay.player' => 'Afspiller',
|
||||
'performanceOverlay.memory' => 'Hukommelse',
|
||||
@@ -3158,10 +3179,8 @@ extension on TranslationsDa {
|
||||
'trackers.libraryFilter.libraries' => 'Biblioteker',
|
||||
'trackers.libraryFilter.noLibraries' => 'Ingen biblioteker tilgængelige',
|
||||
'addServer.addJellyfinTitle' => 'Tilføj Jellyfin-server',
|
||||
'addServer.jellyfinUrlIntro' => 'Indtast server-URL\'en, f.eks. `https://jellyfin.example.com`.',
|
||||
'addServer.jellyfinUrlsIntro' => 'Indtast en eller flere server-URL\'er, adskilt med kommaer. Plezy bruger den tilgængelige URL med lavest latenstid.',
|
||||
'addServer.serverUrl' => 'Server-URL',
|
||||
'addServer.serverUrls' => 'Server-URL\'er',
|
||||
'addServer.serverUrlsHelper' => 'Flere URL\'er er tilladt, adskilt med kommaer.',
|
||||
'addServer.findServer' => 'Find server',
|
||||
'addServer.searchingLocalServers' => 'Søger efter lokale Jellyfin-servere...',
|
||||
'addServer.localServers' => 'Lokale Jellyfin-servere',
|
||||
@@ -3174,17 +3193,12 @@ extension on TranslationsDa {
|
||||
'addServer.signInFailed' => ({required Object error}) => 'Login mislykkedes: ${error}',
|
||||
'addServer.quickConnectFailed' => ({required Object error}) => 'Quick Connect mislykkedes: ${error}',
|
||||
'addServer.addPlexTitle' => 'Log ind med Plex',
|
||||
'addServer.plexAuthIntro' => 'Log ind med en browser eller QR-kode.',
|
||||
'addServer.plexQRPrompt' => 'Scan denne QR-kode for at logge ind.',
|
||||
'addServer.waitingForPlexConfirmation' => 'Venter på at plex.tv bekræfter login…',
|
||||
'addServer.pinExpired' => 'PIN udløb før login. Prøv igen.',
|
||||
'addServer.duplicatePlexAccount' => 'Allerede logget ind på Plex. Log ud for at skifte konto.',
|
||||
'addServer.failedToRegisterAccount' => ({required Object error}) => 'Kunne ikke registrere kontoen: ${error}',
|
||||
'addServer.enterJellyfinUrlError' => 'Angiv URL\'en til din Jellyfin-server',
|
||||
'addServer.addConnectionTitle' => 'Tilføj forbindelse',
|
||||
'addServer.addConnectionTitleScoped' => ({required Object name}) => 'Tilføj til ${name}',
|
||||
'addServer.addConnectionIntroGlobal' => 'Tilføj en anden medieserver. Plex og Jellyfin vises sammen på Hjem.',
|
||||
'addServer.addConnectionIntroScoped' => 'Tilføj en ny server, eller lån en fra en anden profil.',
|
||||
'addServer.signInWithPlexCard' => 'Log ind med Plex',
|
||||
'addServer.signInWithPlexCardSubtitle' => 'Godkend denne enhed. Delte servere tilføjes.',
|
||||
'addServer.signInWithPlexCardSubtitleScoped' => 'Godkend en Plex-konto. Home-brugere bliver profiler.',
|
||||
|
||||
+40
-26
@@ -115,7 +115,6 @@ class _TranslationsAuthDe extends TranslationsAuthEn {
|
||||
@override String get or => 'oder';
|
||||
@override String get connectToJellyfin => 'Mit Jellyfin verbinden';
|
||||
@override String get useQuickConnect => 'Quick Connect verwenden';
|
||||
@override String get quickConnectCode => 'Quick Connect-Code';
|
||||
@override String get quickConnectInstructions => 'Öffne Quick Connect in Jellyfin und gib diesen Code ein.';
|
||||
@override String get quickConnectWaiting => 'Warte auf Bestätigung…';
|
||||
@override String get quickConnectCancel => 'Abbrechen';
|
||||
@@ -162,6 +161,7 @@ class _TranslationsCommonDe extends TranslationsCommonEn {
|
||||
@override String get ok => 'OK';
|
||||
@override String get off => 'Aus';
|
||||
@override String seasonNumber({required Object number}) => 'Staffel ${number}';
|
||||
@override String episodeNumberTitle({required Object number, required Object title}) => 'Episode ${number} - ${title}';
|
||||
@override String chapterNumber({required Object number}) => 'Kapitel ${number}';
|
||||
@override String get reconnect => 'Erneut verbinden';
|
||||
@override String get exit => 'Beenden';
|
||||
@@ -244,6 +244,12 @@ class _TranslationsSettingsDe extends TranslationsSettingsEn {
|
||||
@override String get gridView => 'Raster';
|
||||
@override String get listView => 'Liste';
|
||||
@override String get showHeroSection => 'Hero-Bereich anzeigen';
|
||||
@override String get continueWatchingAction => 'Aktion für Weiterschauen';
|
||||
@override String get continueWatchingPlay => 'Abspielen';
|
||||
@override String get continueWatchingDetails => 'Details öffnen';
|
||||
@override String get episodeAction => 'Episodenaktion';
|
||||
@override String get episodePlay => 'Abspielen';
|
||||
@override String get episodeDetails => 'Details öffnen';
|
||||
@override String get useGlobalHubs => 'Startlayout verwenden';
|
||||
@override String get useGlobalHubsDescription => 'Einheitliche Start-Hubs anzeigen. Sonst Bibliotheksempfehlungen verwenden.';
|
||||
@override String get showServerNameOnHubs => 'Servername bei Hubs anzeigen';
|
||||
@@ -260,6 +266,8 @@ class _TranslationsSettingsDe extends TranslationsSettingsEn {
|
||||
@override String get showSeasonPostersOnTabsDescription => 'Poster jeder Staffel über ihrem Tab anzeigen';
|
||||
@override String get tvFullCardLayout => 'Vollflächige TV-Karten';
|
||||
@override String get tvFullCardLayoutDescription => 'TV-Karten nur mit Bild verwenden und Darstellernamen einblenden';
|
||||
@override String get focusGlow => 'Fokus-Leuchten';
|
||||
@override String get focusGlowDescription => 'Sanftes Leuchten um die fokussierte Karte anzeigen';
|
||||
@override String get hideSpoilers => 'Spoiler für nicht gesehene Episoden verbergen';
|
||||
@override String get hideSpoilersDescription => 'Vorschaubilder und Beschreibungen ungesehener Episoden verwischen';
|
||||
@override String get playerBackend => 'Player-Backend';
|
||||
@@ -491,8 +499,8 @@ class _TranslationsMediaMenuDe extends TranslationsMediaMenuEn {
|
||||
@override String get markAsWatched => 'Als gesehen markieren';
|
||||
@override String get markAsUnwatched => 'Als ungesehen markieren';
|
||||
@override String get removeFromContinueWatching => 'Aus ‚Weiterschauen‘ entfernen';
|
||||
@override String get viewDetails => 'Details anzeigen';
|
||||
@override String get goToSeries => 'Zur Serie';
|
||||
@override String get goToSeason => 'Zur Staffel';
|
||||
@override String get shufflePlay => 'Zufallswiedergabe';
|
||||
@override String get shuffleNotAvailableOffline => 'Zufallswiedergabe ist offline nicht verfügbar';
|
||||
@override String get fileInfo => 'Dateiinfo';
|
||||
@@ -672,7 +680,6 @@ class _TranslationsMessagesDe extends TranslationsMessagesEn {
|
||||
@override String get fileInfoNotAvailable => 'Dateiinfo nicht verfügbar';
|
||||
@override String errorLoadingFileInfo({required Object error}) => 'Fehler beim Laden der Dateiinfo: ${error}';
|
||||
@override String get errorLoadingSeries => 'Fehler beim Laden der Serie';
|
||||
@override String get errorLoadingSeason => 'Fehler beim Laden der Staffel';
|
||||
@override String get musicNotSupported => 'Musikwiedergabe wird noch nicht unterstützt';
|
||||
@override String get noDescriptionAvailable => 'Keine Beschreibung verfügbar';
|
||||
@override String get noProfilesAvailable => 'Keine Profile verfügbar';
|
||||
@@ -726,6 +733,9 @@ class _TranslationsSubtitlingStylingDe extends TranslationsSubtitlingStylingEn {
|
||||
@override String get assOverride => 'ASS-Überschreibung';
|
||||
@override String get bold => 'Fett';
|
||||
@override String get italic => 'Kursiv';
|
||||
@override String get renderResolution => 'Render-Auflösung';
|
||||
@override String get renderResolutionScreen => 'Bildschirmauflösung';
|
||||
@override String get renderResolutionVideo => 'Videoauflösung';
|
||||
}
|
||||
|
||||
// Path: mpvConfig
|
||||
@@ -1278,6 +1288,7 @@ class _TranslationsDownloadsDe extends TranslationsDownloadsEn {
|
||||
@override String get unwatchedOnly => 'Nur ungesehene';
|
||||
@override String nextNUnwatched({required Object count}) => 'Nächste ${count} ungesehene';
|
||||
@override String get customAmount => 'Eigene Anzahl...';
|
||||
@override String get includeSpecials => 'Specials einschließen';
|
||||
@override String get howManyEpisodes => 'Wie viele Episoden?';
|
||||
@override String itemsQueued({required Object count}) => '${count} Elemente zum Download eingereiht';
|
||||
@override String get keepSynced => 'Synchronisiert halten';
|
||||
@@ -1402,6 +1413,7 @@ class _TranslationsPerformanceOverlayDe extends TranslationsPerformanceOverlayEn
|
||||
@override String get maxCll => 'MaxCLL';
|
||||
@override String get maxFall => 'MaxFALL';
|
||||
@override String get cacheUsed => 'Cache genutzt';
|
||||
@override String get cacheLimit => 'Cache-Limit';
|
||||
@override String get speed => 'Geschwindigkeit';
|
||||
@override String get player => 'Player';
|
||||
@override String get memory => 'Speicher';
|
||||
@@ -1597,10 +1609,8 @@ class _TranslationsAddServerDe extends TranslationsAddServerEn {
|
||||
|
||||
// Translations
|
||||
@override String get addJellyfinTitle => 'Jellyfin-Server hinzufügen';
|
||||
@override String get jellyfinUrlIntro => 'Gib die Server-URL ein, z. B. `https://jellyfin.example.com`.';
|
||||
@override String get jellyfinUrlsIntro => 'Gib eine oder mehrere Server-URLs ein, getrennt durch Kommas. Plezy verwendet die erreichbare URL mit der geringsten Latenz.';
|
||||
@override String get serverUrl => 'Server-URL';
|
||||
@override String get serverUrls => 'Server-URLs';
|
||||
@override String get serverUrlsHelper => 'Mehrere URLs möglich, durch Kommas getrennt.';
|
||||
@override String get findServer => 'Server finden';
|
||||
@override String get searchingLocalServers => 'Suche nach lokalen Jellyfin-Servern...';
|
||||
@override String get localServers => 'Lokale Jellyfin-Server';
|
||||
@@ -1613,17 +1623,12 @@ class _TranslationsAddServerDe extends TranslationsAddServerEn {
|
||||
@override String signInFailed({required Object error}) => 'Anmeldung fehlgeschlagen: ${error}';
|
||||
@override String quickConnectFailed({required Object error}) => 'Quick Connect fehlgeschlagen: ${error}';
|
||||
@override String get addPlexTitle => 'Mit Plex anmelden';
|
||||
@override String get plexAuthIntro => 'Melde dich mit Browser oder QR-Code an.';
|
||||
@override String get plexQRPrompt => 'Scanne diesen QR-Code zum Anmelden.';
|
||||
@override String get waitingForPlexConfirmation => 'Warte auf Bestätigung durch plex.tv…';
|
||||
@override String get pinExpired => 'PIN ist vor der Anmeldung abgelaufen. Bitte erneut versuchen.';
|
||||
@override String get duplicatePlexAccount => 'Bereits bei Plex angemeldet. Melde dich ab, um Konten zu wechseln.';
|
||||
@override String failedToRegisterAccount({required Object error}) => 'Konto konnte nicht registriert werden: ${error}';
|
||||
@override String get enterJellyfinUrlError => 'Gib die URL deines Jellyfin-Servers ein';
|
||||
@override String get addConnectionTitle => 'Verbindung hinzufügen';
|
||||
@override String addConnectionTitleScoped({required Object name}) => 'Zu ${name} hinzufügen';
|
||||
@override String get addConnectionIntroGlobal => 'Füge einen weiteren Medienserver hinzu. Plex und Jellyfin erscheinen zusammen auf der Startseite.';
|
||||
@override String get addConnectionIntroScoped => 'Füge einen neuen Server hinzu oder leihe einen von einem anderen Profil aus.';
|
||||
@override String get signInWithPlexCard => 'Mit Plex anmelden';
|
||||
@override String get signInWithPlexCardSubtitle => 'Dieses Gerät autorisieren. Geteilte Server werden hinzugefügt.';
|
||||
@override String get signInWithPlexCardSubtitleScoped => 'Ein Plex-Konto autorisieren. Home-Benutzer werden zu Profilen.';
|
||||
@@ -1740,6 +1745,7 @@ class _TranslationsLibrariesSortLabelsDe extends TranslationsLibrariesSortLabels
|
||||
@override String get rating => 'Bewertung';
|
||||
@override String get communityRating => 'Community-Bewertung';
|
||||
@override String get criticRating => 'Kritikerbewertung';
|
||||
@override String get userRating => 'Benutzerbewertung';
|
||||
@override String get lastPlayed => 'Zuletzt abgespielt';
|
||||
@override String get datePlayed => 'Wiedergabedatum';
|
||||
@override String get playCount => 'Wiedergaben';
|
||||
@@ -1753,6 +1759,7 @@ class _TranslationsLibrariesSortLabelsDe extends TranslationsLibrariesSortLabels
|
||||
@override String get random => 'Zufällig';
|
||||
@override String get dateShared => 'Datum geteilt';
|
||||
@override String get latestEpisodeAirDate => 'Letztes Folgenausstrahlungsdatum';
|
||||
@override String get lastEpisodeDateAdded => 'Datum der zuletzt hinzugefügten Folge';
|
||||
}
|
||||
|
||||
// Path: companionRemote.session
|
||||
@@ -1931,7 +1938,6 @@ extension on TranslationsDe {
|
||||
'auth.or' => 'oder',
|
||||
'auth.connectToJellyfin' => 'Mit Jellyfin verbinden',
|
||||
'auth.useQuickConnect' => 'Quick Connect verwenden',
|
||||
'auth.quickConnectCode' => 'Quick Connect-Code',
|
||||
'auth.quickConnectInstructions' => 'Öffne Quick Connect in Jellyfin und gib diesen Code ein.',
|
||||
'auth.quickConnectWaiting' => 'Warte auf Bestätigung…',
|
||||
'auth.quickConnectCancel' => 'Abbrechen',
|
||||
@@ -1969,6 +1975,7 @@ extension on TranslationsDe {
|
||||
'common.ok' => 'OK',
|
||||
'common.off' => 'Aus',
|
||||
'common.seasonNumber' => ({required Object number}) => 'Staffel ${number}',
|
||||
'common.episodeNumberTitle' => ({required Object number, required Object title}) => 'Episode ${number} - ${title}',
|
||||
'common.chapterNumber' => ({required Object number}) => 'Kapitel ${number}',
|
||||
'common.reconnect' => 'Erneut verbinden',
|
||||
'common.exit' => 'Beenden',
|
||||
@@ -2024,6 +2031,12 @@ extension on TranslationsDe {
|
||||
'settings.gridView' => 'Raster',
|
||||
'settings.listView' => 'Liste',
|
||||
'settings.showHeroSection' => 'Hero-Bereich anzeigen',
|
||||
'settings.continueWatchingAction' => 'Aktion für Weiterschauen',
|
||||
'settings.continueWatchingPlay' => 'Abspielen',
|
||||
'settings.continueWatchingDetails' => 'Details öffnen',
|
||||
'settings.episodeAction' => 'Episodenaktion',
|
||||
'settings.episodePlay' => 'Abspielen',
|
||||
'settings.episodeDetails' => 'Details öffnen',
|
||||
'settings.useGlobalHubs' => 'Startlayout verwenden',
|
||||
'settings.useGlobalHubsDescription' => 'Einheitliche Start-Hubs anzeigen. Sonst Bibliotheksempfehlungen verwenden.',
|
||||
'settings.showServerNameOnHubs' => 'Servername bei Hubs anzeigen',
|
||||
@@ -2040,6 +2053,8 @@ extension on TranslationsDe {
|
||||
'settings.showSeasonPostersOnTabsDescription' => 'Poster jeder Staffel über ihrem Tab anzeigen',
|
||||
'settings.tvFullCardLayout' => 'Vollflächige TV-Karten',
|
||||
'settings.tvFullCardLayoutDescription' => 'TV-Karten nur mit Bild verwenden und Darstellernamen einblenden',
|
||||
'settings.focusGlow' => 'Fokus-Leuchten',
|
||||
'settings.focusGlowDescription' => 'Sanftes Leuchten um die fokussierte Karte anzeigen',
|
||||
'settings.hideSpoilers' => 'Spoiler für nicht gesehene Episoden verbergen',
|
||||
'settings.hideSpoilersDescription' => 'Vorschaubilder und Beschreibungen ungesehener Episoden verwischen',
|
||||
'settings.playerBackend' => 'Player-Backend',
|
||||
@@ -2259,8 +2274,8 @@ extension on TranslationsDe {
|
||||
'mediaMenu.markAsWatched' => 'Als gesehen markieren',
|
||||
'mediaMenu.markAsUnwatched' => 'Als ungesehen markieren',
|
||||
'mediaMenu.removeFromContinueWatching' => 'Aus ‚Weiterschauen‘ entfernen',
|
||||
'mediaMenu.viewDetails' => 'Details anzeigen',
|
||||
'mediaMenu.goToSeries' => 'Zur Serie',
|
||||
'mediaMenu.goToSeason' => 'Zur Staffel',
|
||||
'mediaMenu.shufflePlay' => 'Zufallswiedergabe',
|
||||
'mediaMenu.shuffleNotAvailableOffline' => 'Zufallswiedergabe ist offline nicht verfügbar',
|
||||
'mediaMenu.fileInfo' => 'Dateiinfo',
|
||||
@@ -2392,7 +2407,6 @@ extension on TranslationsDe {
|
||||
'messages.fileInfoNotAvailable' => 'Dateiinfo nicht verfügbar',
|
||||
'messages.errorLoadingFileInfo' => ({required Object error}) => 'Fehler beim Laden der Dateiinfo: ${error}',
|
||||
'messages.errorLoadingSeries' => 'Fehler beim Laden der Serie',
|
||||
'messages.errorLoadingSeason' => 'Fehler beim Laden der Staffel',
|
||||
'messages.musicNotSupported' => 'Musikwiedergabe wird noch nicht unterstützt',
|
||||
'messages.noDescriptionAvailable' => 'Keine Beschreibung verfügbar',
|
||||
'messages.noProfilesAvailable' => 'Keine Profile verfügbar',
|
||||
@@ -2424,6 +2438,8 @@ extension on TranslationsDe {
|
||||
'messages.logsUploaded' => 'Protokolle hochgeladen',
|
||||
'messages.logsUploadFailed' => 'Protokolle konnten nicht hochgeladen werden',
|
||||
'messages.logId' => 'Protokoll-ID',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'subtitlingStyling.text' => 'Text',
|
||||
'subtitlingStyling.border' => 'Rahmen',
|
||||
'subtitlingStyling.background' => 'Hintergrund',
|
||||
@@ -2431,14 +2447,15 @@ extension on TranslationsDe {
|
||||
'subtitlingStyling.textColor' => 'Textfarbe',
|
||||
'subtitlingStyling.borderSize' => 'Rahmengröße',
|
||||
'subtitlingStyling.borderColor' => 'Rahmenfarbe',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'subtitlingStyling.backgroundOpacity' => 'Hintergrunddeckkraft',
|
||||
'subtitlingStyling.backgroundColor' => 'Hintergrundfarbe',
|
||||
'subtitlingStyling.position' => 'Position',
|
||||
'subtitlingStyling.assOverride' => 'ASS-Überschreibung',
|
||||
'subtitlingStyling.bold' => 'Fett',
|
||||
'subtitlingStyling.italic' => 'Kursiv',
|
||||
'subtitlingStyling.renderResolution' => 'Render-Auflösung',
|
||||
'subtitlingStyling.renderResolutionScreen' => 'Bildschirmauflösung',
|
||||
'subtitlingStyling.renderResolutionVideo' => 'Videoauflösung',
|
||||
'mpvConfig.title' => 'mpv-Konfiguration',
|
||||
'mpvConfig.description' => 'Erweiterte Videoplayer-Einstellungen',
|
||||
'mpvConfig.presets' => 'Voreinstellungen',
|
||||
@@ -2615,6 +2632,7 @@ extension on TranslationsDe {
|
||||
'libraries.sortLabels.rating' => 'Bewertung',
|
||||
'libraries.sortLabels.communityRating' => 'Community-Bewertung',
|
||||
'libraries.sortLabels.criticRating' => 'Kritikerbewertung',
|
||||
'libraries.sortLabels.userRating' => 'Benutzerbewertung',
|
||||
'libraries.sortLabels.lastPlayed' => 'Zuletzt abgespielt',
|
||||
'libraries.sortLabels.datePlayed' => 'Wiedergabedatum',
|
||||
'libraries.sortLabels.playCount' => 'Wiedergaben',
|
||||
@@ -2628,6 +2646,7 @@ extension on TranslationsDe {
|
||||
'libraries.sortLabels.random' => 'Zufällig',
|
||||
'libraries.sortLabels.dateShared' => 'Datum geteilt',
|
||||
'libraries.sortLabels.latestEpisodeAirDate' => 'Letztes Folgenausstrahlungsdatum',
|
||||
'libraries.sortLabels.lastEpisodeDateAdded' => 'Datum der zuletzt hinzugefügten Folge',
|
||||
'about.title' => 'Über',
|
||||
'about.openSourceLicenses' => 'Open-Source-Lizenzen',
|
||||
'about.versionLabel' => ({required Object version}) => 'Version ${version}',
|
||||
@@ -2860,6 +2879,7 @@ extension on TranslationsDe {
|
||||
'downloads.unwatchedOnly' => 'Nur ungesehene',
|
||||
'downloads.nextNUnwatched' => ({required Object count}) => 'Nächste ${count} ungesehene',
|
||||
'downloads.customAmount' => 'Eigene Anzahl...',
|
||||
'downloads.includeSpecials' => 'Specials einschließen',
|
||||
'downloads.howManyEpisodes' => 'Wie viele Episoden?',
|
||||
'downloads.itemsQueued' => ({required Object count}) => '${count} Elemente zum Download eingereiht',
|
||||
'downloads.keepSynced' => 'Synchronisiert halten',
|
||||
@@ -2932,6 +2952,8 @@ extension on TranslationsDe {
|
||||
'companionRemote.pairing.authFailed' => 'Authentifizierung fehlgeschlagen. Beide Geräte benötigen dasselbe Plex-Konto.',
|
||||
'companionRemote.pairing.failedToConnect' => ({required Object error}) => 'Verbindung fehlgeschlagen: ${error}',
|
||||
'companionRemote.remote.disconnectConfirm' => 'Möchtest du die Verbindung zur Fernsteuerungssitzung trennen?',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'companionRemote.remote.reconnecting' => 'Verbindung wird wiederhergestellt...',
|
||||
'companionRemote.remote.attemptOf' => ({required Object current}) => 'Versuch ${current} von 5',
|
||||
'companionRemote.remote.retryNow' => 'Jetzt wiederholen',
|
||||
@@ -2945,8 +2967,6 @@ extension on TranslationsDe {
|
||||
'companionRemote.remote.tabSearch' => 'Suche',
|
||||
'companionRemote.remote.tabDownloads' => 'Downloads',
|
||||
'companionRemote.remote.tabSettings' => 'Einstellungen',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'companionRemote.remote.previous' => 'Zurück',
|
||||
'companionRemote.remote.playPause' => 'Wiedergabe/Pause',
|
||||
'companionRemote.remote.next' => 'Weiter',
|
||||
@@ -3006,6 +3026,7 @@ extension on TranslationsDe {
|
||||
'performanceOverlay.maxCll' => 'MaxCLL',
|
||||
'performanceOverlay.maxFall' => 'MaxFALL',
|
||||
'performanceOverlay.cacheUsed' => 'Cache genutzt',
|
||||
'performanceOverlay.cacheLimit' => 'Cache-Limit',
|
||||
'performanceOverlay.speed' => 'Geschwindigkeit',
|
||||
'performanceOverlay.player' => 'Player',
|
||||
'performanceOverlay.memory' => 'Speicher',
|
||||
@@ -3158,10 +3179,8 @@ extension on TranslationsDe {
|
||||
'trackers.libraryFilter.libraries' => 'Bibliotheken',
|
||||
'trackers.libraryFilter.noLibraries' => 'Keine Bibliotheken verfügbar',
|
||||
'addServer.addJellyfinTitle' => 'Jellyfin-Server hinzufügen',
|
||||
'addServer.jellyfinUrlIntro' => 'Gib die Server-URL ein, z. B. `https://jellyfin.example.com`.',
|
||||
'addServer.jellyfinUrlsIntro' => 'Gib eine oder mehrere Server-URLs ein, getrennt durch Kommas. Plezy verwendet die erreichbare URL mit der geringsten Latenz.',
|
||||
'addServer.serverUrl' => 'Server-URL',
|
||||
'addServer.serverUrls' => 'Server-URLs',
|
||||
'addServer.serverUrlsHelper' => 'Mehrere URLs möglich, durch Kommas getrennt.',
|
||||
'addServer.findServer' => 'Server finden',
|
||||
'addServer.searchingLocalServers' => 'Suche nach lokalen Jellyfin-Servern...',
|
||||
'addServer.localServers' => 'Lokale Jellyfin-Server',
|
||||
@@ -3174,17 +3193,12 @@ extension on TranslationsDe {
|
||||
'addServer.signInFailed' => ({required Object error}) => 'Anmeldung fehlgeschlagen: ${error}',
|
||||
'addServer.quickConnectFailed' => ({required Object error}) => 'Quick Connect fehlgeschlagen: ${error}',
|
||||
'addServer.addPlexTitle' => 'Mit Plex anmelden',
|
||||
'addServer.plexAuthIntro' => 'Melde dich mit Browser oder QR-Code an.',
|
||||
'addServer.plexQRPrompt' => 'Scanne diesen QR-Code zum Anmelden.',
|
||||
'addServer.waitingForPlexConfirmation' => 'Warte auf Bestätigung durch plex.tv…',
|
||||
'addServer.pinExpired' => 'PIN ist vor der Anmeldung abgelaufen. Bitte erneut versuchen.',
|
||||
'addServer.duplicatePlexAccount' => 'Bereits bei Plex angemeldet. Melde dich ab, um Konten zu wechseln.',
|
||||
'addServer.failedToRegisterAccount' => ({required Object error}) => 'Konto konnte nicht registriert werden: ${error}',
|
||||
'addServer.enterJellyfinUrlError' => 'Gib die URL deines Jellyfin-Servers ein',
|
||||
'addServer.addConnectionTitle' => 'Verbindung hinzufügen',
|
||||
'addServer.addConnectionTitleScoped' => ({required Object name}) => 'Zu ${name} hinzufügen',
|
||||
'addServer.addConnectionIntroGlobal' => 'Füge einen weiteren Medienserver hinzu. Plex und Jellyfin erscheinen zusammen auf der Startseite.',
|
||||
'addServer.addConnectionIntroScoped' => 'Füge einen neuen Server hinzu oder leihe einen von einem anderen Profil aus.',
|
||||
'addServer.signInWithPlexCard' => 'Mit Plex anmelden',
|
||||
'addServer.signInWithPlexCardSubtitle' => 'Dieses Gerät autorisieren. Geteilte Server werden hinzugefügt.',
|
||||
'addServer.signInWithPlexCardSubtitleScoped' => 'Ein Plex-Konto autorisieren. Home-Benutzer werden zu Profilen.',
|
||||
|
||||
+112
-48
@@ -141,9 +141,6 @@ class TranslationsAuthEn {
|
||||
/// en: 'Use Quick Connect'
|
||||
String get useQuickConnect => 'Use Quick Connect';
|
||||
|
||||
/// en: 'Quick Connect code'
|
||||
String get quickConnectCode => 'Quick Connect code';
|
||||
|
||||
/// en: 'Open Quick Connect in Jellyfin and enter this code.'
|
||||
String get quickConnectInstructions => 'Open Quick Connect in Jellyfin and enter this code.';
|
||||
|
||||
@@ -264,6 +261,9 @@ class TranslationsCommonEn {
|
||||
/// en: 'Season ${number}'
|
||||
String seasonNumber({required Object number}) => 'Season ${number}';
|
||||
|
||||
/// en: 'Episode ${number} - ${title}'
|
||||
String episodeNumberTitle({required Object number, required Object title}) => 'Episode ${number} - ${title}';
|
||||
|
||||
/// en: 'Chapter ${number}'
|
||||
String chapterNumber({required Object number}) => 'Chapter ${number}';
|
||||
|
||||
@@ -456,6 +456,24 @@ class TranslationsSettingsEn {
|
||||
/// en: 'Show Hero Section'
|
||||
String get showHeroSection => 'Show Hero Section';
|
||||
|
||||
/// en: 'Continue Watching Action'
|
||||
String get continueWatchingAction => 'Continue Watching Action';
|
||||
|
||||
/// en: 'Play'
|
||||
String get continueWatchingPlay => 'Play';
|
||||
|
||||
/// en: 'Open Details'
|
||||
String get continueWatchingDetails => 'Open Details';
|
||||
|
||||
/// en: 'Episode Action'
|
||||
String get episodeAction => 'Episode Action';
|
||||
|
||||
/// en: 'Play'
|
||||
String get episodePlay => 'Play';
|
||||
|
||||
/// en: 'Open Details'
|
||||
String get episodeDetails => 'Open Details';
|
||||
|
||||
/// en: 'Use Home Layout'
|
||||
String get useGlobalHubs => 'Use Home Layout';
|
||||
|
||||
@@ -504,6 +522,30 @@ class TranslationsSettingsEn {
|
||||
/// en: 'Use image-only TV cards with actor names overlaid'
|
||||
String get tvFullCardLayoutDescription => 'Use image-only TV cards with actor names overlaid';
|
||||
|
||||
/// en: 'Focus Glow'
|
||||
String get focusGlow => 'Focus Glow';
|
||||
|
||||
/// en: 'Draw a soft glow around the focused card'
|
||||
String get focusGlowDescription => 'Draw a soft glow around the focused card';
|
||||
|
||||
/// en: 'Visual Effects'
|
||||
String get visualEffects => 'Visual Effects';
|
||||
|
||||
/// en: 'Auto'
|
||||
String get visualEffectsAuto => 'Auto';
|
||||
|
||||
/// en: 'Reduce effects automatically on low-power devices'
|
||||
String get visualEffectsAutoDescription => 'Reduce effects automatically on low-power devices';
|
||||
|
||||
/// en: 'Full'
|
||||
String get visualEffectsFull => 'Full';
|
||||
|
||||
/// en: 'Reduced'
|
||||
String get visualEffectsReduced => 'Reduced';
|
||||
|
||||
/// en: 'Fewer animations and lower-resolution artwork'
|
||||
String get visualEffectsReducedDescription => 'Fewer animations and lower-resolution artwork';
|
||||
|
||||
/// en: 'Hide Spoilers for Unwatched Episodes'
|
||||
String get hideSpoilers => 'Hide Spoilers for Unwatched Episodes';
|
||||
|
||||
@@ -1124,12 +1166,12 @@ class TranslationsMediaMenuEn {
|
||||
/// en: 'Remove from Continue Watching'
|
||||
String get removeFromContinueWatching => 'Remove from Continue Watching';
|
||||
|
||||
/// en: 'View details'
|
||||
String get viewDetails => 'View details';
|
||||
|
||||
/// en: 'Go to series'
|
||||
String get goToSeries => 'Go to series';
|
||||
|
||||
/// en: 'Go to season'
|
||||
String get goToSeason => 'Go to season';
|
||||
|
||||
/// en: 'Shuffle Play'
|
||||
String get shufflePlay => 'Shuffle Play';
|
||||
|
||||
@@ -1558,9 +1600,6 @@ class TranslationsMessagesEn {
|
||||
/// en: 'Error loading series'
|
||||
String get errorLoadingSeries => 'Error loading series';
|
||||
|
||||
/// en: 'Error loading season'
|
||||
String get errorLoadingSeason => 'Error loading season';
|
||||
|
||||
/// en: 'Music playback is not yet supported'
|
||||
String get musicNotSupported => 'Music playback is not yet supported';
|
||||
|
||||
@@ -1701,6 +1740,15 @@ class TranslationsSubtitlingStylingEn {
|
||||
|
||||
/// en: 'Italic'
|
||||
String get italic => 'Italic';
|
||||
|
||||
/// en: 'Render Resolution'
|
||||
String get renderResolution => 'Render Resolution';
|
||||
|
||||
/// en: 'Screen resolution'
|
||||
String get renderResolutionScreen => 'Screen resolution';
|
||||
|
||||
/// en: 'Video resolution'
|
||||
String get renderResolutionVideo => 'Video resolution';
|
||||
}
|
||||
|
||||
// Path: mpvConfig
|
||||
@@ -2886,9 +2934,18 @@ class TranslationsWatchTogetherEn {
|
||||
/// en: '${name} is buffering'
|
||||
String participantBuffering({required Object name}) => '${name} is buffering';
|
||||
|
||||
/// en: '${name} is on an older app version — sync unavailable'
|
||||
String participantNeedsUpdate({required Object name}) => '${name} is on an older app version — sync unavailable';
|
||||
|
||||
/// en: 'Resuming without ${name}'
|
||||
String resumingWithout({required Object name}) => 'Resuming without ${name}';
|
||||
|
||||
/// en: 'Waiting for others to load...'
|
||||
String get waitingForParticipants => 'Waiting for others to load...';
|
||||
|
||||
/// en: 'Waiting for ${name}...'
|
||||
String waitingForName({required Object name}) => 'Waiting for ${name}...';
|
||||
|
||||
/// en: 'Recent Rooms'
|
||||
String get recentRooms => 'Recent Rooms';
|
||||
|
||||
@@ -3027,6 +3084,9 @@ class TranslationsDownloadsEn {
|
||||
/// en: 'Custom amount...'
|
||||
String get customAmount => 'Custom amount...';
|
||||
|
||||
/// en: 'Include Specials'
|
||||
String get includeSpecials => 'Include Specials';
|
||||
|
||||
/// en: 'How many episodes?'
|
||||
String get howManyEpisodes => 'How many episodes?';
|
||||
|
||||
@@ -3320,6 +3380,9 @@ class TranslationsPerformanceOverlayEn {
|
||||
/// en: 'Cache Used'
|
||||
String get cacheUsed => 'Cache Used';
|
||||
|
||||
/// en: 'Cache Limit'
|
||||
String get cacheLimit => 'Cache Limit';
|
||||
|
||||
/// en: 'Speed'
|
||||
String get speed => 'Speed';
|
||||
|
||||
@@ -3772,18 +3835,12 @@ class TranslationsAddServerEn {
|
||||
/// en: 'Add Jellyfin server'
|
||||
String get addJellyfinTitle => 'Add Jellyfin server';
|
||||
|
||||
/// en: 'Enter the server URL, e.g. `https://jellyfin.example.com`.'
|
||||
String get jellyfinUrlIntro => 'Enter the server URL, e.g. `https://jellyfin.example.com`.';
|
||||
|
||||
/// en: 'Enter one or more server URLs, separated by commas. Plezy will use the reachable URL with the lowest latency.'
|
||||
String get jellyfinUrlsIntro => 'Enter one or more server URLs, separated by commas. Plezy will use the reachable URL with the lowest latency.';
|
||||
|
||||
/// en: 'Server URL'
|
||||
String get serverUrl => 'Server URL';
|
||||
|
||||
/// en: 'Server URLs'
|
||||
String get serverUrls => 'Server URLs';
|
||||
|
||||
/// en: 'Multiple URLs allowed, separated by commas.'
|
||||
String get serverUrlsHelper => 'Multiple URLs allowed, separated by commas.';
|
||||
|
||||
/// en: 'Find server'
|
||||
String get findServer => 'Find server';
|
||||
|
||||
@@ -3820,15 +3877,6 @@ class TranslationsAddServerEn {
|
||||
/// en: 'Sign in with Plex'
|
||||
String get addPlexTitle => 'Sign in with Plex';
|
||||
|
||||
/// en: 'Sign in with a browser or QR code.'
|
||||
String get plexAuthIntro => 'Sign in with a browser or QR code.';
|
||||
|
||||
/// en: 'Scan this QR code to sign in.'
|
||||
String get plexQRPrompt => 'Scan this QR code to sign in.';
|
||||
|
||||
/// en: 'Waiting for plex.tv to confirm your sign-in…'
|
||||
String get waitingForPlexConfirmation => 'Waiting for plex.tv to confirm your sign-in…';
|
||||
|
||||
/// en: 'PIN expired before sign-in. Please try again.'
|
||||
String get pinExpired => 'PIN expired before sign-in. Please try again.';
|
||||
|
||||
@@ -3847,12 +3895,6 @@ class TranslationsAddServerEn {
|
||||
/// en: 'Add to ${name}'
|
||||
String addConnectionTitleScoped({required Object name}) => 'Add to ${name}';
|
||||
|
||||
/// en: 'Add another media server. Plex and Jellyfin appear together on Home.'
|
||||
String get addConnectionIntroGlobal => 'Add another media server. Plex and Jellyfin appear together on Home.';
|
||||
|
||||
/// en: 'Add a new server, or borrow one from another profile.'
|
||||
String get addConnectionIntroScoped => 'Add a new server, or borrow one from another profile.';
|
||||
|
||||
/// en: 'Sign in with Plex'
|
||||
String get signInWithPlexCard => 'Sign in with Plex';
|
||||
|
||||
@@ -4093,6 +4135,9 @@ class TranslationsLibrariesSortLabelsEn {
|
||||
/// en: 'Critic Rating'
|
||||
String get criticRating => 'Critic Rating';
|
||||
|
||||
/// en: 'User Rating'
|
||||
String get userRating => 'User Rating';
|
||||
|
||||
/// en: 'Last Played'
|
||||
String get lastPlayed => 'Last Played';
|
||||
|
||||
@@ -4131,6 +4176,9 @@ class TranslationsLibrariesSortLabelsEn {
|
||||
|
||||
/// en: 'Latest Episode Air Date'
|
||||
String get latestEpisodeAirDate => 'Latest Episode Air Date';
|
||||
|
||||
/// en: 'Last Episode Date Added'
|
||||
String get lastEpisodeDateAdded => 'Last Episode Date Added';
|
||||
}
|
||||
|
||||
// Path: companionRemote.session
|
||||
@@ -4477,7 +4525,6 @@ extension on Translations {
|
||||
'auth.or' => 'or',
|
||||
'auth.connectToJellyfin' => 'Connect to Jellyfin',
|
||||
'auth.useQuickConnect' => 'Use Quick Connect',
|
||||
'auth.quickConnectCode' => 'Quick Connect code',
|
||||
'auth.quickConnectInstructions' => 'Open Quick Connect in Jellyfin and enter this code.',
|
||||
'auth.quickConnectWaiting' => 'Waiting for approval…',
|
||||
'auth.quickConnectCancel' => 'Cancel',
|
||||
@@ -4515,6 +4562,7 @@ extension on Translations {
|
||||
'common.ok' => 'OK',
|
||||
'common.off' => 'Off',
|
||||
'common.seasonNumber' => ({required Object number}) => 'Season ${number}',
|
||||
'common.episodeNumberTitle' => ({required Object number, required Object title}) => 'Episode ${number} - ${title}',
|
||||
'common.chapterNumber' => ({required Object number}) => 'Chapter ${number}',
|
||||
'common.reconnect' => 'Reconnect',
|
||||
'common.exit' => 'Exit',
|
||||
@@ -4570,6 +4618,12 @@ extension on Translations {
|
||||
'settings.gridView' => 'Grid',
|
||||
'settings.listView' => 'List',
|
||||
'settings.showHeroSection' => 'Show Hero Section',
|
||||
'settings.continueWatchingAction' => 'Continue Watching Action',
|
||||
'settings.continueWatchingPlay' => 'Play',
|
||||
'settings.continueWatchingDetails' => 'Open Details',
|
||||
'settings.episodeAction' => 'Episode Action',
|
||||
'settings.episodePlay' => 'Play',
|
||||
'settings.episodeDetails' => 'Open Details',
|
||||
'settings.useGlobalHubs' => 'Use Home Layout',
|
||||
'settings.useGlobalHubsDescription' => 'Show unified home hubs. Otherwise use library recommendations.',
|
||||
'settings.showServerNameOnHubs' => 'Show Server Name on Hubs',
|
||||
@@ -4586,6 +4640,14 @@ extension on Translations {
|
||||
'settings.showSeasonPostersOnTabsDescription' => 'Show each season\'s poster above its tab',
|
||||
'settings.tvFullCardLayout' => 'Full TV Cards',
|
||||
'settings.tvFullCardLayoutDescription' => 'Use image-only TV cards with actor names overlaid',
|
||||
'settings.focusGlow' => 'Focus Glow',
|
||||
'settings.focusGlowDescription' => 'Draw a soft glow around the focused card',
|
||||
'settings.visualEffects' => 'Visual Effects',
|
||||
'settings.visualEffectsAuto' => 'Auto',
|
||||
'settings.visualEffectsAutoDescription' => 'Reduce effects automatically on low-power devices',
|
||||
'settings.visualEffectsFull' => 'Full',
|
||||
'settings.visualEffectsReduced' => 'Reduced',
|
||||
'settings.visualEffectsReducedDescription' => 'Fewer animations and lower-resolution artwork',
|
||||
'settings.hideSpoilers' => 'Hide Spoilers for Unwatched Episodes',
|
||||
'settings.hideSpoilersDescription' => 'Blur thumbnails and descriptions for unwatched episodes',
|
||||
'settings.playerBackend' => 'Player Backend',
|
||||
@@ -4805,8 +4867,8 @@ extension on Translations {
|
||||
'mediaMenu.markAsWatched' => 'Mark as Watched',
|
||||
'mediaMenu.markAsUnwatched' => 'Mark as Unwatched',
|
||||
'mediaMenu.removeFromContinueWatching' => 'Remove from Continue Watching',
|
||||
'mediaMenu.viewDetails' => 'View details',
|
||||
'mediaMenu.goToSeries' => 'Go to series',
|
||||
'mediaMenu.goToSeason' => 'Go to season',
|
||||
'mediaMenu.shufflePlay' => 'Shuffle Play',
|
||||
'mediaMenu.shuffleNotAvailableOffline' => 'Shuffle not available offline',
|
||||
'mediaMenu.fileInfo' => 'File Info',
|
||||
@@ -4938,7 +5000,6 @@ extension on Translations {
|
||||
'messages.fileInfoNotAvailable' => 'File information not available',
|
||||
'messages.errorLoadingFileInfo' => ({required Object error}) => 'Error loading file info: ${error}',
|
||||
'messages.errorLoadingSeries' => 'Error loading series',
|
||||
'messages.errorLoadingSeason' => 'Error loading season',
|
||||
'messages.musicNotSupported' => 'Music playback is not yet supported',
|
||||
'messages.noDescriptionAvailable' => 'No description available',
|
||||
'messages.noProfilesAvailable' => 'No profiles available',
|
||||
@@ -4964,6 +5025,8 @@ extension on Translations {
|
||||
'messages.noItemsAvailable' => 'No items available',
|
||||
'messages.failedToCreatePlayQueueNoItems' => 'Failed to create play queue - no items',
|
||||
'messages.failedPlayback' => ({required Object action, required Object error}) => 'Failed to ${action}: ${error}',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'messages.switchingToCompatiblePlayer' => 'Switching to compatible player...',
|
||||
'messages.serverLimitTitle' => 'Playback failed',
|
||||
'messages.serverLimitBody' => 'Server error (HTTP 500). A bandwidth/transcoding limit likely rejected this session. Ask the owner to adjust it.',
|
||||
@@ -4977,14 +5040,15 @@ extension on Translations {
|
||||
'subtitlingStyling.textColor' => 'Text Color',
|
||||
'subtitlingStyling.borderSize' => 'Border Size',
|
||||
'subtitlingStyling.borderColor' => 'Border Color',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'subtitlingStyling.backgroundOpacity' => 'Background Opacity',
|
||||
'subtitlingStyling.backgroundColor' => 'Background Color',
|
||||
'subtitlingStyling.position' => 'Position',
|
||||
'subtitlingStyling.assOverride' => 'ASS Override',
|
||||
'subtitlingStyling.bold' => 'Bold',
|
||||
'subtitlingStyling.italic' => 'Italic',
|
||||
'subtitlingStyling.renderResolution' => 'Render Resolution',
|
||||
'subtitlingStyling.renderResolutionScreen' => 'Screen resolution',
|
||||
'subtitlingStyling.renderResolutionVideo' => 'Video resolution',
|
||||
'mpvConfig.title' => 'mpv.conf',
|
||||
'mpvConfig.description' => 'Advanced video player settings',
|
||||
'mpvConfig.presets' => 'Presets',
|
||||
@@ -5161,6 +5225,7 @@ extension on Translations {
|
||||
'libraries.sortLabels.rating' => 'Rating',
|
||||
'libraries.sortLabels.communityRating' => 'Community Rating',
|
||||
'libraries.sortLabels.criticRating' => 'Critic Rating',
|
||||
'libraries.sortLabels.userRating' => 'User Rating',
|
||||
'libraries.sortLabels.lastPlayed' => 'Last Played',
|
||||
'libraries.sortLabels.datePlayed' => 'Date Played',
|
||||
'libraries.sortLabels.playCount' => 'Play Count',
|
||||
@@ -5174,6 +5239,7 @@ extension on Translations {
|
||||
'libraries.sortLabels.random' => 'Random',
|
||||
'libraries.sortLabels.dateShared' => 'Date Shared',
|
||||
'libraries.sortLabels.latestEpisodeAirDate' => 'Latest Episode Air Date',
|
||||
'libraries.sortLabels.lastEpisodeDateAdded' => 'Last Episode Date Added',
|
||||
'about.title' => 'About',
|
||||
'about.openSourceLicenses' => 'Open Source Licenses',
|
||||
'about.versionLabel' => ({required Object version}) => 'Version ${version}',
|
||||
@@ -5362,7 +5428,10 @@ extension on Translations {
|
||||
'watchTogether.participantResumed' => ({required Object name}) => '${name} resumed',
|
||||
'watchTogether.participantSeeked' => ({required Object name}) => '${name} seeked',
|
||||
'watchTogether.participantBuffering' => ({required Object name}) => '${name} is buffering',
|
||||
'watchTogether.participantNeedsUpdate' => ({required Object name}) => '${name} is on an older app version — sync unavailable',
|
||||
'watchTogether.resumingWithout' => ({required Object name}) => 'Resuming without ${name}',
|
||||
'watchTogether.waitingForParticipants' => 'Waiting for others to load...',
|
||||
'watchTogether.waitingForName' => ({required Object name}) => 'Waiting for ${name}...',
|
||||
'watchTogether.recentRooms' => 'Recent Rooms',
|
||||
'watchTogether.renameRoom' => 'Rename Room',
|
||||
'watchTogether.removeRoom' => 'Remove',
|
||||
@@ -5406,6 +5475,7 @@ extension on Translations {
|
||||
'downloads.unwatchedOnly' => 'Unwatched only',
|
||||
'downloads.nextNUnwatched' => ({required Object count}) => 'Next ${count} unwatched',
|
||||
'downloads.customAmount' => 'Custom amount...',
|
||||
'downloads.includeSpecials' => 'Include Specials',
|
||||
'downloads.howManyEpisodes' => 'How many episodes?',
|
||||
'downloads.itemsQueued' => ({required Object count}) => '${count} items queued for download',
|
||||
'downloads.keepSynced' => 'Keep synced',
|
||||
@@ -5469,6 +5539,8 @@ extension on Translations {
|
||||
'companionRemote.pairing.noDevicesFound' => 'No devices found on your network',
|
||||
'companionRemote.pairing.noDevicesHint' => 'Open Plezy on desktop and use the same WiFi',
|
||||
'companionRemote.pairing.availableDevices' => 'Available Devices',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'companionRemote.pairing.manualConnection' => 'Manual Connection',
|
||||
'companionRemote.pairing.cryptoInitFailed' => 'Couldn\'t start secure connection. Sign in to Plex first.',
|
||||
'companionRemote.pairing.validationHostRequired' => 'Please enter host address',
|
||||
@@ -5491,8 +5563,6 @@ extension on Translations {
|
||||
'companionRemote.remote.tabSearch' => 'Search',
|
||||
'companionRemote.remote.tabDownloads' => 'Downloads',
|
||||
'companionRemote.remote.tabSettings' => 'Settings',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'companionRemote.remote.previous' => 'Previous',
|
||||
'companionRemote.remote.playPause' => 'Play/Pause',
|
||||
'companionRemote.remote.next' => 'Next',
|
||||
@@ -5552,6 +5622,7 @@ extension on Translations {
|
||||
'performanceOverlay.maxCll' => 'MaxCLL',
|
||||
'performanceOverlay.maxFall' => 'MaxFALL',
|
||||
'performanceOverlay.cacheUsed' => 'Cache Used',
|
||||
'performanceOverlay.cacheLimit' => 'Cache Limit',
|
||||
'performanceOverlay.speed' => 'Speed',
|
||||
'performanceOverlay.player' => 'Player',
|
||||
'performanceOverlay.memory' => 'Memory',
|
||||
@@ -5704,10 +5775,8 @@ extension on Translations {
|
||||
'trackers.libraryFilter.libraries' => 'Libraries',
|
||||
'trackers.libraryFilter.noLibraries' => 'No libraries available',
|
||||
'addServer.addJellyfinTitle' => 'Add Jellyfin server',
|
||||
'addServer.jellyfinUrlIntro' => 'Enter the server URL, e.g. `https://jellyfin.example.com`.',
|
||||
'addServer.jellyfinUrlsIntro' => 'Enter one or more server URLs, separated by commas. Plezy will use the reachable URL with the lowest latency.',
|
||||
'addServer.serverUrl' => 'Server URL',
|
||||
'addServer.serverUrls' => 'Server URLs',
|
||||
'addServer.serverUrlsHelper' => 'Multiple URLs allowed, separated by commas.',
|
||||
'addServer.findServer' => 'Find server',
|
||||
'addServer.searchingLocalServers' => 'Looking for local Jellyfin servers...',
|
||||
'addServer.localServers' => 'Local Jellyfin servers',
|
||||
@@ -5720,17 +5789,12 @@ extension on Translations {
|
||||
'addServer.signInFailed' => ({required Object error}) => 'Sign-in failed: ${error}',
|
||||
'addServer.quickConnectFailed' => ({required Object error}) => 'Quick Connect failed: ${error}',
|
||||
'addServer.addPlexTitle' => 'Sign in with Plex',
|
||||
'addServer.plexAuthIntro' => 'Sign in with a browser or QR code.',
|
||||
'addServer.plexQRPrompt' => 'Scan this QR code to sign in.',
|
||||
'addServer.waitingForPlexConfirmation' => 'Waiting for plex.tv to confirm your sign-in…',
|
||||
'addServer.pinExpired' => 'PIN expired before sign-in. Please try again.',
|
||||
'addServer.duplicatePlexAccount' => 'Already signed in to Plex. Sign out to switch accounts.',
|
||||
'addServer.failedToRegisterAccount' => ({required Object error}) => 'Failed to register account: ${error}',
|
||||
'addServer.enterJellyfinUrlError' => 'Enter your Jellyfin server URL',
|
||||
'addServer.addConnectionTitle' => 'Add connection',
|
||||
'addServer.addConnectionTitleScoped' => ({required Object name}) => 'Add to ${name}',
|
||||
'addServer.addConnectionIntroGlobal' => 'Add another media server. Plex and Jellyfin appear together on Home.',
|
||||
'addServer.addConnectionIntroScoped' => 'Add a new server, or borrow one from another profile.',
|
||||
'addServer.signInWithPlexCard' => 'Sign in with Plex',
|
||||
'addServer.signInWithPlexCardSubtitle' => 'Authorize this device. Shared servers are added.',
|
||||
'addServer.signInWithPlexCardSubtitleScoped' => 'Authorize a Plex account. Home users become profiles.',
|
||||
|
||||
+40
-26
@@ -115,7 +115,6 @@ class _TranslationsAuthEs extends TranslationsAuthEn {
|
||||
@override String get or => 'o';
|
||||
@override String get connectToJellyfin => 'Conectar a Jellyfin';
|
||||
@override String get useQuickConnect => 'Usar Quick Connect';
|
||||
@override String get quickConnectCode => 'Código de Quick Connect';
|
||||
@override String get quickConnectInstructions => 'Abre Quick Connect en Jellyfin e introduce este código.';
|
||||
@override String get quickConnectWaiting => 'Esperando aprobación…';
|
||||
@override String get quickConnectCancel => 'Cancelar';
|
||||
@@ -162,6 +161,7 @@ class _TranslationsCommonEs extends TranslationsCommonEn {
|
||||
@override String get ok => 'OK';
|
||||
@override String get off => 'Desactivado';
|
||||
@override String seasonNumber({required Object number}) => 'Temporada ${number}';
|
||||
@override String episodeNumberTitle({required Object number, required Object title}) => 'Episodio ${number} - ${title}';
|
||||
@override String chapterNumber({required Object number}) => 'Capítulo ${number}';
|
||||
@override String get reconnect => 'Reconectar';
|
||||
@override String get exit => 'Salir';
|
||||
@@ -244,6 +244,12 @@ class _TranslationsSettingsEs extends TranslationsSettingsEn {
|
||||
@override String get gridView => 'Cuadrícula';
|
||||
@override String get listView => 'Lista';
|
||||
@override String get showHeroSection => 'Mostrar Sección Destacada';
|
||||
@override String get continueWatchingAction => 'Acción de Seguir viendo';
|
||||
@override String get continueWatchingPlay => 'Reproducir';
|
||||
@override String get continueWatchingDetails => 'Abrir detalles';
|
||||
@override String get episodeAction => 'Acción de episodio';
|
||||
@override String get episodePlay => 'Reproducir';
|
||||
@override String get episodeDetails => 'Abrir detalles';
|
||||
@override String get useGlobalHubs => 'Usar diseño de inicio';
|
||||
@override String get useGlobalHubsDescription => 'Mostrar hubs de inicio unificados. Si no, usar recomendaciones de biblioteca.';
|
||||
@override String get showServerNameOnHubs => 'Mostrar Nombre del Servidor en los Hubs';
|
||||
@@ -260,6 +266,8 @@ class _TranslationsSettingsEs extends TranslationsSettingsEn {
|
||||
@override String get showSeasonPostersOnTabsDescription => 'Mostrar el póster de cada temporada sobre su pestaña';
|
||||
@override String get tvFullCardLayout => 'Tarjetas TV completas';
|
||||
@override String get tvFullCardLayoutDescription => 'Usar tarjetas TV solo con imagen y nombres de actores superpuestos';
|
||||
@override String get focusGlow => 'Brillo de foco';
|
||||
@override String get focusGlowDescription => 'Mostrar un brillo suave alrededor de la tarjeta con foco';
|
||||
@override String get hideSpoilers => 'Ocultar spoilers de episodios no vistos';
|
||||
@override String get hideSpoilersDescription => 'Desenfocar miniaturas y descripciones de episodios no vistos';
|
||||
@override String get playerBackend => 'Reproductor';
|
||||
@@ -491,8 +499,8 @@ class _TranslationsMediaMenuEs extends TranslationsMediaMenuEn {
|
||||
@override String get markAsWatched => 'Marcar como Visto';
|
||||
@override String get markAsUnwatched => 'Marcar como No Visto';
|
||||
@override String get removeFromContinueWatching => 'Eliminar de Seguir Viendo';
|
||||
@override String get viewDetails => 'Ver detalles';
|
||||
@override String get goToSeries => 'Ir a la serie';
|
||||
@override String get goToSeason => 'Ir a la temporada';
|
||||
@override String get shufflePlay => 'Reproducción Aleatoria';
|
||||
@override String get shuffleNotAvailableOffline => 'La reproducción aleatoria no está disponible sin conexión';
|
||||
@override String get fileInfo => 'Información del Archivo';
|
||||
@@ -672,7 +680,6 @@ class _TranslationsMessagesEs extends TranslationsMessagesEn {
|
||||
@override String get fileInfoNotAvailable => 'Información de archivo no disponible';
|
||||
@override String errorLoadingFileInfo({required Object error}) => 'Error al cargar info de archivo: ${error}';
|
||||
@override String get errorLoadingSeries => 'Error al cargar la serie';
|
||||
@override String get errorLoadingSeason => 'Error al cargar la temporada';
|
||||
@override String get musicNotSupported => 'La reproducción de música aún no está soportada';
|
||||
@override String get noDescriptionAvailable => 'No hay descripción disponible';
|
||||
@override String get noProfilesAvailable => 'No hay perfiles disponibles';
|
||||
@@ -726,6 +733,9 @@ class _TranslationsSubtitlingStylingEs extends TranslationsSubtitlingStylingEn {
|
||||
@override String get assOverride => 'Sobreescritura ASS';
|
||||
@override String get bold => 'Negrita';
|
||||
@override String get italic => 'Cursiva';
|
||||
@override String get renderResolution => 'Resolución de renderizado';
|
||||
@override String get renderResolutionScreen => 'Resolución de pantalla';
|
||||
@override String get renderResolutionVideo => 'Resolución del vídeo';
|
||||
}
|
||||
|
||||
// Path: mpvConfig
|
||||
@@ -1278,6 +1288,7 @@ class _TranslationsDownloadsEs extends TranslationsDownloadsEn {
|
||||
@override String get unwatchedOnly => 'Solo no vistos';
|
||||
@override String nextNUnwatched({required Object count}) => 'Próximos ${count} no vistos';
|
||||
@override String get customAmount => 'Cantidad personalizada...';
|
||||
@override String get includeSpecials => 'Incluir especiales';
|
||||
@override String get howManyEpisodes => '¿Cuántos episodios?';
|
||||
@override String itemsQueued({required Object count}) => '${count} elementos en cola de descarga';
|
||||
@override String get keepSynced => 'Mantener sincronizado';
|
||||
@@ -1402,6 +1413,7 @@ class _TranslationsPerformanceOverlayEs extends TranslationsPerformanceOverlayEn
|
||||
@override String get maxCll => 'MaxCLL';
|
||||
@override String get maxFall => 'MaxFALL';
|
||||
@override String get cacheUsed => 'Caché usada';
|
||||
@override String get cacheLimit => 'Límite de caché';
|
||||
@override String get speed => 'Velocidad';
|
||||
@override String get player => 'Reproductor';
|
||||
@override String get memory => 'Memoria';
|
||||
@@ -1597,10 +1609,8 @@ class _TranslationsAddServerEs extends TranslationsAddServerEn {
|
||||
|
||||
// Translations
|
||||
@override String get addJellyfinTitle => 'Añadir servidor Jellyfin';
|
||||
@override String get jellyfinUrlIntro => 'Introduce la URL del servidor, p. ej. `https://jellyfin.example.com`.';
|
||||
@override String get jellyfinUrlsIntro => 'Introduce una o más URL del servidor, separadas por comas. Plezy usará la URL accesible con menor latencia.';
|
||||
@override String get serverUrl => 'URL del servidor';
|
||||
@override String get serverUrls => 'URL del servidor';
|
||||
@override String get serverUrlsHelper => 'Se permiten varias URL, separadas por comas.';
|
||||
@override String get findServer => 'Buscar servidor';
|
||||
@override String get searchingLocalServers => 'Buscando servidores Jellyfin locales...';
|
||||
@override String get localServers => 'Servidores Jellyfin locales';
|
||||
@@ -1613,17 +1623,12 @@ class _TranslationsAddServerEs extends TranslationsAddServerEn {
|
||||
@override String signInFailed({required Object error}) => 'Error al iniciar sesión: ${error}';
|
||||
@override String quickConnectFailed({required Object error}) => 'Quick Connect ha fallado: ${error}';
|
||||
@override String get addPlexTitle => 'Iniciar sesión con Plex';
|
||||
@override String get plexAuthIntro => 'Inicia sesión con un navegador o código QR.';
|
||||
@override String get plexQRPrompt => 'Escanea este código QR para iniciar sesión.';
|
||||
@override String get waitingForPlexConfirmation => 'Esperando que plex.tv confirme tu inicio de sesión…';
|
||||
@override String get pinExpired => 'El PIN caducó antes de iniciar sesión. Inténtalo de nuevo.';
|
||||
@override String get duplicatePlexAccount => 'Ya iniciaste sesión en Plex. Cierra sesión para cambiar de cuenta.';
|
||||
@override String failedToRegisterAccount({required Object error}) => 'No se pudo registrar la cuenta: ${error}';
|
||||
@override String get enterJellyfinUrlError => 'Introduce la URL de tu servidor Jellyfin';
|
||||
@override String get addConnectionTitle => 'Añadir conexión';
|
||||
@override String addConnectionTitleScoped({required Object name}) => 'Añadir a ${name}';
|
||||
@override String get addConnectionIntroGlobal => 'Añade otro servidor multimedia. Plex y Jellyfin aparecen juntos en Inicio.';
|
||||
@override String get addConnectionIntroScoped => 'Añade un servidor nuevo o toma prestado uno de otro perfil.';
|
||||
@override String get signInWithPlexCard => 'Iniciar sesión con Plex';
|
||||
@override String get signInWithPlexCardSubtitle => 'Autoriza este dispositivo. Se añaden servidores compartidos.';
|
||||
@override String get signInWithPlexCardSubtitleScoped => 'Autoriza una cuenta Plex. Los usuarios de Home se convierten en perfiles.';
|
||||
@@ -1740,6 +1745,7 @@ class _TranslationsLibrariesSortLabelsEs extends TranslationsLibrariesSortLabels
|
||||
@override String get rating => 'Valoración';
|
||||
@override String get communityRating => 'Calificación de comunidad';
|
||||
@override String get criticRating => 'Calificación de crítica';
|
||||
@override String get userRating => 'Calificación del usuario';
|
||||
@override String get lastPlayed => 'Última reproducción';
|
||||
@override String get datePlayed => 'Fecha de reproducción';
|
||||
@override String get playCount => 'Reproducciones';
|
||||
@@ -1753,6 +1759,7 @@ class _TranslationsLibrariesSortLabelsEs extends TranslationsLibrariesSortLabels
|
||||
@override String get random => 'Aleatorio';
|
||||
@override String get dateShared => 'Fecha de compartición';
|
||||
@override String get latestEpisodeAirDate => 'Última fecha de emisión del episodio';
|
||||
@override String get lastEpisodeDateAdded => 'Fecha de adición del último episodio';
|
||||
}
|
||||
|
||||
// Path: companionRemote.session
|
||||
@@ -1931,7 +1938,6 @@ extension on TranslationsEs {
|
||||
'auth.or' => 'o',
|
||||
'auth.connectToJellyfin' => 'Conectar a Jellyfin',
|
||||
'auth.useQuickConnect' => 'Usar Quick Connect',
|
||||
'auth.quickConnectCode' => 'Código de Quick Connect',
|
||||
'auth.quickConnectInstructions' => 'Abre Quick Connect en Jellyfin e introduce este código.',
|
||||
'auth.quickConnectWaiting' => 'Esperando aprobación…',
|
||||
'auth.quickConnectCancel' => 'Cancelar',
|
||||
@@ -1969,6 +1975,7 @@ extension on TranslationsEs {
|
||||
'common.ok' => 'OK',
|
||||
'common.off' => 'Desactivado',
|
||||
'common.seasonNumber' => ({required Object number}) => 'Temporada ${number}',
|
||||
'common.episodeNumberTitle' => ({required Object number, required Object title}) => 'Episodio ${number} - ${title}',
|
||||
'common.chapterNumber' => ({required Object number}) => 'Capítulo ${number}',
|
||||
'common.reconnect' => 'Reconectar',
|
||||
'common.exit' => 'Salir',
|
||||
@@ -2024,6 +2031,12 @@ extension on TranslationsEs {
|
||||
'settings.gridView' => 'Cuadrícula',
|
||||
'settings.listView' => 'Lista',
|
||||
'settings.showHeroSection' => 'Mostrar Sección Destacada',
|
||||
'settings.continueWatchingAction' => 'Acción de Seguir viendo',
|
||||
'settings.continueWatchingPlay' => 'Reproducir',
|
||||
'settings.continueWatchingDetails' => 'Abrir detalles',
|
||||
'settings.episodeAction' => 'Acción de episodio',
|
||||
'settings.episodePlay' => 'Reproducir',
|
||||
'settings.episodeDetails' => 'Abrir detalles',
|
||||
'settings.useGlobalHubs' => 'Usar diseño de inicio',
|
||||
'settings.useGlobalHubsDescription' => 'Mostrar hubs de inicio unificados. Si no, usar recomendaciones de biblioteca.',
|
||||
'settings.showServerNameOnHubs' => 'Mostrar Nombre del Servidor en los Hubs',
|
||||
@@ -2040,6 +2053,8 @@ extension on TranslationsEs {
|
||||
'settings.showSeasonPostersOnTabsDescription' => 'Mostrar el póster de cada temporada sobre su pestaña',
|
||||
'settings.tvFullCardLayout' => 'Tarjetas TV completas',
|
||||
'settings.tvFullCardLayoutDescription' => 'Usar tarjetas TV solo con imagen y nombres de actores superpuestos',
|
||||
'settings.focusGlow' => 'Brillo de foco',
|
||||
'settings.focusGlowDescription' => 'Mostrar un brillo suave alrededor de la tarjeta con foco',
|
||||
'settings.hideSpoilers' => 'Ocultar spoilers de episodios no vistos',
|
||||
'settings.hideSpoilersDescription' => 'Desenfocar miniaturas y descripciones de episodios no vistos',
|
||||
'settings.playerBackend' => 'Reproductor',
|
||||
@@ -2259,8 +2274,8 @@ extension on TranslationsEs {
|
||||
'mediaMenu.markAsWatched' => 'Marcar como Visto',
|
||||
'mediaMenu.markAsUnwatched' => 'Marcar como No Visto',
|
||||
'mediaMenu.removeFromContinueWatching' => 'Eliminar de Seguir Viendo',
|
||||
'mediaMenu.viewDetails' => 'Ver detalles',
|
||||
'mediaMenu.goToSeries' => 'Ir a la serie',
|
||||
'mediaMenu.goToSeason' => 'Ir a la temporada',
|
||||
'mediaMenu.shufflePlay' => 'Reproducción Aleatoria',
|
||||
'mediaMenu.shuffleNotAvailableOffline' => 'La reproducción aleatoria no está disponible sin conexión',
|
||||
'mediaMenu.fileInfo' => 'Información del Archivo',
|
||||
@@ -2392,7 +2407,6 @@ extension on TranslationsEs {
|
||||
'messages.fileInfoNotAvailable' => 'Información de archivo no disponible',
|
||||
'messages.errorLoadingFileInfo' => ({required Object error}) => 'Error al cargar info de archivo: ${error}',
|
||||
'messages.errorLoadingSeries' => 'Error al cargar la serie',
|
||||
'messages.errorLoadingSeason' => 'Error al cargar la temporada',
|
||||
'messages.musicNotSupported' => 'La reproducción de música aún no está soportada',
|
||||
'messages.noDescriptionAvailable' => 'No hay descripción disponible',
|
||||
'messages.noProfilesAvailable' => 'No hay perfiles disponibles',
|
||||
@@ -2424,6 +2438,8 @@ extension on TranslationsEs {
|
||||
'messages.logsUploaded' => 'Registros subidos',
|
||||
'messages.logsUploadFailed' => 'Error al subir registros',
|
||||
'messages.logId' => 'ID de registro',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'subtitlingStyling.text' => 'Texto',
|
||||
'subtitlingStyling.border' => 'Borde',
|
||||
'subtitlingStyling.background' => 'Fondo',
|
||||
@@ -2431,14 +2447,15 @@ extension on TranslationsEs {
|
||||
'subtitlingStyling.textColor' => 'Color de Texto',
|
||||
'subtitlingStyling.borderSize' => 'Tamaño de Borde',
|
||||
'subtitlingStyling.borderColor' => 'Color de Borde',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'subtitlingStyling.backgroundOpacity' => 'Opacidad de Fondo',
|
||||
'subtitlingStyling.backgroundColor' => 'Color de Fondo',
|
||||
'subtitlingStyling.position' => 'Posición',
|
||||
'subtitlingStyling.assOverride' => 'Sobreescritura ASS',
|
||||
'subtitlingStyling.bold' => 'Negrita',
|
||||
'subtitlingStyling.italic' => 'Cursiva',
|
||||
'subtitlingStyling.renderResolution' => 'Resolución de renderizado',
|
||||
'subtitlingStyling.renderResolutionScreen' => 'Resolución de pantalla',
|
||||
'subtitlingStyling.renderResolutionVideo' => 'Resolución del vídeo',
|
||||
'mpvConfig.title' => 'Configuración de mpv',
|
||||
'mpvConfig.description' => 'Ajustes avanzados del reproductor de video',
|
||||
'mpvConfig.presets' => 'Ajustes preestablecidos',
|
||||
@@ -2615,6 +2632,7 @@ extension on TranslationsEs {
|
||||
'libraries.sortLabels.rating' => 'Valoración',
|
||||
'libraries.sortLabels.communityRating' => 'Calificación de comunidad',
|
||||
'libraries.sortLabels.criticRating' => 'Calificación de crítica',
|
||||
'libraries.sortLabels.userRating' => 'Calificación del usuario',
|
||||
'libraries.sortLabels.lastPlayed' => 'Última reproducción',
|
||||
'libraries.sortLabels.datePlayed' => 'Fecha de reproducción',
|
||||
'libraries.sortLabels.playCount' => 'Reproducciones',
|
||||
@@ -2628,6 +2646,7 @@ extension on TranslationsEs {
|
||||
'libraries.sortLabels.random' => 'Aleatorio',
|
||||
'libraries.sortLabels.dateShared' => 'Fecha de compartición',
|
||||
'libraries.sortLabels.latestEpisodeAirDate' => 'Última fecha de emisión del episodio',
|
||||
'libraries.sortLabels.lastEpisodeDateAdded' => 'Fecha de adición del último episodio',
|
||||
'about.title' => 'Acerca de',
|
||||
'about.openSourceLicenses' => 'Licencias de Código Abierto',
|
||||
'about.versionLabel' => ({required Object version}) => 'Versión ${version}',
|
||||
@@ -2860,6 +2879,7 @@ extension on TranslationsEs {
|
||||
'downloads.unwatchedOnly' => 'Solo no vistos',
|
||||
'downloads.nextNUnwatched' => ({required Object count}) => 'Próximos ${count} no vistos',
|
||||
'downloads.customAmount' => 'Cantidad personalizada...',
|
||||
'downloads.includeSpecials' => 'Incluir especiales',
|
||||
'downloads.howManyEpisodes' => '¿Cuántos episodios?',
|
||||
'downloads.itemsQueued' => ({required Object count}) => '${count} elementos en cola de descarga',
|
||||
'downloads.keepSynced' => 'Mantener sincronizado',
|
||||
@@ -2932,6 +2952,8 @@ extension on TranslationsEs {
|
||||
'companionRemote.pairing.authFailed' => 'Autenticación fallida. Ambos dispositivos necesitan la misma cuenta Plex.',
|
||||
'companionRemote.pairing.failedToConnect' => ({required Object error}) => 'Error al conectar: ${error}',
|
||||
'companionRemote.remote.disconnectConfirm' => '¿Quieres desconectarte de la sesión remota?',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'companionRemote.remote.reconnecting' => 'Reconectando...',
|
||||
'companionRemote.remote.attemptOf' => ({required Object current}) => 'Intento ${current} de 5',
|
||||
'companionRemote.remote.retryNow' => 'Reintentar ahora',
|
||||
@@ -2945,8 +2967,6 @@ extension on TranslationsEs {
|
||||
'companionRemote.remote.tabSearch' => 'Buscar',
|
||||
'companionRemote.remote.tabDownloads' => 'Descargas',
|
||||
'companionRemote.remote.tabSettings' => 'Configuración',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'companionRemote.remote.previous' => 'Anterior',
|
||||
'companionRemote.remote.playPause' => 'Reproducir/Pausar',
|
||||
'companionRemote.remote.next' => 'Siguiente',
|
||||
@@ -3006,6 +3026,7 @@ extension on TranslationsEs {
|
||||
'performanceOverlay.maxCll' => 'MaxCLL',
|
||||
'performanceOverlay.maxFall' => 'MaxFALL',
|
||||
'performanceOverlay.cacheUsed' => 'Caché usada',
|
||||
'performanceOverlay.cacheLimit' => 'Límite de caché',
|
||||
'performanceOverlay.speed' => 'Velocidad',
|
||||
'performanceOverlay.player' => 'Reproductor',
|
||||
'performanceOverlay.memory' => 'Memoria',
|
||||
@@ -3158,10 +3179,8 @@ extension on TranslationsEs {
|
||||
'trackers.libraryFilter.libraries' => 'Bibliotecas',
|
||||
'trackers.libraryFilter.noLibraries' => 'No hay bibliotecas disponibles',
|
||||
'addServer.addJellyfinTitle' => 'Añadir servidor Jellyfin',
|
||||
'addServer.jellyfinUrlIntro' => 'Introduce la URL del servidor, p. ej. `https://jellyfin.example.com`.',
|
||||
'addServer.jellyfinUrlsIntro' => 'Introduce una o más URL del servidor, separadas por comas. Plezy usará la URL accesible con menor latencia.',
|
||||
'addServer.serverUrl' => 'URL del servidor',
|
||||
'addServer.serverUrls' => 'URL del servidor',
|
||||
'addServer.serverUrlsHelper' => 'Se permiten varias URL, separadas por comas.',
|
||||
'addServer.findServer' => 'Buscar servidor',
|
||||
'addServer.searchingLocalServers' => 'Buscando servidores Jellyfin locales...',
|
||||
'addServer.localServers' => 'Servidores Jellyfin locales',
|
||||
@@ -3174,17 +3193,12 @@ extension on TranslationsEs {
|
||||
'addServer.signInFailed' => ({required Object error}) => 'Error al iniciar sesión: ${error}',
|
||||
'addServer.quickConnectFailed' => ({required Object error}) => 'Quick Connect ha fallado: ${error}',
|
||||
'addServer.addPlexTitle' => 'Iniciar sesión con Plex',
|
||||
'addServer.plexAuthIntro' => 'Inicia sesión con un navegador o código QR.',
|
||||
'addServer.plexQRPrompt' => 'Escanea este código QR para iniciar sesión.',
|
||||
'addServer.waitingForPlexConfirmation' => 'Esperando que plex.tv confirme tu inicio de sesión…',
|
||||
'addServer.pinExpired' => 'El PIN caducó antes de iniciar sesión. Inténtalo de nuevo.',
|
||||
'addServer.duplicatePlexAccount' => 'Ya iniciaste sesión en Plex. Cierra sesión para cambiar de cuenta.',
|
||||
'addServer.failedToRegisterAccount' => ({required Object error}) => 'No se pudo registrar la cuenta: ${error}',
|
||||
'addServer.enterJellyfinUrlError' => 'Introduce la URL de tu servidor Jellyfin',
|
||||
'addServer.addConnectionTitle' => 'Añadir conexión',
|
||||
'addServer.addConnectionTitleScoped' => ({required Object name}) => 'Añadir a ${name}',
|
||||
'addServer.addConnectionIntroGlobal' => 'Añade otro servidor multimedia. Plex y Jellyfin aparecen juntos en Inicio.',
|
||||
'addServer.addConnectionIntroScoped' => 'Añade un servidor nuevo o toma prestado uno de otro perfil.',
|
||||
'addServer.signInWithPlexCard' => 'Iniciar sesión con Plex',
|
||||
'addServer.signInWithPlexCardSubtitle' => 'Autoriza este dispositivo. Se añaden servidores compartidos.',
|
||||
'addServer.signInWithPlexCardSubtitleScoped' => 'Autoriza una cuenta Plex. Los usuarios de Home se convierten en perfiles.',
|
||||
|
||||
+40
-26
@@ -115,7 +115,6 @@ class _TranslationsAuthFr extends TranslationsAuthEn {
|
||||
@override String get or => 'ou';
|
||||
@override String get connectToJellyfin => 'Se connecter à Jellyfin';
|
||||
@override String get useQuickConnect => 'Utiliser Quick Connect';
|
||||
@override String get quickConnectCode => 'Code Quick Connect';
|
||||
@override String get quickConnectInstructions => 'Ouvrez Quick Connect dans Jellyfin et saisissez ce code.';
|
||||
@override String get quickConnectWaiting => 'En attente d\'approbation…';
|
||||
@override String get quickConnectCancel => 'Annuler';
|
||||
@@ -162,6 +161,7 @@ class _TranslationsCommonFr extends TranslationsCommonEn {
|
||||
@override String get ok => 'OK';
|
||||
@override String get off => 'Désactivé';
|
||||
@override String seasonNumber({required Object number}) => 'Saison ${number}';
|
||||
@override String episodeNumberTitle({required Object number, required Object title}) => 'Épisode ${number} - ${title}';
|
||||
@override String chapterNumber({required Object number}) => 'Chapitre ${number}';
|
||||
@override String get reconnect => 'Reconnecter';
|
||||
@override String get exit => 'Quitter';
|
||||
@@ -244,6 +244,12 @@ class _TranslationsSettingsFr extends TranslationsSettingsEn {
|
||||
@override String get gridView => 'Grille';
|
||||
@override String get listView => 'Liste';
|
||||
@override String get showHeroSection => 'Afficher la section Hero';
|
||||
@override String get continueWatchingAction => 'Action Continuer à regarder';
|
||||
@override String get continueWatchingPlay => 'Lire';
|
||||
@override String get continueWatchingDetails => 'Ouvrir les détails';
|
||||
@override String get episodeAction => 'Action des épisodes';
|
||||
@override String get episodePlay => 'Lire';
|
||||
@override String get episodeDetails => 'Ouvrir les détails';
|
||||
@override String get useGlobalHubs => 'Utiliser la mise en page d\'accueil';
|
||||
@override String get useGlobalHubsDescription => 'Afficher des hubs d\'accueil unifiés. Sinon, utiliser les recommandations de bibliothèque.';
|
||||
@override String get showServerNameOnHubs => 'Afficher le nom du serveur sur les hubs';
|
||||
@@ -260,6 +266,8 @@ class _TranslationsSettingsFr extends TranslationsSettingsEn {
|
||||
@override String get showSeasonPostersOnTabsDescription => 'Afficher l\'affiche de chaque saison au-dessus de son onglet';
|
||||
@override String get tvFullCardLayout => 'Cartes TV pleines';
|
||||
@override String get tvFullCardLayoutDescription => 'Utiliser des cartes TV avec image seule et noms des acteurs superposés';
|
||||
@override String get focusGlow => 'Halo de sélection';
|
||||
@override String get focusGlowDescription => 'Afficher un léger halo autour de la carte sélectionnée';
|
||||
@override String get hideSpoilers => 'Masquer les spoilers des épisodes non vus';
|
||||
@override String get hideSpoilersDescription => 'Flouter les miniatures et descriptions des épisodes non vus';
|
||||
@override String get playerBackend => 'Moteur de lecture';
|
||||
@@ -491,8 +499,8 @@ class _TranslationsMediaMenuFr extends TranslationsMediaMenuEn {
|
||||
@override String get markAsWatched => 'Marquer comme vu';
|
||||
@override String get markAsUnwatched => 'Marquer comme non visionné';
|
||||
@override String get removeFromContinueWatching => 'Supprimer de la liste "Continuer à regarder"';
|
||||
@override String get viewDetails => 'Voir les détails';
|
||||
@override String get goToSeries => 'Aller à la série';
|
||||
@override String get goToSeason => 'Aller à la saison';
|
||||
@override String get shufflePlay => 'Lecture aléatoire';
|
||||
@override String get shuffleNotAvailableOffline => 'La lecture aléatoire n’est pas disponible hors ligne';
|
||||
@override String get fileInfo => 'Informations sur le fichier';
|
||||
@@ -672,7 +680,6 @@ class _TranslationsMessagesFr extends TranslationsMessagesEn {
|
||||
@override String get fileInfoNotAvailable => 'Informations sur le fichier non disponibles';
|
||||
@override String errorLoadingFileInfo({required Object error}) => 'Erreur lors du chargement des informations sur le fichier: ${error}';
|
||||
@override String get errorLoadingSeries => 'Erreur lors du chargement de la série';
|
||||
@override String get errorLoadingSeason => 'Erreur lors du chargement de la saison';
|
||||
@override String get musicNotSupported => 'La lecture de musique n\'est pas encore prise en charge';
|
||||
@override String get noDescriptionAvailable => 'Aucune description disponible';
|
||||
@override String get noProfilesAvailable => 'Aucun profil disponible';
|
||||
@@ -726,6 +733,9 @@ class _TranslationsSubtitlingStylingFr extends TranslationsSubtitlingStylingEn {
|
||||
@override String get assOverride => 'Remplacement ASS';
|
||||
@override String get bold => 'Gras';
|
||||
@override String get italic => 'Italique';
|
||||
@override String get renderResolution => 'Résolution de rendu';
|
||||
@override String get renderResolutionScreen => 'Résolution de l\'écran';
|
||||
@override String get renderResolutionVideo => 'Résolution de la vidéo';
|
||||
}
|
||||
|
||||
// Path: mpvConfig
|
||||
@@ -1278,6 +1288,7 @@ class _TranslationsDownloadsFr extends TranslationsDownloadsEn {
|
||||
@override String get unwatchedOnly => 'Non vus uniquement';
|
||||
@override String nextNUnwatched({required Object count}) => '${count} prochains non vus';
|
||||
@override String get customAmount => 'Quantité personnalisée...';
|
||||
@override String get includeSpecials => 'Inclure les spéciaux';
|
||||
@override String get howManyEpisodes => 'Combien d\'épisodes ?';
|
||||
@override String itemsQueued({required Object count}) => '${count} éléments mis en file d\'attente';
|
||||
@override String get keepSynced => 'Garder synchronisé';
|
||||
@@ -1402,6 +1413,7 @@ class _TranslationsPerformanceOverlayFr extends TranslationsPerformanceOverlayEn
|
||||
@override String get maxCll => 'MaxCLL';
|
||||
@override String get maxFall => 'MaxFALL';
|
||||
@override String get cacheUsed => 'Cache utilisé';
|
||||
@override String get cacheLimit => 'Limite du cache';
|
||||
@override String get speed => 'Vitesse';
|
||||
@override String get player => 'Lecteur';
|
||||
@override String get memory => 'Mémoire';
|
||||
@@ -1597,10 +1609,8 @@ class _TranslationsAddServerFr extends TranslationsAddServerEn {
|
||||
|
||||
// Translations
|
||||
@override String get addJellyfinTitle => 'Ajouter un serveur Jellyfin';
|
||||
@override String get jellyfinUrlIntro => 'Saisissez l\'URL du serveur, par ex. `https://jellyfin.example.com`.';
|
||||
@override String get jellyfinUrlsIntro => 'Saisissez une ou plusieurs URL de serveur, séparées par des virgules. Plezy utilisera l\'URL joignable avec la latence la plus faible.';
|
||||
@override String get serverUrl => 'URL du serveur';
|
||||
@override String get serverUrls => 'URL du serveur';
|
||||
@override String get serverUrlsHelper => 'Plusieurs URL possibles, séparées par des virgules.';
|
||||
@override String get findServer => 'Rechercher un serveur';
|
||||
@override String get searchingLocalServers => 'Recherche de serveurs Jellyfin locaux...';
|
||||
@override String get localServers => 'Serveurs Jellyfin locaux';
|
||||
@@ -1613,17 +1623,12 @@ class _TranslationsAddServerFr extends TranslationsAddServerEn {
|
||||
@override String signInFailed({required Object error}) => 'Échec de la connexion : ${error}';
|
||||
@override String quickConnectFailed({required Object error}) => 'Échec de Quick Connect : ${error}';
|
||||
@override String get addPlexTitle => 'Se connecter avec Plex';
|
||||
@override String get plexAuthIntro => 'Connectez-vous avec un navigateur ou un code QR.';
|
||||
@override String get plexQRPrompt => 'Scannez ce QR code pour vous connecter.';
|
||||
@override String get waitingForPlexConfirmation => 'En attente de la confirmation de plex.tv…';
|
||||
@override String get pinExpired => 'Le PIN a expiré avant la connexion. Veuillez réessayer.';
|
||||
@override String get duplicatePlexAccount => 'Déjà connecté à Plex. Déconnectez-vous pour changer de compte.';
|
||||
@override String failedToRegisterAccount({required Object error}) => 'Échec de l\'enregistrement du compte : ${error}';
|
||||
@override String get enterJellyfinUrlError => 'Saisissez l\'URL de votre serveur Jellyfin';
|
||||
@override String get addConnectionTitle => 'Ajouter une connexion';
|
||||
@override String addConnectionTitleScoped({required Object name}) => 'Ajouter à ${name}';
|
||||
@override String get addConnectionIntroGlobal => 'Ajoutez un autre serveur multimédia. Plex et Jellyfin apparaissent ensemble sur Accueil.';
|
||||
@override String get addConnectionIntroScoped => 'Ajoutez un nouveau serveur, ou empruntez-en un à un autre profil.';
|
||||
@override String get signInWithPlexCard => 'Se connecter avec Plex';
|
||||
@override String get signInWithPlexCardSubtitle => 'Autorisez cet appareil. Les serveurs partagés sont ajoutés.';
|
||||
@override String get signInWithPlexCardSubtitleScoped => 'Autorisez un compte Plex. Les utilisateurs Home deviennent des profils.';
|
||||
@@ -1740,6 +1745,7 @@ class _TranslationsLibrariesSortLabelsFr extends TranslationsLibrariesSortLabels
|
||||
@override String get rating => 'Note';
|
||||
@override String get communityRating => 'Note communautaire';
|
||||
@override String get criticRating => 'Note critique';
|
||||
@override String get userRating => 'Note utilisateur';
|
||||
@override String get lastPlayed => 'Dernière lecture';
|
||||
@override String get datePlayed => 'Date de lecture';
|
||||
@override String get playCount => 'Lectures';
|
||||
@@ -1753,6 +1759,7 @@ class _TranslationsLibrariesSortLabelsFr extends TranslationsLibrariesSortLabels
|
||||
@override String get random => 'Aléatoire';
|
||||
@override String get dateShared => 'Date de partage';
|
||||
@override String get latestEpisodeAirDate => 'Dernière date de diffusion';
|
||||
@override String get lastEpisodeDateAdded => 'Date d\'ajout du dernier épisode';
|
||||
}
|
||||
|
||||
// Path: companionRemote.session
|
||||
@@ -1931,7 +1938,6 @@ extension on TranslationsFr {
|
||||
'auth.or' => 'ou',
|
||||
'auth.connectToJellyfin' => 'Se connecter à Jellyfin',
|
||||
'auth.useQuickConnect' => 'Utiliser Quick Connect',
|
||||
'auth.quickConnectCode' => 'Code Quick Connect',
|
||||
'auth.quickConnectInstructions' => 'Ouvrez Quick Connect dans Jellyfin et saisissez ce code.',
|
||||
'auth.quickConnectWaiting' => 'En attente d\'approbation…',
|
||||
'auth.quickConnectCancel' => 'Annuler',
|
||||
@@ -1969,6 +1975,7 @@ extension on TranslationsFr {
|
||||
'common.ok' => 'OK',
|
||||
'common.off' => 'Désactivé',
|
||||
'common.seasonNumber' => ({required Object number}) => 'Saison ${number}',
|
||||
'common.episodeNumberTitle' => ({required Object number, required Object title}) => 'Épisode ${number} - ${title}',
|
||||
'common.chapterNumber' => ({required Object number}) => 'Chapitre ${number}',
|
||||
'common.reconnect' => 'Reconnecter',
|
||||
'common.exit' => 'Quitter',
|
||||
@@ -2024,6 +2031,12 @@ extension on TranslationsFr {
|
||||
'settings.gridView' => 'Grille',
|
||||
'settings.listView' => 'Liste',
|
||||
'settings.showHeroSection' => 'Afficher la section Hero',
|
||||
'settings.continueWatchingAction' => 'Action Continuer à regarder',
|
||||
'settings.continueWatchingPlay' => 'Lire',
|
||||
'settings.continueWatchingDetails' => 'Ouvrir les détails',
|
||||
'settings.episodeAction' => 'Action des épisodes',
|
||||
'settings.episodePlay' => 'Lire',
|
||||
'settings.episodeDetails' => 'Ouvrir les détails',
|
||||
'settings.useGlobalHubs' => 'Utiliser la mise en page d\'accueil',
|
||||
'settings.useGlobalHubsDescription' => 'Afficher des hubs d\'accueil unifiés. Sinon, utiliser les recommandations de bibliothèque.',
|
||||
'settings.showServerNameOnHubs' => 'Afficher le nom du serveur sur les hubs',
|
||||
@@ -2040,6 +2053,8 @@ extension on TranslationsFr {
|
||||
'settings.showSeasonPostersOnTabsDescription' => 'Afficher l\'affiche de chaque saison au-dessus de son onglet',
|
||||
'settings.tvFullCardLayout' => 'Cartes TV pleines',
|
||||
'settings.tvFullCardLayoutDescription' => 'Utiliser des cartes TV avec image seule et noms des acteurs superposés',
|
||||
'settings.focusGlow' => 'Halo de sélection',
|
||||
'settings.focusGlowDescription' => 'Afficher un léger halo autour de la carte sélectionnée',
|
||||
'settings.hideSpoilers' => 'Masquer les spoilers des épisodes non vus',
|
||||
'settings.hideSpoilersDescription' => 'Flouter les miniatures et descriptions des épisodes non vus',
|
||||
'settings.playerBackend' => 'Moteur de lecture',
|
||||
@@ -2259,8 +2274,8 @@ extension on TranslationsFr {
|
||||
'mediaMenu.markAsWatched' => 'Marquer comme vu',
|
||||
'mediaMenu.markAsUnwatched' => 'Marquer comme non visionné',
|
||||
'mediaMenu.removeFromContinueWatching' => 'Supprimer de la liste "Continuer à regarder"',
|
||||
'mediaMenu.viewDetails' => 'Voir les détails',
|
||||
'mediaMenu.goToSeries' => 'Aller à la série',
|
||||
'mediaMenu.goToSeason' => 'Aller à la saison',
|
||||
'mediaMenu.shufflePlay' => 'Lecture aléatoire',
|
||||
'mediaMenu.shuffleNotAvailableOffline' => 'La lecture aléatoire n’est pas disponible hors ligne',
|
||||
'mediaMenu.fileInfo' => 'Informations sur le fichier',
|
||||
@@ -2392,7 +2407,6 @@ extension on TranslationsFr {
|
||||
'messages.fileInfoNotAvailable' => 'Informations sur le fichier non disponibles',
|
||||
'messages.errorLoadingFileInfo' => ({required Object error}) => 'Erreur lors du chargement des informations sur le fichier: ${error}',
|
||||
'messages.errorLoadingSeries' => 'Erreur lors du chargement de la série',
|
||||
'messages.errorLoadingSeason' => 'Erreur lors du chargement de la saison',
|
||||
'messages.musicNotSupported' => 'La lecture de musique n\'est pas encore prise en charge',
|
||||
'messages.noDescriptionAvailable' => 'Aucune description disponible',
|
||||
'messages.noProfilesAvailable' => 'Aucun profil disponible',
|
||||
@@ -2424,6 +2438,8 @@ extension on TranslationsFr {
|
||||
'messages.logsUploaded' => 'Logs envoyés',
|
||||
'messages.logsUploadFailed' => 'Échec de l\'envoi des logs',
|
||||
'messages.logId' => 'ID du log',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'subtitlingStyling.text' => 'Texte',
|
||||
'subtitlingStyling.border' => 'Bordure',
|
||||
'subtitlingStyling.background' => 'Arrière-plan',
|
||||
@@ -2431,14 +2447,15 @@ extension on TranslationsFr {
|
||||
'subtitlingStyling.textColor' => 'Couleur du texte',
|
||||
'subtitlingStyling.borderSize' => 'Taille de la bordure',
|
||||
'subtitlingStyling.borderColor' => 'Couleur de la bordure',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'subtitlingStyling.backgroundOpacity' => 'Opacité d\'arrière-plan',
|
||||
'subtitlingStyling.backgroundColor' => 'Couleur d\'arrière-plan',
|
||||
'subtitlingStyling.position' => 'Position',
|
||||
'subtitlingStyling.assOverride' => 'Remplacement ASS',
|
||||
'subtitlingStyling.bold' => 'Gras',
|
||||
'subtitlingStyling.italic' => 'Italique',
|
||||
'subtitlingStyling.renderResolution' => 'Résolution de rendu',
|
||||
'subtitlingStyling.renderResolutionScreen' => 'Résolution de l\'écran',
|
||||
'subtitlingStyling.renderResolutionVideo' => 'Résolution de la vidéo',
|
||||
'mpvConfig.title' => 'Configuration mpv',
|
||||
'mpvConfig.description' => 'Paramètres avancés du lecteur vidéo',
|
||||
'mpvConfig.presets' => 'Préréglages',
|
||||
@@ -2615,6 +2632,7 @@ extension on TranslationsFr {
|
||||
'libraries.sortLabels.rating' => 'Note',
|
||||
'libraries.sortLabels.communityRating' => 'Note communautaire',
|
||||
'libraries.sortLabels.criticRating' => 'Note critique',
|
||||
'libraries.sortLabels.userRating' => 'Note utilisateur',
|
||||
'libraries.sortLabels.lastPlayed' => 'Dernière lecture',
|
||||
'libraries.sortLabels.datePlayed' => 'Date de lecture',
|
||||
'libraries.sortLabels.playCount' => 'Lectures',
|
||||
@@ -2628,6 +2646,7 @@ extension on TranslationsFr {
|
||||
'libraries.sortLabels.random' => 'Aléatoire',
|
||||
'libraries.sortLabels.dateShared' => 'Date de partage',
|
||||
'libraries.sortLabels.latestEpisodeAirDate' => 'Dernière date de diffusion',
|
||||
'libraries.sortLabels.lastEpisodeDateAdded' => 'Date d\'ajout du dernier épisode',
|
||||
'about.title' => 'À propos',
|
||||
'about.openSourceLicenses' => 'Licences Open Source',
|
||||
'about.versionLabel' => ({required Object version}) => 'Version ${version}',
|
||||
@@ -2860,6 +2879,7 @@ extension on TranslationsFr {
|
||||
'downloads.unwatchedOnly' => 'Non vus uniquement',
|
||||
'downloads.nextNUnwatched' => ({required Object count}) => '${count} prochains non vus',
|
||||
'downloads.customAmount' => 'Quantité personnalisée...',
|
||||
'downloads.includeSpecials' => 'Inclure les spéciaux',
|
||||
'downloads.howManyEpisodes' => 'Combien d\'épisodes ?',
|
||||
'downloads.itemsQueued' => ({required Object count}) => '${count} éléments mis en file d\'attente',
|
||||
'downloads.keepSynced' => 'Garder synchronisé',
|
||||
@@ -2932,6 +2952,8 @@ extension on TranslationsFr {
|
||||
'companionRemote.pairing.authFailed' => 'Échec de l\'authentification. Les deux appareils doivent utiliser le même compte Plex.',
|
||||
'companionRemote.pairing.failedToConnect' => ({required Object error}) => 'Échec de la connexion : ${error}',
|
||||
'companionRemote.remote.disconnectConfirm' => 'Voulez-vous vous déconnecter de la session distante ?',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'companionRemote.remote.reconnecting' => 'Reconnexion...',
|
||||
'companionRemote.remote.attemptOf' => ({required Object current}) => 'Tentative ${current} sur 5',
|
||||
'companionRemote.remote.retryNow' => 'Réessayer maintenant',
|
||||
@@ -2945,8 +2967,6 @@ extension on TranslationsFr {
|
||||
'companionRemote.remote.tabSearch' => 'Rechercher',
|
||||
'companionRemote.remote.tabDownloads' => 'Téléchargements',
|
||||
'companionRemote.remote.tabSettings' => 'Paramètres',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'companionRemote.remote.previous' => 'Précédent',
|
||||
'companionRemote.remote.playPause' => 'Lecture/Pause',
|
||||
'companionRemote.remote.next' => 'Suivant',
|
||||
@@ -3006,6 +3026,7 @@ extension on TranslationsFr {
|
||||
'performanceOverlay.maxCll' => 'MaxCLL',
|
||||
'performanceOverlay.maxFall' => 'MaxFALL',
|
||||
'performanceOverlay.cacheUsed' => 'Cache utilisé',
|
||||
'performanceOverlay.cacheLimit' => 'Limite du cache',
|
||||
'performanceOverlay.speed' => 'Vitesse',
|
||||
'performanceOverlay.player' => 'Lecteur',
|
||||
'performanceOverlay.memory' => 'Mémoire',
|
||||
@@ -3158,10 +3179,8 @@ extension on TranslationsFr {
|
||||
'trackers.libraryFilter.libraries' => 'Bibliothèques',
|
||||
'trackers.libraryFilter.noLibraries' => 'Aucune bibliothèque disponible',
|
||||
'addServer.addJellyfinTitle' => 'Ajouter un serveur Jellyfin',
|
||||
'addServer.jellyfinUrlIntro' => 'Saisissez l\'URL du serveur, par ex. `https://jellyfin.example.com`.',
|
||||
'addServer.jellyfinUrlsIntro' => 'Saisissez une ou plusieurs URL de serveur, séparées par des virgules. Plezy utilisera l\'URL joignable avec la latence la plus faible.',
|
||||
'addServer.serverUrl' => 'URL du serveur',
|
||||
'addServer.serverUrls' => 'URL du serveur',
|
||||
'addServer.serverUrlsHelper' => 'Plusieurs URL possibles, séparées par des virgules.',
|
||||
'addServer.findServer' => 'Rechercher un serveur',
|
||||
'addServer.searchingLocalServers' => 'Recherche de serveurs Jellyfin locaux...',
|
||||
'addServer.localServers' => 'Serveurs Jellyfin locaux',
|
||||
@@ -3174,17 +3193,12 @@ extension on TranslationsFr {
|
||||
'addServer.signInFailed' => ({required Object error}) => 'Échec de la connexion : ${error}',
|
||||
'addServer.quickConnectFailed' => ({required Object error}) => 'Échec de Quick Connect : ${error}',
|
||||
'addServer.addPlexTitle' => 'Se connecter avec Plex',
|
||||
'addServer.plexAuthIntro' => 'Connectez-vous avec un navigateur ou un code QR.',
|
||||
'addServer.plexQRPrompt' => 'Scannez ce QR code pour vous connecter.',
|
||||
'addServer.waitingForPlexConfirmation' => 'En attente de la confirmation de plex.tv…',
|
||||
'addServer.pinExpired' => 'Le PIN a expiré avant la connexion. Veuillez réessayer.',
|
||||
'addServer.duplicatePlexAccount' => 'Déjà connecté à Plex. Déconnectez-vous pour changer de compte.',
|
||||
'addServer.failedToRegisterAccount' => ({required Object error}) => 'Échec de l\'enregistrement du compte : ${error}',
|
||||
'addServer.enterJellyfinUrlError' => 'Saisissez l\'URL de votre serveur Jellyfin',
|
||||
'addServer.addConnectionTitle' => 'Ajouter une connexion',
|
||||
'addServer.addConnectionTitleScoped' => ({required Object name}) => 'Ajouter à ${name}',
|
||||
'addServer.addConnectionIntroGlobal' => 'Ajoutez un autre serveur multimédia. Plex et Jellyfin apparaissent ensemble sur Accueil.',
|
||||
'addServer.addConnectionIntroScoped' => 'Ajoutez un nouveau serveur, ou empruntez-en un à un autre profil.',
|
||||
'addServer.signInWithPlexCard' => 'Se connecter avec Plex',
|
||||
'addServer.signInWithPlexCardSubtitle' => 'Autorisez cet appareil. Les serveurs partagés sont ajoutés.',
|
||||
'addServer.signInWithPlexCardSubtitleScoped' => 'Autorisez un compte Plex. Les utilisateurs Home deviennent des profils.',
|
||||
|
||||
+40
-26
@@ -115,7 +115,6 @@ class _TranslationsAuthIt extends TranslationsAuthEn {
|
||||
@override String get or => 'o';
|
||||
@override String get connectToJellyfin => 'Connetti a Jellyfin';
|
||||
@override String get useQuickConnect => 'Usa Quick Connect';
|
||||
@override String get quickConnectCode => 'Codice Quick Connect';
|
||||
@override String get quickConnectInstructions => 'Apri Quick Connect in Jellyfin e inserisci questo codice.';
|
||||
@override String get quickConnectWaiting => 'In attesa di approvazione…';
|
||||
@override String get quickConnectCancel => 'Annulla';
|
||||
@@ -162,6 +161,7 @@ class _TranslationsCommonIt extends TranslationsCommonEn {
|
||||
@override String get ok => 'OK';
|
||||
@override String get off => 'Disattivato';
|
||||
@override String seasonNumber({required Object number}) => 'Stagione ${number}';
|
||||
@override String episodeNumberTitle({required Object number, required Object title}) => 'Episodio ${number} - ${title}';
|
||||
@override String chapterNumber({required Object number}) => 'Capitolo ${number}';
|
||||
@override String get reconnect => 'Riconnetti';
|
||||
@override String get exit => 'Esci';
|
||||
@@ -244,6 +244,12 @@ class _TranslationsSettingsIt extends TranslationsSettingsEn {
|
||||
@override String get gridView => 'Griglia';
|
||||
@override String get listView => 'Elenco';
|
||||
@override String get showHeroSection => 'Mostra sezione principale';
|
||||
@override String get continueWatchingAction => 'Azione Continua a guardare';
|
||||
@override String get continueWatchingPlay => 'Riproduci';
|
||||
@override String get continueWatchingDetails => 'Apri dettagli';
|
||||
@override String get episodeAction => 'Azione episodio';
|
||||
@override String get episodePlay => 'Riproduci';
|
||||
@override String get episodeDetails => 'Apri dettagli';
|
||||
@override String get useGlobalHubs => 'Usa layout home';
|
||||
@override String get useGlobalHubsDescription => 'Mostra hub Home unificati. Altrimenti usa i consigli della libreria.';
|
||||
@override String get showServerNameOnHubs => 'Mostra nome server sugli hub';
|
||||
@@ -260,6 +266,8 @@ class _TranslationsSettingsIt extends TranslationsSettingsEn {
|
||||
@override String get showSeasonPostersOnTabsDescription => 'Mostra il poster di ogni stagione sopra la sua scheda';
|
||||
@override String get tvFullCardLayout => 'Schede TV piene';
|
||||
@override String get tvFullCardLayoutDescription => 'Usa schede TV solo immagine con i nomi degli attori sovrapposti';
|
||||
@override String get focusGlow => 'Bagliore di selezione';
|
||||
@override String get focusGlowDescription => 'Mostra un leggero bagliore attorno alla scheda selezionata';
|
||||
@override String get hideSpoilers => 'Nascondi spoiler per episodi non visti';
|
||||
@override String get hideSpoilersDescription => 'Sfoca miniature e descrizioni degli episodi non visti';
|
||||
@override String get playerBackend => 'Motore di riproduzione';
|
||||
@@ -491,8 +499,8 @@ class _TranslationsMediaMenuIt extends TranslationsMediaMenuEn {
|
||||
@override String get markAsWatched => 'Segna come visto';
|
||||
@override String get markAsUnwatched => 'Segna come non visto';
|
||||
@override String get removeFromContinueWatching => 'Rimuovi da Continua a guardare';
|
||||
@override String get viewDetails => 'Vedi dettagli';
|
||||
@override String get goToSeries => 'Vai alle serie';
|
||||
@override String get goToSeason => 'Vai alla stagione';
|
||||
@override String get shufflePlay => 'Riproduzione casuale';
|
||||
@override String get shuffleNotAvailableOffline => 'Riproduzione casuale non disponibile offline';
|
||||
@override String get fileInfo => 'Info sul file';
|
||||
@@ -672,7 +680,6 @@ class _TranslationsMessagesIt extends TranslationsMessagesEn {
|
||||
@override String get fileInfoNotAvailable => 'Informazioni sul file non disponibili';
|
||||
@override String errorLoadingFileInfo({required Object error}) => 'Errore caricamento informazioni sul file: ${error}';
|
||||
@override String get errorLoadingSeries => 'Errore caricamento serie';
|
||||
@override String get errorLoadingSeason => 'Errore caricamento stagione';
|
||||
@override String get musicNotSupported => 'La riproduzione musicale non è ancora supportata';
|
||||
@override String get noDescriptionAvailable => 'Nessuna descrizione disponibile';
|
||||
@override String get noProfilesAvailable => 'Nessun profilo disponibile';
|
||||
@@ -726,6 +733,9 @@ class _TranslationsSubtitlingStylingIt extends TranslationsSubtitlingStylingEn {
|
||||
@override String get assOverride => 'Sovrascrittura ASS';
|
||||
@override String get bold => 'Grassetto';
|
||||
@override String get italic => 'Corsivo';
|
||||
@override String get renderResolution => 'Risoluzione di rendering';
|
||||
@override String get renderResolutionScreen => 'Risoluzione dello schermo';
|
||||
@override String get renderResolutionVideo => 'Risoluzione del video';
|
||||
}
|
||||
|
||||
// Path: mpvConfig
|
||||
@@ -1278,6 +1288,7 @@ class _TranslationsDownloadsIt extends TranslationsDownloadsEn {
|
||||
@override String get unwatchedOnly => 'Solo non visti';
|
||||
@override String nextNUnwatched({required Object count}) => 'Prossimi ${count} non visti';
|
||||
@override String get customAmount => 'Quantità personalizzata...';
|
||||
@override String get includeSpecials => 'Includi gli speciali';
|
||||
@override String get howManyEpisodes => 'Quanti episodi?';
|
||||
@override String itemsQueued({required Object count}) => '${count} elementi in coda per il download';
|
||||
@override String get keepSynced => 'Mantieni sincronizzato';
|
||||
@@ -1402,6 +1413,7 @@ class _TranslationsPerformanceOverlayIt extends TranslationsPerformanceOverlayEn
|
||||
@override String get maxCll => 'MaxCLL';
|
||||
@override String get maxFall => 'MaxFALL';
|
||||
@override String get cacheUsed => 'Cache usata';
|
||||
@override String get cacheLimit => 'Limite cache';
|
||||
@override String get speed => 'Velocità';
|
||||
@override String get player => 'Player';
|
||||
@override String get memory => 'Memoria';
|
||||
@@ -1597,10 +1609,8 @@ class _TranslationsAddServerIt extends TranslationsAddServerEn {
|
||||
|
||||
// Translations
|
||||
@override String get addJellyfinTitle => 'Aggiungi server Jellyfin';
|
||||
@override String get jellyfinUrlIntro => 'Inserisci l\'URL del server, es. `https://jellyfin.example.com`.';
|
||||
@override String get jellyfinUrlsIntro => 'Inserisci uno o più URL del server, separati da virgole. Plezy userà l\'URL raggiungibile con la latenza più bassa.';
|
||||
@override String get serverUrl => 'URL del server';
|
||||
@override String get serverUrls => 'URL del server';
|
||||
@override String get serverUrlsHelper => 'Sono consentiti più URL, separati da virgole.';
|
||||
@override String get findServer => 'Trova server';
|
||||
@override String get searchingLocalServers => 'Ricerca server Jellyfin locali...';
|
||||
@override String get localServers => 'Server Jellyfin locali';
|
||||
@@ -1613,17 +1623,12 @@ class _TranslationsAddServerIt extends TranslationsAddServerEn {
|
||||
@override String signInFailed({required Object error}) => 'Accesso non riuscito: ${error}';
|
||||
@override String quickConnectFailed({required Object error}) => 'Quick Connect non riuscito: ${error}';
|
||||
@override String get addPlexTitle => 'Accedi con Plex';
|
||||
@override String get plexAuthIntro => 'Accedi con un browser o un codice QR.';
|
||||
@override String get plexQRPrompt => 'Scansiona questo QR code per accedere.';
|
||||
@override String get waitingForPlexConfirmation => 'In attesa della conferma da plex.tv…';
|
||||
@override String get pinExpired => 'PIN scaduto prima dell\'accesso. Riprova.';
|
||||
@override String get duplicatePlexAccount => 'Accesso a Plex già effettuato. Esci per cambiare account.';
|
||||
@override String failedToRegisterAccount({required Object error}) => 'Registrazione account non riuscita: ${error}';
|
||||
@override String get enterJellyfinUrlError => 'Inserisci l\'URL del tuo server Jellyfin';
|
||||
@override String get addConnectionTitle => 'Aggiungi connessione';
|
||||
@override String addConnectionTitleScoped({required Object name}) => 'Aggiungi a ${name}';
|
||||
@override String get addConnectionIntroGlobal => 'Aggiungi un altro server multimediale. Plex e Jellyfin appaiono insieme in Home.';
|
||||
@override String get addConnectionIntroScoped => 'Aggiungi un nuovo server, o prendine in prestito uno da un altro profilo.';
|
||||
@override String get signInWithPlexCard => 'Accedi con Plex';
|
||||
@override String get signInWithPlexCardSubtitle => 'Autorizza questo dispositivo. I server condivisi vengono aggiunti.';
|
||||
@override String get signInWithPlexCardSubtitleScoped => 'Autorizza un account Plex. Gli utenti Home diventano profili.';
|
||||
@@ -1740,6 +1745,7 @@ class _TranslationsLibrariesSortLabelsIt extends TranslationsLibrariesSortLabels
|
||||
@override String get rating => 'Valutazione';
|
||||
@override String get communityRating => 'Valutazione della community';
|
||||
@override String get criticRating => 'Valutazione critica';
|
||||
@override String get userRating => 'Valutazione utente';
|
||||
@override String get lastPlayed => 'Ultima riproduzione';
|
||||
@override String get datePlayed => 'Data di riproduzione';
|
||||
@override String get playCount => 'Riproduzioni';
|
||||
@@ -1753,6 +1759,7 @@ class _TranslationsLibrariesSortLabelsIt extends TranslationsLibrariesSortLabels
|
||||
@override String get random => 'Casuale';
|
||||
@override String get dateShared => 'Data di condivisione';
|
||||
@override String get latestEpisodeAirDate => 'Data ultima messa in onda';
|
||||
@override String get lastEpisodeDateAdded => 'Data aggiunta ultimo episodio';
|
||||
}
|
||||
|
||||
// Path: companionRemote.session
|
||||
@@ -1931,7 +1938,6 @@ extension on TranslationsIt {
|
||||
'auth.or' => 'o',
|
||||
'auth.connectToJellyfin' => 'Connetti a Jellyfin',
|
||||
'auth.useQuickConnect' => 'Usa Quick Connect',
|
||||
'auth.quickConnectCode' => 'Codice Quick Connect',
|
||||
'auth.quickConnectInstructions' => 'Apri Quick Connect in Jellyfin e inserisci questo codice.',
|
||||
'auth.quickConnectWaiting' => 'In attesa di approvazione…',
|
||||
'auth.quickConnectCancel' => 'Annulla',
|
||||
@@ -1969,6 +1975,7 @@ extension on TranslationsIt {
|
||||
'common.ok' => 'OK',
|
||||
'common.off' => 'Disattivato',
|
||||
'common.seasonNumber' => ({required Object number}) => 'Stagione ${number}',
|
||||
'common.episodeNumberTitle' => ({required Object number, required Object title}) => 'Episodio ${number} - ${title}',
|
||||
'common.chapterNumber' => ({required Object number}) => 'Capitolo ${number}',
|
||||
'common.reconnect' => 'Riconnetti',
|
||||
'common.exit' => 'Esci',
|
||||
@@ -2024,6 +2031,12 @@ extension on TranslationsIt {
|
||||
'settings.gridView' => 'Griglia',
|
||||
'settings.listView' => 'Elenco',
|
||||
'settings.showHeroSection' => 'Mostra sezione principale',
|
||||
'settings.continueWatchingAction' => 'Azione Continua a guardare',
|
||||
'settings.continueWatchingPlay' => 'Riproduci',
|
||||
'settings.continueWatchingDetails' => 'Apri dettagli',
|
||||
'settings.episodeAction' => 'Azione episodio',
|
||||
'settings.episodePlay' => 'Riproduci',
|
||||
'settings.episodeDetails' => 'Apri dettagli',
|
||||
'settings.useGlobalHubs' => 'Usa layout home',
|
||||
'settings.useGlobalHubsDescription' => 'Mostra hub Home unificati. Altrimenti usa i consigli della libreria.',
|
||||
'settings.showServerNameOnHubs' => 'Mostra nome server sugli hub',
|
||||
@@ -2040,6 +2053,8 @@ extension on TranslationsIt {
|
||||
'settings.showSeasonPostersOnTabsDescription' => 'Mostra il poster di ogni stagione sopra la sua scheda',
|
||||
'settings.tvFullCardLayout' => 'Schede TV piene',
|
||||
'settings.tvFullCardLayoutDescription' => 'Usa schede TV solo immagine con i nomi degli attori sovrapposti',
|
||||
'settings.focusGlow' => 'Bagliore di selezione',
|
||||
'settings.focusGlowDescription' => 'Mostra un leggero bagliore attorno alla scheda selezionata',
|
||||
'settings.hideSpoilers' => 'Nascondi spoiler per episodi non visti',
|
||||
'settings.hideSpoilersDescription' => 'Sfoca miniature e descrizioni degli episodi non visti',
|
||||
'settings.playerBackend' => 'Motore di riproduzione',
|
||||
@@ -2259,8 +2274,8 @@ extension on TranslationsIt {
|
||||
'mediaMenu.markAsWatched' => 'Segna come visto',
|
||||
'mediaMenu.markAsUnwatched' => 'Segna come non visto',
|
||||
'mediaMenu.removeFromContinueWatching' => 'Rimuovi da Continua a guardare',
|
||||
'mediaMenu.viewDetails' => 'Vedi dettagli',
|
||||
'mediaMenu.goToSeries' => 'Vai alle serie',
|
||||
'mediaMenu.goToSeason' => 'Vai alla stagione',
|
||||
'mediaMenu.shufflePlay' => 'Riproduzione casuale',
|
||||
'mediaMenu.shuffleNotAvailableOffline' => 'Riproduzione casuale non disponibile offline',
|
||||
'mediaMenu.fileInfo' => 'Info sul file',
|
||||
@@ -2392,7 +2407,6 @@ extension on TranslationsIt {
|
||||
'messages.fileInfoNotAvailable' => 'Informazioni sul file non disponibili',
|
||||
'messages.errorLoadingFileInfo' => ({required Object error}) => 'Errore caricamento informazioni sul file: ${error}',
|
||||
'messages.errorLoadingSeries' => 'Errore caricamento serie',
|
||||
'messages.errorLoadingSeason' => 'Errore caricamento stagione',
|
||||
'messages.musicNotSupported' => 'La riproduzione musicale non è ancora supportata',
|
||||
'messages.noDescriptionAvailable' => 'Nessuna descrizione disponibile',
|
||||
'messages.noProfilesAvailable' => 'Nessun profilo disponibile',
|
||||
@@ -2424,6 +2438,8 @@ extension on TranslationsIt {
|
||||
'messages.logsUploaded' => 'Log caricati',
|
||||
'messages.logsUploadFailed' => 'Caricamento log fallito',
|
||||
'messages.logId' => 'ID log',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'subtitlingStyling.text' => 'Testo',
|
||||
'subtitlingStyling.border' => 'Bordo',
|
||||
'subtitlingStyling.background' => 'Sfondo',
|
||||
@@ -2431,14 +2447,15 @@ extension on TranslationsIt {
|
||||
'subtitlingStyling.textColor' => 'Colore testo',
|
||||
'subtitlingStyling.borderSize' => 'Dimensione bordo',
|
||||
'subtitlingStyling.borderColor' => 'Colore bordo',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'subtitlingStyling.backgroundOpacity' => 'Opacità sfondo',
|
||||
'subtitlingStyling.backgroundColor' => 'Colore sfondo',
|
||||
'subtitlingStyling.position' => 'Posizione',
|
||||
'subtitlingStyling.assOverride' => 'Sovrascrittura ASS',
|
||||
'subtitlingStyling.bold' => 'Grassetto',
|
||||
'subtitlingStyling.italic' => 'Corsivo',
|
||||
'subtitlingStyling.renderResolution' => 'Risoluzione di rendering',
|
||||
'subtitlingStyling.renderResolutionScreen' => 'Risoluzione dello schermo',
|
||||
'subtitlingStyling.renderResolutionVideo' => 'Risoluzione del video',
|
||||
'mpvConfig.title' => 'Configurazione mpv',
|
||||
'mpvConfig.description' => 'Impostazioni avanzate del lettore video',
|
||||
'mpvConfig.presets' => 'Preset',
|
||||
@@ -2615,6 +2632,7 @@ extension on TranslationsIt {
|
||||
'libraries.sortLabels.rating' => 'Valutazione',
|
||||
'libraries.sortLabels.communityRating' => 'Valutazione della community',
|
||||
'libraries.sortLabels.criticRating' => 'Valutazione critica',
|
||||
'libraries.sortLabels.userRating' => 'Valutazione utente',
|
||||
'libraries.sortLabels.lastPlayed' => 'Ultima riproduzione',
|
||||
'libraries.sortLabels.datePlayed' => 'Data di riproduzione',
|
||||
'libraries.sortLabels.playCount' => 'Riproduzioni',
|
||||
@@ -2628,6 +2646,7 @@ extension on TranslationsIt {
|
||||
'libraries.sortLabels.random' => 'Casuale',
|
||||
'libraries.sortLabels.dateShared' => 'Data di condivisione',
|
||||
'libraries.sortLabels.latestEpisodeAirDate' => 'Data ultima messa in onda',
|
||||
'libraries.sortLabels.lastEpisodeDateAdded' => 'Data aggiunta ultimo episodio',
|
||||
'about.title' => 'Informazioni',
|
||||
'about.openSourceLicenses' => 'Licenze Open Source',
|
||||
'about.versionLabel' => ({required Object version}) => 'Versione ${version}',
|
||||
@@ -2860,6 +2879,7 @@ extension on TranslationsIt {
|
||||
'downloads.unwatchedOnly' => 'Solo non visti',
|
||||
'downloads.nextNUnwatched' => ({required Object count}) => 'Prossimi ${count} non visti',
|
||||
'downloads.customAmount' => 'Quantità personalizzata...',
|
||||
'downloads.includeSpecials' => 'Includi gli speciali',
|
||||
'downloads.howManyEpisodes' => 'Quanti episodi?',
|
||||
'downloads.itemsQueued' => ({required Object count}) => '${count} elementi in coda per il download',
|
||||
'downloads.keepSynced' => 'Mantieni sincronizzato',
|
||||
@@ -2932,6 +2952,8 @@ extension on TranslationsIt {
|
||||
'companionRemote.pairing.authFailed' => 'Autenticazione non riuscita. Entrambi i dispositivi devono usare lo stesso account Plex.',
|
||||
'companionRemote.pairing.failedToConnect' => ({required Object error}) => 'Connessione fallita: ${error}',
|
||||
'companionRemote.remote.disconnectConfirm' => 'Vuoi disconnetterti dalla sessione remota?',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'companionRemote.remote.reconnecting' => 'Riconnessione...',
|
||||
'companionRemote.remote.attemptOf' => ({required Object current}) => 'Tentativo ${current} di 5',
|
||||
'companionRemote.remote.retryNow' => 'Riprova ora',
|
||||
@@ -2945,8 +2967,6 @@ extension on TranslationsIt {
|
||||
'companionRemote.remote.tabSearch' => 'Cerca',
|
||||
'companionRemote.remote.tabDownloads' => 'Download',
|
||||
'companionRemote.remote.tabSettings' => 'Impostazioni',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'companionRemote.remote.previous' => 'Precedente',
|
||||
'companionRemote.remote.playPause' => 'Riproduci/Pausa',
|
||||
'companionRemote.remote.next' => 'Successivo',
|
||||
@@ -3006,6 +3026,7 @@ extension on TranslationsIt {
|
||||
'performanceOverlay.maxCll' => 'MaxCLL',
|
||||
'performanceOverlay.maxFall' => 'MaxFALL',
|
||||
'performanceOverlay.cacheUsed' => 'Cache usata',
|
||||
'performanceOverlay.cacheLimit' => 'Limite cache',
|
||||
'performanceOverlay.speed' => 'Velocità',
|
||||
'performanceOverlay.player' => 'Player',
|
||||
'performanceOverlay.memory' => 'Memoria',
|
||||
@@ -3158,10 +3179,8 @@ extension on TranslationsIt {
|
||||
'trackers.libraryFilter.libraries' => 'Librerie',
|
||||
'trackers.libraryFilter.noLibraries' => 'Nessuna libreria disponibile',
|
||||
'addServer.addJellyfinTitle' => 'Aggiungi server Jellyfin',
|
||||
'addServer.jellyfinUrlIntro' => 'Inserisci l\'URL del server, es. `https://jellyfin.example.com`.',
|
||||
'addServer.jellyfinUrlsIntro' => 'Inserisci uno o più URL del server, separati da virgole. Plezy userà l\'URL raggiungibile con la latenza più bassa.',
|
||||
'addServer.serverUrl' => 'URL del server',
|
||||
'addServer.serverUrls' => 'URL del server',
|
||||
'addServer.serverUrlsHelper' => 'Sono consentiti più URL, separati da virgole.',
|
||||
'addServer.findServer' => 'Trova server',
|
||||
'addServer.searchingLocalServers' => 'Ricerca server Jellyfin locali...',
|
||||
'addServer.localServers' => 'Server Jellyfin locali',
|
||||
@@ -3174,17 +3193,12 @@ extension on TranslationsIt {
|
||||
'addServer.signInFailed' => ({required Object error}) => 'Accesso non riuscito: ${error}',
|
||||
'addServer.quickConnectFailed' => ({required Object error}) => 'Quick Connect non riuscito: ${error}',
|
||||
'addServer.addPlexTitle' => 'Accedi con Plex',
|
||||
'addServer.plexAuthIntro' => 'Accedi con un browser o un codice QR.',
|
||||
'addServer.plexQRPrompt' => 'Scansiona questo QR code per accedere.',
|
||||
'addServer.waitingForPlexConfirmation' => 'In attesa della conferma da plex.tv…',
|
||||
'addServer.pinExpired' => 'PIN scaduto prima dell\'accesso. Riprova.',
|
||||
'addServer.duplicatePlexAccount' => 'Accesso a Plex già effettuato. Esci per cambiare account.',
|
||||
'addServer.failedToRegisterAccount' => ({required Object error}) => 'Registrazione account non riuscita: ${error}',
|
||||
'addServer.enterJellyfinUrlError' => 'Inserisci l\'URL del tuo server Jellyfin',
|
||||
'addServer.addConnectionTitle' => 'Aggiungi connessione',
|
||||
'addServer.addConnectionTitleScoped' => ({required Object name}) => 'Aggiungi a ${name}',
|
||||
'addServer.addConnectionIntroGlobal' => 'Aggiungi un altro server multimediale. Plex e Jellyfin appaiono insieme in Home.',
|
||||
'addServer.addConnectionIntroScoped' => 'Aggiungi un nuovo server, o prendine in prestito uno da un altro profilo.',
|
||||
'addServer.signInWithPlexCard' => 'Accedi con Plex',
|
||||
'addServer.signInWithPlexCardSubtitle' => 'Autorizza questo dispositivo. I server condivisi vengono aggiunti.',
|
||||
'addServer.signInWithPlexCardSubtitleScoped' => 'Autorizza un account Plex. Gli utenti Home diventano profili.',
|
||||
|
||||
+40
-26
@@ -115,7 +115,6 @@ class _TranslationsAuthJa extends TranslationsAuthEn {
|
||||
@override String get or => 'または';
|
||||
@override String get connectToJellyfin => 'Jellyfinに接続';
|
||||
@override String get useQuickConnect => 'Quick Connect を使う';
|
||||
@override String get quickConnectCode => 'Quick Connect コード';
|
||||
@override String get quickConnectInstructions => 'JellyfinでQuick Connectを開き、このコードを入力してください。';
|
||||
@override String get quickConnectWaiting => '承認を待っています…';
|
||||
@override String get quickConnectCancel => 'キャンセル';
|
||||
@@ -162,6 +161,7 @@ class _TranslationsCommonJa extends TranslationsCommonEn {
|
||||
@override String get ok => 'OK';
|
||||
@override String get off => 'オフ';
|
||||
@override String seasonNumber({required Object number}) => 'シーズン${number}';
|
||||
@override String episodeNumberTitle({required Object number, required Object title}) => 'エピソード${number} - ${title}';
|
||||
@override String chapterNumber({required Object number}) => 'チャプター${number}';
|
||||
@override String get reconnect => '再接続';
|
||||
@override String get exit => '終了';
|
||||
@@ -244,6 +244,12 @@ class _TranslationsSettingsJa extends TranslationsSettingsEn {
|
||||
@override String get gridView => 'グリッド';
|
||||
@override String get listView => 'リスト';
|
||||
@override String get showHeroSection => 'ヒーローセクションを表示';
|
||||
@override String get continueWatchingAction => '視聴中の操作';
|
||||
@override String get continueWatchingPlay => '再生';
|
||||
@override String get continueWatchingDetails => '詳細を開く';
|
||||
@override String get episodeAction => 'エピソードの操作';
|
||||
@override String get episodePlay => '再生';
|
||||
@override String get episodeDetails => '詳細を開く';
|
||||
@override String get useGlobalHubs => 'ホームレイアウトを使用';
|
||||
@override String get useGlobalHubsDescription => '統合ホームハブを表示します。オフの場合はライブラリのおすすめを使用します。';
|
||||
@override String get showServerNameOnHubs => 'ハブにサーバー名を表示';
|
||||
@@ -260,6 +266,8 @@ class _TranslationsSettingsJa extends TranslationsSettingsEn {
|
||||
@override String get showSeasonPostersOnTabsDescription => '各シーズンのポスターをタブの上に表示します';
|
||||
@override String get tvFullCardLayout => 'フルTVカード';
|
||||
@override String get tvFullCardLayoutDescription => 'TVカードを画像のみで表示し、俳優名を重ねて表示します';
|
||||
@override String get focusGlow => 'フォーカス時の光彩';
|
||||
@override String get focusGlowDescription => 'フォーカス中のカードの周りに柔らかい光彩を表示します';
|
||||
@override String get hideSpoilers => '未視聴エピソードのネタバレを非表示';
|
||||
@override String get hideSpoilersDescription => '未視聴エピソードのサムネイルと説明をぼかします';
|
||||
@override String get playerBackend => 'プレーヤーバックエンド';
|
||||
@@ -491,8 +499,8 @@ class _TranslationsMediaMenuJa extends TranslationsMediaMenuEn {
|
||||
@override String get markAsWatched => '視聴済みにする';
|
||||
@override String get markAsUnwatched => '未視聴にする';
|
||||
@override String get removeFromContinueWatching => '視聴中から削除';
|
||||
@override String get viewDetails => '詳細を表示';
|
||||
@override String get goToSeries => 'シリーズへ移動';
|
||||
@override String get goToSeason => 'シーズンへ移動';
|
||||
@override String get shufflePlay => 'シャッフル再生';
|
||||
@override String get shuffleNotAvailableOffline => 'オフラインではシャッフルを利用できません';
|
||||
@override String get fileInfo => 'ファイル情報';
|
||||
@@ -672,7 +680,6 @@ class _TranslationsMessagesJa extends TranslationsMessagesEn {
|
||||
@override String get fileInfoNotAvailable => 'ファイル情報が利用できません';
|
||||
@override String errorLoadingFileInfo({required Object error}) => 'ファイル情報の読み込みエラー: ${error}';
|
||||
@override String get errorLoadingSeries => 'シリーズの読み込みエラー';
|
||||
@override String get errorLoadingSeason => 'シーズンの読み込みエラー';
|
||||
@override String get musicNotSupported => '音楽の再生はまだサポートされていません';
|
||||
@override String get noDescriptionAvailable => '説明はありません';
|
||||
@override String get noProfilesAvailable => '利用可能なプロフィールがありません';
|
||||
@@ -726,6 +733,9 @@ class _TranslationsSubtitlingStylingJa extends TranslationsSubtitlingStylingEn {
|
||||
@override String get assOverride => 'ASSオーバーライド';
|
||||
@override String get bold => '太字';
|
||||
@override String get italic => '斜体';
|
||||
@override String get renderResolution => 'レンダリング解像度';
|
||||
@override String get renderResolutionScreen => '画面解像度';
|
||||
@override String get renderResolutionVideo => '動画解像度';
|
||||
}
|
||||
|
||||
// Path: mpvConfig
|
||||
@@ -1278,6 +1288,7 @@ class _TranslationsDownloadsJa extends TranslationsDownloadsEn {
|
||||
@override String get unwatchedOnly => '未視聴のみ';
|
||||
@override String nextNUnwatched({required Object count}) => '次の${count}件の未視聴';
|
||||
@override String get customAmount => '数を指定...';
|
||||
@override String get includeSpecials => 'スペシャルを含める';
|
||||
@override String get howManyEpisodes => '何エピソード?';
|
||||
@override String itemsQueued({required Object count}) => '${count}件をダウンロードキューに追加';
|
||||
@override String get keepSynced => '同期を維持';
|
||||
@@ -1402,6 +1413,7 @@ class _TranslationsPerformanceOverlayJa extends TranslationsPerformanceOverlayEn
|
||||
@override String get maxCll => 'MaxCLL';
|
||||
@override String get maxFall => 'MaxFALL';
|
||||
@override String get cacheUsed => '使用キャッシュ';
|
||||
@override String get cacheLimit => 'キャッシュ上限';
|
||||
@override String get speed => '速度';
|
||||
@override String get player => 'プレーヤー';
|
||||
@override String get memory => 'メモリ';
|
||||
@@ -1597,10 +1609,8 @@ class _TranslationsAddServerJa extends TranslationsAddServerEn {
|
||||
|
||||
// Translations
|
||||
@override String get addJellyfinTitle => 'Jellyfinサーバーを追加';
|
||||
@override String get jellyfinUrlIntro => 'サーバーURLを入力してください。例: `https://jellyfin.example.com`。';
|
||||
@override String get jellyfinUrlsIntro => 'サーバーURLを1つ以上、カンマで区切って入力してください。Plezyは到達可能なURLのうち最も低遅延のものを使用します。';
|
||||
@override String get serverUrl => 'サーバーURL';
|
||||
@override String get serverUrls => 'サーバーURL';
|
||||
@override String get serverUrlsHelper => '複数のURLをカンマ区切りで入力できます。';
|
||||
@override String get findServer => 'サーバーを検索';
|
||||
@override String get searchingLocalServers => 'ローカル Jellyfin サーバーを検索中...';
|
||||
@override String get localServers => 'ローカル Jellyfin サーバー';
|
||||
@@ -1613,17 +1623,12 @@ class _TranslationsAddServerJa extends TranslationsAddServerEn {
|
||||
@override String signInFailed({required Object error}) => 'サインインに失敗しました: ${error}';
|
||||
@override String quickConnectFailed({required Object error}) => 'Quick Connectに失敗しました: ${error}';
|
||||
@override String get addPlexTitle => 'Plexでサインイン';
|
||||
@override String get plexAuthIntro => 'ブラウザまたはQRコードでサインインします。';
|
||||
@override String get plexQRPrompt => 'このQRコードをスキャンしてサインインしてください。';
|
||||
@override String get waitingForPlexConfirmation => 'plex.tvがサインインを確認するのを待っています…';
|
||||
@override String get pinExpired => 'サインイン前にPINの有効期限が切れました。もう一度お試しください。';
|
||||
@override String get duplicatePlexAccount => 'すでにPlexにサインインしています。アカウントを切り替えるにはサインアウトしてください。';
|
||||
@override String failedToRegisterAccount({required Object error}) => 'アカウントの登録に失敗しました: ${error}';
|
||||
@override String get enterJellyfinUrlError => 'JellyfinサーバーのURLを入力してください';
|
||||
@override String get addConnectionTitle => '接続を追加';
|
||||
@override String addConnectionTitleScoped({required Object name}) => '${name}に追加';
|
||||
@override String get addConnectionIntroGlobal => '別のメディアサーバーを追加します。PlexとJellyfinはホームに一緒に表示されます。';
|
||||
@override String get addConnectionIntroScoped => '新しいサーバーを追加するか、別のプロファイルから借りてください。';
|
||||
@override String get signInWithPlexCard => 'Plexでサインイン';
|
||||
@override String get signInWithPlexCardSubtitle => 'このデバイスを承認します。共有サーバーが追加されます。';
|
||||
@override String get signInWithPlexCardSubtitleScoped => 'Plexアカウントを承認します。Homeユーザーはプロフィールになります。';
|
||||
@@ -1740,6 +1745,7 @@ class _TranslationsLibrariesSortLabelsJa extends TranslationsLibrariesSortLabels
|
||||
@override String get rating => '評価';
|
||||
@override String get communityRating => 'コミュニティ評価';
|
||||
@override String get criticRating => '批評家評価';
|
||||
@override String get userRating => 'ユーザー評価';
|
||||
@override String get lastPlayed => '最終再生';
|
||||
@override String get datePlayed => '再生日';
|
||||
@override String get playCount => '再生回数';
|
||||
@@ -1753,6 +1759,7 @@ class _TranslationsLibrariesSortLabelsJa extends TranslationsLibrariesSortLabels
|
||||
@override String get random => 'ランダム';
|
||||
@override String get dateShared => '共有日';
|
||||
@override String get latestEpisodeAirDate => '最新エピソード放送日';
|
||||
@override String get lastEpisodeDateAdded => '最新エピソード追加日';
|
||||
}
|
||||
|
||||
// Path: companionRemote.session
|
||||
@@ -1931,7 +1938,6 @@ extension on TranslationsJa {
|
||||
'auth.or' => 'または',
|
||||
'auth.connectToJellyfin' => 'Jellyfinに接続',
|
||||
'auth.useQuickConnect' => 'Quick Connect を使う',
|
||||
'auth.quickConnectCode' => 'Quick Connect コード',
|
||||
'auth.quickConnectInstructions' => 'JellyfinでQuick Connectを開き、このコードを入力してください。',
|
||||
'auth.quickConnectWaiting' => '承認を待っています…',
|
||||
'auth.quickConnectCancel' => 'キャンセル',
|
||||
@@ -1969,6 +1975,7 @@ extension on TranslationsJa {
|
||||
'common.ok' => 'OK',
|
||||
'common.off' => 'オフ',
|
||||
'common.seasonNumber' => ({required Object number}) => 'シーズン${number}',
|
||||
'common.episodeNumberTitle' => ({required Object number, required Object title}) => 'エピソード${number} - ${title}',
|
||||
'common.chapterNumber' => ({required Object number}) => 'チャプター${number}',
|
||||
'common.reconnect' => '再接続',
|
||||
'common.exit' => '終了',
|
||||
@@ -2024,6 +2031,12 @@ extension on TranslationsJa {
|
||||
'settings.gridView' => 'グリッド',
|
||||
'settings.listView' => 'リスト',
|
||||
'settings.showHeroSection' => 'ヒーローセクションを表示',
|
||||
'settings.continueWatchingAction' => '視聴中の操作',
|
||||
'settings.continueWatchingPlay' => '再生',
|
||||
'settings.continueWatchingDetails' => '詳細を開く',
|
||||
'settings.episodeAction' => 'エピソードの操作',
|
||||
'settings.episodePlay' => '再生',
|
||||
'settings.episodeDetails' => '詳細を開く',
|
||||
'settings.useGlobalHubs' => 'ホームレイアウトを使用',
|
||||
'settings.useGlobalHubsDescription' => '統合ホームハブを表示します。オフの場合はライブラリのおすすめを使用します。',
|
||||
'settings.showServerNameOnHubs' => 'ハブにサーバー名を表示',
|
||||
@@ -2040,6 +2053,8 @@ extension on TranslationsJa {
|
||||
'settings.showSeasonPostersOnTabsDescription' => '各シーズンのポスターをタブの上に表示します',
|
||||
'settings.tvFullCardLayout' => 'フルTVカード',
|
||||
'settings.tvFullCardLayoutDescription' => 'TVカードを画像のみで表示し、俳優名を重ねて表示します',
|
||||
'settings.focusGlow' => 'フォーカス時の光彩',
|
||||
'settings.focusGlowDescription' => 'フォーカス中のカードの周りに柔らかい光彩を表示します',
|
||||
'settings.hideSpoilers' => '未視聴エピソードのネタバレを非表示',
|
||||
'settings.hideSpoilersDescription' => '未視聴エピソードのサムネイルと説明をぼかします',
|
||||
'settings.playerBackend' => 'プレーヤーバックエンド',
|
||||
@@ -2259,8 +2274,8 @@ extension on TranslationsJa {
|
||||
'mediaMenu.markAsWatched' => '視聴済みにする',
|
||||
'mediaMenu.markAsUnwatched' => '未視聴にする',
|
||||
'mediaMenu.removeFromContinueWatching' => '視聴中から削除',
|
||||
'mediaMenu.viewDetails' => '詳細を表示',
|
||||
'mediaMenu.goToSeries' => 'シリーズへ移動',
|
||||
'mediaMenu.goToSeason' => 'シーズンへ移動',
|
||||
'mediaMenu.shufflePlay' => 'シャッフル再生',
|
||||
'mediaMenu.shuffleNotAvailableOffline' => 'オフラインではシャッフルを利用できません',
|
||||
'mediaMenu.fileInfo' => 'ファイル情報',
|
||||
@@ -2392,7 +2407,6 @@ extension on TranslationsJa {
|
||||
'messages.fileInfoNotAvailable' => 'ファイル情報が利用できません',
|
||||
'messages.errorLoadingFileInfo' => ({required Object error}) => 'ファイル情報の読み込みエラー: ${error}',
|
||||
'messages.errorLoadingSeries' => 'シリーズの読み込みエラー',
|
||||
'messages.errorLoadingSeason' => 'シーズンの読み込みエラー',
|
||||
'messages.musicNotSupported' => '音楽の再生はまだサポートされていません',
|
||||
'messages.noDescriptionAvailable' => '説明はありません',
|
||||
'messages.noProfilesAvailable' => '利用可能なプロフィールがありません',
|
||||
@@ -2424,6 +2438,8 @@ extension on TranslationsJa {
|
||||
'messages.logsUploaded' => 'ログをアップロードしました',
|
||||
'messages.logsUploadFailed' => 'ログのアップロードに失敗しました',
|
||||
'messages.logId' => 'ログID',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'subtitlingStyling.text' => 'テキスト',
|
||||
'subtitlingStyling.border' => '枠線',
|
||||
'subtitlingStyling.background' => '背景',
|
||||
@@ -2431,14 +2447,15 @@ extension on TranslationsJa {
|
||||
'subtitlingStyling.textColor' => 'テキストの色',
|
||||
'subtitlingStyling.borderSize' => '枠線サイズ',
|
||||
'subtitlingStyling.borderColor' => '枠線の色',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'subtitlingStyling.backgroundOpacity' => '背景の不透明度',
|
||||
'subtitlingStyling.backgroundColor' => '背景色',
|
||||
'subtitlingStyling.position' => '位置',
|
||||
'subtitlingStyling.assOverride' => 'ASSオーバーライド',
|
||||
'subtitlingStyling.bold' => '太字',
|
||||
'subtitlingStyling.italic' => '斜体',
|
||||
'subtitlingStyling.renderResolution' => 'レンダリング解像度',
|
||||
'subtitlingStyling.renderResolutionScreen' => '画面解像度',
|
||||
'subtitlingStyling.renderResolutionVideo' => '動画解像度',
|
||||
'mpvConfig.title' => 'mpv.conf',
|
||||
'mpvConfig.description' => '高度な動画プレーヤー設定',
|
||||
'mpvConfig.presets' => 'プリセット',
|
||||
@@ -2615,6 +2632,7 @@ extension on TranslationsJa {
|
||||
'libraries.sortLabels.rating' => '評価',
|
||||
'libraries.sortLabels.communityRating' => 'コミュニティ評価',
|
||||
'libraries.sortLabels.criticRating' => '批評家評価',
|
||||
'libraries.sortLabels.userRating' => 'ユーザー評価',
|
||||
'libraries.sortLabels.lastPlayed' => '最終再生',
|
||||
'libraries.sortLabels.datePlayed' => '再生日',
|
||||
'libraries.sortLabels.playCount' => '再生回数',
|
||||
@@ -2628,6 +2646,7 @@ extension on TranslationsJa {
|
||||
'libraries.sortLabels.random' => 'ランダム',
|
||||
'libraries.sortLabels.dateShared' => '共有日',
|
||||
'libraries.sortLabels.latestEpisodeAirDate' => '最新エピソード放送日',
|
||||
'libraries.sortLabels.lastEpisodeDateAdded' => '最新エピソード追加日',
|
||||
'about.title' => 'アプリについて',
|
||||
'about.openSourceLicenses' => 'オープンソースライセンス',
|
||||
'about.versionLabel' => ({required Object version}) => 'バージョン ${version}',
|
||||
@@ -2860,6 +2879,7 @@ extension on TranslationsJa {
|
||||
'downloads.unwatchedOnly' => '未視聴のみ',
|
||||
'downloads.nextNUnwatched' => ({required Object count}) => '次の${count}件の未視聴',
|
||||
'downloads.customAmount' => '数を指定...',
|
||||
'downloads.includeSpecials' => 'スペシャルを含める',
|
||||
'downloads.howManyEpisodes' => '何エピソード?',
|
||||
'downloads.itemsQueued' => ({required Object count}) => '${count}件をダウンロードキューに追加',
|
||||
'downloads.keepSynced' => '同期を維持',
|
||||
@@ -2932,6 +2952,8 @@ extension on TranslationsJa {
|
||||
'companionRemote.pairing.authFailed' => '認証に失敗しました。両方のデバイスで同じPlexアカウントが必要です。',
|
||||
'companionRemote.pairing.failedToConnect' => ({required Object error}) => '接続に失敗しました: ${error}',
|
||||
'companionRemote.remote.disconnectConfirm' => 'リモートセッションから切断しますか?',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'companionRemote.remote.reconnecting' => '再接続中...',
|
||||
'companionRemote.remote.attemptOf' => ({required Object current}) => '試行 ${current}/5',
|
||||
'companionRemote.remote.retryNow' => '今すぐ再試行',
|
||||
@@ -2945,8 +2967,6 @@ extension on TranslationsJa {
|
||||
'companionRemote.remote.tabSearch' => '検索',
|
||||
'companionRemote.remote.tabDownloads' => 'ダウンロード',
|
||||
'companionRemote.remote.tabSettings' => '設定',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'companionRemote.remote.previous' => '前へ',
|
||||
'companionRemote.remote.playPause' => '再生/一時停止',
|
||||
'companionRemote.remote.next' => '次へ',
|
||||
@@ -3006,6 +3026,7 @@ extension on TranslationsJa {
|
||||
'performanceOverlay.maxCll' => 'MaxCLL',
|
||||
'performanceOverlay.maxFall' => 'MaxFALL',
|
||||
'performanceOverlay.cacheUsed' => '使用キャッシュ',
|
||||
'performanceOverlay.cacheLimit' => 'キャッシュ上限',
|
||||
'performanceOverlay.speed' => '速度',
|
||||
'performanceOverlay.player' => 'プレーヤー',
|
||||
'performanceOverlay.memory' => 'メモリ',
|
||||
@@ -3158,10 +3179,8 @@ extension on TranslationsJa {
|
||||
'trackers.libraryFilter.libraries' => 'ライブラリ',
|
||||
'trackers.libraryFilter.noLibraries' => '利用できるライブラリがありません',
|
||||
'addServer.addJellyfinTitle' => 'Jellyfinサーバーを追加',
|
||||
'addServer.jellyfinUrlIntro' => 'サーバーURLを入力してください。例: `https://jellyfin.example.com`。',
|
||||
'addServer.jellyfinUrlsIntro' => 'サーバーURLを1つ以上、カンマで区切って入力してください。Plezyは到達可能なURLのうち最も低遅延のものを使用します。',
|
||||
'addServer.serverUrl' => 'サーバーURL',
|
||||
'addServer.serverUrls' => 'サーバーURL',
|
||||
'addServer.serverUrlsHelper' => '複数のURLをカンマ区切りで入力できます。',
|
||||
'addServer.findServer' => 'サーバーを検索',
|
||||
'addServer.searchingLocalServers' => 'ローカル Jellyfin サーバーを検索中...',
|
||||
'addServer.localServers' => 'ローカル Jellyfin サーバー',
|
||||
@@ -3174,17 +3193,12 @@ extension on TranslationsJa {
|
||||
'addServer.signInFailed' => ({required Object error}) => 'サインインに失敗しました: ${error}',
|
||||
'addServer.quickConnectFailed' => ({required Object error}) => 'Quick Connectに失敗しました: ${error}',
|
||||
'addServer.addPlexTitle' => 'Plexでサインイン',
|
||||
'addServer.plexAuthIntro' => 'ブラウザまたはQRコードでサインインします。',
|
||||
'addServer.plexQRPrompt' => 'このQRコードをスキャンしてサインインしてください。',
|
||||
'addServer.waitingForPlexConfirmation' => 'plex.tvがサインインを確認するのを待っています…',
|
||||
'addServer.pinExpired' => 'サインイン前にPINの有効期限が切れました。もう一度お試しください。',
|
||||
'addServer.duplicatePlexAccount' => 'すでにPlexにサインインしています。アカウントを切り替えるにはサインアウトしてください。',
|
||||
'addServer.failedToRegisterAccount' => ({required Object error}) => 'アカウントの登録に失敗しました: ${error}',
|
||||
'addServer.enterJellyfinUrlError' => 'JellyfinサーバーのURLを入力してください',
|
||||
'addServer.addConnectionTitle' => '接続を追加',
|
||||
'addServer.addConnectionTitleScoped' => ({required Object name}) => '${name}に追加',
|
||||
'addServer.addConnectionIntroGlobal' => '別のメディアサーバーを追加します。PlexとJellyfinはホームに一緒に表示されます。',
|
||||
'addServer.addConnectionIntroScoped' => '新しいサーバーを追加するか、別のプロファイルから借りてください。',
|
||||
'addServer.signInWithPlexCard' => 'Plexでサインイン',
|
||||
'addServer.signInWithPlexCardSubtitle' => 'このデバイスを承認します。共有サーバーが追加されます。',
|
||||
'addServer.signInWithPlexCardSubtitleScoped' => 'Plexアカウントを承認します。Homeユーザーはプロフィールになります。',
|
||||
|
||||
+40
-26
@@ -115,7 +115,6 @@ class _TranslationsAuthKo extends TranslationsAuthEn {
|
||||
@override String get or => '또는';
|
||||
@override String get connectToJellyfin => 'Jellyfin에 연결';
|
||||
@override String get useQuickConnect => 'Quick Connect 사용';
|
||||
@override String get quickConnectCode => 'Quick Connect 코드';
|
||||
@override String get quickConnectInstructions => 'Jellyfin에서 Quick Connect를 열고 이 코드를 입력하세요.';
|
||||
@override String get quickConnectWaiting => '승인 대기 중…';
|
||||
@override String get quickConnectCancel => '취소';
|
||||
@@ -162,6 +161,7 @@ class _TranslationsCommonKo extends TranslationsCommonEn {
|
||||
@override String get ok => '확인';
|
||||
@override String get off => '끔';
|
||||
@override String seasonNumber({required Object number}) => '시즌 ${number}';
|
||||
@override String episodeNumberTitle({required Object number, required Object title}) => '${number}화 - ${title}';
|
||||
@override String chapterNumber({required Object number}) => '챕터 ${number}';
|
||||
@override String get reconnect => '다시 연결';
|
||||
@override String get exit => '종료';
|
||||
@@ -244,6 +244,12 @@ class _TranslationsSettingsKo extends TranslationsSettingsEn {
|
||||
@override String get gridView => '그리드 보기';
|
||||
@override String get listView => '목록 보기';
|
||||
@override String get showHeroSection => '주요 추천 영역 표시';
|
||||
@override String get continueWatchingAction => '계속 보기 동작';
|
||||
@override String get continueWatchingPlay => '재생';
|
||||
@override String get continueWatchingDetails => '상세 정보 열기';
|
||||
@override String get episodeAction => '에피소드 동작';
|
||||
@override String get episodePlay => '재생';
|
||||
@override String get episodeDetails => '상세 정보 열기';
|
||||
@override String get useGlobalHubs => '홈 레이아웃 사용';
|
||||
@override String get useGlobalHubsDescription => '통합 홈 허브를 표시합니다. 끄면 라이브러리 추천을 사용합니다.';
|
||||
@override String get showServerNameOnHubs => '허브에 서버 이름 표시';
|
||||
@@ -260,6 +266,8 @@ class _TranslationsSettingsKo extends TranslationsSettingsEn {
|
||||
@override String get showSeasonPostersOnTabsDescription => '각 시즌 포스터를 탭 위에 표시';
|
||||
@override String get tvFullCardLayout => '전체 TV 카드';
|
||||
@override String get tvFullCardLayoutDescription => 'TV 카드에 이미지만 표시하고 배우 이름을 오버레이로 표시';
|
||||
@override String get focusGlow => '포커스 글로우';
|
||||
@override String get focusGlowDescription => '포커스된 카드 주위에 은은한 빛 효과를 표시';
|
||||
@override String get hideSpoilers => '미시청 에피소드 스포일러 숨기기';
|
||||
@override String get hideSpoilersDescription => '시청하지 않은 에피소드의 썸네일과 설명을 흐리게 처리';
|
||||
@override String get playerBackend => '플레이어 백엔드';
|
||||
@@ -491,8 +499,8 @@ class _TranslationsMediaMenuKo extends TranslationsMediaMenuEn {
|
||||
@override String get markAsWatched => '시청 완료로 표시';
|
||||
@override String get markAsUnwatched => '시청 안 함으로 표시';
|
||||
@override String get removeFromContinueWatching => '계속 보기에서 제거';
|
||||
@override String get viewDetails => '상세 정보 보기';
|
||||
@override String get goToSeries => '시리즈로 이동';
|
||||
@override String get goToSeason => '시즌으로 이동';
|
||||
@override String get shufflePlay => '무작위 재생';
|
||||
@override String get shuffleNotAvailableOffline => '오프라인에서는 셔플을 사용할 수 없습니다';
|
||||
@override String get fileInfo => '파일 정보';
|
||||
@@ -672,7 +680,6 @@ class _TranslationsMessagesKo extends TranslationsMessagesEn {
|
||||
@override String get fileInfoNotAvailable => '파일 정보가 없습니다';
|
||||
@override String errorLoadingFileInfo({required Object error}) => '파일 정보 로딩 중 오류: ${error}';
|
||||
@override String get errorLoadingSeries => '시리즈 로딩 중 오류';
|
||||
@override String get errorLoadingSeason => '시즌 로딩 중 오류';
|
||||
@override String get musicNotSupported => '음악 재생 미지원';
|
||||
@override String get noDescriptionAvailable => '설명이 없습니다';
|
||||
@override String get noProfilesAvailable => '사용 가능한 프로필이 없습니다';
|
||||
@@ -726,6 +733,9 @@ class _TranslationsSubtitlingStylingKo extends TranslationsSubtitlingStylingEn {
|
||||
@override String get assOverride => 'ASS 오버라이드';
|
||||
@override String get bold => '굵게';
|
||||
@override String get italic => '기울임꼴';
|
||||
@override String get renderResolution => '렌더링 해상도';
|
||||
@override String get renderResolutionScreen => '화면 해상도';
|
||||
@override String get renderResolutionVideo => '영상 해상도';
|
||||
}
|
||||
|
||||
// Path: mpvConfig
|
||||
@@ -1278,6 +1288,7 @@ class _TranslationsDownloadsKo extends TranslationsDownloadsEn {
|
||||
@override String get unwatchedOnly => '시청하지 않은 것만';
|
||||
@override String nextNUnwatched({required Object count}) => '다음 ${count}개 미시청';
|
||||
@override String get customAmount => '직접 입력...';
|
||||
@override String get includeSpecials => '스페셜 포함';
|
||||
@override String get howManyEpisodes => '몇 개의 에피소드?';
|
||||
@override String itemsQueued({required Object count}) => '${count}개 항목이 다운로드 대기열에 추가됨';
|
||||
@override String get keepSynced => '동기화 유지';
|
||||
@@ -1402,6 +1413,7 @@ class _TranslationsPerformanceOverlayKo extends TranslationsPerformanceOverlayEn
|
||||
@override String get maxCll => 'MaxCLL';
|
||||
@override String get maxFall => 'MaxFALL';
|
||||
@override String get cacheUsed => '사용 캐시';
|
||||
@override String get cacheLimit => '캐시 제한';
|
||||
@override String get speed => '속도';
|
||||
@override String get player => '플레이어';
|
||||
@override String get memory => '메모리';
|
||||
@@ -1597,10 +1609,8 @@ class _TranslationsAddServerKo extends TranslationsAddServerEn {
|
||||
|
||||
// Translations
|
||||
@override String get addJellyfinTitle => 'Jellyfin 서버 추가';
|
||||
@override String get jellyfinUrlIntro => '서버 URL을 입력하세요. 예: `https://jellyfin.example.com`.';
|
||||
@override String get jellyfinUrlsIntro => '서버 URL을 하나 이상 쉼표로 구분해 입력하세요. Plezy는 연결 가능한 URL 중 지연 시간이 가장 낮은 URL을 사용합니다.';
|
||||
@override String get serverUrl => '서버 URL';
|
||||
@override String get serverUrls => '서버 URL';
|
||||
@override String get serverUrlsHelper => '쉼표로 구분하여 여러 URL을 입력할 수 있습니다.';
|
||||
@override String get findServer => '서버 찾기';
|
||||
@override String get searchingLocalServers => '로컬 Jellyfin 서버 검색 중...';
|
||||
@override String get localServers => '로컬 Jellyfin 서버';
|
||||
@@ -1613,17 +1623,12 @@ class _TranslationsAddServerKo extends TranslationsAddServerEn {
|
||||
@override String signInFailed({required Object error}) => '로그인 실패: ${error}';
|
||||
@override String quickConnectFailed({required Object error}) => 'Quick Connect 실패: ${error}';
|
||||
@override String get addPlexTitle => 'Plex로 로그인';
|
||||
@override String get plexAuthIntro => '브라우저 또는 QR 코드로 로그인하세요.';
|
||||
@override String get plexQRPrompt => '이 QR 코드를 스캔하여 로그인하세요.';
|
||||
@override String get waitingForPlexConfirmation => 'plex.tv에서 로그인을 확인하는 중…';
|
||||
@override String get pinExpired => '로그인 전에 PIN이 만료되었습니다. 다시 시도하세요.';
|
||||
@override String get duplicatePlexAccount => '이미 Plex에 로그인되어 있습니다. 계정을 전환하려면 로그아웃하세요.';
|
||||
@override String failedToRegisterAccount({required Object error}) => '계정 등록 실패: ${error}';
|
||||
@override String get enterJellyfinUrlError => 'Jellyfin 서버 URL을 입력하세요';
|
||||
@override String get addConnectionTitle => '연결 추가';
|
||||
@override String addConnectionTitleScoped({required Object name}) => '${name}에 추가';
|
||||
@override String get addConnectionIntroGlobal => '다른 미디어 서버를 추가합니다. Plex와 Jellyfin이 홈에 함께 표시됩니다.';
|
||||
@override String get addConnectionIntroScoped => '새 서버를 추가하거나 다른 프로필에서 빌리세요.';
|
||||
@override String get signInWithPlexCard => 'Plex로 로그인';
|
||||
@override String get signInWithPlexCardSubtitle => '이 기기를 승인합니다. 공유 서버가 추가됩니다.';
|
||||
@override String get signInWithPlexCardSubtitleScoped => 'Plex 계정을 승인합니다. Home 사용자는 프로필이 됩니다.';
|
||||
@@ -1740,6 +1745,7 @@ class _TranslationsLibrariesSortLabelsKo extends TranslationsLibrariesSortLabels
|
||||
@override String get rating => '평점';
|
||||
@override String get communityRating => '커뮤니티 평점';
|
||||
@override String get criticRating => '평론가 평점';
|
||||
@override String get userRating => '사용자 평점';
|
||||
@override String get lastPlayed => '마지막 재생';
|
||||
@override String get datePlayed => '재생일';
|
||||
@override String get playCount => '재생 횟수';
|
||||
@@ -1753,6 +1759,7 @@ class _TranslationsLibrariesSortLabelsKo extends TranslationsLibrariesSortLabels
|
||||
@override String get random => '무작위';
|
||||
@override String get dateShared => '공유된 날짜';
|
||||
@override String get latestEpisodeAirDate => '최신 에피소드 방영일';
|
||||
@override String get lastEpisodeDateAdded => '최신 에피소드 추가일';
|
||||
}
|
||||
|
||||
// Path: companionRemote.session
|
||||
@@ -1931,7 +1938,6 @@ extension on TranslationsKo {
|
||||
'auth.or' => '또는',
|
||||
'auth.connectToJellyfin' => 'Jellyfin에 연결',
|
||||
'auth.useQuickConnect' => 'Quick Connect 사용',
|
||||
'auth.quickConnectCode' => 'Quick Connect 코드',
|
||||
'auth.quickConnectInstructions' => 'Jellyfin에서 Quick Connect를 열고 이 코드를 입력하세요.',
|
||||
'auth.quickConnectWaiting' => '승인 대기 중…',
|
||||
'auth.quickConnectCancel' => '취소',
|
||||
@@ -1969,6 +1975,7 @@ extension on TranslationsKo {
|
||||
'common.ok' => '확인',
|
||||
'common.off' => '끔',
|
||||
'common.seasonNumber' => ({required Object number}) => '시즌 ${number}',
|
||||
'common.episodeNumberTitle' => ({required Object number, required Object title}) => '${number}화 - ${title}',
|
||||
'common.chapterNumber' => ({required Object number}) => '챕터 ${number}',
|
||||
'common.reconnect' => '다시 연결',
|
||||
'common.exit' => '종료',
|
||||
@@ -2024,6 +2031,12 @@ extension on TranslationsKo {
|
||||
'settings.gridView' => '그리드 보기',
|
||||
'settings.listView' => '목록 보기',
|
||||
'settings.showHeroSection' => '주요 추천 영역 표시',
|
||||
'settings.continueWatchingAction' => '계속 보기 동작',
|
||||
'settings.continueWatchingPlay' => '재생',
|
||||
'settings.continueWatchingDetails' => '상세 정보 열기',
|
||||
'settings.episodeAction' => '에피소드 동작',
|
||||
'settings.episodePlay' => '재생',
|
||||
'settings.episodeDetails' => '상세 정보 열기',
|
||||
'settings.useGlobalHubs' => '홈 레이아웃 사용',
|
||||
'settings.useGlobalHubsDescription' => '통합 홈 허브를 표시합니다. 끄면 라이브러리 추천을 사용합니다.',
|
||||
'settings.showServerNameOnHubs' => '허브에 서버 이름 표시',
|
||||
@@ -2040,6 +2053,8 @@ extension on TranslationsKo {
|
||||
'settings.showSeasonPostersOnTabsDescription' => '각 시즌 포스터를 탭 위에 표시',
|
||||
'settings.tvFullCardLayout' => '전체 TV 카드',
|
||||
'settings.tvFullCardLayoutDescription' => 'TV 카드에 이미지만 표시하고 배우 이름을 오버레이로 표시',
|
||||
'settings.focusGlow' => '포커스 글로우',
|
||||
'settings.focusGlowDescription' => '포커스된 카드 주위에 은은한 빛 효과를 표시',
|
||||
'settings.hideSpoilers' => '미시청 에피소드 스포일러 숨기기',
|
||||
'settings.hideSpoilersDescription' => '시청하지 않은 에피소드의 썸네일과 설명을 흐리게 처리',
|
||||
'settings.playerBackend' => '플레이어 백엔드',
|
||||
@@ -2259,8 +2274,8 @@ extension on TranslationsKo {
|
||||
'mediaMenu.markAsWatched' => '시청 완료로 표시',
|
||||
'mediaMenu.markAsUnwatched' => '시청 안 함으로 표시',
|
||||
'mediaMenu.removeFromContinueWatching' => '계속 보기에서 제거',
|
||||
'mediaMenu.viewDetails' => '상세 정보 보기',
|
||||
'mediaMenu.goToSeries' => '시리즈로 이동',
|
||||
'mediaMenu.goToSeason' => '시즌으로 이동',
|
||||
'mediaMenu.shufflePlay' => '무작위 재생',
|
||||
'mediaMenu.shuffleNotAvailableOffline' => '오프라인에서는 셔플을 사용할 수 없습니다',
|
||||
'mediaMenu.fileInfo' => '파일 정보',
|
||||
@@ -2392,7 +2407,6 @@ extension on TranslationsKo {
|
||||
'messages.fileInfoNotAvailable' => '파일 정보가 없습니다',
|
||||
'messages.errorLoadingFileInfo' => ({required Object error}) => '파일 정보 로딩 중 오류: ${error}',
|
||||
'messages.errorLoadingSeries' => '시리즈 로딩 중 오류',
|
||||
'messages.errorLoadingSeason' => '시즌 로딩 중 오류',
|
||||
'messages.musicNotSupported' => '음악 재생 미지원',
|
||||
'messages.noDescriptionAvailable' => '설명이 없습니다',
|
||||
'messages.noProfilesAvailable' => '사용 가능한 프로필이 없습니다',
|
||||
@@ -2424,6 +2438,8 @@ extension on TranslationsKo {
|
||||
'messages.logsUploaded' => '로그 업로드 완료',
|
||||
'messages.logsUploadFailed' => '로그 업로드 실패',
|
||||
'messages.logId' => '로그 ID',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'subtitlingStyling.text' => '텍스트',
|
||||
'subtitlingStyling.border' => '테두리',
|
||||
'subtitlingStyling.background' => '배경',
|
||||
@@ -2431,14 +2447,15 @@ extension on TranslationsKo {
|
||||
'subtitlingStyling.textColor' => '텍스트 색상',
|
||||
'subtitlingStyling.borderSize' => '테두리 크기',
|
||||
'subtitlingStyling.borderColor' => '테두리 색상',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'subtitlingStyling.backgroundOpacity' => '배경 불투명도',
|
||||
'subtitlingStyling.backgroundColor' => '배경색',
|
||||
'subtitlingStyling.position' => '위치',
|
||||
'subtitlingStyling.assOverride' => 'ASS 오버라이드',
|
||||
'subtitlingStyling.bold' => '굵게',
|
||||
'subtitlingStyling.italic' => '기울임꼴',
|
||||
'subtitlingStyling.renderResolution' => '렌더링 해상도',
|
||||
'subtitlingStyling.renderResolutionScreen' => '화면 해상도',
|
||||
'subtitlingStyling.renderResolutionVideo' => '영상 해상도',
|
||||
'mpvConfig.title' => 'mpv 설정',
|
||||
'mpvConfig.description' => '고급 비디오 플레이어 설정',
|
||||
'mpvConfig.presets' => '사전 설정',
|
||||
@@ -2615,6 +2632,7 @@ extension on TranslationsKo {
|
||||
'libraries.sortLabels.rating' => '평점',
|
||||
'libraries.sortLabels.communityRating' => '커뮤니티 평점',
|
||||
'libraries.sortLabels.criticRating' => '평론가 평점',
|
||||
'libraries.sortLabels.userRating' => '사용자 평점',
|
||||
'libraries.sortLabels.lastPlayed' => '마지막 재생',
|
||||
'libraries.sortLabels.datePlayed' => '재생일',
|
||||
'libraries.sortLabels.playCount' => '재생 횟수',
|
||||
@@ -2628,6 +2646,7 @@ extension on TranslationsKo {
|
||||
'libraries.sortLabels.random' => '무작위',
|
||||
'libraries.sortLabels.dateShared' => '공유된 날짜',
|
||||
'libraries.sortLabels.latestEpisodeAirDate' => '최신 에피소드 방영일',
|
||||
'libraries.sortLabels.lastEpisodeDateAdded' => '최신 에피소드 추가일',
|
||||
'about.title' => '소개',
|
||||
'about.openSourceLicenses' => '오픈소스 라이선스',
|
||||
'about.versionLabel' => ({required Object version}) => '버전 ${version}',
|
||||
@@ -2860,6 +2879,7 @@ extension on TranslationsKo {
|
||||
'downloads.unwatchedOnly' => '시청하지 않은 것만',
|
||||
'downloads.nextNUnwatched' => ({required Object count}) => '다음 ${count}개 미시청',
|
||||
'downloads.customAmount' => '직접 입력...',
|
||||
'downloads.includeSpecials' => '스페셜 포함',
|
||||
'downloads.howManyEpisodes' => '몇 개의 에피소드?',
|
||||
'downloads.itemsQueued' => ({required Object count}) => '${count}개 항목이 다운로드 대기열에 추가됨',
|
||||
'downloads.keepSynced' => '동기화 유지',
|
||||
@@ -2932,6 +2952,8 @@ extension on TranslationsKo {
|
||||
'companionRemote.pairing.authFailed' => '인증에 실패했습니다. 두 기기 모두 같은 Plex 계정이 필요합니다.',
|
||||
'companionRemote.pairing.failedToConnect' => ({required Object error}) => '연결 실패: ${error}',
|
||||
'companionRemote.remote.disconnectConfirm' => '원격 세션 연결을 해제하시겠습니까?',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'companionRemote.remote.reconnecting' => '재연결 중...',
|
||||
'companionRemote.remote.attemptOf' => ({required Object current}) => '${current}/5 시도 중',
|
||||
'companionRemote.remote.retryNow' => '지금 재시도',
|
||||
@@ -2945,8 +2967,6 @@ extension on TranslationsKo {
|
||||
'companionRemote.remote.tabSearch' => '검색',
|
||||
'companionRemote.remote.tabDownloads' => '다운로드',
|
||||
'companionRemote.remote.tabSettings' => '설정',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'companionRemote.remote.previous' => '이전',
|
||||
'companionRemote.remote.playPause' => '재생/일시정지',
|
||||
'companionRemote.remote.next' => '다음',
|
||||
@@ -3006,6 +3026,7 @@ extension on TranslationsKo {
|
||||
'performanceOverlay.maxCll' => 'MaxCLL',
|
||||
'performanceOverlay.maxFall' => 'MaxFALL',
|
||||
'performanceOverlay.cacheUsed' => '사용 캐시',
|
||||
'performanceOverlay.cacheLimit' => '캐시 제한',
|
||||
'performanceOverlay.speed' => '속도',
|
||||
'performanceOverlay.player' => '플레이어',
|
||||
'performanceOverlay.memory' => '메모리',
|
||||
@@ -3158,10 +3179,8 @@ extension on TranslationsKo {
|
||||
'trackers.libraryFilter.libraries' => '라이브러리',
|
||||
'trackers.libraryFilter.noLibraries' => '사용 가능한 라이브러리가 없습니다',
|
||||
'addServer.addJellyfinTitle' => 'Jellyfin 서버 추가',
|
||||
'addServer.jellyfinUrlIntro' => '서버 URL을 입력하세요. 예: `https://jellyfin.example.com`.',
|
||||
'addServer.jellyfinUrlsIntro' => '서버 URL을 하나 이상 쉼표로 구분해 입력하세요. Plezy는 연결 가능한 URL 중 지연 시간이 가장 낮은 URL을 사용합니다.',
|
||||
'addServer.serverUrl' => '서버 URL',
|
||||
'addServer.serverUrls' => '서버 URL',
|
||||
'addServer.serverUrlsHelper' => '쉼표로 구분하여 여러 URL을 입력할 수 있습니다.',
|
||||
'addServer.findServer' => '서버 찾기',
|
||||
'addServer.searchingLocalServers' => '로컬 Jellyfin 서버 검색 중...',
|
||||
'addServer.localServers' => '로컬 Jellyfin 서버',
|
||||
@@ -3174,17 +3193,12 @@ extension on TranslationsKo {
|
||||
'addServer.signInFailed' => ({required Object error}) => '로그인 실패: ${error}',
|
||||
'addServer.quickConnectFailed' => ({required Object error}) => 'Quick Connect 실패: ${error}',
|
||||
'addServer.addPlexTitle' => 'Plex로 로그인',
|
||||
'addServer.plexAuthIntro' => '브라우저 또는 QR 코드로 로그인하세요.',
|
||||
'addServer.plexQRPrompt' => '이 QR 코드를 스캔하여 로그인하세요.',
|
||||
'addServer.waitingForPlexConfirmation' => 'plex.tv에서 로그인을 확인하는 중…',
|
||||
'addServer.pinExpired' => '로그인 전에 PIN이 만료되었습니다. 다시 시도하세요.',
|
||||
'addServer.duplicatePlexAccount' => '이미 Plex에 로그인되어 있습니다. 계정을 전환하려면 로그아웃하세요.',
|
||||
'addServer.failedToRegisterAccount' => ({required Object error}) => '계정 등록 실패: ${error}',
|
||||
'addServer.enterJellyfinUrlError' => 'Jellyfin 서버 URL을 입력하세요',
|
||||
'addServer.addConnectionTitle' => '연결 추가',
|
||||
'addServer.addConnectionTitleScoped' => ({required Object name}) => '${name}에 추가',
|
||||
'addServer.addConnectionIntroGlobal' => '다른 미디어 서버를 추가합니다. Plex와 Jellyfin이 홈에 함께 표시됩니다.',
|
||||
'addServer.addConnectionIntroScoped' => '새 서버를 추가하거나 다른 프로필에서 빌리세요.',
|
||||
'addServer.signInWithPlexCard' => 'Plex로 로그인',
|
||||
'addServer.signInWithPlexCardSubtitle' => '이 기기를 승인합니다. 공유 서버가 추가됩니다.',
|
||||
'addServer.signInWithPlexCardSubtitleScoped' => 'Plex 계정을 승인합니다. Home 사용자는 프로필이 됩니다.',
|
||||
|
||||
+40
-26
@@ -115,7 +115,6 @@ class _TranslationsAuthNb extends TranslationsAuthEn {
|
||||
@override String get or => 'eller';
|
||||
@override String get connectToJellyfin => 'Koble til Jellyfin';
|
||||
@override String get useQuickConnect => 'Bruk Quick Connect';
|
||||
@override String get quickConnectCode => 'Quick Connect-kode';
|
||||
@override String get quickConnectInstructions => 'Åpne Quick Connect i Jellyfin og skriv inn denne koden.';
|
||||
@override String get quickConnectWaiting => 'Venter på godkjenning…';
|
||||
@override String get quickConnectCancel => 'Avbryt';
|
||||
@@ -162,6 +161,7 @@ class _TranslationsCommonNb extends TranslationsCommonEn {
|
||||
@override String get ok => 'OK';
|
||||
@override String get off => 'Av';
|
||||
@override String seasonNumber({required Object number}) => 'Sesong ${number}';
|
||||
@override String episodeNumberTitle({required Object number, required Object title}) => 'Episode ${number} - ${title}';
|
||||
@override String chapterNumber({required Object number}) => 'Kapittel ${number}';
|
||||
@override String get reconnect => 'Koble til på nytt';
|
||||
@override String get exit => 'Avslutt';
|
||||
@@ -244,6 +244,12 @@ class _TranslationsSettingsNb extends TranslationsSettingsEn {
|
||||
@override String get gridView => 'Rutenett';
|
||||
@override String get listView => 'Liste';
|
||||
@override String get showHeroSection => 'Vis fremhevet seksjon';
|
||||
@override String get continueWatchingAction => 'Handling for Fortsett å se';
|
||||
@override String get continueWatchingPlay => 'Spill av';
|
||||
@override String get continueWatchingDetails => 'Åpne detaljer';
|
||||
@override String get episodeAction => 'Handling for episoder';
|
||||
@override String get episodePlay => 'Spill av';
|
||||
@override String get episodeDetails => 'Åpne detaljer';
|
||||
@override String get useGlobalHubs => 'Bruk startoppsett';
|
||||
@override String get useGlobalHubsDescription => 'Vis samlet startinnhold. Ellers brukes bibliotekanbefalinger.';
|
||||
@override String get showServerNameOnHubs => 'Vis servernavn på huber';
|
||||
@@ -260,6 +266,8 @@ class _TranslationsSettingsNb extends TranslationsSettingsEn {
|
||||
@override String get showSeasonPostersOnTabsDescription => 'Vis hver sesongs plakat over fanen';
|
||||
@override String get tvFullCardLayout => 'Fulle TV-kort';
|
||||
@override String get tvFullCardLayoutDescription => 'Bruk bildebaserte TV-kort med skuespillernavn lagt over';
|
||||
@override String get focusGlow => 'Fokusglød';
|
||||
@override String get focusGlowDescription => 'Vis en myk glød rundt kortet i fokus';
|
||||
@override String get hideSpoilers => 'Skjul spoilere for usette episoder';
|
||||
@override String get hideSpoilersDescription => 'Slør miniatyrbilder og beskrivelser for usette episoder';
|
||||
@override String get playerBackend => 'Spillermotor';
|
||||
@@ -491,8 +499,8 @@ class _TranslationsMediaMenuNb extends TranslationsMediaMenuEn {
|
||||
@override String get markAsWatched => 'Merk som sett';
|
||||
@override String get markAsUnwatched => 'Merk som usett';
|
||||
@override String get removeFromContinueWatching => 'Fjern fra Fortsett å se';
|
||||
@override String get viewDetails => 'Vis detaljer';
|
||||
@override String get goToSeries => 'Gå til serie';
|
||||
@override String get goToSeason => 'Gå til sesong';
|
||||
@override String get shufflePlay => 'Tilfeldig avspilling';
|
||||
@override String get shuffleNotAvailableOffline => 'Tilfeldig avspilling er ikke tilgjengelig offline';
|
||||
@override String get fileInfo => 'Filinformasjon';
|
||||
@@ -672,7 +680,6 @@ class _TranslationsMessagesNb extends TranslationsMessagesEn {
|
||||
@override String get fileInfoNotAvailable => 'Filinformasjon ikke tilgjengelig';
|
||||
@override String errorLoadingFileInfo({required Object error}) => 'Feil ved lasting av filinformasjon: ${error}';
|
||||
@override String get errorLoadingSeries => 'Feil ved lasting av serie';
|
||||
@override String get errorLoadingSeason => 'Feil ved lasting av sesong';
|
||||
@override String get musicNotSupported => 'Musikkavspilling støttes ikke ennå';
|
||||
@override String get noDescriptionAvailable => 'Ingen beskrivelse tilgjengelig';
|
||||
@override String get noProfilesAvailable => 'Ingen profiler tilgjengelige';
|
||||
@@ -726,6 +733,9 @@ class _TranslationsSubtitlingStylingNb extends TranslationsSubtitlingStylingEn {
|
||||
@override String get assOverride => 'ASS-overstyring';
|
||||
@override String get bold => 'Fet';
|
||||
@override String get italic => 'Kursiv';
|
||||
@override String get renderResolution => 'Gjengivelsesoppløsning';
|
||||
@override String get renderResolutionScreen => 'Skjermoppløsning';
|
||||
@override String get renderResolutionVideo => 'Videooppløsning';
|
||||
}
|
||||
|
||||
// Path: mpvConfig
|
||||
@@ -1278,6 +1288,7 @@ class _TranslationsDownloadsNb extends TranslationsDownloadsEn {
|
||||
@override String get unwatchedOnly => 'Kun usette';
|
||||
@override String nextNUnwatched({required Object count}) => 'Neste ${count} usette';
|
||||
@override String get customAmount => 'Egendefinert antall...';
|
||||
@override String get includeSpecials => 'Inkluder spesialepisoder';
|
||||
@override String get howManyEpisodes => 'Hvor mange episoder?';
|
||||
@override String itemsQueued({required Object count}) => '${count} elementer i nedlastingskø';
|
||||
@override String get keepSynced => 'Hold synkronisert';
|
||||
@@ -1402,6 +1413,7 @@ class _TranslationsPerformanceOverlayNb extends TranslationsPerformanceOverlayEn
|
||||
@override String get maxCll => 'MaxCLL';
|
||||
@override String get maxFall => 'MaxFALL';
|
||||
@override String get cacheUsed => 'Cache brukt';
|
||||
@override String get cacheLimit => 'Cachegrense';
|
||||
@override String get speed => 'Hastighet';
|
||||
@override String get player => 'Spiller';
|
||||
@override String get memory => 'Minne';
|
||||
@@ -1597,10 +1609,8 @@ class _TranslationsAddServerNb extends TranslationsAddServerEn {
|
||||
|
||||
// Translations
|
||||
@override String get addJellyfinTitle => 'Legg til Jellyfin-server';
|
||||
@override String get jellyfinUrlIntro => 'Skriv inn server-URL-en, f.eks. `https://jellyfin.example.com`.';
|
||||
@override String get jellyfinUrlsIntro => 'Skriv inn én eller flere server-URL-er, adskilt med kommaer. Plezy bruker den tilgjengelige URL-en med lavest forsinkelse.';
|
||||
@override String get serverUrl => 'Server-URL';
|
||||
@override String get serverUrls => 'Server-URL-er';
|
||||
@override String get serverUrlsHelper => 'Flere URL-er er tillatt, atskilt med komma.';
|
||||
@override String get findServer => 'Finn server';
|
||||
@override String get searchingLocalServers => 'Søker etter lokale Jellyfin-servere...';
|
||||
@override String get localServers => 'Lokale Jellyfin-servere';
|
||||
@@ -1613,17 +1623,12 @@ class _TranslationsAddServerNb extends TranslationsAddServerEn {
|
||||
@override String signInFailed({required Object error}) => 'Pålogging mislyktes: ${error}';
|
||||
@override String quickConnectFailed({required Object error}) => 'Quick Connect mislyktes: ${error}';
|
||||
@override String get addPlexTitle => 'Logg på med Plex';
|
||||
@override String get plexAuthIntro => 'Logg inn med en nettleser eller QR-kode.';
|
||||
@override String get plexQRPrompt => 'Skann denne QR-koden for å logge på.';
|
||||
@override String get waitingForPlexConfirmation => 'Venter på at plex.tv bekrefter påloggingen…';
|
||||
@override String get pinExpired => 'PIN-koden gikk ut før pålogging. Prøv igjen.';
|
||||
@override String get duplicatePlexAccount => 'Allerede logget inn på Plex. Logg ut for å bytte konto.';
|
||||
@override String failedToRegisterAccount({required Object error}) => 'Kunne ikke registrere kontoen: ${error}';
|
||||
@override String get enterJellyfinUrlError => 'Oppgi URL-en til Jellyfin-serveren din';
|
||||
@override String get addConnectionTitle => 'Legg til tilkobling';
|
||||
@override String addConnectionTitleScoped({required Object name}) => 'Legg til i ${name}';
|
||||
@override String get addConnectionIntroGlobal => 'Legg til en annen medieserver. Plex og Jellyfin vises sammen på Hjem.';
|
||||
@override String get addConnectionIntroScoped => 'Legg til en ny server, eller lån en fra en annen profil.';
|
||||
@override String get signInWithPlexCard => 'Logg på med Plex';
|
||||
@override String get signInWithPlexCardSubtitle => 'Autoriser denne enheten. Delte servere legges til.';
|
||||
@override String get signInWithPlexCardSubtitleScoped => 'Autoriser en Plex-konto. Home-brukere blir profiler.';
|
||||
@@ -1740,6 +1745,7 @@ class _TranslationsLibrariesSortLabelsNb extends TranslationsLibrariesSortLabels
|
||||
@override String get rating => 'Vurdering';
|
||||
@override String get communityRating => 'Fellesskapsvurdering';
|
||||
@override String get criticRating => 'Kritikervurdering';
|
||||
@override String get userRating => 'Brukervurdering';
|
||||
@override String get lastPlayed => 'Sist spilt';
|
||||
@override String get datePlayed => 'Avspillingsdato';
|
||||
@override String get playCount => 'Avspillinger';
|
||||
@@ -1753,6 +1759,7 @@ class _TranslationsLibrariesSortLabelsNb extends TranslationsLibrariesSortLabels
|
||||
@override String get random => 'Tilfeldig';
|
||||
@override String get dateShared => 'Delingsdato';
|
||||
@override String get latestEpisodeAirDate => 'Siste episodes sendedato';
|
||||
@override String get lastEpisodeDateAdded => 'Dato for sist lagt til episode';
|
||||
}
|
||||
|
||||
// Path: companionRemote.session
|
||||
@@ -1931,7 +1938,6 @@ extension on TranslationsNb {
|
||||
'auth.or' => 'eller',
|
||||
'auth.connectToJellyfin' => 'Koble til Jellyfin',
|
||||
'auth.useQuickConnect' => 'Bruk Quick Connect',
|
||||
'auth.quickConnectCode' => 'Quick Connect-kode',
|
||||
'auth.quickConnectInstructions' => 'Åpne Quick Connect i Jellyfin og skriv inn denne koden.',
|
||||
'auth.quickConnectWaiting' => 'Venter på godkjenning…',
|
||||
'auth.quickConnectCancel' => 'Avbryt',
|
||||
@@ -1969,6 +1975,7 @@ extension on TranslationsNb {
|
||||
'common.ok' => 'OK',
|
||||
'common.off' => 'Av',
|
||||
'common.seasonNumber' => ({required Object number}) => 'Sesong ${number}',
|
||||
'common.episodeNumberTitle' => ({required Object number, required Object title}) => 'Episode ${number} - ${title}',
|
||||
'common.chapterNumber' => ({required Object number}) => 'Kapittel ${number}',
|
||||
'common.reconnect' => 'Koble til på nytt',
|
||||
'common.exit' => 'Avslutt',
|
||||
@@ -2024,6 +2031,12 @@ extension on TranslationsNb {
|
||||
'settings.gridView' => 'Rutenett',
|
||||
'settings.listView' => 'Liste',
|
||||
'settings.showHeroSection' => 'Vis fremhevet seksjon',
|
||||
'settings.continueWatchingAction' => 'Handling for Fortsett å se',
|
||||
'settings.continueWatchingPlay' => 'Spill av',
|
||||
'settings.continueWatchingDetails' => 'Åpne detaljer',
|
||||
'settings.episodeAction' => 'Handling for episoder',
|
||||
'settings.episodePlay' => 'Spill av',
|
||||
'settings.episodeDetails' => 'Åpne detaljer',
|
||||
'settings.useGlobalHubs' => 'Bruk startoppsett',
|
||||
'settings.useGlobalHubsDescription' => 'Vis samlet startinnhold. Ellers brukes bibliotekanbefalinger.',
|
||||
'settings.showServerNameOnHubs' => 'Vis servernavn på huber',
|
||||
@@ -2040,6 +2053,8 @@ extension on TranslationsNb {
|
||||
'settings.showSeasonPostersOnTabsDescription' => 'Vis hver sesongs plakat over fanen',
|
||||
'settings.tvFullCardLayout' => 'Fulle TV-kort',
|
||||
'settings.tvFullCardLayoutDescription' => 'Bruk bildebaserte TV-kort med skuespillernavn lagt over',
|
||||
'settings.focusGlow' => 'Fokusglød',
|
||||
'settings.focusGlowDescription' => 'Vis en myk glød rundt kortet i fokus',
|
||||
'settings.hideSpoilers' => 'Skjul spoilere for usette episoder',
|
||||
'settings.hideSpoilersDescription' => 'Slør miniatyrbilder og beskrivelser for usette episoder',
|
||||
'settings.playerBackend' => 'Spillermotor',
|
||||
@@ -2259,8 +2274,8 @@ extension on TranslationsNb {
|
||||
'mediaMenu.markAsWatched' => 'Merk som sett',
|
||||
'mediaMenu.markAsUnwatched' => 'Merk som usett',
|
||||
'mediaMenu.removeFromContinueWatching' => 'Fjern fra Fortsett å se',
|
||||
'mediaMenu.viewDetails' => 'Vis detaljer',
|
||||
'mediaMenu.goToSeries' => 'Gå til serie',
|
||||
'mediaMenu.goToSeason' => 'Gå til sesong',
|
||||
'mediaMenu.shufflePlay' => 'Tilfeldig avspilling',
|
||||
'mediaMenu.shuffleNotAvailableOffline' => 'Tilfeldig avspilling er ikke tilgjengelig offline',
|
||||
'mediaMenu.fileInfo' => 'Filinformasjon',
|
||||
@@ -2392,7 +2407,6 @@ extension on TranslationsNb {
|
||||
'messages.fileInfoNotAvailable' => 'Filinformasjon ikke tilgjengelig',
|
||||
'messages.errorLoadingFileInfo' => ({required Object error}) => 'Feil ved lasting av filinformasjon: ${error}',
|
||||
'messages.errorLoadingSeries' => 'Feil ved lasting av serie',
|
||||
'messages.errorLoadingSeason' => 'Feil ved lasting av sesong',
|
||||
'messages.musicNotSupported' => 'Musikkavspilling støttes ikke ennå',
|
||||
'messages.noDescriptionAvailable' => 'Ingen beskrivelse tilgjengelig',
|
||||
'messages.noProfilesAvailable' => 'Ingen profiler tilgjengelige',
|
||||
@@ -2424,6 +2438,8 @@ extension on TranslationsNb {
|
||||
'messages.logsUploaded' => 'Logger lastet opp',
|
||||
'messages.logsUploadFailed' => 'Kunne ikke laste opp logger',
|
||||
'messages.logId' => 'Logg-ID',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'subtitlingStyling.text' => 'Tekst',
|
||||
'subtitlingStyling.border' => 'Kantlinje',
|
||||
'subtitlingStyling.background' => 'Bakgrunn',
|
||||
@@ -2431,14 +2447,15 @@ extension on TranslationsNb {
|
||||
'subtitlingStyling.textColor' => 'Tekstfarge',
|
||||
'subtitlingStyling.borderSize' => 'Kantstørrelse',
|
||||
'subtitlingStyling.borderColor' => 'Kantfarge',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'subtitlingStyling.backgroundOpacity' => 'Bakgrunnsopasitet',
|
||||
'subtitlingStyling.backgroundColor' => 'Bakgrunnsfarge',
|
||||
'subtitlingStyling.position' => 'Posisjon',
|
||||
'subtitlingStyling.assOverride' => 'ASS-overstyring',
|
||||
'subtitlingStyling.bold' => 'Fet',
|
||||
'subtitlingStyling.italic' => 'Kursiv',
|
||||
'subtitlingStyling.renderResolution' => 'Gjengivelsesoppløsning',
|
||||
'subtitlingStyling.renderResolutionScreen' => 'Skjermoppløsning',
|
||||
'subtitlingStyling.renderResolutionVideo' => 'Videooppløsning',
|
||||
'mpvConfig.title' => 'mpv.conf',
|
||||
'mpvConfig.description' => 'Avanserte videospillerinnstillinger',
|
||||
'mpvConfig.presets' => 'Forhåndsinnstillinger',
|
||||
@@ -2615,6 +2632,7 @@ extension on TranslationsNb {
|
||||
'libraries.sortLabels.rating' => 'Vurdering',
|
||||
'libraries.sortLabels.communityRating' => 'Fellesskapsvurdering',
|
||||
'libraries.sortLabels.criticRating' => 'Kritikervurdering',
|
||||
'libraries.sortLabels.userRating' => 'Brukervurdering',
|
||||
'libraries.sortLabels.lastPlayed' => 'Sist spilt',
|
||||
'libraries.sortLabels.datePlayed' => 'Avspillingsdato',
|
||||
'libraries.sortLabels.playCount' => 'Avspillinger',
|
||||
@@ -2628,6 +2646,7 @@ extension on TranslationsNb {
|
||||
'libraries.sortLabels.random' => 'Tilfeldig',
|
||||
'libraries.sortLabels.dateShared' => 'Delingsdato',
|
||||
'libraries.sortLabels.latestEpisodeAirDate' => 'Siste episodes sendedato',
|
||||
'libraries.sortLabels.lastEpisodeDateAdded' => 'Dato for sist lagt til episode',
|
||||
'about.title' => 'Om',
|
||||
'about.openSourceLicenses' => 'Åpen kildekode-lisenser',
|
||||
'about.versionLabel' => ({required Object version}) => 'Versjon ${version}',
|
||||
@@ -2860,6 +2879,7 @@ extension on TranslationsNb {
|
||||
'downloads.unwatchedOnly' => 'Kun usette',
|
||||
'downloads.nextNUnwatched' => ({required Object count}) => 'Neste ${count} usette',
|
||||
'downloads.customAmount' => 'Egendefinert antall...',
|
||||
'downloads.includeSpecials' => 'Inkluder spesialepisoder',
|
||||
'downloads.howManyEpisodes' => 'Hvor mange episoder?',
|
||||
'downloads.itemsQueued' => ({required Object count}) => '${count} elementer i nedlastingskø',
|
||||
'downloads.keepSynced' => 'Hold synkronisert',
|
||||
@@ -2932,6 +2952,8 @@ extension on TranslationsNb {
|
||||
'companionRemote.pairing.authFailed' => 'Autentisering mislyktes. Begge enheter må bruke samme Plex-konto.',
|
||||
'companionRemote.pairing.failedToConnect' => ({required Object error}) => 'Kunne ikke koble til: ${error}',
|
||||
'companionRemote.remote.disconnectConfirm' => 'Vil du koble fra fjernøkten?',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'companionRemote.remote.reconnecting' => 'Kobler til på nytt...',
|
||||
'companionRemote.remote.attemptOf' => ({required Object current}) => 'Forsøk ${current} av 5',
|
||||
'companionRemote.remote.retryNow' => 'Prøv nå',
|
||||
@@ -2945,8 +2967,6 @@ extension on TranslationsNb {
|
||||
'companionRemote.remote.tabSearch' => 'Søk',
|
||||
'companionRemote.remote.tabDownloads' => 'Nedlastinger',
|
||||
'companionRemote.remote.tabSettings' => 'Innstillinger',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'companionRemote.remote.previous' => 'Forrige',
|
||||
'companionRemote.remote.playPause' => 'Spill av/Pause',
|
||||
'companionRemote.remote.next' => 'Neste',
|
||||
@@ -3006,6 +3026,7 @@ extension on TranslationsNb {
|
||||
'performanceOverlay.maxCll' => 'MaxCLL',
|
||||
'performanceOverlay.maxFall' => 'MaxFALL',
|
||||
'performanceOverlay.cacheUsed' => 'Cache brukt',
|
||||
'performanceOverlay.cacheLimit' => 'Cachegrense',
|
||||
'performanceOverlay.speed' => 'Hastighet',
|
||||
'performanceOverlay.player' => 'Spiller',
|
||||
'performanceOverlay.memory' => 'Minne',
|
||||
@@ -3158,10 +3179,8 @@ extension on TranslationsNb {
|
||||
'trackers.libraryFilter.libraries' => 'Biblioteker',
|
||||
'trackers.libraryFilter.noLibraries' => 'Ingen biblioteker tilgjengelige',
|
||||
'addServer.addJellyfinTitle' => 'Legg til Jellyfin-server',
|
||||
'addServer.jellyfinUrlIntro' => 'Skriv inn server-URL-en, f.eks. `https://jellyfin.example.com`.',
|
||||
'addServer.jellyfinUrlsIntro' => 'Skriv inn én eller flere server-URL-er, adskilt med kommaer. Plezy bruker den tilgjengelige URL-en med lavest forsinkelse.',
|
||||
'addServer.serverUrl' => 'Server-URL',
|
||||
'addServer.serverUrls' => 'Server-URL-er',
|
||||
'addServer.serverUrlsHelper' => 'Flere URL-er er tillatt, atskilt med komma.',
|
||||
'addServer.findServer' => 'Finn server',
|
||||
'addServer.searchingLocalServers' => 'Søker etter lokale Jellyfin-servere...',
|
||||
'addServer.localServers' => 'Lokale Jellyfin-servere',
|
||||
@@ -3174,17 +3193,12 @@ extension on TranslationsNb {
|
||||
'addServer.signInFailed' => ({required Object error}) => 'Pålogging mislyktes: ${error}',
|
||||
'addServer.quickConnectFailed' => ({required Object error}) => 'Quick Connect mislyktes: ${error}',
|
||||
'addServer.addPlexTitle' => 'Logg på med Plex',
|
||||
'addServer.plexAuthIntro' => 'Logg inn med en nettleser eller QR-kode.',
|
||||
'addServer.plexQRPrompt' => 'Skann denne QR-koden for å logge på.',
|
||||
'addServer.waitingForPlexConfirmation' => 'Venter på at plex.tv bekrefter påloggingen…',
|
||||
'addServer.pinExpired' => 'PIN-koden gikk ut før pålogging. Prøv igjen.',
|
||||
'addServer.duplicatePlexAccount' => 'Allerede logget inn på Plex. Logg ut for å bytte konto.',
|
||||
'addServer.failedToRegisterAccount' => ({required Object error}) => 'Kunne ikke registrere kontoen: ${error}',
|
||||
'addServer.enterJellyfinUrlError' => 'Oppgi URL-en til Jellyfin-serveren din',
|
||||
'addServer.addConnectionTitle' => 'Legg til tilkobling',
|
||||
'addServer.addConnectionTitleScoped' => ({required Object name}) => 'Legg til i ${name}',
|
||||
'addServer.addConnectionIntroGlobal' => 'Legg til en annen medieserver. Plex og Jellyfin vises sammen på Hjem.',
|
||||
'addServer.addConnectionIntroScoped' => 'Legg til en ny server, eller lån en fra en annen profil.',
|
||||
'addServer.signInWithPlexCard' => 'Logg på med Plex',
|
||||
'addServer.signInWithPlexCardSubtitle' => 'Autoriser denne enheten. Delte servere legges til.',
|
||||
'addServer.signInWithPlexCardSubtitleScoped' => 'Autoriser en Plex-konto. Home-brukere blir profiler.',
|
||||
|
||||
+40
-26
@@ -115,7 +115,6 @@ class _TranslationsAuthNl extends TranslationsAuthEn {
|
||||
@override String get or => 'of';
|
||||
@override String get connectToJellyfin => 'Verbinden met Jellyfin';
|
||||
@override String get useQuickConnect => 'Quick Connect gebruiken';
|
||||
@override String get quickConnectCode => 'Quick Connect-code';
|
||||
@override String get quickConnectInstructions => 'Open Quick Connect in Jellyfin en voer deze code in.';
|
||||
@override String get quickConnectWaiting => 'Wachten op goedkeuring…';
|
||||
@override String get quickConnectCancel => 'Annuleren';
|
||||
@@ -162,6 +161,7 @@ class _TranslationsCommonNl extends TranslationsCommonEn {
|
||||
@override String get ok => 'OK';
|
||||
@override String get off => 'Uit';
|
||||
@override String seasonNumber({required Object number}) => 'Seizoen ${number}';
|
||||
@override String episodeNumberTitle({required Object number, required Object title}) => 'Aflevering ${number} - ${title}';
|
||||
@override String chapterNumber({required Object number}) => 'Hoofdstuk ${number}';
|
||||
@override String get reconnect => 'Opnieuw verbinden';
|
||||
@override String get exit => 'Afsluiten';
|
||||
@@ -244,6 +244,12 @@ class _TranslationsSettingsNl extends TranslationsSettingsEn {
|
||||
@override String get gridView => 'Raster';
|
||||
@override String get listView => 'Lijst';
|
||||
@override String get showHeroSection => 'Toon hoofdsectie';
|
||||
@override String get continueWatchingAction => 'Actie voor Doorgaan met kijken';
|
||||
@override String get continueWatchingPlay => 'Afspelen';
|
||||
@override String get continueWatchingDetails => 'Details openen';
|
||||
@override String get episodeAction => 'Afleveringsactie';
|
||||
@override String get episodePlay => 'Afspelen';
|
||||
@override String get episodeDetails => 'Details openen';
|
||||
@override String get useGlobalHubs => 'Startlayout gebruiken';
|
||||
@override String get useGlobalHubsDescription => 'Toon gecombineerde home-hubs. Anders bibliotheekaanbevelingen gebruiken.';
|
||||
@override String get showServerNameOnHubs => 'Servernaam tonen bij hubs';
|
||||
@@ -260,6 +266,8 @@ class _TranslationsSettingsNl extends TranslationsSettingsEn {
|
||||
@override String get showSeasonPostersOnTabsDescription => 'Toon de poster van elk seizoen boven het tabblad';
|
||||
@override String get tvFullCardLayout => 'Volledige tv-kaarten';
|
||||
@override String get tvFullCardLayoutDescription => 'Gebruik tv-kaarten met alleen afbeeldingen en namen van acteurs als overlay';
|
||||
@override String get focusGlow => 'Focusgloed';
|
||||
@override String get focusGlowDescription => 'Toon een zachte gloed rond de kaart met focus';
|
||||
@override String get hideSpoilers => 'Spoilers voor ongekeken afleveringen verbergen';
|
||||
@override String get hideSpoilersDescription => 'Vervaag miniaturen en beschrijvingen voor niet-bekeken afleveringen';
|
||||
@override String get playerBackend => 'Speler backend';
|
||||
@@ -491,8 +499,8 @@ class _TranslationsMediaMenuNl extends TranslationsMediaMenuEn {
|
||||
@override String get markAsWatched => 'Markeer als gekeken';
|
||||
@override String get markAsUnwatched => 'Markeer als ongekeken';
|
||||
@override String get removeFromContinueWatching => 'Verwijder uit Doorgaan met kijken';
|
||||
@override String get viewDetails => 'Details bekijken';
|
||||
@override String get goToSeries => 'Ga naar serie';
|
||||
@override String get goToSeason => 'Ga naar seizoen';
|
||||
@override String get shufflePlay => 'Willekeurig afspelen';
|
||||
@override String get shuffleNotAvailableOffline => 'Shuffle is offline niet beschikbaar';
|
||||
@override String get fileInfo => 'Bestand info';
|
||||
@@ -672,7 +680,6 @@ class _TranslationsMessagesNl extends TranslationsMessagesEn {
|
||||
@override String get fileInfoNotAvailable => 'Bestand informatie niet beschikbaar';
|
||||
@override String errorLoadingFileInfo({required Object error}) => 'Fout bij laden bestand info: ${error}';
|
||||
@override String get errorLoadingSeries => 'Fout bij laden serie';
|
||||
@override String get errorLoadingSeason => 'Fout bij laden seizoen';
|
||||
@override String get musicNotSupported => 'Muziek afspelen wordt nog niet ondersteund';
|
||||
@override String get noDescriptionAvailable => 'Geen beschrijving beschikbaar';
|
||||
@override String get noProfilesAvailable => 'Geen profielen beschikbaar';
|
||||
@@ -726,6 +733,9 @@ class _TranslationsSubtitlingStylingNl extends TranslationsSubtitlingStylingEn {
|
||||
@override String get assOverride => 'ASS-overschrijving';
|
||||
@override String get bold => 'Vet';
|
||||
@override String get italic => 'Cursief';
|
||||
@override String get renderResolution => 'Renderresolutie';
|
||||
@override String get renderResolutionScreen => 'Schermresolutie';
|
||||
@override String get renderResolutionVideo => 'Videoresolutie';
|
||||
}
|
||||
|
||||
// Path: mpvConfig
|
||||
@@ -1278,6 +1288,7 @@ class _TranslationsDownloadsNl extends TranslationsDownloadsEn {
|
||||
@override String get unwatchedOnly => 'Alleen onbekeken';
|
||||
@override String nextNUnwatched({required Object count}) => 'Volgende ${count} onbekeken';
|
||||
@override String get customAmount => 'Aangepast aantal...';
|
||||
@override String get includeSpecials => 'Specials opnemen';
|
||||
@override String get howManyEpisodes => 'Hoeveel afleveringen?';
|
||||
@override String itemsQueued({required Object count}) => '${count} items in downloadwachtrij';
|
||||
@override String get keepSynced => 'Gesynchroniseerd houden';
|
||||
@@ -1402,6 +1413,7 @@ class _TranslationsPerformanceOverlayNl extends TranslationsPerformanceOverlayEn
|
||||
@override String get maxCll => 'MaxCLL';
|
||||
@override String get maxFall => 'MaxFALL';
|
||||
@override String get cacheUsed => 'Cache gebruikt';
|
||||
@override String get cacheLimit => 'Cachelimiet';
|
||||
@override String get speed => 'Snelheid';
|
||||
@override String get player => 'Speler';
|
||||
@override String get memory => 'Geheugen';
|
||||
@@ -1597,10 +1609,8 @@ class _TranslationsAddServerNl extends TranslationsAddServerEn {
|
||||
|
||||
// Translations
|
||||
@override String get addJellyfinTitle => 'Jellyfin-server toevoegen';
|
||||
@override String get jellyfinUrlIntro => 'Voer de server-URL in, bijv. `https://jellyfin.example.com`.';
|
||||
@override String get jellyfinUrlsIntro => 'Voer een of meer server-URL\'s in, gescheiden door komma\'s. Plezy gebruikt de bereikbare URL met de laagste latentie.';
|
||||
@override String get serverUrl => 'Server-URL';
|
||||
@override String get serverUrls => 'Server-URL\'s';
|
||||
@override String get serverUrlsHelper => 'Meerdere URL\'s toegestaan, gescheiden door komma\'s.';
|
||||
@override String get findServer => 'Server zoeken';
|
||||
@override String get searchingLocalServers => 'Lokale Jellyfin-servers zoeken...';
|
||||
@override String get localServers => 'Lokale Jellyfin-servers';
|
||||
@@ -1613,17 +1623,12 @@ class _TranslationsAddServerNl extends TranslationsAddServerEn {
|
||||
@override String signInFailed({required Object error}) => 'Inloggen mislukt: ${error}';
|
||||
@override String quickConnectFailed({required Object error}) => 'Quick Connect mislukt: ${error}';
|
||||
@override String get addPlexTitle => 'Inloggen met Plex';
|
||||
@override String get plexAuthIntro => 'Meld je aan met een browser of QR-code.';
|
||||
@override String get plexQRPrompt => 'Scan deze QR-code om in te loggen.';
|
||||
@override String get waitingForPlexConfirmation => 'Wachten tot plex.tv je inloggen bevestigt…';
|
||||
@override String get pinExpired => 'PIN verlopen vóór inloggen. Probeer opnieuw.';
|
||||
@override String get duplicatePlexAccount => 'Al aangemeld bij Plex. Meld je af om van account te wisselen.';
|
||||
@override String failedToRegisterAccount({required Object error}) => 'Account registreren mislukt: ${error}';
|
||||
@override String get enterJellyfinUrlError => 'Voer de URL van je Jellyfin-server in';
|
||||
@override String get addConnectionTitle => 'Verbinding toevoegen';
|
||||
@override String addConnectionTitleScoped({required Object name}) => 'Toevoegen aan ${name}';
|
||||
@override String get addConnectionIntroGlobal => 'Voeg een andere mediaserver toe. Plex en Jellyfin verschijnen samen op Home.';
|
||||
@override String get addConnectionIntroScoped => 'Voeg een nieuwe server toe, of leen er een van een ander profiel.';
|
||||
@override String get signInWithPlexCard => 'Inloggen met Plex';
|
||||
@override String get signInWithPlexCardSubtitle => 'Autoriseer dit apparaat. Gedeelde servers worden toegevoegd.';
|
||||
@override String get signInWithPlexCardSubtitleScoped => 'Autoriseer een Plex-account. Home-gebruikers worden profielen.';
|
||||
@@ -1740,6 +1745,7 @@ class _TranslationsLibrariesSortLabelsNl extends TranslationsLibrariesSortLabels
|
||||
@override String get rating => 'Beoordeling';
|
||||
@override String get communityRating => 'Communitybeoordeling';
|
||||
@override String get criticRating => 'Criticusbeoordeling';
|
||||
@override String get userRating => 'Gebruikersbeoordeling';
|
||||
@override String get lastPlayed => 'Laatst afgespeeld';
|
||||
@override String get datePlayed => 'Afspeeldatum';
|
||||
@override String get playCount => 'Aantal afspelingen';
|
||||
@@ -1753,6 +1759,7 @@ class _TranslationsLibrariesSortLabelsNl extends TranslationsLibrariesSortLabels
|
||||
@override String get random => 'Willekeurig';
|
||||
@override String get dateShared => 'Gedeeld op';
|
||||
@override String get latestEpisodeAirDate => 'Laatste afleveringsuitzending';
|
||||
@override String get lastEpisodeDateAdded => 'Datum laatst toegevoegde aflevering';
|
||||
}
|
||||
|
||||
// Path: companionRemote.session
|
||||
@@ -1931,7 +1938,6 @@ extension on TranslationsNl {
|
||||
'auth.or' => 'of',
|
||||
'auth.connectToJellyfin' => 'Verbinden met Jellyfin',
|
||||
'auth.useQuickConnect' => 'Quick Connect gebruiken',
|
||||
'auth.quickConnectCode' => 'Quick Connect-code',
|
||||
'auth.quickConnectInstructions' => 'Open Quick Connect in Jellyfin en voer deze code in.',
|
||||
'auth.quickConnectWaiting' => 'Wachten op goedkeuring…',
|
||||
'auth.quickConnectCancel' => 'Annuleren',
|
||||
@@ -1969,6 +1975,7 @@ extension on TranslationsNl {
|
||||
'common.ok' => 'OK',
|
||||
'common.off' => 'Uit',
|
||||
'common.seasonNumber' => ({required Object number}) => 'Seizoen ${number}',
|
||||
'common.episodeNumberTitle' => ({required Object number, required Object title}) => 'Aflevering ${number} - ${title}',
|
||||
'common.chapterNumber' => ({required Object number}) => 'Hoofdstuk ${number}',
|
||||
'common.reconnect' => 'Opnieuw verbinden',
|
||||
'common.exit' => 'Afsluiten',
|
||||
@@ -2024,6 +2031,12 @@ extension on TranslationsNl {
|
||||
'settings.gridView' => 'Raster',
|
||||
'settings.listView' => 'Lijst',
|
||||
'settings.showHeroSection' => 'Toon hoofdsectie',
|
||||
'settings.continueWatchingAction' => 'Actie voor Doorgaan met kijken',
|
||||
'settings.continueWatchingPlay' => 'Afspelen',
|
||||
'settings.continueWatchingDetails' => 'Details openen',
|
||||
'settings.episodeAction' => 'Afleveringsactie',
|
||||
'settings.episodePlay' => 'Afspelen',
|
||||
'settings.episodeDetails' => 'Details openen',
|
||||
'settings.useGlobalHubs' => 'Startlayout gebruiken',
|
||||
'settings.useGlobalHubsDescription' => 'Toon gecombineerde home-hubs. Anders bibliotheekaanbevelingen gebruiken.',
|
||||
'settings.showServerNameOnHubs' => 'Servernaam tonen bij hubs',
|
||||
@@ -2040,6 +2053,8 @@ extension on TranslationsNl {
|
||||
'settings.showSeasonPostersOnTabsDescription' => 'Toon de poster van elk seizoen boven het tabblad',
|
||||
'settings.tvFullCardLayout' => 'Volledige tv-kaarten',
|
||||
'settings.tvFullCardLayoutDescription' => 'Gebruik tv-kaarten met alleen afbeeldingen en namen van acteurs als overlay',
|
||||
'settings.focusGlow' => 'Focusgloed',
|
||||
'settings.focusGlowDescription' => 'Toon een zachte gloed rond de kaart met focus',
|
||||
'settings.hideSpoilers' => 'Spoilers voor ongekeken afleveringen verbergen',
|
||||
'settings.hideSpoilersDescription' => 'Vervaag miniaturen en beschrijvingen voor niet-bekeken afleveringen',
|
||||
'settings.playerBackend' => 'Speler backend',
|
||||
@@ -2259,8 +2274,8 @@ extension on TranslationsNl {
|
||||
'mediaMenu.markAsWatched' => 'Markeer als gekeken',
|
||||
'mediaMenu.markAsUnwatched' => 'Markeer als ongekeken',
|
||||
'mediaMenu.removeFromContinueWatching' => 'Verwijder uit Doorgaan met kijken',
|
||||
'mediaMenu.viewDetails' => 'Details bekijken',
|
||||
'mediaMenu.goToSeries' => 'Ga naar serie',
|
||||
'mediaMenu.goToSeason' => 'Ga naar seizoen',
|
||||
'mediaMenu.shufflePlay' => 'Willekeurig afspelen',
|
||||
'mediaMenu.shuffleNotAvailableOffline' => 'Shuffle is offline niet beschikbaar',
|
||||
'mediaMenu.fileInfo' => 'Bestand info',
|
||||
@@ -2392,7 +2407,6 @@ extension on TranslationsNl {
|
||||
'messages.fileInfoNotAvailable' => 'Bestand informatie niet beschikbaar',
|
||||
'messages.errorLoadingFileInfo' => ({required Object error}) => 'Fout bij laden bestand info: ${error}',
|
||||
'messages.errorLoadingSeries' => 'Fout bij laden serie',
|
||||
'messages.errorLoadingSeason' => 'Fout bij laden seizoen',
|
||||
'messages.musicNotSupported' => 'Muziek afspelen wordt nog niet ondersteund',
|
||||
'messages.noDescriptionAvailable' => 'Geen beschrijving beschikbaar',
|
||||
'messages.noProfilesAvailable' => 'Geen profielen beschikbaar',
|
||||
@@ -2424,6 +2438,8 @@ extension on TranslationsNl {
|
||||
'messages.logsUploaded' => 'Logs geüpload',
|
||||
'messages.logsUploadFailed' => 'Uploaden van logs mislukt',
|
||||
'messages.logId' => 'Log-ID',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'subtitlingStyling.text' => 'Tekst',
|
||||
'subtitlingStyling.border' => 'Rand',
|
||||
'subtitlingStyling.background' => 'Achtergrond',
|
||||
@@ -2431,14 +2447,15 @@ extension on TranslationsNl {
|
||||
'subtitlingStyling.textColor' => 'Tekstkleur',
|
||||
'subtitlingStyling.borderSize' => 'Rand grootte',
|
||||
'subtitlingStyling.borderColor' => 'Randkleur',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'subtitlingStyling.backgroundOpacity' => 'Achtergrond transparantie',
|
||||
'subtitlingStyling.backgroundColor' => 'Achtergrondkleur',
|
||||
'subtitlingStyling.position' => 'Positie',
|
||||
'subtitlingStyling.assOverride' => 'ASS-overschrijving',
|
||||
'subtitlingStyling.bold' => 'Vet',
|
||||
'subtitlingStyling.italic' => 'Cursief',
|
||||
'subtitlingStyling.renderResolution' => 'Renderresolutie',
|
||||
'subtitlingStyling.renderResolutionScreen' => 'Schermresolutie',
|
||||
'subtitlingStyling.renderResolutionVideo' => 'Videoresolutie',
|
||||
'mpvConfig.title' => 'mpv-configuratie',
|
||||
'mpvConfig.description' => 'Geavanceerde videospeler-instellingen',
|
||||
'mpvConfig.presets' => 'Voorinstellingen',
|
||||
@@ -2615,6 +2632,7 @@ extension on TranslationsNl {
|
||||
'libraries.sortLabels.rating' => 'Beoordeling',
|
||||
'libraries.sortLabels.communityRating' => 'Communitybeoordeling',
|
||||
'libraries.sortLabels.criticRating' => 'Criticusbeoordeling',
|
||||
'libraries.sortLabels.userRating' => 'Gebruikersbeoordeling',
|
||||
'libraries.sortLabels.lastPlayed' => 'Laatst afgespeeld',
|
||||
'libraries.sortLabels.datePlayed' => 'Afspeeldatum',
|
||||
'libraries.sortLabels.playCount' => 'Aantal afspelingen',
|
||||
@@ -2628,6 +2646,7 @@ extension on TranslationsNl {
|
||||
'libraries.sortLabels.random' => 'Willekeurig',
|
||||
'libraries.sortLabels.dateShared' => 'Gedeeld op',
|
||||
'libraries.sortLabels.latestEpisodeAirDate' => 'Laatste afleveringsuitzending',
|
||||
'libraries.sortLabels.lastEpisodeDateAdded' => 'Datum laatst toegevoegde aflevering',
|
||||
'about.title' => 'Over',
|
||||
'about.openSourceLicenses' => 'Open Source licenties',
|
||||
'about.versionLabel' => ({required Object version}) => 'Versie ${version}',
|
||||
@@ -2860,6 +2879,7 @@ extension on TranslationsNl {
|
||||
'downloads.unwatchedOnly' => 'Alleen onbekeken',
|
||||
'downloads.nextNUnwatched' => ({required Object count}) => 'Volgende ${count} onbekeken',
|
||||
'downloads.customAmount' => 'Aangepast aantal...',
|
||||
'downloads.includeSpecials' => 'Specials opnemen',
|
||||
'downloads.howManyEpisodes' => 'Hoeveel afleveringen?',
|
||||
'downloads.itemsQueued' => ({required Object count}) => '${count} items in downloadwachtrij',
|
||||
'downloads.keepSynced' => 'Gesynchroniseerd houden',
|
||||
@@ -2932,6 +2952,8 @@ extension on TranslationsNl {
|
||||
'companionRemote.pairing.authFailed' => 'Authenticatie mislukt. Beide apparaten hebben hetzelfde Plex-account nodig.',
|
||||
'companionRemote.pairing.failedToConnect' => ({required Object error}) => 'Kan niet verbinden: ${error}',
|
||||
'companionRemote.remote.disconnectConfirm' => 'Wil je de verbinding met de externe sessie verbreken?',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'companionRemote.remote.reconnecting' => 'Opnieuw verbinden...',
|
||||
'companionRemote.remote.attemptOf' => ({required Object current}) => 'Poging ${current} van 5',
|
||||
'companionRemote.remote.retryNow' => 'Nu opnieuw proberen',
|
||||
@@ -2945,8 +2967,6 @@ extension on TranslationsNl {
|
||||
'companionRemote.remote.tabSearch' => 'Zoeken',
|
||||
'companionRemote.remote.tabDownloads' => 'Downloads',
|
||||
'companionRemote.remote.tabSettings' => 'Instellingen',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'companionRemote.remote.previous' => 'Vorige',
|
||||
'companionRemote.remote.playPause' => 'Afspelen/Pauzeren',
|
||||
'companionRemote.remote.next' => 'Volgende',
|
||||
@@ -3006,6 +3026,7 @@ extension on TranslationsNl {
|
||||
'performanceOverlay.maxCll' => 'MaxCLL',
|
||||
'performanceOverlay.maxFall' => 'MaxFALL',
|
||||
'performanceOverlay.cacheUsed' => 'Cache gebruikt',
|
||||
'performanceOverlay.cacheLimit' => 'Cachelimiet',
|
||||
'performanceOverlay.speed' => 'Snelheid',
|
||||
'performanceOverlay.player' => 'Speler',
|
||||
'performanceOverlay.memory' => 'Geheugen',
|
||||
@@ -3158,10 +3179,8 @@ extension on TranslationsNl {
|
||||
'trackers.libraryFilter.libraries' => 'Bibliotheken',
|
||||
'trackers.libraryFilter.noLibraries' => 'Geen bibliotheken beschikbaar',
|
||||
'addServer.addJellyfinTitle' => 'Jellyfin-server toevoegen',
|
||||
'addServer.jellyfinUrlIntro' => 'Voer de server-URL in, bijv. `https://jellyfin.example.com`.',
|
||||
'addServer.jellyfinUrlsIntro' => 'Voer een of meer server-URL\'s in, gescheiden door komma\'s. Plezy gebruikt de bereikbare URL met de laagste latentie.',
|
||||
'addServer.serverUrl' => 'Server-URL',
|
||||
'addServer.serverUrls' => 'Server-URL\'s',
|
||||
'addServer.serverUrlsHelper' => 'Meerdere URL\'s toegestaan, gescheiden door komma\'s.',
|
||||
'addServer.findServer' => 'Server zoeken',
|
||||
'addServer.searchingLocalServers' => 'Lokale Jellyfin-servers zoeken...',
|
||||
'addServer.localServers' => 'Lokale Jellyfin-servers',
|
||||
@@ -3174,17 +3193,12 @@ extension on TranslationsNl {
|
||||
'addServer.signInFailed' => ({required Object error}) => 'Inloggen mislukt: ${error}',
|
||||
'addServer.quickConnectFailed' => ({required Object error}) => 'Quick Connect mislukt: ${error}',
|
||||
'addServer.addPlexTitle' => 'Inloggen met Plex',
|
||||
'addServer.plexAuthIntro' => 'Meld je aan met een browser of QR-code.',
|
||||
'addServer.plexQRPrompt' => 'Scan deze QR-code om in te loggen.',
|
||||
'addServer.waitingForPlexConfirmation' => 'Wachten tot plex.tv je inloggen bevestigt…',
|
||||
'addServer.pinExpired' => 'PIN verlopen vóór inloggen. Probeer opnieuw.',
|
||||
'addServer.duplicatePlexAccount' => 'Al aangemeld bij Plex. Meld je af om van account te wisselen.',
|
||||
'addServer.failedToRegisterAccount' => ({required Object error}) => 'Account registreren mislukt: ${error}',
|
||||
'addServer.enterJellyfinUrlError' => 'Voer de URL van je Jellyfin-server in',
|
||||
'addServer.addConnectionTitle' => 'Verbinding toevoegen',
|
||||
'addServer.addConnectionTitleScoped' => ({required Object name}) => 'Toevoegen aan ${name}',
|
||||
'addServer.addConnectionIntroGlobal' => 'Voeg een andere mediaserver toe. Plex en Jellyfin verschijnen samen op Home.',
|
||||
'addServer.addConnectionIntroScoped' => 'Voeg een nieuwe server toe, of leen er een van een ander profiel.',
|
||||
'addServer.signInWithPlexCard' => 'Inloggen met Plex',
|
||||
'addServer.signInWithPlexCardSubtitle' => 'Autoriseer dit apparaat. Gedeelde servers worden toegevoegd.',
|
||||
'addServer.signInWithPlexCardSubtitleScoped' => 'Autoriseer een Plex-account. Home-gebruikers worden profielen.',
|
||||
|
||||
+40
-26
@@ -115,7 +115,6 @@ class _TranslationsAuthPl extends TranslationsAuthEn {
|
||||
@override String get or => 'lub';
|
||||
@override String get connectToJellyfin => 'Połącz z Jellyfin';
|
||||
@override String get useQuickConnect => 'Użyj Quick Connect';
|
||||
@override String get quickConnectCode => 'Kod Quick Connect';
|
||||
@override String get quickConnectInstructions => 'Otwórz Quick Connect w Jellyfin i wpisz ten kod.';
|
||||
@override String get quickConnectWaiting => 'Oczekiwanie na zatwierdzenie…';
|
||||
@override String get quickConnectCancel => 'Anuluj';
|
||||
@@ -162,6 +161,7 @@ class _TranslationsCommonPl extends TranslationsCommonEn {
|
||||
@override String get ok => 'OK';
|
||||
@override String get off => 'Wył.';
|
||||
@override String seasonNumber({required Object number}) => 'Sezon ${number}';
|
||||
@override String episodeNumberTitle({required Object number, required Object title}) => 'Odcinek ${number} - ${title}';
|
||||
@override String chapterNumber({required Object number}) => 'Rozdział ${number}';
|
||||
@override String get reconnect => 'Połącz ponownie';
|
||||
@override String get exit => 'Wyjdź';
|
||||
@@ -244,6 +244,12 @@ class _TranslationsSettingsPl extends TranslationsSettingsEn {
|
||||
@override String get gridView => 'Siatka';
|
||||
@override String get listView => 'Lista';
|
||||
@override String get showHeroSection => 'Pokaż sekcję wyróżnioną';
|
||||
@override String get continueWatchingAction => 'Akcja Kontynuuj oglądanie';
|
||||
@override String get continueWatchingPlay => 'Odtwórz';
|
||||
@override String get continueWatchingDetails => 'Otwórz szczegóły';
|
||||
@override String get episodeAction => 'Akcja odcinka';
|
||||
@override String get episodePlay => 'Odtwórz';
|
||||
@override String get episodeDetails => 'Otwórz szczegóły';
|
||||
@override String get useGlobalHubs => 'Użyj układu strony głównej';
|
||||
@override String get useGlobalHubsDescription => 'Pokaż ujednolicone huby ekranu głównego. W przeciwnym razie użyj rekomendacji bibliotek.';
|
||||
@override String get showServerNameOnHubs => 'Pokaż nazwę serwera w hubach';
|
||||
@@ -260,6 +266,8 @@ class _TranslationsSettingsPl extends TranslationsSettingsEn {
|
||||
@override String get showSeasonPostersOnTabsDescription => 'Pokazuj plakat każdego sezonu nad jego kartą';
|
||||
@override String get tvFullCardLayout => 'Pełne karty TV';
|
||||
@override String get tvFullCardLayoutDescription => 'Używaj kart TV tylko z obrazem i nałożonymi nazwiskami aktorów';
|
||||
@override String get focusGlow => 'Poświata zaznaczenia';
|
||||
@override String get focusGlowDescription => 'Wyświetlaj delikatną poświatę wokół zaznaczonej karty';
|
||||
@override String get hideSpoilers => 'Ukryj spoilery nieobejrzanych odcinków';
|
||||
@override String get hideSpoilersDescription => 'Rozmywaj miniatury i opisy nieobejrzanych odcinków';
|
||||
@override String get playerBackend => 'Backend odtwarzacza';
|
||||
@@ -491,8 +499,8 @@ class _TranslationsMediaMenuPl extends TranslationsMediaMenuEn {
|
||||
@override String get markAsWatched => 'Oznacz jako obejrzane';
|
||||
@override String get markAsUnwatched => 'Oznacz jako nieobejrzane';
|
||||
@override String get removeFromContinueWatching => 'Usuń z kontynuowania oglądania';
|
||||
@override String get viewDetails => 'Pokaż szczegóły';
|
||||
@override String get goToSeries => 'Przejdź do serialu';
|
||||
@override String get goToSeason => 'Przejdź do sezonu';
|
||||
@override String get shufflePlay => 'Odtwarzanie losowe';
|
||||
@override String get shuffleNotAvailableOffline => 'Odtwarzanie losowe nie jest dostępne offline';
|
||||
@override String get fileInfo => 'Informacje o pliku';
|
||||
@@ -672,7 +680,6 @@ class _TranslationsMessagesPl extends TranslationsMessagesEn {
|
||||
@override String get fileInfoNotAvailable => 'Informacje o pliku niedostępne';
|
||||
@override String errorLoadingFileInfo({required Object error}) => 'Błąd ładowania informacji o pliku: ${error}';
|
||||
@override String get errorLoadingSeries => 'Błąd ładowania serialu';
|
||||
@override String get errorLoadingSeason => 'Błąd ładowania sezonu';
|
||||
@override String get musicNotSupported => 'Odtwarzanie muzyki nie jest jeszcze obsługiwane';
|
||||
@override String get noDescriptionAvailable => 'Brak dostępnego opisu';
|
||||
@override String get noProfilesAvailable => 'Brak dostępnych profili';
|
||||
@@ -726,6 +733,9 @@ class _TranslationsSubtitlingStylingPl extends TranslationsSubtitlingStylingEn {
|
||||
@override String get assOverride => 'Nadpisywanie ASS';
|
||||
@override String get bold => 'Pogrubienie';
|
||||
@override String get italic => 'Kursywa';
|
||||
@override String get renderResolution => 'Rozdzielczość renderowania';
|
||||
@override String get renderResolutionScreen => 'Rozdzielczość ekranu';
|
||||
@override String get renderResolutionVideo => 'Rozdzielczość wideo';
|
||||
}
|
||||
|
||||
// Path: mpvConfig
|
||||
@@ -1278,6 +1288,7 @@ class _TranslationsDownloadsPl extends TranslationsDownloadsEn {
|
||||
@override String get unwatchedOnly => 'Tylko nieobejrzane';
|
||||
@override String nextNUnwatched({required Object count}) => 'Następne ${count} nieobejrzanych';
|
||||
@override String get customAmount => 'Własna ilość...';
|
||||
@override String get includeSpecials => 'Uwzględnij odcinki specjalne';
|
||||
@override String get howManyEpisodes => 'Ile odcinków?';
|
||||
@override String itemsQueued({required Object count}) => '${count} elementów dodanych do kolejki pobierania';
|
||||
@override String get keepSynced => 'Synchronizuj na bieżąco';
|
||||
@@ -1402,6 +1413,7 @@ class _TranslationsPerformanceOverlayPl extends TranslationsPerformanceOverlayEn
|
||||
@override String get maxCll => 'MaxCLL';
|
||||
@override String get maxFall => 'MaxFALL';
|
||||
@override String get cacheUsed => 'Użyty cache';
|
||||
@override String get cacheLimit => 'Limit cache\'u';
|
||||
@override String get speed => 'Szybkość';
|
||||
@override String get player => 'Odtwarzacz';
|
||||
@override String get memory => 'Pamięć';
|
||||
@@ -1597,10 +1609,8 @@ class _TranslationsAddServerPl extends TranslationsAddServerEn {
|
||||
|
||||
// Translations
|
||||
@override String get addJellyfinTitle => 'Dodaj serwer Jellyfin';
|
||||
@override String get jellyfinUrlIntro => 'Wpisz URL serwera, np. `https://jellyfin.example.com`.';
|
||||
@override String get jellyfinUrlsIntro => 'Wpisz co najmniej jeden URL serwera, oddzielając je przecinkami. Plezy użyje osiągalnego URL-a o najniższym opóźnieniu.';
|
||||
@override String get serverUrl => 'URL serwera';
|
||||
@override String get serverUrls => 'URL-e serwera';
|
||||
@override String get serverUrlsHelper => 'Można podać wiele adresów URL, rozdzielonych przecinkami.';
|
||||
@override String get findServer => 'Znajdź serwer';
|
||||
@override String get searchingLocalServers => 'Szukanie lokalnych serwerów Jellyfin...';
|
||||
@override String get localServers => 'Lokalne serwery Jellyfin';
|
||||
@@ -1613,17 +1623,12 @@ class _TranslationsAddServerPl extends TranslationsAddServerEn {
|
||||
@override String signInFailed({required Object error}) => 'Logowanie nie powiodło się: ${error}';
|
||||
@override String quickConnectFailed({required Object error}) => 'Quick Connect nie powiodło się: ${error}';
|
||||
@override String get addPlexTitle => 'Zaloguj się przez Plex';
|
||||
@override String get plexAuthIntro => 'Zaloguj się przez przeglądarkę lub kod QR.';
|
||||
@override String get plexQRPrompt => 'Zeskanuj ten kod QR, aby się zalogować.';
|
||||
@override String get waitingForPlexConfirmation => 'Czekam na potwierdzenie logowania przez plex.tv…';
|
||||
@override String get pinExpired => 'PIN wygasł przed zalogowaniem. Spróbuj ponownie.';
|
||||
@override String get duplicatePlexAccount => 'Już zalogowano do Plex. Wyloguj się, aby zmienić konto.';
|
||||
@override String failedToRegisterAccount({required Object error}) => 'Nie udało się zarejestrować konta: ${error}';
|
||||
@override String get enterJellyfinUrlError => 'Podaj URL serwera Jellyfin';
|
||||
@override String get addConnectionTitle => 'Dodaj połączenie';
|
||||
@override String addConnectionTitleScoped({required Object name}) => 'Dodaj do ${name}';
|
||||
@override String get addConnectionIntroGlobal => 'Dodaj kolejny serwer multimediów. Plex i Jellyfin pojawią się razem na ekranie głównym.';
|
||||
@override String get addConnectionIntroScoped => 'Dodaj nowy serwer lub pożycz z innego profilu.';
|
||||
@override String get signInWithPlexCard => 'Zaloguj się przez Plex';
|
||||
@override String get signInWithPlexCardSubtitle => 'Autoryzuj to urządzenie. Serwery udostępnione zostaną dodane.';
|
||||
@override String get signInWithPlexCardSubtitleScoped => 'Autoryzuj konto Plex. Użytkownicy Home staną się profilami.';
|
||||
@@ -1740,6 +1745,7 @@ class _TranslationsLibrariesSortLabelsPl extends TranslationsLibrariesSortLabels
|
||||
@override String get rating => 'Ocena';
|
||||
@override String get communityRating => 'Ocena społeczności';
|
||||
@override String get criticRating => 'Ocena krytyków';
|
||||
@override String get userRating => 'Ocena użytkownika';
|
||||
@override String get lastPlayed => 'Ostatnio odtwarzane';
|
||||
@override String get datePlayed => 'Data odtworzenia';
|
||||
@override String get playCount => 'Liczba odtworzeń';
|
||||
@@ -1753,6 +1759,7 @@ class _TranslationsLibrariesSortLabelsPl extends TranslationsLibrariesSortLabels
|
||||
@override String get random => 'Losowo';
|
||||
@override String get dateShared => 'Data udostępnienia';
|
||||
@override String get latestEpisodeAirDate => 'Data emisji ostatniego odcinka';
|
||||
@override String get lastEpisodeDateAdded => 'Data dodania ostatniego odcinka';
|
||||
}
|
||||
|
||||
// Path: companionRemote.session
|
||||
@@ -1931,7 +1938,6 @@ extension on TranslationsPl {
|
||||
'auth.or' => 'lub',
|
||||
'auth.connectToJellyfin' => 'Połącz z Jellyfin',
|
||||
'auth.useQuickConnect' => 'Użyj Quick Connect',
|
||||
'auth.quickConnectCode' => 'Kod Quick Connect',
|
||||
'auth.quickConnectInstructions' => 'Otwórz Quick Connect w Jellyfin i wpisz ten kod.',
|
||||
'auth.quickConnectWaiting' => 'Oczekiwanie na zatwierdzenie…',
|
||||
'auth.quickConnectCancel' => 'Anuluj',
|
||||
@@ -1969,6 +1975,7 @@ extension on TranslationsPl {
|
||||
'common.ok' => 'OK',
|
||||
'common.off' => 'Wył.',
|
||||
'common.seasonNumber' => ({required Object number}) => 'Sezon ${number}',
|
||||
'common.episodeNumberTitle' => ({required Object number, required Object title}) => 'Odcinek ${number} - ${title}',
|
||||
'common.chapterNumber' => ({required Object number}) => 'Rozdział ${number}',
|
||||
'common.reconnect' => 'Połącz ponownie',
|
||||
'common.exit' => 'Wyjdź',
|
||||
@@ -2024,6 +2031,12 @@ extension on TranslationsPl {
|
||||
'settings.gridView' => 'Siatka',
|
||||
'settings.listView' => 'Lista',
|
||||
'settings.showHeroSection' => 'Pokaż sekcję wyróżnioną',
|
||||
'settings.continueWatchingAction' => 'Akcja Kontynuuj oglądanie',
|
||||
'settings.continueWatchingPlay' => 'Odtwórz',
|
||||
'settings.continueWatchingDetails' => 'Otwórz szczegóły',
|
||||
'settings.episodeAction' => 'Akcja odcinka',
|
||||
'settings.episodePlay' => 'Odtwórz',
|
||||
'settings.episodeDetails' => 'Otwórz szczegóły',
|
||||
'settings.useGlobalHubs' => 'Użyj układu strony głównej',
|
||||
'settings.useGlobalHubsDescription' => 'Pokaż ujednolicone huby ekranu głównego. W przeciwnym razie użyj rekomendacji bibliotek.',
|
||||
'settings.showServerNameOnHubs' => 'Pokaż nazwę serwera w hubach',
|
||||
@@ -2040,6 +2053,8 @@ extension on TranslationsPl {
|
||||
'settings.showSeasonPostersOnTabsDescription' => 'Pokazuj plakat każdego sezonu nad jego kartą',
|
||||
'settings.tvFullCardLayout' => 'Pełne karty TV',
|
||||
'settings.tvFullCardLayoutDescription' => 'Używaj kart TV tylko z obrazem i nałożonymi nazwiskami aktorów',
|
||||
'settings.focusGlow' => 'Poświata zaznaczenia',
|
||||
'settings.focusGlowDescription' => 'Wyświetlaj delikatną poświatę wokół zaznaczonej karty',
|
||||
'settings.hideSpoilers' => 'Ukryj spoilery nieobejrzanych odcinków',
|
||||
'settings.hideSpoilersDescription' => 'Rozmywaj miniatury i opisy nieobejrzanych odcinków',
|
||||
'settings.playerBackend' => 'Backend odtwarzacza',
|
||||
@@ -2259,8 +2274,8 @@ extension on TranslationsPl {
|
||||
'mediaMenu.markAsWatched' => 'Oznacz jako obejrzane',
|
||||
'mediaMenu.markAsUnwatched' => 'Oznacz jako nieobejrzane',
|
||||
'mediaMenu.removeFromContinueWatching' => 'Usuń z kontynuowania oglądania',
|
||||
'mediaMenu.viewDetails' => 'Pokaż szczegóły',
|
||||
'mediaMenu.goToSeries' => 'Przejdź do serialu',
|
||||
'mediaMenu.goToSeason' => 'Przejdź do sezonu',
|
||||
'mediaMenu.shufflePlay' => 'Odtwarzanie losowe',
|
||||
'mediaMenu.shuffleNotAvailableOffline' => 'Odtwarzanie losowe nie jest dostępne offline',
|
||||
'mediaMenu.fileInfo' => 'Informacje o pliku',
|
||||
@@ -2392,7 +2407,6 @@ extension on TranslationsPl {
|
||||
'messages.fileInfoNotAvailable' => 'Informacje o pliku niedostępne',
|
||||
'messages.errorLoadingFileInfo' => ({required Object error}) => 'Błąd ładowania informacji o pliku: ${error}',
|
||||
'messages.errorLoadingSeries' => 'Błąd ładowania serialu',
|
||||
'messages.errorLoadingSeason' => 'Błąd ładowania sezonu',
|
||||
'messages.musicNotSupported' => 'Odtwarzanie muzyki nie jest jeszcze obsługiwane',
|
||||
'messages.noDescriptionAvailable' => 'Brak dostępnego opisu',
|
||||
'messages.noProfilesAvailable' => 'Brak dostępnych profili',
|
||||
@@ -2424,6 +2438,8 @@ extension on TranslationsPl {
|
||||
'messages.logsUploaded' => 'Logi przesłane',
|
||||
'messages.logsUploadFailed' => 'Nie udało się przesłać logów',
|
||||
'messages.logId' => 'ID logu',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'subtitlingStyling.text' => 'Tekst',
|
||||
'subtitlingStyling.border' => 'Obramowanie',
|
||||
'subtitlingStyling.background' => 'Tło',
|
||||
@@ -2431,14 +2447,15 @@ extension on TranslationsPl {
|
||||
'subtitlingStyling.textColor' => 'Kolor tekstu',
|
||||
'subtitlingStyling.borderSize' => 'Rozmiar obramowania',
|
||||
'subtitlingStyling.borderColor' => 'Kolor obramowania',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'subtitlingStyling.backgroundOpacity' => 'Przezroczystość tła',
|
||||
'subtitlingStyling.backgroundColor' => 'Kolor tła',
|
||||
'subtitlingStyling.position' => 'Pozycja',
|
||||
'subtitlingStyling.assOverride' => 'Nadpisywanie ASS',
|
||||
'subtitlingStyling.bold' => 'Pogrubienie',
|
||||
'subtitlingStyling.italic' => 'Kursywa',
|
||||
'subtitlingStyling.renderResolution' => 'Rozdzielczość renderowania',
|
||||
'subtitlingStyling.renderResolutionScreen' => 'Rozdzielczość ekranu',
|
||||
'subtitlingStyling.renderResolutionVideo' => 'Rozdzielczość wideo',
|
||||
'mpvConfig.title' => 'mpv.conf',
|
||||
'mpvConfig.description' => 'Zaawansowane ustawienia odtwarzacza wideo',
|
||||
'mpvConfig.presets' => 'Presety',
|
||||
@@ -2615,6 +2632,7 @@ extension on TranslationsPl {
|
||||
'libraries.sortLabels.rating' => 'Ocena',
|
||||
'libraries.sortLabels.communityRating' => 'Ocena społeczności',
|
||||
'libraries.sortLabels.criticRating' => 'Ocena krytyków',
|
||||
'libraries.sortLabels.userRating' => 'Ocena użytkownika',
|
||||
'libraries.sortLabels.lastPlayed' => 'Ostatnio odtwarzane',
|
||||
'libraries.sortLabels.datePlayed' => 'Data odtworzenia',
|
||||
'libraries.sortLabels.playCount' => 'Liczba odtworzeń',
|
||||
@@ -2628,6 +2646,7 @@ extension on TranslationsPl {
|
||||
'libraries.sortLabels.random' => 'Losowo',
|
||||
'libraries.sortLabels.dateShared' => 'Data udostępnienia',
|
||||
'libraries.sortLabels.latestEpisodeAirDate' => 'Data emisji ostatniego odcinka',
|
||||
'libraries.sortLabels.lastEpisodeDateAdded' => 'Data dodania ostatniego odcinka',
|
||||
'about.title' => 'O aplikacji',
|
||||
'about.openSourceLicenses' => 'Licencje open source',
|
||||
'about.versionLabel' => ({required Object version}) => 'Wersja ${version}',
|
||||
@@ -2860,6 +2879,7 @@ extension on TranslationsPl {
|
||||
'downloads.unwatchedOnly' => 'Tylko nieobejrzane',
|
||||
'downloads.nextNUnwatched' => ({required Object count}) => 'Następne ${count} nieobejrzanych',
|
||||
'downloads.customAmount' => 'Własna ilość...',
|
||||
'downloads.includeSpecials' => 'Uwzględnij odcinki specjalne',
|
||||
'downloads.howManyEpisodes' => 'Ile odcinków?',
|
||||
'downloads.itemsQueued' => ({required Object count}) => '${count} elementów dodanych do kolejki pobierania',
|
||||
'downloads.keepSynced' => 'Synchronizuj na bieżąco',
|
||||
@@ -2932,6 +2952,8 @@ extension on TranslationsPl {
|
||||
'companionRemote.pairing.authFailed' => 'Uwierzytelnianie nie powiodło się. Oba urządzenia muszą używać tego samego konta Plex.',
|
||||
'companionRemote.pairing.failedToConnect' => ({required Object error}) => 'Nie udało się połączyć: ${error}',
|
||||
'companionRemote.remote.disconnectConfirm' => 'Czy chcesz się rozłączyć od sesji zdalnej?',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'companionRemote.remote.reconnecting' => 'Ponowne łączenie...',
|
||||
'companionRemote.remote.attemptOf' => ({required Object current}) => 'Próba ${current} z 5',
|
||||
'companionRemote.remote.retryNow' => 'Ponów teraz',
|
||||
@@ -2945,8 +2967,6 @@ extension on TranslationsPl {
|
||||
'companionRemote.remote.tabSearch' => 'Szukaj',
|
||||
'companionRemote.remote.tabDownloads' => 'Pobrania',
|
||||
'companionRemote.remote.tabSettings' => 'Ustawienia',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'companionRemote.remote.previous' => 'Poprzedni',
|
||||
'companionRemote.remote.playPause' => 'Odtwórz/Pauza',
|
||||
'companionRemote.remote.next' => 'Następny',
|
||||
@@ -3006,6 +3026,7 @@ extension on TranslationsPl {
|
||||
'performanceOverlay.maxCll' => 'MaxCLL',
|
||||
'performanceOverlay.maxFall' => 'MaxFALL',
|
||||
'performanceOverlay.cacheUsed' => 'Użyty cache',
|
||||
'performanceOverlay.cacheLimit' => 'Limit cache\'u',
|
||||
'performanceOverlay.speed' => 'Szybkość',
|
||||
'performanceOverlay.player' => 'Odtwarzacz',
|
||||
'performanceOverlay.memory' => 'Pamięć',
|
||||
@@ -3158,10 +3179,8 @@ extension on TranslationsPl {
|
||||
'trackers.libraryFilter.libraries' => 'Biblioteki',
|
||||
'trackers.libraryFilter.noLibraries' => 'Brak dostępnych bibliotek',
|
||||
'addServer.addJellyfinTitle' => 'Dodaj serwer Jellyfin',
|
||||
'addServer.jellyfinUrlIntro' => 'Wpisz URL serwera, np. `https://jellyfin.example.com`.',
|
||||
'addServer.jellyfinUrlsIntro' => 'Wpisz co najmniej jeden URL serwera, oddzielając je przecinkami. Plezy użyje osiągalnego URL-a o najniższym opóźnieniu.',
|
||||
'addServer.serverUrl' => 'URL serwera',
|
||||
'addServer.serverUrls' => 'URL-e serwera',
|
||||
'addServer.serverUrlsHelper' => 'Można podać wiele adresów URL, rozdzielonych przecinkami.',
|
||||
'addServer.findServer' => 'Znajdź serwer',
|
||||
'addServer.searchingLocalServers' => 'Szukanie lokalnych serwerów Jellyfin...',
|
||||
'addServer.localServers' => 'Lokalne serwery Jellyfin',
|
||||
@@ -3174,17 +3193,12 @@ extension on TranslationsPl {
|
||||
'addServer.signInFailed' => ({required Object error}) => 'Logowanie nie powiodło się: ${error}',
|
||||
'addServer.quickConnectFailed' => ({required Object error}) => 'Quick Connect nie powiodło się: ${error}',
|
||||
'addServer.addPlexTitle' => 'Zaloguj się przez Plex',
|
||||
'addServer.plexAuthIntro' => 'Zaloguj się przez przeglądarkę lub kod QR.',
|
||||
'addServer.plexQRPrompt' => 'Zeskanuj ten kod QR, aby się zalogować.',
|
||||
'addServer.waitingForPlexConfirmation' => 'Czekam na potwierdzenie logowania przez plex.tv…',
|
||||
'addServer.pinExpired' => 'PIN wygasł przed zalogowaniem. Spróbuj ponownie.',
|
||||
'addServer.duplicatePlexAccount' => 'Już zalogowano do Plex. Wyloguj się, aby zmienić konto.',
|
||||
'addServer.failedToRegisterAccount' => ({required Object error}) => 'Nie udało się zarejestrować konta: ${error}',
|
||||
'addServer.enterJellyfinUrlError' => 'Podaj URL serwera Jellyfin',
|
||||
'addServer.addConnectionTitle' => 'Dodaj połączenie',
|
||||
'addServer.addConnectionTitleScoped' => ({required Object name}) => 'Dodaj do ${name}',
|
||||
'addServer.addConnectionIntroGlobal' => 'Dodaj kolejny serwer multimediów. Plex i Jellyfin pojawią się razem na ekranie głównym.',
|
||||
'addServer.addConnectionIntroScoped' => 'Dodaj nowy serwer lub pożycz z innego profilu.',
|
||||
'addServer.signInWithPlexCard' => 'Zaloguj się przez Plex',
|
||||
'addServer.signInWithPlexCardSubtitle' => 'Autoryzuj to urządzenie. Serwery udostępnione zostaną dodane.',
|
||||
'addServer.signInWithPlexCardSubtitleScoped' => 'Autoryzuj konto Plex. Użytkownicy Home staną się profilami.',
|
||||
|
||||
+40
-26
@@ -115,7 +115,6 @@ class _TranslationsAuthPt extends TranslationsAuthEn {
|
||||
@override String get or => 'ou';
|
||||
@override String get connectToJellyfin => 'Conectar ao Jellyfin';
|
||||
@override String get useQuickConnect => 'Usar Quick Connect';
|
||||
@override String get quickConnectCode => 'Código do Quick Connect';
|
||||
@override String get quickConnectInstructions => 'Abra o Quick Connect no Jellyfin e insira este código.';
|
||||
@override String get quickConnectWaiting => 'A aguardar aprovação…';
|
||||
@override String get quickConnectCancel => 'Cancelar';
|
||||
@@ -162,6 +161,7 @@ class _TranslationsCommonPt extends TranslationsCommonEn {
|
||||
@override String get ok => 'OK';
|
||||
@override String get off => 'Desativado';
|
||||
@override String seasonNumber({required Object number}) => 'Temporada ${number}';
|
||||
@override String episodeNumberTitle({required Object number, required Object title}) => 'Episódio ${number} - ${title}';
|
||||
@override String chapterNumber({required Object number}) => 'Capítulo ${number}';
|
||||
@override String get reconnect => 'Reconectar';
|
||||
@override String get exit => 'Sair';
|
||||
@@ -244,6 +244,12 @@ class _TranslationsSettingsPt extends TranslationsSettingsEn {
|
||||
@override String get gridView => 'Grade';
|
||||
@override String get listView => 'Lista';
|
||||
@override String get showHeroSection => 'Mostrar Seção de Destaque';
|
||||
@override String get continueWatchingAction => 'Ação de Continuar Assistindo';
|
||||
@override String get continueWatchingPlay => 'Reproduzir';
|
||||
@override String get continueWatchingDetails => 'Abrir detalhes';
|
||||
@override String get episodeAction => 'Ação de Episódio';
|
||||
@override String get episodePlay => 'Reproduzir';
|
||||
@override String get episodeDetails => 'Abrir detalhes';
|
||||
@override String get useGlobalHubs => 'Usar layout inicial';
|
||||
@override String get useGlobalHubsDescription => 'Mostrar hubs iniciais unificados. Caso contrário, usar recomendações da biblioteca.';
|
||||
@override String get showServerNameOnHubs => 'Mostrar Nome do Servidor nos Hubs';
|
||||
@@ -260,6 +266,8 @@ class _TranslationsSettingsPt extends TranslationsSettingsEn {
|
||||
@override String get showSeasonPostersOnTabsDescription => 'Mostrar o pôster de cada temporada acima da aba';
|
||||
@override String get tvFullCardLayout => 'Cartões TV completos';
|
||||
@override String get tvFullCardLayoutDescription => 'Usar cartões de TV só com imagem e nomes dos atores sobrepostos';
|
||||
@override String get focusGlow => 'Brilho de foco';
|
||||
@override String get focusGlowDescription => 'Mostrar um brilho suave à volta do cartão em foco';
|
||||
@override String get hideSpoilers => 'Ocultar Spoilers de Episódios Não Assistidos';
|
||||
@override String get hideSpoilersDescription => 'Desfocar miniaturas e descrições de episódios não vistos';
|
||||
@override String get playerBackend => 'Backend do Player';
|
||||
@@ -491,8 +499,8 @@ class _TranslationsMediaMenuPt extends TranslationsMediaMenuEn {
|
||||
@override String get markAsWatched => 'Marcar como Assistido';
|
||||
@override String get markAsUnwatched => 'Marcar como Não Assistido';
|
||||
@override String get removeFromContinueWatching => 'Remover de Continuar Assistindo';
|
||||
@override String get viewDetails => 'Ver detalhes';
|
||||
@override String get goToSeries => 'Ir para a série';
|
||||
@override String get goToSeason => 'Ir para a temporada';
|
||||
@override String get shufflePlay => 'Reprodução Aleatória';
|
||||
@override String get shuffleNotAvailableOffline => 'Reprodução aleatória indisponível offline';
|
||||
@override String get fileInfo => 'Info do Arquivo';
|
||||
@@ -672,7 +680,6 @@ class _TranslationsMessagesPt extends TranslationsMessagesEn {
|
||||
@override String get fileInfoNotAvailable => 'Informações do arquivo não disponíveis';
|
||||
@override String errorLoadingFileInfo({required Object error}) => 'Erro ao carregar info do arquivo: ${error}';
|
||||
@override String get errorLoadingSeries => 'Erro ao carregar série';
|
||||
@override String get errorLoadingSeason => 'Erro ao carregar temporada';
|
||||
@override String get musicNotSupported => 'Reprodução de música ainda não é suportada';
|
||||
@override String get noDescriptionAvailable => 'Nenhuma descrição disponível';
|
||||
@override String get noProfilesAvailable => 'Nenhum perfil disponível';
|
||||
@@ -726,6 +733,9 @@ class _TranslationsSubtitlingStylingPt extends TranslationsSubtitlingStylingEn {
|
||||
@override String get assOverride => 'Substituição ASS';
|
||||
@override String get bold => 'Negrito';
|
||||
@override String get italic => 'Itálico';
|
||||
@override String get renderResolution => 'Resolução de renderização';
|
||||
@override String get renderResolutionScreen => 'Resolução da tela';
|
||||
@override String get renderResolutionVideo => 'Resolução do vídeo';
|
||||
}
|
||||
|
||||
// Path: mpvConfig
|
||||
@@ -1278,6 +1288,7 @@ class _TranslationsDownloadsPt extends TranslationsDownloadsEn {
|
||||
@override String get unwatchedOnly => 'Apenas não assistidos';
|
||||
@override String nextNUnwatched({required Object count}) => 'Próximos ${count} não assistidos';
|
||||
@override String get customAmount => 'Quantidade personalizada...';
|
||||
@override String get includeSpecials => 'Incluir especiais';
|
||||
@override String get howManyEpisodes => 'Quantos episódios?';
|
||||
@override String itemsQueued({required Object count}) => '${count} itens na fila de download';
|
||||
@override String get keepSynced => 'Manter sincronizado';
|
||||
@@ -1402,6 +1413,7 @@ class _TranslationsPerformanceOverlayPt extends TranslationsPerformanceOverlayEn
|
||||
@override String get maxCll => 'MaxCLL';
|
||||
@override String get maxFall => 'MaxFALL';
|
||||
@override String get cacheUsed => 'Cache usado';
|
||||
@override String get cacheLimit => 'Limite do cache';
|
||||
@override String get speed => 'Velocidade';
|
||||
@override String get player => 'Player';
|
||||
@override String get memory => 'Memória';
|
||||
@@ -1597,10 +1609,8 @@ class _TranslationsAddServerPt extends TranslationsAddServerEn {
|
||||
|
||||
// Translations
|
||||
@override String get addJellyfinTitle => 'Adicionar servidor Jellyfin';
|
||||
@override String get jellyfinUrlIntro => 'Insira a URL do servidor, ex. `https://jellyfin.example.com`.';
|
||||
@override String get jellyfinUrlsIntro => 'Insira uma ou mais URLs do servidor, separadas por vírgulas. O Plezy usará a URL acessível com a menor latência.';
|
||||
@override String get serverUrl => 'URL do servidor';
|
||||
@override String get serverUrls => 'URLs do servidor';
|
||||
@override String get serverUrlsHelper => 'Vários URLs permitidos, separados por vírgulas.';
|
||||
@override String get findServer => 'Encontrar servidor';
|
||||
@override String get searchingLocalServers => 'A procurar servidores Jellyfin locais...';
|
||||
@override String get localServers => 'Servidores Jellyfin locais';
|
||||
@@ -1613,17 +1623,12 @@ class _TranslationsAddServerPt extends TranslationsAddServerEn {
|
||||
@override String signInFailed({required Object error}) => 'Falha ao entrar: ${error}';
|
||||
@override String quickConnectFailed({required Object error}) => 'Quick Connect falhou: ${error}';
|
||||
@override String get addPlexTitle => 'Entrar com Plex';
|
||||
@override String get plexAuthIntro => 'Entre com um navegador ou código QR.';
|
||||
@override String get plexQRPrompt => 'Escaneie este código QR para entrar.';
|
||||
@override String get waitingForPlexConfirmation => 'Aguardando o plex.tv confirmar o login…';
|
||||
@override String get pinExpired => 'O PIN expirou antes do login. Tente novamente.';
|
||||
@override String get duplicatePlexAccount => 'Você já entrou no Plex. Saia para trocar de conta.';
|
||||
@override String failedToRegisterAccount({required Object error}) => 'Falha ao registrar a conta: ${error}';
|
||||
@override String get enterJellyfinUrlError => 'Insira a URL do seu servidor Jellyfin';
|
||||
@override String get addConnectionTitle => 'Adicionar conexão';
|
||||
@override String addConnectionTitleScoped({required Object name}) => 'Adicionar a ${name}';
|
||||
@override String get addConnectionIntroGlobal => 'Adicione outro servidor de mídia. Plex e Jellyfin aparecem juntos no Início.';
|
||||
@override String get addConnectionIntroScoped => 'Adicione um novo servidor ou pegue um emprestado de outro perfil.';
|
||||
@override String get signInWithPlexCard => 'Entrar com Plex';
|
||||
@override String get signInWithPlexCardSubtitle => 'Autorize este dispositivo. Servidores compartilhados são adicionados.';
|
||||
@override String get signInWithPlexCardSubtitleScoped => 'Autorize uma conta Plex. Usuários Home viram perfis.';
|
||||
@@ -1740,6 +1745,7 @@ class _TranslationsLibrariesSortLabelsPt extends TranslationsLibrariesSortLabels
|
||||
@override String get rating => 'Avaliação';
|
||||
@override String get communityRating => 'Avaliação da comunidade';
|
||||
@override String get criticRating => 'Avaliação da crítica';
|
||||
@override String get userRating => 'Avaliação do usuário';
|
||||
@override String get lastPlayed => 'Última reprodução';
|
||||
@override String get datePlayed => 'Data de reprodução';
|
||||
@override String get playCount => 'Reproduções';
|
||||
@@ -1753,6 +1759,7 @@ class _TranslationsLibrariesSortLabelsPt extends TranslationsLibrariesSortLabels
|
||||
@override String get random => 'Aleatório';
|
||||
@override String get dateShared => 'Data de compartilhamento';
|
||||
@override String get latestEpisodeAirDate => 'Última data de exibição do episódio';
|
||||
@override String get lastEpisodeDateAdded => 'Data de adição do último episódio';
|
||||
}
|
||||
|
||||
// Path: companionRemote.session
|
||||
@@ -1931,7 +1938,6 @@ extension on TranslationsPt {
|
||||
'auth.or' => 'ou',
|
||||
'auth.connectToJellyfin' => 'Conectar ao Jellyfin',
|
||||
'auth.useQuickConnect' => 'Usar Quick Connect',
|
||||
'auth.quickConnectCode' => 'Código do Quick Connect',
|
||||
'auth.quickConnectInstructions' => 'Abra o Quick Connect no Jellyfin e insira este código.',
|
||||
'auth.quickConnectWaiting' => 'A aguardar aprovação…',
|
||||
'auth.quickConnectCancel' => 'Cancelar',
|
||||
@@ -1969,6 +1975,7 @@ extension on TranslationsPt {
|
||||
'common.ok' => 'OK',
|
||||
'common.off' => 'Desativado',
|
||||
'common.seasonNumber' => ({required Object number}) => 'Temporada ${number}',
|
||||
'common.episodeNumberTitle' => ({required Object number, required Object title}) => 'Episódio ${number} - ${title}',
|
||||
'common.chapterNumber' => ({required Object number}) => 'Capítulo ${number}',
|
||||
'common.reconnect' => 'Reconectar',
|
||||
'common.exit' => 'Sair',
|
||||
@@ -2024,6 +2031,12 @@ extension on TranslationsPt {
|
||||
'settings.gridView' => 'Grade',
|
||||
'settings.listView' => 'Lista',
|
||||
'settings.showHeroSection' => 'Mostrar Seção de Destaque',
|
||||
'settings.continueWatchingAction' => 'Ação de Continuar Assistindo',
|
||||
'settings.continueWatchingPlay' => 'Reproduzir',
|
||||
'settings.continueWatchingDetails' => 'Abrir detalhes',
|
||||
'settings.episodeAction' => 'Ação de Episódio',
|
||||
'settings.episodePlay' => 'Reproduzir',
|
||||
'settings.episodeDetails' => 'Abrir detalhes',
|
||||
'settings.useGlobalHubs' => 'Usar layout inicial',
|
||||
'settings.useGlobalHubsDescription' => 'Mostrar hubs iniciais unificados. Caso contrário, usar recomendações da biblioteca.',
|
||||
'settings.showServerNameOnHubs' => 'Mostrar Nome do Servidor nos Hubs',
|
||||
@@ -2040,6 +2053,8 @@ extension on TranslationsPt {
|
||||
'settings.showSeasonPostersOnTabsDescription' => 'Mostrar o pôster de cada temporada acima da aba',
|
||||
'settings.tvFullCardLayout' => 'Cartões TV completos',
|
||||
'settings.tvFullCardLayoutDescription' => 'Usar cartões de TV só com imagem e nomes dos atores sobrepostos',
|
||||
'settings.focusGlow' => 'Brilho de foco',
|
||||
'settings.focusGlowDescription' => 'Mostrar um brilho suave à volta do cartão em foco',
|
||||
'settings.hideSpoilers' => 'Ocultar Spoilers de Episódios Não Assistidos',
|
||||
'settings.hideSpoilersDescription' => 'Desfocar miniaturas e descrições de episódios não vistos',
|
||||
'settings.playerBackend' => 'Backend do Player',
|
||||
@@ -2259,8 +2274,8 @@ extension on TranslationsPt {
|
||||
'mediaMenu.markAsWatched' => 'Marcar como Assistido',
|
||||
'mediaMenu.markAsUnwatched' => 'Marcar como Não Assistido',
|
||||
'mediaMenu.removeFromContinueWatching' => 'Remover de Continuar Assistindo',
|
||||
'mediaMenu.viewDetails' => 'Ver detalhes',
|
||||
'mediaMenu.goToSeries' => 'Ir para a série',
|
||||
'mediaMenu.goToSeason' => 'Ir para a temporada',
|
||||
'mediaMenu.shufflePlay' => 'Reprodução Aleatória',
|
||||
'mediaMenu.shuffleNotAvailableOffline' => 'Reprodução aleatória indisponível offline',
|
||||
'mediaMenu.fileInfo' => 'Info do Arquivo',
|
||||
@@ -2392,7 +2407,6 @@ extension on TranslationsPt {
|
||||
'messages.fileInfoNotAvailable' => 'Informações do arquivo não disponíveis',
|
||||
'messages.errorLoadingFileInfo' => ({required Object error}) => 'Erro ao carregar info do arquivo: ${error}',
|
||||
'messages.errorLoadingSeries' => 'Erro ao carregar série',
|
||||
'messages.errorLoadingSeason' => 'Erro ao carregar temporada',
|
||||
'messages.musicNotSupported' => 'Reprodução de música ainda não é suportada',
|
||||
'messages.noDescriptionAvailable' => 'Nenhuma descrição disponível',
|
||||
'messages.noProfilesAvailable' => 'Nenhum perfil disponível',
|
||||
@@ -2424,6 +2438,8 @@ extension on TranslationsPt {
|
||||
'messages.logsUploaded' => 'Logs enviados',
|
||||
'messages.logsUploadFailed' => 'Falha ao enviar logs',
|
||||
'messages.logId' => 'ID do Log',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'subtitlingStyling.text' => 'Texto',
|
||||
'subtitlingStyling.border' => 'Borda',
|
||||
'subtitlingStyling.background' => 'Fundo',
|
||||
@@ -2431,14 +2447,15 @@ extension on TranslationsPt {
|
||||
'subtitlingStyling.textColor' => 'Cor do Texto',
|
||||
'subtitlingStyling.borderSize' => 'Tamanho da Borda',
|
||||
'subtitlingStyling.borderColor' => 'Cor da Borda',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'subtitlingStyling.backgroundOpacity' => 'Opacidade do Fundo',
|
||||
'subtitlingStyling.backgroundColor' => 'Cor de Fundo',
|
||||
'subtitlingStyling.position' => 'Posição',
|
||||
'subtitlingStyling.assOverride' => 'Substituição ASS',
|
||||
'subtitlingStyling.bold' => 'Negrito',
|
||||
'subtitlingStyling.italic' => 'Itálico',
|
||||
'subtitlingStyling.renderResolution' => 'Resolução de renderização',
|
||||
'subtitlingStyling.renderResolutionScreen' => 'Resolução da tela',
|
||||
'subtitlingStyling.renderResolutionVideo' => 'Resolução do vídeo',
|
||||
'mpvConfig.title' => 'mpv.conf',
|
||||
'mpvConfig.description' => 'Configurações avançadas do player de vídeo',
|
||||
'mpvConfig.presets' => 'Predefinições',
|
||||
@@ -2615,6 +2632,7 @@ extension on TranslationsPt {
|
||||
'libraries.sortLabels.rating' => 'Avaliação',
|
||||
'libraries.sortLabels.communityRating' => 'Avaliação da comunidade',
|
||||
'libraries.sortLabels.criticRating' => 'Avaliação da crítica',
|
||||
'libraries.sortLabels.userRating' => 'Avaliação do usuário',
|
||||
'libraries.sortLabels.lastPlayed' => 'Última reprodução',
|
||||
'libraries.sortLabels.datePlayed' => 'Data de reprodução',
|
||||
'libraries.sortLabels.playCount' => 'Reproduções',
|
||||
@@ -2628,6 +2646,7 @@ extension on TranslationsPt {
|
||||
'libraries.sortLabels.random' => 'Aleatório',
|
||||
'libraries.sortLabels.dateShared' => 'Data de compartilhamento',
|
||||
'libraries.sortLabels.latestEpisodeAirDate' => 'Última data de exibição do episódio',
|
||||
'libraries.sortLabels.lastEpisodeDateAdded' => 'Data de adição do último episódio',
|
||||
'about.title' => 'Sobre',
|
||||
'about.openSourceLicenses' => 'Licenças Open Source',
|
||||
'about.versionLabel' => ({required Object version}) => 'Versão ${version}',
|
||||
@@ -2860,6 +2879,7 @@ extension on TranslationsPt {
|
||||
'downloads.unwatchedOnly' => 'Apenas não assistidos',
|
||||
'downloads.nextNUnwatched' => ({required Object count}) => 'Próximos ${count} não assistidos',
|
||||
'downloads.customAmount' => 'Quantidade personalizada...',
|
||||
'downloads.includeSpecials' => 'Incluir especiais',
|
||||
'downloads.howManyEpisodes' => 'Quantos episódios?',
|
||||
'downloads.itemsQueued' => ({required Object count}) => '${count} itens na fila de download',
|
||||
'downloads.keepSynced' => 'Manter sincronizado',
|
||||
@@ -2932,6 +2952,8 @@ extension on TranslationsPt {
|
||||
'companionRemote.pairing.authFailed' => 'Falha na autenticação. Ambos os dispositivos precisam da mesma conta Plex.',
|
||||
'companionRemote.pairing.failedToConnect' => ({required Object error}) => 'Falha ao conectar: ${error}',
|
||||
'companionRemote.remote.disconnectConfirm' => 'Deseja desconectar da sessão remota?',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'companionRemote.remote.reconnecting' => 'Reconectando...',
|
||||
'companionRemote.remote.attemptOf' => ({required Object current}) => 'Tentativa ${current} de 5',
|
||||
'companionRemote.remote.retryNow' => 'Tentar Agora',
|
||||
@@ -2945,8 +2967,6 @@ extension on TranslationsPt {
|
||||
'companionRemote.remote.tabSearch' => 'Buscar',
|
||||
'companionRemote.remote.tabDownloads' => 'Downloads',
|
||||
'companionRemote.remote.tabSettings' => 'Configurações',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'companionRemote.remote.previous' => 'Anterior',
|
||||
'companionRemote.remote.playPause' => 'Reproduzir/Pausar',
|
||||
'companionRemote.remote.next' => 'Próximo',
|
||||
@@ -3006,6 +3026,7 @@ extension on TranslationsPt {
|
||||
'performanceOverlay.maxCll' => 'MaxCLL',
|
||||
'performanceOverlay.maxFall' => 'MaxFALL',
|
||||
'performanceOverlay.cacheUsed' => 'Cache usado',
|
||||
'performanceOverlay.cacheLimit' => 'Limite do cache',
|
||||
'performanceOverlay.speed' => 'Velocidade',
|
||||
'performanceOverlay.player' => 'Player',
|
||||
'performanceOverlay.memory' => 'Memória',
|
||||
@@ -3158,10 +3179,8 @@ extension on TranslationsPt {
|
||||
'trackers.libraryFilter.libraries' => 'Bibliotecas',
|
||||
'trackers.libraryFilter.noLibraries' => 'Nenhuma biblioteca disponível',
|
||||
'addServer.addJellyfinTitle' => 'Adicionar servidor Jellyfin',
|
||||
'addServer.jellyfinUrlIntro' => 'Insira a URL do servidor, ex. `https://jellyfin.example.com`.',
|
||||
'addServer.jellyfinUrlsIntro' => 'Insira uma ou mais URLs do servidor, separadas por vírgulas. O Plezy usará a URL acessível com a menor latência.',
|
||||
'addServer.serverUrl' => 'URL do servidor',
|
||||
'addServer.serverUrls' => 'URLs do servidor',
|
||||
'addServer.serverUrlsHelper' => 'Vários URLs permitidos, separados por vírgulas.',
|
||||
'addServer.findServer' => 'Encontrar servidor',
|
||||
'addServer.searchingLocalServers' => 'A procurar servidores Jellyfin locais...',
|
||||
'addServer.localServers' => 'Servidores Jellyfin locais',
|
||||
@@ -3174,17 +3193,12 @@ extension on TranslationsPt {
|
||||
'addServer.signInFailed' => ({required Object error}) => 'Falha ao entrar: ${error}',
|
||||
'addServer.quickConnectFailed' => ({required Object error}) => 'Quick Connect falhou: ${error}',
|
||||
'addServer.addPlexTitle' => 'Entrar com Plex',
|
||||
'addServer.plexAuthIntro' => 'Entre com um navegador ou código QR.',
|
||||
'addServer.plexQRPrompt' => 'Escaneie este código QR para entrar.',
|
||||
'addServer.waitingForPlexConfirmation' => 'Aguardando o plex.tv confirmar o login…',
|
||||
'addServer.pinExpired' => 'O PIN expirou antes do login. Tente novamente.',
|
||||
'addServer.duplicatePlexAccount' => 'Você já entrou no Plex. Saia para trocar de conta.',
|
||||
'addServer.failedToRegisterAccount' => ({required Object error}) => 'Falha ao registrar a conta: ${error}',
|
||||
'addServer.enterJellyfinUrlError' => 'Insira a URL do seu servidor Jellyfin',
|
||||
'addServer.addConnectionTitle' => 'Adicionar conexão',
|
||||
'addServer.addConnectionTitleScoped' => ({required Object name}) => 'Adicionar a ${name}',
|
||||
'addServer.addConnectionIntroGlobal' => 'Adicione outro servidor de mídia. Plex e Jellyfin aparecem juntos no Início.',
|
||||
'addServer.addConnectionIntroScoped' => 'Adicione um novo servidor ou pegue um emprestado de outro perfil.',
|
||||
'addServer.signInWithPlexCard' => 'Entrar com Plex',
|
||||
'addServer.signInWithPlexCardSubtitle' => 'Autorize este dispositivo. Servidores compartilhados são adicionados.',
|
||||
'addServer.signInWithPlexCardSubtitleScoped' => 'Autorize uma conta Plex. Usuários Home viram perfis.',
|
||||
|
||||
+40
-26
@@ -115,7 +115,6 @@ class _TranslationsAuthRu extends TranslationsAuthEn {
|
||||
@override String get or => 'или';
|
||||
@override String get connectToJellyfin => 'Подключиться к Jellyfin';
|
||||
@override String get useQuickConnect => 'Использовать Quick Connect';
|
||||
@override String get quickConnectCode => 'Код Quick Connect';
|
||||
@override String get quickConnectInstructions => 'Откройте Quick Connect в Jellyfin и введите этот код.';
|
||||
@override String get quickConnectWaiting => 'Ожидание подтверждения…';
|
||||
@override String get quickConnectCancel => 'Отмена';
|
||||
@@ -162,6 +161,7 @@ class _TranslationsCommonRu extends TranslationsCommonEn {
|
||||
@override String get ok => 'OK';
|
||||
@override String get off => 'Выкл.';
|
||||
@override String seasonNumber({required Object number}) => 'Сезон ${number}';
|
||||
@override String episodeNumberTitle({required Object number, required Object title}) => 'Эпизод ${number} - ${title}';
|
||||
@override String chapterNumber({required Object number}) => 'Глава ${number}';
|
||||
@override String get reconnect => 'Переподключить';
|
||||
@override String get exit => 'Выход';
|
||||
@@ -244,6 +244,12 @@ class _TranslationsSettingsRu extends TranslationsSettingsEn {
|
||||
@override String get gridView => 'Сетка';
|
||||
@override String get listView => 'Список';
|
||||
@override String get showHeroSection => 'Показать раздел избранного';
|
||||
@override String get continueWatchingAction => 'Действие для «Продолжить просмотр»';
|
||||
@override String get continueWatchingPlay => 'Воспроизвести';
|
||||
@override String get continueWatchingDetails => 'Открыть сведения';
|
||||
@override String get episodeAction => 'Действие для эпизодов';
|
||||
@override String get episodePlay => 'Воспроизвести';
|
||||
@override String get episodeDetails => 'Открыть сведения';
|
||||
@override String get useGlobalHubs => 'Использовать макет главной';
|
||||
@override String get useGlobalHubsDescription => 'Показывать единые разделы главной. Иначе использовать рекомендации библиотек.';
|
||||
@override String get showServerNameOnHubs => 'Показывать имя сервера в хабах';
|
||||
@@ -260,6 +266,8 @@ class _TranslationsSettingsRu extends TranslationsSettingsEn {
|
||||
@override String get showSeasonPostersOnTabsDescription => 'Показывать постер каждого сезона над его вкладкой';
|
||||
@override String get tvFullCardLayout => 'Полные TV-карточки';
|
||||
@override String get tvFullCardLayoutDescription => 'Использовать TV-карточки только с изображением и именами актёров поверх него';
|
||||
@override String get focusGlow => 'Свечение при фокусе';
|
||||
@override String get focusGlowDescription => 'Показывать мягкое свечение вокруг карточки в фокусе';
|
||||
@override String get hideSpoilers => 'Скрыть спойлеры непросмотренных эпизодов';
|
||||
@override String get hideSpoilersDescription => 'Размывать миниатюры и описания непросмотренных серий';
|
||||
@override String get playerBackend => 'Бэкенд плеера';
|
||||
@@ -491,8 +499,8 @@ class _TranslationsMediaMenuRu extends TranslationsMediaMenuEn {
|
||||
@override String get markAsWatched => 'Отметить как просмотренное';
|
||||
@override String get markAsUnwatched => 'Отметить как непросмотренное';
|
||||
@override String get removeFromContinueWatching => 'Удалить из «Продолжить просмотр»';
|
||||
@override String get viewDetails => 'Показать сведения';
|
||||
@override String get goToSeries => 'Перейти к сериалу';
|
||||
@override String get goToSeason => 'Перейти к сезону';
|
||||
@override String get shufflePlay => 'Случайное воспроизведение';
|
||||
@override String get shuffleNotAvailableOffline => 'Перемешивание недоступно офлайн';
|
||||
@override String get fileInfo => 'Информация о файле';
|
||||
@@ -672,7 +680,6 @@ class _TranslationsMessagesRu extends TranslationsMessagesEn {
|
||||
@override String get fileInfoNotAvailable => 'Информация о файле недоступна';
|
||||
@override String errorLoadingFileInfo({required Object error}) => 'Ошибка загрузки информации о файле: ${error}';
|
||||
@override String get errorLoadingSeries => 'Ошибка загрузки сериала';
|
||||
@override String get errorLoadingSeason => 'Ошибка загрузки сезона';
|
||||
@override String get musicNotSupported => 'Воспроизведение музыки пока не поддерживается';
|
||||
@override String get noDescriptionAvailable => 'Описание недоступно';
|
||||
@override String get noProfilesAvailable => 'Профили недоступны';
|
||||
@@ -726,6 +733,9 @@ class _TranslationsSubtitlingStylingRu extends TranslationsSubtitlingStylingEn {
|
||||
@override String get assOverride => 'Переопределение ASS';
|
||||
@override String get bold => 'Жирный';
|
||||
@override String get italic => 'Курсив';
|
||||
@override String get renderResolution => 'Разрешение отрисовки';
|
||||
@override String get renderResolutionScreen => 'Разрешение экрана';
|
||||
@override String get renderResolutionVideo => 'Разрешение видео';
|
||||
}
|
||||
|
||||
// Path: mpvConfig
|
||||
@@ -1278,6 +1288,7 @@ class _TranslationsDownloadsRu extends TranslationsDownloadsEn {
|
||||
@override String get unwatchedOnly => 'Только непросмотренные';
|
||||
@override String nextNUnwatched({required Object count}) => 'Следующие ${count} непросмотренных';
|
||||
@override String get customAmount => 'Указать количество...';
|
||||
@override String get includeSpecials => 'Включить спецвыпуски';
|
||||
@override String get howManyEpisodes => 'Сколько эпизодов?';
|
||||
@override String itemsQueued({required Object count}) => '${count} элементов добавлено в очередь загрузки';
|
||||
@override String get keepSynced => 'Синхронизировать';
|
||||
@@ -1402,6 +1413,7 @@ class _TranslationsPerformanceOverlayRu extends TranslationsPerformanceOverlayEn
|
||||
@override String get maxCll => 'MaxCLL';
|
||||
@override String get maxFall => 'MaxFALL';
|
||||
@override String get cacheUsed => 'Кэш использован';
|
||||
@override String get cacheLimit => 'Лимит кэша';
|
||||
@override String get speed => 'Скорость';
|
||||
@override String get player => 'Плеер';
|
||||
@override String get memory => 'Память';
|
||||
@@ -1597,10 +1609,8 @@ class _TranslationsAddServerRu extends TranslationsAddServerEn {
|
||||
|
||||
// Translations
|
||||
@override String get addJellyfinTitle => 'Добавить сервер Jellyfin';
|
||||
@override String get jellyfinUrlIntro => 'Введите URL сервера, например `https://jellyfin.example.com`.';
|
||||
@override String get jellyfinUrlsIntro => 'Введите один или несколько URL сервера, разделяя их запятыми. Plezy будет использовать доступный URL с минимальной задержкой.';
|
||||
@override String get serverUrl => 'URL сервера';
|
||||
@override String get serverUrls => 'URL сервера';
|
||||
@override String get serverUrlsHelper => 'Можно указать несколько URL через запятую.';
|
||||
@override String get findServer => 'Найти сервер';
|
||||
@override String get searchingLocalServers => 'Поиск локальных серверов Jellyfin...';
|
||||
@override String get localServers => 'Локальные серверы Jellyfin';
|
||||
@@ -1613,17 +1623,12 @@ class _TranslationsAddServerRu extends TranslationsAddServerEn {
|
||||
@override String signInFailed({required Object error}) => 'Не удалось войти: ${error}';
|
||||
@override String quickConnectFailed({required Object error}) => 'Quick Connect не удался: ${error}';
|
||||
@override String get addPlexTitle => 'Войти через Plex';
|
||||
@override String get plexAuthIntro => 'Войдите через браузер или QR-код.';
|
||||
@override String get plexQRPrompt => 'Отсканируйте этот QR-код, чтобы войти.';
|
||||
@override String get waitingForPlexConfirmation => 'Ожидание подтверждения от plex.tv…';
|
||||
@override String get pinExpired => 'Срок действия PIN истёк до входа. Попробуйте снова.';
|
||||
@override String get duplicatePlexAccount => 'В Plex уже выполнен вход. Выйдите, чтобы сменить аккаунт.';
|
||||
@override String failedToRegisterAccount({required Object error}) => 'Не удалось зарегистрировать учётную запись: ${error}';
|
||||
@override String get enterJellyfinUrlError => 'Введите URL вашего сервера Jellyfin';
|
||||
@override String get addConnectionTitle => 'Добавить подключение';
|
||||
@override String addConnectionTitleScoped({required Object name}) => 'Добавить в ${name}';
|
||||
@override String get addConnectionIntroGlobal => 'Добавьте еще один медиасервер. Plex и Jellyfin появятся вместе на главной.';
|
||||
@override String get addConnectionIntroScoped => 'Добавьте новый сервер или одолжите из другого профиля.';
|
||||
@override String get signInWithPlexCard => 'Войти через Plex';
|
||||
@override String get signInWithPlexCardSubtitle => 'Авторизуйте это устройство. Общие серверы будут добавлены.';
|
||||
@override String get signInWithPlexCardSubtitleScoped => 'Авторизуйте аккаунт Plex. Пользователи Home станут профилями.';
|
||||
@@ -1740,6 +1745,7 @@ class _TranslationsLibrariesSortLabelsRu extends TranslationsLibrariesSortLabels
|
||||
@override String get rating => 'Рейтинг';
|
||||
@override String get communityRating => 'Оценка сообщества';
|
||||
@override String get criticRating => 'Оценка критиков';
|
||||
@override String get userRating => 'Пользовательская оценка';
|
||||
@override String get lastPlayed => 'Последний просмотр';
|
||||
@override String get datePlayed => 'Дата просмотра';
|
||||
@override String get playCount => 'Количество просмотров';
|
||||
@@ -1753,6 +1759,7 @@ class _TranslationsLibrariesSortLabelsRu extends TranslationsLibrariesSortLabels
|
||||
@override String get random => 'Случайно';
|
||||
@override String get dateShared => 'Дата открытия доступа';
|
||||
@override String get latestEpisodeAirDate => 'Дата выхода последнего эпизода';
|
||||
@override String get lastEpisodeDateAdded => 'Дата добавления последнего эпизода';
|
||||
}
|
||||
|
||||
// Path: companionRemote.session
|
||||
@@ -1931,7 +1938,6 @@ extension on TranslationsRu {
|
||||
'auth.or' => 'или',
|
||||
'auth.connectToJellyfin' => 'Подключиться к Jellyfin',
|
||||
'auth.useQuickConnect' => 'Использовать Quick Connect',
|
||||
'auth.quickConnectCode' => 'Код Quick Connect',
|
||||
'auth.quickConnectInstructions' => 'Откройте Quick Connect в Jellyfin и введите этот код.',
|
||||
'auth.quickConnectWaiting' => 'Ожидание подтверждения…',
|
||||
'auth.quickConnectCancel' => 'Отмена',
|
||||
@@ -1969,6 +1975,7 @@ extension on TranslationsRu {
|
||||
'common.ok' => 'OK',
|
||||
'common.off' => 'Выкл.',
|
||||
'common.seasonNumber' => ({required Object number}) => 'Сезон ${number}',
|
||||
'common.episodeNumberTitle' => ({required Object number, required Object title}) => 'Эпизод ${number} - ${title}',
|
||||
'common.chapterNumber' => ({required Object number}) => 'Глава ${number}',
|
||||
'common.reconnect' => 'Переподключить',
|
||||
'common.exit' => 'Выход',
|
||||
@@ -2024,6 +2031,12 @@ extension on TranslationsRu {
|
||||
'settings.gridView' => 'Сетка',
|
||||
'settings.listView' => 'Список',
|
||||
'settings.showHeroSection' => 'Показать раздел избранного',
|
||||
'settings.continueWatchingAction' => 'Действие для «Продолжить просмотр»',
|
||||
'settings.continueWatchingPlay' => 'Воспроизвести',
|
||||
'settings.continueWatchingDetails' => 'Открыть сведения',
|
||||
'settings.episodeAction' => 'Действие для эпизодов',
|
||||
'settings.episodePlay' => 'Воспроизвести',
|
||||
'settings.episodeDetails' => 'Открыть сведения',
|
||||
'settings.useGlobalHubs' => 'Использовать макет главной',
|
||||
'settings.useGlobalHubsDescription' => 'Показывать единые разделы главной. Иначе использовать рекомендации библиотек.',
|
||||
'settings.showServerNameOnHubs' => 'Показывать имя сервера в хабах',
|
||||
@@ -2040,6 +2053,8 @@ extension on TranslationsRu {
|
||||
'settings.showSeasonPostersOnTabsDescription' => 'Показывать постер каждого сезона над его вкладкой',
|
||||
'settings.tvFullCardLayout' => 'Полные TV-карточки',
|
||||
'settings.tvFullCardLayoutDescription' => 'Использовать TV-карточки только с изображением и именами актёров поверх него',
|
||||
'settings.focusGlow' => 'Свечение при фокусе',
|
||||
'settings.focusGlowDescription' => 'Показывать мягкое свечение вокруг карточки в фокусе',
|
||||
'settings.hideSpoilers' => 'Скрыть спойлеры непросмотренных эпизодов',
|
||||
'settings.hideSpoilersDescription' => 'Размывать миниатюры и описания непросмотренных серий',
|
||||
'settings.playerBackend' => 'Бэкенд плеера',
|
||||
@@ -2259,8 +2274,8 @@ extension on TranslationsRu {
|
||||
'mediaMenu.markAsWatched' => 'Отметить как просмотренное',
|
||||
'mediaMenu.markAsUnwatched' => 'Отметить как непросмотренное',
|
||||
'mediaMenu.removeFromContinueWatching' => 'Удалить из «Продолжить просмотр»',
|
||||
'mediaMenu.viewDetails' => 'Показать сведения',
|
||||
'mediaMenu.goToSeries' => 'Перейти к сериалу',
|
||||
'mediaMenu.goToSeason' => 'Перейти к сезону',
|
||||
'mediaMenu.shufflePlay' => 'Случайное воспроизведение',
|
||||
'mediaMenu.shuffleNotAvailableOffline' => 'Перемешивание недоступно офлайн',
|
||||
'mediaMenu.fileInfo' => 'Информация о файле',
|
||||
@@ -2392,7 +2407,6 @@ extension on TranslationsRu {
|
||||
'messages.fileInfoNotAvailable' => 'Информация о файле недоступна',
|
||||
'messages.errorLoadingFileInfo' => ({required Object error}) => 'Ошибка загрузки информации о файле: ${error}',
|
||||
'messages.errorLoadingSeries' => 'Ошибка загрузки сериала',
|
||||
'messages.errorLoadingSeason' => 'Ошибка загрузки сезона',
|
||||
'messages.musicNotSupported' => 'Воспроизведение музыки пока не поддерживается',
|
||||
'messages.noDescriptionAvailable' => 'Описание недоступно',
|
||||
'messages.noProfilesAvailable' => 'Профили недоступны',
|
||||
@@ -2424,6 +2438,8 @@ extension on TranslationsRu {
|
||||
'messages.logsUploaded' => 'Логи загружены',
|
||||
'messages.logsUploadFailed' => 'Не удалось загрузить логи',
|
||||
'messages.logId' => 'ID лога',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'subtitlingStyling.text' => 'Текст',
|
||||
'subtitlingStyling.border' => 'Обводка',
|
||||
'subtitlingStyling.background' => 'Фон',
|
||||
@@ -2431,14 +2447,15 @@ extension on TranslationsRu {
|
||||
'subtitlingStyling.textColor' => 'Цвет текста',
|
||||
'subtitlingStyling.borderSize' => 'Размер обводки',
|
||||
'subtitlingStyling.borderColor' => 'Цвет обводки',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'subtitlingStyling.backgroundOpacity' => 'Прозрачность фона',
|
||||
'subtitlingStyling.backgroundColor' => 'Цвет фона',
|
||||
'subtitlingStyling.position' => 'Позиция',
|
||||
'subtitlingStyling.assOverride' => 'Переопределение ASS',
|
||||
'subtitlingStyling.bold' => 'Жирный',
|
||||
'subtitlingStyling.italic' => 'Курсив',
|
||||
'subtitlingStyling.renderResolution' => 'Разрешение отрисовки',
|
||||
'subtitlingStyling.renderResolutionScreen' => 'Разрешение экрана',
|
||||
'subtitlingStyling.renderResolutionVideo' => 'Разрешение видео',
|
||||
'mpvConfig.title' => 'mpv.conf',
|
||||
'mpvConfig.description' => 'Расширенные настройки видеоплеера',
|
||||
'mpvConfig.presets' => 'Пресеты',
|
||||
@@ -2615,6 +2632,7 @@ extension on TranslationsRu {
|
||||
'libraries.sortLabels.rating' => 'Рейтинг',
|
||||
'libraries.sortLabels.communityRating' => 'Оценка сообщества',
|
||||
'libraries.sortLabels.criticRating' => 'Оценка критиков',
|
||||
'libraries.sortLabels.userRating' => 'Пользовательская оценка',
|
||||
'libraries.sortLabels.lastPlayed' => 'Последний просмотр',
|
||||
'libraries.sortLabels.datePlayed' => 'Дата просмотра',
|
||||
'libraries.sortLabels.playCount' => 'Количество просмотров',
|
||||
@@ -2628,6 +2646,7 @@ extension on TranslationsRu {
|
||||
'libraries.sortLabels.random' => 'Случайно',
|
||||
'libraries.sortLabels.dateShared' => 'Дата открытия доступа',
|
||||
'libraries.sortLabels.latestEpisodeAirDate' => 'Дата выхода последнего эпизода',
|
||||
'libraries.sortLabels.lastEpisodeDateAdded' => 'Дата добавления последнего эпизода',
|
||||
'about.title' => 'О приложении',
|
||||
'about.openSourceLicenses' => 'Лицензии открытого ПО',
|
||||
'about.versionLabel' => ({required Object version}) => 'Версия ${version}',
|
||||
@@ -2860,6 +2879,7 @@ extension on TranslationsRu {
|
||||
'downloads.unwatchedOnly' => 'Только непросмотренные',
|
||||
'downloads.nextNUnwatched' => ({required Object count}) => 'Следующие ${count} непросмотренных',
|
||||
'downloads.customAmount' => 'Указать количество...',
|
||||
'downloads.includeSpecials' => 'Включить спецвыпуски',
|
||||
'downloads.howManyEpisodes' => 'Сколько эпизодов?',
|
||||
'downloads.itemsQueued' => ({required Object count}) => '${count} элементов добавлено в очередь загрузки',
|
||||
'downloads.keepSynced' => 'Синхронизировать',
|
||||
@@ -2932,6 +2952,8 @@ extension on TranslationsRu {
|
||||
'companionRemote.pairing.authFailed' => 'Аутентификация не удалась. На обоих устройствах нужен один аккаунт Plex.',
|
||||
'companionRemote.pairing.failedToConnect' => ({required Object error}) => 'Не удалось подключиться: ${error}',
|
||||
'companionRemote.remote.disconnectConfirm' => 'Отключиться от удалённой сессии?',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'companionRemote.remote.reconnecting' => 'Переподключение...',
|
||||
'companionRemote.remote.attemptOf' => ({required Object current}) => 'Попытка ${current} из 5',
|
||||
'companionRemote.remote.retryNow' => 'Повторить сейчас',
|
||||
@@ -2945,8 +2967,6 @@ extension on TranslationsRu {
|
||||
'companionRemote.remote.tabSearch' => 'Поиск',
|
||||
'companionRemote.remote.tabDownloads' => 'Загрузки',
|
||||
'companionRemote.remote.tabSettings' => 'Настройки',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'companionRemote.remote.previous' => 'Предыдущий',
|
||||
'companionRemote.remote.playPause' => 'Воспроизведение/Пауза',
|
||||
'companionRemote.remote.next' => 'Следующий',
|
||||
@@ -3006,6 +3026,7 @@ extension on TranslationsRu {
|
||||
'performanceOverlay.maxCll' => 'MaxCLL',
|
||||
'performanceOverlay.maxFall' => 'MaxFALL',
|
||||
'performanceOverlay.cacheUsed' => 'Кэш использован',
|
||||
'performanceOverlay.cacheLimit' => 'Лимит кэша',
|
||||
'performanceOverlay.speed' => 'Скорость',
|
||||
'performanceOverlay.player' => 'Плеер',
|
||||
'performanceOverlay.memory' => 'Память',
|
||||
@@ -3158,10 +3179,8 @@ extension on TranslationsRu {
|
||||
'trackers.libraryFilter.libraries' => 'Библиотеки',
|
||||
'trackers.libraryFilter.noLibraries' => 'Библиотеки недоступны',
|
||||
'addServer.addJellyfinTitle' => 'Добавить сервер Jellyfin',
|
||||
'addServer.jellyfinUrlIntro' => 'Введите URL сервера, например `https://jellyfin.example.com`.',
|
||||
'addServer.jellyfinUrlsIntro' => 'Введите один или несколько URL сервера, разделяя их запятыми. Plezy будет использовать доступный URL с минимальной задержкой.',
|
||||
'addServer.serverUrl' => 'URL сервера',
|
||||
'addServer.serverUrls' => 'URL сервера',
|
||||
'addServer.serverUrlsHelper' => 'Можно указать несколько URL через запятую.',
|
||||
'addServer.findServer' => 'Найти сервер',
|
||||
'addServer.searchingLocalServers' => 'Поиск локальных серверов Jellyfin...',
|
||||
'addServer.localServers' => 'Локальные серверы Jellyfin',
|
||||
@@ -3174,17 +3193,12 @@ extension on TranslationsRu {
|
||||
'addServer.signInFailed' => ({required Object error}) => 'Не удалось войти: ${error}',
|
||||
'addServer.quickConnectFailed' => ({required Object error}) => 'Quick Connect не удался: ${error}',
|
||||
'addServer.addPlexTitle' => 'Войти через Plex',
|
||||
'addServer.plexAuthIntro' => 'Войдите через браузер или QR-код.',
|
||||
'addServer.plexQRPrompt' => 'Отсканируйте этот QR-код, чтобы войти.',
|
||||
'addServer.waitingForPlexConfirmation' => 'Ожидание подтверждения от plex.tv…',
|
||||
'addServer.pinExpired' => 'Срок действия PIN истёк до входа. Попробуйте снова.',
|
||||
'addServer.duplicatePlexAccount' => 'В Plex уже выполнен вход. Выйдите, чтобы сменить аккаунт.',
|
||||
'addServer.failedToRegisterAccount' => ({required Object error}) => 'Не удалось зарегистрировать учётную запись: ${error}',
|
||||
'addServer.enterJellyfinUrlError' => 'Введите URL вашего сервера Jellyfin',
|
||||
'addServer.addConnectionTitle' => 'Добавить подключение',
|
||||
'addServer.addConnectionTitleScoped' => ({required Object name}) => 'Добавить в ${name}',
|
||||
'addServer.addConnectionIntroGlobal' => 'Добавьте еще один медиасервер. Plex и Jellyfin появятся вместе на главной.',
|
||||
'addServer.addConnectionIntroScoped' => 'Добавьте новый сервер или одолжите из другого профиля.',
|
||||
'addServer.signInWithPlexCard' => 'Войти через Plex',
|
||||
'addServer.signInWithPlexCardSubtitle' => 'Авторизуйте это устройство. Общие серверы будут добавлены.',
|
||||
'addServer.signInWithPlexCardSubtitleScoped' => 'Авторизуйте аккаунт Plex. Пользователи Home станут профилями.',
|
||||
|
||||
+40
-26
@@ -115,7 +115,6 @@ class _TranslationsAuthSv extends TranslationsAuthEn {
|
||||
@override String get or => 'eller';
|
||||
@override String get connectToJellyfin => 'Anslut till Jellyfin';
|
||||
@override String get useQuickConnect => 'Använd Quick Connect';
|
||||
@override String get quickConnectCode => 'Quick Connect-kod';
|
||||
@override String get quickConnectInstructions => 'Öppna Quick Connect i Jellyfin och ange den här koden.';
|
||||
@override String get quickConnectWaiting => 'Väntar på godkännande…';
|
||||
@override String get quickConnectCancel => 'Avbryt';
|
||||
@@ -162,6 +161,7 @@ class _TranslationsCommonSv extends TranslationsCommonEn {
|
||||
@override String get ok => 'OK';
|
||||
@override String get off => 'Av';
|
||||
@override String seasonNumber({required Object number}) => 'Säsong ${number}';
|
||||
@override String episodeNumberTitle({required Object number, required Object title}) => 'Avsnitt ${number} - ${title}';
|
||||
@override String chapterNumber({required Object number}) => 'Kapitel ${number}';
|
||||
@override String get reconnect => 'Återanslut';
|
||||
@override String get exit => 'Avsluta';
|
||||
@@ -244,6 +244,12 @@ class _TranslationsSettingsSv extends TranslationsSettingsEn {
|
||||
@override String get gridView => 'Rutnät';
|
||||
@override String get listView => 'Lista';
|
||||
@override String get showHeroSection => 'Visa hjältesektion';
|
||||
@override String get continueWatchingAction => 'Åtgärd för Fortsätt titta';
|
||||
@override String get continueWatchingPlay => 'Spela';
|
||||
@override String get continueWatchingDetails => 'Öppna detaljer';
|
||||
@override String get episodeAction => 'Åtgärd för avsnitt';
|
||||
@override String get episodePlay => 'Spela';
|
||||
@override String get episodeDetails => 'Öppna detaljer';
|
||||
@override String get useGlobalHubs => 'Använd startlayout';
|
||||
@override String get useGlobalHubsDescription => 'Visa enhetliga startsideshubbar. Annars används biblioteksrekommendationer.';
|
||||
@override String get showServerNameOnHubs => 'Visa servernamn på hubbar';
|
||||
@@ -260,6 +266,8 @@ class _TranslationsSettingsSv extends TranslationsSettingsEn {
|
||||
@override String get showSeasonPostersOnTabsDescription => 'Visa varje säsongs affisch ovanför fliken';
|
||||
@override String get tvFullCardLayout => 'Heltäckande TV-kort';
|
||||
@override String get tvFullCardLayoutDescription => 'Använd TV-kort med enbart bild och skådespelarnamn ovanpå';
|
||||
@override String get focusGlow => 'Fokusglöd';
|
||||
@override String get focusGlowDescription => 'Visa en mjuk glöd runt kortet i fokus';
|
||||
@override String get hideSpoilers => 'Dölj spoilers för osedda avsnitt';
|
||||
@override String get hideSpoilersDescription => 'Sudda miniatyrbilder och beskrivningar för osedda avsnitt';
|
||||
@override String get playerBackend => 'Spelarmotor';
|
||||
@@ -491,8 +499,8 @@ class _TranslationsMediaMenuSv extends TranslationsMediaMenuEn {
|
||||
@override String get markAsWatched => 'Markera som sedd';
|
||||
@override String get markAsUnwatched => 'Markera som osedd';
|
||||
@override String get removeFromContinueWatching => 'Ta bort från Fortsätt titta';
|
||||
@override String get viewDetails => 'Visa detaljer';
|
||||
@override String get goToSeries => 'Gå till serie';
|
||||
@override String get goToSeason => 'Gå till säsong';
|
||||
@override String get shufflePlay => 'Blanda uppspelning';
|
||||
@override String get shuffleNotAvailableOffline => 'Blandad uppspelning är inte tillgänglig offline';
|
||||
@override String get fileInfo => 'Filinformation';
|
||||
@@ -672,7 +680,6 @@ class _TranslationsMessagesSv extends TranslationsMessagesEn {
|
||||
@override String get fileInfoNotAvailable => 'Filinformation inte tillgänglig';
|
||||
@override String errorLoadingFileInfo({required Object error}) => 'Fel vid laddning av filinformation: ${error}';
|
||||
@override String get errorLoadingSeries => 'Fel vid laddning av serie';
|
||||
@override String get errorLoadingSeason => 'Fel vid laddning av säsong';
|
||||
@override String get musicNotSupported => 'Musikuppspelning stöds inte ännu';
|
||||
@override String get noDescriptionAvailable => 'Ingen beskrivning tillgänglig';
|
||||
@override String get noProfilesAvailable => 'Inga profiler tillgängliga';
|
||||
@@ -726,6 +733,9 @@ class _TranslationsSubtitlingStylingSv extends TranslationsSubtitlingStylingEn {
|
||||
@override String get assOverride => 'ASS-åsidosättning';
|
||||
@override String get bold => 'Fet';
|
||||
@override String get italic => 'Kursiv';
|
||||
@override String get renderResolution => 'Renderingsupplösning';
|
||||
@override String get renderResolutionScreen => 'Skärmupplösning';
|
||||
@override String get renderResolutionVideo => 'Videoupplösning';
|
||||
}
|
||||
|
||||
// Path: mpvConfig
|
||||
@@ -1278,6 +1288,7 @@ class _TranslationsDownloadsSv extends TranslationsDownloadsEn {
|
||||
@override String get unwatchedOnly => 'Endast osedda';
|
||||
@override String nextNUnwatched({required Object count}) => 'Nästa ${count} osedda';
|
||||
@override String get customAmount => 'Ange antal...';
|
||||
@override String get includeSpecials => 'Inkludera specialavsnitt';
|
||||
@override String get howManyEpisodes => 'Hur många avsnitt?';
|
||||
@override String itemsQueued({required Object count}) => '${count} objekt köade för nedladdning';
|
||||
@override String get keepSynced => 'Håll synkroniserad';
|
||||
@@ -1402,6 +1413,7 @@ class _TranslationsPerformanceOverlaySv extends TranslationsPerformanceOverlayEn
|
||||
@override String get maxCll => 'MaxCLL';
|
||||
@override String get maxFall => 'MaxFALL';
|
||||
@override String get cacheUsed => 'Cache använd';
|
||||
@override String get cacheLimit => 'Cachegräns';
|
||||
@override String get speed => 'Hastighet';
|
||||
@override String get player => 'Spelare';
|
||||
@override String get memory => 'Minne';
|
||||
@@ -1597,10 +1609,8 @@ class _TranslationsAddServerSv extends TranslationsAddServerEn {
|
||||
|
||||
// Translations
|
||||
@override String get addJellyfinTitle => 'Lägg till Jellyfin-server';
|
||||
@override String get jellyfinUrlIntro => 'Ange server-URL, t.ex. `https://jellyfin.example.com`.';
|
||||
@override String get jellyfinUrlsIntro => 'Ange en eller flera server-URL:er, separerade med kommatecken. Plezy använder den nåbara URL:en med lägst latens.';
|
||||
@override String get serverUrl => 'Server-URL';
|
||||
@override String get serverUrls => 'Server-URL:er';
|
||||
@override String get serverUrlsHelper => 'Flera URL:er tillåtna, separerade med kommatecken.';
|
||||
@override String get findServer => 'Hitta server';
|
||||
@override String get searchingLocalServers => 'Söker efter lokala Jellyfin-servrar...';
|
||||
@override String get localServers => 'Lokala Jellyfin-servrar';
|
||||
@@ -1613,17 +1623,12 @@ class _TranslationsAddServerSv extends TranslationsAddServerEn {
|
||||
@override String signInFailed({required Object error}) => 'Inloggning misslyckades: ${error}';
|
||||
@override String quickConnectFailed({required Object error}) => 'Quick Connect misslyckades: ${error}';
|
||||
@override String get addPlexTitle => 'Logga in med Plex';
|
||||
@override String get plexAuthIntro => 'Logga in med en webbläsare eller QR-kod.';
|
||||
@override String get plexQRPrompt => 'Skanna denna QR-kod för att logga in.';
|
||||
@override String get waitingForPlexConfirmation => 'Väntar på att plex.tv ska bekräfta inloggningen…';
|
||||
@override String get pinExpired => 'PIN-koden gick ut innan inloggning. Försök igen.';
|
||||
@override String get duplicatePlexAccount => 'Redan inloggad på Plex. Logga ut för att byta konto.';
|
||||
@override String failedToRegisterAccount({required Object error}) => 'Kunde inte registrera kontot: ${error}';
|
||||
@override String get enterJellyfinUrlError => 'Ange URL till din Jellyfin-server';
|
||||
@override String get addConnectionTitle => 'Lägg till anslutning';
|
||||
@override String addConnectionTitleScoped({required Object name}) => 'Lägg till i ${name}';
|
||||
@override String get addConnectionIntroGlobal => 'Lägg till en annan medieserver. Plex och Jellyfin visas tillsammans på Hem.';
|
||||
@override String get addConnectionIntroScoped => 'Lägg till en ny server, eller låna en från en annan profil.';
|
||||
@override String get signInWithPlexCard => 'Logga in med Plex';
|
||||
@override String get signInWithPlexCardSubtitle => 'Auktorisera den här enheten. Delade servrar läggs till.';
|
||||
@override String get signInWithPlexCardSubtitleScoped => 'Auktorisera ett Plex-konto. Home-användare blir profiler.';
|
||||
@@ -1740,6 +1745,7 @@ class _TranslationsLibrariesSortLabelsSv extends TranslationsLibrariesSortLabels
|
||||
@override String get rating => 'Betyg';
|
||||
@override String get communityRating => 'Användarbetyg';
|
||||
@override String get criticRating => 'Kritikerbetyg';
|
||||
@override String get userRating => 'Användarbetyg';
|
||||
@override String get lastPlayed => 'Senast spelad';
|
||||
@override String get datePlayed => 'Speldatum';
|
||||
@override String get playCount => 'Antal spelningar';
|
||||
@@ -1753,6 +1759,7 @@ class _TranslationsLibrariesSortLabelsSv extends TranslationsLibrariesSortLabels
|
||||
@override String get random => 'Slumpmässigt';
|
||||
@override String get dateShared => 'Delningsdatum';
|
||||
@override String get latestEpisodeAirDate => 'Senaste avsnittets sändningsdatum';
|
||||
@override String get lastEpisodeDateAdded => 'Datum då senaste avsnittet lades till';
|
||||
}
|
||||
|
||||
// Path: companionRemote.session
|
||||
@@ -1931,7 +1938,6 @@ extension on TranslationsSv {
|
||||
'auth.or' => 'eller',
|
||||
'auth.connectToJellyfin' => 'Anslut till Jellyfin',
|
||||
'auth.useQuickConnect' => 'Använd Quick Connect',
|
||||
'auth.quickConnectCode' => 'Quick Connect-kod',
|
||||
'auth.quickConnectInstructions' => 'Öppna Quick Connect i Jellyfin och ange den här koden.',
|
||||
'auth.quickConnectWaiting' => 'Väntar på godkännande…',
|
||||
'auth.quickConnectCancel' => 'Avbryt',
|
||||
@@ -1969,6 +1975,7 @@ extension on TranslationsSv {
|
||||
'common.ok' => 'OK',
|
||||
'common.off' => 'Av',
|
||||
'common.seasonNumber' => ({required Object number}) => 'Säsong ${number}',
|
||||
'common.episodeNumberTitle' => ({required Object number, required Object title}) => 'Avsnitt ${number} - ${title}',
|
||||
'common.chapterNumber' => ({required Object number}) => 'Kapitel ${number}',
|
||||
'common.reconnect' => 'Återanslut',
|
||||
'common.exit' => 'Avsluta',
|
||||
@@ -2024,6 +2031,12 @@ extension on TranslationsSv {
|
||||
'settings.gridView' => 'Rutnät',
|
||||
'settings.listView' => 'Lista',
|
||||
'settings.showHeroSection' => 'Visa hjältesektion',
|
||||
'settings.continueWatchingAction' => 'Åtgärd för Fortsätt titta',
|
||||
'settings.continueWatchingPlay' => 'Spela',
|
||||
'settings.continueWatchingDetails' => 'Öppna detaljer',
|
||||
'settings.episodeAction' => 'Åtgärd för avsnitt',
|
||||
'settings.episodePlay' => 'Spela',
|
||||
'settings.episodeDetails' => 'Öppna detaljer',
|
||||
'settings.useGlobalHubs' => 'Använd startlayout',
|
||||
'settings.useGlobalHubsDescription' => 'Visa enhetliga startsideshubbar. Annars används biblioteksrekommendationer.',
|
||||
'settings.showServerNameOnHubs' => 'Visa servernamn på hubbar',
|
||||
@@ -2040,6 +2053,8 @@ extension on TranslationsSv {
|
||||
'settings.showSeasonPostersOnTabsDescription' => 'Visa varje säsongs affisch ovanför fliken',
|
||||
'settings.tvFullCardLayout' => 'Heltäckande TV-kort',
|
||||
'settings.tvFullCardLayoutDescription' => 'Använd TV-kort med enbart bild och skådespelarnamn ovanpå',
|
||||
'settings.focusGlow' => 'Fokusglöd',
|
||||
'settings.focusGlowDescription' => 'Visa en mjuk glöd runt kortet i fokus',
|
||||
'settings.hideSpoilers' => 'Dölj spoilers för osedda avsnitt',
|
||||
'settings.hideSpoilersDescription' => 'Sudda miniatyrbilder och beskrivningar för osedda avsnitt',
|
||||
'settings.playerBackend' => 'Spelarmotor',
|
||||
@@ -2259,8 +2274,8 @@ extension on TranslationsSv {
|
||||
'mediaMenu.markAsWatched' => 'Markera som sedd',
|
||||
'mediaMenu.markAsUnwatched' => 'Markera som osedd',
|
||||
'mediaMenu.removeFromContinueWatching' => 'Ta bort från Fortsätt titta',
|
||||
'mediaMenu.viewDetails' => 'Visa detaljer',
|
||||
'mediaMenu.goToSeries' => 'Gå till serie',
|
||||
'mediaMenu.goToSeason' => 'Gå till säsong',
|
||||
'mediaMenu.shufflePlay' => 'Blanda uppspelning',
|
||||
'mediaMenu.shuffleNotAvailableOffline' => 'Blandad uppspelning är inte tillgänglig offline',
|
||||
'mediaMenu.fileInfo' => 'Filinformation',
|
||||
@@ -2392,7 +2407,6 @@ extension on TranslationsSv {
|
||||
'messages.fileInfoNotAvailable' => 'Filinformation inte tillgänglig',
|
||||
'messages.errorLoadingFileInfo' => ({required Object error}) => 'Fel vid laddning av filinformation: ${error}',
|
||||
'messages.errorLoadingSeries' => 'Fel vid laddning av serie',
|
||||
'messages.errorLoadingSeason' => 'Fel vid laddning av säsong',
|
||||
'messages.musicNotSupported' => 'Musikuppspelning stöds inte ännu',
|
||||
'messages.noDescriptionAvailable' => 'Ingen beskrivning tillgänglig',
|
||||
'messages.noProfilesAvailable' => 'Inga profiler tillgängliga',
|
||||
@@ -2424,6 +2438,8 @@ extension on TranslationsSv {
|
||||
'messages.logsUploaded' => 'Loggar uppladdade',
|
||||
'messages.logsUploadFailed' => 'Uppladdning av loggar misslyckades',
|
||||
'messages.logId' => 'Logg-ID',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'subtitlingStyling.text' => 'Text',
|
||||
'subtitlingStyling.border' => 'Kantlinje',
|
||||
'subtitlingStyling.background' => 'Bakgrund',
|
||||
@@ -2431,14 +2447,15 @@ extension on TranslationsSv {
|
||||
'subtitlingStyling.textColor' => 'Textfärg',
|
||||
'subtitlingStyling.borderSize' => 'Kantstorlek',
|
||||
'subtitlingStyling.borderColor' => 'Kantfärg',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'subtitlingStyling.backgroundOpacity' => 'Bakgrundsopacitet',
|
||||
'subtitlingStyling.backgroundColor' => 'Bakgrundsfärg',
|
||||
'subtitlingStyling.position' => 'Position',
|
||||
'subtitlingStyling.assOverride' => 'ASS-åsidosättning',
|
||||
'subtitlingStyling.bold' => 'Fet',
|
||||
'subtitlingStyling.italic' => 'Kursiv',
|
||||
'subtitlingStyling.renderResolution' => 'Renderingsupplösning',
|
||||
'subtitlingStyling.renderResolutionScreen' => 'Skärmupplösning',
|
||||
'subtitlingStyling.renderResolutionVideo' => 'Videoupplösning',
|
||||
'mpvConfig.title' => 'mpv-konfiguration',
|
||||
'mpvConfig.description' => 'Avancerade videospelares inställningar',
|
||||
'mpvConfig.presets' => 'Förval',
|
||||
@@ -2615,6 +2632,7 @@ extension on TranslationsSv {
|
||||
'libraries.sortLabels.rating' => 'Betyg',
|
||||
'libraries.sortLabels.communityRating' => 'Användarbetyg',
|
||||
'libraries.sortLabels.criticRating' => 'Kritikerbetyg',
|
||||
'libraries.sortLabels.userRating' => 'Användarbetyg',
|
||||
'libraries.sortLabels.lastPlayed' => 'Senast spelad',
|
||||
'libraries.sortLabels.datePlayed' => 'Speldatum',
|
||||
'libraries.sortLabels.playCount' => 'Antal spelningar',
|
||||
@@ -2628,6 +2646,7 @@ extension on TranslationsSv {
|
||||
'libraries.sortLabels.random' => 'Slumpmässigt',
|
||||
'libraries.sortLabels.dateShared' => 'Delningsdatum',
|
||||
'libraries.sortLabels.latestEpisodeAirDate' => 'Senaste avsnittets sändningsdatum',
|
||||
'libraries.sortLabels.lastEpisodeDateAdded' => 'Datum då senaste avsnittet lades till',
|
||||
'about.title' => 'Om',
|
||||
'about.openSourceLicenses' => 'Öppen källkod-licenser',
|
||||
'about.versionLabel' => ({required Object version}) => 'Version ${version}',
|
||||
@@ -2860,6 +2879,7 @@ extension on TranslationsSv {
|
||||
'downloads.unwatchedOnly' => 'Endast osedda',
|
||||
'downloads.nextNUnwatched' => ({required Object count}) => 'Nästa ${count} osedda',
|
||||
'downloads.customAmount' => 'Ange antal...',
|
||||
'downloads.includeSpecials' => 'Inkludera specialavsnitt',
|
||||
'downloads.howManyEpisodes' => 'Hur många avsnitt?',
|
||||
'downloads.itemsQueued' => ({required Object count}) => '${count} objekt köade för nedladdning',
|
||||
'downloads.keepSynced' => 'Håll synkroniserad',
|
||||
@@ -2932,6 +2952,8 @@ extension on TranslationsSv {
|
||||
'companionRemote.pairing.authFailed' => 'Autentisering misslyckades. Båda enheter behöver samma Plex-konto.',
|
||||
'companionRemote.pairing.failedToConnect' => ({required Object error}) => 'Kunde inte ansluta: ${error}',
|
||||
'companionRemote.remote.disconnectConfirm' => 'Vill du koppla från fjärrsessionen?',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'companionRemote.remote.reconnecting' => 'Återansluter...',
|
||||
'companionRemote.remote.attemptOf' => ({required Object current}) => 'Försök ${current} av 5',
|
||||
'companionRemote.remote.retryNow' => 'Försök nu',
|
||||
@@ -2945,8 +2967,6 @@ extension on TranslationsSv {
|
||||
'companionRemote.remote.tabSearch' => 'Sök',
|
||||
'companionRemote.remote.tabDownloads' => 'Nedladdningar',
|
||||
'companionRemote.remote.tabSettings' => 'Inställningar',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'companionRemote.remote.previous' => 'Föregående',
|
||||
'companionRemote.remote.playPause' => 'Spela/Pausa',
|
||||
'companionRemote.remote.next' => 'Nästa',
|
||||
@@ -3006,6 +3026,7 @@ extension on TranslationsSv {
|
||||
'performanceOverlay.maxCll' => 'MaxCLL',
|
||||
'performanceOverlay.maxFall' => 'MaxFALL',
|
||||
'performanceOverlay.cacheUsed' => 'Cache använd',
|
||||
'performanceOverlay.cacheLimit' => 'Cachegräns',
|
||||
'performanceOverlay.speed' => 'Hastighet',
|
||||
'performanceOverlay.player' => 'Spelare',
|
||||
'performanceOverlay.memory' => 'Minne',
|
||||
@@ -3158,10 +3179,8 @@ extension on TranslationsSv {
|
||||
'trackers.libraryFilter.libraries' => 'Bibliotek',
|
||||
'trackers.libraryFilter.noLibraries' => 'Inga bibliotek tillgängliga',
|
||||
'addServer.addJellyfinTitle' => 'Lägg till Jellyfin-server',
|
||||
'addServer.jellyfinUrlIntro' => 'Ange server-URL, t.ex. `https://jellyfin.example.com`.',
|
||||
'addServer.jellyfinUrlsIntro' => 'Ange en eller flera server-URL:er, separerade med kommatecken. Plezy använder den nåbara URL:en med lägst latens.',
|
||||
'addServer.serverUrl' => 'Server-URL',
|
||||
'addServer.serverUrls' => 'Server-URL:er',
|
||||
'addServer.serverUrlsHelper' => 'Flera URL:er tillåtna, separerade med kommatecken.',
|
||||
'addServer.findServer' => 'Hitta server',
|
||||
'addServer.searchingLocalServers' => 'Söker efter lokala Jellyfin-servrar...',
|
||||
'addServer.localServers' => 'Lokala Jellyfin-servrar',
|
||||
@@ -3174,17 +3193,12 @@ extension on TranslationsSv {
|
||||
'addServer.signInFailed' => ({required Object error}) => 'Inloggning misslyckades: ${error}',
|
||||
'addServer.quickConnectFailed' => ({required Object error}) => 'Quick Connect misslyckades: ${error}',
|
||||
'addServer.addPlexTitle' => 'Logga in med Plex',
|
||||
'addServer.plexAuthIntro' => 'Logga in med en webbläsare eller QR-kod.',
|
||||
'addServer.plexQRPrompt' => 'Skanna denna QR-kod för att logga in.',
|
||||
'addServer.waitingForPlexConfirmation' => 'Väntar på att plex.tv ska bekräfta inloggningen…',
|
||||
'addServer.pinExpired' => 'PIN-koden gick ut innan inloggning. Försök igen.',
|
||||
'addServer.duplicatePlexAccount' => 'Redan inloggad på Plex. Logga ut för att byta konto.',
|
||||
'addServer.failedToRegisterAccount' => ({required Object error}) => 'Kunde inte registrera kontot: ${error}',
|
||||
'addServer.enterJellyfinUrlError' => 'Ange URL till din Jellyfin-server',
|
||||
'addServer.addConnectionTitle' => 'Lägg till anslutning',
|
||||
'addServer.addConnectionTitleScoped' => ({required Object name}) => 'Lägg till i ${name}',
|
||||
'addServer.addConnectionIntroGlobal' => 'Lägg till en annan medieserver. Plex och Jellyfin visas tillsammans på Hem.',
|
||||
'addServer.addConnectionIntroScoped' => 'Lägg till en ny server, eller låna en från en annan profil.',
|
||||
'addServer.signInWithPlexCard' => 'Logga in med Plex',
|
||||
'addServer.signInWithPlexCardSubtitle' => 'Auktorisera den här enheten. Delade servrar läggs till.',
|
||||
'addServer.signInWithPlexCardSubtitleScoped' => 'Auktorisera ett Plex-konto. Home-användare blir profiler.',
|
||||
|
||||
+40
-26
@@ -115,7 +115,6 @@ class _TranslationsAuthZh extends TranslationsAuthEn {
|
||||
@override String get or => '或';
|
||||
@override String get connectToJellyfin => '连接到 Jellyfin';
|
||||
@override String get useQuickConnect => '使用 Quick Connect';
|
||||
@override String get quickConnectCode => 'Quick Connect 代码';
|
||||
@override String get quickConnectInstructions => '在 Jellyfin 中打开 Quick Connect 并输入此代码。';
|
||||
@override String get quickConnectWaiting => '等待批准…';
|
||||
@override String get quickConnectCancel => '取消';
|
||||
@@ -162,6 +161,7 @@ class _TranslationsCommonZh extends TranslationsCommonEn {
|
||||
@override String get ok => '确定';
|
||||
@override String get off => '关闭';
|
||||
@override String seasonNumber({required Object number}) => '第${number}季';
|
||||
@override String episodeNumberTitle({required Object number, required Object title}) => '第${number}集 - ${title}';
|
||||
@override String chapterNumber({required Object number}) => '章节 ${number}';
|
||||
@override String get reconnect => '重新连接';
|
||||
@override String get exit => '退出';
|
||||
@@ -244,6 +244,12 @@ class _TranslationsSettingsZh extends TranslationsSettingsEn {
|
||||
@override String get gridView => '网格视图';
|
||||
@override String get listView => '列表视图';
|
||||
@override String get showHeroSection => '显示主要精选区';
|
||||
@override String get continueWatchingAction => '继续观看操作';
|
||||
@override String get continueWatchingPlay => '播放';
|
||||
@override String get continueWatchingDetails => '打开详情';
|
||||
@override String get episodeAction => '剧集操作';
|
||||
@override String get episodePlay => '播放';
|
||||
@override String get episodeDetails => '打开详情';
|
||||
@override String get useGlobalHubs => '使用主页布局';
|
||||
@override String get useGlobalHubsDescription => '显示统一主页中心。否则使用资料库推荐。';
|
||||
@override String get showServerNameOnHubs => '在推荐栏显示服务器名称';
|
||||
@@ -260,6 +266,8 @@ class _TranslationsSettingsZh extends TranslationsSettingsEn {
|
||||
@override String get showSeasonPostersOnTabsDescription => '在每季标签上方显示该季海报';
|
||||
@override String get tvFullCardLayout => '完整 TV 卡片';
|
||||
@override String get tvFullCardLayoutDescription => '使用仅显示图片的 TV 卡片,并叠加演员姓名';
|
||||
@override String get focusGlow => '焦点光晕';
|
||||
@override String get focusGlowDescription => '在获得焦点的卡片周围显示柔和的光晕';
|
||||
@override String get hideSpoilers => '隐藏未看剧集的剧透内容';
|
||||
@override String get hideSpoilersDescription => '模糊未观看剧集的缩略图和描述';
|
||||
@override String get playerBackend => '播放器引擎';
|
||||
@@ -491,8 +499,8 @@ class _TranslationsMediaMenuZh extends TranslationsMediaMenuEn {
|
||||
@override String get markAsWatched => '标记为已观看';
|
||||
@override String get markAsUnwatched => '标记为未观看';
|
||||
@override String get removeFromContinueWatching => '从继续观看中移除';
|
||||
@override String get viewDetails => '查看详情';
|
||||
@override String get goToSeries => '转到系列';
|
||||
@override String get goToSeason => '转到季';
|
||||
@override String get shufflePlay => '随机播放';
|
||||
@override String get shuffleNotAvailableOffline => '离线时无法随机播放';
|
||||
@override String get fileInfo => '文件信息';
|
||||
@@ -672,7 +680,6 @@ class _TranslationsMessagesZh extends TranslationsMessagesEn {
|
||||
@override String get fileInfoNotAvailable => '文件信息不可用';
|
||||
@override String errorLoadingFileInfo({required Object error}) => '加载文件信息时出错: ${error}';
|
||||
@override String get errorLoadingSeries => '加载系列时出错';
|
||||
@override String get errorLoadingSeason => '加载季时出错';
|
||||
@override String get musicNotSupported => '尚不支持播放音乐';
|
||||
@override String get noDescriptionAvailable => '暂无描述';
|
||||
@override String get noProfilesAvailable => '没有可用的用户';
|
||||
@@ -726,6 +733,9 @@ class _TranslationsSubtitlingStylingZh extends TranslationsSubtitlingStylingEn {
|
||||
@override String get assOverride => 'ASS 样式覆盖';
|
||||
@override String get bold => '粗体';
|
||||
@override String get italic => '斜体';
|
||||
@override String get renderResolution => '渲染分辨率';
|
||||
@override String get renderResolutionScreen => '屏幕分辨率';
|
||||
@override String get renderResolutionVideo => '视频分辨率';
|
||||
}
|
||||
|
||||
// Path: mpvConfig
|
||||
@@ -1278,6 +1288,7 @@ class _TranslationsDownloadsZh extends TranslationsDownloadsEn {
|
||||
@override String get unwatchedOnly => '仅未观看';
|
||||
@override String nextNUnwatched({required Object count}) => '接下来 ${count} 集未观看';
|
||||
@override String get customAmount => '自定义数量...';
|
||||
@override String get includeSpecials => '包含特别篇';
|
||||
@override String get howManyEpisodes => '下载几集?';
|
||||
@override String itemsQueued({required Object count}) => '${count} 个项目已加入下载队列';
|
||||
@override String get keepSynced => '保持同步';
|
||||
@@ -1402,6 +1413,7 @@ class _TranslationsPerformanceOverlayZh extends TranslationsPerformanceOverlayEn
|
||||
@override String get maxCll => 'MaxCLL';
|
||||
@override String get maxFall => 'MaxFALL';
|
||||
@override String get cacheUsed => '已用缓存';
|
||||
@override String get cacheLimit => '缓存限制';
|
||||
@override String get speed => '速度';
|
||||
@override String get player => '播放器';
|
||||
@override String get memory => '内存';
|
||||
@@ -1597,10 +1609,8 @@ class _TranslationsAddServerZh extends TranslationsAddServerEn {
|
||||
|
||||
// Translations
|
||||
@override String get addJellyfinTitle => '添加 Jellyfin 服务器';
|
||||
@override String get jellyfinUrlIntro => '输入服务器 URL,例如 `https://jellyfin.example.com`。';
|
||||
@override String get jellyfinUrlsIntro => '输入一个或多个服务器 URL,用逗号分隔。Plezy 会使用可访问且延迟最低的 URL。';
|
||||
@override String get serverUrl => '服务器 URL';
|
||||
@override String get serverUrls => '服务器 URL';
|
||||
@override String get serverUrlsHelper => '可输入多个 URL,以逗号分隔。';
|
||||
@override String get findServer => '查找服务器';
|
||||
@override String get searchingLocalServers => '正在查找本地 Jellyfin 服务器...';
|
||||
@override String get localServers => '本地 Jellyfin 服务器';
|
||||
@@ -1613,17 +1623,12 @@ class _TranslationsAddServerZh extends TranslationsAddServerEn {
|
||||
@override String signInFailed({required Object error}) => '登录失败: ${error}';
|
||||
@override String quickConnectFailed({required Object error}) => 'Quick Connect 失败: ${error}';
|
||||
@override String get addPlexTitle => '使用 Plex 登录';
|
||||
@override String get plexAuthIntro => '使用浏览器或二维码登录。';
|
||||
@override String get plexQRPrompt => '扫描此 QR 码以登录。';
|
||||
@override String get waitingForPlexConfirmation => '等待 plex.tv 确认登录…';
|
||||
@override String get pinExpired => 'PIN 在登录前已过期。请重试。';
|
||||
@override String get duplicatePlexAccount => '已登录 Plex。请退出登录以切换账号。';
|
||||
@override String failedToRegisterAccount({required Object error}) => '注册帐户失败: ${error}';
|
||||
@override String get enterJellyfinUrlError => '输入你的 Jellyfin 服务器 URL';
|
||||
@override String get addConnectionTitle => '添加连接';
|
||||
@override String addConnectionTitleScoped({required Object name}) => '添加到 ${name}';
|
||||
@override String get addConnectionIntroGlobal => '添加另一个媒体服务器。Plex 和 Jellyfin 会一起显示在主页。';
|
||||
@override String get addConnectionIntroScoped => '添加新服务器,或从另一个配置文件借用。';
|
||||
@override String get signInWithPlexCard => '使用 Plex 登录';
|
||||
@override String get signInWithPlexCardSubtitle => '授权此设备。共享服务器会被添加。';
|
||||
@override String get signInWithPlexCardSubtitleScoped => '授权一个 Plex 账号。Home 用户会成为个人资料。';
|
||||
@@ -1740,6 +1745,7 @@ class _TranslationsLibrariesSortLabelsZh extends TranslationsLibrariesSortLabels
|
||||
@override String get rating => '评分';
|
||||
@override String get communityRating => '社区评分';
|
||||
@override String get criticRating => '影评人评分';
|
||||
@override String get userRating => '用户评分';
|
||||
@override String get lastPlayed => '最近播放';
|
||||
@override String get datePlayed => '播放日期';
|
||||
@override String get playCount => '播放次数';
|
||||
@@ -1753,6 +1759,7 @@ class _TranslationsLibrariesSortLabelsZh extends TranslationsLibrariesSortLabels
|
||||
@override String get random => '随机';
|
||||
@override String get dateShared => '共享日期';
|
||||
@override String get latestEpisodeAirDate => '最新一集播出日期';
|
||||
@override String get lastEpisodeDateAdded => '最新一集添加日期';
|
||||
}
|
||||
|
||||
// Path: companionRemote.session
|
||||
@@ -1931,7 +1938,6 @@ extension on TranslationsZh {
|
||||
'auth.or' => '或',
|
||||
'auth.connectToJellyfin' => '连接到 Jellyfin',
|
||||
'auth.useQuickConnect' => '使用 Quick Connect',
|
||||
'auth.quickConnectCode' => 'Quick Connect 代码',
|
||||
'auth.quickConnectInstructions' => '在 Jellyfin 中打开 Quick Connect 并输入此代码。',
|
||||
'auth.quickConnectWaiting' => '等待批准…',
|
||||
'auth.quickConnectCancel' => '取消',
|
||||
@@ -1969,6 +1975,7 @@ extension on TranslationsZh {
|
||||
'common.ok' => '确定',
|
||||
'common.off' => '关闭',
|
||||
'common.seasonNumber' => ({required Object number}) => '第${number}季',
|
||||
'common.episodeNumberTitle' => ({required Object number, required Object title}) => '第${number}集 - ${title}',
|
||||
'common.chapterNumber' => ({required Object number}) => '章节 ${number}',
|
||||
'common.reconnect' => '重新连接',
|
||||
'common.exit' => '退出',
|
||||
@@ -2024,6 +2031,12 @@ extension on TranslationsZh {
|
||||
'settings.gridView' => '网格视图',
|
||||
'settings.listView' => '列表视图',
|
||||
'settings.showHeroSection' => '显示主要精选区',
|
||||
'settings.continueWatchingAction' => '继续观看操作',
|
||||
'settings.continueWatchingPlay' => '播放',
|
||||
'settings.continueWatchingDetails' => '打开详情',
|
||||
'settings.episodeAction' => '剧集操作',
|
||||
'settings.episodePlay' => '播放',
|
||||
'settings.episodeDetails' => '打开详情',
|
||||
'settings.useGlobalHubs' => '使用主页布局',
|
||||
'settings.useGlobalHubsDescription' => '显示统一主页中心。否则使用资料库推荐。',
|
||||
'settings.showServerNameOnHubs' => '在推荐栏显示服务器名称',
|
||||
@@ -2040,6 +2053,8 @@ extension on TranslationsZh {
|
||||
'settings.showSeasonPostersOnTabsDescription' => '在每季标签上方显示该季海报',
|
||||
'settings.tvFullCardLayout' => '完整 TV 卡片',
|
||||
'settings.tvFullCardLayoutDescription' => '使用仅显示图片的 TV 卡片,并叠加演员姓名',
|
||||
'settings.focusGlow' => '焦点光晕',
|
||||
'settings.focusGlowDescription' => '在获得焦点的卡片周围显示柔和的光晕',
|
||||
'settings.hideSpoilers' => '隐藏未看剧集的剧透内容',
|
||||
'settings.hideSpoilersDescription' => '模糊未观看剧集的缩略图和描述',
|
||||
'settings.playerBackend' => '播放器引擎',
|
||||
@@ -2259,8 +2274,8 @@ extension on TranslationsZh {
|
||||
'mediaMenu.markAsWatched' => '标记为已观看',
|
||||
'mediaMenu.markAsUnwatched' => '标记为未观看',
|
||||
'mediaMenu.removeFromContinueWatching' => '从继续观看中移除',
|
||||
'mediaMenu.viewDetails' => '查看详情',
|
||||
'mediaMenu.goToSeries' => '转到系列',
|
||||
'mediaMenu.goToSeason' => '转到季',
|
||||
'mediaMenu.shufflePlay' => '随机播放',
|
||||
'mediaMenu.shuffleNotAvailableOffline' => '离线时无法随机播放',
|
||||
'mediaMenu.fileInfo' => '文件信息',
|
||||
@@ -2392,7 +2407,6 @@ extension on TranslationsZh {
|
||||
'messages.fileInfoNotAvailable' => '文件信息不可用',
|
||||
'messages.errorLoadingFileInfo' => ({required Object error}) => '加载文件信息时出错: ${error}',
|
||||
'messages.errorLoadingSeries' => '加载系列时出错',
|
||||
'messages.errorLoadingSeason' => '加载季时出错',
|
||||
'messages.musicNotSupported' => '尚不支持播放音乐',
|
||||
'messages.noDescriptionAvailable' => '暂无描述',
|
||||
'messages.noProfilesAvailable' => '没有可用的用户',
|
||||
@@ -2424,6 +2438,8 @@ extension on TranslationsZh {
|
||||
'messages.logsUploaded' => '日志已上传',
|
||||
'messages.logsUploadFailed' => '上传日志失败',
|
||||
'messages.logId' => '日志 ID',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'subtitlingStyling.text' => '文本',
|
||||
'subtitlingStyling.border' => '边框',
|
||||
'subtitlingStyling.background' => '背景',
|
||||
@@ -2431,14 +2447,15 @@ extension on TranslationsZh {
|
||||
'subtitlingStyling.textColor' => '文本颜色',
|
||||
'subtitlingStyling.borderSize' => '边框大小',
|
||||
'subtitlingStyling.borderColor' => '边框颜色',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'subtitlingStyling.backgroundOpacity' => '背景不透明度',
|
||||
'subtitlingStyling.backgroundColor' => '背景颜色',
|
||||
'subtitlingStyling.position' => '位置',
|
||||
'subtitlingStyling.assOverride' => 'ASS 样式覆盖',
|
||||
'subtitlingStyling.bold' => '粗体',
|
||||
'subtitlingStyling.italic' => '斜体',
|
||||
'subtitlingStyling.renderResolution' => '渲染分辨率',
|
||||
'subtitlingStyling.renderResolutionScreen' => '屏幕分辨率',
|
||||
'subtitlingStyling.renderResolutionVideo' => '视频分辨率',
|
||||
'mpvConfig.title' => 'mpv 配置',
|
||||
'mpvConfig.description' => '高级视频播放器设置',
|
||||
'mpvConfig.presets' => '预设',
|
||||
@@ -2615,6 +2632,7 @@ extension on TranslationsZh {
|
||||
'libraries.sortLabels.rating' => '评分',
|
||||
'libraries.sortLabels.communityRating' => '社区评分',
|
||||
'libraries.sortLabels.criticRating' => '影评人评分',
|
||||
'libraries.sortLabels.userRating' => '用户评分',
|
||||
'libraries.sortLabels.lastPlayed' => '最近播放',
|
||||
'libraries.sortLabels.datePlayed' => '播放日期',
|
||||
'libraries.sortLabels.playCount' => '播放次数',
|
||||
@@ -2628,6 +2646,7 @@ extension on TranslationsZh {
|
||||
'libraries.sortLabels.random' => '随机',
|
||||
'libraries.sortLabels.dateShared' => '共享日期',
|
||||
'libraries.sortLabels.latestEpisodeAirDate' => '最新一集播出日期',
|
||||
'libraries.sortLabels.lastEpisodeDateAdded' => '最新一集添加日期',
|
||||
'about.title' => '关于',
|
||||
'about.openSourceLicenses' => '开源许可证',
|
||||
'about.versionLabel' => ({required Object version}) => '版本 ${version}',
|
||||
@@ -2860,6 +2879,7 @@ extension on TranslationsZh {
|
||||
'downloads.unwatchedOnly' => '仅未观看',
|
||||
'downloads.nextNUnwatched' => ({required Object count}) => '接下来 ${count} 集未观看',
|
||||
'downloads.customAmount' => '自定义数量...',
|
||||
'downloads.includeSpecials' => '包含特别篇',
|
||||
'downloads.howManyEpisodes' => '下载几集?',
|
||||
'downloads.itemsQueued' => ({required Object count}) => '${count} 个项目已加入下载队列',
|
||||
'downloads.keepSynced' => '保持同步',
|
||||
@@ -2932,6 +2952,8 @@ extension on TranslationsZh {
|
||||
'companionRemote.pairing.authFailed' => '认证失败。两台设备需要使用同一 Plex 账号。',
|
||||
'companionRemote.pairing.failedToConnect' => ({required Object error}) => '连接失败:${error}',
|
||||
'companionRemote.remote.disconnectConfirm' => '是否要断开远程会话的连接?',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'companionRemote.remote.reconnecting' => '重新连接中...',
|
||||
'companionRemote.remote.attemptOf' => ({required Object current}) => '第 ${current} 次尝试,共 5 次',
|
||||
'companionRemote.remote.retryNow' => '立即重试',
|
||||
@@ -2945,8 +2967,6 @@ extension on TranslationsZh {
|
||||
'companionRemote.remote.tabSearch' => '搜索',
|
||||
'companionRemote.remote.tabDownloads' => '下载',
|
||||
'companionRemote.remote.tabSettings' => '设置',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'companionRemote.remote.previous' => '上一个',
|
||||
'companionRemote.remote.playPause' => '播放/暂停',
|
||||
'companionRemote.remote.next' => '下一个',
|
||||
@@ -3006,6 +3026,7 @@ extension on TranslationsZh {
|
||||
'performanceOverlay.maxCll' => 'MaxCLL',
|
||||
'performanceOverlay.maxFall' => 'MaxFALL',
|
||||
'performanceOverlay.cacheUsed' => '已用缓存',
|
||||
'performanceOverlay.cacheLimit' => '缓存限制',
|
||||
'performanceOverlay.speed' => '速度',
|
||||
'performanceOverlay.player' => '播放器',
|
||||
'performanceOverlay.memory' => '内存',
|
||||
@@ -3158,10 +3179,8 @@ extension on TranslationsZh {
|
||||
'trackers.libraryFilter.libraries' => '媒体库',
|
||||
'trackers.libraryFilter.noLibraries' => '没有可用的媒体库',
|
||||
'addServer.addJellyfinTitle' => '添加 Jellyfin 服务器',
|
||||
'addServer.jellyfinUrlIntro' => '输入服务器 URL,例如 `https://jellyfin.example.com`。',
|
||||
'addServer.jellyfinUrlsIntro' => '输入一个或多个服务器 URL,用逗号分隔。Plezy 会使用可访问且延迟最低的 URL。',
|
||||
'addServer.serverUrl' => '服务器 URL',
|
||||
'addServer.serverUrls' => '服务器 URL',
|
||||
'addServer.serverUrlsHelper' => '可输入多个 URL,以逗号分隔。',
|
||||
'addServer.findServer' => '查找服务器',
|
||||
'addServer.searchingLocalServers' => '正在查找本地 Jellyfin 服务器...',
|
||||
'addServer.localServers' => '本地 Jellyfin 服务器',
|
||||
@@ -3174,17 +3193,12 @@ extension on TranslationsZh {
|
||||
'addServer.signInFailed' => ({required Object error}) => '登录失败: ${error}',
|
||||
'addServer.quickConnectFailed' => ({required Object error}) => 'Quick Connect 失败: ${error}',
|
||||
'addServer.addPlexTitle' => '使用 Plex 登录',
|
||||
'addServer.plexAuthIntro' => '使用浏览器或二维码登录。',
|
||||
'addServer.plexQRPrompt' => '扫描此 QR 码以登录。',
|
||||
'addServer.waitingForPlexConfirmation' => '等待 plex.tv 确认登录…',
|
||||
'addServer.pinExpired' => 'PIN 在登录前已过期。请重试。',
|
||||
'addServer.duplicatePlexAccount' => '已登录 Plex。请退出登录以切换账号。',
|
||||
'addServer.failedToRegisterAccount' => ({required Object error}) => '注册帐户失败: ${error}',
|
||||
'addServer.enterJellyfinUrlError' => '输入你的 Jellyfin 服务器 URL',
|
||||
'addServer.addConnectionTitle' => '添加连接',
|
||||
'addServer.addConnectionTitleScoped' => ({required Object name}) => '添加到 ${name}',
|
||||
'addServer.addConnectionIntroGlobal' => '添加另一个媒体服务器。Plex 和 Jellyfin 会一起显示在主页。',
|
||||
'addServer.addConnectionIntroScoped' => '添加新服务器,或从另一个配置文件借用。',
|
||||
'addServer.signInWithPlexCard' => '使用 Plex 登录',
|
||||
'addServer.signInWithPlexCardSubtitle' => '授权此设备。共享服务器会被添加。',
|
||||
'addServer.signInWithPlexCardSubtitleScoped' => '授权一个 Plex 账号。Home 用户会成为个人资料。',
|
||||
|
||||
+20
-13
@@ -14,7 +14,6 @@
|
||||
"or": "eller",
|
||||
"connectToJellyfin": "Anslut till Jellyfin",
|
||||
"useQuickConnect": "Använd Quick Connect",
|
||||
"quickConnectCode": "Quick Connect-kod",
|
||||
"quickConnectInstructions": "Öppna Quick Connect i Jellyfin och ange den här koden.",
|
||||
"quickConnectWaiting": "Väntar på godkännande…",
|
||||
"quickConnectCancel": "Avbryt",
|
||||
@@ -54,6 +53,7 @@
|
||||
"ok": "OK",
|
||||
"off": "Av",
|
||||
"seasonNumber": "Säsong ${number}",
|
||||
"episodeNumberTitle": "Avsnitt ${number} - ${title}",
|
||||
"chapterNumber": "Kapitel ${number}",
|
||||
"reconnect": "Återanslut",
|
||||
"exit": "Avsluta",
|
||||
@@ -115,6 +115,12 @@
|
||||
"gridView": "Rutnät",
|
||||
"listView": "Lista",
|
||||
"showHeroSection": "Visa hjältesektion",
|
||||
"continueWatchingAction": "Åtgärd för Fortsätt titta",
|
||||
"continueWatchingPlay": "Spela",
|
||||
"continueWatchingDetails": "Öppna detaljer",
|
||||
"episodeAction": "Åtgärd för avsnitt",
|
||||
"episodePlay": "Spela",
|
||||
"episodeDetails": "Öppna detaljer",
|
||||
"useGlobalHubs": "Använd startlayout",
|
||||
"useGlobalHubsDescription": "Visa enhetliga startsideshubbar. Annars används biblioteksrekommendationer.",
|
||||
"showServerNameOnHubs": "Visa servernamn på hubbar",
|
||||
@@ -131,6 +137,8 @@
|
||||
"showSeasonPostersOnTabsDescription": "Visa varje säsongs affisch ovanför fliken",
|
||||
"tvFullCardLayout": "Heltäckande TV-kort",
|
||||
"tvFullCardLayoutDescription": "Använd TV-kort med enbart bild och skådespelarnamn ovanpå",
|
||||
"focusGlow": "Fokusglöd",
|
||||
"focusGlowDescription": "Visa en mjuk glöd runt kortet i fokus",
|
||||
"hideSpoilers": "Dölj spoilers för osedda avsnitt",
|
||||
"hideSpoilersDescription": "Sudda miniatyrbilder och beskrivningar för osedda avsnitt",
|
||||
"playerBackend": "Spelarmotor",
|
||||
@@ -360,8 +368,8 @@
|
||||
"markAsWatched": "Markera som sedd",
|
||||
"markAsUnwatched": "Markera som osedd",
|
||||
"removeFromContinueWatching": "Ta bort från Fortsätt titta",
|
||||
"viewDetails": "Visa detaljer",
|
||||
"goToSeries": "Gå till serie",
|
||||
"goToSeason": "Gå till säsong",
|
||||
"shufflePlay": "Blanda uppspelning",
|
||||
"shuffleNotAvailableOffline": "Blandad uppspelning är inte tillgänglig offline",
|
||||
"fileInfo": "Filinformation",
|
||||
@@ -507,7 +515,6 @@
|
||||
"fileInfoNotAvailable": "Filinformation inte tillgänglig",
|
||||
"errorLoadingFileInfo": "Fel vid laddning av filinformation: ${error}",
|
||||
"errorLoadingSeries": "Fel vid laddning av serie",
|
||||
"errorLoadingSeason": "Fel vid laddning av säsong",
|
||||
"musicNotSupported": "Musikuppspelning stöds inte ännu",
|
||||
"noDescriptionAvailable": "Ingen beskrivning tillgänglig",
|
||||
"noProfilesAvailable": "Inga profiler tillgängliga",
|
||||
@@ -553,7 +560,10 @@
|
||||
"position": "Position",
|
||||
"assOverride": "ASS-åsidosättning",
|
||||
"bold": "Fet",
|
||||
"italic": "Kursiv"
|
||||
"italic": "Kursiv",
|
||||
"renderResolution": "Renderingsupplösning",
|
||||
"renderResolutionScreen": "Skärmupplösning",
|
||||
"renderResolutionVideo": "Videoupplösning"
|
||||
},
|
||||
"mpvConfig": {
|
||||
"title": "mpv-konfiguration",
|
||||
@@ -751,6 +761,7 @@
|
||||
"rating": "Betyg",
|
||||
"communityRating": "Användarbetyg",
|
||||
"criticRating": "Kritikerbetyg",
|
||||
"userRating": "Användarbetyg",
|
||||
"lastPlayed": "Senast spelad",
|
||||
"datePlayed": "Speldatum",
|
||||
"playCount": "Antal spelningar",
|
||||
@@ -763,7 +774,8 @@
|
||||
"studio": "Studio",
|
||||
"random": "Slumpmässigt",
|
||||
"dateShared": "Delningsdatum",
|
||||
"latestEpisodeAirDate": "Senaste avsnittets sändningsdatum"
|
||||
"latestEpisodeAirDate": "Senaste avsnittets sändningsdatum",
|
||||
"lastEpisodeDateAdded": "Datum då senaste avsnittet lades till"
|
||||
}
|
||||
},
|
||||
"about": {
|
||||
@@ -1019,6 +1031,7 @@
|
||||
"unwatchedOnly": "Endast osedda",
|
||||
"nextNUnwatched": "Nästa ${count} osedda",
|
||||
"customAmount": "Ange antal...",
|
||||
"includeSpecials": "Inkludera specialavsnitt",
|
||||
"howManyEpisodes": "Hur många avsnitt?",
|
||||
"itemsQueued": "${count} objekt köade för nedladdning",
|
||||
"keepSynced": "Håll synkroniserad",
|
||||
@@ -1179,6 +1192,7 @@
|
||||
"maxCll": "MaxCLL",
|
||||
"maxFall": "MaxFALL",
|
||||
"cacheUsed": "Cache använd",
|
||||
"cacheLimit": "Cachegräns",
|
||||
"speed": "Hastighet",
|
||||
"player": "Spelare",
|
||||
"memory": "Minne",
|
||||
@@ -1353,10 +1367,8 @@
|
||||
},
|
||||
"addServer": {
|
||||
"addJellyfinTitle": "Lägg till Jellyfin-server",
|
||||
"jellyfinUrlIntro": "Ange server-URL, t.ex. `https://jellyfin.example.com`.",
|
||||
"jellyfinUrlsIntro": "Ange en eller flera server-URL:er, separerade med kommatecken. Plezy använder den nåbara URL:en med lägst latens.",
|
||||
"serverUrl": "Server-URL",
|
||||
"serverUrls": "Server-URL:er",
|
||||
"serverUrlsHelper": "Flera URL:er tillåtna, separerade med kommatecken.",
|
||||
"findServer": "Hitta server",
|
||||
"searchingLocalServers": "Söker efter lokala Jellyfin-servrar...",
|
||||
"localServers": "Lokala Jellyfin-servrar",
|
||||
@@ -1369,17 +1381,12 @@
|
||||
"signInFailed": "Inloggning misslyckades: ${error}",
|
||||
"quickConnectFailed": "Quick Connect misslyckades: ${error}",
|
||||
"addPlexTitle": "Logga in med Plex",
|
||||
"plexAuthIntro": "Logga in med en webbläsare eller QR-kod.",
|
||||
"plexQRPrompt": "Skanna denna QR-kod för att logga in.",
|
||||
"waitingForPlexConfirmation": "Väntar på att plex.tv ska bekräfta inloggningen…",
|
||||
"pinExpired": "PIN-koden gick ut innan inloggning. Försök igen.",
|
||||
"duplicatePlexAccount": "Redan inloggad på Plex. Logga ut för att byta konto.",
|
||||
"failedToRegisterAccount": "Kunde inte registrera kontot: ${error}",
|
||||
"enterJellyfinUrlError": "Ange URL till din Jellyfin-server",
|
||||
"addConnectionTitle": "Lägg till anslutning",
|
||||
"addConnectionTitleScoped": "Lägg till i ${name}",
|
||||
"addConnectionIntroGlobal": "Lägg till en annan medieserver. Plex och Jellyfin visas tillsammans på Hem.",
|
||||
"addConnectionIntroScoped": "Lägg till en ny server, eller låna en från en annan profil.",
|
||||
"signInWithPlexCard": "Logga in med Plex",
|
||||
"signInWithPlexCardSubtitle": "Auktorisera den här enheten. Delade servrar läggs till.",
|
||||
"signInWithPlexCardSubtitleScoped": "Auktorisera ett Plex-konto. Home-användare blir profiler.",
|
||||
|
||||
+20
-13
@@ -14,7 +14,6 @@
|
||||
"or": "或",
|
||||
"connectToJellyfin": "连接到 Jellyfin",
|
||||
"useQuickConnect": "使用 Quick Connect",
|
||||
"quickConnectCode": "Quick Connect 代码",
|
||||
"quickConnectInstructions": "在 Jellyfin 中打开 Quick Connect 并输入此代码。",
|
||||
"quickConnectWaiting": "等待批准…",
|
||||
"quickConnectCancel": "取消",
|
||||
@@ -54,6 +53,7 @@
|
||||
"ok": "确定",
|
||||
"off": "关闭",
|
||||
"seasonNumber": "第${number}季",
|
||||
"episodeNumberTitle": "第${number}集 - ${title}",
|
||||
"chapterNumber": "章节 ${number}",
|
||||
"reconnect": "重新连接",
|
||||
"exit": "退出",
|
||||
@@ -115,6 +115,12 @@
|
||||
"gridView": "网格视图",
|
||||
"listView": "列表视图",
|
||||
"showHeroSection": "显示主要精选区",
|
||||
"continueWatchingAction": "继续观看操作",
|
||||
"continueWatchingPlay": "播放",
|
||||
"continueWatchingDetails": "打开详情",
|
||||
"episodeAction": "剧集操作",
|
||||
"episodePlay": "播放",
|
||||
"episodeDetails": "打开详情",
|
||||
"useGlobalHubs": "使用主页布局",
|
||||
"useGlobalHubsDescription": "显示统一主页中心。否则使用资料库推荐。",
|
||||
"showServerNameOnHubs": "在推荐栏显示服务器名称",
|
||||
@@ -131,6 +137,8 @@
|
||||
"showSeasonPostersOnTabsDescription": "在每季标签上方显示该季海报",
|
||||
"tvFullCardLayout": "完整 TV 卡片",
|
||||
"tvFullCardLayoutDescription": "使用仅显示图片的 TV 卡片,并叠加演员姓名",
|
||||
"focusGlow": "焦点光晕",
|
||||
"focusGlowDescription": "在获得焦点的卡片周围显示柔和的光晕",
|
||||
"hideSpoilers": "隐藏未看剧集的剧透内容",
|
||||
"hideSpoilersDescription": "模糊未观看剧集的缩略图和描述",
|
||||
"playerBackend": "播放器引擎",
|
||||
@@ -360,8 +368,8 @@
|
||||
"markAsWatched": "标记为已观看",
|
||||
"markAsUnwatched": "标记为未观看",
|
||||
"removeFromContinueWatching": "从继续观看中移除",
|
||||
"viewDetails": "查看详情",
|
||||
"goToSeries": "转到系列",
|
||||
"goToSeason": "转到季",
|
||||
"shufflePlay": "随机播放",
|
||||
"shuffleNotAvailableOffline": "离线时无法随机播放",
|
||||
"fileInfo": "文件信息",
|
||||
@@ -507,7 +515,6 @@
|
||||
"fileInfoNotAvailable": "文件信息不可用",
|
||||
"errorLoadingFileInfo": "加载文件信息时出错: ${error}",
|
||||
"errorLoadingSeries": "加载系列时出错",
|
||||
"errorLoadingSeason": "加载季时出错",
|
||||
"musicNotSupported": "尚不支持播放音乐",
|
||||
"noDescriptionAvailable": "暂无描述",
|
||||
"noProfilesAvailable": "没有可用的用户",
|
||||
@@ -553,7 +560,10 @@
|
||||
"position": "位置",
|
||||
"assOverride": "ASS 样式覆盖",
|
||||
"bold": "粗体",
|
||||
"italic": "斜体"
|
||||
"italic": "斜体",
|
||||
"renderResolution": "渲染分辨率",
|
||||
"renderResolutionScreen": "屏幕分辨率",
|
||||
"renderResolutionVideo": "视频分辨率"
|
||||
},
|
||||
"mpvConfig": {
|
||||
"title": "mpv 配置",
|
||||
@@ -751,6 +761,7 @@
|
||||
"rating": "评分",
|
||||
"communityRating": "社区评分",
|
||||
"criticRating": "影评人评分",
|
||||
"userRating": "用户评分",
|
||||
"lastPlayed": "最近播放",
|
||||
"datePlayed": "播放日期",
|
||||
"playCount": "播放次数",
|
||||
@@ -763,7 +774,8 @@
|
||||
"studio": "工作室",
|
||||
"random": "随机",
|
||||
"dateShared": "共享日期",
|
||||
"latestEpisodeAirDate": "最新一集播出日期"
|
||||
"latestEpisodeAirDate": "最新一集播出日期",
|
||||
"lastEpisodeDateAdded": "最新一集添加日期"
|
||||
}
|
||||
},
|
||||
"about": {
|
||||
@@ -1019,6 +1031,7 @@
|
||||
"unwatchedOnly": "仅未观看",
|
||||
"nextNUnwatched": "接下来 ${count} 集未观看",
|
||||
"customAmount": "自定义数量...",
|
||||
"includeSpecials": "包含特别篇",
|
||||
"howManyEpisodes": "下载几集?",
|
||||
"itemsQueued": "${count} 个项目已加入下载队列",
|
||||
"keepSynced": "保持同步",
|
||||
@@ -1179,6 +1192,7 @@
|
||||
"maxCll": "MaxCLL",
|
||||
"maxFall": "MaxFALL",
|
||||
"cacheUsed": "已用缓存",
|
||||
"cacheLimit": "缓存限制",
|
||||
"speed": "速度",
|
||||
"player": "播放器",
|
||||
"memory": "内存",
|
||||
@@ -1353,10 +1367,8 @@
|
||||
},
|
||||
"addServer": {
|
||||
"addJellyfinTitle": "添加 Jellyfin 服务器",
|
||||
"jellyfinUrlIntro": "输入服务器 URL,例如 `https://jellyfin.example.com`。",
|
||||
"jellyfinUrlsIntro": "输入一个或多个服务器 URL,用逗号分隔。Plezy 会使用可访问且延迟最低的 URL。",
|
||||
"serverUrl": "服务器 URL",
|
||||
"serverUrls": "服务器 URL",
|
||||
"serverUrlsHelper": "可输入多个 URL,以逗号分隔。",
|
||||
"findServer": "查找服务器",
|
||||
"searchingLocalServers": "正在查找本地 Jellyfin 服务器...",
|
||||
"localServers": "本地 Jellyfin 服务器",
|
||||
@@ -1369,17 +1381,12 @@
|
||||
"signInFailed": "登录失败: ${error}",
|
||||
"quickConnectFailed": "Quick Connect 失败: ${error}",
|
||||
"addPlexTitle": "使用 Plex 登录",
|
||||
"plexAuthIntro": "使用浏览器或二维码登录。",
|
||||
"plexQRPrompt": "扫描此 QR 码以登录。",
|
||||
"waitingForPlexConfirmation": "等待 plex.tv 确认登录…",
|
||||
"pinExpired": "PIN 在登录前已过期。请重试。",
|
||||
"duplicatePlexAccount": "已登录 Plex。请退出登录以切换账号。",
|
||||
"failedToRegisterAccount": "注册帐户失败: ${error}",
|
||||
"enterJellyfinUrlError": "输入你的 Jellyfin 服务器 URL",
|
||||
"addConnectionTitle": "添加连接",
|
||||
"addConnectionTitleScoped": "添加到 ${name}",
|
||||
"addConnectionIntroGlobal": "添加另一个媒体服务器。Plex 和 Jellyfin 会一起显示在主页。",
|
||||
"addConnectionIntroScoped": "添加新服务器,或从另一个配置文件借用。",
|
||||
"signInWithPlexCard": "使用 Plex 登录",
|
||||
"signInWithPlexCardSubtitle": "授权此设备。共享服务器会被添加。",
|
||||
"signInWithPlexCardSubtitleScoped": "授权一个 Plex 账号。Home 用户会成为个人资料。",
|
||||
|
||||
+162
-221
@@ -1,5 +1,4 @@
|
||||
import 'dart:async';
|
||||
import 'media/ids.dart';
|
||||
import 'dart:io' show Directory, Platform, ProcessInfo;
|
||||
import 'dart:ui' show AppExitResponse;
|
||||
import 'package:flutter/foundation.dart';
|
||||
@@ -15,18 +14,21 @@ import 'package:sentry_flutter/sentry_flutter.dart';
|
||||
import 'connection/connection.dart';
|
||||
import 'connection/connection_bootstrap.dart';
|
||||
import 'connection/connection_registry.dart';
|
||||
import 'navigation/profile_navigation_scope.dart';
|
||||
import 'navigation/profile_session_screen.dart';
|
||||
import 'profiles/active_profile_binder.dart';
|
||||
import 'profiles/active_profile_provider.dart';
|
||||
import 'profiles/profile.dart';
|
||||
import 'profiles/profile_connection_cleanup.dart';
|
||||
import 'profiles/profile_connection_registry.dart';
|
||||
import 'profiles/profile_registry.dart';
|
||||
import 'mixins/mounted_set_state_mixin.dart';
|
||||
import 'profiles/plex_home_service.dart';
|
||||
import 'screens/main_screen.dart';
|
||||
import 'screens/auth_screen.dart';
|
||||
import 'screens/profile/pin_entry_dialog.dart';
|
||||
import 'screens/profile/profile_switch_screen.dart';
|
||||
import 'services/storage_service.dart';
|
||||
import 'services/device_performance.dart';
|
||||
import 'services/macos_window_service.dart';
|
||||
import 'services/native_window_service.dart';
|
||||
import 'services/fullscreen_state_manager.dart';
|
||||
@@ -40,22 +42,14 @@ import 'services/gamepad_service.dart';
|
||||
import 'services/trakt/trakt_scrobble_service.dart';
|
||||
import 'services/trakt/trakt_sync_service.dart';
|
||||
import 'services/trackers/tracker_coordinator.dart';
|
||||
import 'providers/trakt_account_provider.dart';
|
||||
import 'providers/trackers_provider.dart';
|
||||
import 'providers/user_profile_provider.dart';
|
||||
import 'providers/multi_server_provider.dart';
|
||||
import 'providers/theme_provider.dart';
|
||||
import 'providers/hidden_libraries_provider.dart';
|
||||
import 'providers/libraries_provider.dart';
|
||||
import 'providers/playback_state_provider.dart';
|
||||
import 'providers/download_provider.dart';
|
||||
import 'providers/offline_mode_provider.dart';
|
||||
import 'providers/offline_watch_provider.dart';
|
||||
import 'providers/watch_state_overlay_provider.dart';
|
||||
import 'providers/companion_remote_provider.dart';
|
||||
import 'providers/shader_provider.dart';
|
||||
import 'utils/snackbar_helper.dart';
|
||||
import 'watch_together/providers/watch_together_provider.dart';
|
||||
import 'services/multi_server_manager.dart';
|
||||
import 'services/offline_watch_sync_service.dart';
|
||||
import 'services/data_aggregation_service.dart';
|
||||
@@ -74,7 +68,6 @@ import 'utils/media_server_http_client.dart';
|
||||
import 'utils/orientation_helper.dart';
|
||||
import 'utils/watch_state_notifier.dart';
|
||||
import 'i18n/strings.g.dart';
|
||||
import 'media/media_server_client.dart';
|
||||
import 'focus/input_mode_tracker.dart';
|
||||
import 'focus/key_event_utils.dart';
|
||||
import 'package:intl/date_symbol_data_local.dart';
|
||||
@@ -93,13 +86,13 @@ const String _sentryDist = String.fromEnvironment('SENTRY_DIST');
|
||||
bool _zeroOffsetPointerGuardInstalled = false;
|
||||
|
||||
void _installZeroOffsetPointerGuard() {
|
||||
if (_zeroOffsetPointerGuardInstalled) return;
|
||||
if (_zeroOffsetPointerGuardInstalled || !Platform.isIOS) return;
|
||||
GestureBinding.instance.pointerRouter.addGlobalRoute(_absorbZeroOffsetPointerEvent);
|
||||
_zeroOffsetPointerGuardInstalled = true;
|
||||
}
|
||||
|
||||
void _absorbZeroOffsetPointerEvent(PointerEvent event) {
|
||||
if (event.position == Offset.zero) {
|
||||
if (event is PointerDownEvent && event.position == Offset.zero) {
|
||||
GestureBinding.instance.cancelPointer(event.pointer);
|
||||
}
|
||||
}
|
||||
@@ -176,15 +169,6 @@ Future<void> _bootstrapApp() async {
|
||||
await settings.write(SettingsService.cleanedOldImageCache, true);
|
||||
}
|
||||
|
||||
// Configure image cache — keep budget modest to leave headroom for Skia decode buffers
|
||||
if (PlatformDetector.isDesktopOS()) {
|
||||
PaintingBinding.instance.imageCache.maximumSize = 1000;
|
||||
PaintingBinding.instance.imageCache.maximumSizeBytes = 150 << 20; // 150MB
|
||||
} else {
|
||||
PaintingBinding.instance.imageCache.maximumSize = 800;
|
||||
PaintingBinding.instance.imageCache.maximumSizeBytes = 100 << 20; // 100MB
|
||||
}
|
||||
|
||||
final futures = <Future<void>>[];
|
||||
|
||||
if (PlatformDetector.isDesktopOS()) {
|
||||
@@ -199,6 +183,8 @@ Future<void> _bootstrapApp() async {
|
||||
if (Platform.isAndroid || Platform.isIOS) {
|
||||
futures.add(TvDetectionService.getInstance(forceTv: settings.read(SettingsService.forceTvMode)));
|
||||
}
|
||||
// Visual-effects tier (auto-detects low-end Android; full elsewhere).
|
||||
futures.add(DevicePerformance.getInstance(override: settings.read(SettingsService.visualEffects)));
|
||||
if (Platform.isAndroid) {
|
||||
PipService();
|
||||
}
|
||||
@@ -212,6 +198,10 @@ Future<void> _bootstrapApp() async {
|
||||
await Future.wait(futures);
|
||||
final storage = await storageFuture;
|
||||
|
||||
// Configure image cache — keep budget modest to leave headroom for Skia
|
||||
// decode buffers. Runs after the futures so the effects tier is resolved.
|
||||
DevicePerformance.applyImageCacheBudget();
|
||||
|
||||
// The PLEX_TOKEN dart-define (screenshot automation) is consumed by
|
||||
// [ConnectionBootstrap.seedFromDevTokenDefine] later, when the registry
|
||||
// is available — keeps the deprecated legacy slots out of runtime paths.
|
||||
@@ -225,7 +215,10 @@ Future<void> _bootstrapApp() async {
|
||||
if (Platform.isAndroid) {
|
||||
renderer = ' [${await const MethodChannel('com.plezy/theme').invokeMethod<String>('getRenderer')}]';
|
||||
}
|
||||
appLogger.i('Plezy v${packageInfo.version}+${packageInfo.buildNumber}$commitSuffix$renderer');
|
||||
appLogger.i(
|
||||
'Plezy v${packageInfo.version}+${packageInfo.buildNumber}$commitSuffix$renderer'
|
||||
' [effects: ${DevicePerformance.describeSync()}]',
|
||||
);
|
||||
|
||||
await DownloadStorageService.instance.initialize(settings);
|
||||
|
||||
@@ -285,10 +278,17 @@ FutureOr<SentryEvent?> _beforeSend(SentryEvent event, Hint _) {
|
||||
if (exceptions != null) {
|
||||
bool shouldDrop(SentryException e) {
|
||||
final v = e.value;
|
||||
final lowerValue = v?.toLowerCase();
|
||||
// Windows file-lock errors from cache manager cleanup
|
||||
if (e.type == 'FileSystemException' && v != null && v.contains('plexImageCache') && v.contains('errno = 32')) {
|
||||
return true;
|
||||
}
|
||||
if (e.type == 'FileSystemException' &&
|
||||
lowerValue != null &&
|
||||
lowerValue.contains('cached_network_image_ce') &&
|
||||
(lowerValue.contains('lock failed') || lowerValue.contains('writefrom failed'))) {
|
||||
return true;
|
||||
}
|
||||
// Linux without DBus/NetworkManager
|
||||
if (e.type == 'DBusServiceUnknownException' || (v != null && v.contains('system_bus_socket'))) {
|
||||
return true;
|
||||
@@ -406,7 +406,6 @@ void _registerShaderLicenses() {
|
||||
});
|
||||
}
|
||||
|
||||
final RouteObserver<PageRoute> routeObserver = RouteObserver<PageRoute>();
|
||||
final rootNavigatorKey = GlobalKey<NavigatorState>();
|
||||
|
||||
@visibleForTesting
|
||||
@@ -415,10 +414,10 @@ bool shouldEnterOfflineModeAfterStartupBind({required bool bindingSucceeded, req
|
||||
}
|
||||
|
||||
/// Top-level PIN prompt used by [ActiveProfileBinder] when it runs above the
|
||||
/// per-screen widget tree. Routes through [rootNavigatorKey] so the dialog
|
||||
/// renders correctly whether the binder fires from the splash, MainScreen,
|
||||
/// or any future host. Returns `null` when no Navigator is available yet
|
||||
/// (early boot, post-dispose) so the binder treats it as "PIN cancelled".
|
||||
/// profile-scoped widget tree. Routes through the app-global
|
||||
/// [rootNavigatorKey] so the dialog survives profile-session remounts. Returns
|
||||
/// `null` when no Navigator is available yet (early boot, post-dispose) so the
|
||||
/// binder treats it as "PIN cancelled".
|
||||
Future<String?> _rootPinPrompt(Profile profile, {String? errorMessage}) {
|
||||
final ctx = rootNavigatorKey.currentContext;
|
||||
if (ctx == null) return Future.value(null);
|
||||
@@ -443,7 +442,11 @@ class _MainAppState extends State<MainApp> with WidgetsBindingObserver {
|
||||
late final OfflineWatchSyncService _offlineWatchSyncService;
|
||||
late final AppLifecycleListener _appLifecycleListener;
|
||||
StreamSubscription<WatchStateEvent>? _watchStateSubscription;
|
||||
StreamSubscription<List<ConnectivityResult>>? _connectivitySubscription;
|
||||
|
||||
/// WiFi-reconnect sync trigger, listening on [OfflineModeProvider] — the
|
||||
/// app's single connectivity subscription lives there.
|
||||
VoidCallback? _connectivitySyncListener;
|
||||
OfflineModeProvider? _connectivitySyncProvider;
|
||||
Timer? _syncDebounce;
|
||||
final Set<String> _pendingSyncKeys = <String>{};
|
||||
bool _isAutoDeleteRunning = false;
|
||||
@@ -479,13 +482,11 @@ class _MainAppState extends State<MainApp> with WidgetsBindingObserver {
|
||||
PlexApiCache.initialize(_appDatabase);
|
||||
JellyfinApiCache.initialize(_appDatabase);
|
||||
|
||||
_downloadManager = DownloadManagerService(database: _appDatabase, storageService: DownloadStorageService.instance);
|
||||
_downloadManager.setClientResolver((serverId, {clientScopeId}) {
|
||||
if (clientScopeId != null && clientScopeId.isNotEmpty) {
|
||||
return _serverManager.getJellyfinClientByCompoundId(clientScopeId) ?? _serverManager.getClient(serverId);
|
||||
}
|
||||
return _serverManager.getClient(serverId);
|
||||
});
|
||||
_downloadManager = DownloadManagerService(
|
||||
database: _appDatabase,
|
||||
storageService: DownloadStorageService.instance,
|
||||
clientResolver: _serverManager.resolveDownloadClient,
|
||||
);
|
||||
_downloadManager.recoveryFuture = _downloadManager.recoverInterruptedDownloads();
|
||||
|
||||
_offlineWatchSyncService = OfflineWatchSyncService(database: _appDatabase, serverManager: _serverManager);
|
||||
@@ -493,6 +494,9 @@ class _MainAppState extends State<MainApp> with WidgetsBindingObserver {
|
||||
// Trakt sync service (subscribes to WatchStateNotifier, requires serverManager
|
||||
// to resolve PlexClients for GUID lookups).
|
||||
TraktSyncService.instance.initialize(serverManager: _serverManager);
|
||||
// Tracker singletons init once per app; per-profile hydration happens in
|
||||
// the profile-scoped provider subtree's create callbacks.
|
||||
unawaited(TrackerCoordinator.instance.initialize());
|
||||
|
||||
_appLifecycleListener = AppLifecycleListener(
|
||||
onExitRequested: () async {
|
||||
@@ -508,7 +512,7 @@ class _MainAppState extends State<MainApp> with WidgetsBindingObserver {
|
||||
|
||||
_syncDebounce?.cancel();
|
||||
await _watchStateSubscription?.cancel();
|
||||
await _connectivitySubscription?.cancel();
|
||||
_removeConnectivitySyncListener();
|
||||
_memoryCheckTimer?.cancel();
|
||||
|
||||
_downloadManager.dispose();
|
||||
@@ -529,7 +533,7 @@ class _MainAppState extends State<MainApp> with WidgetsBindingObserver {
|
||||
void dispose() {
|
||||
_syncDebounce?.cancel();
|
||||
_watchStateSubscription?.cancel();
|
||||
_connectivitySubscription?.cancel();
|
||||
_removeConnectivitySyncListener();
|
||||
_memoryCheckTimer?.cancel();
|
||||
_appLifecycleListener.dispose();
|
||||
if (!_shutdownStarted) {
|
||||
@@ -553,38 +557,32 @@ class _MainAppState extends State<MainApp> with WidgetsBindingObserver {
|
||||
}
|
||||
|
||||
/// Fires [_autoDeleteAndSync] on each WiFi/Ethernet reconnect so rules run
|
||||
/// as soon as the device is back online. Rapid flapping is bounded by the
|
||||
/// executor's cooldown.
|
||||
void _startConnectivitySyncTrigger(DownloadProvider downloadProvider) {
|
||||
Future<void> setup() async {
|
||||
try {
|
||||
final initial = await Connectivity().checkConnectivity();
|
||||
_lastConnectivityWasWifi = _hasWifiOrEthernet(initial);
|
||||
} catch (e) {
|
||||
appLogger.w('Initial connectivity read failed, defaulting to false: $e');
|
||||
_lastConnectivityWasWifi = false;
|
||||
/// as soon as the device is back online. Listens on [OfflineModeProvider],
|
||||
/// which owns the app's single connectivity subscription and notifies on
|
||||
/// connection-type changes. Rapid flapping is bounded by the executor's
|
||||
/// cooldown.
|
||||
void _startConnectivitySyncTrigger(DownloadProvider downloadProvider, OfflineModeProvider offlineModeProvider) {
|
||||
_removeConnectivitySyncListener();
|
||||
_lastConnectivityWasWifi = offlineModeProvider.hasWifiOrEthernet;
|
||||
_connectivitySyncProvider = offlineModeProvider;
|
||||
_connectivitySyncListener = () {
|
||||
final hasWifi = offlineModeProvider.hasWifiOrEthernet;
|
||||
final transitioned = hasWifi && !_lastConnectivityWasWifi;
|
||||
_lastConnectivityWasWifi = hasWifi;
|
||||
if (transitioned) {
|
||||
appLogger.d('Connectivity moved onto WiFi/Ethernet — triggering sync pass');
|
||||
_autoDeleteAndSync(downloadProvider);
|
||||
}
|
||||
|
||||
try {
|
||||
_connectivitySubscription = Connectivity().onConnectivityChanged.listen((results) {
|
||||
final hasWifi = _hasWifiOrEthernet(results);
|
||||
final transitioned = hasWifi && !_lastConnectivityWasWifi;
|
||||
_lastConnectivityWasWifi = hasWifi;
|
||||
if (transitioned) {
|
||||
appLogger.d('Connectivity moved onto WiFi/Ethernet — triggering sync pass');
|
||||
_autoDeleteAndSync(downloadProvider);
|
||||
}
|
||||
});
|
||||
} catch (e) {
|
||||
appLogger.w('Could not subscribe to connectivity changes: $e');
|
||||
}
|
||||
}
|
||||
|
||||
setup();
|
||||
};
|
||||
offlineModeProvider.addListener(_connectivitySyncListener!);
|
||||
}
|
||||
|
||||
static bool _hasWifiOrEthernet(List<ConnectivityResult> results) =>
|
||||
results.contains(ConnectivityResult.wifi) || results.contains(ConnectivityResult.ethernet);
|
||||
void _removeConnectivitySyncListener() {
|
||||
final listener = _connectivitySyncListener;
|
||||
if (listener != null) _connectivitySyncProvider?.removeListener(listener);
|
||||
_connectivitySyncListener = null;
|
||||
_connectivitySyncProvider = null;
|
||||
}
|
||||
|
||||
/// Run auto-delete (if enabled) and then a sync-rule pass.
|
||||
///
|
||||
@@ -775,18 +773,6 @@ class _MainAppState extends State<MainApp> with WidgetsBindingObserver {
|
||||
return provider;
|
||||
},
|
||||
),
|
||||
ChangeNotifierProxyProvider2<ActiveProfileProvider, MultiServerProvider, WatchStateOverlayProvider>(
|
||||
create: (_) => WatchStateOverlayProvider(),
|
||||
update: (_, activeProfile, multiServer, previous) {
|
||||
final provider = previous ?? WatchStateOverlayProvider();
|
||||
provider.setActiveProfileId(activeProfile.activeId);
|
||||
provider.setActiveClientScopesByServer({
|
||||
for (final serverId in multiServer.serverManager.serverIds)
|
||||
serverId: multiServer.serverManager.getClient(ServerId(serverId))?.cacheServerId,
|
||||
});
|
||||
return provider;
|
||||
},
|
||||
),
|
||||
ChangeNotifierProxyProvider<ActiveProfileProvider, OfflineWatchSyncService>(
|
||||
create: (context) {
|
||||
final offlineModeProvider = context.read<OfflineModeProvider>();
|
||||
@@ -821,7 +807,7 @@ class _MainAppState extends State<MainApp> with WidgetsBindingObserver {
|
||||
});
|
||||
});
|
||||
|
||||
_startConnectivitySyncTrigger(downloadProvider);
|
||||
_startConnectivitySyncTrigger(downloadProvider, offlineModeProvider);
|
||||
|
||||
// Thread the offline flag into services so queue/resume paths can
|
||||
// short-circuit instead of hitting the network and failing.
|
||||
@@ -859,87 +845,81 @@ class _MainAppState extends State<MainApp> with WidgetsBindingObserver {
|
||||
},
|
||||
),
|
||||
ChangeNotifierProvider(create: (context) => ThemeProvider()),
|
||||
// Tracker accounts — depend on UserProfileProvider for per-profile
|
||||
// session scoping. Hydrated and rebound by `_TrackerProfileBootstrap`.
|
||||
ChangeNotifierProvider(create: (context) => TraktAccountProvider()),
|
||||
ChangeNotifierProvider(create: (context) => TrackersProvider()),
|
||||
ChangeNotifierProvider(
|
||||
create: (context) => HiddenLibrariesProvider(storageService: context.read<StorageService>()),
|
||||
lazy: true,
|
||||
),
|
||||
ChangeNotifierProvider(
|
||||
create: (context) {
|
||||
final provider = LibrariesProvider(storageService: context.read<StorageService>());
|
||||
// Reload libraries when a new server comes online. Servers bind in
|
||||
// waves on sign-in / profile switch and slow ones reconnect after
|
||||
// the initial load; without this they stay missing from the sidebar
|
||||
// until a profile re-switch or restart.
|
||||
context.read<MultiServerProvider>().onOnlineServersChanged = provider.syncToOnlineServers;
|
||||
return provider;
|
||||
},
|
||||
),
|
||||
ChangeNotifierProvider(create: (context) => PlaybackStateProvider()),
|
||||
ChangeNotifierProvider(create: (context) => WatchTogetherProvider()),
|
||||
ChangeNotifierProvider(create: (context) => CompanionRemoteProvider()),
|
||||
// Shader presets are app-global — deliberately outside the
|
||||
// profile-scoped session in ProfileSessionScreen.
|
||||
ChangeNotifierProvider(create: (context) => ShaderProvider()),
|
||||
],
|
||||
child: Consumer<ThemeProvider>(
|
||||
builder: (context, themeProvider, child) {
|
||||
return TranslationProvider(
|
||||
child: Builder(
|
||||
builder: (context) {
|
||||
final trakt = context.read<TraktAccountProvider>();
|
||||
final trackers = context.read<TrackersProvider>();
|
||||
return _TrackerProfileBootstrap(
|
||||
onProfileChanged: [trakt.onActiveProfileChanged, trackers.onActiveProfileChanged],
|
||||
onFirstMount: TrackerCoordinator.instance.initialize,
|
||||
child: Listener(
|
||||
onPointerDown: (event) {
|
||||
if ((event.buttons & kBackMouseButton) != 0) {
|
||||
rootNavigatorKey.currentState?.maybePop();
|
||||
child: const _AppShell(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// App-global shell: theme consumer, translations, root input handling, and the
|
||||
/// root MaterialApp. Profile-scoped providers/navigation live in
|
||||
/// [ProfileSessionScreen], not here, so root auth/PIN/global dialogs survive a
|
||||
/// profile switch.
|
||||
class _AppShell extends StatelessWidget {
|
||||
const _AppShell();
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Consumer<ThemeProvider>(
|
||||
builder: (context, themeProvider, child) {
|
||||
return TranslationProvider(
|
||||
child: Builder(
|
||||
builder: (context) {
|
||||
return Listener(
|
||||
onPointerDown: (event) {
|
||||
if ((event.buttons & kBackMouseButton) != 0) {
|
||||
unawaited(() async {
|
||||
final rootNavigator = rootNavigatorKey.currentState;
|
||||
if (rootNavigator?.canPop() ?? false) {
|
||||
await rootNavigator?.maybePop();
|
||||
return;
|
||||
}
|
||||
await profileNavigationRegistry.maybePopProfileRoute();
|
||||
}());
|
||||
}
|
||||
},
|
||||
behavior: HitTestBehavior.translucent,
|
||||
child: InputModeTracker(
|
||||
child: MaterialApp(
|
||||
title: t.app.title,
|
||||
debugShowCheckedModeBanner: false,
|
||||
theme: themeProvider.lightTheme,
|
||||
darkTheme: themeProvider.darkTheme,
|
||||
themeMode: themeProvider.materialThemeMode,
|
||||
navigatorKey: rootNavigatorKey,
|
||||
navigatorObservers: [BackKeySuppressorObserver()],
|
||||
home: const OrientationAwareSetup(),
|
||||
// Siri Remote select + gamepad A report as
|
||||
// LogicalKeyboardKey.{select,gameButtonA} which aren't
|
||||
// in Flutter's default shortcut set — Material-level
|
||||
// widgets (menu items, showModalBottomSheet actions)
|
||||
// ignore them. Map both to ActivateIntent so tapping
|
||||
// select on tvOS activates the focused widget.
|
||||
shortcuts: <ShortcutActivator, Intent>{
|
||||
...WidgetsApp.defaultShortcuts,
|
||||
const SingleActivator(LogicalKeyboardKey.select): const ActivateIntent(),
|
||||
const SingleActivator(LogicalKeyboardKey.gameButtonA): const ActivateIntent(),
|
||||
const SingleActivator(LogicalKeyboardKey.goBack): const DismissIntent(),
|
||||
const SingleActivator(LogicalKeyboardKey.browserBack): const DismissIntent(),
|
||||
const SingleActivator(LogicalKeyboardKey.gameButtonB): const DismissIntent(),
|
||||
},
|
||||
behavior: HitTestBehavior.translucent,
|
||||
child: InputModeTracker(
|
||||
child: MaterialApp(
|
||||
title: t.app.title,
|
||||
debugShowCheckedModeBanner: false,
|
||||
theme: themeProvider.lightTheme,
|
||||
darkTheme: themeProvider.darkTheme,
|
||||
themeMode: themeProvider.materialThemeMode,
|
||||
navigatorKey: rootNavigatorKey,
|
||||
navigatorObservers: [routeObserver, BackKeySuppressorObserver()],
|
||||
home: const OrientationAwareSetup(),
|
||||
// Siri Remote select + gamepad A report as
|
||||
// LogicalKeyboardKey.{select,gameButtonA} which aren't
|
||||
// in Flutter's default shortcut set — Material-level
|
||||
// widgets (menu items, showModalBottomSheet actions)
|
||||
// ignore them. Map both to ActivateIntent so tapping
|
||||
// select on tvOS activates the focused widget.
|
||||
shortcuts: <ShortcutActivator, Intent>{
|
||||
...WidgetsApp.defaultShortcuts,
|
||||
const SingleActivator(LogicalKeyboardKey.select): const ActivateIntent(),
|
||||
const SingleActivator(LogicalKeyboardKey.gameButtonA): const ActivateIntent(),
|
||||
const SingleActivator(LogicalKeyboardKey.goBack): const DismissIntent(),
|
||||
const SingleActivator(LogicalKeyboardKey.browserBack): const DismissIntent(),
|
||||
const SingleActivator(LogicalKeyboardKey.gameButtonB): const DismissIntent(),
|
||||
},
|
||||
builder: (context, child) => ScaffoldMessenger(
|
||||
key: rootScaffoldMessengerKey,
|
||||
child: Scaffold(
|
||||
backgroundColor: Colors.transparent,
|
||||
body: _AppleTvScale(child: child),
|
||||
),
|
||||
),
|
||||
builder: (context, child) => ScaffoldMessenger(
|
||||
key: rootScaffoldMessengerKey,
|
||||
child: Scaffold(
|
||||
backgroundColor: Colors.transparent,
|
||||
body: _AppleTvScale(child: child),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -993,69 +973,6 @@ class _AppleTvScale extends StatelessWidget {
|
||||
}
|
||||
}
|
||||
|
||||
/// Hydrates Trakt and MAL/AniList/Simkl providers with the active profile's
|
||||
/// sessions and rebinds their services whenever the user switches profiles.
|
||||
///
|
||||
/// Lives high in the widget tree (above MaterialApp) so the listener survives
|
||||
/// route changes. [onFirstMount] runs exactly once after the first
|
||||
/// `didChangeDependencies`.
|
||||
class _TrackerProfileBootstrap extends StatefulWidget {
|
||||
final Widget child;
|
||||
final List<Future<void> Function(String? profileId)> onProfileChanged;
|
||||
final VoidCallback? onFirstMount;
|
||||
|
||||
const _TrackerProfileBootstrap({required this.child, required this.onProfileChanged, this.onFirstMount});
|
||||
|
||||
@override
|
||||
State<_TrackerProfileBootstrap> createState() => _TrackerProfileBootstrapState();
|
||||
}
|
||||
|
||||
class _TrackerProfileBootstrapState extends State<_TrackerProfileBootstrap> {
|
||||
ActiveProfileProvider? _provider;
|
||||
String? _lastId;
|
||||
bool _initialized = false;
|
||||
|
||||
@override
|
||||
void didChangeDependencies() {
|
||||
super.didChangeDependencies();
|
||||
final provider = context.read<ActiveProfileProvider>();
|
||||
|
||||
if (!identical(_provider, provider)) {
|
||||
_provider?.removeListener(_onProfileChanged);
|
||||
_provider = provider;
|
||||
_provider!.addListener(_onProfileChanged);
|
||||
}
|
||||
|
||||
if (!_initialized) {
|
||||
_initialized = true;
|
||||
widget.onFirstMount?.call();
|
||||
_onProfileChanged();
|
||||
}
|
||||
}
|
||||
|
||||
void _onProfileChanged() {
|
||||
final id = _provider?.activeId;
|
||||
if (id == _lastId) return;
|
||||
_lastId = id;
|
||||
for (final fn in widget.onProfileChanged) {
|
||||
unawaited(
|
||||
fn(id).catchError((Object e, StackTrace s) {
|
||||
appLogger.w('Tracker profile bootstrap failed', error: e, stackTrace: s);
|
||||
}),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_provider?.removeListener(_onProfileChanged);
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => widget.child;
|
||||
}
|
||||
|
||||
class OrientationAwareSetup extends StatefulWidget {
|
||||
const OrientationAwareSetup({super.key});
|
||||
|
||||
@@ -1110,7 +1027,7 @@ class _SetupScreenState extends State<SetupScreen> with MountedSetStateMixin {
|
||||
_setStatus(t.common.startingOfflineMode);
|
||||
await context.read<DownloadProvider>().ensureInitialized();
|
||||
if (!mounted) return;
|
||||
unawaited(Navigator.pushReplacement(context, fadeRoute(const MainScreen(isOfflineMode: true))));
|
||||
unawaited(Navigator.pushReplacement(context, fadeRoute(const ProfileSessionScreen(isOfflineMode: true))));
|
||||
}
|
||||
|
||||
Future<void> _loadSavedCredentials() async {
|
||||
@@ -1125,6 +1042,7 @@ class _SetupScreenState extends State<SetupScreen> with MountedSetStateMixin {
|
||||
if (mounted) {
|
||||
try {
|
||||
final connRegistry = context.read<ConnectionRegistry>();
|
||||
final profileConnections = context.read<ProfileConnectionRegistry>();
|
||||
final profileRegistry = context.read<ProfileRegistry>();
|
||||
final activeProfiles = context.read<ActiveProfileProvider>();
|
||||
final bootstrap = ConnectionBootstrap(
|
||||
@@ -1134,6 +1052,15 @@ class _SetupScreenState extends State<SetupScreen> with MountedSetStateMixin {
|
||||
profileRegistry: profileRegistry,
|
||||
);
|
||||
await bootstrap.run();
|
||||
final pruned = await pruneUnreferencedJellyfinConnections(
|
||||
profileConnections: profileConnections,
|
||||
connections: connRegistry,
|
||||
storage: storage,
|
||||
serverManager: context.read<MultiServerProvider>().serverManager,
|
||||
);
|
||||
if (pruned > 0) {
|
||||
appLogger.i('Setup: pruned $pruned unreferenced Jellyfin connection${pruned == 1 ? '' : 's'}');
|
||||
}
|
||||
// Provider initialization starts before this screen runs the legacy
|
||||
// migration. Reload after bootstrap so copied Plex Home users and the
|
||||
// selected active profile are visible before setup decides binding is
|
||||
@@ -1303,18 +1230,31 @@ class _SetupScreenState extends State<SetupScreen> with MountedSetStateMixin {
|
||||
await downloadProvider.refreshMetadataFromCache();
|
||||
if (!mounted) return;
|
||||
|
||||
unawaited(Navigator.pushReplacement(context, fadeRoute(MainScreen(initialPromptHandled: shouldPrompt))));
|
||||
unawaited(Navigator.pushReplacement(context, fadeRoute(ProfileSessionScreen(initialPromptHandled: shouldPrompt))));
|
||||
}
|
||||
|
||||
/// Wire per-server status updates from [MultiServerManager] into the
|
||||
/// splash list so the user sees check/cross marks land as the binder
|
||||
/// brings each client online. Best-effort: stops listening when the
|
||||
/// state goes away.
|
||||
/// brings each client online. [MultiServerManager.connectProgressStream]
|
||||
/// fires as each individual server settles; [MultiServerManager.statusStream]
|
||||
/// emits once per connect pass and back-fills anything the progress stream
|
||||
/// missed (e.g. servers torn down by the binder's visibility sweep).
|
||||
/// Best-effort: stops listening when the state goes away.
|
||||
StreamSubscription<Map<String, bool>>? _statusSub;
|
||||
StreamSubscription<({String serverId, bool online})>? _connectProgressSub;
|
||||
|
||||
void _bindServerStatusListener(ActiveProfileProvider _, MultiServerManager Function() resolveManager) {
|
||||
_statusSub?.cancel();
|
||||
_connectProgressSub?.cancel();
|
||||
final manager = resolveManager();
|
||||
_connectProgressSub = manager.connectProgressStream.listen((progress) {
|
||||
if (!mounted) return;
|
||||
final existing = _serverStatus[progress.serverId];
|
||||
if (existing == null) return;
|
||||
setState(() {
|
||||
_serverStatus[progress.serverId] = (existing.$1, progress.online);
|
||||
});
|
||||
});
|
||||
_statusSub = manager.statusStream.listen((status) {
|
||||
if (!mounted) return;
|
||||
setState(() {
|
||||
@@ -1333,6 +1273,7 @@ class _SetupScreenState extends State<SetupScreen> with MountedSetStateMixin {
|
||||
@override
|
||||
void dispose() {
|
||||
_statusSub?.cancel();
|
||||
_connectProgressSub?.cancel();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user