Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
db50cb4837 | ||
|
|
b4b90eec63 | ||
|
|
beff313814 | ||
|
|
0dc9cd38af | ||
|
|
8ff7676e60 | ||
|
|
bfe35220aa | ||
|
|
843faee4c5 | ||
|
|
f8bfeb0ec6 | ||
|
|
dd441fee66 | ||
|
|
2204b05d6c | ||
|
|
a1841804b6 | ||
|
|
5e31ad9c67 | ||
|
|
477b92291b | ||
|
|
fcc6186796 | ||
|
|
23179f6d17 | ||
|
|
996e8621fa | ||
|
|
8ad1cb988f | ||
|
|
4cef99dda2 | ||
|
|
4beeedd318 | ||
|
|
23043c61f4 | ||
|
|
8d56171bd2 | ||
|
|
ff0fafe938 | ||
|
|
8b7f369c16 | ||
|
|
5c0e40bddb | ||
|
|
58b0bf5306 | ||
|
|
9bd2774820 | ||
|
|
cc7da5bbc9 | ||
|
|
bd4e30e653 | ||
|
|
e759dafa87 | ||
|
|
3ae2488adf | ||
|
|
2f5b596fff | ||
|
|
472ac90fea | ||
|
|
e9dfee6870 | ||
|
|
48e57fd375 | ||
|
|
4b05ed79ea | ||
|
|
4365e70a78 | ||
|
|
e8c02d04ae | ||
|
|
0539c1d869 | ||
|
|
1980ce92d5 | ||
|
|
b5576fa6de | ||
|
|
d355e07e10 | ||
|
|
09ff47e19f | ||
|
|
4ee4a766d6 | ||
|
|
7ebbf75cb9 | ||
|
|
e95b768350 | ||
|
|
82f0d46acc | ||
|
|
bafba0b151 | ||
|
|
7a68218439 | ||
|
|
2d37d37596 | ||
|
|
d64c72f40e | ||
|
|
efe375f817 | ||
|
|
1f8dfd3587 | ||
|
|
60eae5d14f | ||
|
|
5123a5ec48 | ||
|
|
dbb3ae38b3 | ||
|
|
fbf6fc988b | ||
|
|
17da465e4e | ||
|
|
e096a4ccb8 | ||
|
|
079417ad3e | ||
|
|
edb2120f98 | ||
|
|
cc0305d84a | ||
|
|
3f78686661 | ||
|
|
13604cca01 | ||
|
|
eae4eacf00 | ||
|
|
4119824048 | ||
|
|
8bdf2b53d3 | ||
|
|
fb4f17a898 | ||
|
|
ad0623334c | ||
|
|
13dcfd7551 | ||
|
|
053884a147 | ||
|
|
4f893cb826 | ||
|
|
94aa966f46 | ||
|
|
0fcdcf3c1f | ||
|
|
4147bd0d86 | ||
|
|
3ea3455772 | ||
|
|
a82c3d2d2d | ||
|
|
04ef1b8ad2 | ||
|
|
b009dd9c80 | ||
|
|
e9f1979e6c | ||
|
|
23906dd65d | ||
|
|
630755cf7b | ||
|
|
3c2f72d15f | ||
|
|
ff5cf06e60 | ||
|
|
9798486724 | ||
|
|
db6161d84e | ||
|
|
af0de5c0a9 | ||
|
|
e0d9b4ee93 | ||
|
|
551be5bbef | ||
|
|
bbc7f0f665 | ||
|
|
8433d59432 | ||
|
|
59b3e6ce81 | ||
|
|
a5629c54f6 | ||
|
|
45726a57ce | ||
|
|
5f597ef567 | ||
|
|
bf464b257d | ||
|
|
0100b2a2ea | ||
|
|
360c3356cf | ||
|
|
5f18efcfb3 | ||
|
|
79888168ae | ||
|
|
2427a55901 | ||
|
|
ac397f32a3 | ||
|
|
d236e7fec6 | ||
|
|
6d7cdc4ef4 | ||
|
|
9a296b3da8 | ||
|
|
f27861748c | ||
|
|
c9668af2ae | ||
|
|
9c2253616f | ||
|
|
cfb8bf04d6 |
@@ -52,3 +52,27 @@ jobs:
|
||||
identifier: edde746.Plezy
|
||||
installers-regex: 'plezy-windows-installer\.exe$'
|
||||
token: ${{ secrets.WINGET_TOKEN }}
|
||||
|
||||
update-appcast-branch:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Download appcast.xml from release
|
||||
run: |
|
||||
gh release download "${{ github.event.release.tag_name }}" \
|
||||
--pattern "appcast.xml"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Push to appcast branch
|
||||
run: |
|
||||
VERSION="${{ github.event.release.tag_name }}"
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
BLOB=$(git hash-object -w appcast.xml)
|
||||
TREE=$(printf "100644 blob %s\tappcast.xml\n" "$BLOB" | git mktree)
|
||||
COMMIT=$(git commit-tree "$TREE" -m "Update appcast for $VERSION")
|
||||
git push origin "$COMMIT:refs/heads/appcast" --force
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
cask "plezy" do
|
||||
version "1.27.0"
|
||||
sha256 "39baaece57637889946ef847e678f33817c0b900ae52a626f5db69415a60fb7b"
|
||||
version "1.29.0"
|
||||
sha256 "5f856275e7d5fe66f25238708a41e9f04fa4d327a932a16626b1424807b05866"
|
||||
|
||||
url "https://github.com/edde746/plezy/releases/download/#{version}/plezy-macos.dmg"
|
||||
name "Plezy"
|
||||
|
||||
@@ -8,6 +8,39 @@ plugins {
|
||||
id("dev.flutter.flutter-gradle-plugin")
|
||||
}
|
||||
|
||||
val mpvVersion = "v1.0.6"
|
||||
val mpvDir = layout.buildDirectory.dir("libmpv").get().asFile
|
||||
val mpvAar = "libmpv-release.aar"
|
||||
|
||||
val downloadLibmpv by tasks.registering {
|
||||
val stamp = File(mpvDir, ".version")
|
||||
outputs.upToDateWhen { stamp.exists() && stamp.readText().trim() == mpvVersion }
|
||||
doLast {
|
||||
mpvDir.mkdirs()
|
||||
val url = "https://github.com/edde746/libmpv-android/releases/download/$mpvVersion/$mpvAar"
|
||||
exec { commandLine("curl", "-sfL", url, "-o", File(mpvDir, mpvAar).absolutePath) }
|
||||
stamp.writeText(mpvVersion)
|
||||
}
|
||||
}
|
||||
|
||||
val assVersion = "safety-2"
|
||||
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 }
|
||||
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) }
|
||||
}
|
||||
stamp.writeText(assVersion)
|
||||
}
|
||||
}
|
||||
|
||||
val doviVersion = "2.3.1"
|
||||
val doviDir = layout.buildDirectory.dir("libdovi").get().asFile
|
||||
val doviAbis = mapOf(
|
||||
@@ -127,8 +160,16 @@ tasks.matching { it.name.contains("CMake") || it.name.contains("externalNative")
|
||||
dependsOn(downloadLibdovi)
|
||||
}
|
||||
|
||||
// Download libmpv and libass AARs before compilation
|
||||
tasks.matching { it.name.startsWith("pre") && it.name.endsWith("Build") }.configureEach {
|
||||
dependsOn(downloadLibmpv)
|
||||
dependsOn(downloadLibass)
|
||||
}
|
||||
|
||||
|
||||
dependencies {
|
||||
implementation("dev.jdtech.mpv:libmpv:0.5.1")
|
||||
implementation(files(File(mpvDir, mpvAar)))
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0")
|
||||
|
||||
// Android TV Watch Next integration
|
||||
implementation("androidx.tvprovider:tvprovider:1.0.0")
|
||||
@@ -138,15 +179,13 @@ dependencies {
|
||||
implementation("androidx.media3:media3-ui:1.9.2")
|
||||
implementation("androidx.media3:media3-common:1.9.2")
|
||||
|
||||
// OkHttp for connection pooling (prevents TCP reconnect stutter at high bitrates)
|
||||
implementation("com.squareup.okhttp3:okhttp:4.12.0")
|
||||
implementation("androidx.media3:media3-datasource-okhttp:1.9.2")
|
||||
// Cronet for HTTP/2 multiplexing + better connection management
|
||||
implementation("androidx.media3:media3-datasource-cronet:1.9.2")
|
||||
implementation("org.chromium.net:cronet-embedded:143.7445.0")
|
||||
|
||||
// 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
|
||||
implementation("io.github.peerless2012:ass-media:0.4.0")
|
||||
// ass-kt core library (needed for AssRender.setFontScale)
|
||||
implementation("io.github.peerless2012:ass-kt:0.4.0")
|
||||
assAars.forEach { implementation(files(File(assDir, it))) }
|
||||
}
|
||||
|
||||
@@ -1,20 +1,26 @@
|
||||
package com.edde746.plezy
|
||||
|
||||
import android.content.Intent
|
||||
import android.graphics.SurfaceTexture
|
||||
import android.net.Uri
|
||||
import android.os.Build
|
||||
import android.os.Bundle
|
||||
import android.os.Handler
|
||||
import android.os.Looper
|
||||
import android.app.AppOpsManager
|
||||
import android.app.PictureInPictureParams
|
||||
import android.content.Context
|
||||
import android.content.res.Configuration
|
||||
import android.util.Rational
|
||||
import android.view.KeyEvent
|
||||
import android.view.TextureView
|
||||
import android.view.ViewGroup
|
||||
import android.view.inputmethod.InputMethodManager
|
||||
import android.widget.FrameLayout
|
||||
import androidx.core.content.FileProvider
|
||||
import io.flutter.embedding.android.FlutterActivity
|
||||
import io.flutter.embedding.engine.FlutterShellArgs
|
||||
import io.flutter.embedding.android.FlutterTextureView
|
||||
import io.flutter.embedding.android.RenderMode
|
||||
import io.flutter.embedding.android.TransparencyMode
|
||||
import io.flutter.embedding.engine.FlutterEngine
|
||||
@@ -27,6 +33,10 @@ import java.io.File
|
||||
|
||||
class MainActivity : FlutterActivity() {
|
||||
|
||||
companion object {
|
||||
var usingSkia = false
|
||||
}
|
||||
|
||||
private val PIP_CHANNEL = "com.plezy/pip"
|
||||
private val EXTERNAL_PLAYER_CHANNEL = "com.plezy/external_player"
|
||||
private val THEME_CHANNEL = "com.plezy/theme"
|
||||
@@ -108,6 +118,28 @@ class MainActivity : FlutterActivity() {
|
||||
}
|
||||
}
|
||||
|
||||
override fun getFlutterShellArgs(): FlutterShellArgs {
|
||||
val args = super.getFlutterShellArgs()
|
||||
usingSkia = shouldDisableImpeller()
|
||||
if (usingSkia) args.add("--enable-impeller=false")
|
||||
return args
|
||||
}
|
||||
|
||||
private fun shouldDisableImpeller(): Boolean {
|
||||
// Android TV devices — weaker GPUs, less Impeller testing
|
||||
if (packageManager.hasSystemFeature("android.software.leanback")) return true
|
||||
// Google Tensor SoC (Mali GPU) — Pixel 6+
|
||||
// SOC_MODEL may return marketing name ("Tensor G2") or internal ID ("GS201")
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
|
||||
val soc = Build.SOC_MODEL
|
||||
if (soc.startsWith("Tensor", ignoreCase = true) ||
|
||||
soc.startsWith("GS", ignoreCase = true)) return true
|
||||
}
|
||||
// NVIDIA Tegra (Shield TV)
|
||||
if (Build.MANUFACTURER.equals("NVIDIA", ignoreCase = true)) return true
|
||||
return false
|
||||
}
|
||||
|
||||
override fun getRenderMode(): RenderMode {
|
||||
// Use TextureView so Flutter doesn't occupy a SurfaceView layer.
|
||||
// This allows the libass subtitle SurfaceView to sit between video and Flutter UI.
|
||||
@@ -119,6 +151,40 @@ class MainActivity : FlutterActivity() {
|
||||
return TransparencyMode.transparent
|
||||
}
|
||||
|
||||
override fun onFlutterTextureViewCreated(flutterTextureView: FlutterTextureView) {
|
||||
val original = flutterTextureView.surfaceTextureListener ?: return
|
||||
val handler = Handler(Looper.getMainLooper())
|
||||
var pendingResize: Runnable? = null
|
||||
var lastWidth = 0
|
||||
var lastHeight = 0
|
||||
|
||||
flutterTextureView.surfaceTextureListener = object : TextureView.SurfaceTextureListener {
|
||||
override fun onSurfaceTextureAvailable(surface: SurfaceTexture, w: Int, h: Int) {
|
||||
original.onSurfaceTextureAvailable(surface, w, h)
|
||||
}
|
||||
override fun onSurfaceTextureSizeChanged(surface: SurfaceTexture, w: Int, h: Int) {
|
||||
if (w == lastWidth && h == lastHeight) return
|
||||
lastWidth = w; lastHeight = h
|
||||
pendingResize?.let { handler.removeCallbacks(it) }
|
||||
pendingResize = Runnable {
|
||||
if (flutterTextureView.isAvailable) {
|
||||
original.onSurfaceTextureSizeChanged(surface, w, h)
|
||||
}
|
||||
}
|
||||
handler.postDelayed(pendingResize!!, 100)
|
||||
}
|
||||
override fun onSurfaceTextureUpdated(surface: SurfaceTexture) {
|
||||
original.onSurfaceTextureUpdated(surface)
|
||||
}
|
||||
override fun onSurfaceTextureDestroyed(surface: SurfaceTexture): Boolean {
|
||||
pendingResize?.let { handler.removeCallbacks(it) }
|
||||
pendingResize = null
|
||||
lastWidth = 0; lastHeight = 0
|
||||
return original.onSurfaceTextureDestroyed(surface)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
|
||||
super.configureFlutterEngine(flutterEngine)
|
||||
flutterEngine.plugins.add(MpvPlayerPlugin())
|
||||
@@ -177,6 +243,7 @@ class MainActivity : FlutterActivity() {
|
||||
// Splash screen theme: persist user's chosen theme for next launch (API 31+)
|
||||
MethodChannel(flutterEngine.dartExecutor.binaryMessenger, THEME_CHANNEL).setMethodCallHandler { call, result ->
|
||||
when (call.method) {
|
||||
"getRenderer" -> result.success(if (usingSkia) "Skia" else "Impeller")
|
||||
"setSplashTheme" -> {
|
||||
val mode = call.argument<String>("mode")
|
||||
|
||||
|
||||
+167
@@ -0,0 +1,167 @@
|
||||
package com.edde746.plezy.exoplayer
|
||||
|
||||
import android.util.Log
|
||||
import androidx.media3.common.C
|
||||
import androidx.media3.extractor.Extractor
|
||||
import androidx.media3.extractor.ExtractorInput
|
||||
import androidx.media3.extractor.ExtractorOutput
|
||||
import androidx.media3.extractor.PositionHolder
|
||||
import androidx.media3.extractor.SeekMap
|
||||
import androidx.media3.extractor.SeekPoint
|
||||
import androidx.media3.extractor.TrackOutput
|
||||
|
||||
/**
|
||||
* Extractor wrapper that enables approximate seeking for MKV files without Cues.
|
||||
*
|
||||
* When the underlying extractor reports an [SeekMap.Unseekable] seek map (i.e. the MKV
|
||||
* has no Cues element), this wrapper replaces it with a proportional byte-position
|
||||
* estimate and scans for the nearest Cluster boundary after seeking.
|
||||
*/
|
||||
@androidx.media3.common.util.UnstableApi
|
||||
class CuelessSeekExtractorWrapper(
|
||||
private val delegate: Extractor,
|
||||
) : Extractor {
|
||||
|
||||
companion object {
|
||||
private const val TAG = "CuelessSeek"
|
||||
// MKV Cluster element ID: 0x1F43B675 (4-byte EBML Class-D ID)
|
||||
private val CLUSTER_ID = byteArrayOf(0x1F, 0x43, 0xB6.toByte(), 0x75)
|
||||
private const val SCAN_BUFFER_SIZE = 8192
|
||||
// Max bytes to scan for a Cluster boundary before giving up
|
||||
private const val MAX_SCAN_BYTES = 1024 * 1024 // 1 MB
|
||||
}
|
||||
|
||||
private var inputLength: Long = C.LENGTH_UNSET.toLong()
|
||||
private var needsClusterResync = false
|
||||
private var isApproximateSeeking = false
|
||||
private var pendingSeekTimeUs: Long = C.TIME_UNSET
|
||||
|
||||
override fun sniff(input: ExtractorInput): Boolean = delegate.sniff(input)
|
||||
|
||||
override fun init(output: ExtractorOutput) {
|
||||
delegate.init(SeekInterceptingOutput(output))
|
||||
}
|
||||
|
||||
override fun read(input: ExtractorInput, seekPosition: PositionHolder): Int {
|
||||
if (inputLength == C.LENGTH_UNSET.toLong()) {
|
||||
inputLength = input.length
|
||||
}
|
||||
if (needsClusterResync) {
|
||||
needsClusterResync = false
|
||||
return scanForCluster(input, seekPosition)
|
||||
}
|
||||
return delegate.read(input, seekPosition)
|
||||
}
|
||||
|
||||
override fun seek(position: Long, timeUs: Long) {
|
||||
if (isApproximateSeeking && position > 0) {
|
||||
needsClusterResync = true
|
||||
pendingSeekTimeUs = timeUs
|
||||
}
|
||||
delegate.seek(position, timeUs)
|
||||
}
|
||||
|
||||
override fun release() = delegate.release()
|
||||
|
||||
/**
|
||||
* Scan forward from the current input position to find the next MKV Cluster
|
||||
* element ID (0x1F43B675). Returns [Extractor.RESULT_SEEK] with the Cluster's
|
||||
* byte position so ExoPlayer repositions the DataSource there.
|
||||
*/
|
||||
private fun scanForCluster(input: ExtractorInput, seekPosition: PositionHolder): Int {
|
||||
val buffer = ByteArray(SCAN_BUFFER_SIZE)
|
||||
var totalScanned = 0L
|
||||
// Carry over last 3 bytes across buffer boundaries to detect split IDs
|
||||
var carry = ByteArray(0)
|
||||
|
||||
while (totalScanned < MAX_SCAN_BYTES) {
|
||||
val toRead = minOf(SCAN_BUFFER_SIZE, (MAX_SCAN_BYTES - totalScanned).toInt())
|
||||
val bytesRead: Int
|
||||
try {
|
||||
bytesRead = input.read(buffer, 0, toRead)
|
||||
} catch (_: Exception) {
|
||||
break
|
||||
}
|
||||
if (bytesRead == C.RESULT_END_OF_INPUT) break
|
||||
|
||||
// Combine carry + new data for scanning
|
||||
val scanData = if (carry.isNotEmpty()) carry + buffer.copyOf(bytesRead) else buffer.copyOf(bytesRead)
|
||||
|
||||
for (i in 0..scanData.size - 4) {
|
||||
if (scanData[i] == CLUSTER_ID[0] &&
|
||||
scanData[i + 1] == CLUSTER_ID[1] &&
|
||||
scanData[i + 2] == CLUSTER_ID[2] &&
|
||||
scanData[i + 3] == CLUSTER_ID[3]
|
||||
) {
|
||||
// Compute the absolute byte position of this Cluster
|
||||
val clusterPosition = input.position - bytesRead - carry.size + i
|
||||
Log.d(TAG, "Found Cluster at byte $clusterPosition (scanned ${totalScanned + i} bytes)")
|
||||
seekPosition.position = clusterPosition
|
||||
delegate.seek(clusterPosition, pendingSeekTimeUs)
|
||||
pendingSeekTimeUs = C.TIME_UNSET
|
||||
return Extractor.RESULT_SEEK
|
||||
}
|
||||
}
|
||||
|
||||
// Keep last 3 bytes as carry for next iteration
|
||||
carry = if (scanData.size >= 3) scanData.copyOfRange(scanData.size - 3, scanData.size) else scanData.copyOf()
|
||||
totalScanned += bytesRead
|
||||
}
|
||||
|
||||
// Failed to find a Cluster — fall back to position 0
|
||||
Log.w(TAG, "No Cluster found after scanning $totalScanned bytes, resetting to start")
|
||||
seekPosition.position = 0
|
||||
delegate.seek(0, 0)
|
||||
return Extractor.RESULT_SEEK
|
||||
}
|
||||
|
||||
/**
|
||||
* ExtractorOutput wrapper that intercepts [seekMap] calls to replace
|
||||
* [SeekMap.Unseekable] with an approximate proportional SeekMap.
|
||||
*/
|
||||
private inner class SeekInterceptingOutput(
|
||||
private val delegate: ExtractorOutput,
|
||||
) : ExtractorOutput {
|
||||
|
||||
override fun track(id: Int, type: Int): TrackOutput = delegate.track(id, type)
|
||||
override fun endTracks() = delegate.endTracks()
|
||||
|
||||
override fun seekMap(seekMap: SeekMap) {
|
||||
if (seekMap is SeekMap.Unseekable) {
|
||||
val durationUs = seekMap.durationUs
|
||||
if (durationUs != C.TIME_UNSET && durationUs > 0) {
|
||||
Log.i(TAG, "Replacing Unseekable with approximate SeekMap (duration=${durationUs / 1_000_000}s)")
|
||||
isApproximateSeeking = true
|
||||
delegate.seekMap(ApproximateSeekMap(durationUs))
|
||||
return
|
||||
}
|
||||
}
|
||||
// File has real Cues or unknown duration — pass through
|
||||
isApproximateSeeking = false
|
||||
delegate.seekMap(seekMap)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Approximate SeekMap that estimates byte positions proportionally.
|
||||
* Used when the MKV has no Cues but has a known duration.
|
||||
*/
|
||||
private inner class ApproximateSeekMap(
|
||||
private val durationUs: Long,
|
||||
) : SeekMap {
|
||||
|
||||
override fun isSeekable(): Boolean = true
|
||||
|
||||
override fun getDurationUs(): Long = durationUs
|
||||
|
||||
override fun getSeekPoints(timeUs: Long): SeekMap.SeekPoints {
|
||||
val length = inputLength
|
||||
if (length == C.LENGTH_UNSET.toLong() || durationUs <= 0) {
|
||||
return SeekMap.SeekPoints(SeekPoint(0, 0))
|
||||
}
|
||||
val clampedTimeUs = timeUs.coerceIn(0, durationUs)
|
||||
val position = (clampedTimeUs.toDouble() / durationUs * length).toLong().coerceIn(0, length)
|
||||
return SeekMap.SeekPoints(SeekPoint(clampedTimeUs, position))
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -30,10 +30,12 @@ import androidx.media3.common.Tracks
|
||||
import androidx.media3.common.VideoSize
|
||||
import androidx.media3.common.util.UnstableApi
|
||||
import androidx.media3.exoplayer.analytics.AnalyticsListener
|
||||
import androidx.media3.datasource.DataSpec
|
||||
import androidx.media3.datasource.DefaultDataSource
|
||||
import androidx.media3.datasource.okhttp.OkHttpDataSource
|
||||
import okhttp3.OkHttpClient
|
||||
import java.util.concurrent.TimeUnit
|
||||
import androidx.media3.datasource.HttpDataSource
|
||||
import androidx.media3.datasource.cronet.CronetDataSource
|
||||
import org.chromium.net.CronetEngine
|
||||
import java.util.concurrent.Executors
|
||||
import androidx.media3.exoplayer.DefaultLoadControl
|
||||
import androidx.media3.exoplayer.DefaultRenderersFactory
|
||||
import androidx.media3.exoplayer.mediacodec.MediaCodecSelector
|
||||
@@ -51,7 +53,7 @@ import com.edde746.plezy.shared.AudioFocusManager
|
||||
import com.edde746.plezy.shared.FlutterOverlayHelper
|
||||
import com.edde746.plezy.shared.FrameRateManager
|
||||
import io.github.peerless2012.ass.media.AssHandler
|
||||
import io.github.peerless2012.ass.media.extractor.AssMatroskaExtractor
|
||||
|
||||
import io.github.peerless2012.ass.media.factory.AssRenderersFactory
|
||||
import io.github.peerless2012.ass.media.parser.AssSubtitleParserFactory
|
||||
import io.github.peerless2012.ass.media.type.AssRenderType
|
||||
@@ -81,6 +83,7 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
private const val WATCHDOG_CHECK_INTERVAL_MS = 1000L
|
||||
private const val WATCHDOG_TIMEOUT_MS = 8000L
|
||||
private const val DECODER_HANG_TIMEOUT_MS = 5000L
|
||||
private const val FPS_SAMPLE_COUNT = 8
|
||||
|
||||
// Codec capability caches — codec support doesn't change at runtime
|
||||
private val hwAudioDecoderCache = HashMap<String, Boolean>()
|
||||
@@ -88,15 +91,17 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
|
||||
private var assGlCrashHandlerInstalled = false
|
||||
|
||||
// Process-wide OkHttp client with connection pooling — reuses TCP connections
|
||||
// on buffer refill to prevent reconnect-induced frame drops at high bitrates
|
||||
private val okHttpClient: OkHttpClient by lazy {
|
||||
OkHttpClient.Builder()
|
||||
.connectTimeout(15, TimeUnit.SECONDS)
|
||||
.readTimeout(30, TimeUnit.SECONDS)
|
||||
.writeTimeout(15, TimeUnit.SECONDS)
|
||||
.build()
|
||||
private var cronetEngine: CronetEngine? = null
|
||||
private fun getCronetEngine(context: Context): CronetEngine {
|
||||
return cronetEngine ?: synchronized(this) {
|
||||
cronetEngine ?: CronetEngine.Builder(context.applicationContext)
|
||||
.enableHttp2(true)
|
||||
.enableQuic(true)
|
||||
.build()
|
||||
.also { cronetEngine = it }
|
||||
}
|
||||
}
|
||||
private val cronetExecutor by lazy { Executors.newSingleThreadExecutor() }
|
||||
}
|
||||
|
||||
private var surfaceView: SurfaceView? = null
|
||||
@@ -106,7 +111,7 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
private var overlayLayoutListener: ViewTreeObserver.OnGlobalLayoutListener? = null
|
||||
private var lastVideoSize: VideoSize? = null
|
||||
private var exoPlayer: ExoPlayer? = null
|
||||
private var httpDataSourceFactory: OkHttpDataSource.Factory? = null
|
||||
private var httpDataSourceFactory: HttpDataSource.Factory? = null
|
||||
private var dataSourceFactory: DefaultDataSource.Factory? = null
|
||||
private var trackSelector: DefaultTrackSelector? = null
|
||||
private var tunnelingUserEnabled: Boolean = true
|
||||
@@ -136,24 +141,33 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
private var frameRateManager: FrameRateManager? = null
|
||||
private val handler = Handler(Looper.getMainLooper())
|
||||
|
||||
// FPS detection from frame timestamps (fallback when Format.frameRate is NO_VALUE)
|
||||
@Volatile private var detectedFrameRate: Float = -1f
|
||||
private val fpsTimestamps = LongArray(FPS_SAMPLE_COUNT)
|
||||
@Volatile private var fpsTimestampCount = 0
|
||||
|
||||
// Audio focus
|
||||
private var audioFocusManager: AudioFocusManager? = null
|
||||
|
||||
// Track state for event emission
|
||||
private var lastPosition: Long = 0
|
||||
/** Position to use for fallback: max of current position and pending start position. */
|
||||
private val effectivePosition: Long get() = maxOf(lastPosition, pendingStartPositionMs)
|
||||
private var lastDuration: Long = 0
|
||||
private var lastBufferedPosition: Long = 0
|
||||
private var positionUpdateRunnable: Runnable? = null
|
||||
|
||||
// External subtitles added dynamically
|
||||
private val externalSubtitles = mutableListOf<MediaItem.SubtitleConfiguration>()
|
||||
private val externalSubtitleUris = mutableListOf<String>()
|
||||
private var currentMediaUri: String? = null
|
||||
private var currentHeaders: Map<String, String>? = null
|
||||
private var currentMediaIsLive: Boolean = false
|
||||
private var currentVisible: Boolean = false
|
||||
private var selectedAudioTrackId: String? = null
|
||||
private var selectedSubtitleTrackId: String? = null
|
||||
private var selectedExternalSubtitleIndex: Int? = null
|
||||
private val audioTrackGroupMap = mutableMapOf<String, TrackGroup>()
|
||||
private val subtitleTrackGroupMap = mutableMapOf<String, TrackGroup>()
|
||||
|
||||
private fun emitLog(level: String, prefix: String, message: String) {
|
||||
when (level) {
|
||||
@@ -247,8 +261,8 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
activity = activity,
|
||||
handler = handler,
|
||||
onDisplayChanged = {
|
||||
if (exoPlayer?.isPlaying == false && audioFocusManager?.wasPlayingBeforeFocusLoss == true) {
|
||||
Log.d(TAG, "Display changed, resuming playback")
|
||||
if (exoPlayer?.isPlaying == false) {
|
||||
Log.d(TAG, "Display changed after frame rate switch, resuming playback")
|
||||
exoPlayer?.play()
|
||||
}
|
||||
},
|
||||
@@ -349,8 +363,10 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
}
|
||||
}
|
||||
|
||||
// OkHttp DataSource for TCP connection pooling — prevents reconnect stutter at high bitrates
|
||||
httpDataSourceFactory = OkHttpDataSource.Factory(okHttpClient)
|
||||
// Cronet DataSource for HTTP/2 multiplexing — all range requests share one connection
|
||||
httpDataSourceFactory = CronetDataSource.Factory(getCronetEngine(activity), cronetExecutor)
|
||||
.setConnectionTimeoutMs(15_000)
|
||||
.setReadTimeoutMs(10_000)
|
||||
dataSourceFactory = DefaultDataSource.Factory(activity, httpDataSourceFactory!!)
|
||||
val extractorsFactory = DefaultExtractorsFactory()
|
||||
|
||||
@@ -375,14 +391,16 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
extractorsFactory.createExtractors().map { extractor ->
|
||||
when {
|
||||
extractor is MatroskaExtractor -> {
|
||||
val assExtractor = AssMatroskaExtractor(assParserFactory, handler)
|
||||
if (doviEnabled) {
|
||||
val assExtractor = ZlibMatroskaExtractor(assParserFactory, handler)
|
||||
val inner = if (doviEnabled) {
|
||||
DoviExtractorWrapper(assExtractor, currentDvMode).also {
|
||||
activeDoviMkvWrapper = it
|
||||
}
|
||||
} else {
|
||||
assExtractor
|
||||
}
|
||||
// Wrap with approximate seeking for MKV files without Cues
|
||||
CuelessSeekExtractorWrapper(inner)
|
||||
}
|
||||
doviEnabled && (extractor is Mp4Extractor || extractor is FragmentedMp4Extractor) -> {
|
||||
DoviExtractorWrapper(extractor, currentDvMode).also {
|
||||
@@ -422,12 +440,12 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
setTargetBufferBytes(targetBufferBytes)
|
||||
setPrioritizeTimeOverSizeThresholds(false)
|
||||
if (availableMB <= 2048) {
|
||||
setBufferDurationsMs(15_000, 50_000, 2_500, 5_000)
|
||||
setBufferDurationsMs(15_000, 50_000, 1_000, 5_000)
|
||||
} else {
|
||||
setBufferDurationsMs(30_000, 60_000, 2_500, 5_000)
|
||||
setBufferDurationsMs(30_000, 60_000, 1_000, 5_000)
|
||||
}
|
||||
}.build()
|
||||
emitLog("info", "init", "Buffer: ${targetBufferBytes / 1024 / 1024}MB limit, available=${availableMB}MB, tunneling=${tunnelingUserEnabled}, dataSource=OkHttp")
|
||||
emitLog("info", "init", "Buffer: ${targetBufferBytes / 1024 / 1024}MB limit, available=${availableMB}MB, tunneling=${tunnelingUserEnabled}, dataSource=Cronet")
|
||||
|
||||
exoPlayer = ExoPlayer.Builder(activity)
|
||||
.setTrackSelector(trackSelector!!)
|
||||
@@ -465,6 +483,17 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
|
||||
exoPlayer!!.addListener(this)
|
||||
exoPlayer!!.addAnalyticsListener(decoderHangListener)
|
||||
exoPlayer!!.setVideoFrameMetadataListener { presentationTimeUs, _, _, _ ->
|
||||
val count = fpsTimestampCount
|
||||
if (count < FPS_SAMPLE_COUNT) {
|
||||
fpsTimestamps[count] = presentationTimeUs
|
||||
fpsTimestampCount = count + 1
|
||||
if (count + 1 == FPS_SAMPLE_COUNT) {
|
||||
detectedFrameRate = computeFrameRate(fpsTimestamps)
|
||||
Log.d(TAG, "Detected frame rate: $detectedFrameRate fps")
|
||||
}
|
||||
}
|
||||
}
|
||||
surfaceView?.let { exoPlayer!!.setVideoSurfaceView(it) }
|
||||
|
||||
Log.d(TAG, "SubtitleView childCount after ASS setup: ${subtitleView?.childCount}")
|
||||
@@ -642,7 +671,7 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
delegate?.onFormatUnsupported(
|
||||
uri = currentMediaUri!!,
|
||||
headers = currentHeaders,
|
||||
positionMs = lastPosition,
|
||||
positionMs = effectivePosition,
|
||||
errorMessage = "Video track present but no decoder available"
|
||||
)
|
||||
return
|
||||
@@ -655,7 +684,16 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
}
|
||||
|
||||
override fun onPlayerError(error: PlaybackException) {
|
||||
emitLog("error", "player", "Error code=${error.errorCode}: ${error.message}, cause=${error.cause?.javaClass?.simpleName}")
|
||||
// Log full exception chain unminified — R8 mangles simpleName but not toString/message
|
||||
val causeChain = buildString {
|
||||
var t: Throwable? = error.cause
|
||||
while (t != null) {
|
||||
if (isNotEmpty()) append(" → ")
|
||||
append("${t.javaClass.name}: ${t.message}")
|
||||
t = t.cause
|
||||
}
|
||||
}
|
||||
emitLog("error", "player", "Error code=${error.errorCode}: ${error.message}, cause=${causeChain.ifEmpty { "none" }}")
|
||||
stopFrameWatchdog()
|
||||
cancelDecoderHangCheck()
|
||||
emitSeekable(false, force = true)
|
||||
@@ -668,7 +706,7 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
val handled = delegate?.onFormatUnsupported(
|
||||
uri = currentMediaUri!!,
|
||||
headers = currentHeaders,
|
||||
positionMs = lastPosition,
|
||||
positionMs = effectivePosition,
|
||||
errorMessage = error.message ?: "Unknown error"
|
||||
) ?: false
|
||||
|
||||
@@ -763,6 +801,8 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
val tracks = player.currentTracks
|
||||
|
||||
val trackList = mutableListOf<Map<String, Any?>>()
|
||||
audioTrackGroupMap.clear()
|
||||
subtitleTrackGroupMap.clear()
|
||||
|
||||
// Group tracks by type and use group index as track ID (matching select functions)
|
||||
val audioGroups = tracks.groups.filter { it.type == C.TRACK_TYPE_AUDIO }
|
||||
@@ -778,6 +818,7 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
// Use first format in group as the representative track
|
||||
val format = trackGroup.getFormat(0)
|
||||
val trackId = "${C.TRACK_TYPE_AUDIO}_$groupIndex"
|
||||
audioTrackGroupMap[trackId] = trackGroup
|
||||
val isSelected = group.isSelected
|
||||
|
||||
val track = mutableMapOf<String, Any?>(
|
||||
@@ -798,15 +839,21 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
}
|
||||
}
|
||||
|
||||
// Process subtitle tracks
|
||||
// Process subtitle tracks (embedded + side-loaded external)
|
||||
Log.d(TAG, "emitTrackList: found ${textGroups.size} subtitle track groups")
|
||||
textGroups.forEachIndexed { groupIndex, group ->
|
||||
val trackGroup = group.mediaTrackGroup
|
||||
val format = trackGroup.getFormat(0)
|
||||
val trackId = "${C.TRACK_TYPE_TEXT}_$groupIndex"
|
||||
subtitleTrackGroupMap[trackId] = trackGroup
|
||||
val isSelected = group.isSelected
|
||||
|
||||
Log.d(TAG, "Subtitle track $groupIndex: codec=${format.codecs}, lang=${format.language}, selected=$isSelected")
|
||||
// Detect external (side-loaded) subtitle by the ID prefix set in open()
|
||||
val isExternal = format.id?.startsWith("external_") == true
|
||||
val externalIndex = if (isExternal) format.id?.removePrefix("external_")?.toIntOrNull() else null
|
||||
val externalUri = externalIndex?.takeIf { it in externalSubtitleUris.indices }?.let { externalSubtitleUris[it] }
|
||||
|
||||
Log.d(TAG, "Subtitle track $groupIndex: codec=${format.codecs}, lang=${format.language}, selected=$isSelected, external=$isExternal")
|
||||
|
||||
val track = mutableMapOf<String, Any?>(
|
||||
"type" to "sub",
|
||||
@@ -815,8 +862,10 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
"lang" to format.language,
|
||||
"codec" to format.codecs,
|
||||
"default" to (format.selectionFlags and C.SELECTION_FLAG_DEFAULT != 0),
|
||||
"forced" to (format.selectionFlags and C.SELECTION_FLAG_FORCED != 0),
|
||||
"selected" to isSelected,
|
||||
"external" to false
|
||||
"external" to isExternal,
|
||||
"external-filename" to externalUri
|
||||
)
|
||||
trackList.add(track)
|
||||
|
||||
@@ -849,31 +898,12 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
delegate?.onPropertyChange("aid", selectedAudioId)
|
||||
}
|
||||
|
||||
val effectiveSubtitleId = when {
|
||||
selectedExternalSubtitleIndex != null -> "ext_sub_$selectedExternalSubtitleIndex"
|
||||
selectedSubId != null -> selectedSubId
|
||||
textGroups.isNotEmpty() || externalSubtitles.isNotEmpty() -> "no"
|
||||
else -> null
|
||||
}
|
||||
if (effectiveSubtitleId != null) {
|
||||
selectedSubtitleTrackId = effectiveSubtitleId
|
||||
delegate?.onPropertyChange("sid", effectiveSubtitleId)
|
||||
}
|
||||
|
||||
// Add external subtitles to track list
|
||||
externalSubtitles.forEachIndexed { index, subtitle ->
|
||||
val extTrackId = "ext_sub_$index"
|
||||
trackList.add(mapOf(
|
||||
"type" to "sub",
|
||||
"id" to extTrackId,
|
||||
"title" to (subtitle.label ?: "External"),
|
||||
"lang" to subtitle.language,
|
||||
"codec" to subtitle.mimeType,
|
||||
"default" to false,
|
||||
"selected" to (selectedExternalSubtitleIndex == index),
|
||||
"external" to true,
|
||||
"external-filename" to subtitle.uri.toString()
|
||||
))
|
||||
if (selectedSubId != null) {
|
||||
selectedSubtitleTrackId = selectedSubId
|
||||
delegate?.onPropertyChange("sid", selectedSubId)
|
||||
} else if (textGroups.isNotEmpty()) {
|
||||
selectedSubtitleTrackId = "no"
|
||||
delegate?.onPropertyChange("sid", "no")
|
||||
}
|
||||
|
||||
delegate?.onPropertyChange("track-list", trackList)
|
||||
@@ -1001,8 +1031,8 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
val mediaItemBuilder = MediaItem.Builder()
|
||||
.setUri(uri)
|
||||
|
||||
selectedExternalSubtitleIndex?.takeIf { it in externalSubtitles.indices }?.let { subtitleIndex ->
|
||||
mediaItemBuilder.setSubtitleConfigurations(listOf(externalSubtitles[subtitleIndex]))
|
||||
if (externalSubtitles.isNotEmpty()) {
|
||||
mediaItemBuilder.setSubtitleConfigurations(externalSubtitles.toList())
|
||||
}
|
||||
|
||||
return mediaItemBuilder.build()
|
||||
@@ -1066,7 +1096,7 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
delegate?.onFormatUnsupported(
|
||||
uri = uri,
|
||||
headers = currentHeaders,
|
||||
positionMs = lastPosition,
|
||||
positionMs = effectivePosition,
|
||||
errorMessage = "Decoder hang: $decoderName accepted input but produced no output"
|
||||
)
|
||||
}
|
||||
@@ -1148,12 +1178,17 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
|
||||
// Public API
|
||||
|
||||
fun open(uri: String, headers: Map<String, String>?, startPositionMs: Long, autoPlay: Boolean, isLive: Boolean = false) {
|
||||
fun open(uri: String, headers: Map<String, String>?, startPositionMs: Long, autoPlay: Boolean, isLive: Boolean = false,
|
||||
externalSubtitleList: List<Map<String, String?>>? = null) {
|
||||
if (!isInitialized) return
|
||||
|
||||
stopFrameWatchdog()
|
||||
cancelDecoderHangCheck()
|
||||
|
||||
// Reset FPS detection for new content
|
||||
detectedFrameRate = -1f
|
||||
fpsTimestampCount = 0
|
||||
|
||||
// Reset DV7 retry flag when opening a different file
|
||||
if (uri != currentMediaUri) {
|
||||
dv7RetryAttempted = false
|
||||
@@ -1165,21 +1200,39 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
currentHeaders = headers
|
||||
currentMediaIsLive = isLive
|
||||
|
||||
// Apply auth/custom headers to the OkHttp DataSource for this session
|
||||
// Apply auth/custom headers to the HTTP DataSource for this session
|
||||
httpDataSourceFactory?.setDefaultRequestProperties(
|
||||
if (!headers.isNullOrEmpty()) headers else emptyMap()
|
||||
)
|
||||
|
||||
externalSubtitles.clear()
|
||||
selectedExternalSubtitleIndex = null
|
||||
externalSubtitleUris.clear()
|
||||
audioTrackGroupMap.clear()
|
||||
subtitleTrackGroupMap.clear()
|
||||
selectedAudioTrackId = null
|
||||
selectedSubtitleTrackId = null
|
||||
|
||||
// Build external subtitle configurations (attached to MediaItem before prepare)
|
||||
externalSubtitleList?.forEachIndexed { index, sub ->
|
||||
val subUri = sub["uri"] ?: return@forEachIndexed
|
||||
val config = MediaItem.SubtitleConfiguration.Builder(Uri.parse(subUri))
|
||||
.setId("external_$index")
|
||||
.setLabel(sub["title"] ?: "External")
|
||||
.setLanguage(sub["language"])
|
||||
.setMimeType(sub["mimeType"] ?: detectSubtitleMimeType(subUri))
|
||||
.build()
|
||||
externalSubtitles.add(config)
|
||||
externalSubtitleUris.add(subUri)
|
||||
}
|
||||
tunnelingDisabledForAudioCodec = false
|
||||
tunnelingDisabledForVideoCodec = false
|
||||
currentTunneledPlayback = tunnelingUserEnabled
|
||||
pendingStartPositionMs = startPositionMs
|
||||
trackSelector?.setParameters(
|
||||
trackSelector!!.buildUponParameters().setTunnelingEnabled(tunnelingUserEnabled)
|
||||
trackSelector!!.buildUponParameters()
|
||||
.setTunnelingEnabled(tunnelingUserEnabled)
|
||||
.clearOverridesOfType(C.TRACK_TYPE_AUDIO)
|
||||
.clearOverridesOfType(C.TRACK_TYPE_TEXT)
|
||||
)
|
||||
emitSeekable(false, force = true)
|
||||
|
||||
@@ -1249,35 +1302,22 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
}
|
||||
|
||||
fun selectAudioTrack(trackId: String) {
|
||||
val player = exoPlayer ?: return
|
||||
val selector = trackSelector ?: return
|
||||
val trackGroup = audioTrackGroupMap[trackId] ?: return
|
||||
|
||||
// Parse track ID (format: "type_index")
|
||||
val parts = trackId.split("_")
|
||||
if (parts.size < 2) return
|
||||
selector.parameters = selector.buildUponParameters()
|
||||
.setOverrideForType(TrackSelectionOverride(trackGroup, 0))
|
||||
.setTrackTypeDisabled(C.TRACK_TYPE_AUDIO, false)
|
||||
.build()
|
||||
|
||||
val trackIndex = parts[1].toIntOrNull() ?: return
|
||||
|
||||
val audioGroups = player.currentTracks.groups.filter { it.type == C.TRACK_TYPE_AUDIO }
|
||||
if (trackIndex >= 0 && trackIndex < audioGroups.size) {
|
||||
val group = audioGroups[trackIndex]
|
||||
selector.parameters = selector.buildUponParameters()
|
||||
.setOverrideForType(TrackSelectionOverride(group.mediaTrackGroup, 0))
|
||||
.setTrackTypeDisabled(C.TRACK_TYPE_AUDIO, false)
|
||||
.build()
|
||||
|
||||
selectedAudioTrackId = trackId
|
||||
delegate?.onPropertyChange("aid", trackId)
|
||||
}
|
||||
selectedAudioTrackId = trackId
|
||||
delegate?.onPropertyChange("aid", trackId)
|
||||
}
|
||||
|
||||
fun selectSubtitleTrack(trackId: String?) {
|
||||
val player = exoPlayer ?: return
|
||||
val selector = trackSelector ?: return
|
||||
|
||||
if (trackId == null || trackId == "no") {
|
||||
// Disable subtitles
|
||||
selectedExternalSubtitleIndex = null
|
||||
selectedSubtitleTrackId = "no"
|
||||
selector.parameters = selector.buildUponParameters()
|
||||
.setTrackTypeDisabled(C.TRACK_TYPE_TEXT, true)
|
||||
@@ -1286,80 +1326,42 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
return
|
||||
}
|
||||
|
||||
// Check if external subtitle
|
||||
if (trackId.startsWith("ext_sub_")) {
|
||||
val index = trackId.removePrefix("ext_sub_").toIntOrNull() ?: return
|
||||
if (index >= 0 && index < externalSubtitles.size) {
|
||||
// Reload media with selected external subtitle
|
||||
selectedExternalSubtitleIndex = index
|
||||
selectedSubtitleTrackId = trackId
|
||||
reloadWithExternalSubtitle(index)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
// Parse track ID for embedded subtitles
|
||||
val parts = trackId.split("_")
|
||||
if (parts.size < 2) return
|
||||
|
||||
val trackIndex = parts[1].toIntOrNull() ?: return
|
||||
|
||||
val textGroups = player.currentTracks.groups.filter { it.type == C.TRACK_TYPE_TEXT }
|
||||
if (trackIndex >= 0 && trackIndex < textGroups.size) {
|
||||
val group = textGroups[trackIndex]
|
||||
selectedExternalSubtitleIndex = null
|
||||
selectedSubtitleTrackId = trackId
|
||||
selector.parameters = selector.buildUponParameters()
|
||||
.setOverrideForType(TrackSelectionOverride(group.mediaTrackGroup, 0))
|
||||
.setTrackTypeDisabled(C.TRACK_TYPE_TEXT, false)
|
||||
.build()
|
||||
|
||||
delegate?.onPropertyChange("sid", trackId)
|
||||
}
|
||||
}
|
||||
|
||||
private fun reloadWithExternalSubtitle(subtitleIndex: Int) {
|
||||
val uri = currentMediaUri ?: return
|
||||
val player = exoPlayer ?: return
|
||||
|
||||
val currentPosition = player.currentPosition
|
||||
val shouldResume = player.playWhenReady
|
||||
selectedExternalSubtitleIndex = subtitleIndex
|
||||
selectedSubtitleTrackId = "ext_sub_$subtitleIndex"
|
||||
val mediaItem = buildMediaItem(uri)
|
||||
|
||||
player.setMediaItem(mediaItem, currentPosition)
|
||||
player.prepare()
|
||||
player.playWhenReady = shouldResume
|
||||
|
||||
delegate?.onPropertyChange("sid", "ext_sub_$subtitleIndex")
|
||||
val trackGroup = subtitleTrackGroupMap[trackId] ?: return
|
||||
selectedSubtitleTrackId = trackId
|
||||
selector.parameters = selector.buildUponParameters()
|
||||
.setOverrideForType(TrackSelectionOverride(trackGroup, 0))
|
||||
.setTrackTypeDisabled(C.TRACK_TYPE_TEXT, false)
|
||||
.build()
|
||||
delegate?.onPropertyChange("sid", trackId)
|
||||
}
|
||||
|
||||
fun addSubtitleTrack(uri: String, title: String?, language: String?, mimeType: String?, select: Boolean) {
|
||||
val index = externalSubtitles.size
|
||||
val subtitleConfig = MediaItem.SubtitleConfiguration.Builder(Uri.parse(uri))
|
||||
.setId("external_$index")
|
||||
.setLabel(title ?: "External")
|
||||
.setLanguage(language)
|
||||
.setMimeType(mimeType ?: detectSubtitleMimeType(uri))
|
||||
.setSelectionFlags(if (select) C.SELECTION_FLAG_DEFAULT else 0)
|
||||
.build()
|
||||
|
||||
externalSubtitles.add(subtitleConfig)
|
||||
externalSubtitleUris.add(uri)
|
||||
|
||||
// Emit updated track list
|
||||
// Note: ExoPlayer won't see these until the media is reloaded.
|
||||
// On Android, external subs are normally passed at open() time.
|
||||
// This path is only reached if the Flutter layer calls addSubtitleTrack
|
||||
// while ExoPlayer (not MPV fallback) is active.
|
||||
emitTrackList()
|
||||
|
||||
if (select) {
|
||||
selectSubtitleTrack("ext_sub_${externalSubtitles.size - 1}")
|
||||
}
|
||||
}
|
||||
|
||||
private fun detectSubtitleMimeType(uri: String): String {
|
||||
val lowerUri = uri.lowercase()
|
||||
// Strip query params before checking extension (Plex URLs have ?X-Plex-Token=...)
|
||||
val path = Uri.parse(uri).path?.lowercase() ?: uri.lowercase()
|
||||
return when {
|
||||
lowerUri.endsWith(".srt") -> MimeTypes.APPLICATION_SUBRIP
|
||||
lowerUri.endsWith(".ass") || lowerUri.endsWith(".ssa") -> MimeTypes.TEXT_SSA
|
||||
lowerUri.endsWith(".vtt") -> MimeTypes.TEXT_VTT
|
||||
lowerUri.endsWith(".ttml") -> MimeTypes.APPLICATION_TTML
|
||||
path.endsWith(".srt") -> MimeTypes.APPLICATION_SUBRIP
|
||||
path.endsWith(".ass") || path.endsWith(".ssa") -> MimeTypes.TEXT_SSA
|
||||
path.endsWith(".vtt") -> MimeTypes.TEXT_VTT
|
||||
path.endsWith(".ttml") -> MimeTypes.APPLICATION_TTML
|
||||
else -> MimeTypes.APPLICATION_SUBRIP
|
||||
}
|
||||
}
|
||||
@@ -1474,6 +1476,20 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
frameRateManager?.clearVideoFrameRate()
|
||||
}
|
||||
|
||||
private fun computeFrameRate(timestamps: LongArray): Float {
|
||||
val deltas = (1 until FPS_SAMPLE_COUNT).map { timestamps[it] - timestamps[it - 1] }.filter { it > 0 }
|
||||
if (deltas.isEmpty()) return -1f
|
||||
val medianDelta = deltas.sorted()[deltas.size / 2]
|
||||
val rawFps = 1_000_000.0 / medianDelta
|
||||
return normalizeFrameRate(rawFps)
|
||||
}
|
||||
|
||||
private fun normalizeFrameRate(fps: Double): Float {
|
||||
val knownRates = doubleArrayOf(23.976, 24.0, 25.0, 29.97, 30.0, 48.0, 50.0, 59.94, 60.0)
|
||||
val nearest = knownRates.minByOrNull { kotlin.math.abs(it - fps) } ?: fps
|
||||
return if (kotlin.math.abs(nearest - fps) < 0.5) nearest.toFloat() else fps.toFloat()
|
||||
}
|
||||
|
||||
// Stats
|
||||
|
||||
fun getStats(): Map<String, Any?> {
|
||||
@@ -1490,7 +1506,7 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
"videoMimeType" to videoFormat?.sampleMimeType,
|
||||
"videoWidth" to videoFormat?.width,
|
||||
"videoHeight" to videoFormat?.height,
|
||||
"videoFps" to videoFormat?.frameRate,
|
||||
"videoFps" to (videoFormat?.frameRate?.takeIf { it > 0 } ?: detectedFrameRate.takeIf { it > 0 }),
|
||||
"videoBitrate" to videoFormat?.bitrate,
|
||||
"videoDecoderName" to (decoderInitName ?: videoDecoderInfo),
|
||||
"videoDroppedFrames" to player.videoDecoderCounters?.droppedBufferCount,
|
||||
@@ -1566,11 +1582,18 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
return "Off"
|
||||
}
|
||||
|
||||
fun triggerFallback() {
|
||||
val uri = currentMediaUri ?: return
|
||||
val pos = exoPlayer?.currentPosition ?: 0L
|
||||
delegate?.onFormatUnsupported(uri, currentHeaders, pos, "debug: manual fallback trigger")
|
||||
}
|
||||
|
||||
// Cleanup
|
||||
|
||||
fun dispose() {
|
||||
if (disposing) return
|
||||
disposing = true
|
||||
check(Looper.myLooper() == Looper.getMainLooper())
|
||||
Log.d(TAG, "Disposing")
|
||||
|
||||
stopFrameWatchdog()
|
||||
@@ -1593,7 +1616,8 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
emitSeekable(false, force = true)
|
||||
selectedAudioTrackId = null
|
||||
selectedSubtitleTrackId = null
|
||||
selectedExternalSubtitleIndex = null
|
||||
audioTrackGroupMap.clear()
|
||||
subtitleTrackGroupMap.clear()
|
||||
exoPlayer?.clearVideoSurface()
|
||||
exoPlayer?.removeListener(this)
|
||||
exoPlayer?.release()
|
||||
@@ -1601,30 +1625,40 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
trackSelector = null
|
||||
httpDataSourceFactory = null
|
||||
dataSourceFactory = null
|
||||
assHandler?.release()
|
||||
assHandler = null
|
||||
|
||||
// Capture locals for deferred cleanup
|
||||
val cb = surfaceCallback
|
||||
val sv = surfaceView
|
||||
val container = surfaceContainer
|
||||
val contentView = activity.findViewById<ViewGroup>(android.R.id.content)
|
||||
|
||||
// Synchronous ownership invalidation — stale code can no longer
|
||||
// reach surface state through instance fields.
|
||||
surfaceContainer = null
|
||||
surfaceView = null
|
||||
subtitleView = null
|
||||
|
||||
// Remove layout listener synchronously
|
||||
overlayLayoutListener?.let { listener ->
|
||||
val contentView = activity.findViewById<ViewGroup>(android.R.id.content)
|
||||
contentView.viewTreeObserver.removeOnGlobalLayoutListener(listener)
|
||||
}
|
||||
overlayLayoutListener = null
|
||||
|
||||
// Defer all view removal to avoid AOSP bug where
|
||||
// dispatchWindowVisibilityChanged iterates stale children array
|
||||
// when removeView() runs during an active performTraversals pass.
|
||||
val container = surfaceContainer
|
||||
val contentView = activity.findViewById<ViewGroup>(android.R.id.content)
|
||||
contentView.post {
|
||||
isInitialized = false
|
||||
|
||||
// Deferred view removal only — uses captured locals.
|
||||
// postAtFrontOfQueue as defense-in-depth: orders removal before
|
||||
// queued initialize messages.
|
||||
Handler(Looper.getMainLooper()).postAtFrontOfQueue {
|
||||
sv?.holder?.removeCallback(cb)
|
||||
container?.let { contentView.removeView(it) }
|
||||
surfaceContainer = null
|
||||
surfaceView = null
|
||||
subtitleView = null
|
||||
if (container?.parent != null) {
|
||||
contentView.removeView(container)
|
||||
}
|
||||
}
|
||||
|
||||
isInitialized = false
|
||||
Log.d(TAG, "Disposed")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -2,8 +2,11 @@ package com.edde746.plezy.exoplayer
|
||||
|
||||
import android.app.Activity
|
||||
import android.app.ActivityManager
|
||||
import android.content.ContentResolver
|
||||
import android.content.Context
|
||||
import android.net.Uri
|
||||
import android.os.Handler
|
||||
import android.os.Looper
|
||||
import android.util.Log
|
||||
import com.edde746.plezy.mpv.MpvPlayerCore
|
||||
import io.flutter.embedding.engine.plugins.FlutterPlugin
|
||||
@@ -32,8 +35,10 @@ class ExoPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
private var activity: Activity? = null
|
||||
private var activityBinding: ActivityPluginBinding? = null
|
||||
private val nameToId = mutableMapOf<String, Int>()
|
||||
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>>()
|
||||
|
||||
@@ -64,6 +69,7 @@ class ExoPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
}
|
||||
|
||||
override fun onDetachedFromActivity() {
|
||||
sessionGeneration++
|
||||
playerCore?.dispose()
|
||||
playerCore = null
|
||||
mpvCore?.dispose()
|
||||
@@ -82,6 +88,8 @@ class ExoPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
}
|
||||
|
||||
override fun onDetachedFromActivityForConfigChanges() {
|
||||
sessionGeneration++
|
||||
fallbackInProgress = false
|
||||
activity = null
|
||||
activityBinding = null
|
||||
Log.d(TAG, "Detached from activity for config changes")
|
||||
@@ -139,6 +147,10 @@ class ExoPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
playerCore?.debugLoggingEnabled = debugLoggingEnabled
|
||||
result.success(null)
|
||||
}
|
||||
"triggerFallback" -> {
|
||||
playerCore?.triggerFallback()
|
||||
result.success(null)
|
||||
}
|
||||
else -> result.notImplemented()
|
||||
}
|
||||
}
|
||||
@@ -161,6 +173,15 @@ class ExoPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
configuredBufferSizeBytes = bufferSizeBytes
|
||||
|
||||
currentActivity.runOnUiThread {
|
||||
sessionGeneration++
|
||||
|
||||
if (mpvCore != null || fallbackInProgress) {
|
||||
mpvCore?.dispose()
|
||||
mpvCore = null
|
||||
usingMpvFallback = false
|
||||
fallbackInProgress = false
|
||||
}
|
||||
|
||||
try {
|
||||
playerCore = ExoPlayerCore(currentActivity).apply {
|
||||
delegate = this@ExoPlayerPlugin
|
||||
@@ -185,6 +206,7 @@ class ExoPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
|
||||
private fun handleDispose(result: MethodChannel.Result) {
|
||||
activity?.runOnUiThread {
|
||||
sessionGeneration++
|
||||
playerCore?.dispose()
|
||||
playerCore = null
|
||||
mpvCore?.dispose()
|
||||
@@ -196,20 +218,25 @@ class ExoPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
} ?: result.success(null)
|
||||
}
|
||||
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
private fun handleOpen(call: MethodCall, result: MethodChannel.Result) {
|
||||
val uri = call.argument<String>("uri")
|
||||
val headers = call.argument<Map<String, String>>("headers")
|
||||
val startPositionMs = call.argument<Number>("startPositionMs")?.toLong() ?: 0L
|
||||
val autoPlay = call.argument<Boolean>("autoPlay") ?: true
|
||||
val isLive = call.argument<Boolean>("isLive") ?: false
|
||||
val externalSubtitles = call.argument<List<Map<String, String?>>>("externalSubtitles")
|
||||
|
||||
if (uri == null) {
|
||||
result.error("INVALID_ARGS", "Missing 'uri'", null)
|
||||
return
|
||||
}
|
||||
|
||||
// New media = fresh slate for pending MPV properties
|
||||
pendingMpvProperties.clear()
|
||||
// Only clear pending MPV properties when MPV is the active backend.
|
||||
// When ExoPlayer is active, keep them for potential ExoPlayer→MPV fallback.
|
||||
if (usingMpvFallback) {
|
||||
pendingMpvProperties.clear()
|
||||
}
|
||||
|
||||
activity?.runOnUiThread {
|
||||
if (usingMpvFallback) {
|
||||
@@ -224,11 +251,9 @@ class ExoPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
val optionsStr = options.joinToString(",")
|
||||
// Convert content:// URIs to fdclose:// for MPV (SAF SD card downloads)
|
||||
val mpvUri = openContentFd(uri)?.let { "fdclose://$it" } ?: uri
|
||||
mpvCore?.runOnExecutor {
|
||||
mpvCore?.command(arrayOf("loadfile", mpvUri, "replace", "-1", optionsStr))
|
||||
}
|
||||
mpvCore?.command(arrayOf("loadfile", mpvUri, "replace", "-1", optionsStr))
|
||||
} else {
|
||||
playerCore?.open(uri, headers, startPositionMs, autoPlay, isLive)
|
||||
playerCore?.open(uri, headers, startPositionMs, autoPlay, isLive, externalSubtitles)
|
||||
}
|
||||
result.success(null)
|
||||
} ?: result.error("NO_ACTIVITY", "Activity not available", null)
|
||||
@@ -237,7 +262,7 @@ class ExoPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
private fun handlePlay(result: MethodChannel.Result) {
|
||||
activity?.runOnUiThread {
|
||||
if (usingMpvFallback) {
|
||||
mpvCore?.runOnExecutor { mpvCore?.setProperty("pause", "no") }
|
||||
mpvCore?.setProperty("pause", "no")
|
||||
} else {
|
||||
playerCore?.play()
|
||||
}
|
||||
@@ -248,7 +273,7 @@ class ExoPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
private fun handlePause(result: MethodChannel.Result) {
|
||||
activity?.runOnUiThread {
|
||||
if (usingMpvFallback) {
|
||||
mpvCore?.runOnExecutor { mpvCore?.setProperty("pause", "yes") }
|
||||
mpvCore?.setProperty("pause", "yes")
|
||||
} else {
|
||||
playerCore?.pause()
|
||||
}
|
||||
@@ -259,10 +284,8 @@ class ExoPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
private fun handleStop(result: MethodChannel.Result) {
|
||||
activity?.runOnUiThread {
|
||||
if (usingMpvFallback) {
|
||||
mpvCore?.runOnExecutor {
|
||||
mpvCore?.command(arrayOf("stop"))
|
||||
mpvCore?.setVisible(false)
|
||||
}
|
||||
mpvCore?.command(arrayOf("stop"))
|
||||
mpvCore?.setVisible(false)
|
||||
} else {
|
||||
playerCore?.stop()
|
||||
}
|
||||
@@ -281,9 +304,7 @@ class ExoPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
activity?.runOnUiThread {
|
||||
if (usingMpvFallback) {
|
||||
val positionSeconds = positionMs / 1000.0
|
||||
mpvCore?.runOnExecutor {
|
||||
mpvCore?.command(arrayOf("seek", positionSeconds.toString(), "absolute"))
|
||||
}
|
||||
mpvCore?.command(arrayOf("seek", positionSeconds.toString(), "absolute"))
|
||||
} else {
|
||||
playerCore?.seekTo(positionMs)
|
||||
}
|
||||
@@ -301,7 +322,7 @@ class ExoPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
|
||||
activity?.runOnUiThread {
|
||||
if (usingMpvFallback) {
|
||||
mpvCore?.runOnExecutor { mpvCore?.setProperty("volume", volume.toString()) }
|
||||
mpvCore?.setProperty("volume", volume.toString())
|
||||
} else {
|
||||
playerCore?.setVolume(volume / 100f) // Convert 0-100 to 0-1
|
||||
}
|
||||
@@ -319,7 +340,7 @@ class ExoPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
|
||||
activity?.runOnUiThread {
|
||||
if (usingMpvFallback) {
|
||||
mpvCore?.runOnExecutor { mpvCore?.setProperty("speed", rate.toString()) }
|
||||
mpvCore?.setProperty("speed", rate.toString())
|
||||
} else {
|
||||
playerCore?.setPlaybackSpeed(rate)
|
||||
}
|
||||
@@ -337,9 +358,8 @@ class ExoPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
|
||||
activity?.runOnUiThread {
|
||||
if (usingMpvFallback) {
|
||||
// MPV uses numeric track IDs - extract from string format
|
||||
val numericId = trackId.split("_").lastOrNull()?.toIntOrNull() ?: 1
|
||||
mpvCore?.runOnExecutor { mpvCore?.setProperty("aid", numericId.toString()) }
|
||||
// After fallback, track IDs come from mpv's track-list (already 1-indexed)
|
||||
mpvCore?.setProperty("aid", trackId)
|
||||
} else {
|
||||
playerCore?.selectAudioTrack(trackId)
|
||||
}
|
||||
@@ -353,14 +373,7 @@ class ExoPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
// trackId can be null or "no" to disable subtitles
|
||||
activity?.runOnUiThread {
|
||||
if (usingMpvFallback) {
|
||||
mpvCore?.runOnExecutor {
|
||||
if (trackId == null || trackId == "no") {
|
||||
mpvCore?.setProperty("sid", "no")
|
||||
} else {
|
||||
val numericId = trackId.split("_").lastOrNull()?.toIntOrNull() ?: 1
|
||||
mpvCore?.setProperty("sid", numericId.toString())
|
||||
}
|
||||
}
|
||||
mpvCore?.setProperty("sid", trackId ?: "no")
|
||||
} else {
|
||||
playerCore?.selectSubtitleTrack(trackId)
|
||||
}
|
||||
@@ -383,9 +396,7 @@ class ExoPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
activity?.runOnUiThread {
|
||||
if (usingMpvFallback) {
|
||||
val selectFlag = if (select) "select" else "auto"
|
||||
mpvCore?.runOnExecutor {
|
||||
mpvCore?.command(arrayOf("sub-add", uri, selectFlag, title ?: "External"))
|
||||
}
|
||||
mpvCore?.command(arrayOf("sub-add", uri, selectFlag, title ?: "External"))
|
||||
} else {
|
||||
playerCore?.addSubtitleTrack(uri, title, language, mimeType, select)
|
||||
}
|
||||
@@ -494,7 +505,7 @@ class ExoPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
}
|
||||
|
||||
if (usingMpvFallback) {
|
||||
mpvCore?.runOnExecutor { mpvCore?.setProperty(name, value) }
|
||||
mpvCore?.setProperty(name, value)
|
||||
} else {
|
||||
// Store for later application if ExoPlayer falls back to MPV
|
||||
pendingMpvProperties.add(Pair(name, value))
|
||||
@@ -504,10 +515,10 @@ class ExoPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
|
||||
private fun handleGetStats(result: MethodChannel.Result) {
|
||||
if (usingMpvFallback) {
|
||||
mpvCore?.runOnExecutor {
|
||||
Thread {
|
||||
val stats = getMpvStats()
|
||||
activity?.runOnUiThread { result.success(stats) }
|
||||
} ?: result.success(mapOf("playerType" to "mpv"))
|
||||
}.start()
|
||||
} else {
|
||||
activity?.runOnUiThread {
|
||||
val coreStats = playerCore?.getStats() ?: emptyMap()
|
||||
@@ -532,6 +543,8 @@ class ExoPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
"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"),
|
||||
@@ -587,7 +600,7 @@ class ExoPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
|
||||
override fun onPropertyChange(name: String, value: Any?) {
|
||||
val propId = nameToId[name] ?: return
|
||||
eventSink?.success(listOf(propId, value))
|
||||
mainHandler.post { eventSink?.success(listOf(propId, value)) }
|
||||
}
|
||||
|
||||
override fun onEvent(name: String, data: Map<String, Any>?) {
|
||||
@@ -596,7 +609,7 @@ class ExoPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
"name" to name
|
||||
)
|
||||
data?.let { event["data"] = it }
|
||||
eventSink?.success(event)
|
||||
mainHandler.post { eventSink?.success(event) }
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -604,11 +617,14 @@ class ExoPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
* or null if the URI is not a content:// scheme or opening fails.
|
||||
* The returned FD is detached so MPV can own and close it via fdclose://.
|
||||
*/
|
||||
private fun openContentFd(uriString: String): Int? {
|
||||
private fun openContentFd(
|
||||
uriString: String,
|
||||
resolver: ContentResolver? = activity?.contentResolver
|
||||
): Int? {
|
||||
if (!uriString.startsWith("content://")) return null
|
||||
return try {
|
||||
val uri = Uri.parse(uriString)
|
||||
val pfd = activity?.contentResolver?.openFileDescriptor(uri, "r") ?: return null
|
||||
val pfd = resolver?.openFileDescriptor(uri, "r") ?: return null
|
||||
val fd = pfd.detachFd()
|
||||
Log.d(TAG, "Opened content FD $fd for $uriString")
|
||||
fd
|
||||
@@ -647,95 +663,135 @@ class ExoPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
playerCore = null
|
||||
mpvCore?.dispose()
|
||||
mpvCore = null
|
||||
usingMpvFallback = false // Clear before handoff
|
||||
|
||||
// Create and initialize MPV
|
||||
mpvCore = MpvPlayerCore(currentActivity).apply {
|
||||
delegate = this@ExoPlayerPlugin
|
||||
}
|
||||
mpvCore?.initialize { success ->
|
||||
if (!success) {
|
||||
val generation = sessionGeneration
|
||||
|
||||
Handler(Looper.getMainLooper()).post {
|
||||
if (generation != sessionGeneration) {
|
||||
fallbackInProgress = false
|
||||
Log.e(TAG, "Failed to initialize MPV fallback")
|
||||
onEvent("end-file", mapOf("reason" to "error", "message" to "Fallback failed: $errorMessage"))
|
||||
return@initialize
|
||||
return@post
|
||||
}
|
||||
val act = activity
|
||||
if (act == null) {
|
||||
fallbackInProgress = false
|
||||
return@post
|
||||
}
|
||||
|
||||
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)?.let { "fdclose://$it" } ?: uri
|
||||
|
||||
// Buffer size for closure
|
||||
val bufferSize = configuredBufferSizeBytes
|
||||
|
||||
mpvCore?.runOnExecutor {
|
||||
// Configure basic MPV properties for Plex playback
|
||||
mpvCore?.setProperty("hwdec", "mediacodec,mediacodec-copy")
|
||||
mpvCore?.setProperty("vo", "gpu")
|
||||
mpvCore?.setProperty("ao", "audiotrack")
|
||||
|
||||
// Forward user's buffer config to MPV fallback
|
||||
if (bufferSize != null && bufferSize > 0) {
|
||||
mpvCore?.setProperty("demuxer-max-bytes", bufferSize.toString())
|
||||
try {
|
||||
val core = MpvPlayerCore(act).apply {
|
||||
delegate = this@ExoPlayerPlugin
|
||||
}
|
||||
mpvCore = core // publish so dispose/init can reach it
|
||||
|
||||
// Apply pending MPV properties from Dart
|
||||
for ((propName, propValue) in pendingProps) {
|
||||
mpvCore?.setProperty(propName, propValue)
|
||||
core.initialize { success ->
|
||||
if (generation != sessionGeneration) {
|
||||
if (mpvCore === core) {
|
||||
core.dispose()
|
||||
mpvCore = null
|
||||
}
|
||||
fallbackInProgress = false
|
||||
return@initialize
|
||||
}
|
||||
if (!success) {
|
||||
if (mpvCore === core) {
|
||||
core.dispose()
|
||||
mpvCore = null
|
||||
}
|
||||
fallbackInProgress = false
|
||||
Log.e(TAG, "Failed to initialize MPV fallback")
|
||||
onEvent("end-file", mapOf("reason" to "error", "message" to "Fallback failed: $errorMessage"))
|
||||
return@initialize
|
||||
}
|
||||
|
||||
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")
|
||||
}
|
||||
|
||||
// Setup property observers
|
||||
mpvCore?.observeProperty("time-pos", "double")
|
||||
mpvCore?.observeProperty("duration", "double")
|
||||
mpvCore?.observeProperty("seekable", "flag")
|
||||
mpvCore?.observeProperty("pause", "flag")
|
||||
mpvCore?.observeProperty("paused-for-cache", "flag")
|
||||
mpvCore?.observeProperty("demuxer-cache-time", "double")
|
||||
mpvCore?.observeProperty("eof-reached", "flag")
|
||||
mpvCore?.observeProperty("track-list", "string")
|
||||
mpvCore?.observeProperty("aid", "string")
|
||||
mpvCore?.observeProperty("sid", "string")
|
||||
mpvCore?.observeProperty("volume", "double")
|
||||
mpvCore?.observeProperty("speed", "double")
|
||||
|
||||
// Show the MPV surface (internally posts to UI)
|
||||
mpvCore?.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(",")
|
||||
mpvCore?.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.
|
||||
val peakDetection = mpvCore?.getProperty("hdr-compute-peak")
|
||||
if (peakDetection == "no") {
|
||||
Log.i(TAG, "No compute shaders — overriding tone-mapping to reinhard")
|
||||
mpvCore?.setProperty("tone-mapping", "reinhard")
|
||||
mpvCore?.setProperty("tone-mapping-param", "0.7")
|
||||
mpvCore?.setProperty("tone-mapping-mode", "luma")
|
||||
}
|
||||
|
||||
// Request audio focus
|
||||
mpvCore?.requestAudioFocus()
|
||||
|
||||
// Emit backend-switched event on main thread
|
||||
activity?.runOnUiThread {
|
||||
onEvent("backend-switched", null)
|
||||
}
|
||||
|
||||
Log.i(TAG, "Successfully switched to MPV fallback")
|
||||
} catch (e: Exception) {
|
||||
fallbackInProgress = false
|
||||
Log.e(TAG, "Failed to switch to MPV fallback", e)
|
||||
onEvent("end-file", mapOf("reason" to "error", "message" to "Fallback failed: ${e.message}"))
|
||||
}
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
|
||||
@@ -0,0 +1,123 @@
|
||||
package com.edde746.plezy.exoplayer
|
||||
|
||||
import android.util.Log
|
||||
import androidx.media3.common.DataReader
|
||||
import androidx.media3.common.Format
|
||||
import androidx.media3.common.util.ParsableByteArray
|
||||
import androidx.media3.extractor.TrackOutput
|
||||
import java.util.zip.DataFormatException
|
||||
import java.util.zip.Inflater
|
||||
|
||||
/**
|
||||
* TrackOutput wrapper that inflates zlib-compressed sample data (MKV ContentCompAlgo 0).
|
||||
* Each MKV block is independently zlib-compressed; this wrapper decompresses per-sample
|
||||
* between sampleData() and sampleMetadata() calls.
|
||||
*
|
||||
* All buffers are reused across samples to minimize GC pressure on the hot path.
|
||||
*/
|
||||
class ZlibInflatingTrackOutput(
|
||||
private val delegate: TrackOutput,
|
||||
) : TrackOutput {
|
||||
|
||||
companion object {
|
||||
private const val TAG = "ZlibTrackOutput"
|
||||
private const val INITIAL_BUFFER_SIZE = 256 * 1024
|
||||
private const val INFLATE_CHUNK = 64 * 1024
|
||||
}
|
||||
|
||||
var active = false
|
||||
|
||||
private val inflater = Inflater()
|
||||
|
||||
// Reusable buffers — grown as needed, never shrunk
|
||||
private var compressedBuf = ByteArray(INITIAL_BUFFER_SIZE)
|
||||
private var compressedLen = 0
|
||||
private var inflateBuf = ByteArray(INITIAL_BUFFER_SIZE)
|
||||
private var readBuf = ByteArray(INFLATE_CHUNK)
|
||||
private val outputParsable = ParsableByteArray()
|
||||
private var buffering = false
|
||||
|
||||
override fun format(format: Format) = delegate.format(format)
|
||||
|
||||
override fun sampleData(
|
||||
input: DataReader, length: Int, allowEndOfInput: Boolean, sampleDataPart: Int
|
||||
): Int {
|
||||
if (!active) return delegate.sampleData(input, length, allowEndOfInput, sampleDataPart)
|
||||
|
||||
buffering = true
|
||||
if (readBuf.size < length) readBuf = ByteArray(length)
|
||||
val bytesRead = input.read(readBuf, 0, length)
|
||||
if (bytesRead > 0) appendCompressed(readBuf, 0, bytesRead)
|
||||
return bytesRead
|
||||
}
|
||||
|
||||
override fun sampleData(data: ParsableByteArray, length: Int, sampleDataPart: Int) {
|
||||
if (!active) {
|
||||
delegate.sampleData(data, length, sampleDataPart)
|
||||
return
|
||||
}
|
||||
|
||||
buffering = true
|
||||
ensureCompressedCapacity(compressedLen + length)
|
||||
data.readBytes(compressedBuf, compressedLen, length)
|
||||
compressedLen += length
|
||||
}
|
||||
|
||||
override fun sampleMetadata(
|
||||
timeUs: Long, flags: Int, size: Int, offset: Int, cryptoData: TrackOutput.CryptoData?
|
||||
) {
|
||||
if (!active || !buffering) {
|
||||
delegate.sampleMetadata(timeUs, flags, size, offset, cryptoData)
|
||||
return
|
||||
}
|
||||
|
||||
buffering = false
|
||||
val srcLen = compressedLen
|
||||
compressedLen = 0
|
||||
|
||||
val inflatedLen = try {
|
||||
inflater.reset()
|
||||
inflater.setInput(compressedBuf, 0, srcLen)
|
||||
var written = 0
|
||||
while (!inflater.finished()) {
|
||||
if (written == inflateBuf.size) growInflateBuf()
|
||||
val count = inflater.inflate(inflateBuf, written, inflateBuf.size - written)
|
||||
if (count == 0 && !inflater.finished()) break
|
||||
written += count
|
||||
}
|
||||
written
|
||||
} catch (e: DataFormatException) {
|
||||
Log.e(TAG, "Zlib inflate failed (${srcLen}B), passing raw", e)
|
||||
// Fall back to raw compressed data
|
||||
ensureInflateCapacity(srcLen)
|
||||
System.arraycopy(compressedBuf, 0, inflateBuf, 0, srcLen)
|
||||
srcLen
|
||||
}
|
||||
|
||||
outputParsable.reset(inflateBuf, inflatedLen)
|
||||
delegate.sampleData(outputParsable, inflatedLen, TrackOutput.SAMPLE_DATA_PART_MAIN)
|
||||
delegate.sampleMetadata(timeUs, flags, inflatedLen, 0, cryptoData)
|
||||
}
|
||||
|
||||
private fun appendCompressed(src: ByteArray, offset: Int, length: Int) {
|
||||
ensureCompressedCapacity(compressedLen + length)
|
||||
System.arraycopy(src, offset, compressedBuf, compressedLen, length)
|
||||
compressedLen += length
|
||||
}
|
||||
|
||||
private fun ensureCompressedCapacity(needed: Int) {
|
||||
if (compressedBuf.size < needed) {
|
||||
compressedBuf = compressedBuf.copyOf(maxOf(needed, compressedBuf.size * 2))
|
||||
}
|
||||
}
|
||||
|
||||
private fun ensureInflateCapacity(needed: Int) {
|
||||
if (inflateBuf.size < needed) {
|
||||
inflateBuf = ByteArray(maxOf(needed, inflateBuf.size * 2))
|
||||
}
|
||||
}
|
||||
|
||||
private fun growInflateBuf() {
|
||||
inflateBuf = inflateBuf.copyOf(inflateBuf.size * 2)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
package com.edde746.plezy.exoplayer
|
||||
|
||||
import android.util.Log
|
||||
import androidx.media3.extractor.ExtractorInput
|
||||
import androidx.media3.extractor.ExtractorOutput
|
||||
import androidx.media3.extractor.SeekMap
|
||||
import androidx.media3.extractor.TrackOutput
|
||||
import androidx.media3.extractor.mkv.MatroskaExtractor
|
||||
import io.github.peerless2012.ass.media.AssHandler
|
||||
import io.github.peerless2012.ass.media.extractor.AssMatroskaExtractor
|
||||
import androidx.media3.extractor.text.SubtitleParser
|
||||
|
||||
/**
|
||||
* Extends AssMatroskaExtractor to add support for MKV ContentCompAlgo 0 (zlib).
|
||||
*
|
||||
* Media3's MatroskaExtractor only supports ContentCompAlgo 3 (header stripping).
|
||||
* This subclass intercepts the compression algorithm during track header parsing:
|
||||
* - Tells the parent it's header stripping (algo 3) to avoid the ParserException
|
||||
* - Wraps TrackOutputs with ZlibInflatingTrackOutput to decompress per-sample data
|
||||
* - Skips ContentCompSettings for zlib tracks (not applicable)
|
||||
*/
|
||||
class ZlibMatroskaExtractor(
|
||||
subtitleParserFactory: SubtitleParser.Factory,
|
||||
assHandler: AssHandler,
|
||||
) : AssMatroskaExtractor(subtitleParserFactory, assHandler) {
|
||||
|
||||
companion object {
|
||||
private const val TAG = "ZlibMkvExtractor"
|
||||
|
||||
// Matroska EBML element IDs
|
||||
private const val ID_SEGMENT = 0x18538067
|
||||
private const val ID_TRACK_ENTRY = 0xAE
|
||||
private const val ID_CONTENT_COMPRESSION_ALGORITHM = 0x4254
|
||||
private const val ID_CONTENT_COMPRESSION_SETTINGS = 0x4255
|
||||
|
||||
private val extractorOutputField by lazy {
|
||||
MatroskaExtractor::class.java.getDeclaredField("extractorOutput").apply {
|
||||
isAccessible = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private var zlibOutput: ZlibExtractorOutputWrapper? = null
|
||||
private var currentTrackUsesZlib = false
|
||||
|
||||
override fun startMasterElement(id: Int, contentPosition: Long, contentSize: Long) {
|
||||
super.startMasterElement(id, contentPosition, contentSize)
|
||||
|
||||
// After super installs AssSubtitleExtractorOutput, wrap it with our zlib layer
|
||||
if (id == ID_SEGMENT && zlibOutput == null) {
|
||||
val currentOutput = extractorOutputField.get(this) as ExtractorOutput
|
||||
val wrapper = ZlibExtractorOutputWrapper(currentOutput)
|
||||
zlibOutput = wrapper
|
||||
extractorOutputField.set(this, wrapper)
|
||||
Log.d(TAG, "Installed zlib ExtractorOutput wrapper")
|
||||
}
|
||||
}
|
||||
|
||||
override fun integerElement(id: Int, value: Long) {
|
||||
if (id == ID_CONTENT_COMPRESSION_ALGORITHM && value == 0L) {
|
||||
currentTrackUsesZlib = true
|
||||
Log.i(TAG, "Track uses ContentCompAlgo 0 (zlib), will inflate samples")
|
||||
// Tell parent it's header stripping (algo 3) to avoid ParserException
|
||||
super.integerElement(id, 3)
|
||||
return
|
||||
}
|
||||
super.integerElement(id, value)
|
||||
}
|
||||
|
||||
override fun binaryElement(id: Int, contentSize: Int, input: ExtractorInput) {
|
||||
if (id == ID_CONTENT_COMPRESSION_SETTINGS && currentTrackUsesZlib) {
|
||||
// Skip ContentCompSettings for zlib tracks — parent would store these as
|
||||
// sampleStrippedBytes and prepend them to every sample, corrupting output.
|
||||
input.skipFully(contentSize)
|
||||
return
|
||||
}
|
||||
super.binaryElement(id, contentSize, input)
|
||||
}
|
||||
|
||||
override fun endMasterElement(id: Int) {
|
||||
val wasZlib = currentTrackUsesZlib
|
||||
super.endMasterElement(id)
|
||||
|
||||
if (id == ID_TRACK_ENTRY && wasZlib) {
|
||||
zlibOutput?.activateLast()
|
||||
currentTrackUsesZlib = false
|
||||
Log.i(TAG, "Activated zlib inflation for track")
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ExtractorOutput wrapper that wraps all TrackOutputs with ZlibInflatingTrackOutput.
|
||||
* Tracks are created inactive; activateLast() enables inflation for the most recently
|
||||
* created track (called when we know a track uses zlib compression).
|
||||
*/
|
||||
private class ZlibExtractorOutputWrapper(
|
||||
private val delegate: ExtractorOutput,
|
||||
) : ExtractorOutput {
|
||||
|
||||
private var lastCreatedWrapper: ZlibInflatingTrackOutput? = null
|
||||
|
||||
override fun track(id: Int, type: Int): TrackOutput {
|
||||
val original = delegate.track(id, type)
|
||||
val wrapper = ZlibInflatingTrackOutput(original)
|
||||
lastCreatedWrapper = wrapper
|
||||
return wrapper
|
||||
}
|
||||
|
||||
fun activateLast() {
|
||||
lastCreatedWrapper?.active = true
|
||||
}
|
||||
|
||||
override fun endTracks() = delegate.endTracks()
|
||||
override fun seekMap(seekMap: SeekMap) = delegate.seekMap(seekMap)
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,7 @@
|
||||
package com.edde746.plezy.mpv
|
||||
|
||||
import android.app.Activity
|
||||
import android.content.Context
|
||||
import android.graphics.Color
|
||||
import android.os.Build
|
||||
import android.os.Handler
|
||||
import android.os.Looper
|
||||
import android.util.Log
|
||||
@@ -17,41 +15,18 @@ import com.edde746.plezy.shared.AudioFocusManager
|
||||
import com.edde746.plezy.shared.FlutterOverlayHelper
|
||||
import com.edde746.plezy.shared.FrameRateManager
|
||||
import com.edde746.plezy.shared.PlayerDelegate
|
||||
import dev.jdtech.mpv.MPVLib
|
||||
import io.flutter.plugin.common.MethodChannel
|
||||
import java.util.concurrent.Executors
|
||||
import dev.jdtech.mpv.*
|
||||
import kotlinx.coroutines.*
|
||||
|
||||
class MpvPlayerCore(private val activity: Activity) :
|
||||
SurfaceHolder.Callback,
|
||||
MPVLib.EventObserver,
|
||||
MPVLib.LogObserver {
|
||||
class MpvPlayerCore(private val activity: Activity) : SurfaceHolder.Callback {
|
||||
|
||||
companion object {
|
||||
private const val TAG = "MpvPlayerCore"
|
||||
|
||||
// Guards MPVLib.create/destroy which share global native state
|
||||
private val mpvLock = Object()
|
||||
|
||||
// JNI's NewStringUTF may produce Java Strings with lone surrogates when
|
||||
// mpv passes invalid UTF-8 (log messages, system-encoded paths, etc.).
|
||||
// Lone surrogates cause FormatException in Flutter's StandardMessageCodec
|
||||
// when it encodes them as UTF-8. Re-encoding strips these invalid chars.
|
||||
private fun safeString(s: String): String {
|
||||
for (c in s) {
|
||||
if (c.isSurrogate()) {
|
||||
// Slow path: re-encode through UTF-8 to replace lone surrogates with U+FFFD
|
||||
return s.encodeToByteArray().decodeToString()
|
||||
}
|
||||
}
|
||||
return s // Fast path: no surrogates, string is safe
|
||||
}
|
||||
}
|
||||
|
||||
private var surfaceView: SurfaceView? = null
|
||||
private var surfaceContainer: android.widget.FrameLayout? = null
|
||||
private var overlayLayoutListener: ViewTreeObserver.OnGlobalLayoutListener? =
|
||||
null
|
||||
@Volatile private var nativeReady: Boolean = false
|
||||
private var overlayLayoutListener: ViewTreeObserver.OnGlobalLayoutListener? = null
|
||||
@Volatile private var disposing: Boolean = false
|
||||
private var pendingSurface: Surface? = null
|
||||
private var lastSurfaceSize: String? = null
|
||||
@@ -59,8 +34,8 @@ class MpvPlayerCore(private val activity: Activity) :
|
||||
var isInitialized: Boolean = false
|
||||
private set
|
||||
|
||||
// Executor for running MPV commands off the UI thread to prevent ANR
|
||||
private val commandExecutor = Executors.newSingleThreadExecutor()
|
||||
private var player: MpvPlayer? = null
|
||||
private var scope = CoroutineScope(SupervisorJob() + Dispatchers.Main)
|
||||
|
||||
// Frame rate matching
|
||||
private var frameRateManager: FrameRateManager? = null
|
||||
@@ -68,6 +43,7 @@ class MpvPlayerCore(private val activity: Activity) :
|
||||
|
||||
// Audio focus
|
||||
private var audioFocusManager: AudioFocusManager? = null
|
||||
@Volatile private var cachedPaused: Boolean = true
|
||||
|
||||
private var flutterOverlayApplied = false
|
||||
|
||||
@@ -96,6 +72,7 @@ class MpvPlayerCore(private val activity: Activity) :
|
||||
|
||||
try {
|
||||
disposing = false
|
||||
cachedPaused = true
|
||||
pendingSurface = null
|
||||
|
||||
// Initialize audio focus handling
|
||||
@@ -103,40 +80,37 @@ class MpvPlayerCore(private val activity: Activity) :
|
||||
context = activity,
|
||||
handler = handler,
|
||||
onPause = {
|
||||
if (isInitialized) {
|
||||
try { MPVLib.setPropertyBoolean("pause", true) }
|
||||
scope.launch {
|
||||
try { player?.setProperty("pause", true) }
|
||||
catch (e: Exception) { Log.w(TAG, "Failed to pause on focus loss", e) }
|
||||
}
|
||||
},
|
||||
onResume = {
|
||||
if (isInitialized) {
|
||||
try { MPVLib.setPropertyBoolean("pause", false) }
|
||||
scope.launch {
|
||||
try { player?.setProperty("pause", false) }
|
||||
catch (e: Exception) { Log.w(TAG, "Failed to resume after focus gain", e) }
|
||||
}
|
||||
},
|
||||
isPaused = {
|
||||
try { MPVLib.getPropertyBoolean("pause") == true }
|
||||
catch (e: Exception) { true }
|
||||
}
|
||||
isPaused = { cachedPaused }
|
||||
)
|
||||
frameRateManager = FrameRateManager(
|
||||
activity = activity,
|
||||
handler = handler,
|
||||
onDisplayChanged = {
|
||||
try {
|
||||
if (MPVLib.getPropertyBoolean("pause") == true) {
|
||||
Log.d(TAG, "Display changed, resuming playback")
|
||||
MPVLib.setPropertyBoolean("pause", false)
|
||||
scope.launch {
|
||||
try {
|
||||
if (player?.getFlag("pause") == true) {
|
||||
Log.d(TAG, "Display changed, resuming playback")
|
||||
player?.setProperty("pause", false)
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
Log.w(TAG, "Failed to resume after display change", e)
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
Log.w(TAG, "Failed to resume after display change", e)
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
// Create FrameLayout container for video (matches ExoPlayer pattern)
|
||||
// Setting visibility on container instead of SurfaceView directly allows
|
||||
// the surface to be created even when hidden (required with RenderMode.texture)
|
||||
// Create FrameLayout container for video
|
||||
surfaceContainer = android.widget.FrameLayout(activity).apply {
|
||||
layoutParams = ViewGroup.LayoutParams(
|
||||
ViewGroup.LayoutParams.MATCH_PARENT,
|
||||
@@ -152,8 +126,6 @@ class MpvPlayerCore(private val activity: Activity) :
|
||||
android.widget.FrameLayout.LayoutParams.MATCH_PARENT
|
||||
)
|
||||
holder.addCallback(this@MpvPlayerCore)
|
||||
|
||||
// Critical: Ensure SurfaceView renders BEHIND Flutter's view
|
||||
setZOrderOnTop(false)
|
||||
setZOrderMediaOverlay(false)
|
||||
}
|
||||
@@ -170,11 +142,9 @@ class MpvPlayerCore(private val activity: Activity) :
|
||||
FlutterOverlayHelper.configureFlutterZOrder(contentView, container, zOrderOnTop = true)
|
||||
flutterOverlayApplied = true
|
||||
}
|
||||
// Repeat after layout settles to catch late-added Flutter surfaces (release builds)
|
||||
ensureFlutterOverlayOnTop()
|
||||
overlayLayoutListener = ViewTreeObserver.OnGlobalLayoutListener {
|
||||
ensureFlutterOverlayOnTop()
|
||||
// Re-apply surface size on layout change (orientation transitions)
|
||||
val sv = surfaceView
|
||||
if (sv != null) applySurfaceSize(sv.width, sv.height)
|
||||
}
|
||||
@@ -182,77 +152,102 @@ class MpvPlayerCore(private val activity: Activity) :
|
||||
|
||||
Log.d(TAG, "SurfaceView added to content view")
|
||||
|
||||
// Native MPVLib init on background thread — waits for any
|
||||
// in-flight destroy to finish without blocking the UI thread.
|
||||
val ctx = activity.applicationContext
|
||||
Thread {
|
||||
// Create MpvPlayer on background thread via coroutine
|
||||
scope.launch {
|
||||
try {
|
||||
synchronized(mpvLock) {
|
||||
if (disposing) {
|
||||
handler.post { onResult(false) }
|
||||
return@Thread
|
||||
}
|
||||
MPVLib.create(ctx)
|
||||
setupMpvDefaults()
|
||||
MPVLib.init()
|
||||
nativeReady = true
|
||||
if (disposing) {
|
||||
onResult(false)
|
||||
return@launch
|
||||
}
|
||||
handler.post {
|
||||
if (disposing) {
|
||||
if (nativeReady) {
|
||||
Thread {
|
||||
synchronized(mpvLock) {
|
||||
try {
|
||||
MPVLib.destroy()
|
||||
} catch (_: Exception) {
|
||||
} finally {
|
||||
nativeReady = false
|
||||
}
|
||||
}
|
||||
}.start()
|
||||
}
|
||||
onResult(false)
|
||||
return@post
|
||||
}
|
||||
|
||||
MPVLib.addObserver(this)
|
||||
MPVLib.addLogObserver(this)
|
||||
isInitialized = true
|
||||
|
||||
// surfaceCreated can fire before MPV init finishes.
|
||||
// Defer attaching the surface until native init is ready.
|
||||
pendingSurface?.takeIf { it.isValid }?.let {
|
||||
attachSurfaceInternal(it)
|
||||
}
|
||||
pendingSurface = null
|
||||
|
||||
Log.d(TAG, "Initialized successfully")
|
||||
onResult(true)
|
||||
val p = MpvPlayer.create(activity.applicationContext) {
|
||||
setOption("vo", "gpu")
|
||||
setOption("gpu-context", "android")
|
||||
setOption("opengl-es", "yes")
|
||||
setOption("vd-lavc-film-grain", "cpu")
|
||||
setOption("ao", "audiotrack,opensles")
|
||||
}
|
||||
|
||||
if (disposing) {
|
||||
p.close()
|
||||
onResult(false)
|
||||
return@launch
|
||||
}
|
||||
|
||||
player = p
|
||||
isInitialized = true
|
||||
|
||||
// Attach pending surface
|
||||
pendingSurface?.takeIf { it.isValid }?.let { attachSurfaceInternal(it) }
|
||||
pendingSurface = null
|
||||
|
||||
// Start collecting events/properties/logs
|
||||
collectEvents(p)
|
||||
collectPropertyChanges(p)
|
||||
collectLogMessages(p)
|
||||
|
||||
Log.d(TAG, "Initialized successfully")
|
||||
onResult(true)
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "Failed to initialize native: ${e.message}", e)
|
||||
nativeReady = false
|
||||
handler.post { onResult(false) }
|
||||
onResult(false)
|
||||
}
|
||||
}.start()
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "Failed to initialize: ${e.message}", e)
|
||||
onResult(false)
|
||||
}
|
||||
}
|
||||
|
||||
private fun setupMpvDefaults() {
|
||||
// Video output configuration
|
||||
MPVLib.setOptionString("vo", "gpu")
|
||||
MPVLib.setOptionString("gpu-context", "android")
|
||||
MPVLib.setOptionString("opengl-es", "yes")
|
||||
// hwdec is set from Flutter via setProperty based on user preference
|
||||
// Flow collectors
|
||||
|
||||
// Prevent crashes/artifacts from hardware film grain synthesis (mpv #14651)
|
||||
MPVLib.setOptionString("vd-lavc-film-grain", "cpu")
|
||||
private fun collectEvents(p: MpvPlayer) {
|
||||
scope.launch(start = CoroutineStart.UNDISPATCHED) {
|
||||
p.eventFlow.collect { event ->
|
||||
when (event) {
|
||||
is MpvEvent.EndFile -> {
|
||||
val data = event.reason?.let { mapOf("reason" to it.id) }
|
||||
delegate?.onEvent("end-file", data)
|
||||
}
|
||||
is MpvEvent.FileLoaded -> delegate?.onEvent("file-loaded", null)
|
||||
is MpvEvent.PlaybackRestart -> delegate?.onEvent("playback-restart", null)
|
||||
else -> {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Audio configuration
|
||||
MPVLib.setOptionString("ao", "audiotrack,opensles")
|
||||
private fun collectPropertyChanges(p: MpvPlayer) {
|
||||
scope.launch(start = CoroutineStart.UNDISPATCHED) {
|
||||
p.propertyFlow.collect { change ->
|
||||
// Skip None — matches old MPVLib behavior where eventProperty(name)
|
||||
// with no value was a no-op. Forwarding null would incorrectly clear
|
||||
// track selections (aid/sid) before the file loads.
|
||||
if (change is PropertyChange.None) return@collect
|
||||
val value: Any? = when (change) {
|
||||
is PropertyChange.Flag -> change.value
|
||||
is PropertyChange.Int64 -> change.value
|
||||
is PropertyChange.Double -> change.value
|
||||
is PropertyChange.Str -> change.value
|
||||
is PropertyChange.None -> null
|
||||
}
|
||||
if (change.name == "pause" && change is PropertyChange.Flag) {
|
||||
cachedPaused = change.value
|
||||
}
|
||||
delegate?.onPropertyChange(change.name, value)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun collectLogMessages(p: MpvPlayer) {
|
||||
scope.launch(start = CoroutineStart.UNDISPATCHED) {
|
||||
p.logFlow.collect { msg ->
|
||||
delegate?.onEvent("log-message", mapOf(
|
||||
"prefix" to msg.prefix,
|
||||
"level" to msg.level.name.lowercase(),
|
||||
"text" to msg.text
|
||||
))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Audio Focus
|
||||
@@ -268,14 +263,13 @@ class MpvPlayerCore(private val activity: Activity) :
|
||||
if (disposing) return
|
||||
|
||||
val surface = holder.surface
|
||||
if (!nativeReady) {
|
||||
if (player == null) {
|
||||
pendingSurface = surface
|
||||
Log.d(TAG, "Deferring surface attach until MPV native init completes")
|
||||
Log.d(TAG, "Deferring surface attach until MPV init completes")
|
||||
return
|
||||
}
|
||||
|
||||
attachSurfaceInternal(surface)
|
||||
// Reassert overlay order whenever the surface is recreated
|
||||
flutterOverlayApplied = false
|
||||
ensureFlutterOverlayOnTop()
|
||||
}
|
||||
@@ -288,279 +282,86 @@ class MpvPlayerCore(private val activity: Activity) :
|
||||
override fun surfaceDestroyed(holder: SurfaceHolder) {
|
||||
Log.d(TAG, "Surface destroyed")
|
||||
pendingSurface = null
|
||||
if (!nativeReady || disposing) return
|
||||
if (player == null || disposing) return
|
||||
detachSurfaceInternal()
|
||||
}
|
||||
|
||||
private fun attachSurfaceInternal(surface: Surface) {
|
||||
if (!nativeReady || disposing || !surface.isValid) return
|
||||
val p = player ?: return
|
||||
if (disposing || !surface.isValid) return
|
||||
try {
|
||||
MPVLib.attachSurface(surface)
|
||||
MPVLib.setOptionString("force-window", "yes")
|
||||
// Restore video output after surface is available
|
||||
MPVLib.setPropertyString("vo", "gpu")
|
||||
p.attachSurface(surface)
|
||||
scope.launch {
|
||||
p.setProperty("force-window", "yes")
|
||||
p.setProperty("vo", "gpu")
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
Log.w(TAG, "Failed to attach MPV surface", e)
|
||||
}
|
||||
}
|
||||
|
||||
private fun applySurfaceSize(width: Int, height: Int) {
|
||||
if (!nativeReady || disposing || width <= 0 || height <= 0) return
|
||||
val p = player ?: return
|
||||
if (disposing || width <= 0 || height <= 0) return
|
||||
val size = "${width}x${height}"
|
||||
if (size == lastSurfaceSize) return
|
||||
lastSurfaceSize = size
|
||||
try {
|
||||
MPVLib.setPropertyString("android-surface-size", size)
|
||||
} catch (e: Exception) {
|
||||
Log.w(TAG, "Failed to apply surface size to MPV", e)
|
||||
scope.launch {
|
||||
try { p.setProperty("android-surface-size", size) }
|
||||
catch (e: Exception) { Log.w(TAG, "Failed to apply surface size to MPV", e) }
|
||||
}
|
||||
}
|
||||
|
||||
private fun detachSurfaceInternal() {
|
||||
lastSurfaceSize = null
|
||||
if (!nativeReady) return
|
||||
// Disable video output before detaching (like mpv-android)
|
||||
val p = player ?: return
|
||||
try {
|
||||
MPVLib.setPropertyString("vo", "null")
|
||||
MPVLib.setOptionString("force-window", "no")
|
||||
MPVLib.detachSurface()
|
||||
scope.launch {
|
||||
p.setProperty("vo", "null")
|
||||
p.setProperty("force-window", "no")
|
||||
}
|
||||
p.detachSurface()
|
||||
} catch (e: Exception) {
|
||||
Log.w(TAG, "Failed to detach MPV surface", e)
|
||||
}
|
||||
}
|
||||
|
||||
// MPVLib.EventObserver
|
||||
|
||||
override fun eventProperty(property: String) {
|
||||
// No value provided
|
||||
}
|
||||
|
||||
override fun eventProperty(property: String, value: Long) {
|
||||
activity.runOnUiThread {
|
||||
delegate?.onPropertyChange(property, value)
|
||||
}
|
||||
}
|
||||
|
||||
override fun eventProperty(property: String, value: Double) {
|
||||
activity.runOnUiThread {
|
||||
delegate?.onPropertyChange(property, value)
|
||||
}
|
||||
}
|
||||
|
||||
override fun eventProperty(property: String, value: Boolean) {
|
||||
activity.runOnUiThread {
|
||||
delegate?.onPropertyChange(property, value)
|
||||
}
|
||||
}
|
||||
|
||||
override fun eventProperty(property: String, value: String) {
|
||||
val safe = safeString(value)
|
||||
activity.runOnUiThread {
|
||||
delegate?.onPropertyChange(property, safe)
|
||||
}
|
||||
}
|
||||
|
||||
override fun event(eventId: Int) {
|
||||
if (disposing) return
|
||||
when (eventId) {
|
||||
MPVLib.MPV_EVENT_END_FILE -> {
|
||||
val eofReached = try { MPVLib.getPropertyBoolean("eof-reached") == true } catch (_: Exception) { false }
|
||||
val data: Map<String, Any>? = if (eofReached) {
|
||||
mapOf("reason" to 0) // EOF
|
||||
} else {
|
||||
null // Could be stop, quit, or error — no way to distinguish from JNI
|
||||
}
|
||||
activity.runOnUiThread { delegate?.onEvent("end-file", data) }
|
||||
}
|
||||
MPVLib.MPV_EVENT_FILE_LOADED -> {
|
||||
activity.runOnUiThread { delegate?.onEvent("file-loaded", null) }
|
||||
}
|
||||
MPVLib.MPV_EVENT_PLAYBACK_RESTART -> {
|
||||
activity.runOnUiThread { delegate?.onEvent("playback-restart", null) }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// MPVLib.LogObserver
|
||||
|
||||
override fun logMessage(prefix: String, level: Int, text: String) {
|
||||
val levelStr = when (level) {
|
||||
MPVLib.MPV_LOG_LEVEL_FATAL -> "fatal"
|
||||
MPVLib.MPV_LOG_LEVEL_ERROR -> "error"
|
||||
MPVLib.MPV_LOG_LEVEL_WARN -> "warn"
|
||||
MPVLib.MPV_LOG_LEVEL_INFO -> "info"
|
||||
MPVLib.MPV_LOG_LEVEL_V -> "v"
|
||||
MPVLib.MPV_LOG_LEVEL_DEBUG -> "debug"
|
||||
MPVLib.MPV_LOG_LEVEL_TRACE -> "trace"
|
||||
else -> "info"
|
||||
}
|
||||
val safePrefix = safeString(prefix)
|
||||
val safeText = safeString(text)
|
||||
activity.runOnUiThread {
|
||||
delegate?.onEvent("log-message", mapOf(
|
||||
"prefix" to safePrefix,
|
||||
"level" to levelStr,
|
||||
"text" to safeText
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
// Public API
|
||||
|
||||
fun setProperty(name: String, value: String) {
|
||||
if (!isInitialized) return
|
||||
MPVLib.setPropertyString(name, value)
|
||||
if (!isInitialized || disposing) return
|
||||
scope.launch {
|
||||
try { player?.setProperty(name, value) }
|
||||
catch (e: Exception) { Log.w(TAG, "setProperty($name) failed", e) }
|
||||
}
|
||||
}
|
||||
|
||||
fun getProperty(name: String): String? {
|
||||
if (!isInitialized) return null
|
||||
if (!isInitialized || disposing) return null
|
||||
return try {
|
||||
MPVLib.getPropertyString(name)
|
||||
runBlocking(Dispatchers.IO) { player?.getString(name) }
|
||||
} catch (e: Exception) {
|
||||
null
|
||||
}
|
||||
}
|
||||
|
||||
fun observeProperty(name: String, format: String) {
|
||||
val p = player ?: return
|
||||
if (!isInitialized) return
|
||||
|
||||
val mpvFormat = when (format) {
|
||||
"double" -> MPVLib.MPV_FORMAT_DOUBLE
|
||||
"flag" -> MPVLib.MPV_FORMAT_FLAG
|
||||
"string" -> MPVLib.MPV_FORMAT_STRING
|
||||
"node" -> MPVLib.MPV_FORMAT_NODE
|
||||
else -> MPVLib.MPV_FORMAT_NONE
|
||||
}
|
||||
MPVLib.observeProperty(name, mpvFormat)
|
||||
}
|
||||
|
||||
/**
|
||||
* Get an MPV property asynchronously off the UI thread.
|
||||
* This prevents ANR when mpv_get_property blocks waiting for internal locks.
|
||||
*/
|
||||
fun getPropertyAsync(name: String, result: MethodChannel.Result) {
|
||||
if (!isInitialized || disposing) {
|
||||
result.success(null)
|
||||
return
|
||||
}
|
||||
try {
|
||||
commandExecutor.execute {
|
||||
try {
|
||||
val value = MPVLib.getPropertyString(name)
|
||||
activity.runOnUiThread { result.success(value) }
|
||||
} catch (e: Exception) {
|
||||
activity.runOnUiThread { result.success(null) }
|
||||
}
|
||||
}
|
||||
} catch (e: java.util.concurrent.RejectedExecutionException) {
|
||||
Log.w(TAG, "getPropertyAsync rejected (executor shut down)")
|
||||
result.success(null)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Set an MPV property asynchronously off the UI thread.
|
||||
* This prevents ANR when mpv_set_property blocks waiting for internal locks.
|
||||
*/
|
||||
fun setPropertyAsync(name: String, value: String, result: MethodChannel.Result) {
|
||||
if (!isInitialized || disposing) {
|
||||
result.success(null)
|
||||
return
|
||||
}
|
||||
try {
|
||||
commandExecutor.execute {
|
||||
try {
|
||||
MPVLib.setPropertyString(name, value)
|
||||
activity.runOnUiThread { result.success(null) }
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "Async setProperty failed: ${e.message}", e)
|
||||
activity.runOnUiThread { result.success(null) }
|
||||
}
|
||||
}
|
||||
} catch (e: java.util.concurrent.RejectedExecutionException) {
|
||||
Log.w(TAG, "setPropertyAsync rejected (executor shut down)")
|
||||
result.success(null)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Observe an MPV property asynchronously off the UI thread.
|
||||
* This prevents ANR when mpv_observe_property blocks waiting for internal locks.
|
||||
*/
|
||||
fun observePropertyAsync(name: String, format: String, result: MethodChannel.Result) {
|
||||
if (!isInitialized || disposing) {
|
||||
result.success(null)
|
||||
return
|
||||
}
|
||||
val mpvFormat = when (format) {
|
||||
"double" -> MPVLib.MPV_FORMAT_DOUBLE
|
||||
"flag" -> MPVLib.MPV_FORMAT_FLAG
|
||||
"string" -> MPVLib.MPV_FORMAT_STRING
|
||||
"node" -> MPVLib.MPV_FORMAT_NODE
|
||||
else -> MPVLib.MPV_FORMAT_NONE
|
||||
}
|
||||
try {
|
||||
commandExecutor.execute {
|
||||
try {
|
||||
MPVLib.observeProperty(name, mpvFormat)
|
||||
activity.runOnUiThread { result.success(null) }
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "Async observeProperty failed: ${e.message}", e)
|
||||
activity.runOnUiThread { result.success(null) }
|
||||
}
|
||||
}
|
||||
} catch (e: java.util.concurrent.RejectedExecutionException) {
|
||||
Log.w(TAG, "observePropertyAsync rejected (executor shut down)")
|
||||
result.success(null)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Run a block on the command executor (background thread).
|
||||
* Used by the plugin for I/O operations that shouldn't block the main thread.
|
||||
*/
|
||||
fun runOnExecutor(block: () -> Unit) {
|
||||
if (disposing) return
|
||||
try {
|
||||
commandExecutor.execute(block)
|
||||
} catch (e: java.util.concurrent.RejectedExecutionException) {
|
||||
Log.w(TAG, "runOnExecutor rejected (executor shut down)")
|
||||
val fmt = when (format) {
|
||||
"double" -> PropertyFormat.Double
|
||||
"flag" -> PropertyFormat.Flag
|
||||
"string" -> PropertyFormat.String
|
||||
else -> PropertyFormat.None
|
||||
}
|
||||
p.observeProperty(name, fmt)
|
||||
}
|
||||
|
||||
fun command(args: Array<String>) {
|
||||
if (!isInitialized || args.isEmpty()) return
|
||||
MPVLib.command(args)
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute an MPV command asynchronously off the UI thread.
|
||||
* This prevents ANR when commands like loadfile block waiting for network I/O.
|
||||
* The result is called back on the UI thread when the command completes.
|
||||
*/
|
||||
fun commandAsync(args: Array<String>, result: MethodChannel.Result) {
|
||||
if (!isInitialized || disposing || args.isEmpty()) {
|
||||
result.success(null)
|
||||
return
|
||||
}
|
||||
|
||||
try {
|
||||
commandExecutor.execute {
|
||||
try {
|
||||
MPVLib.command(args)
|
||||
activity.runOnUiThread {
|
||||
result.success(null)
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "Async command failed: ${e.message}", e)
|
||||
activity.runOnUiThread {
|
||||
result.error("COMMAND_FAILED", e.message, null)
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (e: java.util.concurrent.RejectedExecutionException) {
|
||||
Log.w(TAG, "commandAsync rejected (executor shut down)")
|
||||
result.success(null)
|
||||
if (!isInitialized || disposing || args.isEmpty()) return
|
||||
scope.launch {
|
||||
try { player?.command(*args) }
|
||||
catch (e: Exception) { Log.w(TAG, "command failed", e) }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -595,10 +396,9 @@ class MpvPlayerCore(private val activity: Activity) :
|
||||
return
|
||||
}
|
||||
disposing = true
|
||||
check(Looper.myLooper() == Looper.getMainLooper())
|
||||
Log.d(TAG, "Disposing")
|
||||
|
||||
// Shutdown command executor
|
||||
commandExecutor.shutdown()
|
||||
handler.removeCallbacksAndMessages(null)
|
||||
|
||||
// Clean up frame rate and audio focus
|
||||
@@ -607,60 +407,67 @@ class MpvPlayerCore(private val activity: Activity) :
|
||||
audioFocusManager?.release()
|
||||
audioFocusManager = null
|
||||
|
||||
if (nativeReady) {
|
||||
// Cancel all coroutines
|
||||
scope.cancel()
|
||||
|
||||
// Detach surface from MPV BEFORE removing views to prevent GPU mutex contention
|
||||
val p = player
|
||||
if (p != null) {
|
||||
try {
|
||||
MPVLib.removeObserver(this)
|
||||
MPVLib.removeLogObserver(this)
|
||||
runBlocking(Dispatchers.IO) { p.setProperty("vo", "null") }
|
||||
p.detachSurface()
|
||||
} catch (e: Exception) {
|
||||
Log.w(TAG, "Failed to remove MPV observers during dispose", e)
|
||||
Log.w(TAG, "Failed to detach surface during dispose", e)
|
||||
}
|
||||
}
|
||||
|
||||
// Capture locals for deferred cleanup
|
||||
val sv = surfaceView
|
||||
val container = surfaceContainer
|
||||
val contentView = activity.findViewById<ViewGroup>(android.R.id.content)
|
||||
|
||||
surfaceContainer = null
|
||||
surfaceView = null
|
||||
|
||||
// Remove layout listener synchronously
|
||||
overlayLayoutListener?.let { listener ->
|
||||
val contentView = activity.findViewById<ViewGroup>(android.R.id.content)
|
||||
contentView.viewTreeObserver.removeOnGlobalLayoutListener(listener)
|
||||
}
|
||||
overlayLayoutListener = null
|
||||
|
||||
// Defer all view removal to avoid AOSP bug where
|
||||
// dispatchWindowVisibilityChanged iterates stale children array
|
||||
// when removeView() runs during an active performTraversals pass.
|
||||
val sv = surfaceView
|
||||
val container = surfaceContainer
|
||||
val contentView = activity.findViewById<ViewGroup>(android.R.id.content)
|
||||
contentView.post {
|
||||
sv?.holder?.removeCallback(this)
|
||||
container?.let { contentView.removeView(it) }
|
||||
surfaceContainer = null
|
||||
surfaceView = null
|
||||
}
|
||||
pendingSurface = null
|
||||
isInitialized = false
|
||||
|
||||
// Run native destroy on background thread to avoid ANR —
|
||||
// MPVLib.destroy() blocks on pthread_cond_wait while mpv's
|
||||
// internal threads (lua, demux, vo) shut down.
|
||||
// The completion callback is posted to the main thread so the
|
||||
// caller (MpvPlayerPlugin) can defer result.success() until
|
||||
// native resources are fully released, preventing a new mpv
|
||||
// instance from being created while the old one still holds memory.
|
||||
if (nativeReady) {
|
||||
// Close player on background thread, then remove views
|
||||
if (p != null) {
|
||||
Thread {
|
||||
synchronized(mpvLock) {
|
||||
try {
|
||||
detachSurfaceInternal()
|
||||
MPVLib.destroy()
|
||||
} catch (e: Exception) {
|
||||
Log.w(TAG, "MPV destroy failed", e)
|
||||
} finally {
|
||||
nativeReady = false
|
||||
}
|
||||
try {
|
||||
p.close()
|
||||
} catch (e: Exception) {
|
||||
Log.w(TAG, "MPV close failed", e)
|
||||
}
|
||||
player = null
|
||||
Log.d(TAG, "Disposed (native)")
|
||||
onComplete?.let { Handler(Looper.getMainLooper()).post(it) }
|
||||
Handler(Looper.getMainLooper()).post {
|
||||
sv?.holder?.removeCallback(this)
|
||||
if (container?.parent != null) {
|
||||
contentView.removeView(container)
|
||||
}
|
||||
onComplete?.invoke()
|
||||
}
|
||||
}.start()
|
||||
} else {
|
||||
// No player — safe to remove views immediately
|
||||
Handler(Looper.getMainLooper()).postAtFrontOfQueue {
|
||||
sv?.holder?.removeCallback(this)
|
||||
if (container?.parent != null) {
|
||||
contentView.removeView(container)
|
||||
}
|
||||
}
|
||||
onComplete?.invoke()
|
||||
}
|
||||
|
||||
// Reset scope for potential re-initialization
|
||||
scope = CoroutineScope(SupervisorJob() + Dispatchers.Main)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,6 +26,7 @@ class MpvPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
private var activity: Activity? = null
|
||||
private var activityBinding: ActivityPluginBinding? = null
|
||||
private val nameToId = mutableMapOf<String, Int>()
|
||||
private var sessionGeneration = 0
|
||||
|
||||
// FlutterPlugin
|
||||
|
||||
@@ -54,6 +55,7 @@ class MpvPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
}
|
||||
|
||||
override fun onDetachedFromActivity() {
|
||||
++sessionGeneration
|
||||
playerCore?.dispose()
|
||||
playerCore = null
|
||||
activity = null
|
||||
@@ -122,17 +124,28 @@ class MpvPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
|
||||
currentActivity.runOnUiThread {
|
||||
try {
|
||||
playerCore = MpvPlayerCore(currentActivity).apply {
|
||||
// Dispose stale core idempotently
|
||||
playerCore?.dispose()
|
||||
playerCore = null
|
||||
|
||||
val gen = ++sessionGeneration
|
||||
val core = MpvPlayerCore(currentActivity).apply {
|
||||
delegate = this@MpvPlayerPlugin
|
||||
}
|
||||
playerCore = core
|
||||
|
||||
playerCore?.initialize { success ->
|
||||
core.initialize { success ->
|
||||
if (gen != sessionGeneration || playerCore !== core) {
|
||||
Log.d(TAG, "Stale init callback (gen=$gen, current=$sessionGeneration)")
|
||||
result.success(false)
|
||||
return@initialize
|
||||
}
|
||||
// Start hidden - now safe because setVisible operates on the container,
|
||||
// not the SurfaceView directly (matching ExoPlayer's approach)
|
||||
playerCore?.setVisible(false)
|
||||
core.setVisible(false)
|
||||
Log.d(TAG, "Initialized: $success")
|
||||
result.success(success)
|
||||
} ?: result.success(false)
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "Failed to initialize: ${e.message}", e)
|
||||
result.error("INIT_FAILED", e.message, null)
|
||||
@@ -142,14 +155,14 @@ class MpvPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
|
||||
private fun handleDispose(result: MethodChannel.Result) {
|
||||
activity?.runOnUiThread {
|
||||
playerCore?.dispose {
|
||||
playerCore = null
|
||||
val core = playerCore
|
||||
++sessionGeneration
|
||||
playerCore = null
|
||||
|
||||
core?.dispose {
|
||||
Log.d(TAG, "Disposed")
|
||||
result.success(null)
|
||||
} ?: run {
|
||||
playerCore = null
|
||||
result.success(null)
|
||||
}
|
||||
} ?: result.success(null)
|
||||
} ?: result.success(null)
|
||||
}
|
||||
|
||||
@@ -162,8 +175,8 @@ class MpvPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
return
|
||||
}
|
||||
|
||||
playerCore?.setPropertyAsync(name, value, result)
|
||||
?: result.success(null)
|
||||
playerCore?.setProperty(name, value)
|
||||
result.success(null)
|
||||
}
|
||||
|
||||
private fun handleGetProperty(call: MethodCall, result: MethodChannel.Result) {
|
||||
@@ -174,8 +187,8 @@ class MpvPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
return
|
||||
}
|
||||
|
||||
playerCore?.getPropertyAsync(name, result)
|
||||
?: result.success(null)
|
||||
val value = playerCore?.getProperty(name)
|
||||
result.success(value)
|
||||
}
|
||||
|
||||
private fun handleObserveProperty(call: MethodCall, result: MethodChannel.Result) {
|
||||
@@ -189,8 +202,8 @@ class MpvPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
}
|
||||
|
||||
nameToId[name] = id
|
||||
playerCore?.observePropertyAsync(name, format, result)
|
||||
?: result.success(null)
|
||||
playerCore?.observeProperty(name, format)
|
||||
result.success(null)
|
||||
}
|
||||
|
||||
private fun handleCommand(call: MethodCall, result: MethodChannel.Result) {
|
||||
@@ -201,10 +214,8 @@ class MpvPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
return
|
||||
}
|
||||
|
||||
// Use async command to prevent ANR - command executes off UI thread
|
||||
// and result is called back when complete
|
||||
playerCore?.commandAsync(args.toTypedArray(), result)
|
||||
?: result.success(null)
|
||||
playerCore?.command(args.toTypedArray())
|
||||
result.success(null)
|
||||
}
|
||||
|
||||
private fun handleSetVisible(call: MethodCall, result: MethodChannel.Result) {
|
||||
@@ -260,7 +271,7 @@ class MpvPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
}
|
||||
|
||||
// Open file descriptor off UI thread to prevent ANR on slow storage
|
||||
playerCore?.runOnExecutor {
|
||||
Thread {
|
||||
try {
|
||||
val uri = Uri.parse(uriString)
|
||||
val pfd = contentResolver.openFileDescriptor(uri, "r")
|
||||
@@ -268,7 +279,7 @@ class MpvPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
activity?.runOnUiThread {
|
||||
result.error("OPEN_FAILED", "Failed to open file descriptor for $uriString", null)
|
||||
}
|
||||
return@runOnExecutor
|
||||
return@Thread
|
||||
}
|
||||
|
||||
val fd = pfd.detachFd()
|
||||
@@ -278,7 +289,7 @@ class MpvPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
Log.e(TAG, "Failed to open content FD: ${e.message}", e)
|
||||
activity?.runOnUiThread { result.error("OPEN_FAILED", e.message, null) }
|
||||
}
|
||||
} ?: result.error("NO_PLAYER", "Player not initialized", null)
|
||||
}.start()
|
||||
}
|
||||
|
||||
// PlayerDelegate
|
||||
|
||||
@@ -37,16 +37,19 @@ class FrameRateManager(
|
||||
return
|
||||
}
|
||||
|
||||
if (surface == null) {
|
||||
Log.d(TAG, "setVideoFrameRate: Surface not available")
|
||||
return
|
||||
}
|
||||
|
||||
log("fps=$fps, duration=${videoDurationMs}ms, API=${Build.VERSION.SDK_INT}")
|
||||
|
||||
when {
|
||||
Build.VERSION.SDK_INT >= Build.VERSION_CODES.S -> setFrameRateS(fps, surface, videoDurationMs)
|
||||
Build.VERSION.SDK_INT >= Build.VERSION_CODES.R -> setFrameRateR(fps, surface)
|
||||
Build.VERSION.SDK_INT >= Build.VERSION_CODES.S -> {
|
||||
if (surface == null) {
|
||||
Log.d(TAG, "setVideoFrameRate: Surface not available")
|
||||
return
|
||||
}
|
||||
setFrameRateS(fps, surface, videoDurationMs)
|
||||
}
|
||||
// API R's Surface.setFrameRate() only supports seamless switching (no
|
||||
// CHANGE_FRAME_RATE_ALWAYS), so 60→24Hz won't switch. Fall through to
|
||||
// preferredDisplayModeId which directly sets the display mode.
|
||||
Build.VERSION.SDK_INT >= Build.VERSION_CODES.M -> setFrameRateM(fps)
|
||||
}
|
||||
}
|
||||
@@ -58,6 +61,13 @@ class FrameRateManager(
|
||||
getDisplayManager().unregisterDisplayListener(it)
|
||||
displayListener = null
|
||||
}
|
||||
// Restore default display mode on API M (preferredDisplayModeId persists)
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
||||
activity.window?.attributes?.let { attrs ->
|
||||
attrs.preferredDisplayModeId = 0
|
||||
activity.window?.attributes = attrs
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun registerDisplayListener() {
|
||||
@@ -79,13 +89,6 @@ class FrameRateManager(
|
||||
getDisplayManager().registerDisplayListener(displayListener, handler)
|
||||
}
|
||||
|
||||
@RequiresApi(Build.VERSION_CODES.R)
|
||||
private fun setFrameRateR(fps: Float, surface: Surface) {
|
||||
Log.d(TAG, "setFrameRateR: Setting frame rate to $fps")
|
||||
surface.setFrameRate(fps, Surface.FRAME_RATE_COMPATIBILITY_FIXED_SOURCE)
|
||||
registerDisplayListener()
|
||||
}
|
||||
|
||||
@RequiresApi(Build.VERSION_CODES.S)
|
||||
private fun setFrameRateS(fps: Float, surface: Surface, videoDurationMs: Long) {
|
||||
Log.d(TAG, "setFrameRateS: fps=$fps, duration=${videoDurationMs}ms")
|
||||
@@ -162,7 +165,7 @@ class FrameRateManager(
|
||||
BigDecimal(mode.refreshRate.toString()).setScale(1, RoundingMode.FLOOR)) {
|
||||
modeToUse = mode
|
||||
break
|
||||
} else if (mode.refreshRate % fps == 0f) {
|
||||
} else if ((mode.refreshRate % fps).let { it < 0.1f || (fps - it) < 0.1f }) {
|
||||
modeToUse = mode
|
||||
break
|
||||
}
|
||||
|
||||
+22
-103
@@ -8,94 +8,45 @@ PODS:
|
||||
- file_picker (0.0.1):
|
||||
- Flutter
|
||||
- Flutter (1.0.0)
|
||||
- GoogleDataTransport (10.1.0):
|
||||
- nanopb (~> 3.30910.0)
|
||||
- PromisesObjC (~> 2.4)
|
||||
- GoogleMLKit/BarcodeScanning (7.0.0):
|
||||
- GoogleMLKit/MLKitCore
|
||||
- MLKitBarcodeScanning (~> 6.0.0)
|
||||
- GoogleMLKit/MLKitCore (7.0.0):
|
||||
- MLKitCommon (~> 12.0.0)
|
||||
- GoogleToolboxForMac/Defines (4.2.1)
|
||||
- GoogleToolboxForMac/Logger (4.2.1):
|
||||
- GoogleToolboxForMac/Defines (= 4.2.1)
|
||||
- "GoogleToolboxForMac/NSData+zlib (4.2.1)":
|
||||
- GoogleToolboxForMac/Defines (= 4.2.1)
|
||||
- GoogleUtilities/Environment (8.1.0):
|
||||
- GoogleUtilities/Privacy
|
||||
- GoogleUtilities/Logger (8.1.0):
|
||||
- GoogleUtilities/Environment
|
||||
- GoogleUtilities/Privacy
|
||||
- GoogleUtilities/Privacy (8.1.0)
|
||||
- GoogleUtilities/UserDefaults (8.1.0):
|
||||
- GoogleUtilities/Logger
|
||||
- GoogleUtilities/Privacy
|
||||
- GTMSessionFetcher/Core (3.5.0)
|
||||
- in_app_review (2.0.0):
|
||||
- Flutter
|
||||
- MLImage (1.0.0-beta6)
|
||||
- MLKitBarcodeScanning (6.0.0):
|
||||
- MLKitCommon (~> 12.0)
|
||||
- MLKitVision (~> 8.0)
|
||||
- MLKitCommon (12.0.0):
|
||||
- GoogleDataTransport (~> 10.0)
|
||||
- GoogleToolboxForMac/Logger (< 5.0, >= 4.2.1)
|
||||
- "GoogleToolboxForMac/NSData+zlib (< 5.0, >= 4.2.1)"
|
||||
- GoogleUtilities/Logger (~> 8.0)
|
||||
- GoogleUtilities/UserDefaults (~> 8.0)
|
||||
- GTMSessionFetcher/Core (< 4.0, >= 3.3.2)
|
||||
- MLKitVision (8.0.0):
|
||||
- GoogleToolboxForMac/Logger (< 5.0, >= 4.2.1)
|
||||
- "GoogleToolboxForMac/NSData+zlib (< 5.0, >= 4.2.1)"
|
||||
- GTMSessionFetcher/Core (< 4.0, >= 3.3.2)
|
||||
- MLImage (= 1.0.0-beta6)
|
||||
- MLKitCommon (~> 12.0)
|
||||
- mobile_scanner (6.0.2):
|
||||
- mobile_scanner (7.0.0):
|
||||
- Flutter
|
||||
- GoogleMLKit/BarcodeScanning (~> 7.0.0)
|
||||
- nanopb (3.30910.0):
|
||||
- nanopb/decode (= 3.30910.0)
|
||||
- nanopb/encode (= 3.30910.0)
|
||||
- nanopb/decode (3.30910.0)
|
||||
- nanopb/encode (3.30910.0)
|
||||
- FlutterMacOS
|
||||
- os_media_controls (0.0.1):
|
||||
- Flutter
|
||||
- package_info_plus (0.4.5):
|
||||
- Flutter
|
||||
- path_provider_foundation (0.0.1):
|
||||
- Sentry/HybridSDK (8.58.0)
|
||||
- sentry_flutter (9.15.0):
|
||||
- Flutter
|
||||
- FlutterMacOS
|
||||
- PromisesObjC (2.4.0)
|
||||
- Sentry/HybridSDK (8.46.0)
|
||||
- sentry_flutter (8.14.2):
|
||||
- Flutter
|
||||
- FlutterMacOS
|
||||
- Sentry/HybridSDK (= 8.46.0)
|
||||
- Sentry/HybridSDK (= 8.58.0)
|
||||
- shared_preferences_foundation (0.0.1):
|
||||
- Flutter
|
||||
- FlutterMacOS
|
||||
- sqflite_darwin (0.0.4):
|
||||
- Flutter
|
||||
- FlutterMacOS
|
||||
- sqlite3 (3.51.1):
|
||||
- sqlite3/common (= 3.51.1)
|
||||
- sqlite3/common (3.51.1)
|
||||
- sqlite3/dbstatvtab (3.51.1):
|
||||
- sqlite3 (3.52.0):
|
||||
- sqlite3/common (= 3.52.0)
|
||||
- sqlite3/common (3.52.0)
|
||||
- sqlite3/dbstatvtab (3.52.0):
|
||||
- sqlite3/common
|
||||
- sqlite3/fts5 (3.51.1):
|
||||
- sqlite3/fts5 (3.52.0):
|
||||
- sqlite3/common
|
||||
- sqlite3/math (3.51.1):
|
||||
- sqlite3/math (3.52.0):
|
||||
- sqlite3/common
|
||||
- sqlite3/perf-threadsafe (3.51.1):
|
||||
- sqlite3/perf-threadsafe (3.52.0):
|
||||
- sqlite3/common
|
||||
- sqlite3/rtree (3.51.1):
|
||||
- sqlite3/rtree (3.52.0):
|
||||
- sqlite3/common
|
||||
- sqlite3/session (3.51.1):
|
||||
- sqlite3/session (3.52.0):
|
||||
- sqlite3/common
|
||||
- sqlite3_flutter_libs (0.0.1):
|
||||
- Flutter
|
||||
- FlutterMacOS
|
||||
- sqlite3 (~> 3.51.1)
|
||||
- sqlite3 (~> 3.52.0)
|
||||
- sqlite3/dbstatvtab
|
||||
- sqlite3/fts5
|
||||
- sqlite3/math
|
||||
@@ -108,8 +59,6 @@ PODS:
|
||||
- Flutter
|
||||
- wakelock_plus (0.0.1):
|
||||
- Flutter
|
||||
- workmanager_apple (0.0.1):
|
||||
- Flutter
|
||||
|
||||
DEPENDENCIES:
|
||||
- background_downloader (from `.symlinks/plugins/background_downloader/ios`)
|
||||
@@ -118,10 +67,9 @@ DEPENDENCIES:
|
||||
- file_picker (from `.symlinks/plugins/file_picker/ios`)
|
||||
- Flutter (from `Flutter`)
|
||||
- in_app_review (from `.symlinks/plugins/in_app_review/ios`)
|
||||
- mobile_scanner (from `.symlinks/plugins/mobile_scanner/ios`)
|
||||
- mobile_scanner (from `.symlinks/plugins/mobile_scanner/darwin`)
|
||||
- os_media_controls (from `.symlinks/plugins/os_media_controls/ios`)
|
||||
- package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
|
||||
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
|
||||
- sentry_flutter (from `.symlinks/plugins/sentry_flutter/ios`)
|
||||
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
|
||||
- sqflite_darwin (from `.symlinks/plugins/sqflite_darwin/darwin`)
|
||||
@@ -129,21 +77,9 @@ DEPENDENCIES:
|
||||
- universal_gamepad (from `.symlinks/plugins/universal_gamepad/ios`)
|
||||
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
|
||||
- wakelock_plus (from `.symlinks/plugins/wakelock_plus/ios`)
|
||||
- workmanager_apple (from `.symlinks/plugins/workmanager_apple/ios`)
|
||||
|
||||
SPEC REPOS:
|
||||
trunk:
|
||||
- GoogleDataTransport
|
||||
- GoogleMLKit
|
||||
- GoogleToolboxForMac
|
||||
- GoogleUtilities
|
||||
- GTMSessionFetcher
|
||||
- MLImage
|
||||
- MLKitBarcodeScanning
|
||||
- MLKitCommon
|
||||
- MLKitVision
|
||||
- nanopb
|
||||
- PromisesObjC
|
||||
- Sentry
|
||||
- sqlite3
|
||||
|
||||
@@ -161,13 +97,11 @@ EXTERNAL SOURCES:
|
||||
in_app_review:
|
||||
:path: ".symlinks/plugins/in_app_review/ios"
|
||||
mobile_scanner:
|
||||
:path: ".symlinks/plugins/mobile_scanner/ios"
|
||||
:path: ".symlinks/plugins/mobile_scanner/darwin"
|
||||
os_media_controls:
|
||||
:path: ".symlinks/plugins/os_media_controls/ios"
|
||||
package_info_plus:
|
||||
:path: ".symlinks/plugins/package_info_plus/ios"
|
||||
path_provider_foundation:
|
||||
:path: ".symlinks/plugins/path_provider_foundation/darwin"
|
||||
sentry_flutter:
|
||||
:path: ".symlinks/plugins/sentry_flutter/ios"
|
||||
shared_preferences_foundation:
|
||||
@@ -182,8 +116,6 @@ EXTERNAL SOURCES:
|
||||
:path: ".symlinks/plugins/url_launcher_ios/ios"
|
||||
wakelock_plus:
|
||||
:path: ".symlinks/plugins/wakelock_plus/ios"
|
||||
workmanager_apple:
|
||||
:path: ".symlinks/plugins/workmanager_apple/ios"
|
||||
|
||||
SPEC CHECKSUMS:
|
||||
background_downloader: 50e91d979067b82081aba359d7d916b3ba5fadad
|
||||
@@ -191,32 +123,19 @@ SPEC CHECKSUMS:
|
||||
device_info_plus: 21fcca2080fbcd348be798aa36c3e5ed849eefbe
|
||||
file_picker: 8fc6fe5e42585a217d44d22f79ec046cb8d81140
|
||||
Flutter: cabc95a1d2626b1b06e7179b784ebcf0c0cde467
|
||||
GoogleDataTransport: aae35b7ea0c09004c3797d53c8c41f66f219d6a7
|
||||
GoogleMLKit: eff9e23ec1d90ea4157a1ee2e32a4f610c5b3318
|
||||
GoogleToolboxForMac: d1a2cbf009c453f4d6ded37c105e2f67a32206d8
|
||||
GoogleUtilities: 00c88b9a86066ef77f0da2fab05f65d7768ed8e1
|
||||
GTMSessionFetcher: 5aea5ba6bd522a239e236100971f10cb71b96ab6
|
||||
in_app_review: 7dd1ea365263f834b8464673f9df72c80c17c937
|
||||
MLImage: 0ad1c5f50edd027672d8b26b0fee78a8b4a0fc56
|
||||
MLKitBarcodeScanning: 0a3064da0a7f49ac24ceb3cb46a5bc67496facd2
|
||||
MLKitCommon: 07c2c33ae5640e5380beaaa6e4b9c249a205542d
|
||||
MLKitVision: 45e79d68845a2de77e2dd4d7f07947f0ed157b0e
|
||||
mobile_scanner: af8f71879eaba2bbcb4d86c6a462c3c0e7f23036
|
||||
nanopb: fad817b59e0457d11a5dfbde799381cd727c1275
|
||||
mobile_scanner: 9157936403f5a0644ca3779a38ff8404c5434a93
|
||||
os_media_controls: 86dceab6245a5325af90fc0fdebe243c42d789b4
|
||||
package_info_plus: af8e2ca6888548050f16fa2f1938db7b5a5df499
|
||||
path_provider_foundation: bb55f6dbba17d0dccd6737fe6f7f34fbd0376880
|
||||
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
|
||||
Sentry: da60d980b197a46db0b35ea12cb8f39af48d8854
|
||||
sentry_flutter: 27892878729f42701297c628eb90e7c6529f3684
|
||||
Sentry: d587a8fe91ca13503ecd69a1905f3e8a0fcf61be
|
||||
sentry_flutter: 8939e491bc1511868118c96cae47d945e6f69798
|
||||
shared_preferences_foundation: 7036424c3d8ec98dfe75ff1667cb0cd531ec82bb
|
||||
sqflite_darwin: 20b2a3a3b70e43edae938624ce550a3cbf66a3d0
|
||||
sqlite3: 8d708bc63e9f4ce48f0ad9d6269e478c5ced1d9b
|
||||
sqlite3_flutter_libs: d13b8b3003f18f596e542bcb9482d105577eff41
|
||||
sqlite3: a51c07cf16e023d6c48abd5e5791a61a47354921
|
||||
sqlite3_flutter_libs: b3e120efe9a82017e5552a620f696589ed4f62ab
|
||||
universal_gamepad: e10172778a8a399cce234494968f38724974919e
|
||||
url_launcher_ios: 7a95fa5b60cc718a708b8f2966718e93db0cef1b
|
||||
wakelock_plus: e29112ab3ef0b318e58cfa5c32326458be66b556
|
||||
workmanager_apple: 904529ae31e97fc5be632cf628507652294a0778
|
||||
|
||||
PODFILE CHECKSUM: 16bb7f67e16d8aaa2bfb97666803fbfb291b6559
|
||||
|
||||
|
||||
@@ -8,20 +8,20 @@
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
|
||||
2CA552536A23AFD33344616B /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 200265C4B9C45EDD150FB4C3 /* Pods_RunnerTests.framework */; };
|
||||
331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
|
||||
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
|
||||
50DEEA8E23D1B433DE5341D6 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2C12D873DE8572579684A82C /* Pods_Runner.framework */; };
|
||||
6A48DFB02EA70C7100C1F7CD /* plezy.icon in Resources */ = {isa = PBXBuildFile; fileRef = 6A48DFAF2EA70C7100C1F7CD /* plezy.icon */; };
|
||||
6A8A46212EDB320D0057B88C /* MPVKit in Frameworks */ = {isa = PBXBuildFile; productRef = 6A8A46202EDB320D0057B88C /* MPVKit */; };
|
||||
6A8A46252EDB370C0057B88C /* MpvPlayerPlugin.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6A8A46232EDB370C0057B88C /* MpvPlayerPlugin.swift */; };
|
||||
6A8A46262EDB370C0057B88C /* MpvPlayerCore.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6A8A46222EDB370C0057B88C /* MpvPlayerCore.swift */; };
|
||||
B1D51A6A2F00110000000001 /* MpvPlayerCoreBase.swift in Sources */ = {isa = PBXBuildFile; fileRef = B1D51A6A2F00110000000002 /* MpvPlayerCoreBase.swift */; };
|
||||
B1D51A6A2F00110000000005 /* MpvPlayerPluginShared.swift in Sources */ = {isa = PBXBuildFile; fileRef = B1D51A6A2F00110000000006 /* MpvPlayerPluginShared.swift */; };
|
||||
92F969587D0E464D999910F5 /* MpvPipController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 92F969587D0E464D999910F4 /* MpvPipController.swift */; };
|
||||
702A247AA28B055172318FF9 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 61B22BEA638334DA7861BCF6 /* Pods_Runner.framework */; };
|
||||
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
|
||||
92F969587D0E464D999910F5 /* MpvPipController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 92F969587D0E464D999910F4 /* MpvPipController.swift */; };
|
||||
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
|
||||
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
|
||||
F37BB572E0F0606E20596E43 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3469ED9D4F3E58F8C3AEB7DC /* Pods_RunnerTests.framework */; };
|
||||
B1D51A6A2F00110000000001 /* MpvPlayerCoreBase.swift in Sources */ = {isa = PBXBuildFile; fileRef = B1D51A6A2F00110000000002 /* MpvPlayerCoreBase.swift */; };
|
||||
B1D51A6A2F00110000000005 /* MpvPlayerPluginShared.swift in Sources */ = {isa = PBXBuildFile; fileRef = B1D51A6A2F00110000000006 /* MpvPlayerPluginShared.swift */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXContainerItemProxy section */
|
||||
@@ -48,34 +48,34 @@
|
||||
/* End PBXCopyFilesBuildPhase section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
030239DB288C484414523AFE /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = "<group>"; };
|
||||
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
|
||||
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
|
||||
1E1EC7646F3085BF9127AB2A /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
|
||||
2C12D873DE8572579684A82C /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
200265C4B9C45EDD150FB4C3 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
230D46AA7CEA8CB81C420035 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = "<group>"; };
|
||||
331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; };
|
||||
331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
3469ED9D4F3E58F8C3AEB7DC /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
|
||||
5B81FA7048BFA976F49D555E /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = "<group>"; };
|
||||
5C4660106A040D374746C713 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
|
||||
61B22BEA638334DA7861BCF6 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
6A48DFAF2EA70C7100C1F7CD /* plezy.icon */ = {isa = PBXFileReference; lastKnownFileType = folder.iconcomposer.icon; path = plezy.icon; sourceTree = "<group>"; };
|
||||
6A8A46222EDB370C0057B88C /* MpvPlayerCore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MpvPlayerCore.swift; sourceTree = "<group>"; };
|
||||
6A8A46232EDB370C0057B88C /* MpvPlayerPlugin.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MpvPlayerPlugin.swift; sourceTree = "<group>"; };
|
||||
B1D51A6A2F00110000000002 /* MpvPlayerCoreBase.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = MpvPlayerCoreBase.swift; path = ../shared/apple/MpvPlayer/MpvPlayerCoreBase.swift; sourceTree = SOURCE_ROOT; };
|
||||
B1D51A6A2F00110000000006 /* MpvPlayerPluginShared.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = MpvPlayerPluginShared.swift; path = ../shared/apple/MpvPlayer/MpvPlayerPluginShared.swift; sourceTree = SOURCE_ROOT; };
|
||||
92F969587D0E464D999910F4 /* MpvPipController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MpvPipController.swift; sourceTree = "<group>"; };
|
||||
6E3FE696F0F85B37E212CCEE /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
|
||||
6FAF62B46A8A7A431F17FCD8 /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = "<group>"; };
|
||||
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
|
||||
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
|
||||
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
|
||||
83B9EB35C25EEF40090F6A88 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
|
||||
87ADF6219C65A13967DFF03C /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = "<group>"; };
|
||||
92F969587D0E464D999910F4 /* MpvPipController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MpvPipController.swift; sourceTree = "<group>"; };
|
||||
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
|
||||
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
|
||||
97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
|
||||
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
||||
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
A8738BEC00467F05948734DD /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
|
||||
D239CED757CED630C2B0A161 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = "<group>"; };
|
||||
B1D51A6A2F00110000000002 /* MpvPlayerCoreBase.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = MpvPlayerCoreBase.swift; path = ../shared/apple/MpvPlayer/MpvPlayerCoreBase.swift; sourceTree = SOURCE_ROOT; };
|
||||
B1D51A6A2F00110000000006 /* MpvPlayerPluginShared.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = MpvPlayerPluginShared.swift; path = ../shared/apple/MpvPlayer/MpvPlayerPluginShared.swift; sourceTree = SOURCE_ROOT; };
|
||||
C208E69E3A3B935CE009B4D5 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
@@ -83,7 +83,7 @@
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
F37BB572E0F0606E20596E43 /* Pods_RunnerTests.framework in Frameworks */,
|
||||
2CA552536A23AFD33344616B /* Pods_RunnerTests.framework in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
@@ -91,14 +91,23 @@
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
50DEEA8E23D1B433DE5341D6 /* Pods_Runner.framework in Frameworks */,
|
||||
6A8A46212EDB320D0057B88C /* MPVKit in Frameworks */,
|
||||
702A247AA28B055172318FF9 /* Pods_Runner.framework in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
19B1F8004DD75C8EEB4662AB /* Frameworks */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
61B22BEA638334DA7861BCF6 /* Pods_Runner.framework */,
|
||||
200265C4B9C45EDD150FB4C3 /* Pods_RunnerTests.framework */,
|
||||
);
|
||||
name = Frameworks;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
331C8082294A63A400263BE5 /* RunnerTests */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
@@ -107,15 +116,6 @@
|
||||
path = RunnerTests;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
67716449E04A72AA71A90156 /* Frameworks */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
2C12D873DE8572579684A82C /* Pods_Runner.framework */,
|
||||
3469ED9D4F3E58F8C3AEB7DC /* Pods_RunnerTests.framework */,
|
||||
);
|
||||
name = Frameworks;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
6A8A46242EDB370C0057B88C /* MpvPlayer */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
@@ -131,12 +131,12 @@
|
||||
875C8AEFBBA3759A1849D674 /* Pods */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
A8738BEC00467F05948734DD /* Pods-Runner.debug.xcconfig */,
|
||||
83B9EB35C25EEF40090F6A88 /* Pods-Runner.release.xcconfig */,
|
||||
1E1EC7646F3085BF9127AB2A /* Pods-Runner.profile.xcconfig */,
|
||||
5B81FA7048BFA976F49D555E /* Pods-RunnerTests.debug.xcconfig */,
|
||||
D239CED757CED630C2B0A161 /* Pods-RunnerTests.release.xcconfig */,
|
||||
87ADF6219C65A13967DFF03C /* Pods-RunnerTests.profile.xcconfig */,
|
||||
6E3FE696F0F85B37E212CCEE /* Pods-Runner.debug.xcconfig */,
|
||||
5C4660106A040D374746C713 /* Pods-Runner.release.xcconfig */,
|
||||
C208E69E3A3B935CE009B4D5 /* Pods-Runner.profile.xcconfig */,
|
||||
030239DB288C484414523AFE /* Pods-RunnerTests.debug.xcconfig */,
|
||||
230D46AA7CEA8CB81C420035 /* Pods-RunnerTests.release.xcconfig */,
|
||||
6FAF62B46A8A7A431F17FCD8 /* Pods-RunnerTests.profile.xcconfig */,
|
||||
);
|
||||
path = Pods;
|
||||
sourceTree = "<group>";
|
||||
@@ -160,8 +160,8 @@
|
||||
97C146EF1CF9000F007C117D /* Products */,
|
||||
331C8082294A63A400263BE5 /* RunnerTests */,
|
||||
875C8AEFBBA3759A1849D674 /* Pods */,
|
||||
67716449E04A72AA71A90156 /* Frameworks */,
|
||||
6A48DFAF2EA70C7100C1F7CD /* plezy.icon */,
|
||||
19B1F8004DD75C8EEB4662AB /* Frameworks */,
|
||||
);
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
@@ -196,7 +196,7 @@
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
|
||||
buildPhases = (
|
||||
684A4A968F313A7FDAEBF3B8 /* [CP] Check Pods Manifest.lock */,
|
||||
C5965E09A75FF4B9D47A6A5A /* [CP] Check Pods Manifest.lock */,
|
||||
331C807D294A63A400263BE5 /* Sources */,
|
||||
331C807F294A63A400263BE5 /* Resources */,
|
||||
582EBCC1C90BEBEC365D972D /* Frameworks */,
|
||||
@@ -215,15 +215,14 @@
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
|
||||
buildPhases = (
|
||||
01D58DD9E289D97FD8DBE66E /* [CP] Check Pods Manifest.lock */,
|
||||
A7BAF2DBCB81960BDC752F05 /* [CP] Check Pods Manifest.lock */,
|
||||
9740EEB61CF901F6004384FC /* Run Script */,
|
||||
97C146EA1CF9000F007C117D /* Sources */,
|
||||
97C146EB1CF9000F007C117D /* Frameworks */,
|
||||
97C146EC1CF9000F007C117D /* Resources */,
|
||||
9705A1C41CF9048500538489 /* Embed Frameworks */,
|
||||
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
|
||||
2E10BAE564A4AFFCFF5B4EF0 /* [CP] Embed Pods Frameworks */,
|
||||
BE3E47DA555D39F032C6A1DB /* [CP] Copy Pods Resources */,
|
||||
87CA3559B76E3AB2BA77B235 /* [CP] Embed Pods Frameworks */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
@@ -298,7 +297,55 @@
|
||||
/* End PBXResourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXShellScriptBuildPhase section */
|
||||
01D58DD9E289D97FD8DBE66E /* [CP] Check Pods Manifest.lock */ = {
|
||||
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
alwaysOutOfDate = 1;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputPaths = (
|
||||
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
|
||||
);
|
||||
name = "Thin Binary";
|
||||
outputPaths = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
|
||||
};
|
||||
87CA3559B76E3AB2BA77B235 /* [CP] Embed Pods Frameworks */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputFileListPaths = (
|
||||
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
|
||||
);
|
||||
name = "[CP] Embed Pods Frameworks";
|
||||
outputFileListPaths = (
|
||||
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
9740EEB61CF901F6004384FC /* Run Script */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
alwaysOutOfDate = 1;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputPaths = (
|
||||
);
|
||||
name = "Run Script";
|
||||
outputPaths = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
|
||||
};
|
||||
A7BAF2DBCB81960BDC752F05 /* [CP] Check Pods Manifest.lock */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
@@ -320,40 +367,7 @@
|
||||
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
2E10BAE564A4AFFCFF5B4EF0 /* [CP] Embed Pods Frameworks */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputFileListPaths = (
|
||||
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
|
||||
);
|
||||
name = "[CP] Embed Pods Frameworks";
|
||||
outputFileListPaths = (
|
||||
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
alwaysOutOfDate = 1;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputPaths = (
|
||||
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
|
||||
);
|
||||
name = "Thin Binary";
|
||||
outputPaths = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
|
||||
};
|
||||
684A4A968F313A7FDAEBF3B8 /* [CP] Check Pods Manifest.lock */ = {
|
||||
C5965E09A75FF4B9D47A6A5A /* [CP] Check Pods Manifest.lock */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
@@ -375,38 +389,6 @@
|
||||
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
9740EEB61CF901F6004384FC /* Run Script */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
alwaysOutOfDate = 1;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputPaths = (
|
||||
);
|
||||
name = "Run Script";
|
||||
outputPaths = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
|
||||
};
|
||||
BE3E47DA555D39F032C6A1DB /* [CP] Copy Pods Resources */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputFileListPaths = (
|
||||
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
|
||||
);
|
||||
name = "[CP] Copy Pods Resources";
|
||||
outputFileListPaths = (
|
||||
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
/* End PBXShellScriptBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
@@ -542,7 +524,7 @@
|
||||
};
|
||||
331C8088294A63A400263BE5 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 5B81FA7048BFA976F49D555E /* Pods-RunnerTests.debug.xcconfig */;
|
||||
baseConfigurationReference = 030239DB288C484414523AFE /* Pods-RunnerTests.debug.xcconfig */;
|
||||
buildSettings = {
|
||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
@@ -560,7 +542,7 @@
|
||||
};
|
||||
331C8089294A63A400263BE5 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = D239CED757CED630C2B0A161 /* Pods-RunnerTests.release.xcconfig */;
|
||||
baseConfigurationReference = 230D46AA7CEA8CB81C420035 /* Pods-RunnerTests.release.xcconfig */;
|
||||
buildSettings = {
|
||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
@@ -576,7 +558,7 @@
|
||||
};
|
||||
331C808A294A63A400263BE5 /* Profile */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 87ADF6219C65A13967DFF03C /* Pods-RunnerTests.profile.xcconfig */;
|
||||
baseConfigurationReference = 6FAF62B46A8A7A431F17FCD8 /* Pods-RunnerTests.profile.xcconfig */;
|
||||
buildSettings = {
|
||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
@@ -804,7 +786,7 @@
|
||||
6A8A46202EDB320D0057B88C /* MPVKit */ = {
|
||||
isa = XCSwiftPackageProductDependency;
|
||||
package = 6A8A461F2EDB320D0057B88C /* XCRemoteSwiftPackageReference "MPVKit" */;
|
||||
productName = "MPVKit";
|
||||
productName = MPVKit;
|
||||
};
|
||||
/* End XCSwiftPackageProductDependency section */
|
||||
};
|
||||
|
||||
@@ -57,7 +57,6 @@ class MpvPipController: NSObject {
|
||||
if let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene,
|
||||
let window = windowScene.windows.first(where: { $0.isKeyWindow }) {
|
||||
let view = UIView(frame: window.bounds)
|
||||
view.autoresizingMask = [.flexibleWidth, .flexibleHeight]
|
||||
view.clipsToBounds = true
|
||||
view.isUserInteractionEnabled = false
|
||||
sampleBufferLayer.frame = view.bounds
|
||||
|
||||
@@ -139,28 +139,31 @@ class MpvPlayerPlugin: NSObject, FlutterPlugin, FlutterStreamHandler, MpvPluginS
|
||||
}
|
||||
|
||||
private func handlePipCall(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||
switch call.method {
|
||||
case "isSupported":
|
||||
result(MpvPipController.isSupported)
|
||||
case "enter":
|
||||
enterPip(manual: true, result: result)
|
||||
case "setAutoPipReady":
|
||||
if let args = call.arguments as? [String: Any], let ready = args["ready"] as? Bool {
|
||||
autoPipEnabled = ready
|
||||
if ready {
|
||||
let pip = ensurePipController()
|
||||
pip.setAutoStart(true)
|
||||
// Warm the layer so the system considers PiP possible
|
||||
if let pc = playerCore {
|
||||
pip.warmLayer(currentTime: pc.timePos, isPlaying: !pc.isPaused)
|
||||
DispatchQueue.main.async { [weak self] in
|
||||
guard let self = self else { result(nil); return }
|
||||
switch call.method {
|
||||
case "isSupported":
|
||||
result(MpvPipController.isSupported)
|
||||
case "enter":
|
||||
self.enterPip(manual: true, result: result)
|
||||
case "setAutoPipReady":
|
||||
if let args = call.arguments as? [String: Any], let ready = args["ready"] as? Bool {
|
||||
self.autoPipEnabled = ready
|
||||
if ready {
|
||||
let pip = self.ensurePipController()
|
||||
pip.setAutoStart(true)
|
||||
// Warm the layer so the system considers PiP possible
|
||||
if let pc = self.playerCore {
|
||||
pip.warmLayer(currentTime: pc.timePos, isPlaying: !pc.isPaused)
|
||||
}
|
||||
} else {
|
||||
self.pipController?.setAutoStart(false)
|
||||
}
|
||||
} else {
|
||||
pipController?.setAutoStart(false)
|
||||
}
|
||||
result(nil)
|
||||
default:
|
||||
result(FlutterMethodNotImplemented)
|
||||
}
|
||||
result(nil)
|
||||
default:
|
||||
result(FlutterMethodNotImplemented)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -225,6 +225,9 @@ LazyDatabase _openConnection() {
|
||||
}
|
||||
}
|
||||
|
||||
return NativeDatabase(file);
|
||||
return NativeDatabase.createInBackground(file, setup: (db) {
|
||||
db.execute('PRAGMA journal_mode=WAL');
|
||||
db.execute('PRAGMA synchronous=NORMAL');
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -13,6 +13,9 @@ class FocusableAction {
|
||||
/// Icon color. Ignored when [child] is provided.
|
||||
final Color? iconColor;
|
||||
|
||||
/// Icon fill weight (0.0–1.0). Defaults to 1.0. Ignored when [child] is provided.
|
||||
final double iconFill;
|
||||
|
||||
final String? tooltip;
|
||||
final VoidCallback? onPressed;
|
||||
|
||||
@@ -23,6 +26,7 @@ class FocusableAction {
|
||||
const FocusableAction({
|
||||
this.icon = Icons.circle,
|
||||
this.iconColor,
|
||||
this.iconFill = 1.0,
|
||||
this.tooltip,
|
||||
this.onPressed,
|
||||
this.child,
|
||||
@@ -173,7 +177,7 @@ class FocusableActionBarState extends State<FocusableActionBar> {
|
||||
decoration: FocusTheme.focusBackgroundDecoration(isFocused: showFocus, borderRadius: 20),
|
||||
child: action.child ??
|
||||
IconButton(
|
||||
icon: AppIcon(action.icon, fill: 1, color: action.iconColor),
|
||||
icon: AppIcon(action.icon, fill: action.iconFill, color: action.iconColor),
|
||||
tooltip: action.tooltip,
|
||||
onPressed: action.onPressed,
|
||||
),
|
||||
|
||||
@@ -240,13 +240,15 @@ class _FocusableWrapperState extends State<FocusableWrapper> with SingleTickerPr
|
||||
final renderObject = context.findRenderObject();
|
||||
if (renderObject == null) return;
|
||||
|
||||
// Find the nearest scrollable that actually has scroll range.
|
||||
// Find the nearest vertical scrollable that actually has scroll range.
|
||||
// Skip inner scrollables with no extent (e.g. shrinkWrap ListView
|
||||
// with NeverScrollableScrollPhysics inside an outer scroll view).
|
||||
// with NeverScrollableScrollPhysics inside an outer scroll view)
|
||||
// and horizontal scrollables (e.g. TabBarView) since we only do
|
||||
// vertical scroll calculations.
|
||||
var scrollable = Scrollable.maybeOf(context);
|
||||
while (scrollable != null) {
|
||||
final pos = scrollable.position;
|
||||
if (pos.maxScrollExtent > pos.minScrollExtent) break;
|
||||
if (pos.axis == Axis.vertical && pos.maxScrollExtent > pos.minScrollExtent) break;
|
||||
scrollable = Scrollable.maybeOf(scrollable.context);
|
||||
}
|
||||
if (scrollable == null) return;
|
||||
|
||||
+642
-256
File diff suppressed because it is too large
Load Diff
+12
-29
@@ -30,7 +30,6 @@
|
||||
"shuffle": "Zufall",
|
||||
"addTo": "Hinzufügen zu...",
|
||||
"createNew": "Neu erstellen",
|
||||
"remove": "Entfernen",
|
||||
"paste": "Einfügen",
|
||||
"connect": "Verbinden",
|
||||
"disconnect": "Trennen",
|
||||
@@ -44,7 +43,6 @@
|
||||
"settings": "Optionen",
|
||||
"mute": "Stumm",
|
||||
"ok": "OK",
|
||||
"loading": "Laden...",
|
||||
"reconnect": "Erneut verbinden",
|
||||
"exitConfirmTitle": "App beenden?",
|
||||
"exitConfirmMessage": "Möchtest du die App wirklich beenden?",
|
||||
@@ -137,6 +135,8 @@
|
||||
"subtitleStylingDescription": "Aussehen von Untertiteln anpassen",
|
||||
"smallSkipDuration": "Kleine Sprungdauer",
|
||||
"largeSkipDuration": "Große Sprungdauer",
|
||||
"rewindOnResume": "Zurückspulen bei Fortsetzung",
|
||||
"rewindOnResumeDescription": "Um diesen Betrag zurückspulen, wenn die Wiedergabe fortgesetzt wird",
|
||||
"secondsUnit": "${seconds} Sekunden",
|
||||
"defaultSleepTimer": "Standard-Sleep-Timer",
|
||||
"minutesUnit": "${minutes} Minuten",
|
||||
@@ -213,7 +213,9 @@
|
||||
"confirmExitOnBack": "Vor dem Beenden bestätigen",
|
||||
"confirmExitOnBackDescription": "Bestätigungsdialog anzeigen, wenn Zurück zum Beenden der App gedrückt wird",
|
||||
"showNavBarLabels": "Navigationsleisten-Beschriftungen anzeigen",
|
||||
"showNavBarLabelsDescription": "Textbeschriftungen unter den Symbolen der Navigationsleiste anzeigen"
|
||||
"showNavBarLabelsDescription": "Textbeschriftungen unter den Symbolen der Navigationsleiste anzeigen",
|
||||
"liveTvDefaultFavorites": "Standardmäßig Favoritenkanäle",
|
||||
"liveTvDefaultFavoritesDescription": "Beim Öffnen von Live TV nur Favoritenkanäle anzeigen"
|
||||
},
|
||||
"search": {
|
||||
"hint": "Filme, Serien, Musik suchen...",
|
||||
@@ -246,11 +248,6 @@
|
||||
"skipMarker": "Intro/Abspann überspringen"
|
||||
}
|
||||
},
|
||||
"pinEntry": {
|
||||
"enterPin": "PIN eingeben",
|
||||
"showPin": "PIN anzeigen",
|
||||
"hidePin": "PIN verbergen"
|
||||
},
|
||||
"fileInfo": {
|
||||
"title": "Dateiinfo",
|
||||
"video": "Video",
|
||||
@@ -323,7 +320,6 @@
|
||||
"unlockRotation": "Rotation entsperren",
|
||||
"timerActive": "Schlaftimer aktiv",
|
||||
"playbackWillPauseIn": "Wiedergabe wird in ${duration} pausiert",
|
||||
"sleepTimerCompleted": "Schlaftimer abgelaufen – Wiedergabe pausiert",
|
||||
"stillWatching": "Schaust du noch?",
|
||||
"pausingIn": "Pause in ${seconds}s",
|
||||
"continueWatching": "Weiter",
|
||||
@@ -340,20 +336,20 @@
|
||||
"muteButton": "Stumm schalten",
|
||||
"unmuteButton": "Stummschaltung aufheben",
|
||||
"settingsButton": "Videoeinstellungen",
|
||||
"audioTrackButton": "Tonspuren",
|
||||
"subtitlesButton": "Untertitel",
|
||||
"tracksButton": "Audio und Untertitel",
|
||||
"chaptersButton": "Kapitel",
|
||||
"versionsButton": "Videoversionen",
|
||||
"pipButton": "Bild-in-Bild Modus",
|
||||
"aspectRatioButton": "Seitenverhältnis",
|
||||
"ambientLighting": "Umgebungsbeleuchtung",
|
||||
"ambientLightingOn": "Umgebungsbeleuchtung aktivieren",
|
||||
"ambientLightingOff": "Umgebungsbeleuchtung deaktivieren",
|
||||
"fullscreenButton": "Vollbild aktivieren",
|
||||
"exitFullscreenButton": "Vollbild verlassen",
|
||||
"alwaysOnTopButton": "Immer im Vordergrund",
|
||||
"rotationLockButton": "Drehsperre",
|
||||
"lockScreen": "Bildschirm sperren",
|
||||
"unlockScreen": "Bildschirm entsperren",
|
||||
"screenLockButton": "Bildschirmsperre",
|
||||
"longPressToUnlock": "Lange drücken zum Entsperren",
|
||||
"timelineSlider": "Video-Zeitleiste",
|
||||
"volumeSlider": "Lautstärkepegel",
|
||||
"endsAt": "Endet um ${time}",
|
||||
@@ -453,11 +449,8 @@
|
||||
"overview": "Übersicht",
|
||||
"cast": "Besetzung",
|
||||
"extras": "Trailer & Extras",
|
||||
"seasons": "Staffeln",
|
||||
"studio": "Studio",
|
||||
"rating": "Altersfreigabe",
|
||||
"episodeCount": "${count} Episoden",
|
||||
"watchedProgress": "${watched} von ${total} gesehen",
|
||||
"movie": "Film",
|
||||
"tvShow": "Serie",
|
||||
"minutesLeft": "${minutes} Min übrig"
|
||||
@@ -550,9 +543,7 @@
|
||||
"logs": {
|
||||
"clearLogs": "Protokolle löschen",
|
||||
"copyLogs": "Protokolle kopieren",
|
||||
"uploadLogs": "Protokolle hochladen",
|
||||
"error": "Fehler:",
|
||||
"stackTrace": "Stacktrace:"
|
||||
"uploadLogs": "Protokolle hochladen"
|
||||
},
|
||||
"licenses": {
|
||||
"relatedPackages": "Verwandte Pakete",
|
||||
@@ -567,20 +558,12 @@
|
||||
},
|
||||
"liveTv": {
|
||||
"title": "Live-TV",
|
||||
"channels": "Kanäle",
|
||||
"guide": "Programmführer",
|
||||
"noChannels": "Keine Kanäle verfügbar",
|
||||
"noDvr": "Kein DVR auf einem Server konfiguriert",
|
||||
"tuneFailed": "Kanal konnte nicht eingestellt werden",
|
||||
"loading": "Kanäle werden geladen...",
|
||||
"nowPlaying": "Läuft gerade",
|
||||
"noPrograms": "Keine Programmdaten verfügbar",
|
||||
"channelNumber": "Kanal ${number}",
|
||||
"live": "LIVE",
|
||||
"hd": "HD",
|
||||
"premiere": "NEU",
|
||||
"reloadGuide": "Programmführer neu laden",
|
||||
"allChannels": "Alle Kanäle",
|
||||
"now": "Jetzt",
|
||||
"today": "Heute",
|
||||
"midnight": "Mitternacht",
|
||||
@@ -590,7 +573,8 @@
|
||||
"evening": "Abend",
|
||||
"lateNight": "Spätnacht",
|
||||
"whatsOn": "Jetzt im TV",
|
||||
"watchChannel": "Kanal ansehen"
|
||||
"watchChannel": "Kanal ansehen",
|
||||
"favorites": "Favoriten"
|
||||
},
|
||||
"downloads": {
|
||||
"title": "Downloads",
|
||||
@@ -835,7 +819,6 @@
|
||||
"playerCommand": "Befehl",
|
||||
"playerPackage": "Paketname",
|
||||
"playerUrlScheme": "URL-Schema",
|
||||
"customPlayer": "Benutzerdefinierter Player",
|
||||
"off": "Aus",
|
||||
"launchFailed": "Externer Player konnte nicht geöffnet werden",
|
||||
"appNotInstalled": "${name} ist nicht installiert",
|
||||
|
||||
+12
-29
@@ -30,7 +30,6 @@
|
||||
"shuffle": "Shuffle",
|
||||
"addTo": "Add to...",
|
||||
"createNew": "Create new",
|
||||
"remove": "Remove",
|
||||
"paste": "Paste",
|
||||
"connect": "Connect",
|
||||
"disconnect": "Disconnect",
|
||||
@@ -44,7 +43,6 @@
|
||||
"settings": "Settings",
|
||||
"mute": "Mute",
|
||||
"ok": "OK",
|
||||
"loading": "Loading...",
|
||||
"reconnect": "Reconnect",
|
||||
"exitConfirmTitle": "Exit app?",
|
||||
"exitConfirmMessage": "Are you sure you want to exit?",
|
||||
@@ -137,6 +135,8 @@
|
||||
"subtitleStylingDescription": "Customize subtitle appearance",
|
||||
"smallSkipDuration": "Small Skip Duration",
|
||||
"largeSkipDuration": "Large Skip Duration",
|
||||
"rewindOnResume": "Rewind on Resume",
|
||||
"rewindOnResumeDescription": "Rewind by this amount when resuming playback",
|
||||
"secondsUnit": "${seconds} seconds",
|
||||
"defaultSleepTimer": "Default Sleep Timer",
|
||||
"minutesUnit": "${minutes} minutes",
|
||||
@@ -213,7 +213,9 @@
|
||||
"confirmExitOnBack": "Confirm before exiting",
|
||||
"confirmExitOnBackDescription": "Show a confirmation dialog when pressing back to exit the app",
|
||||
"showNavBarLabels": "Show Navigation Bar Labels",
|
||||
"showNavBarLabelsDescription": "Display text labels under navigation bar icons"
|
||||
"showNavBarLabelsDescription": "Display text labels under navigation bar icons",
|
||||
"liveTvDefaultFavorites": "Default to Favorite Channels",
|
||||
"liveTvDefaultFavoritesDescription": "Show only favorite channels when opening Live TV"
|
||||
},
|
||||
"search": {
|
||||
"hint": "Search movies, shows, music...",
|
||||
@@ -246,11 +248,6 @@
|
||||
"skipMarker": "Skip Intro/Credits"
|
||||
}
|
||||
},
|
||||
"pinEntry": {
|
||||
"enterPin": "Enter PIN",
|
||||
"showPin": "Show PIN",
|
||||
"hidePin": "Hide PIN"
|
||||
},
|
||||
"fileInfo": {
|
||||
"title": "File Info",
|
||||
"video": "Video",
|
||||
@@ -323,7 +320,6 @@
|
||||
"unlockRotation": "Unlock rotation",
|
||||
"timerActive": "Timer Active",
|
||||
"playbackWillPauseIn": "Playback will pause in ${duration}",
|
||||
"sleepTimerCompleted": "Sleep timer completed - playback paused",
|
||||
"stillWatching": "Still watching?",
|
||||
"pausingIn": "Pausing in ${seconds}s",
|
||||
"continueWatching": "Continue",
|
||||
@@ -340,20 +336,20 @@
|
||||
"muteButton": "Mute",
|
||||
"unmuteButton": "Unmute",
|
||||
"settingsButton": "Video settings",
|
||||
"audioTrackButton": "Audio tracks",
|
||||
"subtitlesButton": "Subtitles",
|
||||
"tracksButton": "Audio & Subtitles",
|
||||
"chaptersButton": "Chapters",
|
||||
"versionsButton": "Video versions",
|
||||
"pipButton": "Picture-in-Picture mode",
|
||||
"aspectRatioButton": "Aspect ratio",
|
||||
"ambientLighting": "Ambient lighting",
|
||||
"ambientLightingOn": "Enable ambient lighting",
|
||||
"ambientLightingOff": "Disable ambient lighting",
|
||||
"fullscreenButton": "Enter fullscreen",
|
||||
"exitFullscreenButton": "Exit fullscreen",
|
||||
"alwaysOnTopButton": "Always on top",
|
||||
"rotationLockButton": "Rotation lock",
|
||||
"lockScreen": "Lock screen",
|
||||
"unlockScreen": "Unlock screen",
|
||||
"screenLockButton": "Screen lock",
|
||||
"longPressToUnlock": "Long press to unlock",
|
||||
"timelineSlider": "Video timeline",
|
||||
"volumeSlider": "Volume level",
|
||||
"endsAt": "Ends at ${time}",
|
||||
@@ -453,11 +449,8 @@
|
||||
"overview": "Overview",
|
||||
"cast": "Cast",
|
||||
"extras": "Trailers & Extras",
|
||||
"seasons": "Seasons",
|
||||
"studio": "Studio",
|
||||
"rating": "Rating",
|
||||
"episodeCount": "${count} episodes",
|
||||
"watchedProgress": "${watched}/${total} watched",
|
||||
"movie": "Movie",
|
||||
"tvShow": "TV Show",
|
||||
"minutesLeft": "${minutes} min left"
|
||||
@@ -550,9 +543,7 @@
|
||||
"logs": {
|
||||
"clearLogs": "Clear Logs",
|
||||
"copyLogs": "Copy Logs",
|
||||
"uploadLogs": "Upload Logs",
|
||||
"error": "Error:",
|
||||
"stackTrace": "Stack Trace:"
|
||||
"uploadLogs": "Upload Logs"
|
||||
},
|
||||
"licenses": {
|
||||
"relatedPackages": "Related Packages",
|
||||
@@ -567,20 +558,12 @@
|
||||
},
|
||||
"liveTv": {
|
||||
"title": "Live TV",
|
||||
"channels": "Channels",
|
||||
"guide": "Guide",
|
||||
"noChannels": "No channels available",
|
||||
"noDvr": "No DVR configured on any server",
|
||||
"tuneFailed": "Failed to tune channel",
|
||||
"loading": "Loading channels...",
|
||||
"nowPlaying": "Now Playing",
|
||||
"noPrograms": "No program data available",
|
||||
"channelNumber": "Ch. ${number}",
|
||||
"live": "LIVE",
|
||||
"hd": "HD",
|
||||
"premiere": "NEW",
|
||||
"reloadGuide": "Reload Guide",
|
||||
"allChannels": "All Channels",
|
||||
"now": "Now",
|
||||
"today": "Today",
|
||||
"midnight": "Midnight",
|
||||
@@ -590,7 +573,8 @@
|
||||
"evening": "Evening",
|
||||
"lateNight": "Late Night",
|
||||
"whatsOn": "What's On",
|
||||
"watchChannel": "Watch Channel"
|
||||
"watchChannel": "Watch Channel",
|
||||
"favorites": "Favorites"
|
||||
},
|
||||
"collections": {
|
||||
"title": "Collections",
|
||||
@@ -835,7 +819,6 @@
|
||||
"playerCommand": "Command",
|
||||
"playerPackage": "Package Name",
|
||||
"playerUrlScheme": "URL Scheme",
|
||||
"customPlayer": "Custom Player",
|
||||
"off": "Off",
|
||||
"launchFailed": "Failed to open external player",
|
||||
"appNotInstalled": "${name} is not installed",
|
||||
|
||||
+12
-29
@@ -30,7 +30,6 @@
|
||||
"shuffle": "Aleatorio",
|
||||
"addTo": "Añadir a...",
|
||||
"createNew": "Crear",
|
||||
"remove": "Eliminar",
|
||||
"paste": "Pegar",
|
||||
"connect": "Conectar",
|
||||
"disconnect": "Desconectar",
|
||||
@@ -44,7 +43,6 @@
|
||||
"settings": "Ajustes",
|
||||
"mute": "Silencio",
|
||||
"ok": "OK",
|
||||
"loading": "Cargando...",
|
||||
"reconnect": "Reconectar",
|
||||
"exitConfirmTitle": "¿Salir de la app?",
|
||||
"exitConfirmMessage": "¿Estás seguro de que quieres salir?",
|
||||
@@ -137,6 +135,8 @@
|
||||
"subtitleStylingDescription": "Personalizar la apariencia de los subtítulos",
|
||||
"smallSkipDuration": "Salto pequeño",
|
||||
"largeSkipDuration": "Salto grande",
|
||||
"rewindOnResume": "Rebobinar al reanudar",
|
||||
"rewindOnResumeDescription": "Rebobinar esta cantidad al reanudar la reproducción",
|
||||
"secondsUnit": "${seconds} segundos",
|
||||
"defaultSleepTimer": "Temporizador de apagado",
|
||||
"minutesUnit": "${minutes} minutos",
|
||||
@@ -213,7 +213,9 @@
|
||||
"confirmExitOnBack": "Confirmar antes de salir",
|
||||
"confirmExitOnBackDescription": "Mostrar un diálogo de confirmación al presionar atrás para salir de la app",
|
||||
"showNavBarLabels": "Mostrar etiquetas de la barra de navegación",
|
||||
"showNavBarLabelsDescription": "Mostrar etiquetas de texto bajo los iconos de la barra de navegación"
|
||||
"showNavBarLabelsDescription": "Mostrar etiquetas de texto bajo los iconos de la barra de navegación",
|
||||
"liveTvDefaultFavorites": "Canales favoritos por defecto",
|
||||
"liveTvDefaultFavoritesDescription": "Mostrar solo canales favoritos al abrir TV en vivo"
|
||||
},
|
||||
"search": {
|
||||
"hint": "Buscar películas, series, música...",
|
||||
@@ -246,11 +248,6 @@
|
||||
"skipMarker": "Saltar Intro/Créditos"
|
||||
}
|
||||
},
|
||||
"pinEntry": {
|
||||
"enterPin": "Introduce el PIN",
|
||||
"showPin": "Mostrar PIN",
|
||||
"hidePin": "Ocultar PIN"
|
||||
},
|
||||
"fileInfo": {
|
||||
"title": "Información del Archivo",
|
||||
"video": "Video",
|
||||
@@ -323,7 +320,6 @@
|
||||
"unlockRotation": "Desbloquear rotación",
|
||||
"timerActive": "Temporizador Activo",
|
||||
"playbackWillPauseIn": "La reproducción se pausará en ${duration}",
|
||||
"sleepTimerCompleted": "Temporizador completado - reproducción pausada",
|
||||
"stillWatching": "¿Sigues viendo?",
|
||||
"pausingIn": "Pausa en ${seconds}s",
|
||||
"continueWatching": "Continuar",
|
||||
@@ -340,20 +336,20 @@
|
||||
"muteButton": "Silenciar",
|
||||
"unmuteButton": "Activar sonido",
|
||||
"settingsButton": "Ajustes de video",
|
||||
"audioTrackButton": "Pistas de audio",
|
||||
"subtitlesButton": "Subtítulos",
|
||||
"tracksButton": "Audio y subtítulos",
|
||||
"chaptersButton": "Capítulos",
|
||||
"versionsButton": "Versiones de video",
|
||||
"pipButton": "Modo PiP (Imagen en Imagen)",
|
||||
"aspectRatioButton": "Relación de aspecto",
|
||||
"ambientLighting": "Iluminación ambiental",
|
||||
"ambientLightingOn": "Activar iluminación ambiental",
|
||||
"ambientLightingOff": "Desactivar iluminación ambiental",
|
||||
"fullscreenButton": "Entrar en pantalla completa",
|
||||
"exitFullscreenButton": "Salir de pantalla completa",
|
||||
"alwaysOnTopButton": "Siempre visible",
|
||||
"rotationLockButton": "Bloqueo de rotación",
|
||||
"lockScreen": "Bloquear pantalla",
|
||||
"unlockScreen": "Desbloquear pantalla",
|
||||
"screenLockButton": "Bloqueo de pantalla",
|
||||
"longPressToUnlock": "Mantén pulsado para desbloquear",
|
||||
"timelineSlider": "Línea de tiempo del video",
|
||||
"volumeSlider": "Nivel de volumen",
|
||||
"endsAt": "Termina a las ${time}",
|
||||
@@ -453,11 +449,8 @@
|
||||
"overview": "Resumen",
|
||||
"cast": "Reparto",
|
||||
"extras": "Tráilers y Extras",
|
||||
"seasons": "Temporadas",
|
||||
"studio": "Estudio",
|
||||
"rating": "Calificación",
|
||||
"episodeCount": "${count} episodios",
|
||||
"watchedProgress": "${watched}/${total} vistos",
|
||||
"movie": "Película",
|
||||
"tvShow": "Serie de TV",
|
||||
"minutesLeft": "quedan ${minutes} min"
|
||||
@@ -550,9 +543,7 @@
|
||||
"logs": {
|
||||
"clearLogs": "Borrar Logs",
|
||||
"copyLogs": "Copiar Logs",
|
||||
"uploadLogs": "Subir registros",
|
||||
"error": "Error:",
|
||||
"stackTrace": "Traza de la pila (Stack Trace):"
|
||||
"uploadLogs": "Subir registros"
|
||||
},
|
||||
"licenses": {
|
||||
"relatedPackages": "Paquetes relacionados",
|
||||
@@ -567,20 +558,12 @@
|
||||
},
|
||||
"liveTv": {
|
||||
"title": "TV en vivo",
|
||||
"channels": "Canales",
|
||||
"guide": "Guía",
|
||||
"noChannels": "No hay canales disponibles",
|
||||
"noDvr": "No hay DVR configurado en ningún servidor",
|
||||
"tuneFailed": "Error al sintonizar el canal",
|
||||
"loading": "Cargando canales...",
|
||||
"nowPlaying": "Reproduciendo ahora",
|
||||
"noPrograms": "No hay datos de programación disponibles",
|
||||
"channelNumber": "Canal ${number}",
|
||||
"live": "EN VIVO",
|
||||
"hd": "HD",
|
||||
"premiere": "NUEVO",
|
||||
"reloadGuide": "Recargar guía",
|
||||
"allChannels": "Todos los canales",
|
||||
"now": "Ahora",
|
||||
"today": "Hoy",
|
||||
"midnight": "Medianoche",
|
||||
@@ -590,7 +573,8 @@
|
||||
"evening": "Noche",
|
||||
"lateNight": "Trasnoche",
|
||||
"whatsOn": "En emisión",
|
||||
"watchChannel": "Ver canal"
|
||||
"watchChannel": "Ver canal",
|
||||
"favorites": "Favoritos"
|
||||
},
|
||||
"collections": {
|
||||
"title": "Colecciones",
|
||||
@@ -835,7 +819,6 @@
|
||||
"playerCommand": "Comando",
|
||||
"playerPackage": "Nombre del paquete",
|
||||
"playerUrlScheme": "Esquema URL",
|
||||
"customPlayer": "Reproductor personalizado",
|
||||
"off": "Desactivado",
|
||||
"launchFailed": "No se pudo abrir el reproductor externo",
|
||||
"appNotInstalled": "${name} no está instalado",
|
||||
|
||||
+12
-29
@@ -30,7 +30,6 @@
|
||||
"shuffle": "Mélanger",
|
||||
"addTo": "Ajouter à...",
|
||||
"createNew": "Créer",
|
||||
"remove": "Supprimer",
|
||||
"paste": "Coller",
|
||||
"connect": "Connecter",
|
||||
"disconnect": "Déconnecter",
|
||||
@@ -44,7 +43,6 @@
|
||||
"settings": "Réglages",
|
||||
"mute": "Muet",
|
||||
"ok": "OK",
|
||||
"loading": "Chargement...",
|
||||
"reconnect": "Reconnecter",
|
||||
"exitConfirmTitle": "Quitter l'application ?",
|
||||
"exitConfirmMessage": "Êtes-vous sûr de vouloir quitter ?",
|
||||
@@ -137,6 +135,8 @@
|
||||
"subtitleStylingDescription": "Personnaliser l'apparence des sous-titres",
|
||||
"smallSkipDuration": "Durée du petit saut",
|
||||
"largeSkipDuration": "Durée du grand saut",
|
||||
"rewindOnResume": "Rembobiner à la reprise",
|
||||
"rewindOnResumeDescription": "Rembobiner de cette durée lors de la reprise de la lecture",
|
||||
"secondsUnit": "${seconds} secondes",
|
||||
"defaultSleepTimer": "Minuterie de mise en veille par défaut",
|
||||
"minutesUnit": "${minutes} minutes",
|
||||
@@ -213,7 +213,9 @@
|
||||
"confirmExitOnBack": "Confirmer avant de quitter",
|
||||
"confirmExitOnBackDescription": "Afficher une boîte de dialogue de confirmation en appuyant sur retour pour quitter",
|
||||
"showNavBarLabels": "Afficher les libellés de la barre de navigation",
|
||||
"showNavBarLabelsDescription": "Afficher les libellés sous les icônes de la barre de navigation"
|
||||
"showNavBarLabelsDescription": "Afficher les libellés sous les icônes de la barre de navigation",
|
||||
"liveTvDefaultFavorites": "Chaînes favorites par défaut",
|
||||
"liveTvDefaultFavoritesDescription": "Afficher uniquement les chaînes favorites à l'ouverture de la TV en direct"
|
||||
},
|
||||
"search": {
|
||||
"hint": "Rechercher des films, des séries, de la musique...",
|
||||
@@ -246,11 +248,6 @@
|
||||
"skipMarker": "Passer l'intro/le générique"
|
||||
}
|
||||
},
|
||||
"pinEntry": {
|
||||
"enterPin": "Entrer le code PIN",
|
||||
"showPin": "Afficher le code PIN",
|
||||
"hidePin": "Masquer le code PIN"
|
||||
},
|
||||
"fileInfo": {
|
||||
"title": "Informations sur le fichier",
|
||||
"video": "Vidéo",
|
||||
@@ -323,7 +320,6 @@
|
||||
"unlockRotation": "Déverrouiller la rotation",
|
||||
"timerActive": "Minuterie active",
|
||||
"playbackWillPauseIn": "La lecture sera mise en pause dans ${duration}",
|
||||
"sleepTimerCompleted": "Minuterie de mise en veille terminée - lecture en pause",
|
||||
"stillWatching": "Toujours en train de regarder ?",
|
||||
"pausingIn": "Pause dans ${seconds}s",
|
||||
"continueWatching": "Continuer",
|
||||
@@ -340,20 +336,20 @@
|
||||
"muteButton": "Mute",
|
||||
"unmuteButton": "Dé-mute",
|
||||
"settingsButton": "Paramètres vidéo",
|
||||
"audioTrackButton": "Pistes audio",
|
||||
"subtitlesButton": "Sous-titres",
|
||||
"tracksButton": "Audio et sous-titres",
|
||||
"chaptersButton": "Chapitres",
|
||||
"versionsButton": "Versions vidéo",
|
||||
"pipButton": "Mode PiP (Picture-in-Picture)",
|
||||
"aspectRatioButton": "Format d'image",
|
||||
"ambientLighting": "Éclairage ambiant",
|
||||
"ambientLightingOn": "Activer l'éclairage ambiant",
|
||||
"ambientLightingOff": "Désactiver l'éclairage ambiant",
|
||||
"fullscreenButton": "Passer en mode plein écran",
|
||||
"exitFullscreenButton": "Quitter le mode plein écran",
|
||||
"alwaysOnTopButton": "Toujours au premier plan",
|
||||
"rotationLockButton": "Verrouillage de rotation",
|
||||
"lockScreen": "Verrouiller l'écran",
|
||||
"unlockScreen": "Déverrouiller l'écran",
|
||||
"screenLockButton": "Verrouillage de l'écran",
|
||||
"longPressToUnlock": "Appui long pour déverrouiller",
|
||||
"timelineSlider": "Timeline vidéo",
|
||||
"volumeSlider": "Niveau sonore",
|
||||
"endsAt": "Fin à ${time}",
|
||||
@@ -453,11 +449,8 @@
|
||||
"overview": "Aperçu",
|
||||
"cast": "Cast",
|
||||
"extras": "Bandes-annonces et Extras",
|
||||
"seasons": "Saisons",
|
||||
"studio": "Studio",
|
||||
"rating": "Évaluation",
|
||||
"episodeCount": "${count} épisodes",
|
||||
"watchedProgress": "${watched}/${total} vu",
|
||||
"movie": "Film",
|
||||
"tvShow": "Show TV",
|
||||
"minutesLeft": "${minutes} min restantes"
|
||||
@@ -550,9 +543,7 @@
|
||||
"logs": {
|
||||
"clearLogs": "Effacer les logs",
|
||||
"copyLogs": "Copier les logs",
|
||||
"uploadLogs": "Envoyer les logs",
|
||||
"error": "Erreur:",
|
||||
"stackTrace": "Liste des appels:"
|
||||
"uploadLogs": "Envoyer les logs"
|
||||
},
|
||||
"licenses": {
|
||||
"relatedPackages": "Package associés",
|
||||
@@ -567,20 +558,12 @@
|
||||
},
|
||||
"liveTv": {
|
||||
"title": "TV en direct",
|
||||
"channels": "Chaînes",
|
||||
"guide": "Guide",
|
||||
"noChannels": "Aucune chaîne disponible",
|
||||
"noDvr": "Aucun DVR configuré sur les serveurs",
|
||||
"tuneFailed": "Impossible de syntoniser la chaîne",
|
||||
"loading": "Chargement des chaînes...",
|
||||
"nowPlaying": "En cours de lecture",
|
||||
"noPrograms": "Aucune donnée de programme disponible",
|
||||
"channelNumber": "Ch. ${number}",
|
||||
"live": "EN DIRECT",
|
||||
"hd": "HD",
|
||||
"premiere": "NOUVEAU",
|
||||
"reloadGuide": "Recharger le guide",
|
||||
"allChannels": "Toutes les chaînes",
|
||||
"now": "Maintenant",
|
||||
"today": "Aujourd'hui",
|
||||
"midnight": "Minuit",
|
||||
@@ -590,7 +573,8 @@
|
||||
"evening": "Soirée",
|
||||
"lateNight": "Nuit tardive",
|
||||
"whatsOn": "En ce moment",
|
||||
"watchChannel": "Regarder la chaîne"
|
||||
"watchChannel": "Regarder la chaîne",
|
||||
"favorites": "Favoris"
|
||||
},
|
||||
"collections": {
|
||||
"title": "Collections",
|
||||
@@ -835,7 +819,6 @@
|
||||
"playerCommand": "Commande",
|
||||
"playerPackage": "Nom du paquet",
|
||||
"playerUrlScheme": "Schéma URL",
|
||||
"customPlayer": "Lecteur personnalisé",
|
||||
"off": "Désactivé",
|
||||
"launchFailed": "Impossible d'ouvrir le lecteur externe",
|
||||
"appNotInstalled": "${name} n'est pas installé",
|
||||
|
||||
+12
-29
@@ -30,7 +30,6 @@
|
||||
"shuffle": "Casuale",
|
||||
"addTo": "Aggiungi a...",
|
||||
"createNew": "Crea",
|
||||
"remove": "Rimuovi",
|
||||
"paste": "Incolla",
|
||||
"connect": "Connetti",
|
||||
"disconnect": "Disconnetti",
|
||||
@@ -44,7 +43,6 @@
|
||||
"settings": "Opzioni",
|
||||
"mute": "Muto",
|
||||
"ok": "OK",
|
||||
"loading": "Caricamento...",
|
||||
"reconnect": "Riconnetti",
|
||||
"exitConfirmTitle": "Uscire dall'app?",
|
||||
"exitConfirmMessage": "Sei sicuro di voler uscire?",
|
||||
@@ -137,6 +135,8 @@
|
||||
"subtitleStylingDescription": "Personalizza l'aspetto dei sottotitoli",
|
||||
"smallSkipDuration": "Durata skip breve",
|
||||
"largeSkipDuration": "Durata skip lungo",
|
||||
"rewindOnResume": "Riavvolgi alla ripresa",
|
||||
"rewindOnResumeDescription": "Riavvolgi di questa quantità alla ripresa della riproduzione",
|
||||
"secondsUnit": "${seconds} secondi",
|
||||
"defaultSleepTimer": "Timer spegnimento predefinito",
|
||||
"minutesUnit": "${minutes} minuti",
|
||||
@@ -213,7 +213,9 @@
|
||||
"confirmExitOnBack": "Conferma prima di uscire",
|
||||
"confirmExitOnBackDescription": "Mostra una finestra di conferma quando si preme indietro per uscire dall'app",
|
||||
"showNavBarLabels": "Mostra etichette barra di navigazione",
|
||||
"showNavBarLabelsDescription": "Mostra le etichette sotto le icone della barra di navigazione"
|
||||
"showNavBarLabelsDescription": "Mostra le etichette sotto le icone della barra di navigazione",
|
||||
"liveTvDefaultFavorites": "Canali preferiti predefiniti",
|
||||
"liveTvDefaultFavoritesDescription": "Mostra solo i canali preferiti all'apertura della TV dal vivo"
|
||||
},
|
||||
"search": {
|
||||
"hint": "Cerca film. spettacoli, musica...",
|
||||
@@ -246,11 +248,6 @@
|
||||
"skipMarker": "Salta intro/titoli di coda"
|
||||
}
|
||||
},
|
||||
"pinEntry": {
|
||||
"enterPin": "Inserisci PIN",
|
||||
"showPin": "Mostra PIN",
|
||||
"hidePin": "Nascondi PIN"
|
||||
},
|
||||
"fileInfo": {
|
||||
"title": "Info sul file",
|
||||
"video": "Video",
|
||||
@@ -323,7 +320,6 @@
|
||||
"unlockRotation": "Sblocca rotazione",
|
||||
"timerActive": "Timer attivo",
|
||||
"playbackWillPauseIn": "La riproduzione si interromperà tra ${duration}",
|
||||
"sleepTimerCompleted": "Timer di spegnimento completato - riproduzione in pausa",
|
||||
"stillWatching": "Stai ancora guardando?",
|
||||
"pausingIn": "Pausa tra ${seconds}s",
|
||||
"continueWatching": "Continua",
|
||||
@@ -340,20 +336,20 @@
|
||||
"muteButton": "Silenzia",
|
||||
"unmuteButton": "Riattiva audio",
|
||||
"settingsButton": "Impostazioni video",
|
||||
"audioTrackButton": "Tracce audio",
|
||||
"subtitlesButton": "Sottotitoli",
|
||||
"tracksButton": "Audio e sottotitoli",
|
||||
"chaptersButton": "Capitoli",
|
||||
"versionsButton": "Versioni video",
|
||||
"pipButton": "Modalità Picture-in-Picture",
|
||||
"aspectRatioButton": "Proporzioni",
|
||||
"ambientLighting": "Illuminazione ambientale",
|
||||
"ambientLightingOn": "Attiva illuminazione ambientale",
|
||||
"ambientLightingOff": "Disattiva illuminazione ambientale",
|
||||
"fullscreenButton": "Attiva schermo intero",
|
||||
"exitFullscreenButton": "Esci da schermo intero",
|
||||
"alwaysOnTopButton": "Sempre in primo piano",
|
||||
"rotationLockButton": "Blocco rotazione",
|
||||
"lockScreen": "Blocca schermo",
|
||||
"unlockScreen": "Sblocca schermo",
|
||||
"screenLockButton": "Blocco schermo",
|
||||
"longPressToUnlock": "Premi a lungo per sbloccare",
|
||||
"timelineSlider": "Timeline video",
|
||||
"volumeSlider": "Livello volume",
|
||||
"endsAt": "Finisce alle ${time}",
|
||||
@@ -453,11 +449,8 @@
|
||||
"overview": "Panoramica",
|
||||
"cast": "Attori",
|
||||
"extras": "Trailer ed Extra",
|
||||
"seasons": "Stagioni",
|
||||
"studio": "Studio",
|
||||
"rating": "Classificazione",
|
||||
"episodeCount": "${count} episodi",
|
||||
"watchedProgress": "${watched}/${total} guardati",
|
||||
"movie": "Film",
|
||||
"tvShow": "Serie TV",
|
||||
"minutesLeft": "${minutes} minuti rimanenti"
|
||||
@@ -550,9 +543,7 @@
|
||||
"logs": {
|
||||
"clearLogs": "Cancella log",
|
||||
"copyLogs": "Copia log",
|
||||
"uploadLogs": "Carica log",
|
||||
"error": "Errore:",
|
||||
"stackTrace": "Traccia dello stack:"
|
||||
"uploadLogs": "Carica log"
|
||||
},
|
||||
"licenses": {
|
||||
"relatedPackages": "Pacchetti correlati",
|
||||
@@ -567,20 +558,12 @@
|
||||
},
|
||||
"liveTv": {
|
||||
"title": "TV in diretta",
|
||||
"channels": "Canali",
|
||||
"guide": "Guida",
|
||||
"noChannels": "Nessun canale disponibile",
|
||||
"noDvr": "Nessun DVR configurato su nessun server",
|
||||
"tuneFailed": "Impossibile sintonizzare il canale",
|
||||
"loading": "Caricamento canali...",
|
||||
"nowPlaying": "In riproduzione",
|
||||
"noPrograms": "Nessun dato di programma disponibile",
|
||||
"channelNumber": "Canale ${number}",
|
||||
"live": "IN DIRETTA",
|
||||
"hd": "HD",
|
||||
"premiere": "NUOVO",
|
||||
"reloadGuide": "Ricarica guida",
|
||||
"allChannels": "Tutti i canali",
|
||||
"now": "Ora",
|
||||
"today": "Oggi",
|
||||
"midnight": "Mezzanotte",
|
||||
@@ -590,7 +573,8 @@
|
||||
"evening": "Sera",
|
||||
"lateNight": "Notte tarda",
|
||||
"whatsOn": "In onda ora",
|
||||
"watchChannel": "Guarda canale"
|
||||
"watchChannel": "Guarda canale",
|
||||
"favorites": "Preferiti"
|
||||
},
|
||||
"downloads": {
|
||||
"title": "Download",
|
||||
@@ -835,7 +819,6 @@
|
||||
"playerCommand": "Comando",
|
||||
"playerPackage": "Nome pacchetto",
|
||||
"playerUrlScheme": "Schema URL",
|
||||
"customPlayer": "Lettore personalizzato",
|
||||
"off": "Disattivato",
|
||||
"launchFailed": "Impossibile aprire il lettore esterno",
|
||||
"appNotInstalled": "${name} non è installato",
|
||||
|
||||
+12
-29
@@ -30,7 +30,6 @@
|
||||
"shuffle": "シャッフル",
|
||||
"addTo": "追加...",
|
||||
"createNew": "新規作成",
|
||||
"remove": "削除",
|
||||
"paste": "貼り付け",
|
||||
"connect": "接続",
|
||||
"disconnect": "切断",
|
||||
@@ -44,7 +43,6 @@
|
||||
"settings": "設定",
|
||||
"mute": "ミュート",
|
||||
"ok": "OK",
|
||||
"loading": "読み込み中...",
|
||||
"reconnect": "再接続",
|
||||
"exitConfirmTitle": "アプリを終了しますか?",
|
||||
"exitConfirmMessage": "終了してもよろしいですか?",
|
||||
@@ -137,6 +135,8 @@
|
||||
"subtitleStylingDescription": "字幕の外観をカスタマイズ",
|
||||
"smallSkipDuration": "短いスキップ時間",
|
||||
"largeSkipDuration": "長いスキップ時間",
|
||||
"rewindOnResume": "再開時に巻き戻し",
|
||||
"rewindOnResumeDescription": "再生再開時にこの秒数分巻き戻す",
|
||||
"secondsUnit": "${seconds}秒",
|
||||
"defaultSleepTimer": "デフォルトスリープタイマー",
|
||||
"minutesUnit": "${minutes}分",
|
||||
@@ -213,7 +213,9 @@
|
||||
"confirmExitOnBack": "終了前に確認",
|
||||
"confirmExitOnBackDescription": "戻るボタンでアプリを終了する際に確認ダイアログを表示",
|
||||
"showNavBarLabels": "ナビゲーションバーラベルを表示",
|
||||
"showNavBarLabelsDescription": "ナビゲーションバーアイコンの下にテキストラベルを表示"
|
||||
"showNavBarLabelsDescription": "ナビゲーションバーアイコンの下にテキストラベルを表示",
|
||||
"liveTvDefaultFavorites": "お気に入りチャンネルをデフォルトに",
|
||||
"liveTvDefaultFavoritesDescription": "ライブTV を開いたときにお気に入りチャンネルのみ表示"
|
||||
},
|
||||
"search": {
|
||||
"hint": "映画、番組、音楽を検索...",
|
||||
@@ -246,11 +248,6 @@
|
||||
"skipMarker": "イントロ/クレジットをスキップ"
|
||||
}
|
||||
},
|
||||
"pinEntry": {
|
||||
"enterPin": "PINを入力",
|
||||
"showPin": "PINを表示",
|
||||
"hidePin": "PINを非表示"
|
||||
},
|
||||
"fileInfo": {
|
||||
"title": "ファイル情報",
|
||||
"video": "映像",
|
||||
@@ -323,7 +320,6 @@
|
||||
"unlockRotation": "回転のロックを解除",
|
||||
"timerActive": "タイマー動作中",
|
||||
"playbackWillPauseIn": "再生は${duration}後に一時停止します",
|
||||
"sleepTimerCompleted": "スリープタイマー完了 - 再生を一時停止しました",
|
||||
"stillWatching": "まだ視聴中ですか?",
|
||||
"pausingIn": "${seconds}秒後に一時停止",
|
||||
"continueWatching": "続ける",
|
||||
@@ -340,20 +336,20 @@
|
||||
"muteButton": "ミュート",
|
||||
"unmuteButton": "ミュート解除",
|
||||
"settingsButton": "動画設定",
|
||||
"audioTrackButton": "音声トラック",
|
||||
"subtitlesButton": "字幕",
|
||||
"tracksButton": "音声と字幕",
|
||||
"chaptersButton": "チャプター",
|
||||
"versionsButton": "動画バージョン",
|
||||
"pipButton": "ピクチャーインピクチャーモード",
|
||||
"aspectRatioButton": "アスペクト比",
|
||||
"ambientLighting": "アンビエントライティング",
|
||||
"ambientLightingOn": "アンビエントライティングを有効化",
|
||||
"ambientLightingOff": "アンビエントライティングを無効化",
|
||||
"fullscreenButton": "フルスクリーンに入る",
|
||||
"exitFullscreenButton": "フルスクリーンを終了",
|
||||
"alwaysOnTopButton": "常に前面に表示",
|
||||
"rotationLockButton": "回転ロック",
|
||||
"lockScreen": "画面をロック",
|
||||
"unlockScreen": "画面のロックを解除",
|
||||
"screenLockButton": "画面ロック",
|
||||
"longPressToUnlock": "長押しでロック解除",
|
||||
"timelineSlider": "動画タイムライン",
|
||||
"volumeSlider": "音量レベル",
|
||||
"endsAt": "${time}に終了",
|
||||
@@ -453,11 +449,8 @@
|
||||
"overview": "あらすじ",
|
||||
"cast": "キャスト",
|
||||
"extras": "予告編とエクストラ",
|
||||
"seasons": "シーズン",
|
||||
"studio": "スタジオ",
|
||||
"rating": "評価",
|
||||
"episodeCount": "${count}エピソード",
|
||||
"watchedProgress": "${watched}/${total}視聴済み",
|
||||
"movie": "映画",
|
||||
"tvShow": "テレビ番組",
|
||||
"minutesLeft": "残り${minutes}分"
|
||||
@@ -550,9 +543,7 @@
|
||||
"logs": {
|
||||
"clearLogs": "ログをクリア",
|
||||
"copyLogs": "ログをコピー",
|
||||
"uploadLogs": "ログをアップロード",
|
||||
"error": "エラー:",
|
||||
"stackTrace": "スタックトレース:"
|
||||
"uploadLogs": "ログをアップロード"
|
||||
},
|
||||
"licenses": {
|
||||
"relatedPackages": "関連パッケージ",
|
||||
@@ -567,20 +558,12 @@
|
||||
},
|
||||
"liveTv": {
|
||||
"title": "ライブTV",
|
||||
"channels": "チャンネル",
|
||||
"guide": "番組表",
|
||||
"noChannels": "チャンネルがありません",
|
||||
"noDvr": "どのサーバーにもDVRが設定されていません",
|
||||
"tuneFailed": "チャンネルのチューニングに失敗しました",
|
||||
"loading": "チャンネルを読み込み中...",
|
||||
"nowPlaying": "現在放送中",
|
||||
"noPrograms": "番組データがありません",
|
||||
"channelNumber": "Ch. ${number}",
|
||||
"live": "ライブ",
|
||||
"hd": "HD",
|
||||
"premiere": "新着",
|
||||
"reloadGuide": "番組表を再読込",
|
||||
"allChannels": "すべてのチャンネル",
|
||||
"now": "現在",
|
||||
"today": "今日",
|
||||
"midnight": "深夜",
|
||||
@@ -590,7 +573,8 @@
|
||||
"evening": "夕方",
|
||||
"lateNight": "深夜",
|
||||
"whatsOn": "放送中",
|
||||
"watchChannel": "チャンネルを視聴"
|
||||
"watchChannel": "チャンネルを視聴",
|
||||
"favorites": "お気に入り"
|
||||
},
|
||||
"collections": {
|
||||
"title": "コレクション",
|
||||
@@ -835,7 +819,6 @@
|
||||
"playerCommand": "コマンド",
|
||||
"playerPackage": "パッケージ名",
|
||||
"playerUrlScheme": "URLスキーム",
|
||||
"customPlayer": "カスタムプレーヤー",
|
||||
"off": "オフ",
|
||||
"launchFailed": "外部プレーヤーの起動に失敗しました",
|
||||
"appNotInstalled": "${name}がインストールされていません",
|
||||
|
||||
+12
-29
@@ -30,7 +30,6 @@
|
||||
"shuffle": "무작위 재생",
|
||||
"addTo": "추가하기...",
|
||||
"createNew": "새로 만들기",
|
||||
"remove": "삭제",
|
||||
"paste": "붙여넣기",
|
||||
"connect": "연결",
|
||||
"disconnect": "연결 해제",
|
||||
@@ -44,7 +43,6 @@
|
||||
"settings": "설정",
|
||||
"mute": "음소거",
|
||||
"ok": "확인",
|
||||
"loading": "로딩 중...",
|
||||
"reconnect": "다시 연결",
|
||||
"exitConfirmTitle": "앱을 종료하시겠습니까?",
|
||||
"exitConfirmMessage": "정말 종료하시겠습니까?",
|
||||
@@ -137,6 +135,8 @@
|
||||
"subtitleStylingDescription": "자막의 외형을 사용자 설정",
|
||||
"smallSkipDuration": "짧은 건너뛰기 시간",
|
||||
"largeSkipDuration": "긴 건너뛰기 시간",
|
||||
"rewindOnResume": "재개 시 되감기",
|
||||
"rewindOnResumeDescription": "재생 재개 시 이 시간만큼 되감기",
|
||||
"secondsUnit": "${seconds}초",
|
||||
"defaultSleepTimer": "기본 취침 타이머",
|
||||
"minutesUnit": "${minutes}분",
|
||||
@@ -213,7 +213,9 @@
|
||||
"confirmExitOnBack": "종료 전 확인",
|
||||
"confirmExitOnBackDescription": "뒤로 버튼을 눌러 앱을 종료할 때 확인 대화상자를 표시합니다",
|
||||
"showNavBarLabels": "내비게이션 바 라벨 표시",
|
||||
"showNavBarLabelsDescription": "내비게이션 바 아이콘 아래에 텍스트 라벨을 표시합니다"
|
||||
"showNavBarLabelsDescription": "내비게이션 바 아이콘 아래에 텍스트 라벨을 표시합니다",
|
||||
"liveTvDefaultFavorites": "즐겨찾기 채널 기본 설정",
|
||||
"liveTvDefaultFavoritesDescription": "라이브 TV를 열 때 즐겨찾기 채널만 표시"
|
||||
},
|
||||
"search": {
|
||||
"hint": "영화, 시리즈, 음악 등을 검색하세요...",
|
||||
@@ -246,11 +248,6 @@
|
||||
"skipMarker": "인트로/크레딧 건너뛰기"
|
||||
}
|
||||
},
|
||||
"pinEntry": {
|
||||
"enterPin": "PIN 입력",
|
||||
"showPin": "PIN 표시",
|
||||
"hidePin": "PIN 숨기기"
|
||||
},
|
||||
"fileInfo": {
|
||||
"title": "파일 정보",
|
||||
"video": "비디오",
|
||||
@@ -323,7 +320,6 @@
|
||||
"unlockRotation": "회전 잠금 해제",
|
||||
"timerActive": "타이머 활성화됨",
|
||||
"playbackWillPauseIn": "재생이 ${duration} 후에 일시 중지 됩니다",
|
||||
"sleepTimerCompleted": "수면 타이머 완료됨 - 재생이 일시 중지되었습니다",
|
||||
"stillWatching": "아직 시청 중이신가요?",
|
||||
"pausingIn": "${seconds}초 후 일시 정지",
|
||||
"continueWatching": "계속",
|
||||
@@ -340,20 +336,20 @@
|
||||
"muteButton": "음소거",
|
||||
"unmuteButton": "음소거 해제",
|
||||
"settingsButton": "동영상 설정",
|
||||
"audioTrackButton": "음원 트랙",
|
||||
"subtitlesButton": "자막",
|
||||
"tracksButton": "오디오 및 자막",
|
||||
"chaptersButton": "챕터",
|
||||
"versionsButton": "동영상 버전",
|
||||
"pipButton": "픽처 인 픽처 모드",
|
||||
"aspectRatioButton": "화면비율",
|
||||
"ambientLighting": "주변 조명",
|
||||
"ambientLightingOn": "주변 조명 켜기",
|
||||
"ambientLightingOff": "주변 조명 끄기",
|
||||
"fullscreenButton": "전체화면",
|
||||
"exitFullscreenButton": "전체화면 종료",
|
||||
"alwaysOnTopButton": "창 최상위 고정",
|
||||
"rotationLockButton": "회전 잠금",
|
||||
"lockScreen": "화면 잠금",
|
||||
"unlockScreen": "화면 잠금 해제",
|
||||
"screenLockButton": "화면 잠금",
|
||||
"longPressToUnlock": "길게 눌러 잠금 해제",
|
||||
"timelineSlider": "타임라인",
|
||||
"volumeSlider": "볼륨 조절",
|
||||
"endsAt": "${time}에 종료",
|
||||
@@ -453,11 +449,8 @@
|
||||
"overview": "개요",
|
||||
"cast": "출연진",
|
||||
"extras": "예고편 및 부가영상",
|
||||
"seasons": "시즌 수",
|
||||
"studio": "제작사",
|
||||
"rating": "연령 등급",
|
||||
"episodeCount": "${count} 편",
|
||||
"watchedProgress": "${watched}/${total} 편 시청 완료",
|
||||
"movie": "영화",
|
||||
"tvShow": "TV 시리즈",
|
||||
"minutesLeft": "${minutes}분 남음"
|
||||
@@ -550,9 +543,7 @@
|
||||
"logs": {
|
||||
"clearLogs": "로그 지우기",
|
||||
"copyLogs": "로그 복사",
|
||||
"uploadLogs": "로그 업로드",
|
||||
"error": "오류:",
|
||||
"stackTrace": "스택 추적 (Stack Trace):"
|
||||
"uploadLogs": "로그 업로드"
|
||||
},
|
||||
"licenses": {
|
||||
"relatedPackages": "관련 소프트웨어 패키지",
|
||||
@@ -567,20 +558,12 @@
|
||||
},
|
||||
"liveTv": {
|
||||
"title": "실시간 TV",
|
||||
"channels": "채널",
|
||||
"guide": "편성표",
|
||||
"noChannels": "사용 가능한 채널이 없습니다",
|
||||
"noDvr": "서버에 DVR이 구성되어 있지 않습니다",
|
||||
"tuneFailed": "채널 튜닝에 실패했습니다",
|
||||
"loading": "채널 로딩 중...",
|
||||
"nowPlaying": "현재 재생 중",
|
||||
"noPrograms": "프로그램 데이터가 없습니다",
|
||||
"channelNumber": "채널 ${number}",
|
||||
"live": "실시간",
|
||||
"hd": "HD",
|
||||
"premiere": "신규",
|
||||
"reloadGuide": "편성표 새로고침",
|
||||
"allChannels": "전체 채널",
|
||||
"now": "지금",
|
||||
"today": "오늘",
|
||||
"midnight": "자정",
|
||||
@@ -590,7 +573,8 @@
|
||||
"evening": "저녁",
|
||||
"lateNight": "심야 방송",
|
||||
"whatsOn": "지금 방송 중",
|
||||
"watchChannel": "채널 시청"
|
||||
"watchChannel": "채널 시청",
|
||||
"favorites": "즐겨찾기"
|
||||
},
|
||||
"collections": {
|
||||
"title": "컬렉션",
|
||||
@@ -835,7 +819,6 @@
|
||||
"playerCommand": "명령어",
|
||||
"playerPackage": "패키지 이름",
|
||||
"playerUrlScheme": "URL 스킴",
|
||||
"customPlayer": "사용자 정의 플레이어",
|
||||
"off": "꺼짐",
|
||||
"launchFailed": "외부 플레이어를 열 수 없습니다",
|
||||
"appNotInstalled": "${name}이(가) 설치되어 있지 않습니다",
|
||||
|
||||
+12
-29
@@ -30,7 +30,6 @@
|
||||
"shuffle": "Tilfeldig",
|
||||
"addTo": "Legg til i...",
|
||||
"createNew": "Opprett ny",
|
||||
"remove": "Fjern",
|
||||
"paste": "Lim inn",
|
||||
"connect": "Koble til",
|
||||
"disconnect": "Koble fra",
|
||||
@@ -44,7 +43,6 @@
|
||||
"settings": "Innstillinger",
|
||||
"mute": "Demp",
|
||||
"ok": "OK",
|
||||
"loading": "Laster...",
|
||||
"reconnect": "Koble til på nytt",
|
||||
"exitConfirmTitle": "Avslutte appen?",
|
||||
"exitConfirmMessage": "Er du sikker på at du vil avslutte?",
|
||||
@@ -137,6 +135,8 @@
|
||||
"subtitleStylingDescription": "Tilpass utseendet på undertekster",
|
||||
"smallSkipDuration": "Kort hoppvarighet",
|
||||
"largeSkipDuration": "Lang hoppvarighet",
|
||||
"rewindOnResume": "Spol tilbake ved gjenopptakelse",
|
||||
"rewindOnResumeDescription": "Spol tilbake med denne mengden ved gjenopptakelse av avspilling",
|
||||
"secondsUnit": "${seconds} sekunder",
|
||||
"defaultSleepTimer": "Standard søvntimer",
|
||||
"minutesUnit": "${minutes} minutter",
|
||||
@@ -213,7 +213,9 @@
|
||||
"confirmExitOnBack": "Bekreft før avslutning",
|
||||
"confirmExitOnBackDescription": "Vis en bekreftelsesdialog når du trykker tilbake for å avslutte appen",
|
||||
"showNavBarLabels": "Vis navigasjonsfeltlabeler",
|
||||
"showNavBarLabelsDescription": "Vis tekstlabeler under navigasjonsfeltikoner"
|
||||
"showNavBarLabelsDescription": "Vis tekstlabeler under navigasjonsfeltikoner",
|
||||
"liveTvDefaultFavorites": "Standard til favorittkanaler",
|
||||
"liveTvDefaultFavoritesDescription": "Vis kun favorittkanaler når du åpner Live TV"
|
||||
},
|
||||
"search": {
|
||||
"hint": "Søk i filmer, serier, musikk...",
|
||||
@@ -246,11 +248,6 @@
|
||||
"skipMarker": "Hopp over intro/rulletekst"
|
||||
}
|
||||
},
|
||||
"pinEntry": {
|
||||
"enterPin": "Skriv inn PIN",
|
||||
"showPin": "Vis PIN",
|
||||
"hidePin": "Skjul PIN"
|
||||
},
|
||||
"fileInfo": {
|
||||
"title": "Filinformasjon",
|
||||
"video": "Video",
|
||||
@@ -323,7 +320,6 @@
|
||||
"unlockRotation": "Lås opp rotasjon",
|
||||
"timerActive": "Timer aktiv",
|
||||
"playbackWillPauseIn": "Avspilling vil pause om ${duration}",
|
||||
"sleepTimerCompleted": "Søvntimer fullført – avspilling satt på pause",
|
||||
"stillWatching": "Ser du fortsatt?",
|
||||
"pausingIn": "Pauser om ${seconds}s",
|
||||
"continueWatching": "Fortsett",
|
||||
@@ -340,20 +336,20 @@
|
||||
"muteButton": "Demp",
|
||||
"unmuteButton": "Opphev demping",
|
||||
"settingsButton": "Videoinnstillinger",
|
||||
"audioTrackButton": "Lydspor",
|
||||
"subtitlesButton": "Undertekster",
|
||||
"tracksButton": "Lyd og undertekster",
|
||||
"chaptersButton": "Kapitler",
|
||||
"versionsButton": "Videoversjoner",
|
||||
"pipButton": "Bilde-i-bilde-modus",
|
||||
"aspectRatioButton": "Sideforhold",
|
||||
"ambientLighting": "Omgivelseslys",
|
||||
"ambientLightingOn": "Aktiver omgivelseslys",
|
||||
"ambientLightingOff": "Deaktiver omgivelseslys",
|
||||
"fullscreenButton": "Gå til fullskjerm",
|
||||
"exitFullscreenButton": "Avslutt fullskjerm",
|
||||
"alwaysOnTopButton": "Alltid øverst",
|
||||
"rotationLockButton": "Rotasjonslås",
|
||||
"lockScreen": "Lås skjerm",
|
||||
"unlockScreen": "Lås opp skjerm",
|
||||
"screenLockButton": "Skjermlås",
|
||||
"longPressToUnlock": "Langt trykk for å låse opp",
|
||||
"timelineSlider": "Videotidslinje",
|
||||
"volumeSlider": "Volumnivå",
|
||||
"endsAt": "Slutter kl. ${time}",
|
||||
@@ -453,11 +449,8 @@
|
||||
"overview": "Oversikt",
|
||||
"cast": "Skuespillere",
|
||||
"extras": "Trailere og ekstra",
|
||||
"seasons": "Sesonger",
|
||||
"studio": "Studio",
|
||||
"rating": "Vurdering",
|
||||
"episodeCount": "${count} episoder",
|
||||
"watchedProgress": "${watched}/${total} sett",
|
||||
"movie": "Film",
|
||||
"tvShow": "TV-serie",
|
||||
"minutesLeft": "${minutes} min igjen"
|
||||
@@ -550,9 +543,7 @@
|
||||
"logs": {
|
||||
"clearLogs": "Tøm logger",
|
||||
"copyLogs": "Kopier logger",
|
||||
"uploadLogs": "Last opp logger",
|
||||
"error": "Feil:",
|
||||
"stackTrace": "Stabelsporing:"
|
||||
"uploadLogs": "Last opp logger"
|
||||
},
|
||||
"licenses": {
|
||||
"relatedPackages": "Relaterte pakker",
|
||||
@@ -567,20 +558,12 @@
|
||||
},
|
||||
"liveTv": {
|
||||
"title": "Direkte-TV",
|
||||
"channels": "Kanaler",
|
||||
"guide": "Programguide",
|
||||
"noChannels": "Ingen kanaler tilgjengelig",
|
||||
"noDvr": "Ingen DVR konfigurert på noen server",
|
||||
"tuneFailed": "Kunne ikke stille inn kanal",
|
||||
"loading": "Laster kanaler...",
|
||||
"nowPlaying": "Spilles nå",
|
||||
"noPrograms": "Ingen programdata tilgjengelig",
|
||||
"channelNumber": "Kanal ${number}",
|
||||
"live": "DIREKTE",
|
||||
"hd": "HD",
|
||||
"premiere": "NY",
|
||||
"reloadGuide": "Last inn programguide på nytt",
|
||||
"allChannels": "Alle kanaler",
|
||||
"now": "Nå",
|
||||
"today": "I dag",
|
||||
"midnight": "Midnatt",
|
||||
@@ -590,7 +573,8 @@
|
||||
"evening": "Kveld",
|
||||
"lateNight": "Sen kveld",
|
||||
"whatsOn": "Hva går nå",
|
||||
"watchChannel": "Se kanal"
|
||||
"watchChannel": "Se kanal",
|
||||
"favorites": "Favoritter"
|
||||
},
|
||||
"collections": {
|
||||
"title": "Samlinger",
|
||||
@@ -835,7 +819,6 @@
|
||||
"playerCommand": "Kommando",
|
||||
"playerPackage": "Pakkenavn",
|
||||
"playerUrlScheme": "URL-skjema",
|
||||
"customPlayer": "Egendefinert spiller",
|
||||
"off": "Av",
|
||||
"launchFailed": "Kunne ikke åpne ekstern spiller",
|
||||
"appNotInstalled": "${name} er ikke installert",
|
||||
|
||||
+12
-29
@@ -30,7 +30,6 @@
|
||||
"shuffle": "Willekeurig",
|
||||
"addTo": "Toevoegen aan...",
|
||||
"createNew": "Nieuw aanmaken",
|
||||
"remove": "Verwijderen",
|
||||
"paste": "Plakken",
|
||||
"connect": "Verbinden",
|
||||
"disconnect": "Verbinding verbreken",
|
||||
@@ -44,7 +43,6 @@
|
||||
"settings": "Opties",
|
||||
"mute": "Dempen",
|
||||
"ok": "OK",
|
||||
"loading": "Laden...",
|
||||
"reconnect": "Opnieuw verbinden",
|
||||
"exitConfirmTitle": "App afsluiten?",
|
||||
"exitConfirmMessage": "Weet je zeker dat je wilt afsluiten?",
|
||||
@@ -137,6 +135,8 @@
|
||||
"subtitleStylingDescription": "Pas ondertitel uiterlijk aan",
|
||||
"smallSkipDuration": "Korte skip duur",
|
||||
"largeSkipDuration": "Lange skip duur",
|
||||
"rewindOnResume": "Terugspoelen bij hervatten",
|
||||
"rewindOnResumeDescription": "Spoel dit aantal seconden terug bij het hervatten van afspelen",
|
||||
"secondsUnit": "${seconds} seconden",
|
||||
"defaultSleepTimer": "Standaard slaap timer",
|
||||
"minutesUnit": "bij ${minutes} minuten",
|
||||
@@ -213,7 +213,9 @@
|
||||
"confirmExitOnBack": "Bevestigen voor afsluiten",
|
||||
"confirmExitOnBackDescription": "Toon een bevestigingsvenster bij het drukken op terug om de app af te sluiten",
|
||||
"showNavBarLabels": "Navigatiebalk labels tonen",
|
||||
"showNavBarLabelsDescription": "Tekstlabels onder de pictogrammen van de navigatiebalk weergeven"
|
||||
"showNavBarLabelsDescription": "Tekstlabels onder de pictogrammen van de navigatiebalk weergeven",
|
||||
"liveTvDefaultFavorites": "Standaard favoriete zenders",
|
||||
"liveTvDefaultFavoritesDescription": "Toon alleen favoriete zenders bij het openen van Live TV"
|
||||
},
|
||||
"search": {
|
||||
"hint": "Zoek films, series, muziek...",
|
||||
@@ -246,11 +248,6 @@
|
||||
"skipMarker": "Intro/aftiteling overslaan"
|
||||
}
|
||||
},
|
||||
"pinEntry": {
|
||||
"enterPin": "Voer PIN in",
|
||||
"showPin": "Toon PIN",
|
||||
"hidePin": "Verberg PIN"
|
||||
},
|
||||
"fileInfo": {
|
||||
"title": "Bestand info",
|
||||
"video": "Video",
|
||||
@@ -323,7 +320,6 @@
|
||||
"unlockRotation": "Ontgrendel rotatie",
|
||||
"timerActive": "Timer actief",
|
||||
"playbackWillPauseIn": "Afspelen wordt gepauzeerd over ${duration}",
|
||||
"sleepTimerCompleted": "Slaaptimer voltooid - afspelen gepauzeerd",
|
||||
"stillWatching": "Kijk je nog?",
|
||||
"pausingIn": "Pauze over ${seconds}s",
|
||||
"continueWatching": "Doorgaan",
|
||||
@@ -340,20 +336,20 @@
|
||||
"muteButton": "Dempen",
|
||||
"unmuteButton": "Dempen opheffen",
|
||||
"settingsButton": "Video-instellingen",
|
||||
"audioTrackButton": "Audiosporen",
|
||||
"subtitlesButton": "Ondertitels",
|
||||
"tracksButton": "Audio en ondertitels",
|
||||
"chaptersButton": "Hoofdstukken",
|
||||
"versionsButton": "Videoversies",
|
||||
"pipButton": "Beeld-in-beeld modus",
|
||||
"aspectRatioButton": "Beeldverhouding",
|
||||
"ambientLighting": "Omgevingsverlichting",
|
||||
"ambientLightingOn": "Omgevingsverlichting inschakelen",
|
||||
"ambientLightingOff": "Omgevingsverlichting uitschakelen",
|
||||
"fullscreenButton": "Volledig scherm activeren",
|
||||
"exitFullscreenButton": "Volledig scherm verlaten",
|
||||
"alwaysOnTopButton": "Altijd bovenop",
|
||||
"rotationLockButton": "Rotatievergrendeling",
|
||||
"lockScreen": "Vergrendel scherm",
|
||||
"unlockScreen": "Ontgrendel scherm",
|
||||
"screenLockButton": "Schermvergrendeling",
|
||||
"longPressToUnlock": "Lang indrukken om te ontgrendelen",
|
||||
"timelineSlider": "Videotijdlijn",
|
||||
"volumeSlider": "Volumeniveau",
|
||||
"endsAt": "Eindigt om ${time}",
|
||||
@@ -453,11 +449,8 @@
|
||||
"overview": "Overzicht",
|
||||
"cast": "Acteurs",
|
||||
"extras": "Trailers & Extra's",
|
||||
"seasons": "Seizoenen",
|
||||
"studio": "Studio",
|
||||
"rating": "Leeftijd",
|
||||
"episodeCount": "${count} afleveringen",
|
||||
"watchedProgress": "${watched}/${total} gekeken",
|
||||
"movie": "Film",
|
||||
"tvShow": "TV Serie",
|
||||
"minutesLeft": "${minutes} min over"
|
||||
@@ -550,9 +543,7 @@
|
||||
"logs": {
|
||||
"clearLogs": "Wis logs",
|
||||
"copyLogs": "Kopieer logs",
|
||||
"uploadLogs": "Logs uploaden",
|
||||
"error": "Fout:",
|
||||
"stackTrace": "Stacktracering:"
|
||||
"uploadLogs": "Logs uploaden"
|
||||
},
|
||||
"licenses": {
|
||||
"relatedPackages": "Gerelateerde pakketten",
|
||||
@@ -567,20 +558,12 @@
|
||||
},
|
||||
"liveTv": {
|
||||
"title": "Live TV",
|
||||
"channels": "Zenders",
|
||||
"guide": "Gids",
|
||||
"noChannels": "Geen zenders beschikbaar",
|
||||
"noDvr": "Geen DVR geconfigureerd op een server",
|
||||
"tuneFailed": "Kan zender niet afstemmen",
|
||||
"loading": "Zenders laden...",
|
||||
"nowPlaying": "Nu aan het afspelen",
|
||||
"noPrograms": "Geen programmagegevens beschikbaar",
|
||||
"channelNumber": "Kanaal ${number}",
|
||||
"live": "LIVE",
|
||||
"hd": "HD",
|
||||
"premiere": "NIEUW",
|
||||
"reloadGuide": "Gids herladen",
|
||||
"allChannels": "Alle zenders",
|
||||
"now": "Nu",
|
||||
"today": "Vandaag",
|
||||
"midnight": "Middernacht",
|
||||
@@ -590,7 +573,8 @@
|
||||
"evening": "Avond",
|
||||
"lateNight": "Late avond",
|
||||
"whatsOn": "Nu op TV",
|
||||
"watchChannel": "Kanaal bekijken"
|
||||
"watchChannel": "Kanaal bekijken",
|
||||
"favorites": "Favorieten"
|
||||
},
|
||||
"downloads": {
|
||||
"title": "Downloads",
|
||||
@@ -835,7 +819,6 @@
|
||||
"playerCommand": "Commando",
|
||||
"playerPackage": "Pakketnaam",
|
||||
"playerUrlScheme": "URL-schema",
|
||||
"customPlayer": "Aangepaste speler",
|
||||
"off": "Uit",
|
||||
"launchFailed": "Kan externe speler niet openen",
|
||||
"appNotInstalled": "${name} is niet geïnstalleerd",
|
||||
|
||||
+12
-29
@@ -30,7 +30,6 @@
|
||||
"shuffle": "Losowo",
|
||||
"addTo": "Dodaj do...",
|
||||
"createNew": "Utwórz nowy",
|
||||
"remove": "Usuń",
|
||||
"paste": "Wklej",
|
||||
"connect": "Połącz",
|
||||
"disconnect": "Rozłącz",
|
||||
@@ -44,7 +43,6 @@
|
||||
"settings": "Ustawienia",
|
||||
"mute": "Wycisz",
|
||||
"ok": "OK",
|
||||
"loading": "Ładowanie...",
|
||||
"reconnect": "Połącz ponownie",
|
||||
"exitConfirmTitle": "Zamknąć aplikację?",
|
||||
"exitConfirmMessage": "Czy na pewno chcesz wyjść?",
|
||||
@@ -137,6 +135,8 @@
|
||||
"subtitleStylingDescription": "Dostosuj wygląd napisów",
|
||||
"smallSkipDuration": "Krótki skok",
|
||||
"largeSkipDuration": "Długi skok",
|
||||
"rewindOnResume": "Przewiń przy wznowieniu",
|
||||
"rewindOnResumeDescription": "Przewiń o tę wartość przy wznawianiu odtwarzania",
|
||||
"secondsUnit": "${seconds} sekund",
|
||||
"defaultSleepTimer": "Domyślny wyłącznik czasowy",
|
||||
"minutesUnit": "${minutes} minut",
|
||||
@@ -213,7 +213,9 @@
|
||||
"confirmExitOnBack": "Potwierdź przed wyjściem",
|
||||
"confirmExitOnBackDescription": "Pokaż dialog potwierdzenia przy naciśnięciu wstecz, aby wyjść z aplikacji",
|
||||
"showNavBarLabels": "Pokaż etykiety paska nawigacji",
|
||||
"showNavBarLabelsDescription": "Wyświetl tekstowe etykiety pod ikonami paska nawigacji"
|
||||
"showNavBarLabelsDescription": "Wyświetl tekstowe etykiety pod ikonami paska nawigacji",
|
||||
"liveTvDefaultFavorites": "Domyślnie ulubione kanały",
|
||||
"liveTvDefaultFavoritesDescription": "Pokaż tylko ulubione kanały po otwarciu telewizji na żywo"
|
||||
},
|
||||
"search": {
|
||||
"hint": "Szukaj filmów, seriali, muzyki...",
|
||||
@@ -246,11 +248,6 @@
|
||||
"skipMarker": "Pomiń intro/napisy końcowe"
|
||||
}
|
||||
},
|
||||
"pinEntry": {
|
||||
"enterPin": "Wprowadź PIN",
|
||||
"showPin": "Pokaż PIN",
|
||||
"hidePin": "Ukryj PIN"
|
||||
},
|
||||
"fileInfo": {
|
||||
"title": "Informacje o pliku",
|
||||
"video": "Wideo",
|
||||
@@ -323,7 +320,6 @@
|
||||
"unlockRotation": "Odblokuj obrót",
|
||||
"timerActive": "Wyłącznik aktywny",
|
||||
"playbackWillPauseIn": "Odtwarzanie zatrzyma się za ${duration}",
|
||||
"sleepTimerCompleted": "Wyłącznik czasowy zakończony — odtwarzanie wstrzymane",
|
||||
"stillWatching": "Nadal oglądasz?",
|
||||
"pausingIn": "Pauza za ${seconds}s",
|
||||
"continueWatching": "Kontynuuj",
|
||||
@@ -340,20 +336,20 @@
|
||||
"muteButton": "Wycisz",
|
||||
"unmuteButton": "Wyłącz wyciszenie",
|
||||
"settingsButton": "Ustawienia wideo",
|
||||
"audioTrackButton": "Ścieżki audio",
|
||||
"subtitlesButton": "Napisy",
|
||||
"tracksButton": "Audio i napisy",
|
||||
"chaptersButton": "Rozdziały",
|
||||
"versionsButton": "Wersje wideo",
|
||||
"pipButton": "Tryb obraz w obrazie",
|
||||
"aspectRatioButton": "Proporcje",
|
||||
"ambientLighting": "Oświetlenie otoczenia",
|
||||
"ambientLightingOn": "Włącz oświetlenie otoczenia",
|
||||
"ambientLightingOff": "Wyłącz oświetlenie otoczenia",
|
||||
"fullscreenButton": "Wejdź w pełny ekran",
|
||||
"exitFullscreenButton": "Wyjdź z pełnego ekranu",
|
||||
"alwaysOnTopButton": "Zawsze na wierzchu",
|
||||
"rotationLockButton": "Blokada obrotu",
|
||||
"lockScreen": "Zablokuj ekran",
|
||||
"unlockScreen": "Odblokuj ekran",
|
||||
"screenLockButton": "Blokada ekranu",
|
||||
"longPressToUnlock": "Przytrzymaj, aby odblokować",
|
||||
"timelineSlider": "Oś czasu wideo",
|
||||
"volumeSlider": "Poziom głośności",
|
||||
"endsAt": "Kończy się o ${time}",
|
||||
@@ -453,11 +449,8 @@
|
||||
"overview": "Opis",
|
||||
"cast": "Obsada",
|
||||
"extras": "Zwiastuny i dodatki",
|
||||
"seasons": "Sezony",
|
||||
"studio": "Studio",
|
||||
"rating": "Ocena",
|
||||
"episodeCount": "${count} odcinków",
|
||||
"watchedProgress": "${watched}/${total} obejrzanych",
|
||||
"movie": "Film",
|
||||
"tvShow": "Serial TV",
|
||||
"minutesLeft": "${minutes} min pozostało"
|
||||
@@ -550,9 +543,7 @@
|
||||
"logs": {
|
||||
"clearLogs": "Wyczyść logi",
|
||||
"copyLogs": "Kopiuj logi",
|
||||
"uploadLogs": "Prześlij logi",
|
||||
"error": "Błąd:",
|
||||
"stackTrace": "Ślad stosu:"
|
||||
"uploadLogs": "Prześlij logi"
|
||||
},
|
||||
"licenses": {
|
||||
"relatedPackages": "Powiązane pakiety",
|
||||
@@ -567,20 +558,12 @@
|
||||
},
|
||||
"liveTv": {
|
||||
"title": "TV na żywo",
|
||||
"channels": "Kanały",
|
||||
"guide": "Przewodnik",
|
||||
"noChannels": "Brak dostępnych kanałów",
|
||||
"noDvr": "Brak skonfigurowanego DVR na żadnym serwerze",
|
||||
"tuneFailed": "Nie udało się dostroić kanału",
|
||||
"loading": "Ładowanie kanałów...",
|
||||
"nowPlaying": "Teraz odtwarzane",
|
||||
"noPrograms": "Brak danych o programach",
|
||||
"channelNumber": "Kn. ${number}",
|
||||
"live": "NA ŻYWO",
|
||||
"hd": "HD",
|
||||
"premiere": "NOWE",
|
||||
"reloadGuide": "Odśwież przewodnik",
|
||||
"allChannels": "Wszystkie kanały",
|
||||
"now": "Teraz",
|
||||
"today": "Dzisiaj",
|
||||
"midnight": "Północ",
|
||||
@@ -590,7 +573,8 @@
|
||||
"evening": "Wieczorem",
|
||||
"lateNight": "Późna noc",
|
||||
"whatsOn": "Co leci",
|
||||
"watchChannel": "Oglądaj kanał"
|
||||
"watchChannel": "Oglądaj kanał",
|
||||
"favorites": "Ulubione"
|
||||
},
|
||||
"collections": {
|
||||
"title": "Kolekcje",
|
||||
@@ -835,7 +819,6 @@
|
||||
"playerCommand": "Polecenie",
|
||||
"playerPackage": "Nazwa pakietu",
|
||||
"playerUrlScheme": "Schemat URL",
|
||||
"customPlayer": "Niestandardowy odtwarzacz",
|
||||
"off": "Wyłączony",
|
||||
"launchFailed": "Nie udało się otworzyć zewnętrznego odtwarzacza",
|
||||
"appNotInstalled": "${name} nie jest zainstalowany",
|
||||
|
||||
+12
-29
@@ -30,7 +30,6 @@
|
||||
"shuffle": "Aleatório",
|
||||
"addTo": "Adicionar a...",
|
||||
"createNew": "Criar novo",
|
||||
"remove": "Remover",
|
||||
"paste": "Colar",
|
||||
"connect": "Conectar",
|
||||
"disconnect": "Desconectar",
|
||||
@@ -44,7 +43,6 @@
|
||||
"settings": "Configurações",
|
||||
"mute": "Silenciar",
|
||||
"ok": "OK",
|
||||
"loading": "Carregando...",
|
||||
"reconnect": "Reconectar",
|
||||
"exitConfirmTitle": "Sair do app?",
|
||||
"exitConfirmMessage": "Tem certeza que deseja sair?",
|
||||
@@ -137,6 +135,8 @@
|
||||
"subtitleStylingDescription": "Personalizar aparência das legendas",
|
||||
"smallSkipDuration": "Duração do Avanço Curto",
|
||||
"largeSkipDuration": "Duração do Avanço Longo",
|
||||
"rewindOnResume": "Rebobinar ao retomar",
|
||||
"rewindOnResumeDescription": "Rebobinar esta quantidade ao retomar a reprodução",
|
||||
"secondsUnit": "${seconds} segundos",
|
||||
"defaultSleepTimer": "Timer de Sono Padrão",
|
||||
"minutesUnit": "${minutes} minutos",
|
||||
@@ -213,7 +213,9 @@
|
||||
"confirmExitOnBack": "Confirmar antes de sair",
|
||||
"confirmExitOnBackDescription": "Mostrar diálogo de confirmação ao pressionar voltar para sair do app",
|
||||
"showNavBarLabels": "Mostrar Rótulos da Barra de Navegação",
|
||||
"showNavBarLabelsDescription": "Exibir rótulos de texto sob os ícones da barra de navegação"
|
||||
"showNavBarLabelsDescription": "Exibir rótulos de texto sob os ícones da barra de navegação",
|
||||
"liveTvDefaultFavorites": "Canais favoritos por padrão",
|
||||
"liveTvDefaultFavoritesDescription": "Mostrar apenas canais favoritos ao abrir TV ao vivo"
|
||||
},
|
||||
"search": {
|
||||
"hint": "Buscar filmes, séries, músicas...",
|
||||
@@ -246,11 +248,6 @@
|
||||
"skipMarker": "Pular Intro/Créditos"
|
||||
}
|
||||
},
|
||||
"pinEntry": {
|
||||
"enterPin": "Inserir PIN",
|
||||
"showPin": "Mostrar PIN",
|
||||
"hidePin": "Ocultar PIN"
|
||||
},
|
||||
"fileInfo": {
|
||||
"title": "Info do Arquivo",
|
||||
"video": "Vídeo",
|
||||
@@ -323,7 +320,6 @@
|
||||
"unlockRotation": "Destravar rotação",
|
||||
"timerActive": "Timer Ativo",
|
||||
"playbackWillPauseIn": "A reprodução pausará em ${duration}",
|
||||
"sleepTimerCompleted": "Timer de sono concluído - reprodução pausada",
|
||||
"stillWatching": "Ainda assistindo?",
|
||||
"pausingIn": "Pausando em ${seconds}s",
|
||||
"continueWatching": "Continuar",
|
||||
@@ -340,20 +336,20 @@
|
||||
"muteButton": "Silenciar",
|
||||
"unmuteButton": "Ativar som",
|
||||
"settingsButton": "Configurações de vídeo",
|
||||
"audioTrackButton": "Faixas de áudio",
|
||||
"subtitlesButton": "Legendas",
|
||||
"tracksButton": "Áudio e Legendas",
|
||||
"chaptersButton": "Capítulos",
|
||||
"versionsButton": "Versões do vídeo",
|
||||
"pipButton": "Modo Picture-in-Picture",
|
||||
"aspectRatioButton": "Proporção",
|
||||
"ambientLighting": "Iluminação ambiente",
|
||||
"ambientLightingOn": "Ativar iluminação ambiente",
|
||||
"ambientLightingOff": "Desativar iluminação ambiente",
|
||||
"fullscreenButton": "Entrar em tela cheia",
|
||||
"exitFullscreenButton": "Sair da tela cheia",
|
||||
"alwaysOnTopButton": "Sempre no topo",
|
||||
"rotationLockButton": "Travar rotação",
|
||||
"lockScreen": "Travar tela",
|
||||
"unlockScreen": "Destravar tela",
|
||||
"screenLockButton": "Travar tela",
|
||||
"longPressToUnlock": "Pressione e segure para destravar",
|
||||
"timelineSlider": "Linha do tempo do vídeo",
|
||||
"volumeSlider": "Nível de volume",
|
||||
"endsAt": "Termina às ${time}",
|
||||
@@ -453,11 +449,8 @@
|
||||
"overview": "Sinopse",
|
||||
"cast": "Elenco",
|
||||
"extras": "Trailers e Extras",
|
||||
"seasons": "Temporadas",
|
||||
"studio": "Estúdio",
|
||||
"rating": "Avaliação",
|
||||
"episodeCount": "${count} episódios",
|
||||
"watchedProgress": "${watched}/${total} assistidos",
|
||||
"movie": "Filme",
|
||||
"tvShow": "Série de TV",
|
||||
"minutesLeft": "${minutes} min restantes"
|
||||
@@ -550,9 +543,7 @@
|
||||
"logs": {
|
||||
"clearLogs": "Limpar Logs",
|
||||
"copyLogs": "Copiar Logs",
|
||||
"uploadLogs": "Enviar Logs",
|
||||
"error": "Erro:",
|
||||
"stackTrace": "Stack Trace:"
|
||||
"uploadLogs": "Enviar Logs"
|
||||
},
|
||||
"licenses": {
|
||||
"relatedPackages": "Pacotes Relacionados",
|
||||
@@ -567,20 +558,12 @@
|
||||
},
|
||||
"liveTv": {
|
||||
"title": "TV ao Vivo",
|
||||
"channels": "Canais",
|
||||
"guide": "Guia",
|
||||
"noChannels": "Nenhum canal disponível",
|
||||
"noDvr": "Nenhum DVR configurado em nenhum servidor",
|
||||
"tuneFailed": "Falha ao sintonizar canal",
|
||||
"loading": "Carregando canais...",
|
||||
"nowPlaying": "Reproduzindo Agora",
|
||||
"noPrograms": "Nenhum dado de programação disponível",
|
||||
"channelNumber": "Ch. ${number}",
|
||||
"live": "AO VIVO",
|
||||
"hd": "HD",
|
||||
"premiere": "NOVO",
|
||||
"reloadGuide": "Recarregar Guia",
|
||||
"allChannels": "Todos os Canais",
|
||||
"now": "Agora",
|
||||
"today": "Hoje",
|
||||
"midnight": "Meia-noite",
|
||||
@@ -590,7 +573,8 @@
|
||||
"evening": "Noite",
|
||||
"lateNight": "Madrugada",
|
||||
"whatsOn": "O que Está Passando",
|
||||
"watchChannel": "Assistir Canal"
|
||||
"watchChannel": "Assistir Canal",
|
||||
"favorites": "Favoritos"
|
||||
},
|
||||
"collections": {
|
||||
"title": "Coleções",
|
||||
@@ -835,7 +819,6 @@
|
||||
"playerCommand": "Comando",
|
||||
"playerPackage": "Nome do Pacote",
|
||||
"playerUrlScheme": "Esquema de URL",
|
||||
"customPlayer": "Player Personalizado",
|
||||
"off": "Desativado",
|
||||
"launchFailed": "Falha ao abrir player externo",
|
||||
"appNotInstalled": "${name} não está instalado",
|
||||
|
||||
+12
-29
@@ -30,7 +30,6 @@
|
||||
"shuffle": "Перемешать",
|
||||
"addTo": "Добавить в...",
|
||||
"createNew": "Создать новый",
|
||||
"remove": "Удалить",
|
||||
"paste": "Вставить",
|
||||
"connect": "Подключить",
|
||||
"disconnect": "Отключить",
|
||||
@@ -44,7 +43,6 @@
|
||||
"settings": "Настройки",
|
||||
"mute": "Без звука",
|
||||
"ok": "OK",
|
||||
"loading": "Загрузка...",
|
||||
"reconnect": "Переподключить",
|
||||
"exitConfirmTitle": "Выйти из приложения?",
|
||||
"exitConfirmMessage": "Вы уверены, что хотите выйти?",
|
||||
@@ -137,6 +135,8 @@
|
||||
"subtitleStylingDescription": "Настроить внешний вид субтитров",
|
||||
"smallSkipDuration": "Малая перемотка",
|
||||
"largeSkipDuration": "Большая перемотка",
|
||||
"rewindOnResume": "Перемотка при возобновлении",
|
||||
"rewindOnResumeDescription": "Перемотать на это количество секунд при возобновлении воспроизведения",
|
||||
"secondsUnit": "${seconds} секунд",
|
||||
"defaultSleepTimer": "Таймер сна по умолчанию",
|
||||
"minutesUnit": "${minutes} минут",
|
||||
@@ -213,7 +213,9 @@
|
||||
"confirmExitOnBack": "Подтверждать выход",
|
||||
"confirmExitOnBackDescription": "Показывать диалог подтверждения при нажатии «назад» для выхода из приложения",
|
||||
"showNavBarLabels": "Показывать подписи панели навигации",
|
||||
"showNavBarLabelsDescription": "Отображать текстовые подписи под иконками панели навигации"
|
||||
"showNavBarLabelsDescription": "Отображать текстовые подписи под иконками панели навигации",
|
||||
"liveTvDefaultFavorites": "Избранные каналы по умолчанию",
|
||||
"liveTvDefaultFavoritesDescription": "Показывать только избранные каналы при открытии ТВ"
|
||||
},
|
||||
"search": {
|
||||
"hint": "Поиск фильмов, сериалов, музыки...",
|
||||
@@ -246,11 +248,6 @@
|
||||
"skipMarker": "Пропустить вступление/титры"
|
||||
}
|
||||
},
|
||||
"pinEntry": {
|
||||
"enterPin": "Введите PIN",
|
||||
"showPin": "Показать PIN",
|
||||
"hidePin": "Скрыть PIN"
|
||||
},
|
||||
"fileInfo": {
|
||||
"title": "Информация о файле",
|
||||
"video": "Видео",
|
||||
@@ -323,7 +320,6 @@
|
||||
"unlockRotation": "Разблокировать поворот",
|
||||
"timerActive": "Таймер активен",
|
||||
"playbackWillPauseIn": "Воспроизведение будет приостановлено через ${duration}",
|
||||
"sleepTimerCompleted": "Таймер сна завершён — воспроизведение приостановлено",
|
||||
"stillWatching": "Всё ещё смотрите?",
|
||||
"pausingIn": "Пауза через ${seconds}с",
|
||||
"continueWatching": "Продолжить",
|
||||
@@ -340,20 +336,20 @@
|
||||
"muteButton": "Без звука",
|
||||
"unmuteButton": "Включить звук",
|
||||
"settingsButton": "Настройки видео",
|
||||
"audioTrackButton": "Аудиодорожки",
|
||||
"subtitlesButton": "Субтитры",
|
||||
"tracksButton": "Аудио и субтитры",
|
||||
"chaptersButton": "Главы",
|
||||
"versionsButton": "Версии видео",
|
||||
"pipButton": "Режим «картинка в картинке»",
|
||||
"aspectRatioButton": "Соотношение сторон",
|
||||
"ambientLighting": "Фоновая подсветка",
|
||||
"ambientLightingOn": "Включить фоновую подсветку",
|
||||
"ambientLightingOff": "Выключить фоновую подсветку",
|
||||
"fullscreenButton": "Полноэкранный режим",
|
||||
"exitFullscreenButton": "Выйти из полноэкранного режима",
|
||||
"alwaysOnTopButton": "Всегда поверх",
|
||||
"rotationLockButton": "Блокировка поворота",
|
||||
"lockScreen": "Заблокировать экран",
|
||||
"unlockScreen": "Разблокировать экран",
|
||||
"screenLockButton": "Блокировка экрана",
|
||||
"longPressToUnlock": "Удерживайте для разблокировки",
|
||||
"timelineSlider": "Временная шкала",
|
||||
"volumeSlider": "Уровень громкости",
|
||||
"endsAt": "Закончится в ${time}",
|
||||
@@ -453,11 +449,8 @@
|
||||
"overview": "Обзор",
|
||||
"cast": "В ролях",
|
||||
"extras": "Трейлеры и доп. материалы",
|
||||
"seasons": "Сезоны",
|
||||
"studio": "Студия",
|
||||
"rating": "Рейтинг",
|
||||
"episodeCount": "${count} эпизодов",
|
||||
"watchedProgress": "${watched}/${total} просмотрено",
|
||||
"movie": "Фильм",
|
||||
"tvShow": "Сериал",
|
||||
"minutesLeft": "Осталось ${minutes} мин"
|
||||
@@ -550,9 +543,7 @@
|
||||
"logs": {
|
||||
"clearLogs": "Очистить логи",
|
||||
"copyLogs": "Скопировать логи",
|
||||
"uploadLogs": "Загрузить логи",
|
||||
"error": "Ошибка:",
|
||||
"stackTrace": "Стек вызовов:"
|
||||
"uploadLogs": "Загрузить логи"
|
||||
},
|
||||
"licenses": {
|
||||
"relatedPackages": "Связанные пакеты",
|
||||
@@ -567,20 +558,12 @@
|
||||
},
|
||||
"liveTv": {
|
||||
"title": "ТВ в прямом эфире",
|
||||
"channels": "Каналы",
|
||||
"guide": "Программа",
|
||||
"noChannels": "Нет доступных каналов",
|
||||
"noDvr": "DVR не настроен ни на одном сервере",
|
||||
"tuneFailed": "Не удалось настроить канал",
|
||||
"loading": "Загрузка каналов...",
|
||||
"nowPlaying": "Сейчас воспроизводится",
|
||||
"noPrograms": "Нет данных о программах",
|
||||
"channelNumber": "Кн. ${number}",
|
||||
"live": "ЭФИР",
|
||||
"hd": "HD",
|
||||
"premiere": "НОВОЕ",
|
||||
"reloadGuide": "Перезагрузить программу",
|
||||
"allChannels": "Все каналы",
|
||||
"now": "Сейчас",
|
||||
"today": "Сегодня",
|
||||
"midnight": "Полночь",
|
||||
@@ -590,7 +573,8 @@
|
||||
"evening": "Вечер",
|
||||
"lateNight": "Поздний вечер",
|
||||
"whatsOn": "Что идёт",
|
||||
"watchChannel": "Смотреть канал"
|
||||
"watchChannel": "Смотреть канал",
|
||||
"favorites": "Избранное"
|
||||
},
|
||||
"collections": {
|
||||
"title": "Коллекции",
|
||||
@@ -835,7 +819,6 @@
|
||||
"playerCommand": "Команда",
|
||||
"playerPackage": "Имя пакета",
|
||||
"playerUrlScheme": "URL-схема",
|
||||
"customPlayer": "Свой плеер",
|
||||
"off": "Выкл.",
|
||||
"launchFailed": "Не удалось открыть внешний плеер",
|
||||
"appNotInstalled": "${name} не установлен",
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
/// To regenerate, run: `dart run slang`
|
||||
///
|
||||
/// Locales: 15
|
||||
/// Strings: 12195 (813 per locale)
|
||||
/// Strings: 11970 (798 per locale)
|
||||
///
|
||||
/// Built on 2026-03-13 at 05:11 UTC
|
||||
/// Built on 2026-03-22 at 10:44 UTC
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: type=lint, unused_import
|
||||
|
||||
+20
-60
@@ -45,7 +45,6 @@ class TranslationsDa with BaseTranslations<AppLocale, Translations> implements T
|
||||
@override late final _TranslationsSettingsDa settings = _TranslationsSettingsDa._(_root);
|
||||
@override late final _TranslationsSearchDa search = _TranslationsSearchDa._(_root);
|
||||
@override late final _TranslationsHotkeysDa hotkeys = _TranslationsHotkeysDa._(_root);
|
||||
@override late final _TranslationsPinEntryDa pinEntry = _TranslationsPinEntryDa._(_root);
|
||||
@override late final _TranslationsFileInfoDa fileInfo = _TranslationsFileInfoDa._(_root);
|
||||
@override late final _TranslationsMediaMenuDa mediaMenu = _TranslationsMediaMenuDa._(_root);
|
||||
@override late final _TranslationsAccessibilityDa accessibility = _TranslationsAccessibilityDa._(_root);
|
||||
@@ -128,7 +127,6 @@ class _TranslationsCommonDa implements TranslationsCommonEn {
|
||||
@override String get shuffle => 'Bland';
|
||||
@override String get addTo => 'Tilføj til...';
|
||||
@override String get createNew => 'Opret ny';
|
||||
@override String get remove => 'Fjern';
|
||||
@override String get paste => 'Indsæt';
|
||||
@override String get connect => 'Forbind';
|
||||
@override String get disconnect => 'Afbryd';
|
||||
@@ -142,7 +140,6 @@ class _TranslationsCommonDa implements TranslationsCommonEn {
|
||||
@override String get settings => 'Indstillinger';
|
||||
@override String get mute => 'Lydløs';
|
||||
@override String get ok => 'OK';
|
||||
@override String get loading => 'Indlæser...';
|
||||
@override String get reconnect => 'Genopret forbindelse';
|
||||
@override String get exitConfirmTitle => 'Luk app?';
|
||||
@override String get exitConfirmMessage => 'Er du sikker på, at du vil afslutte?';
|
||||
@@ -256,6 +253,8 @@ class _TranslationsSettingsDa implements TranslationsSettingsEn {
|
||||
@override String get subtitleStylingDescription => 'Tilpas underteksters udseende';
|
||||
@override String get smallSkipDuration => 'Kort spring-varighed';
|
||||
@override String get largeSkipDuration => 'Lang spring-varighed';
|
||||
@override String get rewindOnResume => 'Spol tilbage ved genoptagelse';
|
||||
@override String get rewindOnResumeDescription => 'Spol tilbage med denne mængde ved genoptagelse af afspilning';
|
||||
@override String secondsUnit({required Object seconds}) => '${seconds} sekunder';
|
||||
@override String get defaultSleepTimer => 'Standard sove-timer';
|
||||
@override String minutesUnit({required Object minutes}) => '${minutes} minutter';
|
||||
@@ -333,6 +332,8 @@ class _TranslationsSettingsDa implements TranslationsSettingsEn {
|
||||
@override String get confirmExitOnBackDescription => 'Vis bekræftelsesdialog ved tryk på tilbage for at lukke appen';
|
||||
@override String get showNavBarLabels => 'Vis navigationsbarlabels';
|
||||
@override String get showNavBarLabelsDescription => 'Vis tekstlabels under navigationsbarikoner';
|
||||
@override String get liveTvDefaultFavorites => 'Standard til favoritkanaler';
|
||||
@override String get liveTvDefaultFavoritesDescription => 'Vis kun favoritkanaler ved åbning af Live TV';
|
||||
}
|
||||
|
||||
// Path: search
|
||||
@@ -360,18 +361,6 @@ class _TranslationsHotkeysDa implements TranslationsHotkeysEn {
|
||||
@override late final _TranslationsHotkeysActionsDa actions = _TranslationsHotkeysActionsDa._(_root);
|
||||
}
|
||||
|
||||
// Path: pinEntry
|
||||
class _TranslationsPinEntryDa implements TranslationsPinEntryEn {
|
||||
_TranslationsPinEntryDa._(this._root);
|
||||
|
||||
final TranslationsDa _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get enterPin => 'Indtast PIN';
|
||||
@override String get showPin => 'Vis PIN';
|
||||
@override String get hidePin => 'Skjul PIN';
|
||||
}
|
||||
|
||||
// Path: fileInfo
|
||||
class _TranslationsFileInfoDa implements TranslationsFileInfoEn {
|
||||
_TranslationsFileInfoDa._(this._root);
|
||||
@@ -478,7 +467,6 @@ class _TranslationsVideoControlsDa implements TranslationsVideoControlsEn {
|
||||
@override String get unlockRotation => 'Lås rotation op';
|
||||
@override String get timerActive => 'Timer aktiv';
|
||||
@override String playbackWillPauseIn({required Object duration}) => 'Afspilning pauses om ${duration}';
|
||||
@override String get sleepTimerCompleted => 'Sove-timer fuldført — afspilning sat på pause';
|
||||
@override String get stillWatching => 'Ser du stadig?';
|
||||
@override String pausingIn({required Object seconds}) => 'Pauser om ${seconds}s';
|
||||
@override String get continueWatching => 'Fortsæt';
|
||||
@@ -495,20 +483,20 @@ class _TranslationsVideoControlsDa implements TranslationsVideoControlsEn {
|
||||
@override String get muteButton => 'Lydløs';
|
||||
@override String get unmuteButton => 'Slå lyd til';
|
||||
@override String get settingsButton => 'Videoindstillinger';
|
||||
@override String get audioTrackButton => 'Lydspor';
|
||||
@override String get subtitlesButton => 'Undertekster';
|
||||
@override String get tracksButton => 'Lyd og undertekster';
|
||||
@override String get chaptersButton => 'Kapitler';
|
||||
@override String get versionsButton => 'Videoversioner';
|
||||
@override String get pipButton => 'Billede-i-billede-tilstand';
|
||||
@override String get aspectRatioButton => 'Billedformat';
|
||||
@override String get ambientLighting => 'Omgivelsesbelysning';
|
||||
@override String get ambientLightingOn => 'Aktivér omgivelsesbelysning';
|
||||
@override String get ambientLightingOff => 'Deaktivér omgivelsesbelysning';
|
||||
@override String get fullscreenButton => 'Fuldskærm';
|
||||
@override String get exitFullscreenButton => 'Forlad fuldskærm';
|
||||
@override String get alwaysOnTopButton => 'Altid øverst';
|
||||
@override String get rotationLockButton => 'Rotationslås';
|
||||
@override String get lockScreen => 'Lås skærm';
|
||||
@override String get unlockScreen => 'Lås skærm op';
|
||||
@override String get screenLockButton => 'Skærmlås';
|
||||
@override String get longPressToUnlock => 'Langt tryk for at låse op';
|
||||
@override String get timelineSlider => 'Videotidslinje';
|
||||
@override String get volumeSlider => 'Lydstyrkeniveau';
|
||||
@override String endsAt({required Object time}) => 'Slutter kl. ${time}';
|
||||
@@ -642,11 +630,8 @@ class _TranslationsDiscoverDa implements TranslationsDiscoverEn {
|
||||
@override String get overview => 'Oversigt';
|
||||
@override String get cast => 'Rollebesætning';
|
||||
@override String get extras => 'Trailere og ekstra';
|
||||
@override String get seasons => 'Sæsoner';
|
||||
@override String get studio => 'Studie';
|
||||
@override String get rating => 'Bedømmelse';
|
||||
@override String episodeCount({required Object count}) => '${count} episoder';
|
||||
@override String watchedProgress({required Object watched, required Object total}) => '${watched}/${total} set';
|
||||
@override String get movie => 'Film';
|
||||
@override String get tvShow => 'TV-serie';
|
||||
@override String minutesLeft({required Object minutes}) => '${minutes} min tilbage';
|
||||
@@ -769,8 +754,6 @@ class _TranslationsLogsDa implements TranslationsLogsEn {
|
||||
@override String get clearLogs => 'Ryd logs';
|
||||
@override String get copyLogs => 'Kopiér logs';
|
||||
@override String get uploadLogs => 'Upload logs';
|
||||
@override String get error => 'Fejl:';
|
||||
@override String get stackTrace => 'Staksporing:';
|
||||
}
|
||||
|
||||
// Path: licenses
|
||||
@@ -806,20 +789,12 @@ class _TranslationsLiveTvDa implements TranslationsLiveTvEn {
|
||||
|
||||
// Translations
|
||||
@override String get title => 'Live TV';
|
||||
@override String get channels => 'Kanaler';
|
||||
@override String get guide => 'Guide';
|
||||
@override String get noChannels => 'Ingen kanaler tilgængelige';
|
||||
@override String get noDvr => 'Ingen DVR konfigureret på nogen server';
|
||||
@override String get tuneFailed => 'Kunne ikke tune kanal';
|
||||
@override String get loading => 'Indlæser kanaler...';
|
||||
@override String get nowPlaying => 'Afspiller nu';
|
||||
@override String get noPrograms => 'Ingen programdata tilgængelig';
|
||||
@override String channelNumber({required Object number}) => 'Kn. ${number}';
|
||||
@override String get live => 'LIVE';
|
||||
@override String get hd => 'HD';
|
||||
@override String get premiere => 'NY';
|
||||
@override String get reloadGuide => 'Genindlæs guide';
|
||||
@override String get allChannels => 'Alle kanaler';
|
||||
@override String get now => 'Nu';
|
||||
@override String get today => 'I dag';
|
||||
@override String get midnight => 'Midnat';
|
||||
@@ -830,6 +805,7 @@ class _TranslationsLiveTvDa implements TranslationsLiveTvEn {
|
||||
@override String get lateNight => 'Sen aften';
|
||||
@override String get whatsOn => 'Hvad der kører';
|
||||
@override String get watchChannel => 'Se kanal';
|
||||
@override String get favorites => 'Favoritter';
|
||||
}
|
||||
|
||||
// Path: collections
|
||||
@@ -1058,7 +1034,6 @@ class _TranslationsExternalPlayerDa implements TranslationsExternalPlayerEn {
|
||||
@override String get playerCommand => 'Kommando';
|
||||
@override String get playerPackage => 'Pakkenavn';
|
||||
@override String get playerUrlScheme => 'URL-skema';
|
||||
@override String get customPlayer => 'Brugerdefineret afspiller';
|
||||
@override String get off => 'Fra';
|
||||
@override String get launchFailed => 'Kunne ikke åbne ekstern afspiller';
|
||||
@override String appNotInstalled({required Object name}) => '${name} er ikke installeret';
|
||||
@@ -1336,7 +1311,6 @@ extension on TranslationsDa {
|
||||
'common.shuffle' => 'Bland',
|
||||
'common.addTo' => 'Tilføj til...',
|
||||
'common.createNew' => 'Opret ny',
|
||||
'common.remove' => 'Fjern',
|
||||
'common.paste' => 'Indsæt',
|
||||
'common.connect' => 'Forbind',
|
||||
'common.disconnect' => 'Afbryd',
|
||||
@@ -1350,7 +1324,6 @@ extension on TranslationsDa {
|
||||
'common.settings' => 'Indstillinger',
|
||||
'common.mute' => 'Lydløs',
|
||||
'common.ok' => 'OK',
|
||||
'common.loading' => 'Indlæser...',
|
||||
'common.reconnect' => 'Genopret forbindelse',
|
||||
'common.exitConfirmTitle' => 'Luk app?',
|
||||
'common.exitConfirmMessage' => 'Er du sikker på, at du vil afslutte?',
|
||||
@@ -1437,6 +1410,8 @@ extension on TranslationsDa {
|
||||
'settings.subtitleStylingDescription' => 'Tilpas underteksters udseende',
|
||||
'settings.smallSkipDuration' => 'Kort spring-varighed',
|
||||
'settings.largeSkipDuration' => 'Lang spring-varighed',
|
||||
'settings.rewindOnResume' => 'Spol tilbage ved genoptagelse',
|
||||
'settings.rewindOnResumeDescription' => 'Spol tilbage med denne mængde ved genoptagelse af afspilning',
|
||||
'settings.secondsUnit' => ({required Object seconds}) => '${seconds} sekunder',
|
||||
'settings.defaultSleepTimer' => 'Standard sove-timer',
|
||||
'settings.minutesUnit' => ({required Object minutes}) => '${minutes} minutter',
|
||||
@@ -1514,6 +1489,8 @@ extension on TranslationsDa {
|
||||
'settings.confirmExitOnBackDescription' => 'Vis bekræftelsesdialog ved tryk på tilbage for at lukke appen',
|
||||
'settings.showNavBarLabels' => 'Vis navigationsbarlabels',
|
||||
'settings.showNavBarLabelsDescription' => 'Vis tekstlabels under navigationsbarikoner',
|
||||
'settings.liveTvDefaultFavorites' => 'Standard til favoritkanaler',
|
||||
'settings.liveTvDefaultFavoritesDescription' => 'Vis kun favoritkanaler ved åbning af Live TV',
|
||||
'search.hint' => 'Søg film, serier, musik...',
|
||||
'search.tryDifferentTerm' => 'Prøv en anden søgning',
|
||||
'search.searchYourMedia' => 'Søg i dine medier',
|
||||
@@ -1539,9 +1516,6 @@ extension on TranslationsDa {
|
||||
'hotkeys.actions.subSeekPrev' => 'Søg til forrige undertekst',
|
||||
'hotkeys.actions.shaderToggle' => 'Skift shadere',
|
||||
'hotkeys.actions.skipMarker' => 'Spring intro/rulletekster over',
|
||||
'pinEntry.enterPin' => 'Indtast PIN',
|
||||
'pinEntry.showPin' => 'Vis PIN',
|
||||
'pinEntry.hidePin' => 'Skjul PIN',
|
||||
'fileInfo.title' => 'Filinfo',
|
||||
'fileInfo.video' => 'Video',
|
||||
'fileInfo.audio' => 'Lyd',
|
||||
@@ -1605,7 +1579,6 @@ extension on TranslationsDa {
|
||||
'videoControls.unlockRotation' => 'Lås rotation op',
|
||||
'videoControls.timerActive' => 'Timer aktiv',
|
||||
'videoControls.playbackWillPauseIn' => ({required Object duration}) => 'Afspilning pauses om ${duration}',
|
||||
'videoControls.sleepTimerCompleted' => 'Sove-timer fuldført — afspilning sat på pause',
|
||||
'videoControls.stillWatching' => 'Ser du stadig?',
|
||||
'videoControls.pausingIn' => ({required Object seconds}) => 'Pauser om ${seconds}s',
|
||||
'videoControls.continueWatching' => 'Fortsæt',
|
||||
@@ -1622,20 +1595,20 @@ extension on TranslationsDa {
|
||||
'videoControls.muteButton' => 'Lydløs',
|
||||
'videoControls.unmuteButton' => 'Slå lyd til',
|
||||
'videoControls.settingsButton' => 'Videoindstillinger',
|
||||
'videoControls.audioTrackButton' => 'Lydspor',
|
||||
'videoControls.subtitlesButton' => 'Undertekster',
|
||||
'videoControls.tracksButton' => 'Lyd og undertekster',
|
||||
'videoControls.chaptersButton' => 'Kapitler',
|
||||
'videoControls.versionsButton' => 'Videoversioner',
|
||||
'videoControls.pipButton' => 'Billede-i-billede-tilstand',
|
||||
'videoControls.aspectRatioButton' => 'Billedformat',
|
||||
'videoControls.ambientLighting' => 'Omgivelsesbelysning',
|
||||
'videoControls.ambientLightingOn' => 'Aktivér omgivelsesbelysning',
|
||||
'videoControls.ambientLightingOff' => 'Deaktivér omgivelsesbelysning',
|
||||
'videoControls.fullscreenButton' => 'Fuldskærm',
|
||||
'videoControls.exitFullscreenButton' => 'Forlad fuldskærm',
|
||||
'videoControls.alwaysOnTopButton' => 'Altid øverst',
|
||||
'videoControls.rotationLockButton' => 'Rotationslås',
|
||||
'videoControls.lockScreen' => 'Lås skærm',
|
||||
'videoControls.unlockScreen' => 'Lås skærm op',
|
||||
'videoControls.screenLockButton' => 'Skærmlås',
|
||||
'videoControls.longPressToUnlock' => 'Langt tryk for at låse op',
|
||||
'videoControls.timelineSlider' => 'Videotidslinje',
|
||||
'videoControls.volumeSlider' => 'Lydstyrkeniveau',
|
||||
'videoControls.endsAt' => ({required Object time}) => 'Slutter kl. ${time}',
|
||||
@@ -1721,11 +1694,8 @@ extension on TranslationsDa {
|
||||
'discover.overview' => 'Oversigt',
|
||||
'discover.cast' => 'Rollebesætning',
|
||||
'discover.extras' => 'Trailere og ekstra',
|
||||
'discover.seasons' => 'Sæsoner',
|
||||
'discover.studio' => 'Studie',
|
||||
'discover.rating' => 'Bedømmelse',
|
||||
'discover.episodeCount' => ({required Object count}) => '${count} episoder',
|
||||
'discover.watchedProgress' => ({required Object watched, required Object total}) => '${watched}/${total} set',
|
||||
'discover.movie' => 'Film',
|
||||
'discover.tvShow' => 'TV-serie',
|
||||
'discover.minutesLeft' => ({required Object minutes}) => '${minutes} min tilbage',
|
||||
@@ -1803,8 +1773,6 @@ extension on TranslationsDa {
|
||||
'logs.clearLogs' => 'Ryd logs',
|
||||
'logs.copyLogs' => 'Kopiér logs',
|
||||
'logs.uploadLogs' => 'Upload logs',
|
||||
'logs.error' => 'Fejl:',
|
||||
'logs.stackTrace' => 'Staksporing:',
|
||||
'licenses.relatedPackages' => 'Relaterede pakker',
|
||||
'licenses.license' => 'Licens',
|
||||
'licenses.licenseNumber' => ({required Object number}) => 'Licens ${number}',
|
||||
@@ -1813,22 +1781,12 @@ extension on TranslationsDa {
|
||||
'navigation.downloads' => 'Downloads',
|
||||
'navigation.liveTv' => 'Live TV',
|
||||
'liveTv.title' => 'Live TV',
|
||||
'liveTv.channels' => 'Kanaler',
|
||||
'liveTv.guide' => 'Guide',
|
||||
'liveTv.noChannels' => 'Ingen kanaler tilgængelige',
|
||||
'liveTv.noDvr' => 'Ingen DVR konfigureret på nogen server',
|
||||
'liveTv.tuneFailed' => 'Kunne ikke tune kanal',
|
||||
'liveTv.loading' => 'Indlæser kanaler...',
|
||||
'liveTv.nowPlaying' => 'Afspiller nu',
|
||||
'liveTv.noPrograms' => 'Ingen programdata tilgængelig',
|
||||
'liveTv.channelNumber' => ({required Object number}) => 'Kn. ${number}',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'liveTv.live' => 'LIVE',
|
||||
'liveTv.hd' => 'HD',
|
||||
'liveTv.premiere' => 'NY',
|
||||
'liveTv.reloadGuide' => 'Genindlæs guide',
|
||||
'liveTv.allChannels' => 'Alle kanaler',
|
||||
'liveTv.now' => 'Nu',
|
||||
'liveTv.today' => 'I dag',
|
||||
'liveTv.midnight' => 'Midnat',
|
||||
@@ -1839,6 +1797,9 @@ extension on TranslationsDa {
|
||||
'liveTv.lateNight' => 'Sen aften',
|
||||
'liveTv.whatsOn' => 'Hvad der kører',
|
||||
'liveTv.watchChannel' => 'Se kanal',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'liveTv.favorites' => 'Favoritter',
|
||||
'collections.title' => 'Samlinger',
|
||||
'collections.collection' => 'Samling',
|
||||
'collections.empty' => 'Samlingen er tom',
|
||||
@@ -2061,7 +2022,6 @@ extension on TranslationsDa {
|
||||
'externalPlayer.playerCommand' => 'Kommando',
|
||||
'externalPlayer.playerPackage' => 'Pakkenavn',
|
||||
'externalPlayer.playerUrlScheme' => 'URL-skema',
|
||||
'externalPlayer.customPlayer' => 'Brugerdefineret afspiller',
|
||||
'externalPlayer.off' => 'Fra',
|
||||
'externalPlayer.launchFailed' => 'Kunne ikke åbne ekstern afspiller',
|
||||
'externalPlayer.appNotInstalled' => ({required Object name}) => '${name} er ikke installeret',
|
||||
|
||||
+20
-60
@@ -45,7 +45,6 @@ class TranslationsDe with BaseTranslations<AppLocale, Translations> implements T
|
||||
@override late final _TranslationsSettingsDe settings = _TranslationsSettingsDe._(_root);
|
||||
@override late final _TranslationsSearchDe search = _TranslationsSearchDe._(_root);
|
||||
@override late final _TranslationsHotkeysDe hotkeys = _TranslationsHotkeysDe._(_root);
|
||||
@override late final _TranslationsPinEntryDe pinEntry = _TranslationsPinEntryDe._(_root);
|
||||
@override late final _TranslationsFileInfoDe fileInfo = _TranslationsFileInfoDe._(_root);
|
||||
@override late final _TranslationsMediaMenuDe mediaMenu = _TranslationsMediaMenuDe._(_root);
|
||||
@override late final _TranslationsAccessibilityDe accessibility = _TranslationsAccessibilityDe._(_root);
|
||||
@@ -128,7 +127,6 @@ class _TranslationsCommonDe implements TranslationsCommonEn {
|
||||
@override String get shuffle => 'Zufall';
|
||||
@override String get addTo => 'Hinzufügen zu...';
|
||||
@override String get createNew => 'Neu erstellen';
|
||||
@override String get remove => 'Entfernen';
|
||||
@override String get paste => 'Einfügen';
|
||||
@override String get connect => 'Verbinden';
|
||||
@override String get disconnect => 'Trennen';
|
||||
@@ -142,7 +140,6 @@ class _TranslationsCommonDe implements TranslationsCommonEn {
|
||||
@override String get settings => 'Optionen';
|
||||
@override String get mute => 'Stumm';
|
||||
@override String get ok => 'OK';
|
||||
@override String get loading => 'Laden...';
|
||||
@override String get reconnect => 'Erneut verbinden';
|
||||
@override String get exitConfirmTitle => 'App beenden?';
|
||||
@override String get exitConfirmMessage => 'Möchtest du die App wirklich beenden?';
|
||||
@@ -256,6 +253,8 @@ class _TranslationsSettingsDe implements TranslationsSettingsEn {
|
||||
@override String get subtitleStylingDescription => 'Aussehen von Untertiteln anpassen';
|
||||
@override String get smallSkipDuration => 'Kleine Sprungdauer';
|
||||
@override String get largeSkipDuration => 'Große Sprungdauer';
|
||||
@override String get rewindOnResume => 'Zurückspulen bei Fortsetzung';
|
||||
@override String get rewindOnResumeDescription => 'Um diesen Betrag zurückspulen, wenn die Wiedergabe fortgesetzt wird';
|
||||
@override String secondsUnit({required Object seconds}) => '${seconds} Sekunden';
|
||||
@override String get defaultSleepTimer => 'Standard-Sleep-Timer';
|
||||
@override String minutesUnit({required Object minutes}) => '${minutes} Minuten';
|
||||
@@ -333,6 +332,8 @@ class _TranslationsSettingsDe implements TranslationsSettingsEn {
|
||||
@override String get confirmExitOnBackDescription => 'Bestätigungsdialog anzeigen, wenn Zurück zum Beenden der App gedrückt wird';
|
||||
@override String get showNavBarLabels => 'Navigationsleisten-Beschriftungen anzeigen';
|
||||
@override String get showNavBarLabelsDescription => 'Textbeschriftungen unter den Symbolen der Navigationsleiste anzeigen';
|
||||
@override String get liveTvDefaultFavorites => 'Standardmäßig Favoritenkanäle';
|
||||
@override String get liveTvDefaultFavoritesDescription => 'Beim Öffnen von Live TV nur Favoritenkanäle anzeigen';
|
||||
}
|
||||
|
||||
// Path: search
|
||||
@@ -360,18 +361,6 @@ class _TranslationsHotkeysDe implements TranslationsHotkeysEn {
|
||||
@override late final _TranslationsHotkeysActionsDe actions = _TranslationsHotkeysActionsDe._(_root);
|
||||
}
|
||||
|
||||
// Path: pinEntry
|
||||
class _TranslationsPinEntryDe implements TranslationsPinEntryEn {
|
||||
_TranslationsPinEntryDe._(this._root);
|
||||
|
||||
final TranslationsDe _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get enterPin => 'PIN eingeben';
|
||||
@override String get showPin => 'PIN anzeigen';
|
||||
@override String get hidePin => 'PIN verbergen';
|
||||
}
|
||||
|
||||
// Path: fileInfo
|
||||
class _TranslationsFileInfoDe implements TranslationsFileInfoEn {
|
||||
_TranslationsFileInfoDe._(this._root);
|
||||
@@ -478,7 +467,6 @@ class _TranslationsVideoControlsDe implements TranslationsVideoControlsEn {
|
||||
@override String get unlockRotation => 'Rotation entsperren';
|
||||
@override String get timerActive => 'Schlaftimer aktiv';
|
||||
@override String playbackWillPauseIn({required Object duration}) => 'Wiedergabe wird in ${duration} pausiert';
|
||||
@override String get sleepTimerCompleted => 'Schlaftimer abgelaufen – Wiedergabe pausiert';
|
||||
@override String get stillWatching => 'Schaust du noch?';
|
||||
@override String pausingIn({required Object seconds}) => 'Pause in ${seconds}s';
|
||||
@override String get continueWatching => 'Weiter';
|
||||
@@ -495,20 +483,20 @@ class _TranslationsVideoControlsDe implements TranslationsVideoControlsEn {
|
||||
@override String get muteButton => 'Stumm schalten';
|
||||
@override String get unmuteButton => 'Stummschaltung aufheben';
|
||||
@override String get settingsButton => 'Videoeinstellungen';
|
||||
@override String get audioTrackButton => 'Tonspuren';
|
||||
@override String get subtitlesButton => 'Untertitel';
|
||||
@override String get tracksButton => 'Audio und Untertitel';
|
||||
@override String get chaptersButton => 'Kapitel';
|
||||
@override String get versionsButton => 'Videoversionen';
|
||||
@override String get pipButton => 'Bild-in-Bild Modus';
|
||||
@override String get aspectRatioButton => 'Seitenverhältnis';
|
||||
@override String get ambientLighting => 'Umgebungsbeleuchtung';
|
||||
@override String get ambientLightingOn => 'Umgebungsbeleuchtung aktivieren';
|
||||
@override String get ambientLightingOff => 'Umgebungsbeleuchtung deaktivieren';
|
||||
@override String get fullscreenButton => 'Vollbild aktivieren';
|
||||
@override String get exitFullscreenButton => 'Vollbild verlassen';
|
||||
@override String get alwaysOnTopButton => 'Immer im Vordergrund';
|
||||
@override String get rotationLockButton => 'Drehsperre';
|
||||
@override String get lockScreen => 'Bildschirm sperren';
|
||||
@override String get unlockScreen => 'Bildschirm entsperren';
|
||||
@override String get screenLockButton => 'Bildschirmsperre';
|
||||
@override String get longPressToUnlock => 'Lange drücken zum Entsperren';
|
||||
@override String get timelineSlider => 'Video-Zeitleiste';
|
||||
@override String get volumeSlider => 'Lautstärkepegel';
|
||||
@override String endsAt({required Object time}) => 'Endet um ${time}';
|
||||
@@ -642,11 +630,8 @@ class _TranslationsDiscoverDe implements TranslationsDiscoverEn {
|
||||
@override String get overview => 'Übersicht';
|
||||
@override String get cast => 'Besetzung';
|
||||
@override String get extras => 'Trailer & Extras';
|
||||
@override String get seasons => 'Staffeln';
|
||||
@override String get studio => 'Studio';
|
||||
@override String get rating => 'Altersfreigabe';
|
||||
@override String episodeCount({required Object count}) => '${count} Episoden';
|
||||
@override String watchedProgress({required Object watched, required Object total}) => '${watched} von ${total} gesehen';
|
||||
@override String get movie => 'Film';
|
||||
@override String get tvShow => 'Serie';
|
||||
@override String minutesLeft({required Object minutes}) => '${minutes} Min übrig';
|
||||
@@ -769,8 +754,6 @@ class _TranslationsLogsDe implements TranslationsLogsEn {
|
||||
@override String get clearLogs => 'Protokolle löschen';
|
||||
@override String get copyLogs => 'Protokolle kopieren';
|
||||
@override String get uploadLogs => 'Protokolle hochladen';
|
||||
@override String get error => 'Fehler:';
|
||||
@override String get stackTrace => 'Stacktrace:';
|
||||
}
|
||||
|
||||
// Path: licenses
|
||||
@@ -806,20 +789,12 @@ class _TranslationsLiveTvDe implements TranslationsLiveTvEn {
|
||||
|
||||
// Translations
|
||||
@override String get title => 'Live-TV';
|
||||
@override String get channels => 'Kanäle';
|
||||
@override String get guide => 'Programmführer';
|
||||
@override String get noChannels => 'Keine Kanäle verfügbar';
|
||||
@override String get noDvr => 'Kein DVR auf einem Server konfiguriert';
|
||||
@override String get tuneFailed => 'Kanal konnte nicht eingestellt werden';
|
||||
@override String get loading => 'Kanäle werden geladen...';
|
||||
@override String get nowPlaying => 'Läuft gerade';
|
||||
@override String get noPrograms => 'Keine Programmdaten verfügbar';
|
||||
@override String channelNumber({required Object number}) => 'Kanal ${number}';
|
||||
@override String get live => 'LIVE';
|
||||
@override String get hd => 'HD';
|
||||
@override String get premiere => 'NEU';
|
||||
@override String get reloadGuide => 'Programmführer neu laden';
|
||||
@override String get allChannels => 'Alle Kanäle';
|
||||
@override String get now => 'Jetzt';
|
||||
@override String get today => 'Heute';
|
||||
@override String get midnight => 'Mitternacht';
|
||||
@@ -830,6 +805,7 @@ class _TranslationsLiveTvDe implements TranslationsLiveTvEn {
|
||||
@override String get lateNight => 'Spätnacht';
|
||||
@override String get whatsOn => 'Jetzt im TV';
|
||||
@override String get watchChannel => 'Kanal ansehen';
|
||||
@override String get favorites => 'Favoriten';
|
||||
}
|
||||
|
||||
// Path: downloads
|
||||
@@ -1058,7 +1034,6 @@ class _TranslationsExternalPlayerDe implements TranslationsExternalPlayerEn {
|
||||
@override String get playerCommand => 'Befehl';
|
||||
@override String get playerPackage => 'Paketname';
|
||||
@override String get playerUrlScheme => 'URL-Schema';
|
||||
@override String get customPlayer => 'Benutzerdefinierter Player';
|
||||
@override String get off => 'Aus';
|
||||
@override String get launchFailed => 'Externer Player konnte nicht geöffnet werden';
|
||||
@override String appNotInstalled({required Object name}) => '${name} ist nicht installiert';
|
||||
@@ -1336,7 +1311,6 @@ extension on TranslationsDe {
|
||||
'common.shuffle' => 'Zufall',
|
||||
'common.addTo' => 'Hinzufügen zu...',
|
||||
'common.createNew' => 'Neu erstellen',
|
||||
'common.remove' => 'Entfernen',
|
||||
'common.paste' => 'Einfügen',
|
||||
'common.connect' => 'Verbinden',
|
||||
'common.disconnect' => 'Trennen',
|
||||
@@ -1350,7 +1324,6 @@ extension on TranslationsDe {
|
||||
'common.settings' => 'Optionen',
|
||||
'common.mute' => 'Stumm',
|
||||
'common.ok' => 'OK',
|
||||
'common.loading' => 'Laden...',
|
||||
'common.reconnect' => 'Erneut verbinden',
|
||||
'common.exitConfirmTitle' => 'App beenden?',
|
||||
'common.exitConfirmMessage' => 'Möchtest du die App wirklich beenden?',
|
||||
@@ -1437,6 +1410,8 @@ extension on TranslationsDe {
|
||||
'settings.subtitleStylingDescription' => 'Aussehen von Untertiteln anpassen',
|
||||
'settings.smallSkipDuration' => 'Kleine Sprungdauer',
|
||||
'settings.largeSkipDuration' => 'Große Sprungdauer',
|
||||
'settings.rewindOnResume' => 'Zurückspulen bei Fortsetzung',
|
||||
'settings.rewindOnResumeDescription' => 'Um diesen Betrag zurückspulen, wenn die Wiedergabe fortgesetzt wird',
|
||||
'settings.secondsUnit' => ({required Object seconds}) => '${seconds} Sekunden',
|
||||
'settings.defaultSleepTimer' => 'Standard-Sleep-Timer',
|
||||
'settings.minutesUnit' => ({required Object minutes}) => '${minutes} Minuten',
|
||||
@@ -1514,6 +1489,8 @@ extension on TranslationsDe {
|
||||
'settings.confirmExitOnBackDescription' => 'Bestätigungsdialog anzeigen, wenn Zurück zum Beenden der App gedrückt wird',
|
||||
'settings.showNavBarLabels' => 'Navigationsleisten-Beschriftungen anzeigen',
|
||||
'settings.showNavBarLabelsDescription' => 'Textbeschriftungen unter den Symbolen der Navigationsleiste anzeigen',
|
||||
'settings.liveTvDefaultFavorites' => 'Standardmäßig Favoritenkanäle',
|
||||
'settings.liveTvDefaultFavoritesDescription' => 'Beim Öffnen von Live TV nur Favoritenkanäle anzeigen',
|
||||
'search.hint' => 'Filme, Serien, Musik suchen...',
|
||||
'search.tryDifferentTerm' => 'Anderen Suchbegriff versuchen',
|
||||
'search.searchYourMedia' => 'In den eigenen Medien suchen',
|
||||
@@ -1539,9 +1516,6 @@ extension on TranslationsDe {
|
||||
'hotkeys.actions.subSeekPrev' => 'Zum vorherigen Untertitel springen',
|
||||
'hotkeys.actions.shaderToggle' => 'Shader umschalten',
|
||||
'hotkeys.actions.skipMarker' => 'Intro/Abspann überspringen',
|
||||
'pinEntry.enterPin' => 'PIN eingeben',
|
||||
'pinEntry.showPin' => 'PIN anzeigen',
|
||||
'pinEntry.hidePin' => 'PIN verbergen',
|
||||
'fileInfo.title' => 'Dateiinfo',
|
||||
'fileInfo.video' => 'Video',
|
||||
'fileInfo.audio' => 'Audio',
|
||||
@@ -1605,7 +1579,6 @@ extension on TranslationsDe {
|
||||
'videoControls.unlockRotation' => 'Rotation entsperren',
|
||||
'videoControls.timerActive' => 'Schlaftimer aktiv',
|
||||
'videoControls.playbackWillPauseIn' => ({required Object duration}) => 'Wiedergabe wird in ${duration} pausiert',
|
||||
'videoControls.sleepTimerCompleted' => 'Schlaftimer abgelaufen – Wiedergabe pausiert',
|
||||
'videoControls.stillWatching' => 'Schaust du noch?',
|
||||
'videoControls.pausingIn' => ({required Object seconds}) => 'Pause in ${seconds}s',
|
||||
'videoControls.continueWatching' => 'Weiter',
|
||||
@@ -1622,20 +1595,20 @@ extension on TranslationsDe {
|
||||
'videoControls.muteButton' => 'Stumm schalten',
|
||||
'videoControls.unmuteButton' => 'Stummschaltung aufheben',
|
||||
'videoControls.settingsButton' => 'Videoeinstellungen',
|
||||
'videoControls.audioTrackButton' => 'Tonspuren',
|
||||
'videoControls.subtitlesButton' => 'Untertitel',
|
||||
'videoControls.tracksButton' => 'Audio und Untertitel',
|
||||
'videoControls.chaptersButton' => 'Kapitel',
|
||||
'videoControls.versionsButton' => 'Videoversionen',
|
||||
'videoControls.pipButton' => 'Bild-in-Bild Modus',
|
||||
'videoControls.aspectRatioButton' => 'Seitenverhältnis',
|
||||
'videoControls.ambientLighting' => 'Umgebungsbeleuchtung',
|
||||
'videoControls.ambientLightingOn' => 'Umgebungsbeleuchtung aktivieren',
|
||||
'videoControls.ambientLightingOff' => 'Umgebungsbeleuchtung deaktivieren',
|
||||
'videoControls.fullscreenButton' => 'Vollbild aktivieren',
|
||||
'videoControls.exitFullscreenButton' => 'Vollbild verlassen',
|
||||
'videoControls.alwaysOnTopButton' => 'Immer im Vordergrund',
|
||||
'videoControls.rotationLockButton' => 'Drehsperre',
|
||||
'videoControls.lockScreen' => 'Bildschirm sperren',
|
||||
'videoControls.unlockScreen' => 'Bildschirm entsperren',
|
||||
'videoControls.screenLockButton' => 'Bildschirmsperre',
|
||||
'videoControls.longPressToUnlock' => 'Lange drücken zum Entsperren',
|
||||
'videoControls.timelineSlider' => 'Video-Zeitleiste',
|
||||
'videoControls.volumeSlider' => 'Lautstärkepegel',
|
||||
'videoControls.endsAt' => ({required Object time}) => 'Endet um ${time}',
|
||||
@@ -1721,11 +1694,8 @@ extension on TranslationsDe {
|
||||
'discover.overview' => 'Übersicht',
|
||||
'discover.cast' => 'Besetzung',
|
||||
'discover.extras' => 'Trailer & Extras',
|
||||
'discover.seasons' => 'Staffeln',
|
||||
'discover.studio' => 'Studio',
|
||||
'discover.rating' => 'Altersfreigabe',
|
||||
'discover.episodeCount' => ({required Object count}) => '${count} Episoden',
|
||||
'discover.watchedProgress' => ({required Object watched, required Object total}) => '${watched} von ${total} gesehen',
|
||||
'discover.movie' => 'Film',
|
||||
'discover.tvShow' => 'Serie',
|
||||
'discover.minutesLeft' => ({required Object minutes}) => '${minutes} Min übrig',
|
||||
@@ -1803,8 +1773,6 @@ extension on TranslationsDe {
|
||||
'logs.clearLogs' => 'Protokolle löschen',
|
||||
'logs.copyLogs' => 'Protokolle kopieren',
|
||||
'logs.uploadLogs' => 'Protokolle hochladen',
|
||||
'logs.error' => 'Fehler:',
|
||||
'logs.stackTrace' => 'Stacktrace:',
|
||||
'licenses.relatedPackages' => 'Verwandte Pakete',
|
||||
'licenses.license' => 'Lizenz',
|
||||
'licenses.licenseNumber' => ({required Object number}) => 'Lizenz ${number}',
|
||||
@@ -1813,22 +1781,12 @@ extension on TranslationsDe {
|
||||
'navigation.downloads' => 'Downloads',
|
||||
'navigation.liveTv' => 'Live-TV',
|
||||
'liveTv.title' => 'Live-TV',
|
||||
'liveTv.channels' => 'Kanäle',
|
||||
'liveTv.guide' => 'Programmführer',
|
||||
'liveTv.noChannels' => 'Keine Kanäle verfügbar',
|
||||
'liveTv.noDvr' => 'Kein DVR auf einem Server konfiguriert',
|
||||
'liveTv.tuneFailed' => 'Kanal konnte nicht eingestellt werden',
|
||||
'liveTv.loading' => 'Kanäle werden geladen...',
|
||||
'liveTv.nowPlaying' => 'Läuft gerade',
|
||||
'liveTv.noPrograms' => 'Keine Programmdaten verfügbar',
|
||||
'liveTv.channelNumber' => ({required Object number}) => 'Kanal ${number}',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'liveTv.live' => 'LIVE',
|
||||
'liveTv.hd' => 'HD',
|
||||
'liveTv.premiere' => 'NEU',
|
||||
'liveTv.reloadGuide' => 'Programmführer neu laden',
|
||||
'liveTv.allChannels' => 'Alle Kanäle',
|
||||
'liveTv.now' => 'Jetzt',
|
||||
'liveTv.today' => 'Heute',
|
||||
'liveTv.midnight' => 'Mitternacht',
|
||||
@@ -1839,6 +1797,9 @@ extension on TranslationsDe {
|
||||
'liveTv.lateNight' => 'Spätnacht',
|
||||
'liveTv.whatsOn' => 'Jetzt im TV',
|
||||
'liveTv.watchChannel' => 'Kanal ansehen',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'liveTv.favorites' => 'Favoriten',
|
||||
'downloads.title' => 'Downloads',
|
||||
'downloads.manage' => 'Verwalten',
|
||||
'downloads.tvShows' => 'Serien',
|
||||
@@ -2061,7 +2022,6 @@ extension on TranslationsDe {
|
||||
'externalPlayer.playerCommand' => 'Befehl',
|
||||
'externalPlayer.playerPackage' => 'Paketname',
|
||||
'externalPlayer.playerUrlScheme' => 'URL-Schema',
|
||||
'externalPlayer.customPlayer' => 'Benutzerdefinierter Player',
|
||||
'externalPlayer.off' => 'Aus',
|
||||
'externalPlayer.launchFailed' => 'Externer Player konnte nicht geöffnet werden',
|
||||
'externalPlayer.appNotInstalled' => ({required Object name}) => '${name} ist nicht installiert',
|
||||
|
||||
+38
-108
@@ -48,7 +48,6 @@ class Translations with BaseTranslations<AppLocale, Translations> {
|
||||
late final TranslationsSettingsEn settings = TranslationsSettingsEn._(_root);
|
||||
late final TranslationsSearchEn search = TranslationsSearchEn._(_root);
|
||||
late final TranslationsHotkeysEn hotkeys = TranslationsHotkeysEn._(_root);
|
||||
late final TranslationsPinEntryEn pinEntry = TranslationsPinEntryEn._(_root);
|
||||
late final TranslationsFileInfoEn fileInfo = TranslationsFileInfoEn._(_root);
|
||||
late final TranslationsMediaMenuEn mediaMenu = TranslationsMediaMenuEn._(_root);
|
||||
late final TranslationsAccessibilityEn accessibility = TranslationsAccessibilityEn._(_root);
|
||||
@@ -184,9 +183,6 @@ class TranslationsCommonEn {
|
||||
/// en: 'Create new'
|
||||
String get createNew => 'Create new';
|
||||
|
||||
/// en: 'Remove'
|
||||
String get remove => 'Remove';
|
||||
|
||||
/// en: 'Paste'
|
||||
String get paste => 'Paste';
|
||||
|
||||
@@ -226,9 +222,6 @@ class TranslationsCommonEn {
|
||||
/// en: 'OK'
|
||||
String get ok => 'OK';
|
||||
|
||||
/// en: 'Loading...'
|
||||
String get loading => 'Loading...';
|
||||
|
||||
/// en: 'Reconnect'
|
||||
String get reconnect => 'Reconnect';
|
||||
|
||||
@@ -514,6 +507,12 @@ class TranslationsSettingsEn {
|
||||
/// en: 'Large Skip Duration'
|
||||
String get largeSkipDuration => 'Large Skip Duration';
|
||||
|
||||
/// en: 'Rewind on Resume'
|
||||
String get rewindOnResume => 'Rewind on Resume';
|
||||
|
||||
/// en: 'Rewind by this amount when resuming playback'
|
||||
String get rewindOnResumeDescription => 'Rewind by this amount when resuming playback';
|
||||
|
||||
/// en: '${seconds} seconds'
|
||||
String secondsUnit({required Object seconds}) => '${seconds} seconds';
|
||||
|
||||
@@ -744,6 +743,12 @@ class TranslationsSettingsEn {
|
||||
|
||||
/// en: 'Display text labels under navigation bar icons'
|
||||
String get showNavBarLabelsDescription => 'Display text labels under navigation bar icons';
|
||||
|
||||
/// en: 'Default to Favorite Channels'
|
||||
String get liveTvDefaultFavorites => 'Default to Favorite Channels';
|
||||
|
||||
/// en: 'Show only favorite channels when opening Live TV'
|
||||
String get liveTvDefaultFavoritesDescription => 'Show only favorite channels when opening Live TV';
|
||||
}
|
||||
|
||||
// Path: search
|
||||
@@ -784,24 +789,6 @@ class TranslationsHotkeysEn {
|
||||
late final TranslationsHotkeysActionsEn actions = TranslationsHotkeysActionsEn._(_root);
|
||||
}
|
||||
|
||||
// Path: pinEntry
|
||||
class TranslationsPinEntryEn {
|
||||
TranslationsPinEntryEn._(this._root);
|
||||
|
||||
final Translations _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
|
||||
/// en: 'Enter PIN'
|
||||
String get enterPin => 'Enter PIN';
|
||||
|
||||
/// en: 'Show PIN'
|
||||
String get showPin => 'Show PIN';
|
||||
|
||||
/// en: 'Hide PIN'
|
||||
String get hidePin => 'Hide PIN';
|
||||
}
|
||||
|
||||
// Path: fileInfo
|
||||
class TranslationsFileInfoEn {
|
||||
TranslationsFileInfoEn._(this._root);
|
||||
@@ -1035,9 +1022,6 @@ class TranslationsVideoControlsEn {
|
||||
/// en: 'Playback will pause in ${duration}'
|
||||
String playbackWillPauseIn({required Object duration}) => 'Playback will pause in ${duration}';
|
||||
|
||||
/// en: 'Sleep timer completed - playback paused'
|
||||
String get sleepTimerCompleted => 'Sleep timer completed - playback paused';
|
||||
|
||||
/// en: 'Still watching?'
|
||||
String get stillWatching => 'Still watching?';
|
||||
|
||||
@@ -1086,12 +1070,6 @@ class TranslationsVideoControlsEn {
|
||||
/// en: 'Video settings'
|
||||
String get settingsButton => 'Video settings';
|
||||
|
||||
/// en: 'Audio tracks'
|
||||
String get audioTrackButton => 'Audio tracks';
|
||||
|
||||
/// en: 'Subtitles'
|
||||
String get subtitlesButton => 'Subtitles';
|
||||
|
||||
/// en: 'Audio & Subtitles'
|
||||
String get tracksButton => 'Audio & Subtitles';
|
||||
|
||||
@@ -1110,12 +1088,6 @@ class TranslationsVideoControlsEn {
|
||||
/// en: 'Ambient lighting'
|
||||
String get ambientLighting => 'Ambient lighting';
|
||||
|
||||
/// en: 'Enable ambient lighting'
|
||||
String get ambientLightingOn => 'Enable ambient lighting';
|
||||
|
||||
/// en: 'Disable ambient lighting'
|
||||
String get ambientLightingOff => 'Disable ambient lighting';
|
||||
|
||||
/// en: 'Enter fullscreen'
|
||||
String get fullscreenButton => 'Enter fullscreen';
|
||||
|
||||
@@ -1128,6 +1100,18 @@ class TranslationsVideoControlsEn {
|
||||
/// en: 'Rotation lock'
|
||||
String get rotationLockButton => 'Rotation lock';
|
||||
|
||||
/// en: 'Lock screen'
|
||||
String get lockScreen => 'Lock screen';
|
||||
|
||||
/// en: 'Unlock screen'
|
||||
String get unlockScreen => 'Unlock screen';
|
||||
|
||||
/// en: 'Screen lock'
|
||||
String get screenLockButton => 'Screen lock';
|
||||
|
||||
/// en: 'Long press to unlock'
|
||||
String get longPressToUnlock => 'Long press to unlock';
|
||||
|
||||
/// en: 'Video timeline'
|
||||
String get timelineSlider => 'Video timeline';
|
||||
|
||||
@@ -1418,21 +1402,12 @@ class TranslationsDiscoverEn {
|
||||
/// en: 'Trailers & Extras'
|
||||
String get extras => 'Trailers & Extras';
|
||||
|
||||
/// en: 'Seasons'
|
||||
String get seasons => 'Seasons';
|
||||
|
||||
/// en: 'Studio'
|
||||
String get studio => 'Studio';
|
||||
|
||||
/// en: 'Rating'
|
||||
String get rating => 'Rating';
|
||||
|
||||
/// en: '${count} episodes'
|
||||
String episodeCount({required Object count}) => '${count} episodes';
|
||||
|
||||
/// en: '${watched}/${total} watched'
|
||||
String watchedProgress({required Object watched, required Object total}) => '${watched}/${total} watched';
|
||||
|
||||
/// en: 'Movie'
|
||||
String get movie => 'Movie';
|
||||
|
||||
@@ -1687,12 +1662,6 @@ class TranslationsLogsEn {
|
||||
|
||||
/// en: 'Upload Logs'
|
||||
String get uploadLogs => 'Upload Logs';
|
||||
|
||||
/// en: 'Error:'
|
||||
String get error => 'Error:';
|
||||
|
||||
/// en: 'Stack Trace:'
|
||||
String get stackTrace => 'Stack Trace:';
|
||||
}
|
||||
|
||||
// Path: licenses
|
||||
@@ -1745,9 +1714,6 @@ class TranslationsLiveTvEn {
|
||||
/// en: 'Live TV'
|
||||
String get title => 'Live TV';
|
||||
|
||||
/// en: 'Channels'
|
||||
String get channels => 'Channels';
|
||||
|
||||
/// en: 'Guide'
|
||||
String get guide => 'Guide';
|
||||
|
||||
@@ -1757,36 +1723,15 @@ class TranslationsLiveTvEn {
|
||||
/// en: 'No DVR configured on any server'
|
||||
String get noDvr => 'No DVR configured on any server';
|
||||
|
||||
/// en: 'Failed to tune channel'
|
||||
String get tuneFailed => 'Failed to tune channel';
|
||||
|
||||
/// en: 'Loading channels...'
|
||||
String get loading => 'Loading channels...';
|
||||
|
||||
/// en: 'Now Playing'
|
||||
String get nowPlaying => 'Now Playing';
|
||||
|
||||
/// en: 'No program data available'
|
||||
String get noPrograms => 'No program data available';
|
||||
|
||||
/// en: 'Ch. ${number}'
|
||||
String channelNumber({required Object number}) => 'Ch. ${number}';
|
||||
|
||||
/// en: 'LIVE'
|
||||
String get live => 'LIVE';
|
||||
|
||||
/// en: 'HD'
|
||||
String get hd => 'HD';
|
||||
|
||||
/// en: 'NEW'
|
||||
String get premiere => 'NEW';
|
||||
|
||||
/// en: 'Reload Guide'
|
||||
String get reloadGuide => 'Reload Guide';
|
||||
|
||||
/// en: 'All Channels'
|
||||
String get allChannels => 'All Channels';
|
||||
|
||||
/// en: 'Now'
|
||||
String get now => 'Now';
|
||||
|
||||
@@ -1816,6 +1761,9 @@ class TranslationsLiveTvEn {
|
||||
|
||||
/// en: 'Watch Channel'
|
||||
String get watchChannel => 'Watch Channel';
|
||||
|
||||
/// en: 'Favorites'
|
||||
String get favorites => 'Favorites';
|
||||
}
|
||||
|
||||
// Path: collections
|
||||
@@ -2352,9 +2300,6 @@ class TranslationsExternalPlayerEn {
|
||||
/// en: 'URL Scheme'
|
||||
String get playerUrlScheme => 'URL Scheme';
|
||||
|
||||
/// en: 'Custom Player'
|
||||
String get customPlayer => 'Custom Player';
|
||||
|
||||
/// en: 'Off'
|
||||
String get off => 'Off';
|
||||
|
||||
@@ -2969,7 +2914,6 @@ extension on Translations {
|
||||
'common.shuffle' => 'Shuffle',
|
||||
'common.addTo' => 'Add to...',
|
||||
'common.createNew' => 'Create new',
|
||||
'common.remove' => 'Remove',
|
||||
'common.paste' => 'Paste',
|
||||
'common.connect' => 'Connect',
|
||||
'common.disconnect' => 'Disconnect',
|
||||
@@ -2983,7 +2927,6 @@ extension on Translations {
|
||||
'common.settings' => 'Settings',
|
||||
'common.mute' => 'Mute',
|
||||
'common.ok' => 'OK',
|
||||
'common.loading' => 'Loading...',
|
||||
'common.reconnect' => 'Reconnect',
|
||||
'common.exitConfirmTitle' => 'Exit app?',
|
||||
'common.exitConfirmMessage' => 'Are you sure you want to exit?',
|
||||
@@ -3070,6 +3013,8 @@ extension on Translations {
|
||||
'settings.subtitleStylingDescription' => 'Customize subtitle appearance',
|
||||
'settings.smallSkipDuration' => 'Small Skip Duration',
|
||||
'settings.largeSkipDuration' => 'Large Skip Duration',
|
||||
'settings.rewindOnResume' => 'Rewind on Resume',
|
||||
'settings.rewindOnResumeDescription' => 'Rewind by this amount when resuming playback',
|
||||
'settings.secondsUnit' => ({required Object seconds}) => '${seconds} seconds',
|
||||
'settings.defaultSleepTimer' => 'Default Sleep Timer',
|
||||
'settings.minutesUnit' => ({required Object minutes}) => '${minutes} minutes',
|
||||
@@ -3147,6 +3092,8 @@ extension on Translations {
|
||||
'settings.confirmExitOnBackDescription' => 'Show a confirmation dialog when pressing back to exit the app',
|
||||
'settings.showNavBarLabels' => 'Show Navigation Bar Labels',
|
||||
'settings.showNavBarLabelsDescription' => 'Display text labels under navigation bar icons',
|
||||
'settings.liveTvDefaultFavorites' => 'Default to Favorite Channels',
|
||||
'settings.liveTvDefaultFavoritesDescription' => 'Show only favorite channels when opening Live TV',
|
||||
'search.hint' => 'Search movies, shows, music...',
|
||||
'search.tryDifferentTerm' => 'Try a different search term',
|
||||
'search.searchYourMedia' => 'Search your media',
|
||||
@@ -3172,9 +3119,6 @@ extension on Translations {
|
||||
'hotkeys.actions.subSeekPrev' => 'Seek to Previous Subtitle',
|
||||
'hotkeys.actions.shaderToggle' => 'Toggle Shaders',
|
||||
'hotkeys.actions.skipMarker' => 'Skip Intro/Credits',
|
||||
'pinEntry.enterPin' => 'Enter PIN',
|
||||
'pinEntry.showPin' => 'Show PIN',
|
||||
'pinEntry.hidePin' => 'Hide PIN',
|
||||
'fileInfo.title' => 'File Info',
|
||||
'fileInfo.video' => 'Video',
|
||||
'fileInfo.audio' => 'Audio',
|
||||
@@ -3238,7 +3182,6 @@ extension on Translations {
|
||||
'videoControls.unlockRotation' => 'Unlock rotation',
|
||||
'videoControls.timerActive' => 'Timer Active',
|
||||
'videoControls.playbackWillPauseIn' => ({required Object duration}) => 'Playback will pause in ${duration}',
|
||||
'videoControls.sleepTimerCompleted' => 'Sleep timer completed - playback paused',
|
||||
'videoControls.stillWatching' => 'Still watching?',
|
||||
'videoControls.pausingIn' => ({required Object seconds}) => 'Pausing in ${seconds}s',
|
||||
'videoControls.continueWatching' => 'Continue',
|
||||
@@ -3255,20 +3198,20 @@ extension on Translations {
|
||||
'videoControls.muteButton' => 'Mute',
|
||||
'videoControls.unmuteButton' => 'Unmute',
|
||||
'videoControls.settingsButton' => 'Video settings',
|
||||
'videoControls.audioTrackButton' => 'Audio tracks',
|
||||
'videoControls.subtitlesButton' => 'Subtitles',
|
||||
'videoControls.tracksButton' => 'Audio & Subtitles',
|
||||
'videoControls.chaptersButton' => 'Chapters',
|
||||
'videoControls.versionsButton' => 'Video versions',
|
||||
'videoControls.pipButton' => 'Picture-in-Picture mode',
|
||||
'videoControls.aspectRatioButton' => 'Aspect ratio',
|
||||
'videoControls.ambientLighting' => 'Ambient lighting',
|
||||
'videoControls.ambientLightingOn' => 'Enable ambient lighting',
|
||||
'videoControls.ambientLightingOff' => 'Disable ambient lighting',
|
||||
'videoControls.fullscreenButton' => 'Enter fullscreen',
|
||||
'videoControls.exitFullscreenButton' => 'Exit fullscreen',
|
||||
'videoControls.alwaysOnTopButton' => 'Always on top',
|
||||
'videoControls.rotationLockButton' => 'Rotation lock',
|
||||
'videoControls.lockScreen' => 'Lock screen',
|
||||
'videoControls.unlockScreen' => 'Unlock screen',
|
||||
'videoControls.screenLockButton' => 'Screen lock',
|
||||
'videoControls.longPressToUnlock' => 'Long press to unlock',
|
||||
'videoControls.timelineSlider' => 'Video timeline',
|
||||
'videoControls.volumeSlider' => 'Volume level',
|
||||
'videoControls.endsAt' => ({required Object time}) => 'Ends at ${time}',
|
||||
@@ -3354,11 +3297,8 @@ extension on Translations {
|
||||
'discover.overview' => 'Overview',
|
||||
'discover.cast' => 'Cast',
|
||||
'discover.extras' => 'Trailers & Extras',
|
||||
'discover.seasons' => 'Seasons',
|
||||
'discover.studio' => 'Studio',
|
||||
'discover.rating' => 'Rating',
|
||||
'discover.episodeCount' => ({required Object count}) => '${count} episodes',
|
||||
'discover.watchedProgress' => ({required Object watched, required Object total}) => '${watched}/${total} watched',
|
||||
'discover.movie' => 'Movie',
|
||||
'discover.tvShow' => 'TV Show',
|
||||
'discover.minutesLeft' => ({required Object minutes}) => '${minutes} min left',
|
||||
@@ -3436,8 +3376,6 @@ extension on Translations {
|
||||
'logs.clearLogs' => 'Clear Logs',
|
||||
'logs.copyLogs' => 'Copy Logs',
|
||||
'logs.uploadLogs' => 'Upload Logs',
|
||||
'logs.error' => 'Error:',
|
||||
'logs.stackTrace' => 'Stack Trace:',
|
||||
'licenses.relatedPackages' => 'Related Packages',
|
||||
'licenses.license' => 'License',
|
||||
'licenses.licenseNumber' => ({required Object number}) => 'License ${number}',
|
||||
@@ -3446,22 +3384,12 @@ extension on Translations {
|
||||
'navigation.downloads' => 'Downloads',
|
||||
'navigation.liveTv' => 'Live TV',
|
||||
'liveTv.title' => 'Live TV',
|
||||
'liveTv.channels' => 'Channels',
|
||||
'liveTv.guide' => 'Guide',
|
||||
'liveTv.noChannels' => 'No channels available',
|
||||
'liveTv.noDvr' => 'No DVR configured on any server',
|
||||
'liveTv.tuneFailed' => 'Failed to tune channel',
|
||||
'liveTv.loading' => 'Loading channels...',
|
||||
'liveTv.nowPlaying' => 'Now Playing',
|
||||
'liveTv.noPrograms' => 'No program data available',
|
||||
'liveTv.channelNumber' => ({required Object number}) => 'Ch. ${number}',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'liveTv.live' => 'LIVE',
|
||||
'liveTv.hd' => 'HD',
|
||||
'liveTv.premiere' => 'NEW',
|
||||
'liveTv.reloadGuide' => 'Reload Guide',
|
||||
'liveTv.allChannels' => 'All Channels',
|
||||
'liveTv.now' => 'Now',
|
||||
'liveTv.today' => 'Today',
|
||||
'liveTv.midnight' => 'Midnight',
|
||||
@@ -3472,6 +3400,9 @@ extension on Translations {
|
||||
'liveTv.lateNight' => 'Late Night',
|
||||
'liveTv.whatsOn' => 'What\'s On',
|
||||
'liveTv.watchChannel' => 'Watch Channel',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'liveTv.favorites' => 'Favorites',
|
||||
'collections.title' => 'Collections',
|
||||
'collections.collection' => 'Collection',
|
||||
'collections.empty' => 'Collection is empty',
|
||||
@@ -3694,7 +3625,6 @@ extension on Translations {
|
||||
'externalPlayer.playerCommand' => 'Command',
|
||||
'externalPlayer.playerPackage' => 'Package Name',
|
||||
'externalPlayer.playerUrlScheme' => 'URL Scheme',
|
||||
'externalPlayer.customPlayer' => 'Custom Player',
|
||||
'externalPlayer.off' => 'Off',
|
||||
'externalPlayer.launchFailed' => 'Failed to open external player',
|
||||
'externalPlayer.appNotInstalled' => ({required Object name}) => '${name} is not installed',
|
||||
|
||||
+20
-60
@@ -45,7 +45,6 @@ class TranslationsEs with BaseTranslations<AppLocale, Translations> implements T
|
||||
@override late final _TranslationsSettingsEs settings = _TranslationsSettingsEs._(_root);
|
||||
@override late final _TranslationsSearchEs search = _TranslationsSearchEs._(_root);
|
||||
@override late final _TranslationsHotkeysEs hotkeys = _TranslationsHotkeysEs._(_root);
|
||||
@override late final _TranslationsPinEntryEs pinEntry = _TranslationsPinEntryEs._(_root);
|
||||
@override late final _TranslationsFileInfoEs fileInfo = _TranslationsFileInfoEs._(_root);
|
||||
@override late final _TranslationsMediaMenuEs mediaMenu = _TranslationsMediaMenuEs._(_root);
|
||||
@override late final _TranslationsAccessibilityEs accessibility = _TranslationsAccessibilityEs._(_root);
|
||||
@@ -128,7 +127,6 @@ class _TranslationsCommonEs implements TranslationsCommonEn {
|
||||
@override String get shuffle => 'Aleatorio';
|
||||
@override String get addTo => 'Añadir a...';
|
||||
@override String get createNew => 'Crear';
|
||||
@override String get remove => 'Eliminar';
|
||||
@override String get paste => 'Pegar';
|
||||
@override String get connect => 'Conectar';
|
||||
@override String get disconnect => 'Desconectar';
|
||||
@@ -142,7 +140,6 @@ class _TranslationsCommonEs implements TranslationsCommonEn {
|
||||
@override String get settings => 'Ajustes';
|
||||
@override String get mute => 'Silencio';
|
||||
@override String get ok => 'OK';
|
||||
@override String get loading => 'Cargando...';
|
||||
@override String get reconnect => 'Reconectar';
|
||||
@override String get exitConfirmTitle => '¿Salir de la app?';
|
||||
@override String get exitConfirmMessage => '¿Estás seguro de que quieres salir?';
|
||||
@@ -256,6 +253,8 @@ class _TranslationsSettingsEs implements TranslationsSettingsEn {
|
||||
@override String get subtitleStylingDescription => 'Personalizar la apariencia de los subtítulos';
|
||||
@override String get smallSkipDuration => 'Salto pequeño';
|
||||
@override String get largeSkipDuration => 'Salto grande';
|
||||
@override String get rewindOnResume => 'Rebobinar al reanudar';
|
||||
@override String get rewindOnResumeDescription => 'Rebobinar esta cantidad al reanudar la reproducción';
|
||||
@override String secondsUnit({required Object seconds}) => '${seconds} segundos';
|
||||
@override String get defaultSleepTimer => 'Temporizador de apagado';
|
||||
@override String minutesUnit({required Object minutes}) => '${minutes} minutos';
|
||||
@@ -333,6 +332,8 @@ class _TranslationsSettingsEs implements TranslationsSettingsEn {
|
||||
@override String get confirmExitOnBackDescription => 'Mostrar un diálogo de confirmación al presionar atrás para salir de la app';
|
||||
@override String get showNavBarLabels => 'Mostrar etiquetas de la barra de navegación';
|
||||
@override String get showNavBarLabelsDescription => 'Mostrar etiquetas de texto bajo los iconos de la barra de navegación';
|
||||
@override String get liveTvDefaultFavorites => 'Canales favoritos por defecto';
|
||||
@override String get liveTvDefaultFavoritesDescription => 'Mostrar solo canales favoritos al abrir TV en vivo';
|
||||
}
|
||||
|
||||
// Path: search
|
||||
@@ -360,18 +361,6 @@ class _TranslationsHotkeysEs implements TranslationsHotkeysEn {
|
||||
@override late final _TranslationsHotkeysActionsEs actions = _TranslationsHotkeysActionsEs._(_root);
|
||||
}
|
||||
|
||||
// Path: pinEntry
|
||||
class _TranslationsPinEntryEs implements TranslationsPinEntryEn {
|
||||
_TranslationsPinEntryEs._(this._root);
|
||||
|
||||
final TranslationsEs _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get enterPin => 'Introduce el PIN';
|
||||
@override String get showPin => 'Mostrar PIN';
|
||||
@override String get hidePin => 'Ocultar PIN';
|
||||
}
|
||||
|
||||
// Path: fileInfo
|
||||
class _TranslationsFileInfoEs implements TranslationsFileInfoEn {
|
||||
_TranslationsFileInfoEs._(this._root);
|
||||
@@ -478,7 +467,6 @@ class _TranslationsVideoControlsEs implements TranslationsVideoControlsEn {
|
||||
@override String get unlockRotation => 'Desbloquear rotación';
|
||||
@override String get timerActive => 'Temporizador Activo';
|
||||
@override String playbackWillPauseIn({required Object duration}) => 'La reproducción se pausará en ${duration}';
|
||||
@override String get sleepTimerCompleted => 'Temporizador completado - reproducción pausada';
|
||||
@override String get stillWatching => '¿Sigues viendo?';
|
||||
@override String pausingIn({required Object seconds}) => 'Pausa en ${seconds}s';
|
||||
@override String get continueWatching => 'Continuar';
|
||||
@@ -495,20 +483,20 @@ class _TranslationsVideoControlsEs implements TranslationsVideoControlsEn {
|
||||
@override String get muteButton => 'Silenciar';
|
||||
@override String get unmuteButton => 'Activar sonido';
|
||||
@override String get settingsButton => 'Ajustes de video';
|
||||
@override String get audioTrackButton => 'Pistas de audio';
|
||||
@override String get subtitlesButton => 'Subtítulos';
|
||||
@override String get tracksButton => 'Audio y subtítulos';
|
||||
@override String get chaptersButton => 'Capítulos';
|
||||
@override String get versionsButton => 'Versiones de video';
|
||||
@override String get pipButton => 'Modo PiP (Imagen en Imagen)';
|
||||
@override String get aspectRatioButton => 'Relación de aspecto';
|
||||
@override String get ambientLighting => 'Iluminación ambiental';
|
||||
@override String get ambientLightingOn => 'Activar iluminación ambiental';
|
||||
@override String get ambientLightingOff => 'Desactivar iluminación ambiental';
|
||||
@override String get fullscreenButton => 'Entrar en pantalla completa';
|
||||
@override String get exitFullscreenButton => 'Salir de pantalla completa';
|
||||
@override String get alwaysOnTopButton => 'Siempre visible';
|
||||
@override String get rotationLockButton => 'Bloqueo de rotación';
|
||||
@override String get lockScreen => 'Bloquear pantalla';
|
||||
@override String get unlockScreen => 'Desbloquear pantalla';
|
||||
@override String get screenLockButton => 'Bloqueo de pantalla';
|
||||
@override String get longPressToUnlock => 'Mantén pulsado para desbloquear';
|
||||
@override String get timelineSlider => 'Línea de tiempo del video';
|
||||
@override String get volumeSlider => 'Nivel de volumen';
|
||||
@override String endsAt({required Object time}) => 'Termina a las ${time}';
|
||||
@@ -642,11 +630,8 @@ class _TranslationsDiscoverEs implements TranslationsDiscoverEn {
|
||||
@override String get overview => 'Resumen';
|
||||
@override String get cast => 'Reparto';
|
||||
@override String get extras => 'Tráilers y Extras';
|
||||
@override String get seasons => 'Temporadas';
|
||||
@override String get studio => 'Estudio';
|
||||
@override String get rating => 'Calificación';
|
||||
@override String episodeCount({required Object count}) => '${count} episodios';
|
||||
@override String watchedProgress({required Object watched, required Object total}) => '${watched}/${total} vistos';
|
||||
@override String get movie => 'Película';
|
||||
@override String get tvShow => 'Serie de TV';
|
||||
@override String minutesLeft({required Object minutes}) => 'quedan ${minutes} min';
|
||||
@@ -769,8 +754,6 @@ class _TranslationsLogsEs implements TranslationsLogsEn {
|
||||
@override String get clearLogs => 'Borrar Logs';
|
||||
@override String get copyLogs => 'Copiar Logs';
|
||||
@override String get uploadLogs => 'Subir registros';
|
||||
@override String get error => 'Error:';
|
||||
@override String get stackTrace => 'Traza de la pila (Stack Trace):';
|
||||
}
|
||||
|
||||
// Path: licenses
|
||||
@@ -806,20 +789,12 @@ class _TranslationsLiveTvEs implements TranslationsLiveTvEn {
|
||||
|
||||
// Translations
|
||||
@override String get title => 'TV en vivo';
|
||||
@override String get channels => 'Canales';
|
||||
@override String get guide => 'Guía';
|
||||
@override String get noChannels => 'No hay canales disponibles';
|
||||
@override String get noDvr => 'No hay DVR configurado en ningún servidor';
|
||||
@override String get tuneFailed => 'Error al sintonizar el canal';
|
||||
@override String get loading => 'Cargando canales...';
|
||||
@override String get nowPlaying => 'Reproduciendo ahora';
|
||||
@override String get noPrograms => 'No hay datos de programación disponibles';
|
||||
@override String channelNumber({required Object number}) => 'Canal ${number}';
|
||||
@override String get live => 'EN VIVO';
|
||||
@override String get hd => 'HD';
|
||||
@override String get premiere => 'NUEVO';
|
||||
@override String get reloadGuide => 'Recargar guía';
|
||||
@override String get allChannels => 'Todos los canales';
|
||||
@override String get now => 'Ahora';
|
||||
@override String get today => 'Hoy';
|
||||
@override String get midnight => 'Medianoche';
|
||||
@@ -830,6 +805,7 @@ class _TranslationsLiveTvEs implements TranslationsLiveTvEn {
|
||||
@override String get lateNight => 'Trasnoche';
|
||||
@override String get whatsOn => 'En emisión';
|
||||
@override String get watchChannel => 'Ver canal';
|
||||
@override String get favorites => 'Favoritos';
|
||||
}
|
||||
|
||||
// Path: collections
|
||||
@@ -1058,7 +1034,6 @@ class _TranslationsExternalPlayerEs implements TranslationsExternalPlayerEn {
|
||||
@override String get playerCommand => 'Comando';
|
||||
@override String get playerPackage => 'Nombre del paquete';
|
||||
@override String get playerUrlScheme => 'Esquema URL';
|
||||
@override String get customPlayer => 'Reproductor personalizado';
|
||||
@override String get off => 'Desactivado';
|
||||
@override String get launchFailed => 'No se pudo abrir el reproductor externo';
|
||||
@override String appNotInstalled({required Object name}) => '${name} no está instalado';
|
||||
@@ -1336,7 +1311,6 @@ extension on TranslationsEs {
|
||||
'common.shuffle' => 'Aleatorio',
|
||||
'common.addTo' => 'Añadir a...',
|
||||
'common.createNew' => 'Crear',
|
||||
'common.remove' => 'Eliminar',
|
||||
'common.paste' => 'Pegar',
|
||||
'common.connect' => 'Conectar',
|
||||
'common.disconnect' => 'Desconectar',
|
||||
@@ -1350,7 +1324,6 @@ extension on TranslationsEs {
|
||||
'common.settings' => 'Ajustes',
|
||||
'common.mute' => 'Silencio',
|
||||
'common.ok' => 'OK',
|
||||
'common.loading' => 'Cargando...',
|
||||
'common.reconnect' => 'Reconectar',
|
||||
'common.exitConfirmTitle' => '¿Salir de la app?',
|
||||
'common.exitConfirmMessage' => '¿Estás seguro de que quieres salir?',
|
||||
@@ -1437,6 +1410,8 @@ extension on TranslationsEs {
|
||||
'settings.subtitleStylingDescription' => 'Personalizar la apariencia de los subtítulos',
|
||||
'settings.smallSkipDuration' => 'Salto pequeño',
|
||||
'settings.largeSkipDuration' => 'Salto grande',
|
||||
'settings.rewindOnResume' => 'Rebobinar al reanudar',
|
||||
'settings.rewindOnResumeDescription' => 'Rebobinar esta cantidad al reanudar la reproducción',
|
||||
'settings.secondsUnit' => ({required Object seconds}) => '${seconds} segundos',
|
||||
'settings.defaultSleepTimer' => 'Temporizador de apagado',
|
||||
'settings.minutesUnit' => ({required Object minutes}) => '${minutes} minutos',
|
||||
@@ -1514,6 +1489,8 @@ extension on TranslationsEs {
|
||||
'settings.confirmExitOnBackDescription' => 'Mostrar un diálogo de confirmación al presionar atrás para salir de la app',
|
||||
'settings.showNavBarLabels' => 'Mostrar etiquetas de la barra de navegación',
|
||||
'settings.showNavBarLabelsDescription' => 'Mostrar etiquetas de texto bajo los iconos de la barra de navegación',
|
||||
'settings.liveTvDefaultFavorites' => 'Canales favoritos por defecto',
|
||||
'settings.liveTvDefaultFavoritesDescription' => 'Mostrar solo canales favoritos al abrir TV en vivo',
|
||||
'search.hint' => 'Buscar películas, series, música...',
|
||||
'search.tryDifferentTerm' => 'Prueba con un término de búsqueda diferente',
|
||||
'search.searchYourMedia' => 'Busca en tu contenido',
|
||||
@@ -1539,9 +1516,6 @@ extension on TranslationsEs {
|
||||
'hotkeys.actions.subSeekPrev' => 'Ir al Anterior Subtítulo',
|
||||
'hotkeys.actions.shaderToggle' => 'Alternar Shaders',
|
||||
'hotkeys.actions.skipMarker' => 'Saltar Intro/Créditos',
|
||||
'pinEntry.enterPin' => 'Introduce el PIN',
|
||||
'pinEntry.showPin' => 'Mostrar PIN',
|
||||
'pinEntry.hidePin' => 'Ocultar PIN',
|
||||
'fileInfo.title' => 'Información del Archivo',
|
||||
'fileInfo.video' => 'Video',
|
||||
'fileInfo.audio' => 'Audio',
|
||||
@@ -1605,7 +1579,6 @@ extension on TranslationsEs {
|
||||
'videoControls.unlockRotation' => 'Desbloquear rotación',
|
||||
'videoControls.timerActive' => 'Temporizador Activo',
|
||||
'videoControls.playbackWillPauseIn' => ({required Object duration}) => 'La reproducción se pausará en ${duration}',
|
||||
'videoControls.sleepTimerCompleted' => 'Temporizador completado - reproducción pausada',
|
||||
'videoControls.stillWatching' => '¿Sigues viendo?',
|
||||
'videoControls.pausingIn' => ({required Object seconds}) => 'Pausa en ${seconds}s',
|
||||
'videoControls.continueWatching' => 'Continuar',
|
||||
@@ -1622,20 +1595,20 @@ extension on TranslationsEs {
|
||||
'videoControls.muteButton' => 'Silenciar',
|
||||
'videoControls.unmuteButton' => 'Activar sonido',
|
||||
'videoControls.settingsButton' => 'Ajustes de video',
|
||||
'videoControls.audioTrackButton' => 'Pistas de audio',
|
||||
'videoControls.subtitlesButton' => 'Subtítulos',
|
||||
'videoControls.tracksButton' => 'Audio y subtítulos',
|
||||
'videoControls.chaptersButton' => 'Capítulos',
|
||||
'videoControls.versionsButton' => 'Versiones de video',
|
||||
'videoControls.pipButton' => 'Modo PiP (Imagen en Imagen)',
|
||||
'videoControls.aspectRatioButton' => 'Relación de aspecto',
|
||||
'videoControls.ambientLighting' => 'Iluminación ambiental',
|
||||
'videoControls.ambientLightingOn' => 'Activar iluminación ambiental',
|
||||
'videoControls.ambientLightingOff' => 'Desactivar iluminación ambiental',
|
||||
'videoControls.fullscreenButton' => 'Entrar en pantalla completa',
|
||||
'videoControls.exitFullscreenButton' => 'Salir de pantalla completa',
|
||||
'videoControls.alwaysOnTopButton' => 'Siempre visible',
|
||||
'videoControls.rotationLockButton' => 'Bloqueo de rotación',
|
||||
'videoControls.lockScreen' => 'Bloquear pantalla',
|
||||
'videoControls.unlockScreen' => 'Desbloquear pantalla',
|
||||
'videoControls.screenLockButton' => 'Bloqueo de pantalla',
|
||||
'videoControls.longPressToUnlock' => 'Mantén pulsado para desbloquear',
|
||||
'videoControls.timelineSlider' => 'Línea de tiempo del video',
|
||||
'videoControls.volumeSlider' => 'Nivel de volumen',
|
||||
'videoControls.endsAt' => ({required Object time}) => 'Termina a las ${time}',
|
||||
@@ -1721,11 +1694,8 @@ extension on TranslationsEs {
|
||||
'discover.overview' => 'Resumen',
|
||||
'discover.cast' => 'Reparto',
|
||||
'discover.extras' => 'Tráilers y Extras',
|
||||
'discover.seasons' => 'Temporadas',
|
||||
'discover.studio' => 'Estudio',
|
||||
'discover.rating' => 'Calificación',
|
||||
'discover.episodeCount' => ({required Object count}) => '${count} episodios',
|
||||
'discover.watchedProgress' => ({required Object watched, required Object total}) => '${watched}/${total} vistos',
|
||||
'discover.movie' => 'Película',
|
||||
'discover.tvShow' => 'Serie de TV',
|
||||
'discover.minutesLeft' => ({required Object minutes}) => 'quedan ${minutes} min',
|
||||
@@ -1803,8 +1773,6 @@ extension on TranslationsEs {
|
||||
'logs.clearLogs' => 'Borrar Logs',
|
||||
'logs.copyLogs' => 'Copiar Logs',
|
||||
'logs.uploadLogs' => 'Subir registros',
|
||||
'logs.error' => 'Error:',
|
||||
'logs.stackTrace' => 'Traza de la pila (Stack Trace):',
|
||||
'licenses.relatedPackages' => 'Paquetes relacionados',
|
||||
'licenses.license' => 'Licencia',
|
||||
'licenses.licenseNumber' => ({required Object number}) => 'Licencia ${number}',
|
||||
@@ -1813,22 +1781,12 @@ extension on TranslationsEs {
|
||||
'navigation.downloads' => 'Descargas',
|
||||
'navigation.liveTv' => 'TV en vivo',
|
||||
'liveTv.title' => 'TV en vivo',
|
||||
'liveTv.channels' => 'Canales',
|
||||
'liveTv.guide' => 'Guía',
|
||||
'liveTv.noChannels' => 'No hay canales disponibles',
|
||||
'liveTv.noDvr' => 'No hay DVR configurado en ningún servidor',
|
||||
'liveTv.tuneFailed' => 'Error al sintonizar el canal',
|
||||
'liveTv.loading' => 'Cargando canales...',
|
||||
'liveTv.nowPlaying' => 'Reproduciendo ahora',
|
||||
'liveTv.noPrograms' => 'No hay datos de programación disponibles',
|
||||
'liveTv.channelNumber' => ({required Object number}) => 'Canal ${number}',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'liveTv.live' => 'EN VIVO',
|
||||
'liveTv.hd' => 'HD',
|
||||
'liveTv.premiere' => 'NUEVO',
|
||||
'liveTv.reloadGuide' => 'Recargar guía',
|
||||
'liveTv.allChannels' => 'Todos los canales',
|
||||
'liveTv.now' => 'Ahora',
|
||||
'liveTv.today' => 'Hoy',
|
||||
'liveTv.midnight' => 'Medianoche',
|
||||
@@ -1839,6 +1797,9 @@ extension on TranslationsEs {
|
||||
'liveTv.lateNight' => 'Trasnoche',
|
||||
'liveTv.whatsOn' => 'En emisión',
|
||||
'liveTv.watchChannel' => 'Ver canal',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'liveTv.favorites' => 'Favoritos',
|
||||
'collections.title' => 'Colecciones',
|
||||
'collections.collection' => 'Colección',
|
||||
'collections.empty' => 'La colección está vacía',
|
||||
@@ -2061,7 +2022,6 @@ extension on TranslationsEs {
|
||||
'externalPlayer.playerCommand' => 'Comando',
|
||||
'externalPlayer.playerPackage' => 'Nombre del paquete',
|
||||
'externalPlayer.playerUrlScheme' => 'Esquema URL',
|
||||
'externalPlayer.customPlayer' => 'Reproductor personalizado',
|
||||
'externalPlayer.off' => 'Desactivado',
|
||||
'externalPlayer.launchFailed' => 'No se pudo abrir el reproductor externo',
|
||||
'externalPlayer.appNotInstalled' => ({required Object name}) => '${name} no está instalado',
|
||||
|
||||
+20
-60
@@ -45,7 +45,6 @@ class TranslationsFr with BaseTranslations<AppLocale, Translations> implements T
|
||||
@override late final _TranslationsSettingsFr settings = _TranslationsSettingsFr._(_root);
|
||||
@override late final _TranslationsSearchFr search = _TranslationsSearchFr._(_root);
|
||||
@override late final _TranslationsHotkeysFr hotkeys = _TranslationsHotkeysFr._(_root);
|
||||
@override late final _TranslationsPinEntryFr pinEntry = _TranslationsPinEntryFr._(_root);
|
||||
@override late final _TranslationsFileInfoFr fileInfo = _TranslationsFileInfoFr._(_root);
|
||||
@override late final _TranslationsMediaMenuFr mediaMenu = _TranslationsMediaMenuFr._(_root);
|
||||
@override late final _TranslationsAccessibilityFr accessibility = _TranslationsAccessibilityFr._(_root);
|
||||
@@ -128,7 +127,6 @@ class _TranslationsCommonFr implements TranslationsCommonEn {
|
||||
@override String get shuffle => 'Mélanger';
|
||||
@override String get addTo => 'Ajouter à...';
|
||||
@override String get createNew => 'Créer';
|
||||
@override String get remove => 'Supprimer';
|
||||
@override String get paste => 'Coller';
|
||||
@override String get connect => 'Connecter';
|
||||
@override String get disconnect => 'Déconnecter';
|
||||
@@ -142,7 +140,6 @@ class _TranslationsCommonFr implements TranslationsCommonEn {
|
||||
@override String get settings => 'Réglages';
|
||||
@override String get mute => 'Muet';
|
||||
@override String get ok => 'OK';
|
||||
@override String get loading => 'Chargement...';
|
||||
@override String get reconnect => 'Reconnecter';
|
||||
@override String get exitConfirmTitle => 'Quitter l\'application ?';
|
||||
@override String get exitConfirmMessage => 'Êtes-vous sûr de vouloir quitter ?';
|
||||
@@ -256,6 +253,8 @@ class _TranslationsSettingsFr implements TranslationsSettingsEn {
|
||||
@override String get subtitleStylingDescription => 'Personnaliser l\'apparence des sous-titres';
|
||||
@override String get smallSkipDuration => 'Durée du petit saut';
|
||||
@override String get largeSkipDuration => 'Durée du grand saut';
|
||||
@override String get rewindOnResume => 'Rembobiner à la reprise';
|
||||
@override String get rewindOnResumeDescription => 'Rembobiner de cette durée lors de la reprise de la lecture';
|
||||
@override String secondsUnit({required Object seconds}) => '${seconds} secondes';
|
||||
@override String get defaultSleepTimer => 'Minuterie de mise en veille par défaut';
|
||||
@override String minutesUnit({required Object minutes}) => '${minutes} minutes';
|
||||
@@ -333,6 +332,8 @@ class _TranslationsSettingsFr implements TranslationsSettingsEn {
|
||||
@override String get confirmExitOnBackDescription => 'Afficher une boîte de dialogue de confirmation en appuyant sur retour pour quitter';
|
||||
@override String get showNavBarLabels => 'Afficher les libellés de la barre de navigation';
|
||||
@override String get showNavBarLabelsDescription => 'Afficher les libellés sous les icônes de la barre de navigation';
|
||||
@override String get liveTvDefaultFavorites => 'Chaînes favorites par défaut';
|
||||
@override String get liveTvDefaultFavoritesDescription => 'Afficher uniquement les chaînes favorites à l\'ouverture de la TV en direct';
|
||||
}
|
||||
|
||||
// Path: search
|
||||
@@ -360,18 +361,6 @@ class _TranslationsHotkeysFr implements TranslationsHotkeysEn {
|
||||
@override late final _TranslationsHotkeysActionsFr actions = _TranslationsHotkeysActionsFr._(_root);
|
||||
}
|
||||
|
||||
// Path: pinEntry
|
||||
class _TranslationsPinEntryFr implements TranslationsPinEntryEn {
|
||||
_TranslationsPinEntryFr._(this._root);
|
||||
|
||||
final TranslationsFr _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get enterPin => 'Entrer le code PIN';
|
||||
@override String get showPin => 'Afficher le code PIN';
|
||||
@override String get hidePin => 'Masquer le code PIN';
|
||||
}
|
||||
|
||||
// Path: fileInfo
|
||||
class _TranslationsFileInfoFr implements TranslationsFileInfoEn {
|
||||
_TranslationsFileInfoFr._(this._root);
|
||||
@@ -478,7 +467,6 @@ class _TranslationsVideoControlsFr implements TranslationsVideoControlsEn {
|
||||
@override String get unlockRotation => 'Déverrouiller la rotation';
|
||||
@override String get timerActive => 'Minuterie active';
|
||||
@override String playbackWillPauseIn({required Object duration}) => 'La lecture sera mise en pause dans ${duration}';
|
||||
@override String get sleepTimerCompleted => 'Minuterie de mise en veille terminée - lecture en pause';
|
||||
@override String get stillWatching => 'Toujours en train de regarder ?';
|
||||
@override String pausingIn({required Object seconds}) => 'Pause dans ${seconds}s';
|
||||
@override String get continueWatching => 'Continuer';
|
||||
@@ -495,20 +483,20 @@ class _TranslationsVideoControlsFr implements TranslationsVideoControlsEn {
|
||||
@override String get muteButton => 'Mute';
|
||||
@override String get unmuteButton => 'Dé-mute';
|
||||
@override String get settingsButton => 'Paramètres vidéo';
|
||||
@override String get audioTrackButton => 'Pistes audio';
|
||||
@override String get subtitlesButton => 'Sous-titres';
|
||||
@override String get tracksButton => 'Audio et sous-titres';
|
||||
@override String get chaptersButton => 'Chapitres';
|
||||
@override String get versionsButton => 'Versions vidéo';
|
||||
@override String get pipButton => 'Mode PiP (Picture-in-Picture)';
|
||||
@override String get aspectRatioButton => 'Format d\'image';
|
||||
@override String get ambientLighting => 'Éclairage ambiant';
|
||||
@override String get ambientLightingOn => 'Activer l\'éclairage ambiant';
|
||||
@override String get ambientLightingOff => 'Désactiver l\'éclairage ambiant';
|
||||
@override String get fullscreenButton => 'Passer en mode plein écran';
|
||||
@override String get exitFullscreenButton => 'Quitter le mode plein écran';
|
||||
@override String get alwaysOnTopButton => 'Toujours au premier plan';
|
||||
@override String get rotationLockButton => 'Verrouillage de rotation';
|
||||
@override String get lockScreen => 'Verrouiller l\'écran';
|
||||
@override String get unlockScreen => 'Déverrouiller l\'écran';
|
||||
@override String get screenLockButton => 'Verrouillage de l\'écran';
|
||||
@override String get longPressToUnlock => 'Appui long pour déverrouiller';
|
||||
@override String get timelineSlider => 'Timeline vidéo';
|
||||
@override String get volumeSlider => 'Niveau sonore';
|
||||
@override String endsAt({required Object time}) => 'Fin à ${time}';
|
||||
@@ -642,11 +630,8 @@ class _TranslationsDiscoverFr implements TranslationsDiscoverEn {
|
||||
@override String get overview => 'Aperçu';
|
||||
@override String get cast => 'Cast';
|
||||
@override String get extras => 'Bandes-annonces et Extras';
|
||||
@override String get seasons => 'Saisons';
|
||||
@override String get studio => 'Studio';
|
||||
@override String get rating => 'Évaluation';
|
||||
@override String episodeCount({required Object count}) => '${count} épisodes';
|
||||
@override String watchedProgress({required Object watched, required Object total}) => '${watched}/${total} vu';
|
||||
@override String get movie => 'Film';
|
||||
@override String get tvShow => 'Show TV';
|
||||
@override String minutesLeft({required Object minutes}) => '${minutes} min restantes';
|
||||
@@ -769,8 +754,6 @@ class _TranslationsLogsFr implements TranslationsLogsEn {
|
||||
@override String get clearLogs => 'Effacer les logs';
|
||||
@override String get copyLogs => 'Copier les logs';
|
||||
@override String get uploadLogs => 'Envoyer les logs';
|
||||
@override String get error => 'Erreur:';
|
||||
@override String get stackTrace => 'Liste des appels:';
|
||||
}
|
||||
|
||||
// Path: licenses
|
||||
@@ -806,20 +789,12 @@ class _TranslationsLiveTvFr implements TranslationsLiveTvEn {
|
||||
|
||||
// Translations
|
||||
@override String get title => 'TV en direct';
|
||||
@override String get channels => 'Chaînes';
|
||||
@override String get guide => 'Guide';
|
||||
@override String get noChannels => 'Aucune chaîne disponible';
|
||||
@override String get noDvr => 'Aucun DVR configuré sur les serveurs';
|
||||
@override String get tuneFailed => 'Impossible de syntoniser la chaîne';
|
||||
@override String get loading => 'Chargement des chaînes...';
|
||||
@override String get nowPlaying => 'En cours de lecture';
|
||||
@override String get noPrograms => 'Aucune donnée de programme disponible';
|
||||
@override String channelNumber({required Object number}) => 'Ch. ${number}';
|
||||
@override String get live => 'EN DIRECT';
|
||||
@override String get hd => 'HD';
|
||||
@override String get premiere => 'NOUVEAU';
|
||||
@override String get reloadGuide => 'Recharger le guide';
|
||||
@override String get allChannels => 'Toutes les chaînes';
|
||||
@override String get now => 'Maintenant';
|
||||
@override String get today => 'Aujourd\'hui';
|
||||
@override String get midnight => 'Minuit';
|
||||
@@ -830,6 +805,7 @@ class _TranslationsLiveTvFr implements TranslationsLiveTvEn {
|
||||
@override String get lateNight => 'Nuit tardive';
|
||||
@override String get whatsOn => 'En ce moment';
|
||||
@override String get watchChannel => 'Regarder la chaîne';
|
||||
@override String get favorites => 'Favoris';
|
||||
}
|
||||
|
||||
// Path: collections
|
||||
@@ -1058,7 +1034,6 @@ class _TranslationsExternalPlayerFr implements TranslationsExternalPlayerEn {
|
||||
@override String get playerCommand => 'Commande';
|
||||
@override String get playerPackage => 'Nom du paquet';
|
||||
@override String get playerUrlScheme => 'Schéma URL';
|
||||
@override String get customPlayer => 'Lecteur personnalisé';
|
||||
@override String get off => 'Désactivé';
|
||||
@override String get launchFailed => 'Impossible d\'ouvrir le lecteur externe';
|
||||
@override String appNotInstalled({required Object name}) => '${name} n\'est pas installé';
|
||||
@@ -1336,7 +1311,6 @@ extension on TranslationsFr {
|
||||
'common.shuffle' => 'Mélanger',
|
||||
'common.addTo' => 'Ajouter à...',
|
||||
'common.createNew' => 'Créer',
|
||||
'common.remove' => 'Supprimer',
|
||||
'common.paste' => 'Coller',
|
||||
'common.connect' => 'Connecter',
|
||||
'common.disconnect' => 'Déconnecter',
|
||||
@@ -1350,7 +1324,6 @@ extension on TranslationsFr {
|
||||
'common.settings' => 'Réglages',
|
||||
'common.mute' => 'Muet',
|
||||
'common.ok' => 'OK',
|
||||
'common.loading' => 'Chargement...',
|
||||
'common.reconnect' => 'Reconnecter',
|
||||
'common.exitConfirmTitle' => 'Quitter l\'application ?',
|
||||
'common.exitConfirmMessage' => 'Êtes-vous sûr de vouloir quitter ?',
|
||||
@@ -1437,6 +1410,8 @@ extension on TranslationsFr {
|
||||
'settings.subtitleStylingDescription' => 'Personnaliser l\'apparence des sous-titres',
|
||||
'settings.smallSkipDuration' => 'Durée du petit saut',
|
||||
'settings.largeSkipDuration' => 'Durée du grand saut',
|
||||
'settings.rewindOnResume' => 'Rembobiner à la reprise',
|
||||
'settings.rewindOnResumeDescription' => 'Rembobiner de cette durée lors de la reprise de la lecture',
|
||||
'settings.secondsUnit' => ({required Object seconds}) => '${seconds} secondes',
|
||||
'settings.defaultSleepTimer' => 'Minuterie de mise en veille par défaut',
|
||||
'settings.minutesUnit' => ({required Object minutes}) => '${minutes} minutes',
|
||||
@@ -1514,6 +1489,8 @@ extension on TranslationsFr {
|
||||
'settings.confirmExitOnBackDescription' => 'Afficher une boîte de dialogue de confirmation en appuyant sur retour pour quitter',
|
||||
'settings.showNavBarLabels' => 'Afficher les libellés de la barre de navigation',
|
||||
'settings.showNavBarLabelsDescription' => 'Afficher les libellés sous les icônes de la barre de navigation',
|
||||
'settings.liveTvDefaultFavorites' => 'Chaînes favorites par défaut',
|
||||
'settings.liveTvDefaultFavoritesDescription' => 'Afficher uniquement les chaînes favorites à l\'ouverture de la TV en direct',
|
||||
'search.hint' => 'Rechercher des films, des séries, de la musique...',
|
||||
'search.tryDifferentTerm' => 'Essayez un autre terme de recherche',
|
||||
'search.searchYourMedia' => 'Rechercher dans vos médias',
|
||||
@@ -1539,9 +1516,6 @@ extension on TranslationsFr {
|
||||
'hotkeys.actions.subSeekPrev' => 'Rechercher le sous-titre précédent',
|
||||
'hotkeys.actions.shaderToggle' => 'Activer/désactiver les shaders',
|
||||
'hotkeys.actions.skipMarker' => 'Passer l\'intro/le générique',
|
||||
'pinEntry.enterPin' => 'Entrer le code PIN',
|
||||
'pinEntry.showPin' => 'Afficher le code PIN',
|
||||
'pinEntry.hidePin' => 'Masquer le code PIN',
|
||||
'fileInfo.title' => 'Informations sur le fichier',
|
||||
'fileInfo.video' => 'Vidéo',
|
||||
'fileInfo.audio' => 'Audio',
|
||||
@@ -1605,7 +1579,6 @@ extension on TranslationsFr {
|
||||
'videoControls.unlockRotation' => 'Déverrouiller la rotation',
|
||||
'videoControls.timerActive' => 'Minuterie active',
|
||||
'videoControls.playbackWillPauseIn' => ({required Object duration}) => 'La lecture sera mise en pause dans ${duration}',
|
||||
'videoControls.sleepTimerCompleted' => 'Minuterie de mise en veille terminée - lecture en pause',
|
||||
'videoControls.stillWatching' => 'Toujours en train de regarder ?',
|
||||
'videoControls.pausingIn' => ({required Object seconds}) => 'Pause dans ${seconds}s',
|
||||
'videoControls.continueWatching' => 'Continuer',
|
||||
@@ -1622,20 +1595,20 @@ extension on TranslationsFr {
|
||||
'videoControls.muteButton' => 'Mute',
|
||||
'videoControls.unmuteButton' => 'Dé-mute',
|
||||
'videoControls.settingsButton' => 'Paramètres vidéo',
|
||||
'videoControls.audioTrackButton' => 'Pistes audio',
|
||||
'videoControls.subtitlesButton' => 'Sous-titres',
|
||||
'videoControls.tracksButton' => 'Audio et sous-titres',
|
||||
'videoControls.chaptersButton' => 'Chapitres',
|
||||
'videoControls.versionsButton' => 'Versions vidéo',
|
||||
'videoControls.pipButton' => 'Mode PiP (Picture-in-Picture)',
|
||||
'videoControls.aspectRatioButton' => 'Format d\'image',
|
||||
'videoControls.ambientLighting' => 'Éclairage ambiant',
|
||||
'videoControls.ambientLightingOn' => 'Activer l\'éclairage ambiant',
|
||||
'videoControls.ambientLightingOff' => 'Désactiver l\'éclairage ambiant',
|
||||
'videoControls.fullscreenButton' => 'Passer en mode plein écran',
|
||||
'videoControls.exitFullscreenButton' => 'Quitter le mode plein écran',
|
||||
'videoControls.alwaysOnTopButton' => 'Toujours au premier plan',
|
||||
'videoControls.rotationLockButton' => 'Verrouillage de rotation',
|
||||
'videoControls.lockScreen' => 'Verrouiller l\'écran',
|
||||
'videoControls.unlockScreen' => 'Déverrouiller l\'écran',
|
||||
'videoControls.screenLockButton' => 'Verrouillage de l\'écran',
|
||||
'videoControls.longPressToUnlock' => 'Appui long pour déverrouiller',
|
||||
'videoControls.timelineSlider' => 'Timeline vidéo',
|
||||
'videoControls.volumeSlider' => 'Niveau sonore',
|
||||
'videoControls.endsAt' => ({required Object time}) => 'Fin à ${time}',
|
||||
@@ -1721,11 +1694,8 @@ extension on TranslationsFr {
|
||||
'discover.overview' => 'Aperçu',
|
||||
'discover.cast' => 'Cast',
|
||||
'discover.extras' => 'Bandes-annonces et Extras',
|
||||
'discover.seasons' => 'Saisons',
|
||||
'discover.studio' => 'Studio',
|
||||
'discover.rating' => 'Évaluation',
|
||||
'discover.episodeCount' => ({required Object count}) => '${count} épisodes',
|
||||
'discover.watchedProgress' => ({required Object watched, required Object total}) => '${watched}/${total} vu',
|
||||
'discover.movie' => 'Film',
|
||||
'discover.tvShow' => 'Show TV',
|
||||
'discover.minutesLeft' => ({required Object minutes}) => '${minutes} min restantes',
|
||||
@@ -1803,8 +1773,6 @@ extension on TranslationsFr {
|
||||
'logs.clearLogs' => 'Effacer les logs',
|
||||
'logs.copyLogs' => 'Copier les logs',
|
||||
'logs.uploadLogs' => 'Envoyer les logs',
|
||||
'logs.error' => 'Erreur:',
|
||||
'logs.stackTrace' => 'Liste des appels:',
|
||||
'licenses.relatedPackages' => 'Package associés',
|
||||
'licenses.license' => 'Licence',
|
||||
'licenses.licenseNumber' => ({required Object number}) => 'Licence ${number}',
|
||||
@@ -1813,22 +1781,12 @@ extension on TranslationsFr {
|
||||
'navigation.downloads' => 'Téléch.',
|
||||
'navigation.liveTv' => 'TV direct',
|
||||
'liveTv.title' => 'TV en direct',
|
||||
'liveTv.channels' => 'Chaînes',
|
||||
'liveTv.guide' => 'Guide',
|
||||
'liveTv.noChannels' => 'Aucune chaîne disponible',
|
||||
'liveTv.noDvr' => 'Aucun DVR configuré sur les serveurs',
|
||||
'liveTv.tuneFailed' => 'Impossible de syntoniser la chaîne',
|
||||
'liveTv.loading' => 'Chargement des chaînes...',
|
||||
'liveTv.nowPlaying' => 'En cours de lecture',
|
||||
'liveTv.noPrograms' => 'Aucune donnée de programme disponible',
|
||||
'liveTv.channelNumber' => ({required Object number}) => 'Ch. ${number}',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'liveTv.live' => 'EN DIRECT',
|
||||
'liveTv.hd' => 'HD',
|
||||
'liveTv.premiere' => 'NOUVEAU',
|
||||
'liveTv.reloadGuide' => 'Recharger le guide',
|
||||
'liveTv.allChannels' => 'Toutes les chaînes',
|
||||
'liveTv.now' => 'Maintenant',
|
||||
'liveTv.today' => 'Aujourd\'hui',
|
||||
'liveTv.midnight' => 'Minuit',
|
||||
@@ -1839,6 +1797,9 @@ extension on TranslationsFr {
|
||||
'liveTv.lateNight' => 'Nuit tardive',
|
||||
'liveTv.whatsOn' => 'En ce moment',
|
||||
'liveTv.watchChannel' => 'Regarder la chaîne',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'liveTv.favorites' => 'Favoris',
|
||||
'collections.title' => 'Collections',
|
||||
'collections.collection' => 'Collection',
|
||||
'collections.empty' => 'La collection est vide',
|
||||
@@ -2061,7 +2022,6 @@ extension on TranslationsFr {
|
||||
'externalPlayer.playerCommand' => 'Commande',
|
||||
'externalPlayer.playerPackage' => 'Nom du paquet',
|
||||
'externalPlayer.playerUrlScheme' => 'Schéma URL',
|
||||
'externalPlayer.customPlayer' => 'Lecteur personnalisé',
|
||||
'externalPlayer.off' => 'Désactivé',
|
||||
'externalPlayer.launchFailed' => 'Impossible d\'ouvrir le lecteur externe',
|
||||
'externalPlayer.appNotInstalled' => ({required Object name}) => '${name} n\'est pas installé',
|
||||
|
||||
+20
-60
@@ -45,7 +45,6 @@ class TranslationsIt with BaseTranslations<AppLocale, Translations> implements T
|
||||
@override late final _TranslationsSettingsIt settings = _TranslationsSettingsIt._(_root);
|
||||
@override late final _TranslationsSearchIt search = _TranslationsSearchIt._(_root);
|
||||
@override late final _TranslationsHotkeysIt hotkeys = _TranslationsHotkeysIt._(_root);
|
||||
@override late final _TranslationsPinEntryIt pinEntry = _TranslationsPinEntryIt._(_root);
|
||||
@override late final _TranslationsFileInfoIt fileInfo = _TranslationsFileInfoIt._(_root);
|
||||
@override late final _TranslationsMediaMenuIt mediaMenu = _TranslationsMediaMenuIt._(_root);
|
||||
@override late final _TranslationsAccessibilityIt accessibility = _TranslationsAccessibilityIt._(_root);
|
||||
@@ -128,7 +127,6 @@ class _TranslationsCommonIt implements TranslationsCommonEn {
|
||||
@override String get shuffle => 'Casuale';
|
||||
@override String get addTo => 'Aggiungi a...';
|
||||
@override String get createNew => 'Crea';
|
||||
@override String get remove => 'Rimuovi';
|
||||
@override String get paste => 'Incolla';
|
||||
@override String get connect => 'Connetti';
|
||||
@override String get disconnect => 'Disconnetti';
|
||||
@@ -142,7 +140,6 @@ class _TranslationsCommonIt implements TranslationsCommonEn {
|
||||
@override String get settings => 'Opzioni';
|
||||
@override String get mute => 'Muto';
|
||||
@override String get ok => 'OK';
|
||||
@override String get loading => 'Caricamento...';
|
||||
@override String get reconnect => 'Riconnetti';
|
||||
@override String get exitConfirmTitle => 'Uscire dall\'app?';
|
||||
@override String get exitConfirmMessage => 'Sei sicuro di voler uscire?';
|
||||
@@ -256,6 +253,8 @@ class _TranslationsSettingsIt implements TranslationsSettingsEn {
|
||||
@override String get subtitleStylingDescription => 'Personalizza l\'aspetto dei sottotitoli';
|
||||
@override String get smallSkipDuration => 'Durata skip breve';
|
||||
@override String get largeSkipDuration => 'Durata skip lungo';
|
||||
@override String get rewindOnResume => 'Riavvolgi alla ripresa';
|
||||
@override String get rewindOnResumeDescription => 'Riavvolgi di questa quantità alla ripresa della riproduzione';
|
||||
@override String secondsUnit({required Object seconds}) => '${seconds} secondi';
|
||||
@override String get defaultSleepTimer => 'Timer spegnimento predefinito';
|
||||
@override String minutesUnit({required Object minutes}) => '${minutes} minuti';
|
||||
@@ -333,6 +332,8 @@ class _TranslationsSettingsIt implements TranslationsSettingsEn {
|
||||
@override String get confirmExitOnBackDescription => 'Mostra una finestra di conferma quando si preme indietro per uscire dall\'app';
|
||||
@override String get showNavBarLabels => 'Mostra etichette barra di navigazione';
|
||||
@override String get showNavBarLabelsDescription => 'Mostra le etichette sotto le icone della barra di navigazione';
|
||||
@override String get liveTvDefaultFavorites => 'Canali preferiti predefiniti';
|
||||
@override String get liveTvDefaultFavoritesDescription => 'Mostra solo i canali preferiti all\'apertura della TV dal vivo';
|
||||
}
|
||||
|
||||
// Path: search
|
||||
@@ -360,18 +361,6 @@ class _TranslationsHotkeysIt implements TranslationsHotkeysEn {
|
||||
@override late final _TranslationsHotkeysActionsIt actions = _TranslationsHotkeysActionsIt._(_root);
|
||||
}
|
||||
|
||||
// Path: pinEntry
|
||||
class _TranslationsPinEntryIt implements TranslationsPinEntryEn {
|
||||
_TranslationsPinEntryIt._(this._root);
|
||||
|
||||
final TranslationsIt _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get enterPin => 'Inserisci PIN';
|
||||
@override String get showPin => 'Mostra PIN';
|
||||
@override String get hidePin => 'Nascondi PIN';
|
||||
}
|
||||
|
||||
// Path: fileInfo
|
||||
class _TranslationsFileInfoIt implements TranslationsFileInfoEn {
|
||||
_TranslationsFileInfoIt._(this._root);
|
||||
@@ -478,7 +467,6 @@ class _TranslationsVideoControlsIt implements TranslationsVideoControlsEn {
|
||||
@override String get unlockRotation => 'Sblocca rotazione';
|
||||
@override String get timerActive => 'Timer attivo';
|
||||
@override String playbackWillPauseIn({required Object duration}) => 'La riproduzione si interromperà tra ${duration}';
|
||||
@override String get sleepTimerCompleted => 'Timer di spegnimento completato - riproduzione in pausa';
|
||||
@override String get stillWatching => 'Stai ancora guardando?';
|
||||
@override String pausingIn({required Object seconds}) => 'Pausa tra ${seconds}s';
|
||||
@override String get continueWatching => 'Continua';
|
||||
@@ -495,20 +483,20 @@ class _TranslationsVideoControlsIt implements TranslationsVideoControlsEn {
|
||||
@override String get muteButton => 'Silenzia';
|
||||
@override String get unmuteButton => 'Riattiva audio';
|
||||
@override String get settingsButton => 'Impostazioni video';
|
||||
@override String get audioTrackButton => 'Tracce audio';
|
||||
@override String get subtitlesButton => 'Sottotitoli';
|
||||
@override String get tracksButton => 'Audio e sottotitoli';
|
||||
@override String get chaptersButton => 'Capitoli';
|
||||
@override String get versionsButton => 'Versioni video';
|
||||
@override String get pipButton => 'Modalità Picture-in-Picture';
|
||||
@override String get aspectRatioButton => 'Proporzioni';
|
||||
@override String get ambientLighting => 'Illuminazione ambientale';
|
||||
@override String get ambientLightingOn => 'Attiva illuminazione ambientale';
|
||||
@override String get ambientLightingOff => 'Disattiva illuminazione ambientale';
|
||||
@override String get fullscreenButton => 'Attiva schermo intero';
|
||||
@override String get exitFullscreenButton => 'Esci da schermo intero';
|
||||
@override String get alwaysOnTopButton => 'Sempre in primo piano';
|
||||
@override String get rotationLockButton => 'Blocco rotazione';
|
||||
@override String get lockScreen => 'Blocca schermo';
|
||||
@override String get unlockScreen => 'Sblocca schermo';
|
||||
@override String get screenLockButton => 'Blocco schermo';
|
||||
@override String get longPressToUnlock => 'Premi a lungo per sbloccare';
|
||||
@override String get timelineSlider => 'Timeline video';
|
||||
@override String get volumeSlider => 'Livello volume';
|
||||
@override String endsAt({required Object time}) => 'Finisce alle ${time}';
|
||||
@@ -642,11 +630,8 @@ class _TranslationsDiscoverIt implements TranslationsDiscoverEn {
|
||||
@override String get overview => 'Panoramica';
|
||||
@override String get cast => 'Attori';
|
||||
@override String get extras => 'Trailer ed Extra';
|
||||
@override String get seasons => 'Stagioni';
|
||||
@override String get studio => 'Studio';
|
||||
@override String get rating => 'Classificazione';
|
||||
@override String episodeCount({required Object count}) => '${count} episodi';
|
||||
@override String watchedProgress({required Object watched, required Object total}) => '${watched}/${total} guardati';
|
||||
@override String get movie => 'Film';
|
||||
@override String get tvShow => 'Serie TV';
|
||||
@override String minutesLeft({required Object minutes}) => '${minutes} minuti rimanenti';
|
||||
@@ -769,8 +754,6 @@ class _TranslationsLogsIt implements TranslationsLogsEn {
|
||||
@override String get clearLogs => 'Cancella log';
|
||||
@override String get copyLogs => 'Copia log';
|
||||
@override String get uploadLogs => 'Carica log';
|
||||
@override String get error => 'Errore:';
|
||||
@override String get stackTrace => 'Traccia dello stack:';
|
||||
}
|
||||
|
||||
// Path: licenses
|
||||
@@ -806,20 +789,12 @@ class _TranslationsLiveTvIt implements TranslationsLiveTvEn {
|
||||
|
||||
// Translations
|
||||
@override String get title => 'TV in diretta';
|
||||
@override String get channels => 'Canali';
|
||||
@override String get guide => 'Guida';
|
||||
@override String get noChannels => 'Nessun canale disponibile';
|
||||
@override String get noDvr => 'Nessun DVR configurato su nessun server';
|
||||
@override String get tuneFailed => 'Impossibile sintonizzare il canale';
|
||||
@override String get loading => 'Caricamento canali...';
|
||||
@override String get nowPlaying => 'In riproduzione';
|
||||
@override String get noPrograms => 'Nessun dato di programma disponibile';
|
||||
@override String channelNumber({required Object number}) => 'Canale ${number}';
|
||||
@override String get live => 'IN DIRETTA';
|
||||
@override String get hd => 'HD';
|
||||
@override String get premiere => 'NUOVO';
|
||||
@override String get reloadGuide => 'Ricarica guida';
|
||||
@override String get allChannels => 'Tutti i canali';
|
||||
@override String get now => 'Ora';
|
||||
@override String get today => 'Oggi';
|
||||
@override String get midnight => 'Mezzanotte';
|
||||
@@ -830,6 +805,7 @@ class _TranslationsLiveTvIt implements TranslationsLiveTvEn {
|
||||
@override String get lateNight => 'Notte tarda';
|
||||
@override String get whatsOn => 'In onda ora';
|
||||
@override String get watchChannel => 'Guarda canale';
|
||||
@override String get favorites => 'Preferiti';
|
||||
}
|
||||
|
||||
// Path: downloads
|
||||
@@ -1058,7 +1034,6 @@ class _TranslationsExternalPlayerIt implements TranslationsExternalPlayerEn {
|
||||
@override String get playerCommand => 'Comando';
|
||||
@override String get playerPackage => 'Nome pacchetto';
|
||||
@override String get playerUrlScheme => 'Schema URL';
|
||||
@override String get customPlayer => 'Lettore personalizzato';
|
||||
@override String get off => 'Disattivato';
|
||||
@override String get launchFailed => 'Impossibile aprire il lettore esterno';
|
||||
@override String appNotInstalled({required Object name}) => '${name} non è installato';
|
||||
@@ -1336,7 +1311,6 @@ extension on TranslationsIt {
|
||||
'common.shuffle' => 'Casuale',
|
||||
'common.addTo' => 'Aggiungi a...',
|
||||
'common.createNew' => 'Crea',
|
||||
'common.remove' => 'Rimuovi',
|
||||
'common.paste' => 'Incolla',
|
||||
'common.connect' => 'Connetti',
|
||||
'common.disconnect' => 'Disconnetti',
|
||||
@@ -1350,7 +1324,6 @@ extension on TranslationsIt {
|
||||
'common.settings' => 'Opzioni',
|
||||
'common.mute' => 'Muto',
|
||||
'common.ok' => 'OK',
|
||||
'common.loading' => 'Caricamento...',
|
||||
'common.reconnect' => 'Riconnetti',
|
||||
'common.exitConfirmTitle' => 'Uscire dall\'app?',
|
||||
'common.exitConfirmMessage' => 'Sei sicuro di voler uscire?',
|
||||
@@ -1437,6 +1410,8 @@ extension on TranslationsIt {
|
||||
'settings.subtitleStylingDescription' => 'Personalizza l\'aspetto dei sottotitoli',
|
||||
'settings.smallSkipDuration' => 'Durata skip breve',
|
||||
'settings.largeSkipDuration' => 'Durata skip lungo',
|
||||
'settings.rewindOnResume' => 'Riavvolgi alla ripresa',
|
||||
'settings.rewindOnResumeDescription' => 'Riavvolgi di questa quantità alla ripresa della riproduzione',
|
||||
'settings.secondsUnit' => ({required Object seconds}) => '${seconds} secondi',
|
||||
'settings.defaultSleepTimer' => 'Timer spegnimento predefinito',
|
||||
'settings.minutesUnit' => ({required Object minutes}) => '${minutes} minuti',
|
||||
@@ -1514,6 +1489,8 @@ extension on TranslationsIt {
|
||||
'settings.confirmExitOnBackDescription' => 'Mostra una finestra di conferma quando si preme indietro per uscire dall\'app',
|
||||
'settings.showNavBarLabels' => 'Mostra etichette barra di navigazione',
|
||||
'settings.showNavBarLabelsDescription' => 'Mostra le etichette sotto le icone della barra di navigazione',
|
||||
'settings.liveTvDefaultFavorites' => 'Canali preferiti predefiniti',
|
||||
'settings.liveTvDefaultFavoritesDescription' => 'Mostra solo i canali preferiti all\'apertura della TV dal vivo',
|
||||
'search.hint' => 'Cerca film. spettacoli, musica...',
|
||||
'search.tryDifferentTerm' => 'Prova altri termini di ricerca',
|
||||
'search.searchYourMedia' => 'Cerca nei tuoi media',
|
||||
@@ -1539,9 +1516,6 @@ extension on TranslationsIt {
|
||||
'hotkeys.actions.subSeekPrev' => 'Vai al sottotitolo precedente',
|
||||
'hotkeys.actions.shaderToggle' => 'Attiva/disattiva shader',
|
||||
'hotkeys.actions.skipMarker' => 'Salta intro/titoli di coda',
|
||||
'pinEntry.enterPin' => 'Inserisci PIN',
|
||||
'pinEntry.showPin' => 'Mostra PIN',
|
||||
'pinEntry.hidePin' => 'Nascondi PIN',
|
||||
'fileInfo.title' => 'Info sul file',
|
||||
'fileInfo.video' => 'Video',
|
||||
'fileInfo.audio' => 'Audio',
|
||||
@@ -1605,7 +1579,6 @@ extension on TranslationsIt {
|
||||
'videoControls.unlockRotation' => 'Sblocca rotazione',
|
||||
'videoControls.timerActive' => 'Timer attivo',
|
||||
'videoControls.playbackWillPauseIn' => ({required Object duration}) => 'La riproduzione si interromperà tra ${duration}',
|
||||
'videoControls.sleepTimerCompleted' => 'Timer di spegnimento completato - riproduzione in pausa',
|
||||
'videoControls.stillWatching' => 'Stai ancora guardando?',
|
||||
'videoControls.pausingIn' => ({required Object seconds}) => 'Pausa tra ${seconds}s',
|
||||
'videoControls.continueWatching' => 'Continua',
|
||||
@@ -1622,20 +1595,20 @@ extension on TranslationsIt {
|
||||
'videoControls.muteButton' => 'Silenzia',
|
||||
'videoControls.unmuteButton' => 'Riattiva audio',
|
||||
'videoControls.settingsButton' => 'Impostazioni video',
|
||||
'videoControls.audioTrackButton' => 'Tracce audio',
|
||||
'videoControls.subtitlesButton' => 'Sottotitoli',
|
||||
'videoControls.tracksButton' => 'Audio e sottotitoli',
|
||||
'videoControls.chaptersButton' => 'Capitoli',
|
||||
'videoControls.versionsButton' => 'Versioni video',
|
||||
'videoControls.pipButton' => 'Modalità Picture-in-Picture',
|
||||
'videoControls.aspectRatioButton' => 'Proporzioni',
|
||||
'videoControls.ambientLighting' => 'Illuminazione ambientale',
|
||||
'videoControls.ambientLightingOn' => 'Attiva illuminazione ambientale',
|
||||
'videoControls.ambientLightingOff' => 'Disattiva illuminazione ambientale',
|
||||
'videoControls.fullscreenButton' => 'Attiva schermo intero',
|
||||
'videoControls.exitFullscreenButton' => 'Esci da schermo intero',
|
||||
'videoControls.alwaysOnTopButton' => 'Sempre in primo piano',
|
||||
'videoControls.rotationLockButton' => 'Blocco rotazione',
|
||||
'videoControls.lockScreen' => 'Blocca schermo',
|
||||
'videoControls.unlockScreen' => 'Sblocca schermo',
|
||||
'videoControls.screenLockButton' => 'Blocco schermo',
|
||||
'videoControls.longPressToUnlock' => 'Premi a lungo per sbloccare',
|
||||
'videoControls.timelineSlider' => 'Timeline video',
|
||||
'videoControls.volumeSlider' => 'Livello volume',
|
||||
'videoControls.endsAt' => ({required Object time}) => 'Finisce alle ${time}',
|
||||
@@ -1721,11 +1694,8 @@ extension on TranslationsIt {
|
||||
'discover.overview' => 'Panoramica',
|
||||
'discover.cast' => 'Attori',
|
||||
'discover.extras' => 'Trailer ed Extra',
|
||||
'discover.seasons' => 'Stagioni',
|
||||
'discover.studio' => 'Studio',
|
||||
'discover.rating' => 'Classificazione',
|
||||
'discover.episodeCount' => ({required Object count}) => '${count} episodi',
|
||||
'discover.watchedProgress' => ({required Object watched, required Object total}) => '${watched}/${total} guardati',
|
||||
'discover.movie' => 'Film',
|
||||
'discover.tvShow' => 'Serie TV',
|
||||
'discover.minutesLeft' => ({required Object minutes}) => '${minutes} minuti rimanenti',
|
||||
@@ -1803,8 +1773,6 @@ extension on TranslationsIt {
|
||||
'logs.clearLogs' => 'Cancella log',
|
||||
'logs.copyLogs' => 'Copia log',
|
||||
'logs.uploadLogs' => 'Carica log',
|
||||
'logs.error' => 'Errore:',
|
||||
'logs.stackTrace' => 'Traccia dello stack:',
|
||||
'licenses.relatedPackages' => 'Pacchetti correlati',
|
||||
'licenses.license' => 'Licenza',
|
||||
'licenses.licenseNumber' => ({required Object number}) => 'Licenza ${number}',
|
||||
@@ -1813,22 +1781,12 @@ extension on TranslationsIt {
|
||||
'navigation.downloads' => 'Download',
|
||||
'navigation.liveTv' => 'TV Live',
|
||||
'liveTv.title' => 'TV in diretta',
|
||||
'liveTv.channels' => 'Canali',
|
||||
'liveTv.guide' => 'Guida',
|
||||
'liveTv.noChannels' => 'Nessun canale disponibile',
|
||||
'liveTv.noDvr' => 'Nessun DVR configurato su nessun server',
|
||||
'liveTv.tuneFailed' => 'Impossibile sintonizzare il canale',
|
||||
'liveTv.loading' => 'Caricamento canali...',
|
||||
'liveTv.nowPlaying' => 'In riproduzione',
|
||||
'liveTv.noPrograms' => 'Nessun dato di programma disponibile',
|
||||
'liveTv.channelNumber' => ({required Object number}) => 'Canale ${number}',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'liveTv.live' => 'IN DIRETTA',
|
||||
'liveTv.hd' => 'HD',
|
||||
'liveTv.premiere' => 'NUOVO',
|
||||
'liveTv.reloadGuide' => 'Ricarica guida',
|
||||
'liveTv.allChannels' => 'Tutti i canali',
|
||||
'liveTv.now' => 'Ora',
|
||||
'liveTv.today' => 'Oggi',
|
||||
'liveTv.midnight' => 'Mezzanotte',
|
||||
@@ -1839,6 +1797,9 @@ extension on TranslationsIt {
|
||||
'liveTv.lateNight' => 'Notte tarda',
|
||||
'liveTv.whatsOn' => 'In onda ora',
|
||||
'liveTv.watchChannel' => 'Guarda canale',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'liveTv.favorites' => 'Preferiti',
|
||||
'downloads.title' => 'Download',
|
||||
'downloads.manage' => 'Gestisci',
|
||||
'downloads.tvShows' => 'Serie TV',
|
||||
@@ -2061,7 +2022,6 @@ extension on TranslationsIt {
|
||||
'externalPlayer.playerCommand' => 'Comando',
|
||||
'externalPlayer.playerPackage' => 'Nome pacchetto',
|
||||
'externalPlayer.playerUrlScheme' => 'Schema URL',
|
||||
'externalPlayer.customPlayer' => 'Lettore personalizzato',
|
||||
'externalPlayer.off' => 'Disattivato',
|
||||
'externalPlayer.launchFailed' => 'Impossibile aprire il lettore esterno',
|
||||
'externalPlayer.appNotInstalled' => ({required Object name}) => '${name} non è installato',
|
||||
|
||||
+20
-60
@@ -45,7 +45,6 @@ class TranslationsJa with BaseTranslations<AppLocale, Translations> implements T
|
||||
@override late final _TranslationsSettingsJa settings = _TranslationsSettingsJa._(_root);
|
||||
@override late final _TranslationsSearchJa search = _TranslationsSearchJa._(_root);
|
||||
@override late final _TranslationsHotkeysJa hotkeys = _TranslationsHotkeysJa._(_root);
|
||||
@override late final _TranslationsPinEntryJa pinEntry = _TranslationsPinEntryJa._(_root);
|
||||
@override late final _TranslationsFileInfoJa fileInfo = _TranslationsFileInfoJa._(_root);
|
||||
@override late final _TranslationsMediaMenuJa mediaMenu = _TranslationsMediaMenuJa._(_root);
|
||||
@override late final _TranslationsAccessibilityJa accessibility = _TranslationsAccessibilityJa._(_root);
|
||||
@@ -128,7 +127,6 @@ class _TranslationsCommonJa implements TranslationsCommonEn {
|
||||
@override String get shuffle => 'シャッフル';
|
||||
@override String get addTo => '追加...';
|
||||
@override String get createNew => '新規作成';
|
||||
@override String get remove => '削除';
|
||||
@override String get paste => '貼り付け';
|
||||
@override String get connect => '接続';
|
||||
@override String get disconnect => '切断';
|
||||
@@ -142,7 +140,6 @@ class _TranslationsCommonJa implements TranslationsCommonEn {
|
||||
@override String get settings => '設定';
|
||||
@override String get mute => 'ミュート';
|
||||
@override String get ok => 'OK';
|
||||
@override String get loading => '読み込み中...';
|
||||
@override String get reconnect => '再接続';
|
||||
@override String get exitConfirmTitle => 'アプリを終了しますか?';
|
||||
@override String get exitConfirmMessage => '終了してもよろしいですか?';
|
||||
@@ -256,6 +253,8 @@ class _TranslationsSettingsJa implements TranslationsSettingsEn {
|
||||
@override String get subtitleStylingDescription => '字幕の外観をカスタマイズ';
|
||||
@override String get smallSkipDuration => '短いスキップ時間';
|
||||
@override String get largeSkipDuration => '長いスキップ時間';
|
||||
@override String get rewindOnResume => '再開時に巻き戻し';
|
||||
@override String get rewindOnResumeDescription => '再生再開時にこの秒数分巻き戻す';
|
||||
@override String secondsUnit({required Object seconds}) => '${seconds}秒';
|
||||
@override String get defaultSleepTimer => 'デフォルトスリープタイマー';
|
||||
@override String minutesUnit({required Object minutes}) => '${minutes}分';
|
||||
@@ -333,6 +332,8 @@ class _TranslationsSettingsJa implements TranslationsSettingsEn {
|
||||
@override String get confirmExitOnBackDescription => '戻るボタンでアプリを終了する際に確認ダイアログを表示';
|
||||
@override String get showNavBarLabels => 'ナビゲーションバーラベルを表示';
|
||||
@override String get showNavBarLabelsDescription => 'ナビゲーションバーアイコンの下にテキストラベルを表示';
|
||||
@override String get liveTvDefaultFavorites => 'お気に入りチャンネルをデフォルトに';
|
||||
@override String get liveTvDefaultFavoritesDescription => 'ライブTV を開いたときにお気に入りチャンネルのみ表示';
|
||||
}
|
||||
|
||||
// Path: search
|
||||
@@ -360,18 +361,6 @@ class _TranslationsHotkeysJa implements TranslationsHotkeysEn {
|
||||
@override late final _TranslationsHotkeysActionsJa actions = _TranslationsHotkeysActionsJa._(_root);
|
||||
}
|
||||
|
||||
// Path: pinEntry
|
||||
class _TranslationsPinEntryJa implements TranslationsPinEntryEn {
|
||||
_TranslationsPinEntryJa._(this._root);
|
||||
|
||||
final TranslationsJa _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get enterPin => 'PINを入力';
|
||||
@override String get showPin => 'PINを表示';
|
||||
@override String get hidePin => 'PINを非表示';
|
||||
}
|
||||
|
||||
// Path: fileInfo
|
||||
class _TranslationsFileInfoJa implements TranslationsFileInfoEn {
|
||||
_TranslationsFileInfoJa._(this._root);
|
||||
@@ -478,7 +467,6 @@ class _TranslationsVideoControlsJa implements TranslationsVideoControlsEn {
|
||||
@override String get unlockRotation => '回転のロックを解除';
|
||||
@override String get timerActive => 'タイマー動作中';
|
||||
@override String playbackWillPauseIn({required Object duration}) => '再生は${duration}後に一時停止します';
|
||||
@override String get sleepTimerCompleted => 'スリープタイマー完了 - 再生を一時停止しました';
|
||||
@override String get stillWatching => 'まだ視聴中ですか?';
|
||||
@override String pausingIn({required Object seconds}) => '${seconds}秒後に一時停止';
|
||||
@override String get continueWatching => '続ける';
|
||||
@@ -495,20 +483,20 @@ class _TranslationsVideoControlsJa implements TranslationsVideoControlsEn {
|
||||
@override String get muteButton => 'ミュート';
|
||||
@override String get unmuteButton => 'ミュート解除';
|
||||
@override String get settingsButton => '動画設定';
|
||||
@override String get audioTrackButton => '音声トラック';
|
||||
@override String get subtitlesButton => '字幕';
|
||||
@override String get tracksButton => '音声と字幕';
|
||||
@override String get chaptersButton => 'チャプター';
|
||||
@override String get versionsButton => '動画バージョン';
|
||||
@override String get pipButton => 'ピクチャーインピクチャーモード';
|
||||
@override String get aspectRatioButton => 'アスペクト比';
|
||||
@override String get ambientLighting => 'アンビエントライティング';
|
||||
@override String get ambientLightingOn => 'アンビエントライティングを有効化';
|
||||
@override String get ambientLightingOff => 'アンビエントライティングを無効化';
|
||||
@override String get fullscreenButton => 'フルスクリーンに入る';
|
||||
@override String get exitFullscreenButton => 'フルスクリーンを終了';
|
||||
@override String get alwaysOnTopButton => '常に前面に表示';
|
||||
@override String get rotationLockButton => '回転ロック';
|
||||
@override String get lockScreen => '画面をロック';
|
||||
@override String get unlockScreen => '画面のロックを解除';
|
||||
@override String get screenLockButton => '画面ロック';
|
||||
@override String get longPressToUnlock => '長押しでロック解除';
|
||||
@override String get timelineSlider => '動画タイムライン';
|
||||
@override String get volumeSlider => '音量レベル';
|
||||
@override String endsAt({required Object time}) => '${time}に終了';
|
||||
@@ -642,11 +630,8 @@ class _TranslationsDiscoverJa implements TranslationsDiscoverEn {
|
||||
@override String get overview => 'あらすじ';
|
||||
@override String get cast => 'キャスト';
|
||||
@override String get extras => '予告編とエクストラ';
|
||||
@override String get seasons => 'シーズン';
|
||||
@override String get studio => 'スタジオ';
|
||||
@override String get rating => '評価';
|
||||
@override String episodeCount({required Object count}) => '${count}エピソード';
|
||||
@override String watchedProgress({required Object watched, required Object total}) => '${watched}/${total}視聴済み';
|
||||
@override String get movie => '映画';
|
||||
@override String get tvShow => 'テレビ番組';
|
||||
@override String minutesLeft({required Object minutes}) => '残り${minutes}分';
|
||||
@@ -769,8 +754,6 @@ class _TranslationsLogsJa implements TranslationsLogsEn {
|
||||
@override String get clearLogs => 'ログをクリア';
|
||||
@override String get copyLogs => 'ログをコピー';
|
||||
@override String get uploadLogs => 'ログをアップロード';
|
||||
@override String get error => 'エラー:';
|
||||
@override String get stackTrace => 'スタックトレース:';
|
||||
}
|
||||
|
||||
// Path: licenses
|
||||
@@ -806,20 +789,12 @@ class _TranslationsLiveTvJa implements TranslationsLiveTvEn {
|
||||
|
||||
// Translations
|
||||
@override String get title => 'ライブTV';
|
||||
@override String get channels => 'チャンネル';
|
||||
@override String get guide => '番組表';
|
||||
@override String get noChannels => 'チャンネルがありません';
|
||||
@override String get noDvr => 'どのサーバーにもDVRが設定されていません';
|
||||
@override String get tuneFailed => 'チャンネルのチューニングに失敗しました';
|
||||
@override String get loading => 'チャンネルを読み込み中...';
|
||||
@override String get nowPlaying => '現在放送中';
|
||||
@override String get noPrograms => '番組データがありません';
|
||||
@override String channelNumber({required Object number}) => 'Ch. ${number}';
|
||||
@override String get live => 'ライブ';
|
||||
@override String get hd => 'HD';
|
||||
@override String get premiere => '新着';
|
||||
@override String get reloadGuide => '番組表を再読込';
|
||||
@override String get allChannels => 'すべてのチャンネル';
|
||||
@override String get now => '現在';
|
||||
@override String get today => '今日';
|
||||
@override String get midnight => '深夜';
|
||||
@@ -830,6 +805,7 @@ class _TranslationsLiveTvJa implements TranslationsLiveTvEn {
|
||||
@override String get lateNight => '深夜';
|
||||
@override String get whatsOn => '放送中';
|
||||
@override String get watchChannel => 'チャンネルを視聴';
|
||||
@override String get favorites => 'お気に入り';
|
||||
}
|
||||
|
||||
// Path: collections
|
||||
@@ -1058,7 +1034,6 @@ class _TranslationsExternalPlayerJa implements TranslationsExternalPlayerEn {
|
||||
@override String get playerCommand => 'コマンド';
|
||||
@override String get playerPackage => 'パッケージ名';
|
||||
@override String get playerUrlScheme => 'URLスキーム';
|
||||
@override String get customPlayer => 'カスタムプレーヤー';
|
||||
@override String get off => 'オフ';
|
||||
@override String get launchFailed => '外部プレーヤーの起動に失敗しました';
|
||||
@override String appNotInstalled({required Object name}) => '${name}がインストールされていません';
|
||||
@@ -1336,7 +1311,6 @@ extension on TranslationsJa {
|
||||
'common.shuffle' => 'シャッフル',
|
||||
'common.addTo' => '追加...',
|
||||
'common.createNew' => '新規作成',
|
||||
'common.remove' => '削除',
|
||||
'common.paste' => '貼り付け',
|
||||
'common.connect' => '接続',
|
||||
'common.disconnect' => '切断',
|
||||
@@ -1350,7 +1324,6 @@ extension on TranslationsJa {
|
||||
'common.settings' => '設定',
|
||||
'common.mute' => 'ミュート',
|
||||
'common.ok' => 'OK',
|
||||
'common.loading' => '読み込み中...',
|
||||
'common.reconnect' => '再接続',
|
||||
'common.exitConfirmTitle' => 'アプリを終了しますか?',
|
||||
'common.exitConfirmMessage' => '終了してもよろしいですか?',
|
||||
@@ -1437,6 +1410,8 @@ extension on TranslationsJa {
|
||||
'settings.subtitleStylingDescription' => '字幕の外観をカスタマイズ',
|
||||
'settings.smallSkipDuration' => '短いスキップ時間',
|
||||
'settings.largeSkipDuration' => '長いスキップ時間',
|
||||
'settings.rewindOnResume' => '再開時に巻き戻し',
|
||||
'settings.rewindOnResumeDescription' => '再生再開時にこの秒数分巻き戻す',
|
||||
'settings.secondsUnit' => ({required Object seconds}) => '${seconds}秒',
|
||||
'settings.defaultSleepTimer' => 'デフォルトスリープタイマー',
|
||||
'settings.minutesUnit' => ({required Object minutes}) => '${minutes}分',
|
||||
@@ -1514,6 +1489,8 @@ extension on TranslationsJa {
|
||||
'settings.confirmExitOnBackDescription' => '戻るボタンでアプリを終了する際に確認ダイアログを表示',
|
||||
'settings.showNavBarLabels' => 'ナビゲーションバーラベルを表示',
|
||||
'settings.showNavBarLabelsDescription' => 'ナビゲーションバーアイコンの下にテキストラベルを表示',
|
||||
'settings.liveTvDefaultFavorites' => 'お気に入りチャンネルをデフォルトに',
|
||||
'settings.liveTvDefaultFavoritesDescription' => 'ライブTV を開いたときにお気に入りチャンネルのみ表示',
|
||||
'search.hint' => '映画、番組、音楽を検索...',
|
||||
'search.tryDifferentTerm' => '別の検索語をお試しください',
|
||||
'search.searchYourMedia' => 'メディアを検索',
|
||||
@@ -1539,9 +1516,6 @@ extension on TranslationsJa {
|
||||
'hotkeys.actions.subSeekPrev' => '前の字幕にシーク',
|
||||
'hotkeys.actions.shaderToggle' => 'シェーダー切替',
|
||||
'hotkeys.actions.skipMarker' => 'イントロ/クレジットをスキップ',
|
||||
'pinEntry.enterPin' => 'PINを入力',
|
||||
'pinEntry.showPin' => 'PINを表示',
|
||||
'pinEntry.hidePin' => 'PINを非表示',
|
||||
'fileInfo.title' => 'ファイル情報',
|
||||
'fileInfo.video' => '映像',
|
||||
'fileInfo.audio' => '音声',
|
||||
@@ -1605,7 +1579,6 @@ extension on TranslationsJa {
|
||||
'videoControls.unlockRotation' => '回転のロックを解除',
|
||||
'videoControls.timerActive' => 'タイマー動作中',
|
||||
'videoControls.playbackWillPauseIn' => ({required Object duration}) => '再生は${duration}後に一時停止します',
|
||||
'videoControls.sleepTimerCompleted' => 'スリープタイマー完了 - 再生を一時停止しました',
|
||||
'videoControls.stillWatching' => 'まだ視聴中ですか?',
|
||||
'videoControls.pausingIn' => ({required Object seconds}) => '${seconds}秒後に一時停止',
|
||||
'videoControls.continueWatching' => '続ける',
|
||||
@@ -1622,20 +1595,20 @@ extension on TranslationsJa {
|
||||
'videoControls.muteButton' => 'ミュート',
|
||||
'videoControls.unmuteButton' => 'ミュート解除',
|
||||
'videoControls.settingsButton' => '動画設定',
|
||||
'videoControls.audioTrackButton' => '音声トラック',
|
||||
'videoControls.subtitlesButton' => '字幕',
|
||||
'videoControls.tracksButton' => '音声と字幕',
|
||||
'videoControls.chaptersButton' => 'チャプター',
|
||||
'videoControls.versionsButton' => '動画バージョン',
|
||||
'videoControls.pipButton' => 'ピクチャーインピクチャーモード',
|
||||
'videoControls.aspectRatioButton' => 'アスペクト比',
|
||||
'videoControls.ambientLighting' => 'アンビエントライティング',
|
||||
'videoControls.ambientLightingOn' => 'アンビエントライティングを有効化',
|
||||
'videoControls.ambientLightingOff' => 'アンビエントライティングを無効化',
|
||||
'videoControls.fullscreenButton' => 'フルスクリーンに入る',
|
||||
'videoControls.exitFullscreenButton' => 'フルスクリーンを終了',
|
||||
'videoControls.alwaysOnTopButton' => '常に前面に表示',
|
||||
'videoControls.rotationLockButton' => '回転ロック',
|
||||
'videoControls.lockScreen' => '画面をロック',
|
||||
'videoControls.unlockScreen' => '画面のロックを解除',
|
||||
'videoControls.screenLockButton' => '画面ロック',
|
||||
'videoControls.longPressToUnlock' => '長押しでロック解除',
|
||||
'videoControls.timelineSlider' => '動画タイムライン',
|
||||
'videoControls.volumeSlider' => '音量レベル',
|
||||
'videoControls.endsAt' => ({required Object time}) => '${time}に終了',
|
||||
@@ -1721,11 +1694,8 @@ extension on TranslationsJa {
|
||||
'discover.overview' => 'あらすじ',
|
||||
'discover.cast' => 'キャスト',
|
||||
'discover.extras' => '予告編とエクストラ',
|
||||
'discover.seasons' => 'シーズン',
|
||||
'discover.studio' => 'スタジオ',
|
||||
'discover.rating' => '評価',
|
||||
'discover.episodeCount' => ({required Object count}) => '${count}エピソード',
|
||||
'discover.watchedProgress' => ({required Object watched, required Object total}) => '${watched}/${total}視聴済み',
|
||||
'discover.movie' => '映画',
|
||||
'discover.tvShow' => 'テレビ番組',
|
||||
'discover.minutesLeft' => ({required Object minutes}) => '残り${minutes}分',
|
||||
@@ -1803,8 +1773,6 @@ extension on TranslationsJa {
|
||||
'logs.clearLogs' => 'ログをクリア',
|
||||
'logs.copyLogs' => 'ログをコピー',
|
||||
'logs.uploadLogs' => 'ログをアップロード',
|
||||
'logs.error' => 'エラー:',
|
||||
'logs.stackTrace' => 'スタックトレース:',
|
||||
'licenses.relatedPackages' => '関連パッケージ',
|
||||
'licenses.license' => 'ライセンス',
|
||||
'licenses.licenseNumber' => ({required Object number}) => 'ライセンス ${number}',
|
||||
@@ -1813,22 +1781,12 @@ extension on TranslationsJa {
|
||||
'navigation.downloads' => 'ダウンロード',
|
||||
'navigation.liveTv' => 'ライブTV',
|
||||
'liveTv.title' => 'ライブTV',
|
||||
'liveTv.channels' => 'チャンネル',
|
||||
'liveTv.guide' => '番組表',
|
||||
'liveTv.noChannels' => 'チャンネルがありません',
|
||||
'liveTv.noDvr' => 'どのサーバーにもDVRが設定されていません',
|
||||
'liveTv.tuneFailed' => 'チャンネルのチューニングに失敗しました',
|
||||
'liveTv.loading' => 'チャンネルを読み込み中...',
|
||||
'liveTv.nowPlaying' => '現在放送中',
|
||||
'liveTv.noPrograms' => '番組データがありません',
|
||||
'liveTv.channelNumber' => ({required Object number}) => 'Ch. ${number}',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'liveTv.live' => 'ライブ',
|
||||
'liveTv.hd' => 'HD',
|
||||
'liveTv.premiere' => '新着',
|
||||
'liveTv.reloadGuide' => '番組表を再読込',
|
||||
'liveTv.allChannels' => 'すべてのチャンネル',
|
||||
'liveTv.now' => '現在',
|
||||
'liveTv.today' => '今日',
|
||||
'liveTv.midnight' => '深夜',
|
||||
@@ -1839,6 +1797,9 @@ extension on TranslationsJa {
|
||||
'liveTv.lateNight' => '深夜',
|
||||
'liveTv.whatsOn' => '放送中',
|
||||
'liveTv.watchChannel' => 'チャンネルを視聴',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'liveTv.favorites' => 'お気に入り',
|
||||
'collections.title' => 'コレクション',
|
||||
'collections.collection' => 'コレクション',
|
||||
'collections.empty' => 'コレクションは空です',
|
||||
@@ -2061,7 +2022,6 @@ extension on TranslationsJa {
|
||||
'externalPlayer.playerCommand' => 'コマンド',
|
||||
'externalPlayer.playerPackage' => 'パッケージ名',
|
||||
'externalPlayer.playerUrlScheme' => 'URLスキーム',
|
||||
'externalPlayer.customPlayer' => 'カスタムプレーヤー',
|
||||
'externalPlayer.off' => 'オフ',
|
||||
'externalPlayer.launchFailed' => '外部プレーヤーの起動に失敗しました',
|
||||
'externalPlayer.appNotInstalled' => ({required Object name}) => '${name}がインストールされていません',
|
||||
|
||||
+20
-60
@@ -45,7 +45,6 @@ class TranslationsKo with BaseTranslations<AppLocale, Translations> implements T
|
||||
@override late final _TranslationsSettingsKo settings = _TranslationsSettingsKo._(_root);
|
||||
@override late final _TranslationsSearchKo search = _TranslationsSearchKo._(_root);
|
||||
@override late final _TranslationsHotkeysKo hotkeys = _TranslationsHotkeysKo._(_root);
|
||||
@override late final _TranslationsPinEntryKo pinEntry = _TranslationsPinEntryKo._(_root);
|
||||
@override late final _TranslationsFileInfoKo fileInfo = _TranslationsFileInfoKo._(_root);
|
||||
@override late final _TranslationsMediaMenuKo mediaMenu = _TranslationsMediaMenuKo._(_root);
|
||||
@override late final _TranslationsAccessibilityKo accessibility = _TranslationsAccessibilityKo._(_root);
|
||||
@@ -128,7 +127,6 @@ class _TranslationsCommonKo implements TranslationsCommonEn {
|
||||
@override String get shuffle => '무작위 재생';
|
||||
@override String get addTo => '추가하기...';
|
||||
@override String get createNew => '새로 만들기';
|
||||
@override String get remove => '삭제';
|
||||
@override String get paste => '붙여넣기';
|
||||
@override String get connect => '연결';
|
||||
@override String get disconnect => '연결 해제';
|
||||
@@ -142,7 +140,6 @@ class _TranslationsCommonKo implements TranslationsCommonEn {
|
||||
@override String get settings => '설정';
|
||||
@override String get mute => '음소거';
|
||||
@override String get ok => '확인';
|
||||
@override String get loading => '로딩 중...';
|
||||
@override String get reconnect => '다시 연결';
|
||||
@override String get exitConfirmTitle => '앱을 종료하시겠습니까?';
|
||||
@override String get exitConfirmMessage => '정말 종료하시겠습니까?';
|
||||
@@ -256,6 +253,8 @@ class _TranslationsSettingsKo implements TranslationsSettingsEn {
|
||||
@override String get subtitleStylingDescription => '자막의 외형을 사용자 설정';
|
||||
@override String get smallSkipDuration => '짧은 건너뛰기 시간';
|
||||
@override String get largeSkipDuration => '긴 건너뛰기 시간';
|
||||
@override String get rewindOnResume => '재개 시 되감기';
|
||||
@override String get rewindOnResumeDescription => '재생 재개 시 이 시간만큼 되감기';
|
||||
@override String secondsUnit({required Object seconds}) => '${seconds}초';
|
||||
@override String get defaultSleepTimer => '기본 취침 타이머';
|
||||
@override String minutesUnit({required Object minutes}) => '${minutes}분';
|
||||
@@ -333,6 +332,8 @@ class _TranslationsSettingsKo implements TranslationsSettingsEn {
|
||||
@override String get confirmExitOnBackDescription => '뒤로 버튼을 눌러 앱을 종료할 때 확인 대화상자를 표시합니다';
|
||||
@override String get showNavBarLabels => '내비게이션 바 라벨 표시';
|
||||
@override String get showNavBarLabelsDescription => '내비게이션 바 아이콘 아래에 텍스트 라벨을 표시합니다';
|
||||
@override String get liveTvDefaultFavorites => '즐겨찾기 채널 기본 설정';
|
||||
@override String get liveTvDefaultFavoritesDescription => '라이브 TV를 열 때 즐겨찾기 채널만 표시';
|
||||
}
|
||||
|
||||
// Path: search
|
||||
@@ -360,18 +361,6 @@ class _TranslationsHotkeysKo implements TranslationsHotkeysEn {
|
||||
@override late final _TranslationsHotkeysActionsKo actions = _TranslationsHotkeysActionsKo._(_root);
|
||||
}
|
||||
|
||||
// Path: pinEntry
|
||||
class _TranslationsPinEntryKo implements TranslationsPinEntryEn {
|
||||
_TranslationsPinEntryKo._(this._root);
|
||||
|
||||
final TranslationsKo _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get enterPin => 'PIN 입력';
|
||||
@override String get showPin => 'PIN 표시';
|
||||
@override String get hidePin => 'PIN 숨기기';
|
||||
}
|
||||
|
||||
// Path: fileInfo
|
||||
class _TranslationsFileInfoKo implements TranslationsFileInfoEn {
|
||||
_TranslationsFileInfoKo._(this._root);
|
||||
@@ -478,7 +467,6 @@ class _TranslationsVideoControlsKo implements TranslationsVideoControlsEn {
|
||||
@override String get unlockRotation => '회전 잠금 해제';
|
||||
@override String get timerActive => '타이머 활성화됨';
|
||||
@override String playbackWillPauseIn({required Object duration}) => '재생이 ${duration} 후에 일시 중지 됩니다';
|
||||
@override String get sleepTimerCompleted => '수면 타이머 완료됨 - 재생이 일시 중지되었습니다';
|
||||
@override String get stillWatching => '아직 시청 중이신가요?';
|
||||
@override String pausingIn({required Object seconds}) => '${seconds}초 후 일시 정지';
|
||||
@override String get continueWatching => '계속';
|
||||
@@ -495,20 +483,20 @@ class _TranslationsVideoControlsKo implements TranslationsVideoControlsEn {
|
||||
@override String get muteButton => '음소거';
|
||||
@override String get unmuteButton => '음소거 해제';
|
||||
@override String get settingsButton => '동영상 설정';
|
||||
@override String get audioTrackButton => '음원 트랙';
|
||||
@override String get subtitlesButton => '자막';
|
||||
@override String get tracksButton => '오디오 및 자막';
|
||||
@override String get chaptersButton => '챕터';
|
||||
@override String get versionsButton => '동영상 버전';
|
||||
@override String get pipButton => '픽처 인 픽처 모드';
|
||||
@override String get aspectRatioButton => '화면비율';
|
||||
@override String get ambientLighting => '주변 조명';
|
||||
@override String get ambientLightingOn => '주변 조명 켜기';
|
||||
@override String get ambientLightingOff => '주변 조명 끄기';
|
||||
@override String get fullscreenButton => '전체화면';
|
||||
@override String get exitFullscreenButton => '전체화면 종료';
|
||||
@override String get alwaysOnTopButton => '창 최상위 고정';
|
||||
@override String get rotationLockButton => '회전 잠금';
|
||||
@override String get lockScreen => '화면 잠금';
|
||||
@override String get unlockScreen => '화면 잠금 해제';
|
||||
@override String get screenLockButton => '화면 잠금';
|
||||
@override String get longPressToUnlock => '길게 눌러 잠금 해제';
|
||||
@override String get timelineSlider => '타임라인';
|
||||
@override String get volumeSlider => '볼륨 조절';
|
||||
@override String endsAt({required Object time}) => '${time}에 종료';
|
||||
@@ -642,11 +630,8 @@ class _TranslationsDiscoverKo implements TranslationsDiscoverEn {
|
||||
@override String get overview => '개요';
|
||||
@override String get cast => '출연진';
|
||||
@override String get extras => '예고편 및 부가영상';
|
||||
@override String get seasons => '시즌 수';
|
||||
@override String get studio => '제작사';
|
||||
@override String get rating => '연령 등급';
|
||||
@override String episodeCount({required Object count}) => '${count} 편';
|
||||
@override String watchedProgress({required Object watched, required Object total}) => '${watched}/${total} 편 시청 완료';
|
||||
@override String get movie => '영화';
|
||||
@override String get tvShow => 'TV 시리즈';
|
||||
@override String minutesLeft({required Object minutes}) => '${minutes}분 남음';
|
||||
@@ -769,8 +754,6 @@ class _TranslationsLogsKo implements TranslationsLogsEn {
|
||||
@override String get clearLogs => '로그 지우기';
|
||||
@override String get copyLogs => '로그 복사';
|
||||
@override String get uploadLogs => '로그 업로드';
|
||||
@override String get error => '오류:';
|
||||
@override String get stackTrace => '스택 추적 (Stack Trace):';
|
||||
}
|
||||
|
||||
// Path: licenses
|
||||
@@ -806,20 +789,12 @@ class _TranslationsLiveTvKo implements TranslationsLiveTvEn {
|
||||
|
||||
// Translations
|
||||
@override String get title => '실시간 TV';
|
||||
@override String get channels => '채널';
|
||||
@override String get guide => '편성표';
|
||||
@override String get noChannels => '사용 가능한 채널이 없습니다';
|
||||
@override String get noDvr => '서버에 DVR이 구성되어 있지 않습니다';
|
||||
@override String get tuneFailed => '채널 튜닝에 실패했습니다';
|
||||
@override String get loading => '채널 로딩 중...';
|
||||
@override String get nowPlaying => '현재 재생 중';
|
||||
@override String get noPrograms => '프로그램 데이터가 없습니다';
|
||||
@override String channelNumber({required Object number}) => '채널 ${number}';
|
||||
@override String get live => '실시간';
|
||||
@override String get hd => 'HD';
|
||||
@override String get premiere => '신규';
|
||||
@override String get reloadGuide => '편성표 새로고침';
|
||||
@override String get allChannels => '전체 채널';
|
||||
@override String get now => '지금';
|
||||
@override String get today => '오늘';
|
||||
@override String get midnight => '자정';
|
||||
@@ -830,6 +805,7 @@ class _TranslationsLiveTvKo implements TranslationsLiveTvEn {
|
||||
@override String get lateNight => '심야 방송';
|
||||
@override String get whatsOn => '지금 방송 중';
|
||||
@override String get watchChannel => '채널 시청';
|
||||
@override String get favorites => '즐겨찾기';
|
||||
}
|
||||
|
||||
// Path: collections
|
||||
@@ -1058,7 +1034,6 @@ class _TranslationsExternalPlayerKo implements TranslationsExternalPlayerEn {
|
||||
@override String get playerCommand => '명령어';
|
||||
@override String get playerPackage => '패키지 이름';
|
||||
@override String get playerUrlScheme => 'URL 스킴';
|
||||
@override String get customPlayer => '사용자 정의 플레이어';
|
||||
@override String get off => '꺼짐';
|
||||
@override String get launchFailed => '외부 플레이어를 열 수 없습니다';
|
||||
@override String appNotInstalled({required Object name}) => '${name}이(가) 설치되어 있지 않습니다';
|
||||
@@ -1336,7 +1311,6 @@ extension on TranslationsKo {
|
||||
'common.shuffle' => '무작위 재생',
|
||||
'common.addTo' => '추가하기...',
|
||||
'common.createNew' => '새로 만들기',
|
||||
'common.remove' => '삭제',
|
||||
'common.paste' => '붙여넣기',
|
||||
'common.connect' => '연결',
|
||||
'common.disconnect' => '연결 해제',
|
||||
@@ -1350,7 +1324,6 @@ extension on TranslationsKo {
|
||||
'common.settings' => '설정',
|
||||
'common.mute' => '음소거',
|
||||
'common.ok' => '확인',
|
||||
'common.loading' => '로딩 중...',
|
||||
'common.reconnect' => '다시 연결',
|
||||
'common.exitConfirmTitle' => '앱을 종료하시겠습니까?',
|
||||
'common.exitConfirmMessage' => '정말 종료하시겠습니까?',
|
||||
@@ -1437,6 +1410,8 @@ extension on TranslationsKo {
|
||||
'settings.subtitleStylingDescription' => '자막의 외형을 사용자 설정',
|
||||
'settings.smallSkipDuration' => '짧은 건너뛰기 시간',
|
||||
'settings.largeSkipDuration' => '긴 건너뛰기 시간',
|
||||
'settings.rewindOnResume' => '재개 시 되감기',
|
||||
'settings.rewindOnResumeDescription' => '재생 재개 시 이 시간만큼 되감기',
|
||||
'settings.secondsUnit' => ({required Object seconds}) => '${seconds}초',
|
||||
'settings.defaultSleepTimer' => '기본 취침 타이머',
|
||||
'settings.minutesUnit' => ({required Object minutes}) => '${minutes}분',
|
||||
@@ -1514,6 +1489,8 @@ extension on TranslationsKo {
|
||||
'settings.confirmExitOnBackDescription' => '뒤로 버튼을 눌러 앱을 종료할 때 확인 대화상자를 표시합니다',
|
||||
'settings.showNavBarLabels' => '내비게이션 바 라벨 표시',
|
||||
'settings.showNavBarLabelsDescription' => '내비게이션 바 아이콘 아래에 텍스트 라벨을 표시합니다',
|
||||
'settings.liveTvDefaultFavorites' => '즐겨찾기 채널 기본 설정',
|
||||
'settings.liveTvDefaultFavoritesDescription' => '라이브 TV를 열 때 즐겨찾기 채널만 표시',
|
||||
'search.hint' => '영화, 시리즈, 음악 등을 검색하세요...',
|
||||
'search.tryDifferentTerm' => '다른 검색어를 시도해 보세요',
|
||||
'search.searchYourMedia' => '미디어 검색',
|
||||
@@ -1539,9 +1516,6 @@ extension on TranslationsKo {
|
||||
'hotkeys.actions.subSeekPrev' => '이전 자막으로 이동',
|
||||
'hotkeys.actions.shaderToggle' => '셰이더 전환',
|
||||
'hotkeys.actions.skipMarker' => '인트로/크레딧 건너뛰기',
|
||||
'pinEntry.enterPin' => 'PIN 입력',
|
||||
'pinEntry.showPin' => 'PIN 표시',
|
||||
'pinEntry.hidePin' => 'PIN 숨기기',
|
||||
'fileInfo.title' => '파일 정보',
|
||||
'fileInfo.video' => '비디오',
|
||||
'fileInfo.audio' => '오디오',
|
||||
@@ -1605,7 +1579,6 @@ extension on TranslationsKo {
|
||||
'videoControls.unlockRotation' => '회전 잠금 해제',
|
||||
'videoControls.timerActive' => '타이머 활성화됨',
|
||||
'videoControls.playbackWillPauseIn' => ({required Object duration}) => '재생이 ${duration} 후에 일시 중지 됩니다',
|
||||
'videoControls.sleepTimerCompleted' => '수면 타이머 완료됨 - 재생이 일시 중지되었습니다',
|
||||
'videoControls.stillWatching' => '아직 시청 중이신가요?',
|
||||
'videoControls.pausingIn' => ({required Object seconds}) => '${seconds}초 후 일시 정지',
|
||||
'videoControls.continueWatching' => '계속',
|
||||
@@ -1622,20 +1595,20 @@ extension on TranslationsKo {
|
||||
'videoControls.muteButton' => '음소거',
|
||||
'videoControls.unmuteButton' => '음소거 해제',
|
||||
'videoControls.settingsButton' => '동영상 설정',
|
||||
'videoControls.audioTrackButton' => '음원 트랙',
|
||||
'videoControls.subtitlesButton' => '자막',
|
||||
'videoControls.tracksButton' => '오디오 및 자막',
|
||||
'videoControls.chaptersButton' => '챕터',
|
||||
'videoControls.versionsButton' => '동영상 버전',
|
||||
'videoControls.pipButton' => '픽처 인 픽처 모드',
|
||||
'videoControls.aspectRatioButton' => '화면비율',
|
||||
'videoControls.ambientLighting' => '주변 조명',
|
||||
'videoControls.ambientLightingOn' => '주변 조명 켜기',
|
||||
'videoControls.ambientLightingOff' => '주변 조명 끄기',
|
||||
'videoControls.fullscreenButton' => '전체화면',
|
||||
'videoControls.exitFullscreenButton' => '전체화면 종료',
|
||||
'videoControls.alwaysOnTopButton' => '창 최상위 고정',
|
||||
'videoControls.rotationLockButton' => '회전 잠금',
|
||||
'videoControls.lockScreen' => '화면 잠금',
|
||||
'videoControls.unlockScreen' => '화면 잠금 해제',
|
||||
'videoControls.screenLockButton' => '화면 잠금',
|
||||
'videoControls.longPressToUnlock' => '길게 눌러 잠금 해제',
|
||||
'videoControls.timelineSlider' => '타임라인',
|
||||
'videoControls.volumeSlider' => '볼륨 조절',
|
||||
'videoControls.endsAt' => ({required Object time}) => '${time}에 종료',
|
||||
@@ -1721,11 +1694,8 @@ extension on TranslationsKo {
|
||||
'discover.overview' => '개요',
|
||||
'discover.cast' => '출연진',
|
||||
'discover.extras' => '예고편 및 부가영상',
|
||||
'discover.seasons' => '시즌 수',
|
||||
'discover.studio' => '제작사',
|
||||
'discover.rating' => '연령 등급',
|
||||
'discover.episodeCount' => ({required Object count}) => '${count} 편',
|
||||
'discover.watchedProgress' => ({required Object watched, required Object total}) => '${watched}/${total} 편 시청 완료',
|
||||
'discover.movie' => '영화',
|
||||
'discover.tvShow' => 'TV 시리즈',
|
||||
'discover.minutesLeft' => ({required Object minutes}) => '${minutes}분 남음',
|
||||
@@ -1803,8 +1773,6 @@ extension on TranslationsKo {
|
||||
'logs.clearLogs' => '로그 지우기',
|
||||
'logs.copyLogs' => '로그 복사',
|
||||
'logs.uploadLogs' => '로그 업로드',
|
||||
'logs.error' => '오류:',
|
||||
'logs.stackTrace' => '스택 추적 (Stack Trace):',
|
||||
'licenses.relatedPackages' => '관련 소프트웨어 패키지',
|
||||
'licenses.license' => '라이선스',
|
||||
'licenses.licenseNumber' => ({required Object number}) => '라이선스 ${number}',
|
||||
@@ -1813,22 +1781,12 @@ extension on TranslationsKo {
|
||||
'navigation.downloads' => '다운로드',
|
||||
'navigation.liveTv' => '실시간 TV',
|
||||
'liveTv.title' => '실시간 TV',
|
||||
'liveTv.channels' => '채널',
|
||||
'liveTv.guide' => '편성표',
|
||||
'liveTv.noChannels' => '사용 가능한 채널이 없습니다',
|
||||
'liveTv.noDvr' => '서버에 DVR이 구성되어 있지 않습니다',
|
||||
'liveTv.tuneFailed' => '채널 튜닝에 실패했습니다',
|
||||
'liveTv.loading' => '채널 로딩 중...',
|
||||
'liveTv.nowPlaying' => '현재 재생 중',
|
||||
'liveTv.noPrograms' => '프로그램 데이터가 없습니다',
|
||||
'liveTv.channelNumber' => ({required Object number}) => '채널 ${number}',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'liveTv.live' => '실시간',
|
||||
'liveTv.hd' => 'HD',
|
||||
'liveTv.premiere' => '신규',
|
||||
'liveTv.reloadGuide' => '편성표 새로고침',
|
||||
'liveTv.allChannels' => '전체 채널',
|
||||
'liveTv.now' => '지금',
|
||||
'liveTv.today' => '오늘',
|
||||
'liveTv.midnight' => '자정',
|
||||
@@ -1839,6 +1797,9 @@ extension on TranslationsKo {
|
||||
'liveTv.lateNight' => '심야 방송',
|
||||
'liveTv.whatsOn' => '지금 방송 중',
|
||||
'liveTv.watchChannel' => '채널 시청',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'liveTv.favorites' => '즐겨찾기',
|
||||
'collections.title' => '컬렉션',
|
||||
'collections.collection' => '컬렉션',
|
||||
'collections.empty' => '컬렉션이 비어 있습니다',
|
||||
@@ -2061,7 +2022,6 @@ extension on TranslationsKo {
|
||||
'externalPlayer.playerCommand' => '명령어',
|
||||
'externalPlayer.playerPackage' => '패키지 이름',
|
||||
'externalPlayer.playerUrlScheme' => 'URL 스킴',
|
||||
'externalPlayer.customPlayer' => '사용자 정의 플레이어',
|
||||
'externalPlayer.off' => '꺼짐',
|
||||
'externalPlayer.launchFailed' => '외부 플레이어를 열 수 없습니다',
|
||||
'externalPlayer.appNotInstalled' => ({required Object name}) => '${name}이(가) 설치되어 있지 않습니다',
|
||||
|
||||
+20
-60
@@ -45,7 +45,6 @@ class TranslationsNb with BaseTranslations<AppLocale, Translations> implements T
|
||||
@override late final _TranslationsSettingsNb settings = _TranslationsSettingsNb._(_root);
|
||||
@override late final _TranslationsSearchNb search = _TranslationsSearchNb._(_root);
|
||||
@override late final _TranslationsHotkeysNb hotkeys = _TranslationsHotkeysNb._(_root);
|
||||
@override late final _TranslationsPinEntryNb pinEntry = _TranslationsPinEntryNb._(_root);
|
||||
@override late final _TranslationsFileInfoNb fileInfo = _TranslationsFileInfoNb._(_root);
|
||||
@override late final _TranslationsMediaMenuNb mediaMenu = _TranslationsMediaMenuNb._(_root);
|
||||
@override late final _TranslationsAccessibilityNb accessibility = _TranslationsAccessibilityNb._(_root);
|
||||
@@ -128,7 +127,6 @@ class _TranslationsCommonNb implements TranslationsCommonEn {
|
||||
@override String get shuffle => 'Tilfeldig';
|
||||
@override String get addTo => 'Legg til i...';
|
||||
@override String get createNew => 'Opprett ny';
|
||||
@override String get remove => 'Fjern';
|
||||
@override String get paste => 'Lim inn';
|
||||
@override String get connect => 'Koble til';
|
||||
@override String get disconnect => 'Koble fra';
|
||||
@@ -142,7 +140,6 @@ class _TranslationsCommonNb implements TranslationsCommonEn {
|
||||
@override String get settings => 'Innstillinger';
|
||||
@override String get mute => 'Demp';
|
||||
@override String get ok => 'OK';
|
||||
@override String get loading => 'Laster...';
|
||||
@override String get reconnect => 'Koble til på nytt';
|
||||
@override String get exitConfirmTitle => 'Avslutte appen?';
|
||||
@override String get exitConfirmMessage => 'Er du sikker på at du vil avslutte?';
|
||||
@@ -256,6 +253,8 @@ class _TranslationsSettingsNb implements TranslationsSettingsEn {
|
||||
@override String get subtitleStylingDescription => 'Tilpass utseendet på undertekster';
|
||||
@override String get smallSkipDuration => 'Kort hoppvarighet';
|
||||
@override String get largeSkipDuration => 'Lang hoppvarighet';
|
||||
@override String get rewindOnResume => 'Spol tilbake ved gjenopptakelse';
|
||||
@override String get rewindOnResumeDescription => 'Spol tilbake med denne mengden ved gjenopptakelse av avspilling';
|
||||
@override String secondsUnit({required Object seconds}) => '${seconds} sekunder';
|
||||
@override String get defaultSleepTimer => 'Standard søvntimer';
|
||||
@override String minutesUnit({required Object minutes}) => '${minutes} minutter';
|
||||
@@ -333,6 +332,8 @@ class _TranslationsSettingsNb implements TranslationsSettingsEn {
|
||||
@override String get confirmExitOnBackDescription => 'Vis en bekreftelsesdialog når du trykker tilbake for å avslutte appen';
|
||||
@override String get showNavBarLabels => 'Vis navigasjonsfeltlabeler';
|
||||
@override String get showNavBarLabelsDescription => 'Vis tekstlabeler under navigasjonsfeltikoner';
|
||||
@override String get liveTvDefaultFavorites => 'Standard til favorittkanaler';
|
||||
@override String get liveTvDefaultFavoritesDescription => 'Vis kun favorittkanaler når du åpner Live TV';
|
||||
}
|
||||
|
||||
// Path: search
|
||||
@@ -360,18 +361,6 @@ class _TranslationsHotkeysNb implements TranslationsHotkeysEn {
|
||||
@override late final _TranslationsHotkeysActionsNb actions = _TranslationsHotkeysActionsNb._(_root);
|
||||
}
|
||||
|
||||
// Path: pinEntry
|
||||
class _TranslationsPinEntryNb implements TranslationsPinEntryEn {
|
||||
_TranslationsPinEntryNb._(this._root);
|
||||
|
||||
final TranslationsNb _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get enterPin => 'Skriv inn PIN';
|
||||
@override String get showPin => 'Vis PIN';
|
||||
@override String get hidePin => 'Skjul PIN';
|
||||
}
|
||||
|
||||
// Path: fileInfo
|
||||
class _TranslationsFileInfoNb implements TranslationsFileInfoEn {
|
||||
_TranslationsFileInfoNb._(this._root);
|
||||
@@ -478,7 +467,6 @@ class _TranslationsVideoControlsNb implements TranslationsVideoControlsEn {
|
||||
@override String get unlockRotation => 'Lås opp rotasjon';
|
||||
@override String get timerActive => 'Timer aktiv';
|
||||
@override String playbackWillPauseIn({required Object duration}) => 'Avspilling vil pause om ${duration}';
|
||||
@override String get sleepTimerCompleted => 'Søvntimer fullført – avspilling satt på pause';
|
||||
@override String get stillWatching => 'Ser du fortsatt?';
|
||||
@override String pausingIn({required Object seconds}) => 'Pauser om ${seconds}s';
|
||||
@override String get continueWatching => 'Fortsett';
|
||||
@@ -495,20 +483,20 @@ class _TranslationsVideoControlsNb implements TranslationsVideoControlsEn {
|
||||
@override String get muteButton => 'Demp';
|
||||
@override String get unmuteButton => 'Opphev demping';
|
||||
@override String get settingsButton => 'Videoinnstillinger';
|
||||
@override String get audioTrackButton => 'Lydspor';
|
||||
@override String get subtitlesButton => 'Undertekster';
|
||||
@override String get tracksButton => 'Lyd og undertekster';
|
||||
@override String get chaptersButton => 'Kapitler';
|
||||
@override String get versionsButton => 'Videoversjoner';
|
||||
@override String get pipButton => 'Bilde-i-bilde-modus';
|
||||
@override String get aspectRatioButton => 'Sideforhold';
|
||||
@override String get ambientLighting => 'Omgivelseslys';
|
||||
@override String get ambientLightingOn => 'Aktiver omgivelseslys';
|
||||
@override String get ambientLightingOff => 'Deaktiver omgivelseslys';
|
||||
@override String get fullscreenButton => 'Gå til fullskjerm';
|
||||
@override String get exitFullscreenButton => 'Avslutt fullskjerm';
|
||||
@override String get alwaysOnTopButton => 'Alltid øverst';
|
||||
@override String get rotationLockButton => 'Rotasjonslås';
|
||||
@override String get lockScreen => 'Lås skjerm';
|
||||
@override String get unlockScreen => 'Lås opp skjerm';
|
||||
@override String get screenLockButton => 'Skjermlås';
|
||||
@override String get longPressToUnlock => 'Langt trykk for å låse opp';
|
||||
@override String get timelineSlider => 'Videotidslinje';
|
||||
@override String get volumeSlider => 'Volumnivå';
|
||||
@override String endsAt({required Object time}) => 'Slutter kl. ${time}';
|
||||
@@ -642,11 +630,8 @@ class _TranslationsDiscoverNb implements TranslationsDiscoverEn {
|
||||
@override String get overview => 'Oversikt';
|
||||
@override String get cast => 'Skuespillere';
|
||||
@override String get extras => 'Trailere og ekstra';
|
||||
@override String get seasons => 'Sesonger';
|
||||
@override String get studio => 'Studio';
|
||||
@override String get rating => 'Vurdering';
|
||||
@override String episodeCount({required Object count}) => '${count} episoder';
|
||||
@override String watchedProgress({required Object watched, required Object total}) => '${watched}/${total} sett';
|
||||
@override String get movie => 'Film';
|
||||
@override String get tvShow => 'TV-serie';
|
||||
@override String minutesLeft({required Object minutes}) => '${minutes} min igjen';
|
||||
@@ -769,8 +754,6 @@ class _TranslationsLogsNb implements TranslationsLogsEn {
|
||||
@override String get clearLogs => 'Tøm logger';
|
||||
@override String get copyLogs => 'Kopier logger';
|
||||
@override String get uploadLogs => 'Last opp logger';
|
||||
@override String get error => 'Feil:';
|
||||
@override String get stackTrace => 'Stabelsporing:';
|
||||
}
|
||||
|
||||
// Path: licenses
|
||||
@@ -806,20 +789,12 @@ class _TranslationsLiveTvNb implements TranslationsLiveTvEn {
|
||||
|
||||
// Translations
|
||||
@override String get title => 'Direkte-TV';
|
||||
@override String get channels => 'Kanaler';
|
||||
@override String get guide => 'Programguide';
|
||||
@override String get noChannels => 'Ingen kanaler tilgjengelig';
|
||||
@override String get noDvr => 'Ingen DVR konfigurert på noen server';
|
||||
@override String get tuneFailed => 'Kunne ikke stille inn kanal';
|
||||
@override String get loading => 'Laster kanaler...';
|
||||
@override String get nowPlaying => 'Spilles nå';
|
||||
@override String get noPrograms => 'Ingen programdata tilgjengelig';
|
||||
@override String channelNumber({required Object number}) => 'Kanal ${number}';
|
||||
@override String get live => 'DIREKTE';
|
||||
@override String get hd => 'HD';
|
||||
@override String get premiere => 'NY';
|
||||
@override String get reloadGuide => 'Last inn programguide på nytt';
|
||||
@override String get allChannels => 'Alle kanaler';
|
||||
@override String get now => 'Nå';
|
||||
@override String get today => 'I dag';
|
||||
@override String get midnight => 'Midnatt';
|
||||
@@ -830,6 +805,7 @@ class _TranslationsLiveTvNb implements TranslationsLiveTvEn {
|
||||
@override String get lateNight => 'Sen kveld';
|
||||
@override String get whatsOn => 'Hva går nå';
|
||||
@override String get watchChannel => 'Se kanal';
|
||||
@override String get favorites => 'Favoritter';
|
||||
}
|
||||
|
||||
// Path: collections
|
||||
@@ -1058,7 +1034,6 @@ class _TranslationsExternalPlayerNb implements TranslationsExternalPlayerEn {
|
||||
@override String get playerCommand => 'Kommando';
|
||||
@override String get playerPackage => 'Pakkenavn';
|
||||
@override String get playerUrlScheme => 'URL-skjema';
|
||||
@override String get customPlayer => 'Egendefinert spiller';
|
||||
@override String get off => 'Av';
|
||||
@override String get launchFailed => 'Kunne ikke åpne ekstern spiller';
|
||||
@override String appNotInstalled({required Object name}) => '${name} er ikke installert';
|
||||
@@ -1336,7 +1311,6 @@ extension on TranslationsNb {
|
||||
'common.shuffle' => 'Tilfeldig',
|
||||
'common.addTo' => 'Legg til i...',
|
||||
'common.createNew' => 'Opprett ny',
|
||||
'common.remove' => 'Fjern',
|
||||
'common.paste' => 'Lim inn',
|
||||
'common.connect' => 'Koble til',
|
||||
'common.disconnect' => 'Koble fra',
|
||||
@@ -1350,7 +1324,6 @@ extension on TranslationsNb {
|
||||
'common.settings' => 'Innstillinger',
|
||||
'common.mute' => 'Demp',
|
||||
'common.ok' => 'OK',
|
||||
'common.loading' => 'Laster...',
|
||||
'common.reconnect' => 'Koble til på nytt',
|
||||
'common.exitConfirmTitle' => 'Avslutte appen?',
|
||||
'common.exitConfirmMessage' => 'Er du sikker på at du vil avslutte?',
|
||||
@@ -1437,6 +1410,8 @@ extension on TranslationsNb {
|
||||
'settings.subtitleStylingDescription' => 'Tilpass utseendet på undertekster',
|
||||
'settings.smallSkipDuration' => 'Kort hoppvarighet',
|
||||
'settings.largeSkipDuration' => 'Lang hoppvarighet',
|
||||
'settings.rewindOnResume' => 'Spol tilbake ved gjenopptakelse',
|
||||
'settings.rewindOnResumeDescription' => 'Spol tilbake med denne mengden ved gjenopptakelse av avspilling',
|
||||
'settings.secondsUnit' => ({required Object seconds}) => '${seconds} sekunder',
|
||||
'settings.defaultSleepTimer' => 'Standard søvntimer',
|
||||
'settings.minutesUnit' => ({required Object minutes}) => '${minutes} minutter',
|
||||
@@ -1514,6 +1489,8 @@ extension on TranslationsNb {
|
||||
'settings.confirmExitOnBackDescription' => 'Vis en bekreftelsesdialog når du trykker tilbake for å avslutte appen',
|
||||
'settings.showNavBarLabels' => 'Vis navigasjonsfeltlabeler',
|
||||
'settings.showNavBarLabelsDescription' => 'Vis tekstlabeler under navigasjonsfeltikoner',
|
||||
'settings.liveTvDefaultFavorites' => 'Standard til favorittkanaler',
|
||||
'settings.liveTvDefaultFavoritesDescription' => 'Vis kun favorittkanaler når du åpner Live TV',
|
||||
'search.hint' => 'Søk i filmer, serier, musikk...',
|
||||
'search.tryDifferentTerm' => 'Prøv et annet søkeord',
|
||||
'search.searchYourMedia' => 'Søk i mediene dine',
|
||||
@@ -1539,9 +1516,6 @@ extension on TranslationsNb {
|
||||
'hotkeys.actions.subSeekPrev' => 'Spol til forrige undertekst',
|
||||
'hotkeys.actions.shaderToggle' => 'Veksle shadere',
|
||||
'hotkeys.actions.skipMarker' => 'Hopp over intro/rulletekst',
|
||||
'pinEntry.enterPin' => 'Skriv inn PIN',
|
||||
'pinEntry.showPin' => 'Vis PIN',
|
||||
'pinEntry.hidePin' => 'Skjul PIN',
|
||||
'fileInfo.title' => 'Filinformasjon',
|
||||
'fileInfo.video' => 'Video',
|
||||
'fileInfo.audio' => 'Lyd',
|
||||
@@ -1605,7 +1579,6 @@ extension on TranslationsNb {
|
||||
'videoControls.unlockRotation' => 'Lås opp rotasjon',
|
||||
'videoControls.timerActive' => 'Timer aktiv',
|
||||
'videoControls.playbackWillPauseIn' => ({required Object duration}) => 'Avspilling vil pause om ${duration}',
|
||||
'videoControls.sleepTimerCompleted' => 'Søvntimer fullført – avspilling satt på pause',
|
||||
'videoControls.stillWatching' => 'Ser du fortsatt?',
|
||||
'videoControls.pausingIn' => ({required Object seconds}) => 'Pauser om ${seconds}s',
|
||||
'videoControls.continueWatching' => 'Fortsett',
|
||||
@@ -1622,20 +1595,20 @@ extension on TranslationsNb {
|
||||
'videoControls.muteButton' => 'Demp',
|
||||
'videoControls.unmuteButton' => 'Opphev demping',
|
||||
'videoControls.settingsButton' => 'Videoinnstillinger',
|
||||
'videoControls.audioTrackButton' => 'Lydspor',
|
||||
'videoControls.subtitlesButton' => 'Undertekster',
|
||||
'videoControls.tracksButton' => 'Lyd og undertekster',
|
||||
'videoControls.chaptersButton' => 'Kapitler',
|
||||
'videoControls.versionsButton' => 'Videoversjoner',
|
||||
'videoControls.pipButton' => 'Bilde-i-bilde-modus',
|
||||
'videoControls.aspectRatioButton' => 'Sideforhold',
|
||||
'videoControls.ambientLighting' => 'Omgivelseslys',
|
||||
'videoControls.ambientLightingOn' => 'Aktiver omgivelseslys',
|
||||
'videoControls.ambientLightingOff' => 'Deaktiver omgivelseslys',
|
||||
'videoControls.fullscreenButton' => 'Gå til fullskjerm',
|
||||
'videoControls.exitFullscreenButton' => 'Avslutt fullskjerm',
|
||||
'videoControls.alwaysOnTopButton' => 'Alltid øverst',
|
||||
'videoControls.rotationLockButton' => 'Rotasjonslås',
|
||||
'videoControls.lockScreen' => 'Lås skjerm',
|
||||
'videoControls.unlockScreen' => 'Lås opp skjerm',
|
||||
'videoControls.screenLockButton' => 'Skjermlås',
|
||||
'videoControls.longPressToUnlock' => 'Langt trykk for å låse opp',
|
||||
'videoControls.timelineSlider' => 'Videotidslinje',
|
||||
'videoControls.volumeSlider' => 'Volumnivå',
|
||||
'videoControls.endsAt' => ({required Object time}) => 'Slutter kl. ${time}',
|
||||
@@ -1721,11 +1694,8 @@ extension on TranslationsNb {
|
||||
'discover.overview' => 'Oversikt',
|
||||
'discover.cast' => 'Skuespillere',
|
||||
'discover.extras' => 'Trailere og ekstra',
|
||||
'discover.seasons' => 'Sesonger',
|
||||
'discover.studio' => 'Studio',
|
||||
'discover.rating' => 'Vurdering',
|
||||
'discover.episodeCount' => ({required Object count}) => '${count} episoder',
|
||||
'discover.watchedProgress' => ({required Object watched, required Object total}) => '${watched}/${total} sett',
|
||||
'discover.movie' => 'Film',
|
||||
'discover.tvShow' => 'TV-serie',
|
||||
'discover.minutesLeft' => ({required Object minutes}) => '${minutes} min igjen',
|
||||
@@ -1803,8 +1773,6 @@ extension on TranslationsNb {
|
||||
'logs.clearLogs' => 'Tøm logger',
|
||||
'logs.copyLogs' => 'Kopier logger',
|
||||
'logs.uploadLogs' => 'Last opp logger',
|
||||
'logs.error' => 'Feil:',
|
||||
'logs.stackTrace' => 'Stabelsporing:',
|
||||
'licenses.relatedPackages' => 'Relaterte pakker',
|
||||
'licenses.license' => 'Lisens',
|
||||
'licenses.licenseNumber' => ({required Object number}) => 'Lisens ${number}',
|
||||
@@ -1813,22 +1781,12 @@ extension on TranslationsNb {
|
||||
'navigation.downloads' => 'Nedlastinger',
|
||||
'navigation.liveTv' => 'Direkte-TV',
|
||||
'liveTv.title' => 'Direkte-TV',
|
||||
'liveTv.channels' => 'Kanaler',
|
||||
'liveTv.guide' => 'Programguide',
|
||||
'liveTv.noChannels' => 'Ingen kanaler tilgjengelig',
|
||||
'liveTv.noDvr' => 'Ingen DVR konfigurert på noen server',
|
||||
'liveTv.tuneFailed' => 'Kunne ikke stille inn kanal',
|
||||
'liveTv.loading' => 'Laster kanaler...',
|
||||
'liveTv.nowPlaying' => 'Spilles nå',
|
||||
'liveTv.noPrograms' => 'Ingen programdata tilgjengelig',
|
||||
'liveTv.channelNumber' => ({required Object number}) => 'Kanal ${number}',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'liveTv.live' => 'DIREKTE',
|
||||
'liveTv.hd' => 'HD',
|
||||
'liveTv.premiere' => 'NY',
|
||||
'liveTv.reloadGuide' => 'Last inn programguide på nytt',
|
||||
'liveTv.allChannels' => 'Alle kanaler',
|
||||
'liveTv.now' => 'Nå',
|
||||
'liveTv.today' => 'I dag',
|
||||
'liveTv.midnight' => 'Midnatt',
|
||||
@@ -1839,6 +1797,9 @@ extension on TranslationsNb {
|
||||
'liveTv.lateNight' => 'Sen kveld',
|
||||
'liveTv.whatsOn' => 'Hva går nå',
|
||||
'liveTv.watchChannel' => 'Se kanal',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'liveTv.favorites' => 'Favoritter',
|
||||
'collections.title' => 'Samlinger',
|
||||
'collections.collection' => 'Samling',
|
||||
'collections.empty' => 'Samlingen er tom',
|
||||
@@ -2061,7 +2022,6 @@ extension on TranslationsNb {
|
||||
'externalPlayer.playerCommand' => 'Kommando',
|
||||
'externalPlayer.playerPackage' => 'Pakkenavn',
|
||||
'externalPlayer.playerUrlScheme' => 'URL-skjema',
|
||||
'externalPlayer.customPlayer' => 'Egendefinert spiller',
|
||||
'externalPlayer.off' => 'Av',
|
||||
'externalPlayer.launchFailed' => 'Kunne ikke åpne ekstern spiller',
|
||||
'externalPlayer.appNotInstalled' => ({required Object name}) => '${name} er ikke installert',
|
||||
|
||||
+20
-60
@@ -45,7 +45,6 @@ class TranslationsNl with BaseTranslations<AppLocale, Translations> implements T
|
||||
@override late final _TranslationsSettingsNl settings = _TranslationsSettingsNl._(_root);
|
||||
@override late final _TranslationsSearchNl search = _TranslationsSearchNl._(_root);
|
||||
@override late final _TranslationsHotkeysNl hotkeys = _TranslationsHotkeysNl._(_root);
|
||||
@override late final _TranslationsPinEntryNl pinEntry = _TranslationsPinEntryNl._(_root);
|
||||
@override late final _TranslationsFileInfoNl fileInfo = _TranslationsFileInfoNl._(_root);
|
||||
@override late final _TranslationsMediaMenuNl mediaMenu = _TranslationsMediaMenuNl._(_root);
|
||||
@override late final _TranslationsAccessibilityNl accessibility = _TranslationsAccessibilityNl._(_root);
|
||||
@@ -128,7 +127,6 @@ class _TranslationsCommonNl implements TranslationsCommonEn {
|
||||
@override String get shuffle => 'Willekeurig';
|
||||
@override String get addTo => 'Toevoegen aan...';
|
||||
@override String get createNew => 'Nieuw aanmaken';
|
||||
@override String get remove => 'Verwijderen';
|
||||
@override String get paste => 'Plakken';
|
||||
@override String get connect => 'Verbinden';
|
||||
@override String get disconnect => 'Verbinding verbreken';
|
||||
@@ -142,7 +140,6 @@ class _TranslationsCommonNl implements TranslationsCommonEn {
|
||||
@override String get settings => 'Opties';
|
||||
@override String get mute => 'Dempen';
|
||||
@override String get ok => 'OK';
|
||||
@override String get loading => 'Laden...';
|
||||
@override String get reconnect => 'Opnieuw verbinden';
|
||||
@override String get exitConfirmTitle => 'App afsluiten?';
|
||||
@override String get exitConfirmMessage => 'Weet je zeker dat je wilt afsluiten?';
|
||||
@@ -256,6 +253,8 @@ class _TranslationsSettingsNl implements TranslationsSettingsEn {
|
||||
@override String get subtitleStylingDescription => 'Pas ondertitel uiterlijk aan';
|
||||
@override String get smallSkipDuration => 'Korte skip duur';
|
||||
@override String get largeSkipDuration => 'Lange skip duur';
|
||||
@override String get rewindOnResume => 'Terugspoelen bij hervatten';
|
||||
@override String get rewindOnResumeDescription => 'Spoel dit aantal seconden terug bij het hervatten van afspelen';
|
||||
@override String secondsUnit({required Object seconds}) => '${seconds} seconden';
|
||||
@override String get defaultSleepTimer => 'Standaard slaap timer';
|
||||
@override String minutesUnit({required Object minutes}) => 'bij ${minutes} minuten';
|
||||
@@ -333,6 +332,8 @@ class _TranslationsSettingsNl implements TranslationsSettingsEn {
|
||||
@override String get confirmExitOnBackDescription => 'Toon een bevestigingsvenster bij het drukken op terug om de app af te sluiten';
|
||||
@override String get showNavBarLabels => 'Navigatiebalk labels tonen';
|
||||
@override String get showNavBarLabelsDescription => 'Tekstlabels onder de pictogrammen van de navigatiebalk weergeven';
|
||||
@override String get liveTvDefaultFavorites => 'Standaard favoriete zenders';
|
||||
@override String get liveTvDefaultFavoritesDescription => 'Toon alleen favoriete zenders bij het openen van Live TV';
|
||||
}
|
||||
|
||||
// Path: search
|
||||
@@ -360,18 +361,6 @@ class _TranslationsHotkeysNl implements TranslationsHotkeysEn {
|
||||
@override late final _TranslationsHotkeysActionsNl actions = _TranslationsHotkeysActionsNl._(_root);
|
||||
}
|
||||
|
||||
// Path: pinEntry
|
||||
class _TranslationsPinEntryNl implements TranslationsPinEntryEn {
|
||||
_TranslationsPinEntryNl._(this._root);
|
||||
|
||||
final TranslationsNl _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get enterPin => 'Voer PIN in';
|
||||
@override String get showPin => 'Toon PIN';
|
||||
@override String get hidePin => 'Verberg PIN';
|
||||
}
|
||||
|
||||
// Path: fileInfo
|
||||
class _TranslationsFileInfoNl implements TranslationsFileInfoEn {
|
||||
_TranslationsFileInfoNl._(this._root);
|
||||
@@ -478,7 +467,6 @@ class _TranslationsVideoControlsNl implements TranslationsVideoControlsEn {
|
||||
@override String get unlockRotation => 'Ontgrendel rotatie';
|
||||
@override String get timerActive => 'Timer actief';
|
||||
@override String playbackWillPauseIn({required Object duration}) => 'Afspelen wordt gepauzeerd over ${duration}';
|
||||
@override String get sleepTimerCompleted => 'Slaaptimer voltooid - afspelen gepauzeerd';
|
||||
@override String get stillWatching => 'Kijk je nog?';
|
||||
@override String pausingIn({required Object seconds}) => 'Pauze over ${seconds}s';
|
||||
@override String get continueWatching => 'Doorgaan';
|
||||
@@ -495,20 +483,20 @@ class _TranslationsVideoControlsNl implements TranslationsVideoControlsEn {
|
||||
@override String get muteButton => 'Dempen';
|
||||
@override String get unmuteButton => 'Dempen opheffen';
|
||||
@override String get settingsButton => 'Video-instellingen';
|
||||
@override String get audioTrackButton => 'Audiosporen';
|
||||
@override String get subtitlesButton => 'Ondertitels';
|
||||
@override String get tracksButton => 'Audio en ondertitels';
|
||||
@override String get chaptersButton => 'Hoofdstukken';
|
||||
@override String get versionsButton => 'Videoversies';
|
||||
@override String get pipButton => 'Beeld-in-beeld modus';
|
||||
@override String get aspectRatioButton => 'Beeldverhouding';
|
||||
@override String get ambientLighting => 'Omgevingsverlichting';
|
||||
@override String get ambientLightingOn => 'Omgevingsverlichting inschakelen';
|
||||
@override String get ambientLightingOff => 'Omgevingsverlichting uitschakelen';
|
||||
@override String get fullscreenButton => 'Volledig scherm activeren';
|
||||
@override String get exitFullscreenButton => 'Volledig scherm verlaten';
|
||||
@override String get alwaysOnTopButton => 'Altijd bovenop';
|
||||
@override String get rotationLockButton => 'Rotatievergrendeling';
|
||||
@override String get lockScreen => 'Vergrendel scherm';
|
||||
@override String get unlockScreen => 'Ontgrendel scherm';
|
||||
@override String get screenLockButton => 'Schermvergrendeling';
|
||||
@override String get longPressToUnlock => 'Lang indrukken om te ontgrendelen';
|
||||
@override String get timelineSlider => 'Videotijdlijn';
|
||||
@override String get volumeSlider => 'Volumeniveau';
|
||||
@override String endsAt({required Object time}) => 'Eindigt om ${time}';
|
||||
@@ -642,11 +630,8 @@ class _TranslationsDiscoverNl implements TranslationsDiscoverEn {
|
||||
@override String get overview => 'Overzicht';
|
||||
@override String get cast => 'Acteurs';
|
||||
@override String get extras => 'Trailers & Extra\'s';
|
||||
@override String get seasons => 'Seizoenen';
|
||||
@override String get studio => 'Studio';
|
||||
@override String get rating => 'Leeftijd';
|
||||
@override String episodeCount({required Object count}) => '${count} afleveringen';
|
||||
@override String watchedProgress({required Object watched, required Object total}) => '${watched}/${total} gekeken';
|
||||
@override String get movie => 'Film';
|
||||
@override String get tvShow => 'TV Serie';
|
||||
@override String minutesLeft({required Object minutes}) => '${minutes} min over';
|
||||
@@ -769,8 +754,6 @@ class _TranslationsLogsNl implements TranslationsLogsEn {
|
||||
@override String get clearLogs => 'Wis logs';
|
||||
@override String get copyLogs => 'Kopieer logs';
|
||||
@override String get uploadLogs => 'Logs uploaden';
|
||||
@override String get error => 'Fout:';
|
||||
@override String get stackTrace => 'Stacktracering:';
|
||||
}
|
||||
|
||||
// Path: licenses
|
||||
@@ -806,20 +789,12 @@ class _TranslationsLiveTvNl implements TranslationsLiveTvEn {
|
||||
|
||||
// Translations
|
||||
@override String get title => 'Live TV';
|
||||
@override String get channels => 'Zenders';
|
||||
@override String get guide => 'Gids';
|
||||
@override String get noChannels => 'Geen zenders beschikbaar';
|
||||
@override String get noDvr => 'Geen DVR geconfigureerd op een server';
|
||||
@override String get tuneFailed => 'Kan zender niet afstemmen';
|
||||
@override String get loading => 'Zenders laden...';
|
||||
@override String get nowPlaying => 'Nu aan het afspelen';
|
||||
@override String get noPrograms => 'Geen programmagegevens beschikbaar';
|
||||
@override String channelNumber({required Object number}) => 'Kanaal ${number}';
|
||||
@override String get live => 'LIVE';
|
||||
@override String get hd => 'HD';
|
||||
@override String get premiere => 'NIEUW';
|
||||
@override String get reloadGuide => 'Gids herladen';
|
||||
@override String get allChannels => 'Alle zenders';
|
||||
@override String get now => 'Nu';
|
||||
@override String get today => 'Vandaag';
|
||||
@override String get midnight => 'Middernacht';
|
||||
@@ -830,6 +805,7 @@ class _TranslationsLiveTvNl implements TranslationsLiveTvEn {
|
||||
@override String get lateNight => 'Late avond';
|
||||
@override String get whatsOn => 'Nu op TV';
|
||||
@override String get watchChannel => 'Kanaal bekijken';
|
||||
@override String get favorites => 'Favorieten';
|
||||
}
|
||||
|
||||
// Path: downloads
|
||||
@@ -1058,7 +1034,6 @@ class _TranslationsExternalPlayerNl implements TranslationsExternalPlayerEn {
|
||||
@override String get playerCommand => 'Commando';
|
||||
@override String get playerPackage => 'Pakketnaam';
|
||||
@override String get playerUrlScheme => 'URL-schema';
|
||||
@override String get customPlayer => 'Aangepaste speler';
|
||||
@override String get off => 'Uit';
|
||||
@override String get launchFailed => 'Kan externe speler niet openen';
|
||||
@override String appNotInstalled({required Object name}) => '${name} is niet geïnstalleerd';
|
||||
@@ -1336,7 +1311,6 @@ extension on TranslationsNl {
|
||||
'common.shuffle' => 'Willekeurig',
|
||||
'common.addTo' => 'Toevoegen aan...',
|
||||
'common.createNew' => 'Nieuw aanmaken',
|
||||
'common.remove' => 'Verwijderen',
|
||||
'common.paste' => 'Plakken',
|
||||
'common.connect' => 'Verbinden',
|
||||
'common.disconnect' => 'Verbinding verbreken',
|
||||
@@ -1350,7 +1324,6 @@ extension on TranslationsNl {
|
||||
'common.settings' => 'Opties',
|
||||
'common.mute' => 'Dempen',
|
||||
'common.ok' => 'OK',
|
||||
'common.loading' => 'Laden...',
|
||||
'common.reconnect' => 'Opnieuw verbinden',
|
||||
'common.exitConfirmTitle' => 'App afsluiten?',
|
||||
'common.exitConfirmMessage' => 'Weet je zeker dat je wilt afsluiten?',
|
||||
@@ -1437,6 +1410,8 @@ extension on TranslationsNl {
|
||||
'settings.subtitleStylingDescription' => 'Pas ondertitel uiterlijk aan',
|
||||
'settings.smallSkipDuration' => 'Korte skip duur',
|
||||
'settings.largeSkipDuration' => 'Lange skip duur',
|
||||
'settings.rewindOnResume' => 'Terugspoelen bij hervatten',
|
||||
'settings.rewindOnResumeDescription' => 'Spoel dit aantal seconden terug bij het hervatten van afspelen',
|
||||
'settings.secondsUnit' => ({required Object seconds}) => '${seconds} seconden',
|
||||
'settings.defaultSleepTimer' => 'Standaard slaap timer',
|
||||
'settings.minutesUnit' => ({required Object minutes}) => 'bij ${minutes} minuten',
|
||||
@@ -1514,6 +1489,8 @@ extension on TranslationsNl {
|
||||
'settings.confirmExitOnBackDescription' => 'Toon een bevestigingsvenster bij het drukken op terug om de app af te sluiten',
|
||||
'settings.showNavBarLabels' => 'Navigatiebalk labels tonen',
|
||||
'settings.showNavBarLabelsDescription' => 'Tekstlabels onder de pictogrammen van de navigatiebalk weergeven',
|
||||
'settings.liveTvDefaultFavorites' => 'Standaard favoriete zenders',
|
||||
'settings.liveTvDefaultFavoritesDescription' => 'Toon alleen favoriete zenders bij het openen van Live TV',
|
||||
'search.hint' => 'Zoek films, series, muziek...',
|
||||
'search.tryDifferentTerm' => 'Probeer een andere zoekterm',
|
||||
'search.searchYourMedia' => 'Zoek in je media',
|
||||
@@ -1539,9 +1516,6 @@ extension on TranslationsNl {
|
||||
'hotkeys.actions.subSeekPrev' => 'Naar vorige ondertitel',
|
||||
'hotkeys.actions.shaderToggle' => 'Shaders aan/uit',
|
||||
'hotkeys.actions.skipMarker' => 'Intro/aftiteling overslaan',
|
||||
'pinEntry.enterPin' => 'Voer PIN in',
|
||||
'pinEntry.showPin' => 'Toon PIN',
|
||||
'pinEntry.hidePin' => 'Verberg PIN',
|
||||
'fileInfo.title' => 'Bestand info',
|
||||
'fileInfo.video' => 'Video',
|
||||
'fileInfo.audio' => 'Audio',
|
||||
@@ -1605,7 +1579,6 @@ extension on TranslationsNl {
|
||||
'videoControls.unlockRotation' => 'Ontgrendel rotatie',
|
||||
'videoControls.timerActive' => 'Timer actief',
|
||||
'videoControls.playbackWillPauseIn' => ({required Object duration}) => 'Afspelen wordt gepauzeerd over ${duration}',
|
||||
'videoControls.sleepTimerCompleted' => 'Slaaptimer voltooid - afspelen gepauzeerd',
|
||||
'videoControls.stillWatching' => 'Kijk je nog?',
|
||||
'videoControls.pausingIn' => ({required Object seconds}) => 'Pauze over ${seconds}s',
|
||||
'videoControls.continueWatching' => 'Doorgaan',
|
||||
@@ -1622,20 +1595,20 @@ extension on TranslationsNl {
|
||||
'videoControls.muteButton' => 'Dempen',
|
||||
'videoControls.unmuteButton' => 'Dempen opheffen',
|
||||
'videoControls.settingsButton' => 'Video-instellingen',
|
||||
'videoControls.audioTrackButton' => 'Audiosporen',
|
||||
'videoControls.subtitlesButton' => 'Ondertitels',
|
||||
'videoControls.tracksButton' => 'Audio en ondertitels',
|
||||
'videoControls.chaptersButton' => 'Hoofdstukken',
|
||||
'videoControls.versionsButton' => 'Videoversies',
|
||||
'videoControls.pipButton' => 'Beeld-in-beeld modus',
|
||||
'videoControls.aspectRatioButton' => 'Beeldverhouding',
|
||||
'videoControls.ambientLighting' => 'Omgevingsverlichting',
|
||||
'videoControls.ambientLightingOn' => 'Omgevingsverlichting inschakelen',
|
||||
'videoControls.ambientLightingOff' => 'Omgevingsverlichting uitschakelen',
|
||||
'videoControls.fullscreenButton' => 'Volledig scherm activeren',
|
||||
'videoControls.exitFullscreenButton' => 'Volledig scherm verlaten',
|
||||
'videoControls.alwaysOnTopButton' => 'Altijd bovenop',
|
||||
'videoControls.rotationLockButton' => 'Rotatievergrendeling',
|
||||
'videoControls.lockScreen' => 'Vergrendel scherm',
|
||||
'videoControls.unlockScreen' => 'Ontgrendel scherm',
|
||||
'videoControls.screenLockButton' => 'Schermvergrendeling',
|
||||
'videoControls.longPressToUnlock' => 'Lang indrukken om te ontgrendelen',
|
||||
'videoControls.timelineSlider' => 'Videotijdlijn',
|
||||
'videoControls.volumeSlider' => 'Volumeniveau',
|
||||
'videoControls.endsAt' => ({required Object time}) => 'Eindigt om ${time}',
|
||||
@@ -1721,11 +1694,8 @@ extension on TranslationsNl {
|
||||
'discover.overview' => 'Overzicht',
|
||||
'discover.cast' => 'Acteurs',
|
||||
'discover.extras' => 'Trailers & Extra\'s',
|
||||
'discover.seasons' => 'Seizoenen',
|
||||
'discover.studio' => 'Studio',
|
||||
'discover.rating' => 'Leeftijd',
|
||||
'discover.episodeCount' => ({required Object count}) => '${count} afleveringen',
|
||||
'discover.watchedProgress' => ({required Object watched, required Object total}) => '${watched}/${total} gekeken',
|
||||
'discover.movie' => 'Film',
|
||||
'discover.tvShow' => 'TV Serie',
|
||||
'discover.minutesLeft' => ({required Object minutes}) => '${minutes} min over',
|
||||
@@ -1803,8 +1773,6 @@ extension on TranslationsNl {
|
||||
'logs.clearLogs' => 'Wis logs',
|
||||
'logs.copyLogs' => 'Kopieer logs',
|
||||
'logs.uploadLogs' => 'Logs uploaden',
|
||||
'logs.error' => 'Fout:',
|
||||
'logs.stackTrace' => 'Stacktracering:',
|
||||
'licenses.relatedPackages' => 'Gerelateerde pakketten',
|
||||
'licenses.license' => 'Licentie',
|
||||
'licenses.licenseNumber' => ({required Object number}) => 'Licentie ${number}',
|
||||
@@ -1813,22 +1781,12 @@ extension on TranslationsNl {
|
||||
'navigation.downloads' => 'Downloads',
|
||||
'navigation.liveTv' => 'Live TV',
|
||||
'liveTv.title' => 'Live TV',
|
||||
'liveTv.channels' => 'Zenders',
|
||||
'liveTv.guide' => 'Gids',
|
||||
'liveTv.noChannels' => 'Geen zenders beschikbaar',
|
||||
'liveTv.noDvr' => 'Geen DVR geconfigureerd op een server',
|
||||
'liveTv.tuneFailed' => 'Kan zender niet afstemmen',
|
||||
'liveTv.loading' => 'Zenders laden...',
|
||||
'liveTv.nowPlaying' => 'Nu aan het afspelen',
|
||||
'liveTv.noPrograms' => 'Geen programmagegevens beschikbaar',
|
||||
'liveTv.channelNumber' => ({required Object number}) => 'Kanaal ${number}',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'liveTv.live' => 'LIVE',
|
||||
'liveTv.hd' => 'HD',
|
||||
'liveTv.premiere' => 'NIEUW',
|
||||
'liveTv.reloadGuide' => 'Gids herladen',
|
||||
'liveTv.allChannels' => 'Alle zenders',
|
||||
'liveTv.now' => 'Nu',
|
||||
'liveTv.today' => 'Vandaag',
|
||||
'liveTv.midnight' => 'Middernacht',
|
||||
@@ -1839,6 +1797,9 @@ extension on TranslationsNl {
|
||||
'liveTv.lateNight' => 'Late avond',
|
||||
'liveTv.whatsOn' => 'Nu op TV',
|
||||
'liveTv.watchChannel' => 'Kanaal bekijken',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'liveTv.favorites' => 'Favorieten',
|
||||
'downloads.title' => 'Downloads',
|
||||
'downloads.manage' => 'Beheren',
|
||||
'downloads.tvShows' => 'Series',
|
||||
@@ -2061,7 +2022,6 @@ extension on TranslationsNl {
|
||||
'externalPlayer.playerCommand' => 'Commando',
|
||||
'externalPlayer.playerPackage' => 'Pakketnaam',
|
||||
'externalPlayer.playerUrlScheme' => 'URL-schema',
|
||||
'externalPlayer.customPlayer' => 'Aangepaste speler',
|
||||
'externalPlayer.off' => 'Uit',
|
||||
'externalPlayer.launchFailed' => 'Kan externe speler niet openen',
|
||||
'externalPlayer.appNotInstalled' => ({required Object name}) => '${name} is niet geïnstalleerd',
|
||||
|
||||
+20
-60
@@ -45,7 +45,6 @@ class TranslationsPl with BaseTranslations<AppLocale, Translations> implements T
|
||||
@override late final _TranslationsSettingsPl settings = _TranslationsSettingsPl._(_root);
|
||||
@override late final _TranslationsSearchPl search = _TranslationsSearchPl._(_root);
|
||||
@override late final _TranslationsHotkeysPl hotkeys = _TranslationsHotkeysPl._(_root);
|
||||
@override late final _TranslationsPinEntryPl pinEntry = _TranslationsPinEntryPl._(_root);
|
||||
@override late final _TranslationsFileInfoPl fileInfo = _TranslationsFileInfoPl._(_root);
|
||||
@override late final _TranslationsMediaMenuPl mediaMenu = _TranslationsMediaMenuPl._(_root);
|
||||
@override late final _TranslationsAccessibilityPl accessibility = _TranslationsAccessibilityPl._(_root);
|
||||
@@ -128,7 +127,6 @@ class _TranslationsCommonPl implements TranslationsCommonEn {
|
||||
@override String get shuffle => 'Losowo';
|
||||
@override String get addTo => 'Dodaj do...';
|
||||
@override String get createNew => 'Utwórz nowy';
|
||||
@override String get remove => 'Usuń';
|
||||
@override String get paste => 'Wklej';
|
||||
@override String get connect => 'Połącz';
|
||||
@override String get disconnect => 'Rozłącz';
|
||||
@@ -142,7 +140,6 @@ class _TranslationsCommonPl implements TranslationsCommonEn {
|
||||
@override String get settings => 'Ustawienia';
|
||||
@override String get mute => 'Wycisz';
|
||||
@override String get ok => 'OK';
|
||||
@override String get loading => 'Ładowanie...';
|
||||
@override String get reconnect => 'Połącz ponownie';
|
||||
@override String get exitConfirmTitle => 'Zamknąć aplikację?';
|
||||
@override String get exitConfirmMessage => 'Czy na pewno chcesz wyjść?';
|
||||
@@ -256,6 +253,8 @@ class _TranslationsSettingsPl implements TranslationsSettingsEn {
|
||||
@override String get subtitleStylingDescription => 'Dostosuj wygląd napisów';
|
||||
@override String get smallSkipDuration => 'Krótki skok';
|
||||
@override String get largeSkipDuration => 'Długi skok';
|
||||
@override String get rewindOnResume => 'Przewiń przy wznowieniu';
|
||||
@override String get rewindOnResumeDescription => 'Przewiń o tę wartość przy wznawianiu odtwarzania';
|
||||
@override String secondsUnit({required Object seconds}) => '${seconds} sekund';
|
||||
@override String get defaultSleepTimer => 'Domyślny wyłącznik czasowy';
|
||||
@override String minutesUnit({required Object minutes}) => '${minutes} minut';
|
||||
@@ -333,6 +332,8 @@ class _TranslationsSettingsPl implements TranslationsSettingsEn {
|
||||
@override String get confirmExitOnBackDescription => 'Pokaż dialog potwierdzenia przy naciśnięciu wstecz, aby wyjść z aplikacji';
|
||||
@override String get showNavBarLabels => 'Pokaż etykiety paska nawigacji';
|
||||
@override String get showNavBarLabelsDescription => 'Wyświetl tekstowe etykiety pod ikonami paska nawigacji';
|
||||
@override String get liveTvDefaultFavorites => 'Domyślnie ulubione kanały';
|
||||
@override String get liveTvDefaultFavoritesDescription => 'Pokaż tylko ulubione kanały po otwarciu telewizji na żywo';
|
||||
}
|
||||
|
||||
// Path: search
|
||||
@@ -360,18 +361,6 @@ class _TranslationsHotkeysPl implements TranslationsHotkeysEn {
|
||||
@override late final _TranslationsHotkeysActionsPl actions = _TranslationsHotkeysActionsPl._(_root);
|
||||
}
|
||||
|
||||
// Path: pinEntry
|
||||
class _TranslationsPinEntryPl implements TranslationsPinEntryEn {
|
||||
_TranslationsPinEntryPl._(this._root);
|
||||
|
||||
final TranslationsPl _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get enterPin => 'Wprowadź PIN';
|
||||
@override String get showPin => 'Pokaż PIN';
|
||||
@override String get hidePin => 'Ukryj PIN';
|
||||
}
|
||||
|
||||
// Path: fileInfo
|
||||
class _TranslationsFileInfoPl implements TranslationsFileInfoEn {
|
||||
_TranslationsFileInfoPl._(this._root);
|
||||
@@ -478,7 +467,6 @@ class _TranslationsVideoControlsPl implements TranslationsVideoControlsEn {
|
||||
@override String get unlockRotation => 'Odblokuj obrót';
|
||||
@override String get timerActive => 'Wyłącznik aktywny';
|
||||
@override String playbackWillPauseIn({required Object duration}) => 'Odtwarzanie zatrzyma się za ${duration}';
|
||||
@override String get sleepTimerCompleted => 'Wyłącznik czasowy zakończony — odtwarzanie wstrzymane';
|
||||
@override String get stillWatching => 'Nadal oglądasz?';
|
||||
@override String pausingIn({required Object seconds}) => 'Pauza za ${seconds}s';
|
||||
@override String get continueWatching => 'Kontynuuj';
|
||||
@@ -495,20 +483,20 @@ class _TranslationsVideoControlsPl implements TranslationsVideoControlsEn {
|
||||
@override String get muteButton => 'Wycisz';
|
||||
@override String get unmuteButton => 'Wyłącz wyciszenie';
|
||||
@override String get settingsButton => 'Ustawienia wideo';
|
||||
@override String get audioTrackButton => 'Ścieżki audio';
|
||||
@override String get subtitlesButton => 'Napisy';
|
||||
@override String get tracksButton => 'Audio i napisy';
|
||||
@override String get chaptersButton => 'Rozdziały';
|
||||
@override String get versionsButton => 'Wersje wideo';
|
||||
@override String get pipButton => 'Tryb obraz w obrazie';
|
||||
@override String get aspectRatioButton => 'Proporcje';
|
||||
@override String get ambientLighting => 'Oświetlenie otoczenia';
|
||||
@override String get ambientLightingOn => 'Włącz oświetlenie otoczenia';
|
||||
@override String get ambientLightingOff => 'Wyłącz oświetlenie otoczenia';
|
||||
@override String get fullscreenButton => 'Wejdź w pełny ekran';
|
||||
@override String get exitFullscreenButton => 'Wyjdź z pełnego ekranu';
|
||||
@override String get alwaysOnTopButton => 'Zawsze na wierzchu';
|
||||
@override String get rotationLockButton => 'Blokada obrotu';
|
||||
@override String get lockScreen => 'Zablokuj ekran';
|
||||
@override String get unlockScreen => 'Odblokuj ekran';
|
||||
@override String get screenLockButton => 'Blokada ekranu';
|
||||
@override String get longPressToUnlock => 'Przytrzymaj, aby odblokować';
|
||||
@override String get timelineSlider => 'Oś czasu wideo';
|
||||
@override String get volumeSlider => 'Poziom głośności';
|
||||
@override String endsAt({required Object time}) => 'Kończy się o ${time}';
|
||||
@@ -642,11 +630,8 @@ class _TranslationsDiscoverPl implements TranslationsDiscoverEn {
|
||||
@override String get overview => 'Opis';
|
||||
@override String get cast => 'Obsada';
|
||||
@override String get extras => 'Zwiastuny i dodatki';
|
||||
@override String get seasons => 'Sezony';
|
||||
@override String get studio => 'Studio';
|
||||
@override String get rating => 'Ocena';
|
||||
@override String episodeCount({required Object count}) => '${count} odcinków';
|
||||
@override String watchedProgress({required Object watched, required Object total}) => '${watched}/${total} obejrzanych';
|
||||
@override String get movie => 'Film';
|
||||
@override String get tvShow => 'Serial TV';
|
||||
@override String minutesLeft({required Object minutes}) => '${minutes} min pozostało';
|
||||
@@ -769,8 +754,6 @@ class _TranslationsLogsPl implements TranslationsLogsEn {
|
||||
@override String get clearLogs => 'Wyczyść logi';
|
||||
@override String get copyLogs => 'Kopiuj logi';
|
||||
@override String get uploadLogs => 'Prześlij logi';
|
||||
@override String get error => 'Błąd:';
|
||||
@override String get stackTrace => 'Ślad stosu:';
|
||||
}
|
||||
|
||||
// Path: licenses
|
||||
@@ -806,20 +789,12 @@ class _TranslationsLiveTvPl implements TranslationsLiveTvEn {
|
||||
|
||||
// Translations
|
||||
@override String get title => 'TV na żywo';
|
||||
@override String get channels => 'Kanały';
|
||||
@override String get guide => 'Przewodnik';
|
||||
@override String get noChannels => 'Brak dostępnych kanałów';
|
||||
@override String get noDvr => 'Brak skonfigurowanego DVR na żadnym serwerze';
|
||||
@override String get tuneFailed => 'Nie udało się dostroić kanału';
|
||||
@override String get loading => 'Ładowanie kanałów...';
|
||||
@override String get nowPlaying => 'Teraz odtwarzane';
|
||||
@override String get noPrograms => 'Brak danych o programach';
|
||||
@override String channelNumber({required Object number}) => 'Kn. ${number}';
|
||||
@override String get live => 'NA ŻYWO';
|
||||
@override String get hd => 'HD';
|
||||
@override String get premiere => 'NOWE';
|
||||
@override String get reloadGuide => 'Odśwież przewodnik';
|
||||
@override String get allChannels => 'Wszystkie kanały';
|
||||
@override String get now => 'Teraz';
|
||||
@override String get today => 'Dzisiaj';
|
||||
@override String get midnight => 'Północ';
|
||||
@@ -830,6 +805,7 @@ class _TranslationsLiveTvPl implements TranslationsLiveTvEn {
|
||||
@override String get lateNight => 'Późna noc';
|
||||
@override String get whatsOn => 'Co leci';
|
||||
@override String get watchChannel => 'Oglądaj kanał';
|
||||
@override String get favorites => 'Ulubione';
|
||||
}
|
||||
|
||||
// Path: collections
|
||||
@@ -1058,7 +1034,6 @@ class _TranslationsExternalPlayerPl implements TranslationsExternalPlayerEn {
|
||||
@override String get playerCommand => 'Polecenie';
|
||||
@override String get playerPackage => 'Nazwa pakietu';
|
||||
@override String get playerUrlScheme => 'Schemat URL';
|
||||
@override String get customPlayer => 'Niestandardowy odtwarzacz';
|
||||
@override String get off => 'Wyłączony';
|
||||
@override String get launchFailed => 'Nie udało się otworzyć zewnętrznego odtwarzacza';
|
||||
@override String appNotInstalled({required Object name}) => '${name} nie jest zainstalowany';
|
||||
@@ -1336,7 +1311,6 @@ extension on TranslationsPl {
|
||||
'common.shuffle' => 'Losowo',
|
||||
'common.addTo' => 'Dodaj do...',
|
||||
'common.createNew' => 'Utwórz nowy',
|
||||
'common.remove' => 'Usuń',
|
||||
'common.paste' => 'Wklej',
|
||||
'common.connect' => 'Połącz',
|
||||
'common.disconnect' => 'Rozłącz',
|
||||
@@ -1350,7 +1324,6 @@ extension on TranslationsPl {
|
||||
'common.settings' => 'Ustawienia',
|
||||
'common.mute' => 'Wycisz',
|
||||
'common.ok' => 'OK',
|
||||
'common.loading' => 'Ładowanie...',
|
||||
'common.reconnect' => 'Połącz ponownie',
|
||||
'common.exitConfirmTitle' => 'Zamknąć aplikację?',
|
||||
'common.exitConfirmMessage' => 'Czy na pewno chcesz wyjść?',
|
||||
@@ -1437,6 +1410,8 @@ extension on TranslationsPl {
|
||||
'settings.subtitleStylingDescription' => 'Dostosuj wygląd napisów',
|
||||
'settings.smallSkipDuration' => 'Krótki skok',
|
||||
'settings.largeSkipDuration' => 'Długi skok',
|
||||
'settings.rewindOnResume' => 'Przewiń przy wznowieniu',
|
||||
'settings.rewindOnResumeDescription' => 'Przewiń o tę wartość przy wznawianiu odtwarzania',
|
||||
'settings.secondsUnit' => ({required Object seconds}) => '${seconds} sekund',
|
||||
'settings.defaultSleepTimer' => 'Domyślny wyłącznik czasowy',
|
||||
'settings.minutesUnit' => ({required Object minutes}) => '${minutes} minut',
|
||||
@@ -1514,6 +1489,8 @@ extension on TranslationsPl {
|
||||
'settings.confirmExitOnBackDescription' => 'Pokaż dialog potwierdzenia przy naciśnięciu wstecz, aby wyjść z aplikacji',
|
||||
'settings.showNavBarLabels' => 'Pokaż etykiety paska nawigacji',
|
||||
'settings.showNavBarLabelsDescription' => 'Wyświetl tekstowe etykiety pod ikonami paska nawigacji',
|
||||
'settings.liveTvDefaultFavorites' => 'Domyślnie ulubione kanały',
|
||||
'settings.liveTvDefaultFavoritesDescription' => 'Pokaż tylko ulubione kanały po otwarciu telewizji na żywo',
|
||||
'search.hint' => 'Szukaj filmów, seriali, muzyki...',
|
||||
'search.tryDifferentTerm' => 'Spróbuj innego wyszukiwania',
|
||||
'search.searchYourMedia' => 'Przeszukaj swoje media',
|
||||
@@ -1539,9 +1516,6 @@ extension on TranslationsPl {
|
||||
'hotkeys.actions.subSeekPrev' => 'Przewiń do poprzedniego napisu',
|
||||
'hotkeys.actions.shaderToggle' => 'Przełącz shadery',
|
||||
'hotkeys.actions.skipMarker' => 'Pomiń intro/napisy końcowe',
|
||||
'pinEntry.enterPin' => 'Wprowadź PIN',
|
||||
'pinEntry.showPin' => 'Pokaż PIN',
|
||||
'pinEntry.hidePin' => 'Ukryj PIN',
|
||||
'fileInfo.title' => 'Informacje o pliku',
|
||||
'fileInfo.video' => 'Wideo',
|
||||
'fileInfo.audio' => 'Audio',
|
||||
@@ -1605,7 +1579,6 @@ extension on TranslationsPl {
|
||||
'videoControls.unlockRotation' => 'Odblokuj obrót',
|
||||
'videoControls.timerActive' => 'Wyłącznik aktywny',
|
||||
'videoControls.playbackWillPauseIn' => ({required Object duration}) => 'Odtwarzanie zatrzyma się za ${duration}',
|
||||
'videoControls.sleepTimerCompleted' => 'Wyłącznik czasowy zakończony — odtwarzanie wstrzymane',
|
||||
'videoControls.stillWatching' => 'Nadal oglądasz?',
|
||||
'videoControls.pausingIn' => ({required Object seconds}) => 'Pauza za ${seconds}s',
|
||||
'videoControls.continueWatching' => 'Kontynuuj',
|
||||
@@ -1622,20 +1595,20 @@ extension on TranslationsPl {
|
||||
'videoControls.muteButton' => 'Wycisz',
|
||||
'videoControls.unmuteButton' => 'Wyłącz wyciszenie',
|
||||
'videoControls.settingsButton' => 'Ustawienia wideo',
|
||||
'videoControls.audioTrackButton' => 'Ścieżki audio',
|
||||
'videoControls.subtitlesButton' => 'Napisy',
|
||||
'videoControls.tracksButton' => 'Audio i napisy',
|
||||
'videoControls.chaptersButton' => 'Rozdziały',
|
||||
'videoControls.versionsButton' => 'Wersje wideo',
|
||||
'videoControls.pipButton' => 'Tryb obraz w obrazie',
|
||||
'videoControls.aspectRatioButton' => 'Proporcje',
|
||||
'videoControls.ambientLighting' => 'Oświetlenie otoczenia',
|
||||
'videoControls.ambientLightingOn' => 'Włącz oświetlenie otoczenia',
|
||||
'videoControls.ambientLightingOff' => 'Wyłącz oświetlenie otoczenia',
|
||||
'videoControls.fullscreenButton' => 'Wejdź w pełny ekran',
|
||||
'videoControls.exitFullscreenButton' => 'Wyjdź z pełnego ekranu',
|
||||
'videoControls.alwaysOnTopButton' => 'Zawsze na wierzchu',
|
||||
'videoControls.rotationLockButton' => 'Blokada obrotu',
|
||||
'videoControls.lockScreen' => 'Zablokuj ekran',
|
||||
'videoControls.unlockScreen' => 'Odblokuj ekran',
|
||||
'videoControls.screenLockButton' => 'Blokada ekranu',
|
||||
'videoControls.longPressToUnlock' => 'Przytrzymaj, aby odblokować',
|
||||
'videoControls.timelineSlider' => 'Oś czasu wideo',
|
||||
'videoControls.volumeSlider' => 'Poziom głośności',
|
||||
'videoControls.endsAt' => ({required Object time}) => 'Kończy się o ${time}',
|
||||
@@ -1721,11 +1694,8 @@ extension on TranslationsPl {
|
||||
'discover.overview' => 'Opis',
|
||||
'discover.cast' => 'Obsada',
|
||||
'discover.extras' => 'Zwiastuny i dodatki',
|
||||
'discover.seasons' => 'Sezony',
|
||||
'discover.studio' => 'Studio',
|
||||
'discover.rating' => 'Ocena',
|
||||
'discover.episodeCount' => ({required Object count}) => '${count} odcinków',
|
||||
'discover.watchedProgress' => ({required Object watched, required Object total}) => '${watched}/${total} obejrzanych',
|
||||
'discover.movie' => 'Film',
|
||||
'discover.tvShow' => 'Serial TV',
|
||||
'discover.minutesLeft' => ({required Object minutes}) => '${minutes} min pozostało',
|
||||
@@ -1803,8 +1773,6 @@ extension on TranslationsPl {
|
||||
'logs.clearLogs' => 'Wyczyść logi',
|
||||
'logs.copyLogs' => 'Kopiuj logi',
|
||||
'logs.uploadLogs' => 'Prześlij logi',
|
||||
'logs.error' => 'Błąd:',
|
||||
'logs.stackTrace' => 'Ślad stosu:',
|
||||
'licenses.relatedPackages' => 'Powiązane pakiety',
|
||||
'licenses.license' => 'Licencja',
|
||||
'licenses.licenseNumber' => ({required Object number}) => 'Licencja ${number}',
|
||||
@@ -1813,22 +1781,12 @@ extension on TranslationsPl {
|
||||
'navigation.downloads' => 'Pobrania',
|
||||
'navigation.liveTv' => 'TV na żywo',
|
||||
'liveTv.title' => 'TV na żywo',
|
||||
'liveTv.channels' => 'Kanały',
|
||||
'liveTv.guide' => 'Przewodnik',
|
||||
'liveTv.noChannels' => 'Brak dostępnych kanałów',
|
||||
'liveTv.noDvr' => 'Brak skonfigurowanego DVR na żadnym serwerze',
|
||||
'liveTv.tuneFailed' => 'Nie udało się dostroić kanału',
|
||||
'liveTv.loading' => 'Ładowanie kanałów...',
|
||||
'liveTv.nowPlaying' => 'Teraz odtwarzane',
|
||||
'liveTv.noPrograms' => 'Brak danych o programach',
|
||||
'liveTv.channelNumber' => ({required Object number}) => 'Kn. ${number}',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'liveTv.live' => 'NA ŻYWO',
|
||||
'liveTv.hd' => 'HD',
|
||||
'liveTv.premiere' => 'NOWE',
|
||||
'liveTv.reloadGuide' => 'Odśwież przewodnik',
|
||||
'liveTv.allChannels' => 'Wszystkie kanały',
|
||||
'liveTv.now' => 'Teraz',
|
||||
'liveTv.today' => 'Dzisiaj',
|
||||
'liveTv.midnight' => 'Północ',
|
||||
@@ -1839,6 +1797,9 @@ extension on TranslationsPl {
|
||||
'liveTv.lateNight' => 'Późna noc',
|
||||
'liveTv.whatsOn' => 'Co leci',
|
||||
'liveTv.watchChannel' => 'Oglądaj kanał',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'liveTv.favorites' => 'Ulubione',
|
||||
'collections.title' => 'Kolekcje',
|
||||
'collections.collection' => 'Kolekcja',
|
||||
'collections.empty' => 'Kolekcja jest pusta',
|
||||
@@ -2061,7 +2022,6 @@ extension on TranslationsPl {
|
||||
'externalPlayer.playerCommand' => 'Polecenie',
|
||||
'externalPlayer.playerPackage' => 'Nazwa pakietu',
|
||||
'externalPlayer.playerUrlScheme' => 'Schemat URL',
|
||||
'externalPlayer.customPlayer' => 'Niestandardowy odtwarzacz',
|
||||
'externalPlayer.off' => 'Wyłączony',
|
||||
'externalPlayer.launchFailed' => 'Nie udało się otworzyć zewnętrznego odtwarzacza',
|
||||
'externalPlayer.appNotInstalled' => ({required Object name}) => '${name} nie jest zainstalowany',
|
||||
|
||||
+20
-60
@@ -45,7 +45,6 @@ class TranslationsPt with BaseTranslations<AppLocale, Translations> implements T
|
||||
@override late final _TranslationsSettingsPt settings = _TranslationsSettingsPt._(_root);
|
||||
@override late final _TranslationsSearchPt search = _TranslationsSearchPt._(_root);
|
||||
@override late final _TranslationsHotkeysPt hotkeys = _TranslationsHotkeysPt._(_root);
|
||||
@override late final _TranslationsPinEntryPt pinEntry = _TranslationsPinEntryPt._(_root);
|
||||
@override late final _TranslationsFileInfoPt fileInfo = _TranslationsFileInfoPt._(_root);
|
||||
@override late final _TranslationsMediaMenuPt mediaMenu = _TranslationsMediaMenuPt._(_root);
|
||||
@override late final _TranslationsAccessibilityPt accessibility = _TranslationsAccessibilityPt._(_root);
|
||||
@@ -128,7 +127,6 @@ class _TranslationsCommonPt implements TranslationsCommonEn {
|
||||
@override String get shuffle => 'Aleatório';
|
||||
@override String get addTo => 'Adicionar a...';
|
||||
@override String get createNew => 'Criar novo';
|
||||
@override String get remove => 'Remover';
|
||||
@override String get paste => 'Colar';
|
||||
@override String get connect => 'Conectar';
|
||||
@override String get disconnect => 'Desconectar';
|
||||
@@ -142,7 +140,6 @@ class _TranslationsCommonPt implements TranslationsCommonEn {
|
||||
@override String get settings => 'Configurações';
|
||||
@override String get mute => 'Silenciar';
|
||||
@override String get ok => 'OK';
|
||||
@override String get loading => 'Carregando...';
|
||||
@override String get reconnect => 'Reconectar';
|
||||
@override String get exitConfirmTitle => 'Sair do app?';
|
||||
@override String get exitConfirmMessage => 'Tem certeza que deseja sair?';
|
||||
@@ -256,6 +253,8 @@ class _TranslationsSettingsPt implements TranslationsSettingsEn {
|
||||
@override String get subtitleStylingDescription => 'Personalizar aparência das legendas';
|
||||
@override String get smallSkipDuration => 'Duração do Avanço Curto';
|
||||
@override String get largeSkipDuration => 'Duração do Avanço Longo';
|
||||
@override String get rewindOnResume => 'Rebobinar ao retomar';
|
||||
@override String get rewindOnResumeDescription => 'Rebobinar esta quantidade ao retomar a reprodução';
|
||||
@override String secondsUnit({required Object seconds}) => '${seconds} segundos';
|
||||
@override String get defaultSleepTimer => 'Timer de Sono Padrão';
|
||||
@override String minutesUnit({required Object minutes}) => '${minutes} minutos';
|
||||
@@ -333,6 +332,8 @@ class _TranslationsSettingsPt implements TranslationsSettingsEn {
|
||||
@override String get confirmExitOnBackDescription => 'Mostrar diálogo de confirmação ao pressionar voltar para sair do app';
|
||||
@override String get showNavBarLabels => 'Mostrar Rótulos da Barra de Navegação';
|
||||
@override String get showNavBarLabelsDescription => 'Exibir rótulos de texto sob os ícones da barra de navegação';
|
||||
@override String get liveTvDefaultFavorites => 'Canais favoritos por padrão';
|
||||
@override String get liveTvDefaultFavoritesDescription => 'Mostrar apenas canais favoritos ao abrir TV ao vivo';
|
||||
}
|
||||
|
||||
// Path: search
|
||||
@@ -360,18 +361,6 @@ class _TranslationsHotkeysPt implements TranslationsHotkeysEn {
|
||||
@override late final _TranslationsHotkeysActionsPt actions = _TranslationsHotkeysActionsPt._(_root);
|
||||
}
|
||||
|
||||
// Path: pinEntry
|
||||
class _TranslationsPinEntryPt implements TranslationsPinEntryEn {
|
||||
_TranslationsPinEntryPt._(this._root);
|
||||
|
||||
final TranslationsPt _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get enterPin => 'Inserir PIN';
|
||||
@override String get showPin => 'Mostrar PIN';
|
||||
@override String get hidePin => 'Ocultar PIN';
|
||||
}
|
||||
|
||||
// Path: fileInfo
|
||||
class _TranslationsFileInfoPt implements TranslationsFileInfoEn {
|
||||
_TranslationsFileInfoPt._(this._root);
|
||||
@@ -478,7 +467,6 @@ class _TranslationsVideoControlsPt implements TranslationsVideoControlsEn {
|
||||
@override String get unlockRotation => 'Destravar rotação';
|
||||
@override String get timerActive => 'Timer Ativo';
|
||||
@override String playbackWillPauseIn({required Object duration}) => 'A reprodução pausará em ${duration}';
|
||||
@override String get sleepTimerCompleted => 'Timer de sono concluído - reprodução pausada';
|
||||
@override String get stillWatching => 'Ainda assistindo?';
|
||||
@override String pausingIn({required Object seconds}) => 'Pausando em ${seconds}s';
|
||||
@override String get continueWatching => 'Continuar';
|
||||
@@ -495,20 +483,20 @@ class _TranslationsVideoControlsPt implements TranslationsVideoControlsEn {
|
||||
@override String get muteButton => 'Silenciar';
|
||||
@override String get unmuteButton => 'Ativar som';
|
||||
@override String get settingsButton => 'Configurações de vídeo';
|
||||
@override String get audioTrackButton => 'Faixas de áudio';
|
||||
@override String get subtitlesButton => 'Legendas';
|
||||
@override String get tracksButton => 'Áudio e Legendas';
|
||||
@override String get chaptersButton => 'Capítulos';
|
||||
@override String get versionsButton => 'Versões do vídeo';
|
||||
@override String get pipButton => 'Modo Picture-in-Picture';
|
||||
@override String get aspectRatioButton => 'Proporção';
|
||||
@override String get ambientLighting => 'Iluminação ambiente';
|
||||
@override String get ambientLightingOn => 'Ativar iluminação ambiente';
|
||||
@override String get ambientLightingOff => 'Desativar iluminação ambiente';
|
||||
@override String get fullscreenButton => 'Entrar em tela cheia';
|
||||
@override String get exitFullscreenButton => 'Sair da tela cheia';
|
||||
@override String get alwaysOnTopButton => 'Sempre no topo';
|
||||
@override String get rotationLockButton => 'Travar rotação';
|
||||
@override String get lockScreen => 'Travar tela';
|
||||
@override String get unlockScreen => 'Destravar tela';
|
||||
@override String get screenLockButton => 'Travar tela';
|
||||
@override String get longPressToUnlock => 'Pressione e segure para destravar';
|
||||
@override String get timelineSlider => 'Linha do tempo do vídeo';
|
||||
@override String get volumeSlider => 'Nível de volume';
|
||||
@override String endsAt({required Object time}) => 'Termina às ${time}';
|
||||
@@ -642,11 +630,8 @@ class _TranslationsDiscoverPt implements TranslationsDiscoverEn {
|
||||
@override String get overview => 'Sinopse';
|
||||
@override String get cast => 'Elenco';
|
||||
@override String get extras => 'Trailers e Extras';
|
||||
@override String get seasons => 'Temporadas';
|
||||
@override String get studio => 'Estúdio';
|
||||
@override String get rating => 'Avaliação';
|
||||
@override String episodeCount({required Object count}) => '${count} episódios';
|
||||
@override String watchedProgress({required Object watched, required Object total}) => '${watched}/${total} assistidos';
|
||||
@override String get movie => 'Filme';
|
||||
@override String get tvShow => 'Série de TV';
|
||||
@override String minutesLeft({required Object minutes}) => '${minutes} min restantes';
|
||||
@@ -769,8 +754,6 @@ class _TranslationsLogsPt implements TranslationsLogsEn {
|
||||
@override String get clearLogs => 'Limpar Logs';
|
||||
@override String get copyLogs => 'Copiar Logs';
|
||||
@override String get uploadLogs => 'Enviar Logs';
|
||||
@override String get error => 'Erro:';
|
||||
@override String get stackTrace => 'Stack Trace:';
|
||||
}
|
||||
|
||||
// Path: licenses
|
||||
@@ -806,20 +789,12 @@ class _TranslationsLiveTvPt implements TranslationsLiveTvEn {
|
||||
|
||||
// Translations
|
||||
@override String get title => 'TV ao Vivo';
|
||||
@override String get channels => 'Canais';
|
||||
@override String get guide => 'Guia';
|
||||
@override String get noChannels => 'Nenhum canal disponível';
|
||||
@override String get noDvr => 'Nenhum DVR configurado em nenhum servidor';
|
||||
@override String get tuneFailed => 'Falha ao sintonizar canal';
|
||||
@override String get loading => 'Carregando canais...';
|
||||
@override String get nowPlaying => 'Reproduzindo Agora';
|
||||
@override String get noPrograms => 'Nenhum dado de programação disponível';
|
||||
@override String channelNumber({required Object number}) => 'Ch. ${number}';
|
||||
@override String get live => 'AO VIVO';
|
||||
@override String get hd => 'HD';
|
||||
@override String get premiere => 'NOVO';
|
||||
@override String get reloadGuide => 'Recarregar Guia';
|
||||
@override String get allChannels => 'Todos os Canais';
|
||||
@override String get now => 'Agora';
|
||||
@override String get today => 'Hoje';
|
||||
@override String get midnight => 'Meia-noite';
|
||||
@@ -830,6 +805,7 @@ class _TranslationsLiveTvPt implements TranslationsLiveTvEn {
|
||||
@override String get lateNight => 'Madrugada';
|
||||
@override String get whatsOn => 'O que Está Passando';
|
||||
@override String get watchChannel => 'Assistir Canal';
|
||||
@override String get favorites => 'Favoritos';
|
||||
}
|
||||
|
||||
// Path: collections
|
||||
@@ -1058,7 +1034,6 @@ class _TranslationsExternalPlayerPt implements TranslationsExternalPlayerEn {
|
||||
@override String get playerCommand => 'Comando';
|
||||
@override String get playerPackage => 'Nome do Pacote';
|
||||
@override String get playerUrlScheme => 'Esquema de URL';
|
||||
@override String get customPlayer => 'Player Personalizado';
|
||||
@override String get off => 'Desativado';
|
||||
@override String get launchFailed => 'Falha ao abrir player externo';
|
||||
@override String appNotInstalled({required Object name}) => '${name} não está instalado';
|
||||
@@ -1336,7 +1311,6 @@ extension on TranslationsPt {
|
||||
'common.shuffle' => 'Aleatório',
|
||||
'common.addTo' => 'Adicionar a...',
|
||||
'common.createNew' => 'Criar novo',
|
||||
'common.remove' => 'Remover',
|
||||
'common.paste' => 'Colar',
|
||||
'common.connect' => 'Conectar',
|
||||
'common.disconnect' => 'Desconectar',
|
||||
@@ -1350,7 +1324,6 @@ extension on TranslationsPt {
|
||||
'common.settings' => 'Configurações',
|
||||
'common.mute' => 'Silenciar',
|
||||
'common.ok' => 'OK',
|
||||
'common.loading' => 'Carregando...',
|
||||
'common.reconnect' => 'Reconectar',
|
||||
'common.exitConfirmTitle' => 'Sair do app?',
|
||||
'common.exitConfirmMessage' => 'Tem certeza que deseja sair?',
|
||||
@@ -1437,6 +1410,8 @@ extension on TranslationsPt {
|
||||
'settings.subtitleStylingDescription' => 'Personalizar aparência das legendas',
|
||||
'settings.smallSkipDuration' => 'Duração do Avanço Curto',
|
||||
'settings.largeSkipDuration' => 'Duração do Avanço Longo',
|
||||
'settings.rewindOnResume' => 'Rebobinar ao retomar',
|
||||
'settings.rewindOnResumeDescription' => 'Rebobinar esta quantidade ao retomar a reprodução',
|
||||
'settings.secondsUnit' => ({required Object seconds}) => '${seconds} segundos',
|
||||
'settings.defaultSleepTimer' => 'Timer de Sono Padrão',
|
||||
'settings.minutesUnit' => ({required Object minutes}) => '${minutes} minutos',
|
||||
@@ -1514,6 +1489,8 @@ extension on TranslationsPt {
|
||||
'settings.confirmExitOnBackDescription' => 'Mostrar diálogo de confirmação ao pressionar voltar para sair do app',
|
||||
'settings.showNavBarLabels' => 'Mostrar Rótulos da Barra de Navegação',
|
||||
'settings.showNavBarLabelsDescription' => 'Exibir rótulos de texto sob os ícones da barra de navegação',
|
||||
'settings.liveTvDefaultFavorites' => 'Canais favoritos por padrão',
|
||||
'settings.liveTvDefaultFavoritesDescription' => 'Mostrar apenas canais favoritos ao abrir TV ao vivo',
|
||||
'search.hint' => 'Buscar filmes, séries, músicas...',
|
||||
'search.tryDifferentTerm' => 'Tente um termo de busca diferente',
|
||||
'search.searchYourMedia' => 'Buscar suas mídias',
|
||||
@@ -1539,9 +1516,6 @@ extension on TranslationsPt {
|
||||
'hotkeys.actions.subSeekPrev' => 'Ir para Legenda Anterior',
|
||||
'hotkeys.actions.shaderToggle' => 'Alternar Shaders',
|
||||
'hotkeys.actions.skipMarker' => 'Pular Intro/Créditos',
|
||||
'pinEntry.enterPin' => 'Inserir PIN',
|
||||
'pinEntry.showPin' => 'Mostrar PIN',
|
||||
'pinEntry.hidePin' => 'Ocultar PIN',
|
||||
'fileInfo.title' => 'Info do Arquivo',
|
||||
'fileInfo.video' => 'Vídeo',
|
||||
'fileInfo.audio' => 'Áudio',
|
||||
@@ -1605,7 +1579,6 @@ extension on TranslationsPt {
|
||||
'videoControls.unlockRotation' => 'Destravar rotação',
|
||||
'videoControls.timerActive' => 'Timer Ativo',
|
||||
'videoControls.playbackWillPauseIn' => ({required Object duration}) => 'A reprodução pausará em ${duration}',
|
||||
'videoControls.sleepTimerCompleted' => 'Timer de sono concluído - reprodução pausada',
|
||||
'videoControls.stillWatching' => 'Ainda assistindo?',
|
||||
'videoControls.pausingIn' => ({required Object seconds}) => 'Pausando em ${seconds}s',
|
||||
'videoControls.continueWatching' => 'Continuar',
|
||||
@@ -1622,20 +1595,20 @@ extension on TranslationsPt {
|
||||
'videoControls.muteButton' => 'Silenciar',
|
||||
'videoControls.unmuteButton' => 'Ativar som',
|
||||
'videoControls.settingsButton' => 'Configurações de vídeo',
|
||||
'videoControls.audioTrackButton' => 'Faixas de áudio',
|
||||
'videoControls.subtitlesButton' => 'Legendas',
|
||||
'videoControls.tracksButton' => 'Áudio e Legendas',
|
||||
'videoControls.chaptersButton' => 'Capítulos',
|
||||
'videoControls.versionsButton' => 'Versões do vídeo',
|
||||
'videoControls.pipButton' => 'Modo Picture-in-Picture',
|
||||
'videoControls.aspectRatioButton' => 'Proporção',
|
||||
'videoControls.ambientLighting' => 'Iluminação ambiente',
|
||||
'videoControls.ambientLightingOn' => 'Ativar iluminação ambiente',
|
||||
'videoControls.ambientLightingOff' => 'Desativar iluminação ambiente',
|
||||
'videoControls.fullscreenButton' => 'Entrar em tela cheia',
|
||||
'videoControls.exitFullscreenButton' => 'Sair da tela cheia',
|
||||
'videoControls.alwaysOnTopButton' => 'Sempre no topo',
|
||||
'videoControls.rotationLockButton' => 'Travar rotação',
|
||||
'videoControls.lockScreen' => 'Travar tela',
|
||||
'videoControls.unlockScreen' => 'Destravar tela',
|
||||
'videoControls.screenLockButton' => 'Travar tela',
|
||||
'videoControls.longPressToUnlock' => 'Pressione e segure para destravar',
|
||||
'videoControls.timelineSlider' => 'Linha do tempo do vídeo',
|
||||
'videoControls.volumeSlider' => 'Nível de volume',
|
||||
'videoControls.endsAt' => ({required Object time}) => 'Termina às ${time}',
|
||||
@@ -1721,11 +1694,8 @@ extension on TranslationsPt {
|
||||
'discover.overview' => 'Sinopse',
|
||||
'discover.cast' => 'Elenco',
|
||||
'discover.extras' => 'Trailers e Extras',
|
||||
'discover.seasons' => 'Temporadas',
|
||||
'discover.studio' => 'Estúdio',
|
||||
'discover.rating' => 'Avaliação',
|
||||
'discover.episodeCount' => ({required Object count}) => '${count} episódios',
|
||||
'discover.watchedProgress' => ({required Object watched, required Object total}) => '${watched}/${total} assistidos',
|
||||
'discover.movie' => 'Filme',
|
||||
'discover.tvShow' => 'Série de TV',
|
||||
'discover.minutesLeft' => ({required Object minutes}) => '${minutes} min restantes',
|
||||
@@ -1803,8 +1773,6 @@ extension on TranslationsPt {
|
||||
'logs.clearLogs' => 'Limpar Logs',
|
||||
'logs.copyLogs' => 'Copiar Logs',
|
||||
'logs.uploadLogs' => 'Enviar Logs',
|
||||
'logs.error' => 'Erro:',
|
||||
'logs.stackTrace' => 'Stack Trace:',
|
||||
'licenses.relatedPackages' => 'Pacotes Relacionados',
|
||||
'licenses.license' => 'Licença',
|
||||
'licenses.licenseNumber' => ({required Object number}) => 'Licença ${number}',
|
||||
@@ -1813,22 +1781,12 @@ extension on TranslationsPt {
|
||||
'navigation.downloads' => 'Downloads',
|
||||
'navigation.liveTv' => 'TV ao Vivo',
|
||||
'liveTv.title' => 'TV ao Vivo',
|
||||
'liveTv.channels' => 'Canais',
|
||||
'liveTv.guide' => 'Guia',
|
||||
'liveTv.noChannels' => 'Nenhum canal disponível',
|
||||
'liveTv.noDvr' => 'Nenhum DVR configurado em nenhum servidor',
|
||||
'liveTv.tuneFailed' => 'Falha ao sintonizar canal',
|
||||
'liveTv.loading' => 'Carregando canais...',
|
||||
'liveTv.nowPlaying' => 'Reproduzindo Agora',
|
||||
'liveTv.noPrograms' => 'Nenhum dado de programação disponível',
|
||||
'liveTv.channelNumber' => ({required Object number}) => 'Ch. ${number}',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'liveTv.live' => 'AO VIVO',
|
||||
'liveTv.hd' => 'HD',
|
||||
'liveTv.premiere' => 'NOVO',
|
||||
'liveTv.reloadGuide' => 'Recarregar Guia',
|
||||
'liveTv.allChannels' => 'Todos os Canais',
|
||||
'liveTv.now' => 'Agora',
|
||||
'liveTv.today' => 'Hoje',
|
||||
'liveTv.midnight' => 'Meia-noite',
|
||||
@@ -1839,6 +1797,9 @@ extension on TranslationsPt {
|
||||
'liveTv.lateNight' => 'Madrugada',
|
||||
'liveTv.whatsOn' => 'O que Está Passando',
|
||||
'liveTv.watchChannel' => 'Assistir Canal',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'liveTv.favorites' => 'Favoritos',
|
||||
'collections.title' => 'Coleções',
|
||||
'collections.collection' => 'Coleção',
|
||||
'collections.empty' => 'A coleção está vazia',
|
||||
@@ -2061,7 +2022,6 @@ extension on TranslationsPt {
|
||||
'externalPlayer.playerCommand' => 'Comando',
|
||||
'externalPlayer.playerPackage' => 'Nome do Pacote',
|
||||
'externalPlayer.playerUrlScheme' => 'Esquema de URL',
|
||||
'externalPlayer.customPlayer' => 'Player Personalizado',
|
||||
'externalPlayer.off' => 'Desativado',
|
||||
'externalPlayer.launchFailed' => 'Falha ao abrir player externo',
|
||||
'externalPlayer.appNotInstalled' => ({required Object name}) => '${name} não está instalado',
|
||||
|
||||
+20
-60
@@ -45,7 +45,6 @@ class TranslationsRu with BaseTranslations<AppLocale, Translations> implements T
|
||||
@override late final _TranslationsSettingsRu settings = _TranslationsSettingsRu._(_root);
|
||||
@override late final _TranslationsSearchRu search = _TranslationsSearchRu._(_root);
|
||||
@override late final _TranslationsHotkeysRu hotkeys = _TranslationsHotkeysRu._(_root);
|
||||
@override late final _TranslationsPinEntryRu pinEntry = _TranslationsPinEntryRu._(_root);
|
||||
@override late final _TranslationsFileInfoRu fileInfo = _TranslationsFileInfoRu._(_root);
|
||||
@override late final _TranslationsMediaMenuRu mediaMenu = _TranslationsMediaMenuRu._(_root);
|
||||
@override late final _TranslationsAccessibilityRu accessibility = _TranslationsAccessibilityRu._(_root);
|
||||
@@ -128,7 +127,6 @@ class _TranslationsCommonRu implements TranslationsCommonEn {
|
||||
@override String get shuffle => 'Перемешать';
|
||||
@override String get addTo => 'Добавить в...';
|
||||
@override String get createNew => 'Создать новый';
|
||||
@override String get remove => 'Удалить';
|
||||
@override String get paste => 'Вставить';
|
||||
@override String get connect => 'Подключить';
|
||||
@override String get disconnect => 'Отключить';
|
||||
@@ -142,7 +140,6 @@ class _TranslationsCommonRu implements TranslationsCommonEn {
|
||||
@override String get settings => 'Настройки';
|
||||
@override String get mute => 'Без звука';
|
||||
@override String get ok => 'OK';
|
||||
@override String get loading => 'Загрузка...';
|
||||
@override String get reconnect => 'Переподключить';
|
||||
@override String get exitConfirmTitle => 'Выйти из приложения?';
|
||||
@override String get exitConfirmMessage => 'Вы уверены, что хотите выйти?';
|
||||
@@ -256,6 +253,8 @@ class _TranslationsSettingsRu implements TranslationsSettingsEn {
|
||||
@override String get subtitleStylingDescription => 'Настроить внешний вид субтитров';
|
||||
@override String get smallSkipDuration => 'Малая перемотка';
|
||||
@override String get largeSkipDuration => 'Большая перемотка';
|
||||
@override String get rewindOnResume => 'Перемотка при возобновлении';
|
||||
@override String get rewindOnResumeDescription => 'Перемотать на это количество секунд при возобновлении воспроизведения';
|
||||
@override String secondsUnit({required Object seconds}) => '${seconds} секунд';
|
||||
@override String get defaultSleepTimer => 'Таймер сна по умолчанию';
|
||||
@override String minutesUnit({required Object minutes}) => '${minutes} минут';
|
||||
@@ -333,6 +332,8 @@ class _TranslationsSettingsRu implements TranslationsSettingsEn {
|
||||
@override String get confirmExitOnBackDescription => 'Показывать диалог подтверждения при нажатии «назад» для выхода из приложения';
|
||||
@override String get showNavBarLabels => 'Показывать подписи панели навигации';
|
||||
@override String get showNavBarLabelsDescription => 'Отображать текстовые подписи под иконками панели навигации';
|
||||
@override String get liveTvDefaultFavorites => 'Избранные каналы по умолчанию';
|
||||
@override String get liveTvDefaultFavoritesDescription => 'Показывать только избранные каналы при открытии ТВ';
|
||||
}
|
||||
|
||||
// Path: search
|
||||
@@ -360,18 +361,6 @@ class _TranslationsHotkeysRu implements TranslationsHotkeysEn {
|
||||
@override late final _TranslationsHotkeysActionsRu actions = _TranslationsHotkeysActionsRu._(_root);
|
||||
}
|
||||
|
||||
// Path: pinEntry
|
||||
class _TranslationsPinEntryRu implements TranslationsPinEntryEn {
|
||||
_TranslationsPinEntryRu._(this._root);
|
||||
|
||||
final TranslationsRu _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get enterPin => 'Введите PIN';
|
||||
@override String get showPin => 'Показать PIN';
|
||||
@override String get hidePin => 'Скрыть PIN';
|
||||
}
|
||||
|
||||
// Path: fileInfo
|
||||
class _TranslationsFileInfoRu implements TranslationsFileInfoEn {
|
||||
_TranslationsFileInfoRu._(this._root);
|
||||
@@ -478,7 +467,6 @@ class _TranslationsVideoControlsRu implements TranslationsVideoControlsEn {
|
||||
@override String get unlockRotation => 'Разблокировать поворот';
|
||||
@override String get timerActive => 'Таймер активен';
|
||||
@override String playbackWillPauseIn({required Object duration}) => 'Воспроизведение будет приостановлено через ${duration}';
|
||||
@override String get sleepTimerCompleted => 'Таймер сна завершён — воспроизведение приостановлено';
|
||||
@override String get stillWatching => 'Всё ещё смотрите?';
|
||||
@override String pausingIn({required Object seconds}) => 'Пауза через ${seconds}с';
|
||||
@override String get continueWatching => 'Продолжить';
|
||||
@@ -495,20 +483,20 @@ class _TranslationsVideoControlsRu implements TranslationsVideoControlsEn {
|
||||
@override String get muteButton => 'Без звука';
|
||||
@override String get unmuteButton => 'Включить звук';
|
||||
@override String get settingsButton => 'Настройки видео';
|
||||
@override String get audioTrackButton => 'Аудиодорожки';
|
||||
@override String get subtitlesButton => 'Субтитры';
|
||||
@override String get tracksButton => 'Аудио и субтитры';
|
||||
@override String get chaptersButton => 'Главы';
|
||||
@override String get versionsButton => 'Версии видео';
|
||||
@override String get pipButton => 'Режим «картинка в картинке»';
|
||||
@override String get aspectRatioButton => 'Соотношение сторон';
|
||||
@override String get ambientLighting => 'Фоновая подсветка';
|
||||
@override String get ambientLightingOn => 'Включить фоновую подсветку';
|
||||
@override String get ambientLightingOff => 'Выключить фоновую подсветку';
|
||||
@override String get fullscreenButton => 'Полноэкранный режим';
|
||||
@override String get exitFullscreenButton => 'Выйти из полноэкранного режима';
|
||||
@override String get alwaysOnTopButton => 'Всегда поверх';
|
||||
@override String get rotationLockButton => 'Блокировка поворота';
|
||||
@override String get lockScreen => 'Заблокировать экран';
|
||||
@override String get unlockScreen => 'Разблокировать экран';
|
||||
@override String get screenLockButton => 'Блокировка экрана';
|
||||
@override String get longPressToUnlock => 'Удерживайте для разблокировки';
|
||||
@override String get timelineSlider => 'Временная шкала';
|
||||
@override String get volumeSlider => 'Уровень громкости';
|
||||
@override String endsAt({required Object time}) => 'Закончится в ${time}';
|
||||
@@ -642,11 +630,8 @@ class _TranslationsDiscoverRu implements TranslationsDiscoverEn {
|
||||
@override String get overview => 'Обзор';
|
||||
@override String get cast => 'В ролях';
|
||||
@override String get extras => 'Трейлеры и доп. материалы';
|
||||
@override String get seasons => 'Сезоны';
|
||||
@override String get studio => 'Студия';
|
||||
@override String get rating => 'Рейтинг';
|
||||
@override String episodeCount({required Object count}) => '${count} эпизодов';
|
||||
@override String watchedProgress({required Object watched, required Object total}) => '${watched}/${total} просмотрено';
|
||||
@override String get movie => 'Фильм';
|
||||
@override String get tvShow => 'Сериал';
|
||||
@override String minutesLeft({required Object minutes}) => 'Осталось ${minutes} мин';
|
||||
@@ -769,8 +754,6 @@ class _TranslationsLogsRu implements TranslationsLogsEn {
|
||||
@override String get clearLogs => 'Очистить логи';
|
||||
@override String get copyLogs => 'Скопировать логи';
|
||||
@override String get uploadLogs => 'Загрузить логи';
|
||||
@override String get error => 'Ошибка:';
|
||||
@override String get stackTrace => 'Стек вызовов:';
|
||||
}
|
||||
|
||||
// Path: licenses
|
||||
@@ -806,20 +789,12 @@ class _TranslationsLiveTvRu implements TranslationsLiveTvEn {
|
||||
|
||||
// Translations
|
||||
@override String get title => 'ТВ в прямом эфире';
|
||||
@override String get channels => 'Каналы';
|
||||
@override String get guide => 'Программа';
|
||||
@override String get noChannels => 'Нет доступных каналов';
|
||||
@override String get noDvr => 'DVR не настроен ни на одном сервере';
|
||||
@override String get tuneFailed => 'Не удалось настроить канал';
|
||||
@override String get loading => 'Загрузка каналов...';
|
||||
@override String get nowPlaying => 'Сейчас воспроизводится';
|
||||
@override String get noPrograms => 'Нет данных о программах';
|
||||
@override String channelNumber({required Object number}) => 'Кн. ${number}';
|
||||
@override String get live => 'ЭФИР';
|
||||
@override String get hd => 'HD';
|
||||
@override String get premiere => 'НОВОЕ';
|
||||
@override String get reloadGuide => 'Перезагрузить программу';
|
||||
@override String get allChannels => 'Все каналы';
|
||||
@override String get now => 'Сейчас';
|
||||
@override String get today => 'Сегодня';
|
||||
@override String get midnight => 'Полночь';
|
||||
@@ -830,6 +805,7 @@ class _TranslationsLiveTvRu implements TranslationsLiveTvEn {
|
||||
@override String get lateNight => 'Поздний вечер';
|
||||
@override String get whatsOn => 'Что идёт';
|
||||
@override String get watchChannel => 'Смотреть канал';
|
||||
@override String get favorites => 'Избранное';
|
||||
}
|
||||
|
||||
// Path: collections
|
||||
@@ -1058,7 +1034,6 @@ class _TranslationsExternalPlayerRu implements TranslationsExternalPlayerEn {
|
||||
@override String get playerCommand => 'Команда';
|
||||
@override String get playerPackage => 'Имя пакета';
|
||||
@override String get playerUrlScheme => 'URL-схема';
|
||||
@override String get customPlayer => 'Свой плеер';
|
||||
@override String get off => 'Выкл.';
|
||||
@override String get launchFailed => 'Не удалось открыть внешний плеер';
|
||||
@override String appNotInstalled({required Object name}) => '${name} не установлен';
|
||||
@@ -1336,7 +1311,6 @@ extension on TranslationsRu {
|
||||
'common.shuffle' => 'Перемешать',
|
||||
'common.addTo' => 'Добавить в...',
|
||||
'common.createNew' => 'Создать новый',
|
||||
'common.remove' => 'Удалить',
|
||||
'common.paste' => 'Вставить',
|
||||
'common.connect' => 'Подключить',
|
||||
'common.disconnect' => 'Отключить',
|
||||
@@ -1350,7 +1324,6 @@ extension on TranslationsRu {
|
||||
'common.settings' => 'Настройки',
|
||||
'common.mute' => 'Без звука',
|
||||
'common.ok' => 'OK',
|
||||
'common.loading' => 'Загрузка...',
|
||||
'common.reconnect' => 'Переподключить',
|
||||
'common.exitConfirmTitle' => 'Выйти из приложения?',
|
||||
'common.exitConfirmMessage' => 'Вы уверены, что хотите выйти?',
|
||||
@@ -1437,6 +1410,8 @@ extension on TranslationsRu {
|
||||
'settings.subtitleStylingDescription' => 'Настроить внешний вид субтитров',
|
||||
'settings.smallSkipDuration' => 'Малая перемотка',
|
||||
'settings.largeSkipDuration' => 'Большая перемотка',
|
||||
'settings.rewindOnResume' => 'Перемотка при возобновлении',
|
||||
'settings.rewindOnResumeDescription' => 'Перемотать на это количество секунд при возобновлении воспроизведения',
|
||||
'settings.secondsUnit' => ({required Object seconds}) => '${seconds} секунд',
|
||||
'settings.defaultSleepTimer' => 'Таймер сна по умолчанию',
|
||||
'settings.minutesUnit' => ({required Object minutes}) => '${minutes} минут',
|
||||
@@ -1514,6 +1489,8 @@ extension on TranslationsRu {
|
||||
'settings.confirmExitOnBackDescription' => 'Показывать диалог подтверждения при нажатии «назад» для выхода из приложения',
|
||||
'settings.showNavBarLabels' => 'Показывать подписи панели навигации',
|
||||
'settings.showNavBarLabelsDescription' => 'Отображать текстовые подписи под иконками панели навигации',
|
||||
'settings.liveTvDefaultFavorites' => 'Избранные каналы по умолчанию',
|
||||
'settings.liveTvDefaultFavoritesDescription' => 'Показывать только избранные каналы при открытии ТВ',
|
||||
'search.hint' => 'Поиск фильмов, сериалов, музыки...',
|
||||
'search.tryDifferentTerm' => 'Попробуйте другой запрос',
|
||||
'search.searchYourMedia' => 'Поиск в вашей медиатеке',
|
||||
@@ -1539,9 +1516,6 @@ extension on TranslationsRu {
|
||||
'hotkeys.actions.subSeekPrev' => 'К предыдущему субтитру',
|
||||
'hotkeys.actions.shaderToggle' => 'Вкл./выкл. шейдеры',
|
||||
'hotkeys.actions.skipMarker' => 'Пропустить вступление/титры',
|
||||
'pinEntry.enterPin' => 'Введите PIN',
|
||||
'pinEntry.showPin' => 'Показать PIN',
|
||||
'pinEntry.hidePin' => 'Скрыть PIN',
|
||||
'fileInfo.title' => 'Информация о файле',
|
||||
'fileInfo.video' => 'Видео',
|
||||
'fileInfo.audio' => 'Аудио',
|
||||
@@ -1605,7 +1579,6 @@ extension on TranslationsRu {
|
||||
'videoControls.unlockRotation' => 'Разблокировать поворот',
|
||||
'videoControls.timerActive' => 'Таймер активен',
|
||||
'videoControls.playbackWillPauseIn' => ({required Object duration}) => 'Воспроизведение будет приостановлено через ${duration}',
|
||||
'videoControls.sleepTimerCompleted' => 'Таймер сна завершён — воспроизведение приостановлено',
|
||||
'videoControls.stillWatching' => 'Всё ещё смотрите?',
|
||||
'videoControls.pausingIn' => ({required Object seconds}) => 'Пауза через ${seconds}с',
|
||||
'videoControls.continueWatching' => 'Продолжить',
|
||||
@@ -1622,20 +1595,20 @@ extension on TranslationsRu {
|
||||
'videoControls.muteButton' => 'Без звука',
|
||||
'videoControls.unmuteButton' => 'Включить звук',
|
||||
'videoControls.settingsButton' => 'Настройки видео',
|
||||
'videoControls.audioTrackButton' => 'Аудиодорожки',
|
||||
'videoControls.subtitlesButton' => 'Субтитры',
|
||||
'videoControls.tracksButton' => 'Аудио и субтитры',
|
||||
'videoControls.chaptersButton' => 'Главы',
|
||||
'videoControls.versionsButton' => 'Версии видео',
|
||||
'videoControls.pipButton' => 'Режим «картинка в картинке»',
|
||||
'videoControls.aspectRatioButton' => 'Соотношение сторон',
|
||||
'videoControls.ambientLighting' => 'Фоновая подсветка',
|
||||
'videoControls.ambientLightingOn' => 'Включить фоновую подсветку',
|
||||
'videoControls.ambientLightingOff' => 'Выключить фоновую подсветку',
|
||||
'videoControls.fullscreenButton' => 'Полноэкранный режим',
|
||||
'videoControls.exitFullscreenButton' => 'Выйти из полноэкранного режима',
|
||||
'videoControls.alwaysOnTopButton' => 'Всегда поверх',
|
||||
'videoControls.rotationLockButton' => 'Блокировка поворота',
|
||||
'videoControls.lockScreen' => 'Заблокировать экран',
|
||||
'videoControls.unlockScreen' => 'Разблокировать экран',
|
||||
'videoControls.screenLockButton' => 'Блокировка экрана',
|
||||
'videoControls.longPressToUnlock' => 'Удерживайте для разблокировки',
|
||||
'videoControls.timelineSlider' => 'Временная шкала',
|
||||
'videoControls.volumeSlider' => 'Уровень громкости',
|
||||
'videoControls.endsAt' => ({required Object time}) => 'Закончится в ${time}',
|
||||
@@ -1721,11 +1694,8 @@ extension on TranslationsRu {
|
||||
'discover.overview' => 'Обзор',
|
||||
'discover.cast' => 'В ролях',
|
||||
'discover.extras' => 'Трейлеры и доп. материалы',
|
||||
'discover.seasons' => 'Сезоны',
|
||||
'discover.studio' => 'Студия',
|
||||
'discover.rating' => 'Рейтинг',
|
||||
'discover.episodeCount' => ({required Object count}) => '${count} эпизодов',
|
||||
'discover.watchedProgress' => ({required Object watched, required Object total}) => '${watched}/${total} просмотрено',
|
||||
'discover.movie' => 'Фильм',
|
||||
'discover.tvShow' => 'Сериал',
|
||||
'discover.minutesLeft' => ({required Object minutes}) => 'Осталось ${minutes} мин',
|
||||
@@ -1803,8 +1773,6 @@ extension on TranslationsRu {
|
||||
'logs.clearLogs' => 'Очистить логи',
|
||||
'logs.copyLogs' => 'Скопировать логи',
|
||||
'logs.uploadLogs' => 'Загрузить логи',
|
||||
'logs.error' => 'Ошибка:',
|
||||
'logs.stackTrace' => 'Стек вызовов:',
|
||||
'licenses.relatedPackages' => 'Связанные пакеты',
|
||||
'licenses.license' => 'Лицензия',
|
||||
'licenses.licenseNumber' => ({required Object number}) => 'Лицензия ${number}',
|
||||
@@ -1813,22 +1781,12 @@ extension on TranslationsRu {
|
||||
'navigation.downloads' => 'Загрузки',
|
||||
'navigation.liveTv' => 'ТВ в прямом эфире',
|
||||
'liveTv.title' => 'ТВ в прямом эфире',
|
||||
'liveTv.channels' => 'Каналы',
|
||||
'liveTv.guide' => 'Программа',
|
||||
'liveTv.noChannels' => 'Нет доступных каналов',
|
||||
'liveTv.noDvr' => 'DVR не настроен ни на одном сервере',
|
||||
'liveTv.tuneFailed' => 'Не удалось настроить канал',
|
||||
'liveTv.loading' => 'Загрузка каналов...',
|
||||
'liveTv.nowPlaying' => 'Сейчас воспроизводится',
|
||||
'liveTv.noPrograms' => 'Нет данных о программах',
|
||||
'liveTv.channelNumber' => ({required Object number}) => 'Кн. ${number}',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'liveTv.live' => 'ЭФИР',
|
||||
'liveTv.hd' => 'HD',
|
||||
'liveTv.premiere' => 'НОВОЕ',
|
||||
'liveTv.reloadGuide' => 'Перезагрузить программу',
|
||||
'liveTv.allChannels' => 'Все каналы',
|
||||
'liveTv.now' => 'Сейчас',
|
||||
'liveTv.today' => 'Сегодня',
|
||||
'liveTv.midnight' => 'Полночь',
|
||||
@@ -1839,6 +1797,9 @@ extension on TranslationsRu {
|
||||
'liveTv.lateNight' => 'Поздний вечер',
|
||||
'liveTv.whatsOn' => 'Что идёт',
|
||||
'liveTv.watchChannel' => 'Смотреть канал',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'liveTv.favorites' => 'Избранное',
|
||||
'collections.title' => 'Коллекции',
|
||||
'collections.collection' => 'Коллекция',
|
||||
'collections.empty' => 'Коллекция пуста',
|
||||
@@ -2061,7 +2022,6 @@ extension on TranslationsRu {
|
||||
'externalPlayer.playerCommand' => 'Команда',
|
||||
'externalPlayer.playerPackage' => 'Имя пакета',
|
||||
'externalPlayer.playerUrlScheme' => 'URL-схема',
|
||||
'externalPlayer.customPlayer' => 'Свой плеер',
|
||||
'externalPlayer.off' => 'Выкл.',
|
||||
'externalPlayer.launchFailed' => 'Не удалось открыть внешний плеер',
|
||||
'externalPlayer.appNotInstalled' => ({required Object name}) => '${name} не установлен',
|
||||
|
||||
+20
-60
@@ -45,7 +45,6 @@ class TranslationsSv with BaseTranslations<AppLocale, Translations> implements T
|
||||
@override late final _TranslationsSettingsSv settings = _TranslationsSettingsSv._(_root);
|
||||
@override late final _TranslationsSearchSv search = _TranslationsSearchSv._(_root);
|
||||
@override late final _TranslationsHotkeysSv hotkeys = _TranslationsHotkeysSv._(_root);
|
||||
@override late final _TranslationsPinEntrySv pinEntry = _TranslationsPinEntrySv._(_root);
|
||||
@override late final _TranslationsFileInfoSv fileInfo = _TranslationsFileInfoSv._(_root);
|
||||
@override late final _TranslationsMediaMenuSv mediaMenu = _TranslationsMediaMenuSv._(_root);
|
||||
@override late final _TranslationsAccessibilitySv accessibility = _TranslationsAccessibilitySv._(_root);
|
||||
@@ -128,7 +127,6 @@ class _TranslationsCommonSv implements TranslationsCommonEn {
|
||||
@override String get shuffle => 'Blanda';
|
||||
@override String get addTo => 'Lägg till i...';
|
||||
@override String get createNew => 'Skapa ny';
|
||||
@override String get remove => 'Ta bort';
|
||||
@override String get paste => 'Klistra in';
|
||||
@override String get connect => 'Anslut';
|
||||
@override String get disconnect => 'Koppla från';
|
||||
@@ -142,7 +140,6 @@ class _TranslationsCommonSv implements TranslationsCommonEn {
|
||||
@override String get settings => 'Mer';
|
||||
@override String get mute => 'Ljud av';
|
||||
@override String get ok => 'OK';
|
||||
@override String get loading => 'Laddar...';
|
||||
@override String get reconnect => 'Återanslut';
|
||||
@override String get exitConfirmTitle => 'Avsluta appen?';
|
||||
@override String get exitConfirmMessage => 'Är du säker på att du vill avsluta?';
|
||||
@@ -256,6 +253,8 @@ class _TranslationsSettingsSv implements TranslationsSettingsEn {
|
||||
@override String get subtitleStylingDescription => 'Anpassa undertextutseende';
|
||||
@override String get smallSkipDuration => 'Kort hoppvaraktighet';
|
||||
@override String get largeSkipDuration => 'Lång hoppvaraktighet';
|
||||
@override String get rewindOnResume => 'Spola tillbaka vid återupptagning';
|
||||
@override String get rewindOnResumeDescription => 'Spola tillbaka med denna tid vid återupptagning av uppspelning';
|
||||
@override String secondsUnit({required Object seconds}) => '${seconds} sekunder';
|
||||
@override String get defaultSleepTimer => 'Standard sovtimer';
|
||||
@override String minutesUnit({required Object minutes}) => '${minutes} minuter';
|
||||
@@ -333,6 +332,8 @@ class _TranslationsSettingsSv implements TranslationsSettingsEn {
|
||||
@override String get confirmExitOnBackDescription => 'Visa en bekräftelsedialog när du trycker tillbaka för att avsluta appen';
|
||||
@override String get showNavBarLabels => 'Visa navigeringsfältets etiketter';
|
||||
@override String get showNavBarLabelsDescription => 'Visa textetiketter under navigeringsfältets ikoner';
|
||||
@override String get liveTvDefaultFavorites => 'Standard till favoritkanaler';
|
||||
@override String get liveTvDefaultFavoritesDescription => 'Visa bara favoritkanaler när du öppnar Live TV';
|
||||
}
|
||||
|
||||
// Path: search
|
||||
@@ -360,18 +361,6 @@ class _TranslationsHotkeysSv implements TranslationsHotkeysEn {
|
||||
@override late final _TranslationsHotkeysActionsSv actions = _TranslationsHotkeysActionsSv._(_root);
|
||||
}
|
||||
|
||||
// Path: pinEntry
|
||||
class _TranslationsPinEntrySv implements TranslationsPinEntryEn {
|
||||
_TranslationsPinEntrySv._(this._root);
|
||||
|
||||
final TranslationsSv _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get enterPin => 'Ange PIN';
|
||||
@override String get showPin => 'Visa PIN';
|
||||
@override String get hidePin => 'Dölj PIN';
|
||||
}
|
||||
|
||||
// Path: fileInfo
|
||||
class _TranslationsFileInfoSv implements TranslationsFileInfoEn {
|
||||
_TranslationsFileInfoSv._(this._root);
|
||||
@@ -478,7 +467,6 @@ class _TranslationsVideoControlsSv implements TranslationsVideoControlsEn {
|
||||
@override String get unlockRotation => 'Lås upp rotation';
|
||||
@override String get timerActive => 'Timer aktiv';
|
||||
@override String playbackWillPauseIn({required Object duration}) => 'Uppspelningen pausas om ${duration}';
|
||||
@override String get sleepTimerCompleted => 'Sovtimer slutförd - uppspelning pausad';
|
||||
@override String get stillWatching => 'Tittar du fortfarande?';
|
||||
@override String pausingIn({required Object seconds}) => 'Pausar om ${seconds}s';
|
||||
@override String get continueWatching => 'Fortsätt';
|
||||
@@ -495,20 +483,20 @@ class _TranslationsVideoControlsSv implements TranslationsVideoControlsEn {
|
||||
@override String get muteButton => 'Tysta';
|
||||
@override String get unmuteButton => 'Slå på ljud';
|
||||
@override String get settingsButton => 'Videoinställningar';
|
||||
@override String get audioTrackButton => 'Ljudspår';
|
||||
@override String get subtitlesButton => 'Undertexter';
|
||||
@override String get tracksButton => 'Ljud och undertexter';
|
||||
@override String get chaptersButton => 'Kapitel';
|
||||
@override String get versionsButton => 'Videoversioner';
|
||||
@override String get pipButton => 'Bild-i-bild läge';
|
||||
@override String get aspectRatioButton => 'Bildförhållande';
|
||||
@override String get ambientLighting => 'Ambientbelysning';
|
||||
@override String get ambientLightingOn => 'Aktivera ambientbelysning';
|
||||
@override String get ambientLightingOff => 'Inaktivera ambientbelysning';
|
||||
@override String get fullscreenButton => 'Aktivera helskärm';
|
||||
@override String get exitFullscreenButton => 'Avsluta helskärm';
|
||||
@override String get alwaysOnTopButton => 'Alltid överst';
|
||||
@override String get rotationLockButton => 'Rotationslås';
|
||||
@override String get lockScreen => 'Lås skärm';
|
||||
@override String get unlockScreen => 'Lås upp skärm';
|
||||
@override String get screenLockButton => 'Skärmlås';
|
||||
@override String get longPressToUnlock => 'Tryck länge för att låsa upp';
|
||||
@override String get timelineSlider => 'Videotidslinje';
|
||||
@override String get volumeSlider => 'Volymnivå';
|
||||
@override String endsAt({required Object time}) => 'Slutar ${time}';
|
||||
@@ -642,11 +630,8 @@ class _TranslationsDiscoverSv implements TranslationsDiscoverEn {
|
||||
@override String get overview => 'Översikt';
|
||||
@override String get cast => 'Rollbesättning';
|
||||
@override String get extras => 'Trailers och Extra';
|
||||
@override String get seasons => 'Säsonger';
|
||||
@override String get studio => 'Studio';
|
||||
@override String get rating => 'Åldersgräns';
|
||||
@override String episodeCount({required Object count}) => '${count} avsnitt';
|
||||
@override String watchedProgress({required Object watched, required Object total}) => '${watched}/${total} sedda';
|
||||
@override String get movie => 'Film';
|
||||
@override String get tvShow => 'TV-serie';
|
||||
@override String minutesLeft({required Object minutes}) => '${minutes} min kvar';
|
||||
@@ -769,8 +754,6 @@ class _TranslationsLogsSv implements TranslationsLogsEn {
|
||||
@override String get clearLogs => 'Rensa loggar';
|
||||
@override String get copyLogs => 'Kopiera loggar';
|
||||
@override String get uploadLogs => 'Ladda upp loggar';
|
||||
@override String get error => 'Fel:';
|
||||
@override String get stackTrace => 'Stack trace:';
|
||||
}
|
||||
|
||||
// Path: licenses
|
||||
@@ -806,20 +789,12 @@ class _TranslationsLiveTvSv implements TranslationsLiveTvEn {
|
||||
|
||||
// Translations
|
||||
@override String get title => 'Live-TV';
|
||||
@override String get channels => 'Kanaler';
|
||||
@override String get guide => 'Programguide';
|
||||
@override String get noChannels => 'Inga kanaler tillgängliga';
|
||||
@override String get noDvr => 'Ingen DVR konfigurerad på någon server';
|
||||
@override String get tuneFailed => 'Kunde inte ställa in kanalen';
|
||||
@override String get loading => 'Laddar kanaler...';
|
||||
@override String get nowPlaying => 'Spelas nu';
|
||||
@override String get noPrograms => 'Ingen programdata tillgänglig';
|
||||
@override String channelNumber({required Object number}) => 'Kanal ${number}';
|
||||
@override String get live => 'LIVE';
|
||||
@override String get hd => 'HD';
|
||||
@override String get premiere => 'NY';
|
||||
@override String get reloadGuide => 'Ladda om programguide';
|
||||
@override String get allChannels => 'Alla kanaler';
|
||||
@override String get now => 'Nu';
|
||||
@override String get today => 'Idag';
|
||||
@override String get midnight => 'Midnatt';
|
||||
@@ -830,6 +805,7 @@ class _TranslationsLiveTvSv implements TranslationsLiveTvEn {
|
||||
@override String get lateNight => 'Sen kväll';
|
||||
@override String get whatsOn => 'På TV nu';
|
||||
@override String get watchChannel => 'Titta på kanal';
|
||||
@override String get favorites => 'Favoriter';
|
||||
}
|
||||
|
||||
// Path: downloads
|
||||
@@ -1058,7 +1034,6 @@ class _TranslationsExternalPlayerSv implements TranslationsExternalPlayerEn {
|
||||
@override String get playerCommand => 'Kommando';
|
||||
@override String get playerPackage => 'Paketnamn';
|
||||
@override String get playerUrlScheme => 'URL-schema';
|
||||
@override String get customPlayer => 'Anpassad spelare';
|
||||
@override String get off => 'Av';
|
||||
@override String get launchFailed => 'Kunde inte öppna extern spelare';
|
||||
@override String appNotInstalled({required Object name}) => '${name} är inte installerad';
|
||||
@@ -1336,7 +1311,6 @@ extension on TranslationsSv {
|
||||
'common.shuffle' => 'Blanda',
|
||||
'common.addTo' => 'Lägg till i...',
|
||||
'common.createNew' => 'Skapa ny',
|
||||
'common.remove' => 'Ta bort',
|
||||
'common.paste' => 'Klistra in',
|
||||
'common.connect' => 'Anslut',
|
||||
'common.disconnect' => 'Koppla från',
|
||||
@@ -1350,7 +1324,6 @@ extension on TranslationsSv {
|
||||
'common.settings' => 'Mer',
|
||||
'common.mute' => 'Ljud av',
|
||||
'common.ok' => 'OK',
|
||||
'common.loading' => 'Laddar...',
|
||||
'common.reconnect' => 'Återanslut',
|
||||
'common.exitConfirmTitle' => 'Avsluta appen?',
|
||||
'common.exitConfirmMessage' => 'Är du säker på att du vill avsluta?',
|
||||
@@ -1437,6 +1410,8 @@ extension on TranslationsSv {
|
||||
'settings.subtitleStylingDescription' => 'Anpassa undertextutseende',
|
||||
'settings.smallSkipDuration' => 'Kort hoppvaraktighet',
|
||||
'settings.largeSkipDuration' => 'Lång hoppvaraktighet',
|
||||
'settings.rewindOnResume' => 'Spola tillbaka vid återupptagning',
|
||||
'settings.rewindOnResumeDescription' => 'Spola tillbaka med denna tid vid återupptagning av uppspelning',
|
||||
'settings.secondsUnit' => ({required Object seconds}) => '${seconds} sekunder',
|
||||
'settings.defaultSleepTimer' => 'Standard sovtimer',
|
||||
'settings.minutesUnit' => ({required Object minutes}) => '${minutes} minuter',
|
||||
@@ -1514,6 +1489,8 @@ extension on TranslationsSv {
|
||||
'settings.confirmExitOnBackDescription' => 'Visa en bekräftelsedialog när du trycker tillbaka för att avsluta appen',
|
||||
'settings.showNavBarLabels' => 'Visa navigeringsfältets etiketter',
|
||||
'settings.showNavBarLabelsDescription' => 'Visa textetiketter under navigeringsfältets ikoner',
|
||||
'settings.liveTvDefaultFavorites' => 'Standard till favoritkanaler',
|
||||
'settings.liveTvDefaultFavoritesDescription' => 'Visa bara favoritkanaler när du öppnar Live TV',
|
||||
'search.hint' => 'Sök filmer, serier, musik...',
|
||||
'search.tryDifferentTerm' => 'Prova en annan sökterm',
|
||||
'search.searchYourMedia' => 'Sök i dina media',
|
||||
@@ -1539,9 +1516,6 @@ extension on TranslationsSv {
|
||||
'hotkeys.actions.subSeekPrev' => 'Hoppa till föregående undertext',
|
||||
'hotkeys.actions.shaderToggle' => 'Växla shaders',
|
||||
'hotkeys.actions.skipMarker' => 'Hoppa över intro/eftertexter',
|
||||
'pinEntry.enterPin' => 'Ange PIN',
|
||||
'pinEntry.showPin' => 'Visa PIN',
|
||||
'pinEntry.hidePin' => 'Dölj PIN',
|
||||
'fileInfo.title' => 'Filinformation',
|
||||
'fileInfo.video' => 'Video',
|
||||
'fileInfo.audio' => 'Ljud',
|
||||
@@ -1605,7 +1579,6 @@ extension on TranslationsSv {
|
||||
'videoControls.unlockRotation' => 'Lås upp rotation',
|
||||
'videoControls.timerActive' => 'Timer aktiv',
|
||||
'videoControls.playbackWillPauseIn' => ({required Object duration}) => 'Uppspelningen pausas om ${duration}',
|
||||
'videoControls.sleepTimerCompleted' => 'Sovtimer slutförd - uppspelning pausad',
|
||||
'videoControls.stillWatching' => 'Tittar du fortfarande?',
|
||||
'videoControls.pausingIn' => ({required Object seconds}) => 'Pausar om ${seconds}s',
|
||||
'videoControls.continueWatching' => 'Fortsätt',
|
||||
@@ -1622,20 +1595,20 @@ extension on TranslationsSv {
|
||||
'videoControls.muteButton' => 'Tysta',
|
||||
'videoControls.unmuteButton' => 'Slå på ljud',
|
||||
'videoControls.settingsButton' => 'Videoinställningar',
|
||||
'videoControls.audioTrackButton' => 'Ljudspår',
|
||||
'videoControls.subtitlesButton' => 'Undertexter',
|
||||
'videoControls.tracksButton' => 'Ljud och undertexter',
|
||||
'videoControls.chaptersButton' => 'Kapitel',
|
||||
'videoControls.versionsButton' => 'Videoversioner',
|
||||
'videoControls.pipButton' => 'Bild-i-bild läge',
|
||||
'videoControls.aspectRatioButton' => 'Bildförhållande',
|
||||
'videoControls.ambientLighting' => 'Ambientbelysning',
|
||||
'videoControls.ambientLightingOn' => 'Aktivera ambientbelysning',
|
||||
'videoControls.ambientLightingOff' => 'Inaktivera ambientbelysning',
|
||||
'videoControls.fullscreenButton' => 'Aktivera helskärm',
|
||||
'videoControls.exitFullscreenButton' => 'Avsluta helskärm',
|
||||
'videoControls.alwaysOnTopButton' => 'Alltid överst',
|
||||
'videoControls.rotationLockButton' => 'Rotationslås',
|
||||
'videoControls.lockScreen' => 'Lås skärm',
|
||||
'videoControls.unlockScreen' => 'Lås upp skärm',
|
||||
'videoControls.screenLockButton' => 'Skärmlås',
|
||||
'videoControls.longPressToUnlock' => 'Tryck länge för att låsa upp',
|
||||
'videoControls.timelineSlider' => 'Videotidslinje',
|
||||
'videoControls.volumeSlider' => 'Volymnivå',
|
||||
'videoControls.endsAt' => ({required Object time}) => 'Slutar ${time}',
|
||||
@@ -1721,11 +1694,8 @@ extension on TranslationsSv {
|
||||
'discover.overview' => 'Översikt',
|
||||
'discover.cast' => 'Rollbesättning',
|
||||
'discover.extras' => 'Trailers och Extra',
|
||||
'discover.seasons' => 'Säsonger',
|
||||
'discover.studio' => 'Studio',
|
||||
'discover.rating' => 'Åldersgräns',
|
||||
'discover.episodeCount' => ({required Object count}) => '${count} avsnitt',
|
||||
'discover.watchedProgress' => ({required Object watched, required Object total}) => '${watched}/${total} sedda',
|
||||
'discover.movie' => 'Film',
|
||||
'discover.tvShow' => 'TV-serie',
|
||||
'discover.minutesLeft' => ({required Object minutes}) => '${minutes} min kvar',
|
||||
@@ -1803,8 +1773,6 @@ extension on TranslationsSv {
|
||||
'logs.clearLogs' => 'Rensa loggar',
|
||||
'logs.copyLogs' => 'Kopiera loggar',
|
||||
'logs.uploadLogs' => 'Ladda upp loggar',
|
||||
'logs.error' => 'Fel:',
|
||||
'logs.stackTrace' => 'Stack trace:',
|
||||
'licenses.relatedPackages' => 'Relaterade paket',
|
||||
'licenses.license' => 'Licens',
|
||||
'licenses.licenseNumber' => ({required Object number}) => 'Licens ${number}',
|
||||
@@ -1813,22 +1781,12 @@ extension on TranslationsSv {
|
||||
'navigation.downloads' => 'Nerladdat',
|
||||
'navigation.liveTv' => 'Live-TV',
|
||||
'liveTv.title' => 'Live-TV',
|
||||
'liveTv.channels' => 'Kanaler',
|
||||
'liveTv.guide' => 'Programguide',
|
||||
'liveTv.noChannels' => 'Inga kanaler tillgängliga',
|
||||
'liveTv.noDvr' => 'Ingen DVR konfigurerad på någon server',
|
||||
'liveTv.tuneFailed' => 'Kunde inte ställa in kanalen',
|
||||
'liveTv.loading' => 'Laddar kanaler...',
|
||||
'liveTv.nowPlaying' => 'Spelas nu',
|
||||
'liveTv.noPrograms' => 'Ingen programdata tillgänglig',
|
||||
'liveTv.channelNumber' => ({required Object number}) => 'Kanal ${number}',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'liveTv.live' => 'LIVE',
|
||||
'liveTv.hd' => 'HD',
|
||||
'liveTv.premiere' => 'NY',
|
||||
'liveTv.reloadGuide' => 'Ladda om programguide',
|
||||
'liveTv.allChannels' => 'Alla kanaler',
|
||||
'liveTv.now' => 'Nu',
|
||||
'liveTv.today' => 'Idag',
|
||||
'liveTv.midnight' => 'Midnatt',
|
||||
@@ -1839,6 +1797,9 @@ extension on TranslationsSv {
|
||||
'liveTv.lateNight' => 'Sen kväll',
|
||||
'liveTv.whatsOn' => 'På TV nu',
|
||||
'liveTv.watchChannel' => 'Titta på kanal',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'liveTv.favorites' => 'Favoriter',
|
||||
'downloads.title' => 'Nedladdningar',
|
||||
'downloads.manage' => 'Hantera',
|
||||
'downloads.tvShows' => 'TV-serier',
|
||||
@@ -2061,7 +2022,6 @@ extension on TranslationsSv {
|
||||
'externalPlayer.playerCommand' => 'Kommando',
|
||||
'externalPlayer.playerPackage' => 'Paketnamn',
|
||||
'externalPlayer.playerUrlScheme' => 'URL-schema',
|
||||
'externalPlayer.customPlayer' => 'Anpassad spelare',
|
||||
'externalPlayer.off' => 'Av',
|
||||
'externalPlayer.launchFailed' => 'Kunde inte öppna extern spelare',
|
||||
'externalPlayer.appNotInstalled' => ({required Object name}) => '${name} är inte installerad',
|
||||
|
||||
+20
-60
@@ -45,7 +45,6 @@ class TranslationsZh with BaseTranslations<AppLocale, Translations> implements T
|
||||
@override late final _TranslationsSettingsZh settings = _TranslationsSettingsZh._(_root);
|
||||
@override late final _TranslationsSearchZh search = _TranslationsSearchZh._(_root);
|
||||
@override late final _TranslationsHotkeysZh hotkeys = _TranslationsHotkeysZh._(_root);
|
||||
@override late final _TranslationsPinEntryZh pinEntry = _TranslationsPinEntryZh._(_root);
|
||||
@override late final _TranslationsFileInfoZh fileInfo = _TranslationsFileInfoZh._(_root);
|
||||
@override late final _TranslationsMediaMenuZh mediaMenu = _TranslationsMediaMenuZh._(_root);
|
||||
@override late final _TranslationsAccessibilityZh accessibility = _TranslationsAccessibilityZh._(_root);
|
||||
@@ -128,7 +127,6 @@ class _TranslationsCommonZh implements TranslationsCommonEn {
|
||||
@override String get shuffle => '随机播放';
|
||||
@override String get addTo => '添加到...';
|
||||
@override String get createNew => '新建';
|
||||
@override String get remove => '删除';
|
||||
@override String get paste => '粘贴';
|
||||
@override String get connect => '连接';
|
||||
@override String get disconnect => '断开连接';
|
||||
@@ -142,7 +140,6 @@ class _TranslationsCommonZh implements TranslationsCommonEn {
|
||||
@override String get settings => '设置';
|
||||
@override String get mute => '静音';
|
||||
@override String get ok => '确定';
|
||||
@override String get loading => '加载中...';
|
||||
@override String get reconnect => '重新连接';
|
||||
@override String get exitConfirmTitle => '退出应用?';
|
||||
@override String get exitConfirmMessage => '确定要退出吗?';
|
||||
@@ -256,6 +253,8 @@ class _TranslationsSettingsZh implements TranslationsSettingsEn {
|
||||
@override String get subtitleStylingDescription => '调整字幕外观';
|
||||
@override String get smallSkipDuration => '短跳过时长';
|
||||
@override String get largeSkipDuration => '长跳过时长';
|
||||
@override String get rewindOnResume => '恢复时回退';
|
||||
@override String get rewindOnResumeDescription => '恢复播放时回退此时长';
|
||||
@override String secondsUnit({required Object seconds}) => '${seconds} 秒';
|
||||
@override String get defaultSleepTimer => '默认睡眠定时器';
|
||||
@override String minutesUnit({required Object minutes}) => '${minutes} 分钟';
|
||||
@@ -333,6 +332,8 @@ class _TranslationsSettingsZh implements TranslationsSettingsEn {
|
||||
@override String get confirmExitOnBackDescription => '按返回键退出应用时显示确认对话框';
|
||||
@override String get showNavBarLabels => '显示导航栏标签';
|
||||
@override String get showNavBarLabelsDescription => '在导航栏图标下方显示文字标签';
|
||||
@override String get liveTvDefaultFavorites => '默认显示收藏频道';
|
||||
@override String get liveTvDefaultFavoritesDescription => '打开直播电视时仅显示收藏频道';
|
||||
}
|
||||
|
||||
// Path: search
|
||||
@@ -360,18 +361,6 @@ class _TranslationsHotkeysZh implements TranslationsHotkeysEn {
|
||||
@override late final _TranslationsHotkeysActionsZh actions = _TranslationsHotkeysActionsZh._(_root);
|
||||
}
|
||||
|
||||
// Path: pinEntry
|
||||
class _TranslationsPinEntryZh implements TranslationsPinEntryEn {
|
||||
_TranslationsPinEntryZh._(this._root);
|
||||
|
||||
final TranslationsZh _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get enterPin => '输入 PIN';
|
||||
@override String get showPin => '显示 PIN';
|
||||
@override String get hidePin => '隐藏 PIN';
|
||||
}
|
||||
|
||||
// Path: fileInfo
|
||||
class _TranslationsFileInfoZh implements TranslationsFileInfoEn {
|
||||
_TranslationsFileInfoZh._(this._root);
|
||||
@@ -478,7 +467,6 @@ class _TranslationsVideoControlsZh implements TranslationsVideoControlsEn {
|
||||
@override String get unlockRotation => '解锁旋转';
|
||||
@override String get timerActive => '定时器已激活';
|
||||
@override String playbackWillPauseIn({required Object duration}) => '播放将在 ${duration} 后暂停';
|
||||
@override String get sleepTimerCompleted => '睡眠定时器已完成 - 播放已暂停';
|
||||
@override String get stillWatching => '还在看吗?';
|
||||
@override String pausingIn({required Object seconds}) => '${seconds}秒后暂停';
|
||||
@override String get continueWatching => '继续';
|
||||
@@ -495,20 +483,20 @@ class _TranslationsVideoControlsZh implements TranslationsVideoControlsEn {
|
||||
@override String get muteButton => '静音';
|
||||
@override String get unmuteButton => '取消静音';
|
||||
@override String get settingsButton => '视频设置';
|
||||
@override String get audioTrackButton => '音轨';
|
||||
@override String get subtitlesButton => '字幕';
|
||||
@override String get tracksButton => '音频和字幕';
|
||||
@override String get chaptersButton => '章节';
|
||||
@override String get versionsButton => '视频版本';
|
||||
@override String get pipButton => '画中画模式';
|
||||
@override String get aspectRatioButton => '宽高比';
|
||||
@override String get ambientLighting => '氛围灯光';
|
||||
@override String get ambientLightingOn => '开启氛围灯光';
|
||||
@override String get ambientLightingOff => '关闭氛围灯光';
|
||||
@override String get fullscreenButton => '进入全屏';
|
||||
@override String get exitFullscreenButton => '退出全屏';
|
||||
@override String get alwaysOnTopButton => '置顶窗口';
|
||||
@override String get rotationLockButton => '旋转锁定';
|
||||
@override String get lockScreen => '锁定屏幕';
|
||||
@override String get unlockScreen => '解锁屏幕';
|
||||
@override String get screenLockButton => '屏幕锁定';
|
||||
@override String get longPressToUnlock => '长按解锁';
|
||||
@override String get timelineSlider => '视频时间轴';
|
||||
@override String get volumeSlider => '音量调节';
|
||||
@override String endsAt({required Object time}) => '${time} 结束';
|
||||
@@ -642,11 +630,8 @@ class _TranslationsDiscoverZh implements TranslationsDiscoverEn {
|
||||
@override String get overview => '概述';
|
||||
@override String get cast => '演员表';
|
||||
@override String get extras => '预告片与花絮';
|
||||
@override String get seasons => '季数';
|
||||
@override String get studio => '制作公司';
|
||||
@override String get rating => '年龄分级';
|
||||
@override String episodeCount({required Object count}) => '${count} 集';
|
||||
@override String watchedProgress({required Object watched, required Object total}) => '已观看 ${watched}/${total} 集';
|
||||
@override String get movie => '电影';
|
||||
@override String get tvShow => '电视剧';
|
||||
@override String minutesLeft({required Object minutes}) => '剩余 ${minutes} 分钟';
|
||||
@@ -769,8 +754,6 @@ class _TranslationsLogsZh implements TranslationsLogsEn {
|
||||
@override String get clearLogs => '清除日志';
|
||||
@override String get copyLogs => '复制日志';
|
||||
@override String get uploadLogs => '上传日志';
|
||||
@override String get error => '错误:';
|
||||
@override String get stackTrace => '堆栈跟踪 (Stack Trace):';
|
||||
}
|
||||
|
||||
// Path: licenses
|
||||
@@ -806,20 +789,12 @@ class _TranslationsLiveTvZh implements TranslationsLiveTvEn {
|
||||
|
||||
// Translations
|
||||
@override String get title => '电视直播';
|
||||
@override String get channels => '频道';
|
||||
@override String get guide => '节目指南';
|
||||
@override String get noChannels => '没有可用的频道';
|
||||
@override String get noDvr => '没有服务器配置了DVR';
|
||||
@override String get tuneFailed => '无法调谐频道';
|
||||
@override String get loading => '正在加载频道...';
|
||||
@override String get nowPlaying => '正在播放';
|
||||
@override String get noPrograms => '没有可用的节目数据';
|
||||
@override String channelNumber({required Object number}) => '频道 ${number}';
|
||||
@override String get live => '直播';
|
||||
@override String get hd => '高清';
|
||||
@override String get premiere => '新';
|
||||
@override String get reloadGuide => '重新加载节目指南';
|
||||
@override String get allChannels => '所有频道';
|
||||
@override String get now => '现在';
|
||||
@override String get today => '今天';
|
||||
@override String get midnight => '午夜';
|
||||
@@ -830,6 +805,7 @@ class _TranslationsLiveTvZh implements TranslationsLiveTvEn {
|
||||
@override String get lateNight => '深夜';
|
||||
@override String get whatsOn => '正在播出';
|
||||
@override String get watchChannel => '观看频道';
|
||||
@override String get favorites => '收藏';
|
||||
}
|
||||
|
||||
// Path: downloads
|
||||
@@ -1058,7 +1034,6 @@ class _TranslationsExternalPlayerZh implements TranslationsExternalPlayerEn {
|
||||
@override String get playerCommand => '命令';
|
||||
@override String get playerPackage => '包名';
|
||||
@override String get playerUrlScheme => 'URL 方案';
|
||||
@override String get customPlayer => '自定义播放器';
|
||||
@override String get off => '关闭';
|
||||
@override String get launchFailed => '无法打开外部播放器';
|
||||
@override String appNotInstalled({required Object name}) => '${name} 未安装';
|
||||
@@ -1336,7 +1311,6 @@ extension on TranslationsZh {
|
||||
'common.shuffle' => '随机播放',
|
||||
'common.addTo' => '添加到...',
|
||||
'common.createNew' => '新建',
|
||||
'common.remove' => '删除',
|
||||
'common.paste' => '粘贴',
|
||||
'common.connect' => '连接',
|
||||
'common.disconnect' => '断开连接',
|
||||
@@ -1350,7 +1324,6 @@ extension on TranslationsZh {
|
||||
'common.settings' => '设置',
|
||||
'common.mute' => '静音',
|
||||
'common.ok' => '确定',
|
||||
'common.loading' => '加载中...',
|
||||
'common.reconnect' => '重新连接',
|
||||
'common.exitConfirmTitle' => '退出应用?',
|
||||
'common.exitConfirmMessage' => '确定要退出吗?',
|
||||
@@ -1437,6 +1410,8 @@ extension on TranslationsZh {
|
||||
'settings.subtitleStylingDescription' => '调整字幕外观',
|
||||
'settings.smallSkipDuration' => '短跳过时长',
|
||||
'settings.largeSkipDuration' => '长跳过时长',
|
||||
'settings.rewindOnResume' => '恢复时回退',
|
||||
'settings.rewindOnResumeDescription' => '恢复播放时回退此时长',
|
||||
'settings.secondsUnit' => ({required Object seconds}) => '${seconds} 秒',
|
||||
'settings.defaultSleepTimer' => '默认睡眠定时器',
|
||||
'settings.minutesUnit' => ({required Object minutes}) => '${minutes} 分钟',
|
||||
@@ -1514,6 +1489,8 @@ extension on TranslationsZh {
|
||||
'settings.confirmExitOnBackDescription' => '按返回键退出应用时显示确认对话框',
|
||||
'settings.showNavBarLabels' => '显示导航栏标签',
|
||||
'settings.showNavBarLabelsDescription' => '在导航栏图标下方显示文字标签',
|
||||
'settings.liveTvDefaultFavorites' => '默认显示收藏频道',
|
||||
'settings.liveTvDefaultFavoritesDescription' => '打开直播电视时仅显示收藏频道',
|
||||
'search.hint' => '搜索电影、系列、音乐...',
|
||||
'search.tryDifferentTerm' => '尝试不同的搜索词',
|
||||
'search.searchYourMedia' => '搜索媒体',
|
||||
@@ -1539,9 +1516,6 @@ extension on TranslationsZh {
|
||||
'hotkeys.actions.subSeekPrev' => '跳转到上一字幕',
|
||||
'hotkeys.actions.shaderToggle' => '切换着色器',
|
||||
'hotkeys.actions.skipMarker' => '跳过片头/片尾',
|
||||
'pinEntry.enterPin' => '输入 PIN',
|
||||
'pinEntry.showPin' => '显示 PIN',
|
||||
'pinEntry.hidePin' => '隐藏 PIN',
|
||||
'fileInfo.title' => '文件信息',
|
||||
'fileInfo.video' => '视频',
|
||||
'fileInfo.audio' => '音频',
|
||||
@@ -1605,7 +1579,6 @@ extension on TranslationsZh {
|
||||
'videoControls.unlockRotation' => '解锁旋转',
|
||||
'videoControls.timerActive' => '定时器已激活',
|
||||
'videoControls.playbackWillPauseIn' => ({required Object duration}) => '播放将在 ${duration} 后暂停',
|
||||
'videoControls.sleepTimerCompleted' => '睡眠定时器已完成 - 播放已暂停',
|
||||
'videoControls.stillWatching' => '还在看吗?',
|
||||
'videoControls.pausingIn' => ({required Object seconds}) => '${seconds}秒后暂停',
|
||||
'videoControls.continueWatching' => '继续',
|
||||
@@ -1622,20 +1595,20 @@ extension on TranslationsZh {
|
||||
'videoControls.muteButton' => '静音',
|
||||
'videoControls.unmuteButton' => '取消静音',
|
||||
'videoControls.settingsButton' => '视频设置',
|
||||
'videoControls.audioTrackButton' => '音轨',
|
||||
'videoControls.subtitlesButton' => '字幕',
|
||||
'videoControls.tracksButton' => '音频和字幕',
|
||||
'videoControls.chaptersButton' => '章节',
|
||||
'videoControls.versionsButton' => '视频版本',
|
||||
'videoControls.pipButton' => '画中画模式',
|
||||
'videoControls.aspectRatioButton' => '宽高比',
|
||||
'videoControls.ambientLighting' => '氛围灯光',
|
||||
'videoControls.ambientLightingOn' => '开启氛围灯光',
|
||||
'videoControls.ambientLightingOff' => '关闭氛围灯光',
|
||||
'videoControls.fullscreenButton' => '进入全屏',
|
||||
'videoControls.exitFullscreenButton' => '退出全屏',
|
||||
'videoControls.alwaysOnTopButton' => '置顶窗口',
|
||||
'videoControls.rotationLockButton' => '旋转锁定',
|
||||
'videoControls.lockScreen' => '锁定屏幕',
|
||||
'videoControls.unlockScreen' => '解锁屏幕',
|
||||
'videoControls.screenLockButton' => '屏幕锁定',
|
||||
'videoControls.longPressToUnlock' => '长按解锁',
|
||||
'videoControls.timelineSlider' => '视频时间轴',
|
||||
'videoControls.volumeSlider' => '音量调节',
|
||||
'videoControls.endsAt' => ({required Object time}) => '${time} 结束',
|
||||
@@ -1721,11 +1694,8 @@ extension on TranslationsZh {
|
||||
'discover.overview' => '概述',
|
||||
'discover.cast' => '演员表',
|
||||
'discover.extras' => '预告片与花絮',
|
||||
'discover.seasons' => '季数',
|
||||
'discover.studio' => '制作公司',
|
||||
'discover.rating' => '年龄分级',
|
||||
'discover.episodeCount' => ({required Object count}) => '${count} 集',
|
||||
'discover.watchedProgress' => ({required Object watched, required Object total}) => '已观看 ${watched}/${total} 集',
|
||||
'discover.movie' => '电影',
|
||||
'discover.tvShow' => '电视剧',
|
||||
'discover.minutesLeft' => ({required Object minutes}) => '剩余 ${minutes} 分钟',
|
||||
@@ -1803,8 +1773,6 @@ extension on TranslationsZh {
|
||||
'logs.clearLogs' => '清除日志',
|
||||
'logs.copyLogs' => '复制日志',
|
||||
'logs.uploadLogs' => '上传日志',
|
||||
'logs.error' => '错误:',
|
||||
'logs.stackTrace' => '堆栈跟踪 (Stack Trace):',
|
||||
'licenses.relatedPackages' => '相关软件包',
|
||||
'licenses.license' => '许可证',
|
||||
'licenses.licenseNumber' => ({required Object number}) => '许可证 ${number}',
|
||||
@@ -1813,22 +1781,12 @@ extension on TranslationsZh {
|
||||
'navigation.downloads' => '下载',
|
||||
'navigation.liveTv' => '电视直播',
|
||||
'liveTv.title' => '电视直播',
|
||||
'liveTv.channels' => '频道',
|
||||
'liveTv.guide' => '节目指南',
|
||||
'liveTv.noChannels' => '没有可用的频道',
|
||||
'liveTv.noDvr' => '没有服务器配置了DVR',
|
||||
'liveTv.tuneFailed' => '无法调谐频道',
|
||||
'liveTv.loading' => '正在加载频道...',
|
||||
'liveTv.nowPlaying' => '正在播放',
|
||||
'liveTv.noPrograms' => '没有可用的节目数据',
|
||||
'liveTv.channelNumber' => ({required Object number}) => '频道 ${number}',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'liveTv.live' => '直播',
|
||||
'liveTv.hd' => '高清',
|
||||
'liveTv.premiere' => '新',
|
||||
'liveTv.reloadGuide' => '重新加载节目指南',
|
||||
'liveTv.allChannels' => '所有频道',
|
||||
'liveTv.now' => '现在',
|
||||
'liveTv.today' => '今天',
|
||||
'liveTv.midnight' => '午夜',
|
||||
@@ -1839,6 +1797,9 @@ extension on TranslationsZh {
|
||||
'liveTv.lateNight' => '深夜',
|
||||
'liveTv.whatsOn' => '正在播出',
|
||||
'liveTv.watchChannel' => '观看频道',
|
||||
_ => null,
|
||||
} ?? switch (path) {
|
||||
'liveTv.favorites' => '收藏',
|
||||
'downloads.title' => '下载',
|
||||
'downloads.manage' => '管理',
|
||||
'downloads.tvShows' => '电视剧',
|
||||
@@ -2061,7 +2022,6 @@ extension on TranslationsZh {
|
||||
'externalPlayer.playerCommand' => '命令',
|
||||
'externalPlayer.playerPackage' => '包名',
|
||||
'externalPlayer.playerUrlScheme' => 'URL 方案',
|
||||
'externalPlayer.customPlayer' => '自定义播放器',
|
||||
'externalPlayer.off' => '关闭',
|
||||
'externalPlayer.launchFailed' => '无法打开外部播放器',
|
||||
'externalPlayer.appNotInstalled' => ({required Object name}) => '${name} 未安装',
|
||||
|
||||
+12
-29
@@ -30,7 +30,6 @@
|
||||
"shuffle": "Blanda",
|
||||
"addTo": "Lägg till i...",
|
||||
"createNew": "Skapa ny",
|
||||
"remove": "Ta bort",
|
||||
"paste": "Klistra in",
|
||||
"connect": "Anslut",
|
||||
"disconnect": "Koppla från",
|
||||
@@ -44,7 +43,6 @@
|
||||
"settings": "Mer",
|
||||
"mute": "Ljud av",
|
||||
"ok": "OK",
|
||||
"loading": "Laddar...",
|
||||
"reconnect": "Återanslut",
|
||||
"exitConfirmTitle": "Avsluta appen?",
|
||||
"exitConfirmMessage": "Är du säker på att du vill avsluta?",
|
||||
@@ -137,6 +135,8 @@
|
||||
"subtitleStylingDescription": "Anpassa undertextutseende",
|
||||
"smallSkipDuration": "Kort hoppvaraktighet",
|
||||
"largeSkipDuration": "Lång hoppvaraktighet",
|
||||
"rewindOnResume": "Spola tillbaka vid återupptagning",
|
||||
"rewindOnResumeDescription": "Spola tillbaka med denna tid vid återupptagning av uppspelning",
|
||||
"secondsUnit": "${seconds} sekunder",
|
||||
"defaultSleepTimer": "Standard sovtimer",
|
||||
"minutesUnit": "${minutes} minuter",
|
||||
@@ -213,7 +213,9 @@
|
||||
"confirmExitOnBack": "Bekräfta innan avslut",
|
||||
"confirmExitOnBackDescription": "Visa en bekräftelsedialog när du trycker tillbaka för att avsluta appen",
|
||||
"showNavBarLabels": "Visa navigeringsfältets etiketter",
|
||||
"showNavBarLabelsDescription": "Visa textetiketter under navigeringsfältets ikoner"
|
||||
"showNavBarLabelsDescription": "Visa textetiketter under navigeringsfältets ikoner",
|
||||
"liveTvDefaultFavorites": "Standard till favoritkanaler",
|
||||
"liveTvDefaultFavoritesDescription": "Visa bara favoritkanaler när du öppnar Live TV"
|
||||
},
|
||||
"search": {
|
||||
"hint": "Sök filmer, serier, musik...",
|
||||
@@ -246,11 +248,6 @@
|
||||
"skipMarker": "Hoppa över intro/eftertexter"
|
||||
}
|
||||
},
|
||||
"pinEntry": {
|
||||
"enterPin": "Ange PIN",
|
||||
"showPin": "Visa PIN",
|
||||
"hidePin": "Dölj PIN"
|
||||
},
|
||||
"fileInfo": {
|
||||
"title": "Filinformation",
|
||||
"video": "Video",
|
||||
@@ -323,7 +320,6 @@
|
||||
"unlockRotation": "Lås upp rotation",
|
||||
"timerActive": "Timer aktiv",
|
||||
"playbackWillPauseIn": "Uppspelningen pausas om ${duration}",
|
||||
"sleepTimerCompleted": "Sovtimer slutförd - uppspelning pausad",
|
||||
"stillWatching": "Tittar du fortfarande?",
|
||||
"pausingIn": "Pausar om ${seconds}s",
|
||||
"continueWatching": "Fortsätt",
|
||||
@@ -340,20 +336,20 @@
|
||||
"muteButton": "Tysta",
|
||||
"unmuteButton": "Slå på ljud",
|
||||
"settingsButton": "Videoinställningar",
|
||||
"audioTrackButton": "Ljudspår",
|
||||
"subtitlesButton": "Undertexter",
|
||||
"tracksButton": "Ljud och undertexter",
|
||||
"chaptersButton": "Kapitel",
|
||||
"versionsButton": "Videoversioner",
|
||||
"pipButton": "Bild-i-bild läge",
|
||||
"aspectRatioButton": "Bildförhållande",
|
||||
"ambientLighting": "Ambientbelysning",
|
||||
"ambientLightingOn": "Aktivera ambientbelysning",
|
||||
"ambientLightingOff": "Inaktivera ambientbelysning",
|
||||
"fullscreenButton": "Aktivera helskärm",
|
||||
"exitFullscreenButton": "Avsluta helskärm",
|
||||
"alwaysOnTopButton": "Alltid överst",
|
||||
"rotationLockButton": "Rotationslås",
|
||||
"lockScreen": "Lås skärm",
|
||||
"unlockScreen": "Lås upp skärm",
|
||||
"screenLockButton": "Skärmlås",
|
||||
"longPressToUnlock": "Tryck länge för att låsa upp",
|
||||
"timelineSlider": "Videotidslinje",
|
||||
"volumeSlider": "Volymnivå",
|
||||
"endsAt": "Slutar ${time}",
|
||||
@@ -453,11 +449,8 @@
|
||||
"overview": "Översikt",
|
||||
"cast": "Rollbesättning",
|
||||
"extras": "Trailers och Extra",
|
||||
"seasons": "Säsonger",
|
||||
"studio": "Studio",
|
||||
"rating": "Åldersgräns",
|
||||
"episodeCount": "${count} avsnitt",
|
||||
"watchedProgress": "${watched}/${total} sedda",
|
||||
"movie": "Film",
|
||||
"tvShow": "TV-serie",
|
||||
"minutesLeft": "${minutes} min kvar"
|
||||
@@ -550,9 +543,7 @@
|
||||
"logs": {
|
||||
"clearLogs": "Rensa loggar",
|
||||
"copyLogs": "Kopiera loggar",
|
||||
"uploadLogs": "Ladda upp loggar",
|
||||
"error": "Fel:",
|
||||
"stackTrace": "Stack trace:"
|
||||
"uploadLogs": "Ladda upp loggar"
|
||||
},
|
||||
"licenses": {
|
||||
"relatedPackages": "Relaterade paket",
|
||||
@@ -567,20 +558,12 @@
|
||||
},
|
||||
"liveTv": {
|
||||
"title": "Live-TV",
|
||||
"channels": "Kanaler",
|
||||
"guide": "Programguide",
|
||||
"noChannels": "Inga kanaler tillgängliga",
|
||||
"noDvr": "Ingen DVR konfigurerad på någon server",
|
||||
"tuneFailed": "Kunde inte ställa in kanalen",
|
||||
"loading": "Laddar kanaler...",
|
||||
"nowPlaying": "Spelas nu",
|
||||
"noPrograms": "Ingen programdata tillgänglig",
|
||||
"channelNumber": "Kanal ${number}",
|
||||
"live": "LIVE",
|
||||
"hd": "HD",
|
||||
"premiere": "NY",
|
||||
"reloadGuide": "Ladda om programguide",
|
||||
"allChannels": "Alla kanaler",
|
||||
"now": "Nu",
|
||||
"today": "Idag",
|
||||
"midnight": "Midnatt",
|
||||
@@ -590,7 +573,8 @@
|
||||
"evening": "Kväll",
|
||||
"lateNight": "Sen kväll",
|
||||
"whatsOn": "På TV nu",
|
||||
"watchChannel": "Titta på kanal"
|
||||
"watchChannel": "Titta på kanal",
|
||||
"favorites": "Favoriter"
|
||||
},
|
||||
"downloads": {
|
||||
"title": "Nedladdningar",
|
||||
@@ -835,7 +819,6 @@
|
||||
"playerCommand": "Kommando",
|
||||
"playerPackage": "Paketnamn",
|
||||
"playerUrlScheme": "URL-schema",
|
||||
"customPlayer": "Anpassad spelare",
|
||||
"off": "Av",
|
||||
"launchFailed": "Kunde inte öppna extern spelare",
|
||||
"appNotInstalled": "${name} är inte installerad",
|
||||
|
||||
+12
-29
@@ -30,7 +30,6 @@
|
||||
"shuffle": "随机播放",
|
||||
"addTo": "添加到...",
|
||||
"createNew": "新建",
|
||||
"remove": "删除",
|
||||
"paste": "粘贴",
|
||||
"connect": "连接",
|
||||
"disconnect": "断开连接",
|
||||
@@ -44,7 +43,6 @@
|
||||
"settings": "设置",
|
||||
"mute": "静音",
|
||||
"ok": "确定",
|
||||
"loading": "加载中...",
|
||||
"reconnect": "重新连接",
|
||||
"exitConfirmTitle": "退出应用?",
|
||||
"exitConfirmMessage": "确定要退出吗?",
|
||||
@@ -137,6 +135,8 @@
|
||||
"subtitleStylingDescription": "调整字幕外观",
|
||||
"smallSkipDuration": "短跳过时长",
|
||||
"largeSkipDuration": "长跳过时长",
|
||||
"rewindOnResume": "恢复时回退",
|
||||
"rewindOnResumeDescription": "恢复播放时回退此时长",
|
||||
"secondsUnit": "${seconds} 秒",
|
||||
"defaultSleepTimer": "默认睡眠定时器",
|
||||
"minutesUnit": "${minutes} 分钟",
|
||||
@@ -213,7 +213,9 @@
|
||||
"confirmExitOnBack": "退出前确认",
|
||||
"confirmExitOnBackDescription": "按返回键退出应用时显示确认对话框",
|
||||
"showNavBarLabels": "显示导航栏标签",
|
||||
"showNavBarLabelsDescription": "在导航栏图标下方显示文字标签"
|
||||
"showNavBarLabelsDescription": "在导航栏图标下方显示文字标签",
|
||||
"liveTvDefaultFavorites": "默认显示收藏频道",
|
||||
"liveTvDefaultFavoritesDescription": "打开直播电视时仅显示收藏频道"
|
||||
},
|
||||
"search": {
|
||||
"hint": "搜索电影、系列、音乐...",
|
||||
@@ -246,11 +248,6 @@
|
||||
"skipMarker": "跳过片头/片尾"
|
||||
}
|
||||
},
|
||||
"pinEntry": {
|
||||
"enterPin": "输入 PIN",
|
||||
"showPin": "显示 PIN",
|
||||
"hidePin": "隐藏 PIN"
|
||||
},
|
||||
"fileInfo": {
|
||||
"title": "文件信息",
|
||||
"video": "视频",
|
||||
@@ -323,7 +320,6 @@
|
||||
"unlockRotation": "解锁旋转",
|
||||
"timerActive": "定时器已激活",
|
||||
"playbackWillPauseIn": "播放将在 ${duration} 后暂停",
|
||||
"sleepTimerCompleted": "睡眠定时器已完成 - 播放已暂停",
|
||||
"stillWatching": "还在看吗?",
|
||||
"pausingIn": "${seconds}秒后暂停",
|
||||
"continueWatching": "继续",
|
||||
@@ -340,20 +336,20 @@
|
||||
"muteButton": "静音",
|
||||
"unmuteButton": "取消静音",
|
||||
"settingsButton": "视频设置",
|
||||
"audioTrackButton": "音轨",
|
||||
"subtitlesButton": "字幕",
|
||||
"tracksButton": "音频和字幕",
|
||||
"chaptersButton": "章节",
|
||||
"versionsButton": "视频版本",
|
||||
"pipButton": "画中画模式",
|
||||
"aspectRatioButton": "宽高比",
|
||||
"ambientLighting": "氛围灯光",
|
||||
"ambientLightingOn": "开启氛围灯光",
|
||||
"ambientLightingOff": "关闭氛围灯光",
|
||||
"fullscreenButton": "进入全屏",
|
||||
"exitFullscreenButton": "退出全屏",
|
||||
"alwaysOnTopButton": "置顶窗口",
|
||||
"rotationLockButton": "旋转锁定",
|
||||
"lockScreen": "锁定屏幕",
|
||||
"unlockScreen": "解锁屏幕",
|
||||
"screenLockButton": "屏幕锁定",
|
||||
"longPressToUnlock": "长按解锁",
|
||||
"timelineSlider": "视频时间轴",
|
||||
"volumeSlider": "音量调节",
|
||||
"endsAt": "${time} 结束",
|
||||
@@ -453,11 +449,8 @@
|
||||
"overview": "概述",
|
||||
"cast": "演员表",
|
||||
"extras": "预告片与花絮",
|
||||
"seasons": "季数",
|
||||
"studio": "制作公司",
|
||||
"rating": "年龄分级",
|
||||
"episodeCount": "${count} 集",
|
||||
"watchedProgress": "已观看 ${watched}/${total} 集",
|
||||
"movie": "电影",
|
||||
"tvShow": "电视剧",
|
||||
"minutesLeft": "剩余 ${minutes} 分钟"
|
||||
@@ -550,9 +543,7 @@
|
||||
"logs": {
|
||||
"clearLogs": "清除日志",
|
||||
"copyLogs": "复制日志",
|
||||
"uploadLogs": "上传日志",
|
||||
"error": "错误:",
|
||||
"stackTrace": "堆栈跟踪 (Stack Trace):"
|
||||
"uploadLogs": "上传日志"
|
||||
},
|
||||
"licenses": {
|
||||
"relatedPackages": "相关软件包",
|
||||
@@ -567,20 +558,12 @@
|
||||
},
|
||||
"liveTv": {
|
||||
"title": "电视直播",
|
||||
"channels": "频道",
|
||||
"guide": "节目指南",
|
||||
"noChannels": "没有可用的频道",
|
||||
"noDvr": "没有服务器配置了DVR",
|
||||
"tuneFailed": "无法调谐频道",
|
||||
"loading": "正在加载频道...",
|
||||
"nowPlaying": "正在播放",
|
||||
"noPrograms": "没有可用的节目数据",
|
||||
"channelNumber": "频道 ${number}",
|
||||
"live": "直播",
|
||||
"hd": "高清",
|
||||
"premiere": "新",
|
||||
"reloadGuide": "重新加载节目指南",
|
||||
"allChannels": "所有频道",
|
||||
"now": "现在",
|
||||
"today": "今天",
|
||||
"midnight": "午夜",
|
||||
@@ -590,7 +573,8 @@
|
||||
"evening": "晚上",
|
||||
"lateNight": "深夜",
|
||||
"whatsOn": "正在播出",
|
||||
"watchChannel": "观看频道"
|
||||
"watchChannel": "观看频道",
|
||||
"favorites": "收藏"
|
||||
},
|
||||
"downloads": {
|
||||
"title": "下载",
|
||||
@@ -835,7 +819,6 @@
|
||||
"playerCommand": "命令",
|
||||
"playerPackage": "包名",
|
||||
"playerUrlScheme": "URL 方案",
|
||||
"customPlayer": "自定义播放器",
|
||||
"off": "关闭",
|
||||
"launchFailed": "无法打开外部播放器",
|
||||
"appNotInstalled": "${name} 未安装",
|
||||
|
||||
+70
-24
@@ -2,7 +2,8 @@ import 'dart:async';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/gestures.dart';
|
||||
import 'dart:io' show Platform;
|
||||
import 'dart:io' show Platform, ProcessInfo;
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:window_manager/window_manager.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
@@ -54,7 +55,7 @@ import 'utils/log_redaction_manager.dart';
|
||||
import 'package:package_info_plus/package_info_plus.dart';
|
||||
|
||||
const bool _enableSentry = bool.fromEnvironment('ENABLE_SENTRY', defaultValue: false);
|
||||
const String _gitCommit = String.fromEnvironment('GIT_COMMIT');
|
||||
const String gitCommit = String.fromEnvironment('GIT_COMMIT');
|
||||
|
||||
// Workaround for Flutter bug #177992: iPadOS 26.1+ misinterprets fake touch events
|
||||
// at (0,0) as barrier taps, causing modals to dismiss immediately.
|
||||
@@ -82,8 +83,8 @@ Future<void> main() async {
|
||||
|
||||
await SentryFlutter.init((options) {
|
||||
options.dsn = 'https://6a1a6ef8c72140099b2798973c1bfb2f@bugs.plezy.app/1';
|
||||
options.release = _gitCommit.isNotEmpty
|
||||
? 'plezy@${_gitCommit.substring(0, 7)}'
|
||||
options.release = gitCommit.isNotEmpty
|
||||
? 'plezy@${gitCommit.substring(0, 7)}'
|
||||
: 'plezy@${packageInfo.version}+${packageInfo.buildNumber}';
|
||||
options.tracesSampleRate = 0;
|
||||
options.attachStacktrace = true;
|
||||
@@ -109,9 +110,14 @@ Future<void> _bootstrapApp() async {
|
||||
// Needed for formatting dates in different locales
|
||||
await initializeDateFormatting(savedLocale.languageCode, null);
|
||||
|
||||
// Configure image cache for large libraries
|
||||
PaintingBinding.instance.imageCache.maximumSize = 2000; // default 1000
|
||||
PaintingBinding.instance.imageCache.maximumSizeBytes = 300 << 20; // 300MB
|
||||
// Configure image cache — keep budget modest to leave headroom for Skia decode buffers
|
||||
if (Platform.isWindows || Platform.isMacOS || Platform.isLinux) {
|
||||
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
|
||||
}
|
||||
|
||||
// Initialize services in parallel where possible
|
||||
final futures = <Future<void>>[];
|
||||
@@ -144,6 +150,15 @@ Future<void> _bootstrapApp() async {
|
||||
final debugEnabled = settings.getEnableDebugLogging();
|
||||
setLoggerLevel(debugEnabled);
|
||||
|
||||
// Log app version and git commit at startup
|
||||
final packageInfo = await PackageInfo.fromPlatform();
|
||||
final commitSuffix = gitCommit.isNotEmpty ? ' (${gitCommit.substring(0, 7)})' : '';
|
||||
String renderer = '';
|
||||
if (Platform.isAndroid) {
|
||||
renderer = ' [${await const MethodChannel('com.plezy/theme').invokeMethod<String>('getRenderer')}]';
|
||||
}
|
||||
appLogger.i('Plezy v${packageInfo.version}+${packageInfo.buildNumber}$commitSuffix$renderer');
|
||||
|
||||
// Initialize download storage service with settings
|
||||
await DownloadStorageService.instance.initialize(settings);
|
||||
|
||||
@@ -174,10 +189,9 @@ Breadcrumb? _beforeBreadcrumb(Breadcrumb? breadcrumb, Hint _) {
|
||||
final data = breadcrumb.data;
|
||||
if (message == null && (data == null || data.isEmpty)) return breadcrumb;
|
||||
|
||||
return breadcrumb.copyWith(
|
||||
message: message != null ? LogRedactionManager.redact(message) : null,
|
||||
data: data?.map((k, v) => MapEntry(k, v is String ? LogRedactionManager.redact(v) : v)),
|
||||
);
|
||||
if (message != null) breadcrumb.message = LogRedactionManager.redact(message);
|
||||
if (data != null) breadcrumb.data = data.map((k, v) => MapEntry(k, v is String ? LogRedactionManager.redact(v) : v));
|
||||
return breadcrumb;
|
||||
}
|
||||
|
||||
FutureOr<SentryEvent?> _beforeSend(SentryEvent event, Hint _) {
|
||||
@@ -205,29 +219,26 @@ FutureOr<SentryEvent?> _beforeSend(SentryEvent event, Hint _) {
|
||||
|
||||
// Scrub Plex tokens and server URLs from exception messages
|
||||
if (exceptions != null) {
|
||||
exceptions = exceptions.map((e) {
|
||||
for (final e in exceptions) {
|
||||
final value = e.value;
|
||||
if (value != null) {
|
||||
return e.copyWith(value: LogRedactionManager.redact(value));
|
||||
e.value = LogRedactionManager.redact(value);
|
||||
}
|
||||
return e;
|
||||
}).toList();
|
||||
}
|
||||
}
|
||||
|
||||
// Scrub breadcrumb messages and data
|
||||
var breadcrumbs = event.breadcrumbs;
|
||||
final breadcrumbs = event.breadcrumbs;
|
||||
if (breadcrumbs != null) {
|
||||
breadcrumbs = breadcrumbs.map((b) {
|
||||
for (final b in breadcrumbs) {
|
||||
final message = b.message;
|
||||
final data = b.data;
|
||||
return b.copyWith(
|
||||
message: message != null ? LogRedactionManager.redact(message) : null,
|
||||
data: data?.map((k, v) => MapEntry(k, v is String ? LogRedactionManager.redact(v) : v)),
|
||||
);
|
||||
}).toList();
|
||||
if (message != null) b.message = LogRedactionManager.redact(message);
|
||||
if (data != null) b.data = data.map((k, v) => MapEntry(k, v is String ? LogRedactionManager.redact(v) : v));
|
||||
}
|
||||
}
|
||||
|
||||
return event.copyWith(exceptions: exceptions, breadcrumbs: breadcrumbs);
|
||||
return event;
|
||||
}
|
||||
|
||||
void _registerShaderLicenses() {
|
||||
@@ -304,11 +315,25 @@ class _MainAppState extends State<MainApp> with WidgetsBindingObserver {
|
||||
/// Last time server health probes ran from a resume event (cooldown for desktop)
|
||||
DateTime _lastResumeProbe = DateTime(0);
|
||||
|
||||
/// Periodic memory check timer for desktop platforms
|
||||
Timer? _memoryCheckTimer;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
WidgetsBinding.instance.addObserver(this);
|
||||
|
||||
// On desktop, periodically check RSS and evict image cache if too high
|
||||
if (Platform.isWindows || Platform.isMacOS || Platform.isLinux) {
|
||||
_memoryCheckTimer = Timer.periodic(const Duration(seconds: 30), (_) {
|
||||
final rss = ProcessInfo.currentRss;
|
||||
if (rss > 1536 * 1024 * 1024) { // 1.5GB
|
||||
appLogger.w('RSS high ($rss bytes), evicting image caches');
|
||||
_evictImageCaches();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
_serverManager = MultiServerManager();
|
||||
_aggregationService = DataAggregationService(_serverManager);
|
||||
_appDatabase = AppDatabase();
|
||||
@@ -327,10 +352,23 @@ class _MainAppState extends State<MainApp> with WidgetsBindingObserver {
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_memoryCheckTimer?.cancel();
|
||||
WidgetsBinding.instance.removeObserver(this);
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@override
|
||||
void didHaveMemoryPressure() {
|
||||
super.didHaveMemoryPressure();
|
||||
appLogger.w('System memory pressure, evicting image caches');
|
||||
_evictImageCaches();
|
||||
}
|
||||
|
||||
void _evictImageCaches() {
|
||||
PaintingBinding.instance.imageCache.clear();
|
||||
PaintingBinding.instance.imageCache.clearLiveImages();
|
||||
}
|
||||
|
||||
@override
|
||||
void didChangeAppLifecycleState(AppLifecycleState state) {
|
||||
switch (state) {
|
||||
@@ -352,8 +390,12 @@ class _MainAppState extends State<MainApp> with WidgetsBindingObserver {
|
||||
}
|
||||
case AppLifecycleState.paused:
|
||||
case AppLifecycleState.detached:
|
||||
// App went to background or is closing - end session
|
||||
InAppReviewService.instance.endSession();
|
||||
if (Platform.isWindows || Platform.isMacOS || Platform.isLinux) {
|
||||
if (ProcessInfo.currentRss > 1024 * 1024 * 1024) { // 1GB
|
||||
_evictImageCaches();
|
||||
}
|
||||
}
|
||||
case AppLifecycleState.inactive:
|
||||
case AppLifecycleState.hidden:
|
||||
// Transitional states - don't trigger session events
|
||||
@@ -501,6 +543,7 @@ class _SetupScreenState extends State<SetupScreen> {
|
||||
// Check network connectivity early to fast-path airplane mode.
|
||||
// Timeout guards against connectivity_plus hanging on some Android TV devices after force-close.
|
||||
bool hasNetwork;
|
||||
Sentry.addBreadcrumb(Breadcrumb(message: 'Checking network connectivity', category: 'setup'));
|
||||
try {
|
||||
final connectivityResult = await Connectivity().checkConnectivity().timeout(
|
||||
const Duration(seconds: 3),
|
||||
@@ -512,6 +555,8 @@ class _SetupScreenState extends State<SetupScreen> {
|
||||
hasNetwork = true;
|
||||
}
|
||||
|
||||
Sentry.addBreadcrumb(Breadcrumb(message: 'Network check done: hasNetwork=$hasNetwork', category: 'setup'));
|
||||
|
||||
if (hasNetwork) {
|
||||
_setStatus(t.common.refreshingServers);
|
||||
|
||||
@@ -551,6 +596,7 @@ class _SetupScreenState extends State<SetupScreen> {
|
||||
return;
|
||||
}
|
||||
|
||||
Sentry.addBreadcrumb(Breadcrumb(message: 'Connecting to ${servers.length} server(s)', category: 'setup'));
|
||||
_setStatus(t.common.connectingToServers);
|
||||
|
||||
// Populate per-server status for splash display
|
||||
|
||||
@@ -40,6 +40,28 @@ mixin GridFocusNodeMixin<T extends StatefulWidget> on State<T> {
|
||||
}
|
||||
}
|
||||
|
||||
/// Evict focus nodes far from [centerIndex], keeping at most [keepCount] around it.
|
||||
void evictDistantFocusNodes(int centerIndex, {int keepCount = 200}) {
|
||||
if (gridItemFocusNodes.length <= keepCount) return;
|
||||
|
||||
final halfKeep = keepCount ~/ 2;
|
||||
final keepStart = centerIndex - halfKeep;
|
||||
final keepEnd = centerIndex + halfKeep;
|
||||
|
||||
final keysToRemove = <int>[];
|
||||
for (final key in gridItemFocusNodes.keys) {
|
||||
if (key < keepStart || key > keepEnd) {
|
||||
keysToRemove.add(key);
|
||||
}
|
||||
}
|
||||
for (final key in keysToRemove) {
|
||||
final node = gridItemFocusNodes.remove(key);
|
||||
if (node != null && !node.hasFocus) {
|
||||
node.dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Dispose all grid-item focus nodes.
|
||||
void disposeGridFocusNodes() {
|
||||
for (final node in gridItemFocusNodes.values) {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import '../services/gamepad_service.dart';
|
||||
import '../screens/main_screen.dart';
|
||||
import '../widgets/focusable_tab_chip.dart';
|
||||
|
||||
/// Mixin that provides common tab navigation infrastructure.
|
||||
///
|
||||
@@ -12,7 +13,7 @@ import '../screens/main_screen.dart';
|
||||
/// - Tab bar back navigation to sidebar
|
||||
///
|
||||
/// Subclasses must provide [tabChipFocusNodes] — one [FocusNode] per tab.
|
||||
mixin TabNavigationMixin<T extends StatefulWidget> on State<T>, SingleTickerProviderStateMixin<T> {
|
||||
mixin TabNavigationMixin<T extends StatefulWidget> on State<T>, TickerProviderStateMixin<T> {
|
||||
late TabController tabController;
|
||||
|
||||
/// When true, suppress auto-focus in tabs (used when navigating via tab bar).
|
||||
@@ -83,4 +84,43 @@ mixin TabNavigationMixin<T extends StatefulWidget> on State<T>, SingleTickerProv
|
||||
void onTabBarBack() {
|
||||
MainScreenFocusScope.of(context)?.focusSidebar();
|
||||
}
|
||||
|
||||
/// Shared tab chip builder — eliminates duplication between screens.
|
||||
Widget buildTabChip(
|
||||
String label,
|
||||
int index, {
|
||||
required VoidCallback onSelectWhenActive,
|
||||
required VoidCallback onNavigateDown,
|
||||
VoidCallback? onNavigateRightFromLast,
|
||||
}) {
|
||||
final isSelected = tabController.index == index;
|
||||
return FocusableTabChip(
|
||||
label: label,
|
||||
isSelected: isSelected,
|
||||
focusNode: getTabChipFocusNode(index),
|
||||
onSelect: () {
|
||||
if (isSelected) {
|
||||
onSelectWhenActive();
|
||||
} else {
|
||||
setState(() { tabController.index = index; });
|
||||
}
|
||||
},
|
||||
onNavigateLeft: index > 0
|
||||
? () {
|
||||
final newIndex = index - 1;
|
||||
setState(() { suppressAutoFocus = true; tabController.index = newIndex; });
|
||||
getTabChipFocusNode(newIndex).requestFocus();
|
||||
}
|
||||
: onTabBarBack,
|
||||
onNavigateRight: index < tabCount - 1
|
||||
? () {
|
||||
final newIndex = index + 1;
|
||||
setState(() { suppressAutoFocus = true; tabController.index = newIndex; });
|
||||
getTabChipFocusNode(newIndex).requestFocus();
|
||||
}
|
||||
: onNavigateRightFromLast,
|
||||
onNavigateDown: onNavigateDown,
|
||||
onBack: onTabBarBack,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
/// Used by MainScreen to pause expensive work (e.g. animation tickers)
|
||||
/// when the screen's tab is no longer visible, and resume it when shown again.
|
||||
mixin TabVisibilityAware {
|
||||
void onTabShown({bool scrollToTop = true});
|
||||
void onTabShown();
|
||||
void onTabHidden();
|
||||
}
|
||||
|
||||
+164
-73
@@ -40,7 +40,7 @@ String physicalKeyLabel(PhysicalKeyboardKey key) {
|
||||
final macLabel = _macKeyLabels[key.usbHidUsage];
|
||||
if (macLabel != null) return macLabel;
|
||||
}
|
||||
return _knownKeyLabels[key.usbHidUsage] ?? key.debugName ?? 'Unknown';
|
||||
return _keyLabels[key.usbHidUsage] ?? 'Unknown';
|
||||
}
|
||||
|
||||
/// macOS-specific overrides for keys that have standard symbols.
|
||||
@@ -70,60 +70,68 @@ const _macKeyLabels = <int, String>{
|
||||
0x00000012: 'fn', // fn
|
||||
};
|
||||
|
||||
const _knownKeyLabels = <int, String>{
|
||||
0x00070004: 'A', // keyA
|
||||
0x00070005: 'B', // keyB
|
||||
0x00070006: 'C', // keyC
|
||||
0x00070007: 'D', // keyD
|
||||
0x00070008: 'E', // keyE
|
||||
0x00070009: 'F', // keyF
|
||||
0x0007000a: 'G', // keyG
|
||||
0x0007000b: 'H', // keyH
|
||||
0x0007000c: 'I', // keyI
|
||||
0x0007000d: 'J', // keyJ
|
||||
0x0007000e: 'K', // keyK
|
||||
0x0007000f: 'L', // keyL
|
||||
0x00070010: 'M', // keyM
|
||||
0x00070011: 'N', // keyN
|
||||
0x00070012: 'O', // keyO
|
||||
0x00070013: 'P', // keyP
|
||||
0x00070014: 'Q', // keyQ
|
||||
0x00070015: 'R', // keyR
|
||||
0x00070016: 'S', // keyS
|
||||
0x00070017: 'T', // keyT
|
||||
0x00070018: 'U', // keyU
|
||||
0x00070019: 'V', // keyV
|
||||
0x0007001a: 'W', // keyW
|
||||
0x0007001b: 'X', // keyX
|
||||
0x0007001c: 'Y', // keyY
|
||||
0x0007001d: 'Z', // keyZ
|
||||
0x0007001e: '1', // digit1
|
||||
0x0007001f: '2', // digit2
|
||||
0x00070020: '3', // digit3
|
||||
0x00070021: '4', // digit4
|
||||
0x00070022: '5', // digit5
|
||||
0x00070023: '6', // digit6
|
||||
0x00070024: '7', // digit7
|
||||
0x00070025: '8', // digit8
|
||||
0x00070026: '9', // digit9
|
||||
0x00070027: '0', // digit0
|
||||
0x00070028: 'Enter', // enter
|
||||
0x00070029: 'Escape', // escape
|
||||
0x0007002a: 'Backspace', // backspace
|
||||
0x0007002b: 'Tab', // tab
|
||||
0x0007002c: 'Space', // space
|
||||
0x0007002d: '=', // equal
|
||||
0x0007002e: '-', // minus
|
||||
0x0007002f: '[', // bracketLeft
|
||||
0x00070030: ']', // bracketRight
|
||||
0x00070031: r'\', // backslash
|
||||
0x00070033: ';', // semicolon
|
||||
0x00070034: "'", // quote
|
||||
0x00070035: '`', // backquote
|
||||
0x00070036: ',', // comma
|
||||
0x00070037: '.', // period
|
||||
0x00070038: '/', // slash
|
||||
0x00070039: 'CapsLock', // capsLock
|
||||
/// Comprehensive key labels sourced from Flutter's PhysicalKeyboardKey._debugNames
|
||||
/// (keyboard_key.g.dart, USB HID keyboard usage page 0x0007).
|
||||
/// Common keys use short curated labels; the rest use Flutter's default names.
|
||||
const _keyLabels = <int, String>{
|
||||
// Letters
|
||||
0x00070004: 'A',
|
||||
0x00070005: 'B',
|
||||
0x00070006: 'C',
|
||||
0x00070007: 'D',
|
||||
0x00070008: 'E',
|
||||
0x00070009: 'F',
|
||||
0x0007000a: 'G',
|
||||
0x0007000b: 'H',
|
||||
0x0007000c: 'I',
|
||||
0x0007000d: 'J',
|
||||
0x0007000e: 'K',
|
||||
0x0007000f: 'L',
|
||||
0x00070010: 'M',
|
||||
0x00070011: 'N',
|
||||
0x00070012: 'O',
|
||||
0x00070013: 'P',
|
||||
0x00070014: 'Q',
|
||||
0x00070015: 'R',
|
||||
0x00070016: 'S',
|
||||
0x00070017: 'T',
|
||||
0x00070018: 'U',
|
||||
0x00070019: 'V',
|
||||
0x0007001a: 'W',
|
||||
0x0007001b: 'X',
|
||||
0x0007001c: 'Y',
|
||||
0x0007001d: 'Z',
|
||||
// Digits
|
||||
0x0007001e: '1',
|
||||
0x0007001f: '2',
|
||||
0x00070020: '3',
|
||||
0x00070021: '4',
|
||||
0x00070022: '5',
|
||||
0x00070023: '6',
|
||||
0x00070024: '7',
|
||||
0x00070025: '8',
|
||||
0x00070026: '9',
|
||||
0x00070027: '0',
|
||||
// Special keys
|
||||
0x00070028: 'Enter',
|
||||
0x00070029: 'Escape',
|
||||
0x0007002a: 'Backspace',
|
||||
0x0007002b: 'Tab',
|
||||
0x0007002c: 'Space',
|
||||
// Symbols
|
||||
0x0007002d: '-',
|
||||
0x0007002e: '=',
|
||||
0x0007002f: '[',
|
||||
0x00070030: ']',
|
||||
0x00070031: r'\',
|
||||
0x00070033: ';',
|
||||
0x00070034: "'",
|
||||
0x00070035: '`',
|
||||
0x00070036: ',',
|
||||
0x00070037: '.',
|
||||
0x00070038: '/',
|
||||
// Lock & function keys
|
||||
0x00070039: 'Caps Lock',
|
||||
0x0007003a: 'F1',
|
||||
0x0007003b: 'F2',
|
||||
0x0007003c: 'F3',
|
||||
@@ -136,22 +144,105 @@ const _knownKeyLabels = <int, String>{
|
||||
0x00070043: 'F10',
|
||||
0x00070044: 'F11',
|
||||
0x00070045: 'F12',
|
||||
0x0007004a: 'Home', // home
|
||||
0x0007004b: 'Page Up', // pageUp
|
||||
0x0007004c: 'Delete', // delete
|
||||
0x0007004d: 'End', // end
|
||||
0x0007004e: 'Page Down', // pageDown
|
||||
0x0007004f: 'Arrow Right', // arrowRight
|
||||
0x00070050: 'Arrow Left', // arrowLeft
|
||||
0x00070051: 'Arrow Down', // arrowDown
|
||||
0x00070052: 'Arrow Up', // arrowUp
|
||||
0x000700e0: 'Ctrl', // controlLeft
|
||||
0x000700e1: 'Shift', // shiftLeft
|
||||
0x000700e2: 'Alt', // altLeft
|
||||
0x000700e3: 'Meta', // metaLeft
|
||||
0x000700e4: 'Ctrl', // controlRight
|
||||
0x000700e5: 'Shift', // shiftRight
|
||||
0x000700e6: 'Alt', // altRight
|
||||
0x000700e7: 'Meta', // metaRight
|
||||
0x00000012: 'Fn', // fn
|
||||
0x00070046: 'Print Screen',
|
||||
0x00070047: 'Scroll Lock',
|
||||
0x00070048: 'Pause',
|
||||
0x00070049: 'Insert',
|
||||
// Navigation
|
||||
0x0007004a: 'Home',
|
||||
0x0007004b: 'Page Up',
|
||||
0x0007004c: 'Delete',
|
||||
0x0007004d: 'End',
|
||||
0x0007004e: 'Page Down',
|
||||
0x0007004f: 'Arrow Right',
|
||||
0x00070050: 'Arrow Left',
|
||||
0x00070051: 'Arrow Down',
|
||||
0x00070052: 'Arrow Up',
|
||||
// Numpad
|
||||
0x00070053: 'Num Lock',
|
||||
0x00070054: 'Numpad /',
|
||||
0x00070055: 'Numpad *',
|
||||
0x00070056: 'Numpad -',
|
||||
0x00070057: 'Numpad +',
|
||||
0x00070058: 'Numpad Enter',
|
||||
0x00070059: 'Numpad 1',
|
||||
0x0007005a: 'Numpad 2',
|
||||
0x0007005b: 'Numpad 3',
|
||||
0x0007005c: 'Numpad 4',
|
||||
0x0007005d: 'Numpad 5',
|
||||
0x0007005e: 'Numpad 6',
|
||||
0x0007005f: 'Numpad 7',
|
||||
0x00070060: 'Numpad 8',
|
||||
0x00070061: 'Numpad 9',
|
||||
0x00070062: 'Numpad 0',
|
||||
0x00070063: 'Numpad .',
|
||||
0x00070064: 'Intl Backslash',
|
||||
0x00070065: 'Context Menu',
|
||||
0x00070066: 'Power',
|
||||
0x00070067: 'Numpad =',
|
||||
// Extended function keys
|
||||
0x00070068: 'F13',
|
||||
0x00070069: 'F14',
|
||||
0x0007006a: 'F15',
|
||||
0x0007006b: 'F16',
|
||||
0x0007006c: 'F17',
|
||||
0x0007006d: 'F18',
|
||||
0x0007006e: 'F19',
|
||||
0x0007006f: 'F20',
|
||||
0x00070070: 'F21',
|
||||
0x00070071: 'F22',
|
||||
0x00070072: 'F23',
|
||||
0x00070073: 'F24',
|
||||
// Editing
|
||||
0x00070074: 'Open',
|
||||
0x00070075: 'Help',
|
||||
0x00070077: 'Select',
|
||||
0x00070079: 'Again',
|
||||
0x0007007a: 'Undo',
|
||||
0x0007007b: 'Cut',
|
||||
0x0007007c: 'Copy',
|
||||
0x0007007d: 'Paste',
|
||||
0x0007007e: 'Find',
|
||||
// Audio
|
||||
0x0007007f: 'Volume Mute',
|
||||
0x00070080: 'Volume Up',
|
||||
0x00070081: 'Volume Down',
|
||||
// Numpad extras
|
||||
0x00070085: 'Numpad ,',
|
||||
// International
|
||||
0x00070087: 'Intl Ro',
|
||||
0x00070088: 'Kana Mode',
|
||||
0x00070089: 'Intl Yen',
|
||||
0x0007008a: 'Convert',
|
||||
0x0007008b: 'Non Convert',
|
||||
0x00070090: 'Lang 1',
|
||||
0x00070091: 'Lang 2',
|
||||
0x00070092: 'Lang 3',
|
||||
0x00070093: 'Lang 4',
|
||||
0x00070094: 'Lang 5',
|
||||
0x0007009b: 'Abort',
|
||||
0x000700a3: 'Props',
|
||||
// Numpad advanced
|
||||
0x000700b6: 'Numpad (',
|
||||
0x000700b7: 'Numpad )',
|
||||
0x000700bb: 'Numpad Backspace',
|
||||
0x000700d0: 'Numpad Memory Store',
|
||||
0x000700d1: 'Numpad Memory Recall',
|
||||
0x000700d2: 'Numpad Memory Clear',
|
||||
0x000700d3: 'Numpad Memory Add',
|
||||
0x000700d4: 'Numpad Memory Subtract',
|
||||
0x000700d7: 'Numpad Sign Change',
|
||||
0x000700d8: 'Numpad Clear',
|
||||
0x000700d9: 'Numpad Clear Entry',
|
||||
// Modifiers
|
||||
0x000700e0: 'Ctrl',
|
||||
0x000700e1: 'Shift',
|
||||
0x000700e2: 'Alt',
|
||||
0x000700e3: 'Meta',
|
||||
0x000700e4: 'Ctrl',
|
||||
0x000700e5: 'Shift',
|
||||
0x000700e6: 'Alt',
|
||||
0x000700e7: 'Meta',
|
||||
// Fn
|
||||
0x00000012: 'Fn',
|
||||
};
|
||||
|
||||
@@ -34,13 +34,13 @@ class LiveTvChannel {
|
||||
|
||||
factory LiveTvChannel.fromJson(Map<String, dynamic> json) {
|
||||
return LiveTvChannel(
|
||||
key: json['key'] as String? ?? json['ratingKey'] as String? ?? json['identifier'] as String? ?? json['channelIdentifier'] as String? ?? '',
|
||||
identifier: json['identifier'] as String? ?? json['channelIdentifier'] as String?,
|
||||
key: json['key'] as String? ?? json['ratingKey'] as String? ?? json['identifier'] as String? ?? json['id'] as String? ?? json['channelIdentifier'] as String? ?? '',
|
||||
identifier: json['identifier'] as String? ?? json['id'] as String? ?? json['channelIdentifier'] as String?,
|
||||
callSign: json['callSign'] as String?,
|
||||
title: json['title'] as String? ?? json['callSign'] as String?,
|
||||
thumb: json['thumb'] as String?,
|
||||
art: json['art'] as String?,
|
||||
number: json['number'] as String? ?? json['channelNumber'] as String? ?? json['channelVcn']?.toString(),
|
||||
number: json['number'] as String? ?? json['channelNumber'] as String? ?? json['channelVcn']?.toString() ?? json['vcn']?.toString(),
|
||||
hd: json['hd'] == true || json['hd'] == 1,
|
||||
lineup: json['lineup'] as String?,
|
||||
slug: json['slug'] as String?,
|
||||
@@ -69,3 +69,50 @@ class LiveTvChannel {
|
||||
/// Display name: prefer callSign, fallback to title
|
||||
String get displayName => callSign ?? title ?? 'Channel $number';
|
||||
}
|
||||
|
||||
/// A channel entry in the Plex cloud favorites list.
|
||||
/// Stored at `https://epg.provider.plex.tv/settings/favoriteChannels`.
|
||||
class FavoriteChannel {
|
||||
final String source;
|
||||
final String id;
|
||||
final String? title;
|
||||
final String? thumb;
|
||||
final String? vcn;
|
||||
|
||||
FavoriteChannel({
|
||||
required this.source,
|
||||
required this.id,
|
||||
this.title,
|
||||
this.thumb,
|
||||
this.vcn,
|
||||
});
|
||||
|
||||
factory FavoriteChannel.fromJson(Map<String, dynamic> json) {
|
||||
return FavoriteChannel(
|
||||
source: json['source'] as String? ?? '',
|
||||
id: json['id'] as String? ?? json['key'] as String? ?? '',
|
||||
title: json['title'] as String?,
|
||||
thumb: json['thumb'] as String?,
|
||||
vcn: json['vcn'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'source': source,
|
||||
'id': id,
|
||||
if (title != null) 'title': title,
|
||||
if (thumb != null) 'thumb': thumb,
|
||||
if (vcn != null) 'vcn': vcn,
|
||||
};
|
||||
|
||||
/// Create from a [LiveTvChannel] and a source URI.
|
||||
factory FavoriteChannel.fromLiveTvChannel(LiveTvChannel channel, String source) {
|
||||
return FavoriteChannel(
|
||||
source: source,
|
||||
id: channel.key,
|
||||
title: channel.title ?? channel.callSign,
|
||||
thumb: channel.thumb,
|
||||
vcn: channel.number,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,6 +26,10 @@ class PlexLibrary with MultiServerFields {
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
final String? serverName;
|
||||
|
||||
/// Whether this is a shared library (individually shared items, not a real section)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
final bool isShared;
|
||||
|
||||
/// Global unique identifier across all servers (serverId:key)
|
||||
String get globalKey => serverId != null ? buildGlobalKey(serverId!, key) : key;
|
||||
|
||||
@@ -42,6 +46,7 @@ class PlexLibrary with MultiServerFields {
|
||||
this.hidden,
|
||||
this.serverId,
|
||||
this.serverName,
|
||||
this.isShared = false,
|
||||
});
|
||||
|
||||
factory PlexLibrary.fromJson(Map<String, dynamic> json) => _$PlexLibraryFromJson(json);
|
||||
@@ -62,6 +67,7 @@ class PlexLibrary with MultiServerFields {
|
||||
int? hidden,
|
||||
String? serverId,
|
||||
String? serverName,
|
||||
bool? isShared,
|
||||
}) {
|
||||
return PlexLibrary(
|
||||
key: key ?? this.key,
|
||||
@@ -76,6 +82,7 @@ class PlexLibrary with MultiServerFields {
|
||||
hidden: hidden ?? this.hidden,
|
||||
serverId: serverId ?? this.serverId,
|
||||
serverName: serverName ?? this.serverName,
|
||||
isShared: isShared ?? this.isShared,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -133,6 +133,18 @@ class PlexMetadata with MultiServerFields {
|
||||
/// Global unique identifier across all servers (serverId:ratingKey)
|
||||
String get globalKey => serverId != null ? buildGlobalKey(serverId!, ratingKey) : ratingKey;
|
||||
|
||||
/// Whether this item represents a library section (shared whole-library, not a media item).
|
||||
/// These have keys like `/library/sections/5/all` instead of `/library/metadata/12345`.
|
||||
bool get isLibrarySection => key != null && key!.startsWith('/library/sections/');
|
||||
|
||||
/// Extract the library section ID from a library-section item's key.
|
||||
/// Returns null if this is not a library section item.
|
||||
String? get librarySectionKey {
|
||||
if (!isLibrarySection) return null;
|
||||
final match = RegExp(r'/library/sections/(\d+)').firstMatch(key!);
|
||||
return match?.group(1);
|
||||
}
|
||||
|
||||
/// Parsed media type enum for type-safe comparisons
|
||||
PlexMediaType get mediaType {
|
||||
if (type == null) return PlexMediaType.unknown;
|
||||
|
||||
@@ -72,10 +72,4 @@ class PlexUserProfile {
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
/// Returns true if subtitles should be automatically selected
|
||||
bool get shouldAutoSelectSubtitle => autoSelectSubtitle > 0;
|
||||
|
||||
/// Returns true if forced subtitles should be preferred
|
||||
bool get preferForcedSubtitles => defaultSubtitleForced == 1;
|
||||
}
|
||||
|
||||
@@ -133,5 +133,4 @@ class UserSwitchResponse {
|
||||
bool get isRestrictedUser => restricted;
|
||||
bool get isGuestUser => guest;
|
||||
bool get requiresPassword => hasPassword;
|
||||
bool get isSecureUser => twoFactorEnabled || backupCodesCreated;
|
||||
}
|
||||
|
||||
@@ -39,7 +39,10 @@ class PlayerAndroid extends PlayerBase {
|
||||
void handlePlayerEvent(String name, Map? data) {
|
||||
// Handle Android-specific events
|
||||
if (name == 'backend-switched') {
|
||||
// Native player switched from ExoPlayer to MPV due to unsupported format
|
||||
// Native player switched from ExoPlayer to MPV due to unsupported format.
|
||||
// Clear stale ExoPlayer tracks so applyTrackSelectionWhenReady waits for
|
||||
// mpv's track-list instead of immediately applying with ExoPlayer IDs.
|
||||
clearTracks();
|
||||
backendSwitchedController.add(null);
|
||||
return;
|
||||
}
|
||||
@@ -89,7 +92,7 @@ class PlayerAndroid extends PlayerBase {
|
||||
// ============================================
|
||||
|
||||
@override
|
||||
Future<void> open(Media media, {bool play = true, bool isLive = false}) async {
|
||||
Future<void> open(Media media, {bool play = true, bool isLive = false, List<SubtitleTrack>? externalSubtitles}) async {
|
||||
if (disposed) return;
|
||||
await _ensureInitialized();
|
||||
setSeekable(false);
|
||||
@@ -103,6 +106,11 @@ class PlayerAndroid extends PlayerBase {
|
||||
'startPositionMs': media.start?.inMilliseconds ?? 0,
|
||||
'autoPlay': play,
|
||||
'isLive': isLive,
|
||||
if (externalSubtitles != null && externalSubtitles.isNotEmpty)
|
||||
'externalSubtitles': externalSubtitles
|
||||
.where((s) => s.uri != null)
|
||||
.map((s) => {'uri': s.uri, 'title': s.title, 'language': s.language})
|
||||
.toList(),
|
||||
});
|
||||
}
|
||||
|
||||
@@ -243,6 +251,11 @@ class PlayerAndroid extends PlayerBase {
|
||||
return (state.duration.inMilliseconds / 1000.0).toString();
|
||||
case 'seekable':
|
||||
return state.seekable ? 'yes' : 'no';
|
||||
// Video frame rate - query from ExoPlayer stats
|
||||
case 'container-fps':
|
||||
final fpsStats = await getStats();
|
||||
final fps = fpsStats['videoFps'];
|
||||
return fps?.toString();
|
||||
// Video dimensions - query from ExoPlayer stats
|
||||
case 'width':
|
||||
case 'dwidth':
|
||||
|
||||
@@ -61,7 +61,7 @@ abstract class Player {
|
||||
///
|
||||
/// [media] - The media source to open.
|
||||
/// [play] - Whether to start playback immediately (default: true).
|
||||
Future<void> open(Media media, {bool play = true, bool isLive = false});
|
||||
Future<void> open(Media media, {bool play = true, bool isLive = false, List<SubtitleTrack>? externalSubtitles});
|
||||
|
||||
/// Start or resume playback.
|
||||
Future<void> play();
|
||||
@@ -162,6 +162,16 @@ abstract class Player {
|
||||
/// [args] - Command and arguments as a list of strings.
|
||||
Future<void> command(List<String> args);
|
||||
|
||||
// ============================================
|
||||
// Subtitle Fonts
|
||||
// ============================================
|
||||
|
||||
/// Configure subtitle fonts for libass rendering.
|
||||
///
|
||||
/// Extracts a comprehensive Unicode font (Go Noto) to the cache directory
|
||||
/// and sets `sub-fonts-dir` and `sub-font` properties.
|
||||
Future<void> configureSubtitleFonts();
|
||||
|
||||
// ============================================
|
||||
// Passthrough Mode (Audio)
|
||||
// ============================================
|
||||
|
||||
@@ -5,6 +5,7 @@ import 'package:flutter/foundation.dart' show protected;
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
import '../../utils/app_logger.dart';
|
||||
import '../font_loader.dart';
|
||||
import '../models.dart';
|
||||
import 'player.dart';
|
||||
import 'player_state.dart';
|
||||
@@ -224,9 +225,18 @@ abstract class PlayerBase with PlayerStreamControllersMixin implements Player {
|
||||
}
|
||||
}
|
||||
if (trackList != null) {
|
||||
final tracks = parseTrackList(trackList);
|
||||
_state = _state.copyWith(tracks: tracks);
|
||||
tracksController.add(tracks);
|
||||
final result = parseTrackList(trackList);
|
||||
_state = _state.copyWith(tracks: result.tracks);
|
||||
tracksController.add(result.tracks);
|
||||
// Derive selection from mpv's "selected" field in the track data.
|
||||
// This is the source of truth and handles cases where aid/sid
|
||||
// values don't match track IDs (e.g. "auto", "0", "no").
|
||||
if (result.selectedAudioId != null) {
|
||||
updateSelectedAudioTrack(result.selectedAudioId);
|
||||
}
|
||||
if (result.selectedSubtitleId != null) {
|
||||
updateSelectedSubtitleTrack(result.selectedSubtitleId);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -383,18 +393,22 @@ abstract class PlayerBase with PlayerStreamControllersMixin implements Player {
|
||||
};
|
||||
}
|
||||
|
||||
/// Parse a track list from the platform into [Tracks].
|
||||
Tracks parseTrackList(List trackList) {
|
||||
/// Parse a track list from the platform into [Tracks] and selected track IDs.
|
||||
({Tracks tracks, String? selectedAudioId, String? selectedSubtitleId}) parseTrackList(List trackList) {
|
||||
final audioTracks = <AudioTrack>[];
|
||||
final subtitleTracks = <SubtitleTrack>[];
|
||||
String? selectedAudioId;
|
||||
String? selectedSubtitleId;
|
||||
|
||||
for (final track in trackList) {
|
||||
if (track is! Map) continue;
|
||||
|
||||
final type = track['type'] as String?;
|
||||
final id = track['id']?.toString() ?? '';
|
||||
final selected = track['selected'] as bool? ?? false;
|
||||
|
||||
if (type == 'audio') {
|
||||
if (selected) selectedAudioId = id;
|
||||
audioTracks.add(
|
||||
AudioTrack(
|
||||
id: id,
|
||||
@@ -407,12 +421,15 @@ abstract class PlayerBase with PlayerStreamControllersMixin implements Player {
|
||||
),
|
||||
);
|
||||
} else if (type == 'sub') {
|
||||
if (selected) selectedSubtitleId = id;
|
||||
subtitleTracks.add(
|
||||
SubtitleTrack(
|
||||
id: id,
|
||||
title: track['title'] as String?,
|
||||
language: track['lang'] as String?,
|
||||
codec: track['codec'] as String?,
|
||||
isDefault: track['default'] as bool? ?? false,
|
||||
isForced: track['forced'] as bool? ?? false,
|
||||
isExternal: track['external'] as bool? ?? false,
|
||||
uri: track['external-filename'] as String?,
|
||||
),
|
||||
@@ -420,7 +437,7 @@ abstract class PlayerBase with PlayerStreamControllersMixin implements Player {
|
||||
}
|
||||
}
|
||||
|
||||
return Tracks(audio: audioTracks, subtitle: subtitleTracks);
|
||||
return (tracks: Tracks(audio: audioTracks, subtitle: subtitleTracks), selectedAudioId: selectedAudioId, selectedSubtitleId: selectedSubtitleId);
|
||||
}
|
||||
|
||||
/// Update the selected audio track.
|
||||
@@ -469,6 +486,13 @@ abstract class PlayerBase with PlayerStreamControllersMixin implements Player {
|
||||
_state = update(_state);
|
||||
}
|
||||
|
||||
@protected
|
||||
void clearTracks() {
|
||||
const empty = Tracks();
|
||||
_state = _state.copyWith(tracks: empty, track: const TrackSelection());
|
||||
tracksController.add(empty);
|
||||
}
|
||||
|
||||
@protected
|
||||
void setSeekable(bool seekable) {
|
||||
if (_state.seekable == seekable) return;
|
||||
@@ -550,6 +574,28 @@ abstract class PlayerBase with PlayerStreamControllersMixin implements Player {
|
||||
// ignore: no-empty-block - base no-op, overridden by platform subclasses
|
||||
Future<void> setLogLevel(String level) async {}
|
||||
|
||||
// ============================================
|
||||
// Subtitle Fonts
|
||||
// ============================================
|
||||
|
||||
@override
|
||||
Future<void> configureSubtitleFonts() async {
|
||||
try {
|
||||
final fontDir = await SubtitleFontLoader.loadSubtitleFont();
|
||||
if (fontDir != null) {
|
||||
await setProperty('sub-fonts-dir', fontDir);
|
||||
await setProperty('sub-font', SubtitleFontLoader.fontName);
|
||||
}
|
||||
} catch (e) {
|
||||
// Font configuration is not critical - continue without it
|
||||
logController.add(PlayerLog(
|
||||
prefix: 'fonts',
|
||||
level: PlayerLogLevel.warn,
|
||||
text: 'Failed to configure subtitle fonts: $e',
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
// ============================================
|
||||
// Lifecycle
|
||||
// ============================================
|
||||
|
||||
@@ -2,7 +2,6 @@ import 'dart:io' show Platform;
|
||||
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
import '../font_loader.dart';
|
||||
import '../models.dart';
|
||||
import '../../utils/app_logger.dart';
|
||||
import 'player_base.dart';
|
||||
@@ -55,9 +54,6 @@ class PlayerNative extends PlayerBase {
|
||||
throw Exception('Failed to initialize player');
|
||||
}
|
||||
|
||||
// Configure subtitle fonts for libass support
|
||||
await _configureSubtitleFonts();
|
||||
|
||||
// Subscribe to MPV properties
|
||||
await observeProperty('time-pos', 'double');
|
||||
await observeProperty('duration', 'double');
|
||||
@@ -80,24 +76,6 @@ class PlayerNative extends PlayerBase {
|
||||
}
|
||||
}
|
||||
|
||||
/// Configures subtitle fonts for libass support.
|
||||
/// Provides a comprehensive Unicode font (Go Noto) with CJK coverage to ensure
|
||||
/// proper rendering of non-Latin characters in subtitles.
|
||||
Future<void> _configureSubtitleFonts() async {
|
||||
try {
|
||||
final fontDir = await SubtitleFontLoader.loadSubtitleFont();
|
||||
if (fontDir != null) {
|
||||
// Configure MPV to use the extracted font for libass
|
||||
await setProperty('config', 'yes');
|
||||
await setProperty('sub-fonts-dir', fontDir);
|
||||
await setProperty('sub-font', SubtitleFontLoader.fontName);
|
||||
}
|
||||
} catch (e) {
|
||||
// Font configuration is not critical - continue without it
|
||||
errorController.add('Failed to configure subtitle fonts: $e');
|
||||
}
|
||||
}
|
||||
|
||||
// ============================================
|
||||
// Playback Control
|
||||
// ============================================
|
||||
@@ -113,7 +91,7 @@ class PlayerNative extends PlayerBase {
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> open(Media media, {bool play = true, bool isLive = false}) async {
|
||||
Future<void> open(Media media, {bool play = true, bool isLive = false, List<SubtitleTrack>? externalSubtitles}) async {
|
||||
if (disposed) return;
|
||||
await _ensureInitialized();
|
||||
setSeekable(false);
|
||||
|
||||
@@ -35,10 +35,6 @@ class NavigationTab {
|
||||
}).toList();
|
||||
}
|
||||
|
||||
/// Check if a visual index corresponds to a specific tab ID
|
||||
static bool isTabAtIndex(NavigationTabId id, int index, {required bool isOffline, bool hasLiveTv = false}) {
|
||||
return indexFor(id, isOffline: isOffline, hasLiveTv: hasLiveTv) == index;
|
||||
}
|
||||
}
|
||||
|
||||
// Label getters (must be top-level for const constructor)
|
||||
|
||||
@@ -31,7 +31,11 @@ class HiddenLibrariesProvider extends ChangeNotifier {
|
||||
_storageService = await StorageService.getInstance();
|
||||
_hiddenLibraryKeys = _storageService.getHiddenLibraries();
|
||||
_isInitialized = true;
|
||||
notifyListeners();
|
||||
// Only notify if there are actually hidden libraries — the default empty
|
||||
// set is already visible to consumers, so empty→empty is a no-op.
|
||||
if (_hiddenLibraryKeys.isNotEmpty) {
|
||||
notifyListeners();
|
||||
}
|
||||
}
|
||||
|
||||
/// Hide a library by its key
|
||||
|
||||
@@ -2,6 +2,7 @@ import 'dart:async';
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
||||
import '../models/livetv_dvr.dart';
|
||||
import '../services/plex_client.dart';
|
||||
import '../services/data_aggregation_service.dart';
|
||||
import '../services/multi_server_manager.dart';
|
||||
@@ -14,7 +15,10 @@ class LiveTvServerInfo {
|
||||
final String dvrKey;
|
||||
final String? lineup;
|
||||
|
||||
LiveTvServerInfo({required this.serverId, required this.dvrKey, this.lineup});
|
||||
/// Full DVR objects including channel mappings (avoids re-fetching in LiveTvScreen)
|
||||
final List<LiveTvDvr> dvrs;
|
||||
|
||||
LiveTvServerInfo({required this.serverId, required this.dvrKey, this.lineup, this.dvrs = const []});
|
||||
}
|
||||
|
||||
/// Provider for multi-server Plex connections
|
||||
@@ -32,12 +36,22 @@ class MultiServerProvider extends ChangeNotifier {
|
||||
final List<LiveTvServerInfo> _liveTvServers = [];
|
||||
List<LiveTvServerInfo> get liveTvServers => List.unmodifiable(_liveTvServers);
|
||||
|
||||
/// Previously-seen set of online server IDs, used to detect new servers
|
||||
Set<String> _previousOnlineServerIds = {};
|
||||
|
||||
MultiServerProvider(this._serverManager, this._aggregationService) {
|
||||
// Listen to server status changes
|
||||
_statusSubscription = _serverManager.statusStream.listen((_) {
|
||||
final currentOnline = Set<String>.from(onlineServerIds);
|
||||
final hasNewServer = currentOnline.any((id) => !_previousOnlineServerIds.contains(id));
|
||||
_previousOnlineServerIds = currentOnline;
|
||||
|
||||
notifyListeners();
|
||||
// Re-check live TV availability when servers come online
|
||||
checkLiveTvAvailability();
|
||||
|
||||
// Only re-check live TV when a new server came online
|
||||
if (hasNewServer) {
|
||||
checkLiveTvAvailability();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -72,18 +86,6 @@ class MultiServerProvider extends ChangeNotifier {
|
||||
/// Check if any servers are connected
|
||||
bool get hasConnectedServers => onlineServerCount > 0;
|
||||
|
||||
/// Update token for a specific server
|
||||
void updateTokenForServer(String serverId, String newToken) {
|
||||
final client = _serverManager.getClient(serverId);
|
||||
if (client != null) {
|
||||
client.updateToken(newToken);
|
||||
appLogger.d('MultiServerProvider: Token updated for server $serverId');
|
||||
notifyListeners();
|
||||
} else {
|
||||
appLogger.w('MultiServerProvider: Cannot update token - server $serverId not found');
|
||||
}
|
||||
}
|
||||
|
||||
/// Clear all server connections
|
||||
void clearAllConnections() {
|
||||
_serverManager.disconnectAll();
|
||||
@@ -123,7 +125,7 @@ class MultiServerProvider extends ChangeNotifier {
|
||||
try {
|
||||
final dvrs = await client.getDvrs();
|
||||
for (final dvr in dvrs) {
|
||||
newLiveTvServers.add(LiveTvServerInfo(serverId: serverId, dvrKey: dvr.key, lineup: dvr.lineup));
|
||||
newLiveTvServers.add(LiveTvServerInfo(serverId: serverId, dvrKey: dvr.key, lineup: dvr.lineup, dvrs: dvrs));
|
||||
}
|
||||
} catch (e) {
|
||||
appLogger.d('LiveTV check failed for server $serverId', error: e);
|
||||
|
||||
@@ -59,17 +59,6 @@ class OfflineWatchProvider extends ChangeNotifier {
|
||||
return false;
|
||||
}
|
||||
|
||||
/// Check watch status synchronously using cached metadata.
|
||||
///
|
||||
/// This is useful for UI that can't await, but may not reflect
|
||||
/// the most recent local actions.
|
||||
bool isWatchedSync(PlexMetadata metadata) {
|
||||
// Note: This doesn't check local actions synchronously
|
||||
// because that would require async database access.
|
||||
// For real-time accuracy, use isWatched() instead.
|
||||
return metadata.isWatched;
|
||||
}
|
||||
|
||||
/// Get the effective view offset (resume position) for a media item.
|
||||
///
|
||||
/// Priority:
|
||||
@@ -148,25 +137,6 @@ class OfflineWatchProvider extends ChangeNotifier {
|
||||
return episodes.firstOrNull;
|
||||
}
|
||||
|
||||
/// Find the next unwatched downloaded episode synchronously.
|
||||
///
|
||||
/// This uses cached metadata without checking local offline actions.
|
||||
/// For real-time accuracy, use getNextUnwatchedEpisode() instead.
|
||||
PlexMetadata? getNextUnwatchedEpisodeSync(String showRatingKey) {
|
||||
final episodes = _getSortedEpisodes(showRatingKey);
|
||||
if (episodes.isEmpty) return null;
|
||||
|
||||
// Find first unwatched episode (using metadata's isWatched)
|
||||
for (final episode in episodes) {
|
||||
if (!episode.isWatched) {
|
||||
return episode;
|
||||
}
|
||||
}
|
||||
|
||||
// All episodes watched - return first episode for replay
|
||||
return episodes.firstOrNull;
|
||||
}
|
||||
|
||||
/// Emit a watch state change event for immediate UI update.
|
||||
void _emitWatchStateChange({
|
||||
required String serverId,
|
||||
@@ -234,11 +204,6 @@ class OfflineWatchProvider extends ChangeNotifier {
|
||||
return [for (final episode in episodes) (episode, watchStatuses[episode.globalKey]!)];
|
||||
}
|
||||
|
||||
/// Trigger a manual sync of pending items.
|
||||
Future<void> syncNow() async {
|
||||
await _syncService.syncPendingItems();
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_syncService.removeListener(_onSyncServiceChanged);
|
||||
|
||||
@@ -66,13 +66,6 @@ class PlaybackStateProvider with ChangeNotifier {
|
||||
/// Total number of items in the play queue
|
||||
int get queueLength => _playQueueTotalCount;
|
||||
|
||||
/// Gets the current position in the queue (1-indexed)
|
||||
int get currentPosition {
|
||||
if (_currentPlayQueueItemID == null || _loadedItems.isEmpty) return 0;
|
||||
final index = _loadedItems.indexWhere((item) => item.playQueueItemID == _currentPlayQueueItemID);
|
||||
return index != -1 ? index + 1 : 0;
|
||||
}
|
||||
|
||||
/// Set the client reference for loading more items
|
||||
void setClient(PlexClient client) {
|
||||
_client = client;
|
||||
|
||||
@@ -14,6 +14,7 @@ class SettingsProvider extends ChangeNotifier {
|
||||
bool _showUnwatchedCount = true;
|
||||
bool _hideSpoilers = false;
|
||||
bool _showNavBarLabels = true;
|
||||
bool _liveTvDefaultFavorites = false;
|
||||
bool _isInitialized = false;
|
||||
Future<void>? _initFuture;
|
||||
|
||||
@@ -40,6 +41,7 @@ class SettingsProvider extends ChangeNotifier {
|
||||
_showUnwatchedCount = _settingsService!.getShowUnwatchedCount();
|
||||
_hideSpoilers = _settingsService!.getHideSpoilers();
|
||||
_showNavBarLabels = _settingsService!.getShowNavBarLabels();
|
||||
_liveTvDefaultFavorites = _settingsService!.getLiveTvDefaultFavorites();
|
||||
_isInitialized = true;
|
||||
notifyListeners();
|
||||
}
|
||||
@@ -67,6 +69,8 @@ class SettingsProvider extends ChangeNotifier {
|
||||
|
||||
bool get showNavBarLabels => _showNavBarLabels;
|
||||
|
||||
bool get liveTvDefaultFavorites => _liveTvDefaultFavorites;
|
||||
|
||||
/// Helper to update a setting: ensures init, deduplicates, persists, notifies.
|
||||
Future<void> _updateSetting<T>({
|
||||
required T current,
|
||||
@@ -142,6 +146,12 @@ class SettingsProvider extends ChangeNotifier {
|
||||
persist: _settingsService!.setShowNavBarLabels,
|
||||
);
|
||||
|
||||
Future<void> setLiveTvDefaultFavorites(bool value) => _updateSetting(
|
||||
current: _liveTvDefaultFavorites, value: value,
|
||||
setLocal: (v) => _liveTvDefaultFavorites = v,
|
||||
persist: _settingsService!.setLiveTvDefaultFavorites,
|
||||
);
|
||||
|
||||
String get libraryDensityDisplayName {
|
||||
switch (_libraryDensity) {
|
||||
case LibraryDensity.compact:
|
||||
|
||||
@@ -114,20 +114,4 @@ class ThemeProvider extends ChangeNotifier {
|
||||
}
|
||||
}
|
||||
|
||||
void toggleTheme() {
|
||||
switch (_themeMode) {
|
||||
case settings.ThemeMode.system:
|
||||
setThemeMode(settings.ThemeMode.light);
|
||||
break;
|
||||
case settings.ThemeMode.light:
|
||||
setThemeMode(settings.ThemeMode.dark);
|
||||
break;
|
||||
case settings.ThemeMode.dark:
|
||||
setThemeMode(settings.ThemeMode.oled);
|
||||
break;
|
||||
case settings.ThemeMode.oled:
|
||||
setThemeMode(settings.ThemeMode.system);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,6 +67,7 @@ class _PairingScreenState extends State<PairingScreen> {
|
||||
}
|
||||
} catch (e) {
|
||||
appLogger.e('Failed to join remote session', error: e);
|
||||
if (!mounted) return;
|
||||
setState(() {
|
||||
_isConnecting = false;
|
||||
_errorMessage = _parseErrorMessage(e.toString());
|
||||
@@ -129,6 +130,7 @@ class _PairingScreenState extends State<PairingScreen> {
|
||||
}
|
||||
} catch (e) {
|
||||
appLogger.e('Failed to join remote session', error: e);
|
||||
if (!mounted) return;
|
||||
_lastScannedCode = null; // Allow re-scanning
|
||||
setState(() {
|
||||
_isConnecting = false;
|
||||
@@ -206,7 +208,7 @@ class _PairingScreenState extends State<PairingScreen> {
|
||||
_handleQrCode(barcode!.rawValue!);
|
||||
}
|
||||
},
|
||||
errorBuilder: (context, error, child) {
|
||||
errorBuilder: (context, error) {
|
||||
return Center(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(24.0),
|
||||
|
||||
@@ -18,6 +18,7 @@ import '../utils/content_utils.dart';
|
||||
import '../models/plex_hub.dart';
|
||||
import '../providers/multi_server_provider.dart';
|
||||
import '../providers/hidden_libraries_provider.dart';
|
||||
import '../providers/libraries_provider.dart';
|
||||
import '../providers/playback_state_provider.dart';
|
||||
import 'profile/user_avatar_widget.dart';
|
||||
import '../widgets/hub_section.dart';
|
||||
@@ -56,7 +57,7 @@ class DiscoverScreen extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _DiscoverScreenState extends State<DiscoverScreen>
|
||||
with Refreshable, FullRefreshable, ItemUpdatable, WatchStateAware, TabVisibilityAware, WidgetsBindingObserver {
|
||||
with Refreshable, FullRefreshable, ItemUpdatable, WatchStateAware, TabVisibilityAware, FocusableTab, WidgetsBindingObserver {
|
||||
static const Duration _heroAutoScrollDuration = Duration(seconds: 8);
|
||||
static const Duration _indicatorUpdateInterval = Duration(milliseconds: 200);
|
||||
|
||||
@@ -82,7 +83,9 @@ class _DiscoverScreenState extends State<DiscoverScreen>
|
||||
Timer? _indicatorTimer;
|
||||
final ValueNotifier<double> _indicatorProgress = ValueNotifier(0.0);
|
||||
bool _isAutoScrollPaused = false;
|
||||
bool _isTabVisible = true;
|
||||
HiddenLibrariesProvider? _hiddenLibrariesProvider;
|
||||
Set<String> _lastSeenHiddenKeys = {};
|
||||
|
||||
// WatchStateAware: watch on-deck items and their parent shows/seasons
|
||||
@override
|
||||
@@ -257,6 +260,11 @@ class _DiscoverScreenState extends State<DiscoverScreen>
|
||||
}
|
||||
|
||||
void _onHiddenLibrariesChanged() {
|
||||
final currentKeys = _hiddenLibrariesProvider?.hiddenLibraryKeys ?? {};
|
||||
if (currentKeys.length == _lastSeenHiddenKeys.length && currentKeys.containsAll(_lastSeenHiddenKeys)) {
|
||||
return; // No actual change
|
||||
}
|
||||
_lastSeenHiddenKeys = Set.of(currentKeys);
|
||||
_loadContent();
|
||||
}
|
||||
|
||||
@@ -302,8 +310,8 @@ class _DiscoverScreenState extends State<DiscoverScreen>
|
||||
@override
|
||||
void didChangeAppLifecycleState(AppLifecycleState state) {
|
||||
if (state == AppLifecycleState.resumed) {
|
||||
// Restart auto-scroll when app becomes active again
|
||||
if (!_isAutoScrollPaused) _startAutoScroll();
|
||||
// Restart auto-scroll only if discover tab is visible
|
||||
if (_isTabVisible && !_isAutoScrollPaused) _startAutoScroll();
|
||||
// Refresh continue watching on mobile only
|
||||
// (on desktop, "resumed" fires on every window focus gain)
|
||||
if (Platform.isIOS || Platform.isAndroid) {
|
||||
@@ -383,18 +391,22 @@ class _DiscoverScreenState extends State<DiscoverScreen>
|
||||
|
||||
@override
|
||||
void onTabHidden() {
|
||||
_isTabVisible = false;
|
||||
_autoScrollTimer?.cancel();
|
||||
_stopIndicatorProgress();
|
||||
}
|
||||
|
||||
@override
|
||||
void onTabShown({bool scrollToTop = true}) {
|
||||
void onTabShown() {
|
||||
_isTabVisible = true;
|
||||
if (!_isAutoScrollPaused) {
|
||||
_startAutoScroll();
|
||||
}
|
||||
if (scrollToTop) {
|
||||
_focusTopBoundary();
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
void focusActiveTabIfReady() {
|
||||
_focusTopBoundary();
|
||||
}
|
||||
|
||||
// Helper method to calculate visible dot range (max 5 dots)
|
||||
@@ -450,9 +462,17 @@ class _DiscoverScreenState extends State<DiscoverScreen>
|
||||
|
||||
// Get hidden libraries for filtering
|
||||
final hiddenLibrariesProvider = Provider.of<HiddenLibrariesProvider>(context, listen: false);
|
||||
_lastSeenHiddenKeys = Set.of(hiddenLibrariesProvider.hiddenLibraryKeys);
|
||||
|
||||
// Get settings for hub mode preference (ensure initialized before accessing)
|
||||
final settingsProvider = Provider.of<SettingsProvider>(context, listen: false);
|
||||
|
||||
// Reuse already-loaded libraries to avoid a redundant API call inside hub fetching
|
||||
final librariesProvider = context.read<LibrariesProvider>();
|
||||
final librariesByServer = librariesProvider.libraries.isNotEmpty
|
||||
? multiServerProvider.aggregationService.groupLibrariesByServer(librariesProvider.libraries)
|
||||
: null;
|
||||
|
||||
await settingsProvider.ensureInitialized();
|
||||
|
||||
// Start OnDeck and hubs fetch in parallel
|
||||
@@ -463,6 +483,7 @@ class _DiscoverScreenState extends State<DiscoverScreen>
|
||||
final hubsFuture = multiServerProvider.aggregationService.getHubsFromAllServers(
|
||||
hiddenLibraryKeys: hiddenLibrariesProvider.hiddenLibraryKeys,
|
||||
useGlobalHubs: settingsProvider.useGlobalHubs,
|
||||
librariesByServer: librariesByServer,
|
||||
);
|
||||
|
||||
// Wait for OnDeck to complete and show it immediately
|
||||
@@ -522,6 +543,25 @@ class _DiscoverScreenState extends State<DiscoverScreen>
|
||||
!title.contains('on deck');
|
||||
}).toList();
|
||||
|
||||
// Sort hubs by the user's library order
|
||||
final libraryOrder = context.read<LibrariesProvider>().libraries;
|
||||
if (libraryOrder.isNotEmpty) {
|
||||
final orderMap = <String, int>{};
|
||||
for (var i = 0; i < libraryOrder.length; i++) {
|
||||
orderMap[libraryOrder[i].globalKey] = i;
|
||||
}
|
||||
filteredHubs.sort((a, b) {
|
||||
final aKey = _hubLibraryGlobalKey(a);
|
||||
final bKey = _hubLibraryGlobalKey(b);
|
||||
final aIndex = aKey != null ? orderMap[aKey] : null;
|
||||
final bIndex = bKey != null ? orderMap[bKey] : null;
|
||||
if (aIndex == null && bIndex == null) return 0;
|
||||
if (aIndex == null) return 1;
|
||||
if (bIndex == null) return -1;
|
||||
return aIndex.compareTo(bIndex);
|
||||
});
|
||||
}
|
||||
|
||||
appLogger.d('Received ${onDeck.length} on deck items and ${filteredHubs.length} global hubs from all servers');
|
||||
if (!mounted) return;
|
||||
setState(() {
|
||||
@@ -541,6 +581,15 @@ class _DiscoverScreenState extends State<DiscoverScreen>
|
||||
}
|
||||
}
|
||||
|
||||
/// Resolve the library globalKey for a hub (for sorting by library order).
|
||||
String? _hubLibraryGlobalKey(PlexHub hub) {
|
||||
final serverId = hub.serverId;
|
||||
if (serverId == null) return null;
|
||||
final sectionId = hub.librarySectionID ?? hub.items.firstOrNull?.librarySectionID;
|
||||
if (sectionId == null) return null;
|
||||
return buildGlobalKey(serverId, sectionId.toString());
|
||||
}
|
||||
|
||||
/// Refresh only the Continue Watching section in the background
|
||||
/// This is called when returning to the home screen to avoid blocking UI
|
||||
Future<void> _refreshContinueWatching() async {
|
||||
|
||||
@@ -25,7 +25,7 @@ class DownloadsScreen extends StatefulWidget {
|
||||
State<DownloadsScreen> createState() => DownloadsScreenState();
|
||||
}
|
||||
|
||||
class DownloadsScreenState extends State<DownloadsScreen> with SingleTickerProviderStateMixin, TabNavigationMixin {
|
||||
class DownloadsScreenState extends State<DownloadsScreen> with TickerProviderStateMixin, TabNavigationMixin {
|
||||
// Focus nodes for tab chips
|
||||
final _queueTabChipFocusNode = FocusNode(debugLabel: 'tab_chip_queue');
|
||||
final _tvShowsTabChipFocusNode = FocusNode(debugLabel: 'tab_chip_tv_shows');
|
||||
@@ -136,6 +136,7 @@ class DownloadsScreenState extends State<DownloadsScreen> with SingleTickerProvi
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
body: CustomScrollView(
|
||||
primary: false,
|
||||
slivers: [
|
||||
DesktopSliverAppBar(
|
||||
title: _buildAppBarTitle(),
|
||||
|
||||
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:plezy/widgets/app_icon.dart';
|
||||
import 'package:material_symbols_icons/symbols.dart';
|
||||
import '../../models/plex_filter.dart';
|
||||
import '../../utils/scroll_utils.dart';
|
||||
import '../../widgets/app_bar_back_button.dart';
|
||||
import '../../widgets/bottom_sheet_header.dart';
|
||||
import '../../widgets/focusable_list_tile.dart';
|
||||
@@ -38,6 +39,8 @@ class _FiltersBottomSheetState extends State<FiltersBottomSheet> {
|
||||
static const int _maxCachedDisplayNames = 1000;
|
||||
late List<PlexFilter> _sortedFilters;
|
||||
late final FocusNode _initialFocusNode;
|
||||
final _valuesFirstItemKey = GlobalKey();
|
||||
final _valuesScrollController = ScrollController();
|
||||
|
||||
String _cacheKey(String filter, String value) => '${widget.serverId}:${widget.libraryKey}:$filter:$value';
|
||||
|
||||
@@ -51,6 +54,7 @@ class _FiltersBottomSheetState extends State<FiltersBottomSheet> {
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_valuesScrollController.dispose();
|
||||
_initialFocusNode.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
@@ -83,6 +87,15 @@ class _FiltersBottomSheetState extends State<FiltersBottomSheet> {
|
||||
_filterValues = values;
|
||||
_isLoadingValues = false;
|
||||
});
|
||||
// Scroll to selected value if any
|
||||
final selectedValue = _tempSelectedFilters[filter.filter];
|
||||
if (selectedValue != null) {
|
||||
// +1 because index 0 is the "All" row
|
||||
final idx = values.indexWhere((v) => _extractFilterValue(v.key, filter.filter) == selectedValue) + 1;
|
||||
if (idx > 0) {
|
||||
scrollToCurrentItem(_valuesScrollController, _valuesFirstItemKey, idx);
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
if (!mounted) return;
|
||||
setState(() {
|
||||
@@ -134,12 +147,14 @@ class _FiltersBottomSheetState extends State<FiltersBottomSheet> {
|
||||
else
|
||||
Expanded(
|
||||
child: ListView.builder(
|
||||
controller: _valuesScrollController,
|
||||
padding: const EdgeInsets.symmetric(vertical: 8),
|
||||
itemCount: _filterValues.length + 1,
|
||||
itemBuilder: (context, index) {
|
||||
if (index == 0) {
|
||||
final isSelected = !_tempSelectedFilters.containsKey(_currentFilter!.filter);
|
||||
return FocusableListTile(
|
||||
key: _valuesFirstItemKey,
|
||||
focusNode: _initialFocusNode,
|
||||
title: Text(t.libraries.all),
|
||||
selected: isSelected,
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:plezy/widgets/app_icon.dart';
|
||||
import 'package:material_symbols_icons/symbols.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:dio/dio.dart';
|
||||
import '../../focus/focus_theme.dart';
|
||||
import '../../focus/focusable_action_bar.dart';
|
||||
import '../../focus/focusable_button.dart';
|
||||
@@ -14,7 +14,6 @@ import '../../mixins/tab_navigation_mixin.dart';
|
||||
import '../../../services/plex_client.dart';
|
||||
import '../../models/plex_library.dart';
|
||||
import '../../models/plex_metadata.dart';
|
||||
import '../../models/plex_sort.dart';
|
||||
import '../../providers/hidden_libraries_provider.dart';
|
||||
import '../../providers/libraries_provider.dart';
|
||||
import '../../providers/multi_server_provider.dart';
|
||||
@@ -24,19 +23,24 @@ import '../../utils/provider_extensions.dart';
|
||||
import '../../utils/snackbar_helper.dart';
|
||||
import '../../utils/content_utils.dart';
|
||||
import '../../widgets/desktop_app_bar.dart';
|
||||
import '../../widgets/focusable_tab_chip.dart';
|
||||
import '../../widgets/overlay_sheet.dart';
|
||||
import '../../services/storage_service.dart';
|
||||
import '../../mixins/refreshable.dart';
|
||||
import '../../mixins/item_updatable.dart';
|
||||
import '../../i18n/strings.g.dart';
|
||||
import '../../utils/error_message_utils.dart';
|
||||
import 'state_messages.dart';
|
||||
import 'tabs/library_browse_tab.dart';
|
||||
import 'tabs/library_recommended_tab.dart';
|
||||
import 'tabs/library_collections_tab.dart';
|
||||
import 'tabs/library_playlists_tab.dart';
|
||||
|
||||
enum LibraryTabType { recommended, browse, collections, playlists }
|
||||
|
||||
List<LibraryTabType> _getVisibleTabs(PlexLibrary library) {
|
||||
if (library.isShared) return [LibraryTabType.browse, LibraryTabType.playlists];
|
||||
return LibraryTabType.values;
|
||||
}
|
||||
|
||||
/// A menu action item for context menus
|
||||
class ContextMenuItem {
|
||||
final String value;
|
||||
@@ -74,7 +78,7 @@ class _LibrariesScreenState extends State<LibrariesScreen>
|
||||
FocusableTab,
|
||||
LibraryLoadable,
|
||||
ItemUpdatable,
|
||||
SingleTickerProviderStateMixin,
|
||||
TickerProviderStateMixin,
|
||||
TabNavigationMixin {
|
||||
@override
|
||||
PlexClient get client {
|
||||
@@ -96,15 +100,6 @@ class _LibrariesScreenState extends State<LibrariesScreen>
|
||||
String? _selectedLibraryGlobalKey;
|
||||
bool _isInitialLoad = true;
|
||||
|
||||
Map<String, String> _selectedFilters = {};
|
||||
PlexSort? _selectedSort;
|
||||
bool _isSortDescending = false;
|
||||
List<PlexMetadata> _items = [];
|
||||
int _currentPage = 0;
|
||||
bool _hasMoreItems = true;
|
||||
CancelToken? _cancelToken;
|
||||
int _requestId = 0;
|
||||
static const int _pageSize = 1000;
|
||||
|
||||
/// Flag to prevent onTabChanged from focusing when we're programmatically changing tabs
|
||||
bool _isRestoringTab = false;
|
||||
@@ -115,19 +110,15 @@ class _LibrariesScreenState extends State<LibrariesScreen>
|
||||
/// Key for the library dropdown popup menu button
|
||||
final _libraryDropdownKey = GlobalKey<PopupMenuButtonState<String>>();
|
||||
|
||||
// Focus nodes for tab chips
|
||||
final _recommendedTabChipFocusNode = FocusNode(debugLabel: 'tab_chip_recommended');
|
||||
final _browseTabChipFocusNode = FocusNode(debugLabel: 'tab_chip_browse');
|
||||
final _collectionsTabChipFocusNode = FocusNode(debugLabel: 'tab_chip_collections');
|
||||
final _playlistsTabChipFocusNode = FocusNode(debugLabel: 'tab_chip_playlists');
|
||||
// Dynamic visible tabs and their focus nodes
|
||||
List<LibraryTabType> _visibleTabs = LibraryTabType.values;
|
||||
List<FocusNode> _tabFocusNodes = List.generate(
|
||||
LibraryTabType.values.length,
|
||||
(i) => FocusNode(debugLabel: 'tab_chip_${LibraryTabType.values[i].name}'),
|
||||
);
|
||||
|
||||
@override
|
||||
List<FocusNode> get tabChipFocusNodes => [
|
||||
_recommendedTabChipFocusNode,
|
||||
_browseTabChipFocusNode,
|
||||
_collectionsTabChipFocusNode,
|
||||
_playlistsTabChipFocusNode,
|
||||
];
|
||||
List<FocusNode> get tabChipFocusNodes => _tabFocusNodes;
|
||||
|
||||
// App bar action bar
|
||||
final _actionBarKey = GlobalKey<FocusableActionBarState>();
|
||||
@@ -182,22 +173,18 @@ class _LibrariesScreenState extends State<LibrariesScreen>
|
||||
}
|
||||
|
||||
if (libraryGlobalKeyToLoad != null && mounted) {
|
||||
final savedFilters = storage.getLibraryFilters(sectionId: libraryGlobalKeyToLoad);
|
||||
if (savedFilters.isNotEmpty) {
|
||||
_selectedFilters = Map.from(savedFilters);
|
||||
}
|
||||
_loadLibraryContent(libraryGlobalKeyToLoad);
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
void onTabChanged() {
|
||||
// Save tab index when changed (but not when restoring from storage)
|
||||
// Save tab name when changed (but not when restoring from storage)
|
||||
if (_selectedLibraryGlobalKey != null && !tabController.indexIsChanging) {
|
||||
// Only save if this was a user-initiated tab change, not a restore
|
||||
if (!_isRestoringTab) {
|
||||
StorageService.getInstance().then((storage) {
|
||||
storage.saveLibraryTab(_selectedLibraryGlobalKey!, tabController.index);
|
||||
storage.saveLibraryTab(_selectedLibraryGlobalKey!, _visibleTabs[tabController.index].name);
|
||||
});
|
||||
|
||||
// Focus first item in the current tab (only for user-initiated changes)
|
||||
@@ -280,7 +267,7 @@ class _LibrariesScreenState extends State<LibrariesScreen>
|
||||
final tabState = _getTabState(tabController.index);
|
||||
if (tabState != null) {
|
||||
// Browse tab has a chips bar - focus that first so DOWN navigates to grid
|
||||
if (tabController.index == 1) {
|
||||
if (_visibleTabs[tabController.index] == LibraryTabType.browse) {
|
||||
(tabState as dynamic).focusChipsBar();
|
||||
} else {
|
||||
(tabState as dynamic).focusFirstItem();
|
||||
@@ -291,18 +278,13 @@ class _LibrariesScreenState extends State<LibrariesScreen>
|
||||
|
||||
/// Get the state for a tab by index
|
||||
State? _getTabState(int index) {
|
||||
switch (index) {
|
||||
case 0:
|
||||
return _recommendedTabKey.currentState;
|
||||
case 1:
|
||||
return _browseTabKey.currentState;
|
||||
case 2:
|
||||
return _collectionsTabKey.currentState;
|
||||
case 3:
|
||||
return _playlistsTabKey.currentState;
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
if (index < 0 || index >= _visibleTabs.length) return null;
|
||||
return switch (_visibleTabs[index]) {
|
||||
LibraryTabType.recommended => _recommendedTabKey.currentState,
|
||||
LibraryTabType.browse => _browseTabKey.currentState,
|
||||
LibraryTabType.collections => _collectionsTabKey.currentState,
|
||||
LibraryTabType.playlists => _playlistsTabKey.currentState,
|
||||
};
|
||||
}
|
||||
|
||||
/// Handle when a tab's data has finished loading
|
||||
@@ -337,12 +319,10 @@ class _LibrariesScreenState extends State<LibrariesScreen>
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_cancelToken?.cancel();
|
||||
_outerScrollController.dispose();
|
||||
_recommendedTabChipFocusNode.dispose();
|
||||
_browseTabChipFocusNode.dispose();
|
||||
_collectionsTabChipFocusNode.dispose();
|
||||
_playlistsTabChipFocusNode.dispose();
|
||||
for (final node in _tabFocusNodes) {
|
||||
node.dispose();
|
||||
}
|
||||
disposeTabNavigation();
|
||||
super.dispose();
|
||||
}
|
||||
@@ -352,13 +332,78 @@ class _LibrariesScreenState extends State<LibrariesScreen>
|
||||
setState(fn);
|
||||
}
|
||||
|
||||
/// Helper method to get user-friendly error message from exception
|
||||
String _getErrorMessage(dynamic error, String context) {
|
||||
if (error is DioException) {
|
||||
return mapDioErrorToMessage(error, context: context);
|
||||
}
|
||||
/// Rebuild tab infrastructure when the visible tab set changes.
|
||||
void _updateVisibleTabs(List<LibraryTabType> newTabs) {
|
||||
if (listEquals(_visibleTabs, newTabs)) return;
|
||||
|
||||
return mapUnexpectedErrorToMessage(error, context: context);
|
||||
// Save current tab type before changing
|
||||
final currentTabType = _visibleTabs.length > tabController.index
|
||||
? _visibleTabs[tabController.index]
|
||||
: null;
|
||||
|
||||
// Dispose old focus nodes and controller
|
||||
for (final node in _tabFocusNodes) {
|
||||
node.dispose();
|
||||
}
|
||||
disposeTabNavigation();
|
||||
|
||||
// Build new
|
||||
_visibleTabs = newTabs;
|
||||
_tabFocusNodes = List.generate(
|
||||
newTabs.length,
|
||||
(i) => FocusNode(debugLabel: 'tab_chip_${newTabs[i].name}'),
|
||||
);
|
||||
initTabNavigation();
|
||||
|
||||
// Restore tab position: find current tab type in new set, default to first
|
||||
final newIndex = currentTabType != null ? newTabs.indexOf(currentTabType) : -1;
|
||||
if (newIndex > 0) {
|
||||
tabController.index = newIndex;
|
||||
}
|
||||
}
|
||||
|
||||
String _getTabLabel(LibraryTabType type) => switch (type) {
|
||||
LibraryTabType.recommended => t.libraries.tabs.recommended,
|
||||
LibraryTabType.browse => t.libraries.tabs.browse,
|
||||
LibraryTabType.collections => t.libraries.tabs.collections,
|
||||
LibraryTabType.playlists => t.libraries.tabs.playlists,
|
||||
};
|
||||
|
||||
Widget _buildTabContent(LibraryTabType type, {required PlexLibrary library, required bool isActive, required int tabIndex}) {
|
||||
return switch (type) {
|
||||
LibraryTabType.recommended => LibraryRecommendedTab(
|
||||
key: _recommendedTabKey,
|
||||
library: library,
|
||||
isActive: isActive,
|
||||
suppressAutoFocus: suppressAutoFocus,
|
||||
onDataLoaded: () => _handleTabDataLoaded(tabIndex),
|
||||
onBack: focusTabBar,
|
||||
),
|
||||
LibraryTabType.browse => LibraryBrowseTab(
|
||||
key: _browseTabKey,
|
||||
library: library,
|
||||
isActive: isActive,
|
||||
suppressAutoFocus: suppressAutoFocus,
|
||||
onDataLoaded: () => _handleTabDataLoaded(tabIndex),
|
||||
onBack: focusTabBar,
|
||||
),
|
||||
LibraryTabType.collections => LibraryCollectionsTab(
|
||||
key: _collectionsTabKey,
|
||||
library: library,
|
||||
isActive: isActive,
|
||||
suppressAutoFocus: suppressAutoFocus,
|
||||
onDataLoaded: () => _handleTabDataLoaded(tabIndex),
|
||||
onBack: focusTabBar,
|
||||
),
|
||||
LibraryTabType.playlists => LibraryPlaylistsTab(
|
||||
key: _playlistsTabKey,
|
||||
library: library,
|
||||
isActive: isActive,
|
||||
suppressAutoFocus: suppressAutoFocus,
|
||||
onDataLoaded: () => _handleTabDataLoaded(tabIndex),
|
||||
onBack: focusTabBar,
|
||||
),
|
||||
};
|
||||
}
|
||||
|
||||
/// Check if libraries come from multiple servers
|
||||
@@ -392,22 +437,16 @@ class _LibrariesScreenState extends State<LibrariesScreen>
|
||||
final libraryIndex = visibleLibraries.indexWhere((lib) => lib.globalKey == libraryGlobalKey);
|
||||
if (libraryIndex == -1) return; // Library not found or hidden
|
||||
|
||||
final library = visibleLibraries[libraryIndex];
|
||||
|
||||
final isChangingLibrary = !_isInitialLoad && _selectedLibraryGlobalKey != libraryGlobalKey;
|
||||
|
||||
// Get the correct client for this library's server
|
||||
final client = context.getClientForLibrary(library);
|
||||
// Update visible tabs and state in the same synchronous block so no
|
||||
// intermediate rebuild can see a mismatched controller/key pair.
|
||||
final selectedLibrary = visibleLibraries[libraryIndex];
|
||||
_updateVisibleTabs(_getVisibleTabs(selectedLibrary));
|
||||
|
||||
_updateState(() {
|
||||
_selectedLibraryGlobalKey = libraryGlobalKey;
|
||||
_errorMessage = null;
|
||||
// Clear loaded tabs tracking for new library
|
||||
_loadedTabs.clear();
|
||||
// Only clear filters when explicitly changing library (not on initial load)
|
||||
if (isChangingLibrary) {
|
||||
_selectedFilters.clear();
|
||||
}
|
||||
});
|
||||
|
||||
// Mark that initial load is complete
|
||||
@@ -415,17 +454,20 @@ class _LibrariesScreenState extends State<LibrariesScreen>
|
||||
_isInitialLoad = false;
|
||||
}
|
||||
|
||||
// Save selected library key and restore saved tab
|
||||
// Save selected library key and restore saved tab (async — safe after state is consistent)
|
||||
final storage = await StorageService.getInstance();
|
||||
if (!mounted) return;
|
||||
await storage.saveSelectedLibraryKey(libraryGlobalKey);
|
||||
|
||||
// Restore saved tab index for this library
|
||||
final savedTabIndex = storage.getLibraryTab(libraryGlobalKey);
|
||||
if (savedTabIndex != null && savedTabIndex >= 0 && savedTabIndex < 4) {
|
||||
// Restore saved tab by name
|
||||
final savedTabName = storage.getLibraryTab(libraryGlobalKey);
|
||||
final savedType = LibraryTabType.values.where((t) => t.name == savedTabName).firstOrNull;
|
||||
final targetTabIndex = savedType != null ? _visibleTabs.indexOf(savedType) : -1;
|
||||
if (targetTabIndex > 0) {
|
||||
// Set flag to prevent _onTabChanged from triggering focus
|
||||
_isRestoringTab = true;
|
||||
// Use animateTo with zero duration for instant switch without animation race conditions
|
||||
tabController.animateTo(savedTabIndex, duration: Duration.zero);
|
||||
tabController.animateTo(targetTabIndex, duration: Duration.zero);
|
||||
// Clear flag synchronously - animateTo with zero duration completes immediately
|
||||
_isRestoringTab = false;
|
||||
}
|
||||
@@ -439,137 +481,11 @@ class _LibrariesScreenState extends State<LibrariesScreen>
|
||||
}
|
||||
});
|
||||
|
||||
// Cancel any existing requests
|
||||
_cancelToken?.cancel();
|
||||
_cancelToken = CancelToken();
|
||||
final currentRequestId = ++_requestId;
|
||||
|
||||
// Reset pagination state
|
||||
_updateState(() {
|
||||
_currentPage = 0;
|
||||
_hasMoreItems = true;
|
||||
_items = [];
|
||||
});
|
||||
|
||||
try {
|
||||
// Load sort options for the new library
|
||||
await _loadSortOptions(library);
|
||||
|
||||
final filtersWithSort = _buildFiltersWithSort();
|
||||
|
||||
// Load pages sequentially
|
||||
await _loadAllPagesSequentially(library, filtersWithSort, currentRequestId, client);
|
||||
} catch (e) {
|
||||
// Ignore cancellation errors
|
||||
if (e is DioException && e.type == DioExceptionType.cancel) {
|
||||
return;
|
||||
}
|
||||
|
||||
_updateState(() {
|
||||
_errorMessage = _getErrorMessage(e, 'library content');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/// Load all pages sequentially until all items are fetched
|
||||
Future<void> _loadAllPagesSequentially(
|
||||
PlexLibrary library,
|
||||
Map<String, String> filtersWithSort,
|
||||
int requestId,
|
||||
PlexClient client,
|
||||
) async {
|
||||
while (_hasMoreItems && requestId == _requestId) {
|
||||
try {
|
||||
final result = await client.getLibraryContent(
|
||||
library.key,
|
||||
start: _currentPage * _pageSize,
|
||||
size: _pageSize,
|
||||
filters: filtersWithSort,
|
||||
cancelToken: _cancelToken,
|
||||
);
|
||||
|
||||
// Tag items with server info for multi-server support
|
||||
final taggedItems = result.items
|
||||
.map((item) => item.copyWith(serverId: library.serverId, serverName: library.serverName))
|
||||
.toList();
|
||||
|
||||
// Check if request is still valid
|
||||
if (requestId != _requestId) {
|
||||
return; // Request was superseded
|
||||
}
|
||||
|
||||
_updateState(() {
|
||||
_items.addAll(taggedItems);
|
||||
_currentPage++;
|
||||
_hasMoreItems = taggedItems.length >= _pageSize;
|
||||
});
|
||||
} catch (e) {
|
||||
// Check if it's a cancellation
|
||||
if (e is DioException && e.type == DioExceptionType.cancel) {
|
||||
return;
|
||||
}
|
||||
|
||||
// For other errors, update state and rethrow
|
||||
_updateState(() {
|
||||
_hasMoreItems = false;
|
||||
});
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> _loadSortOptions(PlexLibrary library) async {
|
||||
try {
|
||||
final client = context.getClientForLibrary(library);
|
||||
|
||||
final sortOptions = await client.getLibrarySorts(library.key);
|
||||
|
||||
// Load saved sort preference for this library
|
||||
final storage = await StorageService.getInstance();
|
||||
final savedSortData = storage.getLibrarySort(library.globalKey);
|
||||
|
||||
// Find the saved sort in the options
|
||||
PlexSort? savedSort;
|
||||
bool descending = false;
|
||||
|
||||
if (savedSortData != null) {
|
||||
final sortKey = savedSortData['key'] as String?;
|
||||
if (sortKey != null) {
|
||||
savedSort = sortOptions.firstWhere((s) => s.key == sortKey, orElse: () => sortOptions.first);
|
||||
descending = (savedSortData['descending'] as bool?) ?? false;
|
||||
} else {
|
||||
savedSort = sortOptions.first;
|
||||
}
|
||||
} else {
|
||||
savedSort = sortOptions.first;
|
||||
}
|
||||
|
||||
_updateState(() {
|
||||
_selectedSort = savedSort;
|
||||
_isSortDescending = descending;
|
||||
});
|
||||
} catch (e) {
|
||||
_updateState(() {
|
||||
_selectedSort = null;
|
||||
_isSortDescending = false;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Map<String, String> _buildFiltersWithSort() {
|
||||
final filtersWithSort = Map<String, String>.from(_selectedFilters);
|
||||
if (_selectedSort != null) {
|
||||
filtersWithSort['sort'] = _selectedSort!.getSortKey(descending: _isSortDescending);
|
||||
}
|
||||
return filtersWithSort;
|
||||
}
|
||||
|
||||
@override
|
||||
void updateItemInLists(String ratingKey, PlexMetadata updatedMetadata) {
|
||||
final index = _items.indexWhere((item) => item.ratingKey == ratingKey);
|
||||
if (index != -1) {
|
||||
_items[index] = updatedMetadata;
|
||||
}
|
||||
// Delegate to the active tab — parent doesn't maintain its own item list
|
||||
}
|
||||
|
||||
// Public method to refresh content (for normal navigation)
|
||||
@@ -581,14 +497,14 @@ class _LibrariesScreenState extends State<LibrariesScreen>
|
||||
|
||||
// Refresh the currently active tab
|
||||
void _refreshCurrentTab() {
|
||||
final key = switch (tabController.index) {
|
||||
0 => _recommendedTabKey,
|
||||
1 => _browseTabKey,
|
||||
2 => _collectionsTabKey,
|
||||
3 => _playlistsTabKey,
|
||||
_ => null,
|
||||
if (tabController.index < 0 || tabController.index >= _visibleTabs.length) return;
|
||||
final key = switch (_visibleTabs[tabController.index]) {
|
||||
LibraryTabType.recommended => _recommendedTabKey,
|
||||
LibraryTabType.browse => _browseTabKey,
|
||||
LibraryTabType.collections => _collectionsTabKey,
|
||||
LibraryTabType.playlists => _playlistsTabKey,
|
||||
};
|
||||
(key?.currentState as dynamic)?.refresh();
|
||||
(key.currentState as dynamic)?.refresh();
|
||||
}
|
||||
|
||||
// Public method to fully reload all content (for profile switches)
|
||||
@@ -597,8 +513,6 @@ class _LibrariesScreenState extends State<LibrariesScreen>
|
||||
appLogger.d('LibrariesScreen.fullRefresh() called - reloading all content');
|
||||
setState(() {
|
||||
_selectedLibraryGlobalKey = null;
|
||||
_selectedFilters.clear();
|
||||
_items.clear();
|
||||
_errorMessage = null;
|
||||
});
|
||||
|
||||
@@ -853,51 +767,6 @@ class _LibrariesScreenState extends State<LibrariesScreen>
|
||||
}).toList();
|
||||
}
|
||||
|
||||
Widget _buildTabChip(String label, int index) {
|
||||
final isSelected = tabController.index == index;
|
||||
|
||||
return FocusableTabChip(
|
||||
label: label,
|
||||
isSelected: isSelected,
|
||||
focusNode: getTabChipFocusNode(index),
|
||||
onSelect: () {
|
||||
if (isSelected) {
|
||||
// Already selected - navigate to tab content
|
||||
_focusCurrentTab();
|
||||
} else {
|
||||
// Switch to this tab
|
||||
setState(() {
|
||||
tabController.index = index;
|
||||
});
|
||||
}
|
||||
},
|
||||
onNavigateLeft: index > 0
|
||||
? () {
|
||||
final newIndex = index - 1;
|
||||
setState(() {
|
||||
suppressAutoFocus = true;
|
||||
tabController.index = newIndex;
|
||||
});
|
||||
getTabChipFocusNode(newIndex).requestFocus();
|
||||
}
|
||||
: onTabBarBack,
|
||||
onNavigateRight: index < tabCount - 1
|
||||
? () {
|
||||
final newIndex = index + 1;
|
||||
setState(() {
|
||||
suppressAutoFocus = true;
|
||||
tabController.index = newIndex;
|
||||
});
|
||||
getTabChipFocusNode(newIndex).requestFocus();
|
||||
}
|
||||
: () {
|
||||
_actionBarKey.currentState?.getFocusNode(0).requestFocus();
|
||||
},
|
||||
onNavigateDown: _focusCurrentTabFromTabBar,
|
||||
onBack: onTabBarBack,
|
||||
);
|
||||
}
|
||||
|
||||
/// Build the app bar title - either dropdown on mobile or simple title on desktop
|
||||
Widget _buildAppBarTitle(List<PlexLibrary> visibleLibraries) {
|
||||
// No libraries or no selection
|
||||
@@ -910,13 +779,16 @@ class _LibrariesScreenState extends State<LibrariesScreen>
|
||||
return Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
_buildTabChip(t.libraries.tabs.recommended, 0),
|
||||
const SizedBox(width: 8),
|
||||
_buildTabChip(t.libraries.tabs.browse, 1),
|
||||
const SizedBox(width: 8),
|
||||
_buildTabChip(t.libraries.tabs.collections, 2),
|
||||
const SizedBox(width: 8),
|
||||
_buildTabChip(t.libraries.tabs.playlists, 3),
|
||||
for (int i = 0; i < _visibleTabs.length; i++) ...[
|
||||
if (i > 0) const SizedBox(width: 8),
|
||||
buildTabChip(
|
||||
_getTabLabel(_visibleTabs[i]),
|
||||
i,
|
||||
onSelectWhenActive: _focusCurrentTab,
|
||||
onNavigateDown: _focusCurrentTabFromTabBar,
|
||||
onNavigateRightFromLast: () => _actionBarKey.currentState?.getFocusNode(0).requestFocus(),
|
||||
),
|
||||
],
|
||||
],
|
||||
);
|
||||
}
|
||||
@@ -984,6 +856,11 @@ class _LibrariesScreenState extends State<LibrariesScreen>
|
||||
// Compute visible libraries (filtered from all libraries)
|
||||
final visibleLibraries = allLibraries.where((lib) => !hiddenKeys.contains(lib.globalKey)).toList();
|
||||
|
||||
// Resolve selected library defensively — may be null if server temporarily dropped during refresh
|
||||
final selectedLibrary = _selectedLibraryGlobalKey != null
|
||||
? allLibraries.where((lib) => lib.globalKey == _selectedLibraryGlobalKey).firstOrNull
|
||||
: null;
|
||||
|
||||
return Scaffold(
|
||||
body: ScrollConfiguration(
|
||||
behavior: ScrollConfiguration.of(context).copyWith(scrollbars: false),
|
||||
@@ -1000,7 +877,7 @@ class _LibrariesScreenState extends State<LibrariesScreen>
|
||||
actions: [
|
||||
FocusableActionBar(
|
||||
key: _actionBarKey,
|
||||
onNavigateLeft: () => getTabChipFocusNode(3).requestFocus(),
|
||||
onNavigateLeft: () => getTabChipFocusNode(_visibleTabs.length - 1).requestFocus(),
|
||||
onNavigateDown: _focusCurrentTab,
|
||||
actions: [
|
||||
if (allLibraries.isNotEmpty)
|
||||
@@ -1037,7 +914,7 @@ class _LibrariesScreenState extends State<LibrariesScreen>
|
||||
)
|
||||
else ...[
|
||||
// Tab selector chips (only on mobile - desktop has them in app bar)
|
||||
if (_selectedLibraryGlobalKey != null && !PlatformDetector.shouldUseSideNavigation(context))
|
||||
if (selectedLibrary != null && !PlatformDetector.shouldUseSideNavigation(context))
|
||||
SliverToBoxAdapter(
|
||||
child: Container(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
|
||||
@@ -1045,13 +922,16 @@ class _LibrariesScreenState extends State<LibrariesScreen>
|
||||
scrollDirection: Axis.horizontal,
|
||||
child: Row(
|
||||
children: [
|
||||
_buildTabChip(t.libraries.tabs.recommended, 0),
|
||||
const SizedBox(width: 8),
|
||||
_buildTabChip(t.libraries.tabs.browse, 1),
|
||||
const SizedBox(width: 8),
|
||||
_buildTabChip(t.libraries.tabs.collections, 2),
|
||||
const SizedBox(width: 8),
|
||||
_buildTabChip(t.libraries.tabs.playlists, 3),
|
||||
for (int i = 0; i < _visibleTabs.length; i++) ...[
|
||||
if (i > 0) const SizedBox(width: 8),
|
||||
buildTabChip(
|
||||
_getTabLabel(_visibleTabs[i]),
|
||||
i,
|
||||
onSelectWhenActive: _focusCurrentTab,
|
||||
onNavigateDown: _focusCurrentTabFromTabBar,
|
||||
onNavigateRightFromLast: () => _actionBarKey.currentState?.getFocusNode(0).requestFocus(),
|
||||
),
|
||||
],
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -1059,7 +939,7 @@ class _LibrariesScreenState extends State<LibrariesScreen>
|
||||
),
|
||||
|
||||
// Tab content
|
||||
if (_selectedLibraryGlobalKey != null)
|
||||
if (selectedLibrary != null)
|
||||
SliverFillRemaining(
|
||||
child: TabBarView(
|
||||
key: ValueKey(_selectedLibraryGlobalKey),
|
||||
@@ -1072,46 +952,13 @@ class _LibrariesScreenState extends State<LibrariesScreen>
|
||||
// The TabBarView's own clipBehavior only clips at the viewport level,
|
||||
// not per-page, so we need per-child clipping.
|
||||
children: [
|
||||
ClipRect(
|
||||
child: LibraryRecommendedTab(
|
||||
key: _recommendedTabKey,
|
||||
library: allLibraries.firstWhere((lib) => lib.globalKey == _selectedLibraryGlobalKey),
|
||||
isActive: tabController.index == 0,
|
||||
suppressAutoFocus: suppressAutoFocus,
|
||||
onDataLoaded: () => _handleTabDataLoaded(0),
|
||||
onBack: focusTabBar,
|
||||
),
|
||||
),
|
||||
ClipRect(
|
||||
child: LibraryBrowseTab(
|
||||
key: _browseTabKey,
|
||||
library: allLibraries.firstWhere((lib) => lib.globalKey == _selectedLibraryGlobalKey),
|
||||
isActive: tabController.index == 1,
|
||||
suppressAutoFocus: suppressAutoFocus,
|
||||
onDataLoaded: () => _handleTabDataLoaded(1),
|
||||
onBack: focusTabBar,
|
||||
),
|
||||
),
|
||||
ClipRect(
|
||||
child: LibraryCollectionsTab(
|
||||
key: _collectionsTabKey,
|
||||
library: allLibraries.firstWhere((lib) => lib.globalKey == _selectedLibraryGlobalKey),
|
||||
isActive: tabController.index == 2,
|
||||
suppressAutoFocus: suppressAutoFocus,
|
||||
onDataLoaded: () => _handleTabDataLoaded(2),
|
||||
onBack: focusTabBar,
|
||||
),
|
||||
),
|
||||
ClipRect(
|
||||
child: LibraryPlaylistsTab(
|
||||
key: _playlistsTabKey,
|
||||
library: allLibraries.firstWhere((lib) => lib.globalKey == _selectedLibraryGlobalKey),
|
||||
isActive: tabController.index == 3,
|
||||
suppressAutoFocus: suppressAutoFocus,
|
||||
onDataLoaded: () => _handleTabDataLoaded(3),
|
||||
onBack: focusTabBar,
|
||||
),
|
||||
),
|
||||
for (int i = 0; i < _visibleTabs.length; i++)
|
||||
ClipRect(child: _buildTabContent(
|
||||
_visibleTabs[i],
|
||||
library: selectedLibrary,
|
||||
isActive: tabController.index == i,
|
||||
tabIndex: i,
|
||||
)),
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -1362,7 +1209,8 @@ class _LibraryManagementSheetState extends State<_LibraryManagementSheet> {
|
||||
|
||||
if (selected != null && mounted) {
|
||||
// Find the selected item to check if confirmation is needed
|
||||
final selectedItem = menuItems.firstWhere((item) => item.value == selected);
|
||||
final selectedItem = menuItems.where((item) => item.value == selected).firstOrNull;
|
||||
if (selectedItem == null) return;
|
||||
|
||||
if (selectedItem.requiresConfirmation) {
|
||||
if (!mounted || !context.mounted) return;
|
||||
|
||||
@@ -4,6 +4,7 @@ import 'package:material_symbols_icons/symbols.dart';
|
||||
import '../../focus/dpad_navigator.dart';
|
||||
import '../../focus/input_mode_tracker.dart';
|
||||
import '../../models/plex_sort.dart';
|
||||
import '../../utils/scroll_utils.dart';
|
||||
import '../../widgets/bottom_sheet_header.dart';
|
||||
import '../../widgets/focusable_list_tile.dart';
|
||||
import '../../widgets/overlay_sheet.dart';
|
||||
@@ -33,6 +34,8 @@ class _SortBottomSheetState extends State<SortBottomSheet> {
|
||||
late PlexSort? _currentSort;
|
||||
late bool _currentDescending;
|
||||
late final FocusNode _initialFocusNode;
|
||||
final _firstItemKey = GlobalKey();
|
||||
final _scrollController = ScrollController();
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
@@ -40,6 +43,15 @@ class _SortBottomSheetState extends State<SortBottomSheet> {
|
||||
_currentSort = widget.selectedSort;
|
||||
_currentDescending = widget.isSortDescending;
|
||||
_initialFocusNode = FocusNode(debugLabel: 'SortBottomSheetInitialFocus');
|
||||
|
||||
// Scroll to selected item, then handle focus
|
||||
final selectedIndex = widget.selectedSort != null
|
||||
? widget.sortOptions.indexWhere((s) => s.key == widget.selectedSort!.key)
|
||||
: -1;
|
||||
if (selectedIndex > 0) {
|
||||
scrollToCurrentItem(_scrollController, _firstItemKey, selectedIndex);
|
||||
}
|
||||
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
if (!mounted) return;
|
||||
if (!InputModeTracker.isKeyboardMode(context)) return;
|
||||
@@ -57,6 +69,7 @@ class _SortBottomSheetState extends State<SortBottomSheet> {
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_scrollController.dispose();
|
||||
_initialFocusNode.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
@@ -102,6 +115,7 @@ class _SortBottomSheetState extends State<SortBottomSheet> {
|
||||
if (value != null) _handleSortSelect(value);
|
||||
},
|
||||
child: ListView.builder(
|
||||
controller: _scrollController,
|
||||
padding: const EdgeInsets.symmetric(vertical: 8),
|
||||
itemCount: widget.sortOptions.length,
|
||||
itemBuilder: (context, index) {
|
||||
@@ -109,6 +123,7 @@ class _SortBottomSheetState extends State<SortBottomSheet> {
|
||||
final isSelected = _currentSort?.key == sort.key;
|
||||
|
||||
return Focus(
|
||||
key: index == 0 ? _firstItemKey : null,
|
||||
canRequestFocus: false,
|
||||
skipTraversal: true,
|
||||
onKeyEvent: (node, event) {
|
||||
|
||||
@@ -3,6 +3,7 @@ import 'dart:async';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:material_symbols_icons/symbols.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:cached_network_image/cached_network_image.dart';
|
||||
import 'package:dio/dio.dart';
|
||||
import '../../../focus/dpad_navigator.dart';
|
||||
import '../../../focus/input_mode_tracker.dart';
|
||||
@@ -12,9 +13,11 @@ import '../../../models/plex_filter.dart';
|
||||
import '../../../models/plex_first_character.dart';
|
||||
import '../../../models/plex_sort.dart';
|
||||
import '../../../providers/settings_provider.dart';
|
||||
import '../../../services/image_cache_service.dart';
|
||||
import '../../../utils/error_message_utils.dart';
|
||||
import '../../../utils/grid_size_calculator.dart';
|
||||
import '../../../utils/layout_constants.dart';
|
||||
import '../../../utils/plex_image_helper.dart';
|
||||
import '../alpha_jump_bar.dart';
|
||||
import '../alpha_jump_helper.dart';
|
||||
import '../alpha_scroll_handle.dart';
|
||||
@@ -118,6 +121,12 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// If neither the item nor its parents are loaded (evicted), the event
|
||||
// was already filtered by DeletionAware's upstream check against
|
||||
// deletionGlobalKeys/deletionRatingKeys, so this point is unreachable.
|
||||
// The grid self-corrects when _fetchRange updates _totalSize from the
|
||||
// server response on the next scroll.
|
||||
}
|
||||
|
||||
/// Remove an item at [index] and shift all higher indices down by 1
|
||||
@@ -166,7 +175,7 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
|
||||
// Alpha jump bar state
|
||||
List<PlexFirstCharacter> _firstCharacters = [];
|
||||
AlphaJumpHelper _alphaHelper = AlphaJumpHelper(const []);
|
||||
int _currentFirstVisibleIndex = 0;
|
||||
final ValueNotifier<int> _currentFirstVisibleIndex = ValueNotifier<int>(0);
|
||||
int _currentColumnCount = 1;
|
||||
double _lastCrossAxisExtent = 0;
|
||||
double _effectiveTopPadding = _gridTopPadding;
|
||||
@@ -180,10 +189,16 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
|
||||
// Incremented on each jump so that overlapping animations don't clobber each other.
|
||||
int _jumpScrollGeneration = 0;
|
||||
|
||||
// Scroll activity tracking (for phone scroll handle)
|
||||
bool _isScrollActive = false;
|
||||
// Scroll activity tracking (for phone scroll handle and range-load gating)
|
||||
final ValueNotifier<bool> _isScrollActive = ValueNotifier<bool>(false);
|
||||
Timer? _scrollActivityTimer;
|
||||
|
||||
// Eager prefetch throttle
|
||||
DateTime? _lastEagerPrefetch;
|
||||
// Alpha bar update: throttle (leading edge) + trailing timer (ensures final position)
|
||||
DateTime? _lastAlphaUpdate;
|
||||
Timer? _alphaUpdateTimer;
|
||||
|
||||
// Pagination state
|
||||
int _totalSize = 0;
|
||||
final Map<int, PlexMetadata> _loadedItems = {};
|
||||
@@ -193,6 +208,10 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
|
||||
int _firstCharactersRequestId = 0;
|
||||
static const int _fetchSize = 200;
|
||||
Timer? _scrollIdleTimer;
|
||||
Timer? _retryTimer;
|
||||
int _retryCount = 0;
|
||||
bool _rangeLoadScheduled = false;
|
||||
bool _visibleRangeLoading = false;
|
||||
|
||||
// Focus nodes for filter chips
|
||||
final FocusNode _groupingChipFocusNode = FocusNode(debugLabel: 'grouping_chip');
|
||||
@@ -211,14 +230,18 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
|
||||
@override
|
||||
void dispose() {
|
||||
_cancelToken?.cancel();
|
||||
_retryTimer?.cancel();
|
||||
_scrollActivityTimer?.cancel();
|
||||
_scrollIdleTimer?.cancel();
|
||||
_alphaUpdateTimer?.cancel();
|
||||
_scrollController.removeListener(_onScrollChanged);
|
||||
_scrollController.dispose();
|
||||
_groupingChipFocusNode.dispose();
|
||||
_filtersChipFocusNode.dispose();
|
||||
_sortChipFocusNode.dispose();
|
||||
_alphaJumpBarFocusNode.dispose();
|
||||
_currentFirstVisibleIndex.dispose();
|
||||
_isScrollActive.dispose();
|
||||
disposeGridFocusNodes();
|
||||
super.dispose();
|
||||
}
|
||||
@@ -302,7 +325,6 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
|
||||
/// Focus the chips bar (for navigating from tab bar to content).
|
||||
/// Called by libraries screen when pressing DOWN on tab bar.
|
||||
void focusChipsBar() {
|
||||
// Grouping chip is always visible (including in folder mode)
|
||||
_groupingChipFocusNode.requestFocus();
|
||||
}
|
||||
|
||||
@@ -310,11 +332,11 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
|
||||
void _resetForFullReload() {
|
||||
_scrollActivityTimer?.cancel();
|
||||
_scrollIdleTimer?.cancel();
|
||||
_isScrollActive = false;
|
||||
_isScrollActive.value = false;
|
||||
_hasJumpPin = false;
|
||||
_isJumpScrolling = false;
|
||||
_jumpScrollGeneration++;
|
||||
_currentFirstVisibleIndex = 0;
|
||||
_currentFirstVisibleIndex.value = 0;
|
||||
|
||||
// The browse tab state is kept alive across libraries, so ensure each
|
||||
// library starts from top instead of inheriting the previous offset.
|
||||
@@ -332,6 +354,7 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
|
||||
Future<void> _loadContent() async {
|
||||
// Cancel any pending request
|
||||
_cancelToken?.cancel();
|
||||
_retryTimer?.cancel();
|
||||
_cancelToken = CancelToken();
|
||||
// Use a generation counter for the filter/sort loading phase
|
||||
final generation = ++_requestId;
|
||||
@@ -358,8 +381,8 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
|
||||
_selectedGrouping = _getDefaultGrouping();
|
||||
_firstCharacters = [];
|
||||
_alphaHelper = AlphaJumpHelper(const []);
|
||||
_currentFirstVisibleIndex = 0;
|
||||
});
|
||||
_currentFirstVisibleIndex.value = 0;
|
||||
|
||||
try {
|
||||
final storage = await StorageService.getInstance();
|
||||
@@ -418,6 +441,9 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
|
||||
if (typeId.isNotEmpty) {
|
||||
filterParams['type'] = typeId;
|
||||
}
|
||||
} else if (_selectedGrouping == 'all' && widget.library.isShared) {
|
||||
// Shared libraries: filter to video content only (exclude library section entries)
|
||||
filterParams['type'] = '1,2,3,4';
|
||||
}
|
||||
|
||||
// Add sort
|
||||
@@ -433,6 +459,7 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
|
||||
Future<void> _loadItems() async {
|
||||
final currentRequestId = ++_requestId;
|
||||
_cancelToken?.cancel();
|
||||
_retryTimer?.cancel();
|
||||
_cancelToken = CancelToken();
|
||||
|
||||
setState(() {
|
||||
@@ -456,7 +483,7 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
|
||||
final result = await client.getLibraryContent(
|
||||
widget.library.key,
|
||||
start: 0,
|
||||
size: _fetchSize,
|
||||
size: _calculateInitialFetchSize(),
|
||||
filters: filterParams,
|
||||
cancelToken: _cancelToken,
|
||||
);
|
||||
@@ -488,15 +515,15 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
|
||||
|
||||
/// Fetch a range of items from the API and store them in the sparse map.
|
||||
/// After a successful fetch, re-checks for remaining gaps in the visible range.
|
||||
Future<void> _fetchRange(int start, int size) async {
|
||||
Future<bool> _fetchRange(int start, int size) async {
|
||||
// Clamp to totalSize
|
||||
if (start >= _totalSize) return;
|
||||
if (start >= _totalSize) return false;
|
||||
final clampedSize = size.clamp(0, _totalSize - start);
|
||||
if (clampedSize == 0) return;
|
||||
if (clampedSize == 0) return false;
|
||||
|
||||
// Deduplicate: track every index in-flight to prevent overlapping fetches
|
||||
final indices = List.generate(clampedSize, (i) => start + i);
|
||||
if (indices.every((i) => _loadingRanges.contains(i) || _loadedItems.containsKey(i))) return;
|
||||
if (indices.every((i) => _loadingRanges.contains(i) || _loadedItems.containsKey(i))) return true;
|
||||
_loadingRanges.addAll(indices);
|
||||
|
||||
final currentRequestId = _requestId;
|
||||
@@ -513,28 +540,31 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
|
||||
cancelToken: _cancelToken,
|
||||
);
|
||||
|
||||
if (currentRequestId != _requestId || !mounted) return;
|
||||
if (currentRequestId != _requestId || !mounted) return false;
|
||||
|
||||
setState(() {
|
||||
for (var i = 0; i < result.items.length; i++) {
|
||||
_loadedItems[start + i] = result.items[i];
|
||||
}
|
||||
// Update totalSize in case it changed (e.g., items added/removed on server)
|
||||
if (result.totalSize != _totalSize) {
|
||||
_totalSize = result.totalSize;
|
||||
}
|
||||
});
|
||||
|
||||
// Re-check for remaining gaps in the visible range after this fetch
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
_retryCount = 0;
|
||||
_prefetchImages(start, result.items);
|
||||
return true;
|
||||
} catch (e) {
|
||||
if (e is DioException && e.type == DioExceptionType.cancel) return false;
|
||||
_retryCount++;
|
||||
final delay = Duration(milliseconds: 500 * (1 << _retryCount.clamp(0, 4)));
|
||||
_retryTimer?.cancel();
|
||||
_retryTimer = Timer(delay, () {
|
||||
if (mounted && currentRequestId == _requestId) {
|
||||
_loadVisibleRange();
|
||||
}
|
||||
});
|
||||
} catch (e) {
|
||||
// Silently ignore fetch errors for background range loads
|
||||
// (the initial load handles errors with UI feedback)
|
||||
if (e is DioException && e.type == DioExceptionType.cancel) return;
|
||||
return false;
|
||||
} finally {
|
||||
_loadingRanges.removeAll(indices);
|
||||
}
|
||||
@@ -551,11 +581,8 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
|
||||
|
||||
String _getDefaultGrouping() {
|
||||
final type = widget.library.type.toLowerCase();
|
||||
if (type == 'show') {
|
||||
return 'shows';
|
||||
} else if (type == 'movie') {
|
||||
return 'movies';
|
||||
}
|
||||
if (type == 'show') return 'shows';
|
||||
if (type == 'movie') return 'movies';
|
||||
return 'all';
|
||||
}
|
||||
|
||||
@@ -580,8 +607,10 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
|
||||
return ['shows', 'seasons', 'episodes', 'folders'];
|
||||
} else if (type == 'movie') {
|
||||
return ['movies', 'folders'];
|
||||
} else if (type == 'mixed') {
|
||||
// Shared libraries: all video content types, no folders
|
||||
return ['all', 'movies', 'shows', 'seasons', 'episodes'];
|
||||
}
|
||||
// All library types support folder browsing
|
||||
return ['all', 'folders'];
|
||||
}
|
||||
|
||||
@@ -763,7 +792,7 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
|
||||
void _navigateToGridNearScroll() {
|
||||
if (_totalSize == 0 || _currentColumnCount < 1) return;
|
||||
|
||||
final row = _currentFirstVisibleIndex ~/ _currentColumnCount;
|
||||
final row = _currentFirstVisibleIndex.value ~/ _currentColumnCount;
|
||||
var targetIndex = ((row + 1) * _currentColumnCount - 1).clamp(0, _totalSize - 1);
|
||||
|
||||
// Find nearest loaded item — skeleton cards have no FocusNode
|
||||
@@ -796,7 +825,7 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
|
||||
}
|
||||
}
|
||||
|
||||
/// Navigate focus from grid up to the grouping chip
|
||||
/// Navigate focus from grid up to the chips bar
|
||||
void _navigateToChips() {
|
||||
_groupingChipFocusNode.requestFocus();
|
||||
}
|
||||
@@ -817,9 +846,7 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
|
||||
/// The letter currently visible at the top of the grid, determined by
|
||||
/// how many items we've scrolled past relative to the API's cumulative
|
||||
/// firstCharacter counts.
|
||||
String get _currentAlphaLetter {
|
||||
return _alphaHelper.currentLetter(_currentFirstVisibleIndex);
|
||||
}
|
||||
String _alphaLetterFor(int index) => _alphaHelper.currentLetter(index);
|
||||
|
||||
/// Whether the alpha jump bar should be shown.
|
||||
/// Only shown when sorting by title (titleSort) and not in folders mode.
|
||||
@@ -834,6 +861,8 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
|
||||
|
||||
/// Fetch first characters for the current library/filter state
|
||||
Future<void> _loadFirstCharacters({int? requestId}) async {
|
||||
// Shared libraries don't support first characters
|
||||
if (widget.library.isShared) return;
|
||||
final currentRequestId = requestId ?? ++_firstCharactersRequestId;
|
||||
final client = getClientForLibrary();
|
||||
final filterParams = Map<String, String>.from(_selectedFilters);
|
||||
@@ -869,9 +898,19 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
|
||||
// Debounced scroll-idle handler: load visible range when scrolling settles
|
||||
_scrollIdleTimer?.cancel();
|
||||
_scrollIdleTimer = Timer(const Duration(milliseconds: 200), () {
|
||||
if (mounted) _loadVisibleRange();
|
||||
if (!mounted) return;
|
||||
// Discard stale in-flight tracking from eager prefetch during scroll
|
||||
// so _loadVisibleRange sees the full gap at the settled position.
|
||||
_loadingRanges.clear();
|
||||
_loadVisibleRange();
|
||||
_evictDistantItems();
|
||||
final firstVisible = _itemIndexFromScrollOffset(_scrollController.offset);
|
||||
evictDistantFocusNodes(firstVisible);
|
||||
});
|
||||
|
||||
// Eager prefetch: fetch data before scroll stops
|
||||
_checkEagerPrefetch();
|
||||
|
||||
if (!_shouldShowAlphaJumpBar || _currentColumnCount < 1) return;
|
||||
|
||||
// During a jump animation, skip alpha bar processing to avoid flashing.
|
||||
@@ -884,7 +923,17 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
|
||||
_hasJumpPin = false;
|
||||
}
|
||||
|
||||
_updateVisibleIndex();
|
||||
// Throttle alpha bar updates to ~50fps, with a trailing-edge timer
|
||||
// so the final scroll position always gets an update
|
||||
final now = DateTime.now();
|
||||
if (_lastAlphaUpdate == null || now.difference(_lastAlphaUpdate!) >= const Duration(milliseconds: 20)) {
|
||||
_lastAlphaUpdate = now;
|
||||
_updateVisibleIndex();
|
||||
}
|
||||
_alphaUpdateTimer?.cancel();
|
||||
_alphaUpdateTimer = Timer(const Duration(milliseconds: 20), () {
|
||||
if (mounted) _updateVisibleIndex();
|
||||
});
|
||||
}
|
||||
|
||||
/// Recompute the first-visible-index from the current scroll offset.
|
||||
@@ -895,8 +944,8 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
|
||||
// updates as soon as items with a new letter appear in that row.
|
||||
final maxIndex = _totalSize > 0 ? _totalSize - 1 : 0;
|
||||
final lastInRow = (firstInRow + _currentColumnCount - 1).clamp(0, maxIndex);
|
||||
if (lastInRow != _currentFirstVisibleIndex) {
|
||||
setState(() => _currentFirstVisibleIndex = lastInRow);
|
||||
if (lastInRow != _currentFirstVisibleIndex.value) {
|
||||
_currentFirstVisibleIndex.value = lastInRow;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -929,7 +978,7 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
|
||||
|
||||
_hasJumpPin = true;
|
||||
final clamped = targetIndex.clamp(0, _totalSize > 0 ? _totalSize - 1 : 0);
|
||||
setState(() => _currentFirstVisibleIndex = clamped);
|
||||
_currentFirstVisibleIndex.value = clamped;
|
||||
|
||||
_scrollToItemIndex(clamped);
|
||||
}
|
||||
@@ -983,7 +1032,7 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
|
||||
serverId: widget.library.serverId,
|
||||
onRefresh: updateItem,
|
||||
firstItemFocusNode: firstItemFocusNode,
|
||||
onNavigateUp: () => _groupingChipFocusNode.requestFocus(),
|
||||
onNavigateUp: _navigateToChips,
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -1006,19 +1055,28 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
|
||||
right: 0,
|
||||
bottom: 0,
|
||||
child: _isPhone(context)
|
||||
? AlphaScrollHandle(
|
||||
firstCharacters: _firstCharacters,
|
||||
onJump: _jumpToIndex,
|
||||
currentLetter: _currentAlphaLetter,
|
||||
isScrolling: _isScrollActive,
|
||||
? ValueListenableBuilder<int>(
|
||||
valueListenable: _currentFirstVisibleIndex,
|
||||
builder: (context, visibleIndex, _) => ValueListenableBuilder<bool>(
|
||||
valueListenable: _isScrollActive,
|
||||
builder: (context, scrolling, _) => AlphaScrollHandle(
|
||||
firstCharacters: _firstCharacters,
|
||||
onJump: _jumpToIndex,
|
||||
currentLetter: _alphaLetterFor(visibleIndex),
|
||||
isScrolling: scrolling,
|
||||
),
|
||||
),
|
||||
)
|
||||
: AlphaJumpBar(
|
||||
firstCharacters: _firstCharacters,
|
||||
onJump: _jumpToIndex,
|
||||
currentLetter: _currentAlphaLetter,
|
||||
focusNode: _alphaJumpBarFocusNode,
|
||||
onNavigateLeft: _navigateToGridNearScroll,
|
||||
onBack: _navigateToGridNearScroll,
|
||||
: ValueListenableBuilder<int>(
|
||||
valueListenable: _currentFirstVisibleIndex,
|
||||
builder: (context, visibleIndex, _) => AlphaJumpBar(
|
||||
firstCharacters: _firstCharacters,
|
||||
onJump: _jumpToIndex,
|
||||
currentLetter: _alphaLetterFor(visibleIndex),
|
||||
focusNode: _alphaJumpBarFocusNode,
|
||||
onNavigateLeft: _navigateToGridNearScroll,
|
||||
onBack: _navigateToGridNearScroll,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -1029,14 +1087,14 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
|
||||
Widget _buildScrollableContent() {
|
||||
return NotificationListener<ScrollNotification>(
|
||||
onNotification: (notification) {
|
||||
// Track scroll activity for phone scroll handle
|
||||
// Track scroll activity for phone scroll handle and range-load gating
|
||||
if (notification is ScrollStartNotification) {
|
||||
if (!_isScrollActive) setState(() => _isScrollActive = true);
|
||||
_isScrollActive.value = true;
|
||||
_scrollActivityTimer?.cancel();
|
||||
} else if (notification is ScrollEndNotification) {
|
||||
_scrollActivityTimer?.cancel();
|
||||
_scrollActivityTimer = Timer(const Duration(milliseconds: 100), () {
|
||||
if (mounted) setState(() => _isScrollActive = false);
|
||||
if (mounted) _isScrollActive.value = false;
|
||||
});
|
||||
}
|
||||
return false;
|
||||
@@ -1050,10 +1108,23 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
|
||||
);
|
||||
}
|
||||
|
||||
/// Self-healing: when a skeleton is rendered after scrolling stops,
|
||||
/// ensure the visible range gets loaded even if the scroll-idle path missed it.
|
||||
void _scheduleRangeLoad() {
|
||||
if (_rangeLoadScheduled || _isScrollActive.value) return;
|
||||
_rangeLoadScheduled = true;
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
_rangeLoadScheduled = false;
|
||||
if (mounted) _loadVisibleRange();
|
||||
});
|
||||
}
|
||||
|
||||
/// Determine the visible range and fetch any unloaded items within it.
|
||||
/// Covers the full visible area plus a buffer of _fetchSize/2 on each side,
|
||||
/// then finds the first unloaded contiguous block and fetches it.
|
||||
void _loadVisibleRange() {
|
||||
/// Serialized: only one visible-range fetch runs at a time to prevent
|
||||
/// concurrent calls from seeing each other's _loadingRanges and producing
|
||||
/// tiny fetch sizes.
|
||||
Future<void> _loadVisibleRange() async {
|
||||
if (_visibleRangeLoading) return;
|
||||
if (_totalSize == 0 || _currentColumnCount < 1 || !_scrollController.hasClients) return;
|
||||
if (_lastCrossAxisExtent <= 0) return;
|
||||
|
||||
@@ -1061,7 +1132,6 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
|
||||
final viewportHeight = _scrollController.position.viewportDimension;
|
||||
final firstIndex = _itemIndexFromScrollOffset(offset);
|
||||
|
||||
// Calculate how many items fit in the viewport
|
||||
final itemWidth = _lastCrossAxisExtent / _currentColumnCount;
|
||||
final itemHeight = itemWidth / GridLayoutConstants.posterAspectRatio;
|
||||
final rowHeight = itemHeight + GridLayoutConstants.mainAxisSpacing;
|
||||
@@ -1070,12 +1140,10 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
|
||||
final visibleRows = (viewportHeight / rowHeight).ceil() + 1;
|
||||
final visibleCount = visibleRows * _currentColumnCount;
|
||||
|
||||
// Expand the visible range by a buffer on each side
|
||||
final buffer = _fetchSize ~/ 2;
|
||||
final rangeStart = (firstIndex - buffer).clamp(0, _totalSize);
|
||||
final rangeEnd = (firstIndex + visibleCount + buffer).clamp(0, _totalSize);
|
||||
|
||||
// Find the first and last unloaded indices in the range
|
||||
int? fetchStart;
|
||||
int? fetchEnd;
|
||||
for (var i = rangeStart; i < rangeEnd; i++) {
|
||||
@@ -1086,10 +1154,155 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
|
||||
}
|
||||
if (fetchStart == null || fetchEnd == null) return;
|
||||
|
||||
final fetchSize = fetchEnd - fetchStart;
|
||||
if (fetchSize <= 0) return;
|
||||
_retryTimer?.cancel();
|
||||
_visibleRangeLoading = true;
|
||||
try {
|
||||
final success = await _fetchRange(fetchStart, fetchEnd - fetchStart);
|
||||
if (success && mounted) {
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
if (mounted) _loadVisibleRange();
|
||||
});
|
||||
}
|
||||
} finally {
|
||||
_visibleRangeLoading = false;
|
||||
}
|
||||
}
|
||||
|
||||
_fetchRange(fetchStart, fetchSize);
|
||||
/// Eagerly prefetch data when approaching unloaded boundaries during scroll.
|
||||
/// Throttled to at most once per 100ms to avoid spamming.
|
||||
void _checkEagerPrefetch() {
|
||||
if (_totalSize == 0 || _currentColumnCount < 1 || !_scrollController.hasClients) return;
|
||||
if (_lastCrossAxisExtent <= 0) return;
|
||||
|
||||
final now = DateTime.now();
|
||||
if (_lastEagerPrefetch != null && now.difference(_lastEagerPrefetch!) < const Duration(milliseconds: 100)) return;
|
||||
|
||||
final offset = _scrollController.offset;
|
||||
final viewportHeight = _scrollController.position.viewportDimension;
|
||||
final firstIndex = _itemIndexFromScrollOffset(offset);
|
||||
|
||||
final itemWidth = _lastCrossAxisExtent / _currentColumnCount;
|
||||
final itemHeight = itemWidth / GridLayoutConstants.posterAspectRatio;
|
||||
final rowHeight = itemHeight + GridLayoutConstants.mainAxisSpacing;
|
||||
if (rowHeight <= 0) return;
|
||||
|
||||
final visibleRows = (viewportHeight / rowHeight).ceil() + 1;
|
||||
final visibleCount = visibleRows * _currentColumnCount;
|
||||
|
||||
// Look 1 viewport ahead for unloaded items
|
||||
final lookAheadStart = (firstIndex + visibleCount).clamp(0, _totalSize);
|
||||
final lookAheadEnd = (lookAheadStart + visibleCount).clamp(0, _totalSize);
|
||||
|
||||
for (var i = lookAheadStart; i < lookAheadEnd; i++) {
|
||||
if (!_loadedItems.containsKey(i) && !_loadingRanges.contains(i)) {
|
||||
_lastEagerPrefetch = now;
|
||||
_fetchRange(i, _fetchSize);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Check backward if nothing needed forward
|
||||
final lookBehindStart = (firstIndex - visibleCount).clamp(0, _totalSize);
|
||||
for (var i = firstIndex - 1; i >= lookBehindStart; i--) {
|
||||
if (!_loadedItems.containsKey(i) && !_loadingRanges.contains(i)) {
|
||||
_lastEagerPrefetch = now;
|
||||
_fetchRange(i, _fetchSize);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Compute initial fetch size based on viewport dimensions.
|
||||
int _calculateInitialFetchSize() {
|
||||
try {
|
||||
final screenSize = MediaQuery.of(context).size;
|
||||
final settingsProvider = context.read<SettingsProvider>();
|
||||
final maxExtent = GridSizeCalculator.getMaxCrossAxisExtent(context, settingsProvider.libraryDensity);
|
||||
final crossAxisSpacing = GridLayoutConstants.crossAxisSpacing;
|
||||
final columnCount =
|
||||
((screenSize.width + crossAxisSpacing) / (maxExtent + crossAxisSpacing)).ceil().clamp(1, 100);
|
||||
final itemWidth = screenSize.width / columnCount;
|
||||
final itemHeight = itemWidth / GridLayoutConstants.posterAspectRatio;
|
||||
final rowHeight = itemHeight + GridLayoutConstants.mainAxisSpacing;
|
||||
if (rowHeight <= 0) return _fetchSize;
|
||||
final visibleRows = (screenSize.height / rowHeight).ceil() + 1;
|
||||
final visibleCount = visibleRows * columnCount;
|
||||
return (visibleCount * 3).clamp(100, 500);
|
||||
} catch (_) {
|
||||
return _fetchSize;
|
||||
}
|
||||
}
|
||||
|
||||
/// Evict loaded items far from the current viewport to bound memory usage.
|
||||
static const int _maxLoadedItems = 500;
|
||||
static const int _evictionThreshold = 600;
|
||||
|
||||
void _evictDistantItems() {
|
||||
if (_loadedItems.length <= _evictionThreshold) return;
|
||||
|
||||
final centerIndex = _itemIndexFromScrollOffset(_scrollController.offset);
|
||||
final halfKeep = _maxLoadedItems ~/ 2;
|
||||
final keepStart = centerIndex - halfKeep;
|
||||
final keepEnd = centerIndex + halfKeep;
|
||||
|
||||
_loadedItems.removeWhere((index, _) => index < keepStart || index > keepEnd);
|
||||
}
|
||||
|
||||
/// Prefetch images for items near the viewport to reduce pop-in.
|
||||
void _prefetchImages(int startIndex, List<PlexMetadata> items) {
|
||||
if (!_scrollController.hasClients || _lastCrossAxisExtent <= 0 || _currentColumnCount < 1) return;
|
||||
|
||||
final offset = _scrollController.offset;
|
||||
final viewportHeight = _scrollController.position.viewportDimension;
|
||||
final firstVisible = _itemIndexFromScrollOffset(offset);
|
||||
final itemWidth = _lastCrossAxisExtent / _currentColumnCount;
|
||||
final itemHeight = itemWidth / GridLayoutConstants.posterAspectRatio;
|
||||
final rowHeight = itemHeight + GridLayoutConstants.mainAxisSpacing;
|
||||
if (rowHeight <= 0) return;
|
||||
|
||||
final visibleRows = (viewportHeight / rowHeight).ceil() + 1;
|
||||
final visibleEnd = firstVisible + visibleRows * _currentColumnCount;
|
||||
// Prefetch 2 rows beyond visible area
|
||||
final prefetchEnd = visibleEnd + 2 * _currentColumnCount;
|
||||
|
||||
final client = getClientForLibrary();
|
||||
final devicePixelRatio = PlexImageHelper.effectiveDevicePixelRatio(context);
|
||||
|
||||
for (var i = 0; i < items.length; i++) {
|
||||
final index = startIndex + i;
|
||||
if (index < firstVisible || index > prefetchEnd) continue;
|
||||
|
||||
final thumb = items[i].thumb;
|
||||
if (thumb == null || thumb.isEmpty) continue;
|
||||
|
||||
final imageUrl = PlexImageHelper.getOptimizedImageUrl(
|
||||
client: client,
|
||||
thumbPath: thumb,
|
||||
maxWidth: itemWidth,
|
||||
maxHeight: itemHeight,
|
||||
devicePixelRatio: devicePixelRatio,
|
||||
enableTranscoding: PlexImageHelper.shouldTranscode(thumb),
|
||||
imageType: ImageType.poster,
|
||||
);
|
||||
if (imageUrl.isEmpty) continue;
|
||||
|
||||
final scaledWidth = itemWidth * devicePixelRatio;
|
||||
final scaledHeight = itemHeight * devicePixelRatio;
|
||||
final (_, memHeight) = PlexImageHelper.getMemCacheDimensions(
|
||||
displayWidth: scaledWidth.isFinite && scaledWidth > 0 ? scaledWidth.round() : 0,
|
||||
displayHeight: scaledHeight.isFinite && scaledHeight > 0 ? scaledHeight.round() : 0,
|
||||
);
|
||||
|
||||
precacheImage(
|
||||
CachedNetworkImageProvider(
|
||||
imageUrl,
|
||||
cacheManager: PlexImageCacheManager.instance,
|
||||
headers: const {'User-Agent': 'Plezy'},
|
||||
maxHeight: memHeight,
|
||||
),
|
||||
context,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// Whether the filters chip is visible
|
||||
@@ -1274,6 +1487,7 @@ class _LibraryBrowseTabState extends BaseLibraryTabState<PlexMetadata, LibraryBr
|
||||
|
||||
// Show skeleton placeholder for unloaded items
|
||||
if (item == null) {
|
||||
_scheduleRangeLoad();
|
||||
return const _SkeletonCard();
|
||||
}
|
||||
|
||||
@@ -1304,32 +1518,32 @@ class _SkeletonCard extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Padding(
|
||||
padding: const EdgeInsets.all(8),
|
||||
return const Padding(
|
||||
padding: EdgeInsets.all(8),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
// Poster area — matches the Expanded poster in _buildGridCard
|
||||
Expanded(
|
||||
child: ClipRRect(
|
||||
borderRadius: const BorderRadius.all(Radius.circular(8)),
|
||||
child: const SkeletonLoader(child: SizedBox.expand()),
|
||||
borderRadius: BorderRadius.all(Radius.circular(8)),
|
||||
child: SkeletonLoader(child: SizedBox.expand()),
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
SizedBox(height: 4),
|
||||
// Title bar
|
||||
SkeletonLoader(
|
||||
borderRadius: const BorderRadius.all(Radius.circular(4)),
|
||||
child: const SizedBox(height: 13, width: double.infinity),
|
||||
borderRadius: BorderRadius.all(Radius.circular(4)),
|
||||
child: SizedBox(height: 13, width: double.infinity),
|
||||
),
|
||||
const SizedBox(height: 3),
|
||||
SizedBox(height: 3),
|
||||
// Subtitle bar
|
||||
FractionallySizedBox(
|
||||
alignment: Alignment.centerLeft,
|
||||
widthFactor: 0.6,
|
||||
child: SkeletonLoader(
|
||||
borderRadius: const BorderRadius.all(Radius.circular(4)),
|
||||
child: const SizedBox(height: 11),
|
||||
borderRadius: BorderRadius.all(Radius.circular(4)),
|
||||
child: SizedBox(height: 11),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
@@ -9,14 +9,16 @@ import '../../models/livetv_dvr.dart';
|
||||
import '../../mixins/refreshable.dart';
|
||||
import '../../mixins/tab_navigation_mixin.dart';
|
||||
import '../../providers/multi_server_provider.dart';
|
||||
import '../../providers/settings_provider.dart';
|
||||
import '../../utils/app_logger.dart';
|
||||
import '../../utils/desktop_window_padding.dart';
|
||||
import '../../utils/platform_detector.dart';
|
||||
import '../../widgets/app_icon.dart';
|
||||
import '../../widgets/focusable_tab_chip.dart';
|
||||
import 'tabs/guide_tab.dart';
|
||||
import 'tabs/whats_on_tab.dart';
|
||||
|
||||
enum LiveTvTab { guide, whatsOn }
|
||||
|
||||
class LiveTvScreen extends StatefulWidget {
|
||||
const LiveTvScreen({super.key});
|
||||
|
||||
@@ -25,7 +27,7 @@ class LiveTvScreen extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _LiveTvScreenState extends State<LiveTvScreen>
|
||||
with SingleTickerProviderStateMixin, TabNavigationMixin
|
||||
with TickerProviderStateMixin, TabNavigationMixin
|
||||
implements FocusableTab {
|
||||
final _guideTabFocusNode = FocusNode(debugLabel: 'tab_chip_guide');
|
||||
final _whatsOnTabFocusNode = FocusNode(debugLabel: 'tab_chip_whats_on');
|
||||
@@ -39,6 +41,18 @@ class _LiveTvScreenState extends State<LiveTvScreen>
|
||||
bool _isLoading = true;
|
||||
String? _error;
|
||||
|
||||
// Favorites
|
||||
bool _showFavoritesOnly = false;
|
||||
Set<String> _favoriteChannelIds = {};
|
||||
List<FavoriteChannel> _favoriteChannels = [];
|
||||
/// Source URI per server, built from machineIdentifier + EPG provider identifier.
|
||||
final Map<String, String> _favoriteSourceByServer = {};
|
||||
|
||||
List<LiveTvChannel> get _filteredChannels {
|
||||
if (!_showFavoritesOnly || _favoriteChannelIds.isEmpty) return _channels;
|
||||
return _channels.where((c) => _favoriteChannelIds.contains(c.key)).toList();
|
||||
}
|
||||
|
||||
@override
|
||||
List<FocusNode> get tabChipFocusNodes => [_guideTabFocusNode, _whatsOnTabFocusNode];
|
||||
|
||||
@@ -46,6 +60,7 @@ class _LiveTvScreenState extends State<LiveTvScreen>
|
||||
void initState() {
|
||||
super.initState();
|
||||
suppressAutoFocus = true;
|
||||
_showFavoritesOnly = context.read<SettingsProvider>().liveTvDefaultFavorites;
|
||||
initTabNavigation();
|
||||
_loadChannels();
|
||||
}
|
||||
@@ -64,12 +79,13 @@ class _LiveTvScreenState extends State<LiveTvScreen>
|
||||
if (!tabController.indexIsChanging) {
|
||||
super.onTabChanged();
|
||||
// Pause/resume timers based on active tab
|
||||
if (tabController.index == 0) {
|
||||
_whatsOnTabKey.currentState?.pauseRefresh();
|
||||
_guideTabKey.currentState?.resumeRefresh();
|
||||
} else {
|
||||
_guideTabKey.currentState?.pauseRefresh();
|
||||
_whatsOnTabKey.currentState?.resumeRefresh();
|
||||
switch (LiveTvTab.values[tabController.index]) {
|
||||
case LiveTvTab.guide:
|
||||
_whatsOnTabKey.currentState?.pauseRefresh();
|
||||
_guideTabKey.currentState?.resumeRefresh();
|
||||
case LiveTvTab.whatsOn:
|
||||
_guideTabKey.currentState?.pauseRefresh();
|
||||
_whatsOnTabKey.currentState?.resumeRefresh();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -116,21 +132,14 @@ class _LiveTvScreenState extends State<LiveTvScreen>
|
||||
'Live TV DVRs: ${liveTvServers.map((s) => '${s.serverId}/${s.dvrKey} lineup=${s.lineup}').join(', ')}',
|
||||
);
|
||||
|
||||
// Build a set of enabled channel keys per server from DVR mappings
|
||||
// Build a set of enabled channel keys per server from cached DVR data
|
||||
final enabledKeysByServer = <String, Set<String>>{};
|
||||
final queriedServers = <String>{};
|
||||
final processedServers = <String>{};
|
||||
for (final serverInfo in liveTvServers) {
|
||||
if (!queriedServers.add(serverInfo.serverId)) continue;
|
||||
try {
|
||||
final client = multiServer.getClientForServer(serverInfo.serverId);
|
||||
if (client == null) continue;
|
||||
final dvrs = await client.getDvrs();
|
||||
final enabledKeys = _extractEnabledChannelKeys(dvrs);
|
||||
if (enabledKeys != null) {
|
||||
enabledKeysByServer[serverInfo.serverId] = enabledKeys;
|
||||
}
|
||||
} catch (e) {
|
||||
appLogger.e('Failed to load DVR mappings for server ${serverInfo.serverId}', error: e);
|
||||
if (!processedServers.add(serverInfo.serverId)) continue;
|
||||
final enabledKeys = _extractEnabledChannelKeys(serverInfo.dvrs);
|
||||
if (enabledKeys != null) {
|
||||
enabledKeysByServer[serverInfo.serverId] = enabledKeys;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -172,6 +181,9 @@ class _LiveTvScreenState extends State<LiveTvScreen>
|
||||
_isLoading = false;
|
||||
});
|
||||
|
||||
// Load favorites from the first available server (favorites are cloud-synced)
|
||||
_loadFavorites(multiServer);
|
||||
|
||||
if (allChannels.isNotEmpty && PlatformDetector.shouldUseSideNavigation(context)) {
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
if (mounted) _focusCurrentTab();
|
||||
@@ -188,11 +200,68 @@ class _LiveTvScreenState extends State<LiveTvScreen>
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> _loadFavorites(MultiServerProvider multiServer) async {
|
||||
try {
|
||||
// Use the first available server's client to fetch favorites
|
||||
for (final serverInfo in multiServer.liveTvServers) {
|
||||
final client = multiServer.getClientForServer(serverInfo.serverId);
|
||||
if (client == null) continue;
|
||||
|
||||
// Build and cache the source URI for this server
|
||||
final source = await client.buildFavoriteChannelSource();
|
||||
_favoriteSourceByServer[serverInfo.serverId] = source;
|
||||
|
||||
final favorites = await client.getFavoriteChannels();
|
||||
if (!mounted) return;
|
||||
|
||||
setState(() {
|
||||
_favoriteChannels = favorites;
|
||||
_favoriteChannelIds = favorites.map((f) => f.id).toSet();
|
||||
});
|
||||
appLogger.d('Live TV: loaded ${favorites.length} favorite channels');
|
||||
break; // Favorites are cloud-synced, only need to fetch once
|
||||
}
|
||||
} catch (e) {
|
||||
appLogger.e('Failed to load favorite channels', error: e);
|
||||
}
|
||||
}
|
||||
|
||||
void _toggleFavoritesFilter() {
|
||||
setState(() {
|
||||
_showFavoritesOnly = !_showFavoritesOnly;
|
||||
});
|
||||
}
|
||||
|
||||
void _toggleFavorite(LiveTvChannel channel) {
|
||||
final multiServer = context.read<MultiServerProvider>();
|
||||
final source = _favoriteSourceByServer[channel.serverId] ?? '';
|
||||
|
||||
setState(() {
|
||||
if (_favoriteChannelIds.contains(channel.key)) {
|
||||
_favoriteChannelIds = Set.from(_favoriteChannelIds)..remove(channel.key);
|
||||
_favoriteChannels = _favoriteChannels.where((f) => f.id != channel.key).toList();
|
||||
} else {
|
||||
_favoriteChannelIds = Set.from(_favoriteChannelIds)..add(channel.key);
|
||||
_favoriteChannels = [..._favoriteChannels, FavoriteChannel.fromLiveTvChannel(channel, source)];
|
||||
}
|
||||
});
|
||||
|
||||
// Persist to server (fire-and-forget, optimistic UI)
|
||||
for (final serverInfo in multiServer.liveTvServers) {
|
||||
final client = multiServer.getClientForServer(serverInfo.serverId);
|
||||
if (client != null) {
|
||||
client.setFavoriteChannels(_favoriteChannels);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void _focusCurrentTab() {
|
||||
if (tabController.index == 0) {
|
||||
_guideTabKey.currentState?.focusContent();
|
||||
} else if (tabController.index == 1) {
|
||||
_whatsOnTabKey.currentState?.focusFirstHub();
|
||||
switch (LiveTvTab.values[tabController.index]) {
|
||||
case LiveTvTab.guide:
|
||||
_guideTabKey.currentState?.focusContent();
|
||||
case LiveTvTab.whatsOn:
|
||||
_whatsOnTabKey.currentState?.focusFirstHub();
|
||||
}
|
||||
setState(() {
|
||||
suppressAutoFocus = false;
|
||||
@@ -207,45 +276,11 @@ class _LiveTvScreenState extends State<LiveTvScreen>
|
||||
// Tab chips
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
Widget _buildTabChip(String label, int index) {
|
||||
final isSelected = tabController.index == index;
|
||||
|
||||
return FocusableTabChip(
|
||||
label: label,
|
||||
isSelected: isSelected,
|
||||
focusNode: getTabChipFocusNode(index),
|
||||
onSelect: () {
|
||||
if (isSelected) {
|
||||
_focusCurrentTab();
|
||||
} else {
|
||||
setState(() {
|
||||
tabController.index = index;
|
||||
});
|
||||
}
|
||||
},
|
||||
onNavigateLeft: index > 0
|
||||
? () {
|
||||
final newIndex = index - 1;
|
||||
setState(() {
|
||||
suppressAutoFocus = true;
|
||||
tabController.index = newIndex;
|
||||
});
|
||||
getTabChipFocusNode(newIndex).requestFocus();
|
||||
}
|
||||
: onTabBarBack,
|
||||
onNavigateRight: index < tabCount - 1
|
||||
? () {
|
||||
final newIndex = index + 1;
|
||||
setState(() {
|
||||
suppressAutoFocus = true;
|
||||
tabController.index = newIndex;
|
||||
});
|
||||
getTabChipFocusNode(newIndex).requestFocus();
|
||||
}
|
||||
: () => _actionBarKey.currentState?.getFocusNode(0).requestFocus(),
|
||||
onNavigateDown: _focusCurrentTab,
|
||||
onBack: onTabBarBack,
|
||||
);
|
||||
String _getTabLabel(LiveTvTab tab) {
|
||||
return switch (tab) {
|
||||
LiveTvTab.guide => t.liveTv.guide,
|
||||
LiveTvTab.whatsOn => t.liveTv.whatsOn,
|
||||
};
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
@@ -262,9 +297,16 @@ class _LiveTvScreenState extends State<LiveTvScreen>
|
||||
title: useSideNav
|
||||
? Row(
|
||||
children: [
|
||||
_buildTabChip(t.liveTv.guide, 0),
|
||||
const SizedBox(width: 8),
|
||||
_buildTabChip(t.liveTv.whatsOn, 1),
|
||||
for (int i = 0; i < LiveTvTab.values.length; i++) ...[
|
||||
if (i > 0) const SizedBox(width: 8),
|
||||
buildTabChip(
|
||||
_getTabLabel(LiveTvTab.values[i]),
|
||||
i,
|
||||
onSelectWhenActive: _focusCurrentTab,
|
||||
onNavigateDown: _focusCurrentTab,
|
||||
onNavigateRightFromLast: () => _actionBarKey.currentState?.getFocusNode(0).requestFocus(),
|
||||
),
|
||||
],
|
||||
],
|
||||
)
|
||||
: Text(t.liveTv.title),
|
||||
@@ -274,6 +316,12 @@ class _LiveTvScreenState extends State<LiveTvScreen>
|
||||
onNavigateLeft: () => getTabChipFocusNode(tabCount - 1).requestFocus(),
|
||||
onNavigateDown: _focusCurrentTab,
|
||||
actions: [
|
||||
FocusableAction(
|
||||
icon: _showFavoritesOnly ? Symbols.star_rounded : Symbols.star_outline_rounded,
|
||||
iconFill: _showFavoritesOnly ? 1.0 : 0.0,
|
||||
tooltip: t.liveTv.favorites,
|
||||
onPressed: _toggleFavoritesFilter,
|
||||
),
|
||||
FocusableAction(
|
||||
icon: Symbols.refresh_rounded,
|
||||
tooltip: t.liveTv.reloadGuide,
|
||||
@@ -312,6 +360,9 @@ class _LiveTvScreenState extends State<LiveTvScreen>
|
||||
if (_channels.isEmpty) {
|
||||
return Center(child: Text(t.liveTv.noChannels));
|
||||
}
|
||||
|
||||
final guideChannels = _filteredChannels;
|
||||
|
||||
return Column(
|
||||
children: [
|
||||
if (!useSideNav)
|
||||
@@ -322,9 +373,16 @@ class _LiveTvScreenState extends State<LiveTvScreen>
|
||||
scrollDirection: Axis.horizontal,
|
||||
child: Row(
|
||||
children: [
|
||||
_buildTabChip(t.liveTv.guide, 0),
|
||||
const SizedBox(width: 8),
|
||||
_buildTabChip(t.liveTv.whatsOn, 1),
|
||||
for (int i = 0; i < LiveTvTab.values.length; i++) ...[
|
||||
if (i > 0) const SizedBox(width: 8),
|
||||
buildTabChip(
|
||||
_getTabLabel(LiveTvTab.values[i]),
|
||||
i,
|
||||
onSelectWhenActive: _focusCurrentTab,
|
||||
onNavigateDown: _focusCurrentTab,
|
||||
onNavigateRightFromLast: () => _actionBarKey.currentState?.getFocusNode(0).requestFocus(),
|
||||
),
|
||||
],
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -333,7 +391,14 @@ class _LiveTvScreenState extends State<LiveTvScreen>
|
||||
child: TabBarView(
|
||||
controller: tabController,
|
||||
children: [
|
||||
GuideTab(key: _guideTabKey, channels: _channels, onNavigateUp: focusTabBar, onBack: onTabBarBack),
|
||||
GuideTab(
|
||||
key: _guideTabKey,
|
||||
channels: guideChannels,
|
||||
favoriteChannelIds: _favoriteChannelIds,
|
||||
onToggleFavorite: _toggleFavorite,
|
||||
onNavigateUp: focusTabBar,
|
||||
onBack: onTabBarBack,
|
||||
),
|
||||
WhatsOnTab(key: _whatsOnTabKey, channels: _channels, onNavigateUp: focusTabBar, onBack: onTabBarBack),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -25,10 +25,19 @@ import '../program_details_sheet.dart';
|
||||
|
||||
class GuideTab extends StatefulWidget {
|
||||
final List<LiveTvChannel> channels;
|
||||
final Set<String> favoriteChannelIds;
|
||||
final void Function(LiveTvChannel)? onToggleFavorite;
|
||||
final VoidCallback? onNavigateUp;
|
||||
final VoidCallback? onBack;
|
||||
|
||||
const GuideTab({super.key, required this.channels, this.onNavigateUp, this.onBack});
|
||||
const GuideTab({
|
||||
super.key,
|
||||
required this.channels,
|
||||
this.favoriteChannelIds = const {},
|
||||
this.onToggleFavorite,
|
||||
this.onNavigateUp,
|
||||
this.onBack,
|
||||
});
|
||||
|
||||
@override
|
||||
State<GuideTab> createState() => GuideTabState();
|
||||
@@ -410,6 +419,13 @@ class GuideTabState extends State<GuideTab> {
|
||||
}
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
// 'F' key toggles favorite on focused channel
|
||||
if (key == LogicalKeyboardKey.keyF && _gridColumn == 0) {
|
||||
if (_gridChannelIndex >= 0 && _gridChannelIndex < widget.channels.length) {
|
||||
widget.onToggleFavorite?.call(widget.channels[_gridChannelIndex]);
|
||||
}
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
return KeyEventResult.ignored;
|
||||
}
|
||||
|
||||
@@ -888,7 +904,9 @@ class GuideTabState extends State<GuideTab> {
|
||||
channel: channel,
|
||||
theme: theme,
|
||||
onTap: () => _tuneChannel(channel),
|
||||
onLongPress: widget.onToggleFavorite != null ? () => widget.onToggleFavorite!(channel) : null,
|
||||
isFocused: isFocused,
|
||||
isFavorite: widget.favoriteChannelIds.contains(channel.key),
|
||||
fallbackBuilder: () => _buildChannelNameFallback(channel, theme),
|
||||
);
|
||||
}
|
||||
@@ -1113,7 +1131,9 @@ class _ChannelCell extends StatefulWidget {
|
||||
final LiveTvChannel channel;
|
||||
final ThemeData theme;
|
||||
final VoidCallback onTap;
|
||||
final VoidCallback? onLongPress;
|
||||
final bool isFocused;
|
||||
final bool isFavorite;
|
||||
final Widget Function() fallbackBuilder;
|
||||
|
||||
const _ChannelCell({
|
||||
@@ -1124,7 +1144,9 @@ class _ChannelCell extends StatefulWidget {
|
||||
required this.channel,
|
||||
required this.theme,
|
||||
required this.onTap,
|
||||
this.onLongPress,
|
||||
required this.isFocused,
|
||||
this.isFavorite = false,
|
||||
required this.fallbackBuilder,
|
||||
});
|
||||
|
||||
@@ -1143,12 +1165,15 @@ class _ChannelCellState extends State<_ChannelCell> {
|
||||
return MouseRegion(
|
||||
onEnter: (_) => setState(() => _hovered = true),
|
||||
onExit: (_) => setState(() => _hovered = false),
|
||||
child: Material(
|
||||
color: widget.isFocused ? theme.colorScheme.primary.withValues(alpha: 0.15) : Colors.transparent,
|
||||
child: InkWell(
|
||||
canRequestFocus: false,
|
||||
onTap: widget.onTap,
|
||||
child: Container(
|
||||
child: GestureDetector(
|
||||
onSecondaryTap: widget.onLongPress,
|
||||
child: Material(
|
||||
color: widget.isFocused ? theme.colorScheme.primary.withValues(alpha: 0.15) : Colors.transparent,
|
||||
child: InkWell(
|
||||
canRequestFocus: false,
|
||||
onTap: widget.onTap,
|
||||
onLongPress: widget.onLongPress,
|
||||
child: Container(
|
||||
height: widget.rowHeight,
|
||||
padding: const EdgeInsets.symmetric(horizontal: 8),
|
||||
decoration: BoxDecoration(
|
||||
@@ -1174,11 +1199,18 @@ class _ChannelCellState extends State<_ChannelCell> {
|
||||
: widget.fallbackBuilder(),
|
||||
),
|
||||
if (showAction) AppIcon(Symbols.play_arrow_rounded, size: 32, color: theme.colorScheme.onSurface),
|
||||
if (widget.isFavorite)
|
||||
Positioned(
|
||||
top: 2,
|
||||
right: 0,
|
||||
child: AppIcon(Symbols.star_rounded, size: 14, color: theme.colorScheme.primary),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
+165
-206
@@ -1,7 +1,7 @@
|
||||
import 'dart:io' show Platform, exit;
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart' show KeyUpEvent, SystemNavigator;
|
||||
import 'package:flutter/services.dart' show HardwareKeyboard, KeyDownEvent, KeyUpEvent, LogicalKeyboardKey, SystemNavigator;
|
||||
import 'package:material_symbols_icons/symbols.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
@@ -52,12 +52,14 @@ class MainScreenFocusScope extends InheritedWidget {
|
||||
final VoidCallback focusSidebar;
|
||||
final VoidCallback focusContent;
|
||||
final bool isSidebarFocused;
|
||||
final void Function(String libraryGlobalKey)? selectLibrary;
|
||||
|
||||
const MainScreenFocusScope({
|
||||
super.key,
|
||||
required this.focusSidebar,
|
||||
required this.focusContent,
|
||||
required this.isSidebarFocused,
|
||||
this.selectLibrary,
|
||||
required super.child,
|
||||
});
|
||||
|
||||
@@ -82,12 +84,20 @@ class MainScreen extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _MainScreenState extends State<MainScreen> with RouteAware, WindowListener, WidgetsBindingObserver {
|
||||
late int _currentIndex;
|
||||
NavigationTabId _currentTab = NavigationTabId.discover;
|
||||
String? _selectedLibraryGlobalKey;
|
||||
|
||||
/// Whether the app is in offline mode (no server connection)
|
||||
bool _isOffline = false;
|
||||
|
||||
/// Computed index — searches the same _getVisibleTabs() that _buildScreens iterates,
|
||||
/// so _screens[_currentIndex] is always the widget for _currentTab.
|
||||
int get _currentIndex {
|
||||
final tabs = _getVisibleTabs(_isOffline);
|
||||
final idx = tabs.indexWhere((t) => t.id == _currentTab);
|
||||
return (idx >= 0 ? idx : 0).clamp(0, _screens.length - 1);
|
||||
}
|
||||
|
||||
/// Last selected online tab (restored when coming back online after an offline fallback)
|
||||
NavigationTabId? _lastOnlineTabId;
|
||||
|
||||
@@ -130,13 +140,17 @@ class _MainScreenState extends State<MainScreen> with RouteAware, WindowListener
|
||||
windowManager.setPreventClose(true);
|
||||
}
|
||||
|
||||
// Start on Downloads tab when in offline mode
|
||||
// In offline mode: visual index 0 = Downloads (screen 3), 1 = Settings (screen 4)
|
||||
// In online mode: indices match directly
|
||||
_currentIndex = 0;
|
||||
_currentTab = _isOffline ? NavigationTabId.downloads : NavigationTabId.discover;
|
||||
_lastOnlineTabId = _isOffline ? null : NavigationTabId.discover;
|
||||
_autoSwitchedToDownloads = _isOffline;
|
||||
|
||||
// Synchronize _lastHasLiveTv with provider before building screens
|
||||
// so _buildScreens and _hasLiveTv getter agree from the start.
|
||||
try {
|
||||
_lastHasLiveTv = context.read<MultiServerProvider>().hasLiveTv;
|
||||
} catch (_) {
|
||||
_lastHasLiveTv = false;
|
||||
}
|
||||
_screens = _buildScreens(_isOffline);
|
||||
|
||||
// Set up Watch Together callbacks immediately (must be synchronous to catch early messages)
|
||||
@@ -425,48 +439,29 @@ class _MainScreenState extends State<MainScreen> with RouteAware, WindowListener
|
||||
final receiver = CompanionRemoteReceiver.instance;
|
||||
|
||||
receiver.onTabNext = () {
|
||||
final tabCount = _getVisibleTabs(_isOffline).length;
|
||||
_selectTab((_currentIndex + 1) % tabCount);
|
||||
final tabs = _getVisibleTabs(_isOffline);
|
||||
final idx = tabs.indexWhere((t) => t.id == _currentTab);
|
||||
if (idx >= 0) _selectTab(tabs[(idx + 1) % tabs.length].id);
|
||||
};
|
||||
receiver.onTabPrevious = () {
|
||||
final tabCount = _getVisibleTabs(_isOffline).length;
|
||||
_selectTab((_currentIndex - 1 + tabCount) % tabCount);
|
||||
};
|
||||
receiver.onTabDiscover = () {
|
||||
final idx = NavigationTab.indexFor(NavigationTabId.discover, isOffline: _isOffline, hasLiveTv: _hasLiveTv);
|
||||
if (idx >= 0) _selectTab(idx);
|
||||
};
|
||||
receiver.onTabLibraries = () {
|
||||
final idx = NavigationTab.indexFor(NavigationTabId.libraries, isOffline: _isOffline, hasLiveTv: _hasLiveTv);
|
||||
if (idx >= 0) _selectTab(idx);
|
||||
};
|
||||
receiver.onTabSearch = () {
|
||||
final idx = NavigationTab.indexFor(NavigationTabId.search, isOffline: _isOffline, hasLiveTv: _hasLiveTv);
|
||||
if (idx >= 0) _selectTab(idx);
|
||||
};
|
||||
receiver.onTabDownloads = () {
|
||||
final idx = NavigationTab.indexFor(NavigationTabId.downloads, isOffline: _isOffline, hasLiveTv: _hasLiveTv);
|
||||
if (idx >= 0) _selectTab(idx);
|
||||
};
|
||||
receiver.onTabSettings = () {
|
||||
final idx = NavigationTab.indexFor(NavigationTabId.settings, isOffline: _isOffline, hasLiveTv: _hasLiveTv);
|
||||
if (idx >= 0) _selectTab(idx);
|
||||
};
|
||||
receiver.onHome = () {
|
||||
final idx = NavigationTab.indexFor(NavigationTabId.discover, isOffline: _isOffline, hasLiveTv: _hasLiveTv);
|
||||
if (idx >= 0) _selectTab(idx);
|
||||
final tabs = _getVisibleTabs(_isOffline);
|
||||
final idx = tabs.indexWhere((t) => t.id == _currentTab);
|
||||
if (idx >= 0) _selectTab(tabs[(idx - 1 + tabs.length) % tabs.length].id);
|
||||
};
|
||||
receiver.onTabDiscover = () => _selectTab(NavigationTabId.discover);
|
||||
receiver.onTabLibraries = () => _selectTab(NavigationTabId.libraries);
|
||||
receiver.onTabSearch = () => _selectTab(NavigationTabId.search);
|
||||
receiver.onTabDownloads = () => _selectTab(NavigationTabId.downloads);
|
||||
receiver.onTabSettings = () => _selectTab(NavigationTabId.settings);
|
||||
receiver.onHome = () => _selectTab(NavigationTabId.discover);
|
||||
receiver.onSearchAction = (query) {
|
||||
final idx = NavigationTab.indexFor(NavigationTabId.search, isOffline: _isOffline, hasLiveTv: _hasLiveTv);
|
||||
if (idx >= 0) {
|
||||
_selectTab(idx);
|
||||
if (query != null && query.isNotEmpty) {
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
if (_searchKey.currentState case final SearchInputFocusable searchable) {
|
||||
searchable.setSearchQuery(query);
|
||||
}
|
||||
});
|
||||
}
|
||||
_selectTab(NavigationTabId.search);
|
||||
if (query != null && query.isNotEmpty) {
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
if (_searchKey.currentState case final SearchInputFocusable searchable) {
|
||||
searchable.setSearchQuery(query);
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -533,40 +528,41 @@ class _MainScreenState extends State<MainScreen> with RouteAware, WindowListener
|
||||
_isShowingProfileSelection = false;
|
||||
}
|
||||
|
||||
/// IndexedStack that disables tickers for offscreen children to prevent
|
||||
/// animation controllers on non-visible tabs from scheduling frames.
|
||||
Widget _buildTickerAwareStack() {
|
||||
return IndexedStack(
|
||||
index: _currentIndex,
|
||||
children: [
|
||||
for (var i = 0; i < _screens.length; i++)
|
||||
TickerMode(
|
||||
enabled: i == _currentIndex,
|
||||
child: _screens[i],
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
List<Widget> _buildScreens(bool offline) {
|
||||
// In offline mode, only show Downloads and Settings
|
||||
if (offline) {
|
||||
return [DownloadsScreen(key: _downloadsKey), SettingsScreen(key: _settingsKey)];
|
||||
}
|
||||
|
||||
final hasLiveTv = context.read<MultiServerProvider>().hasLiveTv;
|
||||
|
||||
return [
|
||||
DiscoverScreen(key: _discoverKey, onBecameVisible: _onDiscoverBecameVisible),
|
||||
LibrariesScreen(key: _librariesKey, onLibraryOrderChanged: _onLibraryOrderChanged),
|
||||
if (hasLiveTv) LiveTvScreen(key: _liveTvKey),
|
||||
SearchScreen(key: _searchKey),
|
||||
DownloadsScreen(key: _downloadsKey),
|
||||
SettingsScreen(key: _settingsKey),
|
||||
for (final tab in _getVisibleTabs(offline))
|
||||
switch (tab.id) {
|
||||
NavigationTabId.discover => DiscoverScreen(key: _discoverKey, onBecameVisible: _onDiscoverBecameVisible),
|
||||
NavigationTabId.libraries => LibrariesScreen(key: _librariesKey, onLibraryOrderChanged: _onLibraryOrderChanged),
|
||||
NavigationTabId.liveTv => LiveTvScreen(key: _liveTvKey),
|
||||
NavigationTabId.search => SearchScreen(key: _searchKey),
|
||||
NavigationTabId.downloads => DownloadsScreen(key: _downloadsKey),
|
||||
NavigationTabId.settings => SettingsScreen(key: _settingsKey),
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
/// Normalize tab index when switching between offline/online modes.
|
||||
/// Normalize tab ID when switching between offline/online modes.
|
||||
/// Preserves the current tab if it exists in the new mode, otherwise defaults to first tab.
|
||||
int _normalizeIndexForMode(int currentIndex, bool wasOffline, bool isOffline) {
|
||||
if (wasOffline == isOffline) return currentIndex;
|
||||
|
||||
final oldTabs = _getVisibleTabs(wasOffline);
|
||||
final newTabs = _getVisibleTabs(isOffline);
|
||||
|
||||
// Get the tab ID at the current index (or first tab if out of bounds)
|
||||
final currentTabId = currentIndex >= 0 && currentIndex < oldTabs.length
|
||||
? oldTabs[currentIndex].id
|
||||
: oldTabs.first.id;
|
||||
|
||||
// Find the same tab in the new mode's tab list
|
||||
final newIndex = newTabs.indexWhere((tab) => tab.id == currentTabId);
|
||||
return newIndex >= 0 ? newIndex : 0;
|
||||
NavigationTabId _normalizeTabForMode(NavigationTabId currentTab, bool isOffline) {
|
||||
final tabs = _getVisibleTabs(isOffline);
|
||||
if (tabs.any((t) => t.id == currentTab)) return currentTab;
|
||||
return tabs.first.id;
|
||||
}
|
||||
|
||||
void _triggerReconnect() {
|
||||
@@ -589,11 +585,8 @@ class _MainScreenState extends State<MainScreen> with RouteAware, WindowListener
|
||||
_lastHasLiveTv = hasLiveTv;
|
||||
|
||||
setState(() {
|
||||
final currentTabId = _tabIdForIndex(_isOffline, _currentIndex);
|
||||
_screens = _buildScreens(_isOffline);
|
||||
// Restore the correct tab index after rebuilding
|
||||
final newIndex = NavigationTab.indexFor(currentTabId, isOffline: _isOffline, hasLiveTv: hasLiveTv);
|
||||
_currentIndex = newIndex >= 0 ? newIndex : 0;
|
||||
_currentTab = _normalizeTabForMode(_currentTab, _isOffline);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -602,7 +595,7 @@ class _MainScreenState extends State<MainScreen> with RouteAware, WindowListener
|
||||
|
||||
if (newOffline == _isOffline) return;
|
||||
|
||||
final previousTabId = _tabIdForIndex(_isOffline, _currentIndex);
|
||||
final previousTab = _currentTab;
|
||||
final wasOffline = _isOffline;
|
||||
setState(() {
|
||||
_isReconnecting = false;
|
||||
@@ -613,23 +606,23 @@ class _MainScreenState extends State<MainScreen> with RouteAware, WindowListener
|
||||
if (_isOffline) {
|
||||
// Remember the online tab so we can restore it when reconnecting.
|
||||
if (!wasOffline) {
|
||||
_lastOnlineTabId = previousTabId;
|
||||
_lastOnlineTabId = previousTab;
|
||||
}
|
||||
|
||||
_currentIndex = _normalizeIndexForMode(_currentIndex, wasOffline, _isOffline);
|
||||
final normalizedTab = _normalizeTabForMode(_currentTab, _isOffline);
|
||||
_currentTab = normalizedTab;
|
||||
|
||||
// Track if we auto-switched to Downloads because the previous tab was unavailable.
|
||||
_autoSwitchedToDownloads =
|
||||
previousTabId != NavigationTabId.downloads &&
|
||||
_tabIdForIndex(true, _currentIndex) == NavigationTabId.downloads;
|
||||
previousTab != NavigationTabId.downloads &&
|
||||
normalizedTab == NavigationTabId.downloads;
|
||||
} else {
|
||||
// Coming back online: restore the last online tab if we forced a switch to Downloads.
|
||||
if (_autoSwitchedToDownloads) {
|
||||
final restoredTab = _lastOnlineTabId ?? NavigationTabId.discover;
|
||||
final restoredIndex = NavigationTab.indexFor(restoredTab, isOffline: _isOffline, hasLiveTv: _hasLiveTv);
|
||||
_currentIndex = restoredIndex >= 0 ? restoredIndex : 0;
|
||||
_currentTab = _normalizeTabForMode(restoredTab, _isOffline);
|
||||
} else {
|
||||
_currentIndex = _normalizeIndexForMode(_currentIndex, wasOffline, _isOffline);
|
||||
_currentTab = _normalizeTabForMode(_currentTab, _isOffline);
|
||||
}
|
||||
_autoSwitchedToDownloads = false;
|
||||
}
|
||||
@@ -664,48 +657,15 @@ class _MainScreenState extends State<MainScreen> with RouteAware, WindowListener
|
||||
void _focusContent() {
|
||||
setState(() => _isSidebarFocused = false);
|
||||
_contentFocusScope.requestFocus();
|
||||
// When content regains focus while on Discover, focus the hero section
|
||||
if (_currentIndex == 0 && !_isOffline) {
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
if (_discoverKey.currentState case final TabVisibilityAware aware) {
|
||||
aware.onTabShown();
|
||||
}
|
||||
});
|
||||
}
|
||||
// When content regains focus while on Libraries, only focus the active tab
|
||||
// if no child already has focus (avoids stale focus requests stealing focus
|
||||
// from the current item when scrolling back to item 0)
|
||||
if (_currentIndex == 1 && !_isOffline) {
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
if (_contentFocusScope.focusedChild == null) {
|
||||
if (_librariesKey.currentState case final FocusableTab focusable) {
|
||||
focusable.focusActiveTabIfReady();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
// When content regains focus while on Live TV, focus the active guide/whats-on tab
|
||||
final liveTvIndex = NavigationTab.indexFor(NavigationTabId.liveTv, isOffline: _isOffline, hasLiveTv: _hasLiveTv);
|
||||
if (_currentIndex == liveTvIndex && liveTvIndex >= 0) {
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
if (_liveTvKey.currentState case final FocusableTab focusable) {
|
||||
// Only programmatically focus if the scope didn't auto-restore a child.
|
||||
// This preserves the user's focus position when returning from sidebar.
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
if (_contentFocusScope.focusedChild == null) {
|
||||
if (_screenKeyFor(_currentTab)?.currentState case final FocusableTab focusable) {
|
||||
focusable.focusActiveTabIfReady();
|
||||
}
|
||||
});
|
||||
}
|
||||
// When content regains focus while on Settings, restore focus to last focused setting
|
||||
final settingsIndex = NavigationTab.indexFor(
|
||||
NavigationTabId.settings,
|
||||
isOffline: _isOffline,
|
||||
hasLiveTv: _hasLiveTv,
|
||||
);
|
||||
if (_currentIndex == settingsIndex) {
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
if (_settingsKey.currentState case final FocusableTab focusable) {
|
||||
focusable.focusActiveTabIfReady();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/// Suppress stray back events after a child route pops.
|
||||
@@ -746,10 +706,35 @@ class _MainScreenState extends State<MainScreen> with RouteAware, WindowListener
|
||||
});
|
||||
}
|
||||
|
||||
/// Handle Cmd+F (macOS) / Ctrl+F (Windows/Linux) to navigate to search.
|
||||
KeyEventResult _handleSearchShortcut(KeyEvent event) {
|
||||
if (event is! KeyDownEvent) return KeyEventResult.ignored;
|
||||
if (event.logicalKey != LogicalKeyboardKey.keyF) return KeyEventResult.ignored;
|
||||
|
||||
final isMetaPressed = HardwareKeyboard.instance.isMetaPressed;
|
||||
final isControlPressed = HardwareKeyboard.instance.isControlPressed;
|
||||
|
||||
final isMacShortcut = Platform.isMacOS && isMetaPressed && !isControlPressed;
|
||||
final isOtherShortcut = !Platform.isMacOS && isControlPressed && !isMetaPressed;
|
||||
|
||||
if (!isMacShortcut && !isOtherShortcut) return KeyEventResult.ignored;
|
||||
if (_isOffline) return KeyEventResult.handled;
|
||||
|
||||
_selectTab(NavigationTabId.search);
|
||||
if (_isSidebarFocused) _focusContent();
|
||||
// Schedule focus after the frame so the search screen is visible in the IndexedStack
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
if (_searchKey.currentState case final SearchInputFocusable searchable) {
|
||||
searchable.focusSearchInput();
|
||||
}
|
||||
});
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
|
||||
@override
|
||||
void didPush() {
|
||||
// Called when this route has been pushed (initial navigation)
|
||||
if (_currentIndex == 0 && !_isOffline) {
|
||||
if (_currentTab == NavigationTabId.discover) {
|
||||
_onDiscoverBecameVisible();
|
||||
}
|
||||
}
|
||||
@@ -757,7 +742,7 @@ class _MainScreenState extends State<MainScreen> with RouteAware, WindowListener
|
||||
@override
|
||||
void didPushNext() {
|
||||
// Called when a child route is pushed on top (e.g., video player)
|
||||
if (_currentIndex == 0 && !_isOffline) {
|
||||
if (_currentTab == NavigationTabId.discover) {
|
||||
if (_discoverKey.currentState case final TabVisibilityAware aware) {
|
||||
aware.onTabHidden();
|
||||
}
|
||||
@@ -776,9 +761,9 @@ class _MainScreenState extends State<MainScreen> with RouteAware, WindowListener
|
||||
});
|
||||
|
||||
// Called when returning to this route from a child route (e.g., from video player)
|
||||
if (_currentIndex == 0 && !_isOffline) {
|
||||
if (_currentTab == NavigationTabId.discover) {
|
||||
if (_discoverKey.currentState case final TabVisibilityAware aware) {
|
||||
aware.onTabShown(scrollToTop: false);
|
||||
aware.onTabShown();
|
||||
}
|
||||
_onDiscoverBecameVisible();
|
||||
}
|
||||
@@ -854,81 +839,47 @@ class _MainScreenState extends State<MainScreen> with RouteAware, WindowListener
|
||||
// Sidebar automatically updates since it watches LibrariesProvider
|
||||
}
|
||||
|
||||
void _selectTab(int index) {
|
||||
final previousIndex = _currentIndex;
|
||||
void _selectTab(NavigationTabId tab) {
|
||||
// Guard: ignore if tab isn't available in current mode
|
||||
if (!_getVisibleTabs(_isOffline).any((t) => t.id == tab)) return;
|
||||
|
||||
final previousTab = _currentTab;
|
||||
setState(() {
|
||||
_currentIndex = index;
|
||||
_currentTab = tab;
|
||||
if (!_isOffline) {
|
||||
_lastOnlineTabId = _tabIdForIndex(false, index);
|
||||
} else if (previousIndex != index) {
|
||||
_lastOnlineTabId = tab;
|
||||
} else if (previousTab != tab) {
|
||||
// User made an explicit offline selection, so don't auto-restore later.
|
||||
_autoSwitchedToDownloads = false;
|
||||
}
|
||||
});
|
||||
|
||||
// Handle screen-specific logic
|
||||
final settingsIndex = NavigationTab.indexFor(
|
||||
NavigationTabId.settings,
|
||||
isOffline: _isOffline,
|
||||
hasLiveTv: _hasLiveTv,
|
||||
);
|
||||
|
||||
// Skip online-only screen logic in offline mode
|
||||
if (!_isOffline) {
|
||||
// Pause/resume discover auto-scroll when switching tabs
|
||||
if (previousIndex == 0 && index != 0) {
|
||||
if (_discoverKey.currentState case final TabVisibilityAware aware) {
|
||||
aware.onTabHidden();
|
||||
}
|
||||
if (previousTab != tab) {
|
||||
// Notify previous screen it's being hidden
|
||||
if (_screenKeyFor(previousTab)?.currentState case final TabVisibilityAware aware) {
|
||||
aware.onTabHidden();
|
||||
}
|
||||
// Notify discover screen when it becomes visible via tab switch
|
||||
if (index == 0) {
|
||||
if (previousIndex != 0) {
|
||||
if (_discoverKey.currentState case final TabVisibilityAware aware) {
|
||||
aware.onTabShown();
|
||||
}
|
||||
}
|
||||
_onDiscoverBecameVisible();
|
||||
// Notify and focus new screen
|
||||
final newState = _screenKeyFor(tab)?.currentState;
|
||||
if (newState case final TabVisibilityAware aware) {
|
||||
aware.onTabShown();
|
||||
}
|
||||
// Ensure the libraries screen applies focus when brought into view
|
||||
if (index == 1 && previousIndex != 1) {
|
||||
if (_librariesKey.currentState case final FocusableTab focusable) {
|
||||
focusable.focusActiveTabIfReady();
|
||||
}
|
||||
}
|
||||
// Ensure the Live TV screen applies focus when brought into view
|
||||
final liveTvIdx = NavigationTab.indexFor(NavigationTabId.liveTv, isOffline: _isOffline, hasLiveTv: _hasLiveTv);
|
||||
if (index == liveTvIdx && liveTvIdx >= 0 && previousIndex != liveTvIdx) {
|
||||
if (_liveTvKey.currentState case final FocusableTab focusable) {
|
||||
focusable.focusActiveTabIfReady();
|
||||
}
|
||||
}
|
||||
// Focus search input when selecting Search tab
|
||||
if (NavigationTab.isTabAtIndex(NavigationTabId.search, index, isOffline: _isOffline, hasLiveTv: _hasLiveTv)) {
|
||||
if (_searchKey.currentState case final SearchInputFocusable searchable) {
|
||||
searchable.focusSearchInput();
|
||||
}
|
||||
if (newState case final FocusableTab focusable) {
|
||||
focusable.focusActiveTabIfReady();
|
||||
}
|
||||
}
|
||||
|
||||
// Restore focus when switching to Settings tab (works in both online and offline mode)
|
||||
if (index == settingsIndex && previousIndex != settingsIndex) {
|
||||
if (_settingsKey.currentState case final FocusableTab focusable) {
|
||||
focusable.focusActiveTabIfReady();
|
||||
}
|
||||
// Discover: always refresh content (even on re-selection)
|
||||
if (!_isOffline && tab == NavigationTabId.discover) {
|
||||
_onDiscoverBecameVisible();
|
||||
}
|
||||
}
|
||||
|
||||
/// Handle library selection from side navigation rail
|
||||
void _selectLibrary(String libraryGlobalKey) {
|
||||
setState(() {
|
||||
_selectedLibraryGlobalKey = libraryGlobalKey;
|
||||
_currentIndex = 1; // Switch to Libraries tab
|
||||
if (!_isOffline) {
|
||||
_lastOnlineTabId = NavigationTabId.libraries;
|
||||
}
|
||||
});
|
||||
// Tell LibrariesScreen to load this library
|
||||
_selectedLibraryGlobalKey = libraryGlobalKey;
|
||||
_selectTab(NavigationTabId.libraries);
|
||||
// Tell LibrariesScreen to load this library after tab switch
|
||||
if (_librariesKey.currentState case final LibraryLoadable loadable) {
|
||||
loadable.loadLibraryByKey(libraryGlobalKey);
|
||||
}
|
||||
@@ -938,25 +889,25 @@ class _MainScreenState extends State<MainScreen> with RouteAware, WindowListener
|
||||
}
|
||||
|
||||
/// Whether the Live TV tab is currently visible
|
||||
bool get _hasLiveTv {
|
||||
try {
|
||||
return context.read<MultiServerProvider>().hasLiveTv;
|
||||
} catch (_) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/// Use the synchronized value so screens list and nav bar always agree.
|
||||
/// Updated by _handleLiveTvChanged when the provider notifies.
|
||||
bool get _hasLiveTv => _lastHasLiveTv;
|
||||
|
||||
/// Get navigation tabs filtered by offline mode
|
||||
List<NavigationTab> _getVisibleTabs(bool isOffline) {
|
||||
return NavigationTab.getVisibleTabs(isOffline: isOffline, hasLiveTv: _hasLiveTv);
|
||||
}
|
||||
|
||||
/// Get the tab ID for a given index, clamping to the available range.
|
||||
NavigationTabId _tabIdForIndex(bool isOffline, int index) {
|
||||
final tabs = _getVisibleTabs(isOffline);
|
||||
if (tabs.isEmpty) return NavigationTabId.discover;
|
||||
final safeIndex = index.clamp(0, tabs.length - 1).toInt();
|
||||
return tabs[safeIndex].id;
|
||||
/// Get the GlobalKey for a given tab.
|
||||
GlobalKey? _screenKeyFor(NavigationTabId tab) {
|
||||
return switch (tab) {
|
||||
NavigationTabId.discover => _discoverKey,
|
||||
NavigationTabId.libraries => _librariesKey,
|
||||
NavigationTabId.liveTv => _liveTvKey,
|
||||
NavigationTabId.search => _searchKey,
|
||||
NavigationTabId.downloads => _downloadsKey,
|
||||
NavigationTabId.settings => _settingsKey,
|
||||
};
|
||||
}
|
||||
|
||||
/// Build navigation destinations for bottom navigation bar.
|
||||
@@ -986,11 +937,16 @@ class _MainScreenState extends State<MainScreen> with RouteAware, WindowListener
|
||||
// ignore: no-empty-block - required callback, back navigation handled by _handleBackKey
|
||||
onPopInvokedWithResult: (didPop, result) {},
|
||||
child: Focus(
|
||||
onKeyEvent: (node, event) => _handleBackKey(event),
|
||||
onKeyEvent: (node, event) {
|
||||
final searchResult = _handleSearchShortcut(event);
|
||||
if (searchResult == KeyEventResult.handled) return searchResult;
|
||||
return _handleBackKey(event);
|
||||
},
|
||||
child: MainScreenFocusScope(
|
||||
focusSidebar: _focusSidebar,
|
||||
focusContent: _focusContent,
|
||||
isSidebarFocused: _isSidebarFocused,
|
||||
selectLibrary: _selectLibrary,
|
||||
child: SideNavigationScope(
|
||||
child: Stack(
|
||||
children: [
|
||||
@@ -1004,7 +960,7 @@ class _MainScreenState extends State<MainScreen> with RouteAware, WindowListener
|
||||
node: _contentFocusScope,
|
||||
// No autofocus - we control focus programmatically to prevent
|
||||
// autofocus from stealing focus back after setState() rebuilds
|
||||
child: IndexedStack(index: _currentIndex, children: _screens),
|
||||
child: _buildTickerAwareStack(),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -1017,14 +973,14 @@ class _MainScreenState extends State<MainScreen> with RouteAware, WindowListener
|
||||
node: _sidebarFocusScope,
|
||||
child: SideNavigationRail(
|
||||
key: _sideNavKey,
|
||||
selectedIndex: _currentIndex,
|
||||
selectedTab: _currentTab,
|
||||
selectedLibraryKey: _selectedLibraryGlobalKey,
|
||||
isOfflineMode: _isOffline,
|
||||
isSidebarFocused: _isSidebarFocused,
|
||||
alwaysExpanded: alwaysExpanded,
|
||||
isReconnecting: _isReconnecting,
|
||||
onDestinationSelected: (index) {
|
||||
_selectTab(index);
|
||||
onDestinationSelected: (tab) {
|
||||
_selectTab(tab);
|
||||
_focusContent();
|
||||
},
|
||||
onLibrarySelected: (key) {
|
||||
@@ -1049,7 +1005,7 @@ class _MainScreenState extends State<MainScreen> with RouteAware, WindowListener
|
||||
|
||||
return OverlaySheetHost(
|
||||
child: Scaffold(
|
||||
body: IndexedStack(index: _currentIndex, children: _screens),
|
||||
body: _buildTickerAwareStack(),
|
||||
bottomNavigationBar: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
@@ -1096,7 +1052,10 @@ class _MainScreenState extends State<MainScreen> with RouteAware, WindowListener
|
||||
data: NavigationBarTheme.of(context).copyWith(height: hideLabels ? 56 : null),
|
||||
child: NavigationBar(
|
||||
selectedIndex: _currentIndex,
|
||||
onDestinationSelected: _selectTab,
|
||||
onDestinationSelected: (i) {
|
||||
final tabs = _getVisibleTabs(_isOffline);
|
||||
if (i >= 0 && i < tabs.length) _selectTab(tabs[i].id);
|
||||
},
|
||||
labelBehavior: hideLabels
|
||||
? NavigationDestinationLabelBehavior.alwaysHide
|
||||
: NavigationDestinationLabelBehavior.alwaysShow,
|
||||
|
||||
@@ -84,7 +84,7 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
|
||||
late final ScrollController _scrollController;
|
||||
final ScrollController _extrasScrollController = ScrollController();
|
||||
bool _watchStateChanged = false;
|
||||
double _scrollOffset = 0;
|
||||
final ValueNotifier<double> _scrollOffset = ValueNotifier<double>(0);
|
||||
|
||||
// Inline season tabs
|
||||
int _selectedSeasonIndex = 0;
|
||||
@@ -217,7 +217,7 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
|
||||
setState(() {
|
||||
_episodes.removeAt(epIndex);
|
||||
});
|
||||
if (_episodes.isEmpty && widget.metadata.isSeason && mounted) {
|
||||
if (_episodes.isEmpty && (widget.metadata.isSeason || widget.metadata.isShow) && mounted) {
|
||||
Navigator.of(context).pop();
|
||||
}
|
||||
return;
|
||||
@@ -348,14 +348,13 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
|
||||
}
|
||||
|
||||
void _onScroll() {
|
||||
setState(() {
|
||||
_scrollOffset = _scrollController.offset;
|
||||
});
|
||||
_scrollOffset.value = _scrollController.offset;
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_scrollController.dispose();
|
||||
_scrollOffset.dispose();
|
||||
_extrasScrollController.dispose();
|
||||
_extrasFocusNode.dispose();
|
||||
_playButtonFocusNode.dispose();
|
||||
@@ -1205,7 +1204,7 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
|
||||
final isAlways = flattenSeasons == flattenSeasonsAlways;
|
||||
final isSingleSeason = flattenSeasons == flattenSeasonsSingleSeason;
|
||||
final shouldShowEpisodesDirectly =
|
||||
isAlways || seasonsWithServerId.length <= 1 || (isSingleSeason && seasonsWithServerId.length == 1);
|
||||
isAlways || seasonsWithServerId.isEmpty || (isSingleSeason && seasonsWithServerId.length == 1);
|
||||
|
||||
// Create focus nodes for season tabs
|
||||
_updateSeasonTabFocusNodes(seasonsWithServerId.length);
|
||||
@@ -1263,6 +1262,7 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
|
||||
type: 'season',
|
||||
title: firstEp.parentTitle ?? 'Season ${entry.key}',
|
||||
index: entry.key,
|
||||
leafCount: entry.value.length,
|
||||
thumb: firstEp.parentThumb,
|
||||
parentRatingKey: firstEp.grandparentRatingKey,
|
||||
serverId: widget.metadata.serverId,
|
||||
@@ -1557,7 +1557,6 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
|
||||
builder: (scrollController) => SingleChildScrollView(
|
||||
controller: scrollController,
|
||||
scrollDirection: Axis.horizontal,
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12),
|
||||
child: Row(
|
||||
children: List.generate(_seasons.length, (index) {
|
||||
final season = _seasons[index];
|
||||
@@ -1675,7 +1674,7 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
|
||||
if (key.isLeftKey) {
|
||||
if (_focusedExtraIndex > 0) {
|
||||
setState(() => _focusedExtraIndex--);
|
||||
scrollListToIndex(_extrasScrollController, _focusedExtraIndex, itemExtent: _getResponsiveCardWidth() + 4);
|
||||
scrollListToIndex(_extrasScrollController, _focusedExtraIndex, itemExtent: _getResponsiveCardWidth() + 4, leadingPadding: 0);
|
||||
}
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
@@ -1684,7 +1683,7 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
|
||||
if (key.isRightKey) {
|
||||
if (_focusedExtraIndex < _extras!.length - 1) {
|
||||
setState(() => _focusedExtraIndex++);
|
||||
scrollListToIndex(_extrasScrollController, _focusedExtraIndex, itemExtent: _getResponsiveCardWidth() + 4);
|
||||
scrollListToIndex(_extrasScrollController, _focusedExtraIndex, itemExtent: _getResponsiveCardWidth() + 4, leadingPadding: 0);
|
||||
}
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
@@ -1729,7 +1728,7 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
|
||||
if (key.isLeftKey) {
|
||||
if (_focusedCastIndex > 0) {
|
||||
setState(() => _focusedCastIndex--);
|
||||
scrollListToIndex(_castScrollController, _focusedCastIndex, itemExtent: 120.0 + 4);
|
||||
scrollListToIndex(_castScrollController, _focusedCastIndex, itemExtent: 120.0 + 8 + 4, leadingPadding: 0);
|
||||
}
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
@@ -1738,7 +1737,7 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
|
||||
if (key.isRightKey) {
|
||||
if (_focusedCastIndex < roleCount - 1) {
|
||||
setState(() => _focusedCastIndex++);
|
||||
scrollListToIndex(_castScrollController, _focusedCastIndex, itemExtent: 120.0 + 4);
|
||||
scrollListToIndex(_castScrollController, _focusedCastIndex, itemExtent: 120.0 + 8 + 4, leadingPadding: 0);
|
||||
}
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
@@ -2249,7 +2248,7 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
|
||||
right: 0,
|
||||
child: SafeArea(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 24),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
@@ -2366,7 +2365,7 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
|
||||
// Main content
|
||||
SliverToBoxAdapter(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(24),
|
||||
padding: const EdgeInsets.all(16),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
@@ -2388,7 +2387,7 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
|
||||
_overviewFocusNode.hasFocus && InputModeTracker.isKeyboardMode(context);
|
||||
return AnimatedContainer(
|
||||
duration: const Duration(milliseconds: 150),
|
||||
padding: const EdgeInsets.all(8),
|
||||
padding: const EdgeInsets.all(4),
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: const BorderRadius.all(Radius.circular(8)),
|
||||
border: Border.all(
|
||||
@@ -2532,24 +2531,28 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
|
||||
top: 0,
|
||||
left: 0,
|
||||
right: 0,
|
||||
child: IgnorePointer(
|
||||
ignoring: _scrollOffset < 50,
|
||||
child: AnimatedOpacity(
|
||||
opacity: (_scrollOffset / 100).clamp(0.0, 1.0),
|
||||
duration: const Duration(milliseconds: 150),
|
||||
child: Container(
|
||||
height: MediaQuery.of(context).padding.top + 58,
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
begin: Alignment.topCenter,
|
||||
end: Alignment.bottomCenter,
|
||||
colors: [
|
||||
Theme.of(context).scaffoldBackgroundColor.withValues(alpha: 0.8),
|
||||
Theme.of(context).scaffoldBackgroundColor.withValues(alpha: 0.5),
|
||||
Theme.of(context).scaffoldBackgroundColor.withValues(alpha: 0),
|
||||
],
|
||||
stops: const [0.0, 0.3, 1.0],
|
||||
),
|
||||
child: ValueListenableBuilder<double>(
|
||||
valueListenable: _scrollOffset,
|
||||
builder: (context, offset, child) => IgnorePointer(
|
||||
ignoring: offset < 50,
|
||||
child: AnimatedOpacity(
|
||||
opacity: (offset / 100).clamp(0.0, 1.0),
|
||||
duration: const Duration(milliseconds: 150),
|
||||
child: child!,
|
||||
),
|
||||
),
|
||||
child: Container(
|
||||
height: MediaQuery.of(context).padding.top + 58,
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
begin: Alignment.topCenter,
|
||||
end: Alignment.bottomCenter,
|
||||
colors: [
|
||||
Theme.of(context).scaffoldBackgroundColor.withValues(alpha: 0.8),
|
||||
Theme.of(context).scaffoldBackgroundColor.withValues(alpha: 0.5),
|
||||
Theme.of(context).scaffoldBackgroundColor.withValues(alpha: 0),
|
||||
],
|
||||
stops: const [0.0, 0.3, 1.0],
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -2615,7 +2618,7 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
|
||||
/// Uses same layout pattern as seasons/extras (ListView.builder + Padding(horizontal: 2))
|
||||
Widget _buildCastSection(PlexMetadata metadata) {
|
||||
const cardWidth = 120.0;
|
||||
const innerPadding = 6.0;
|
||||
const innerPadding = 4.0;
|
||||
// image + inner padding + text area + outer list padding + focus scale headroom
|
||||
const containerHeight = 120.0 + innerPadding * 2 + 66 + 16;
|
||||
|
||||
@@ -2632,14 +2635,14 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
|
||||
builder: (scrollController) => ListView.builder(
|
||||
controller: scrollController,
|
||||
scrollDirection: Axis.horizontal,
|
||||
padding: const EdgeInsets.symmetric(vertical: 5, horizontal: 12),
|
||||
padding: const EdgeInsets.symmetric(vertical: 5),
|
||||
itemCount: metadata.role!.length,
|
||||
itemBuilder: (context, index) {
|
||||
final actor = metadata.role![index];
|
||||
final isFocused = hasFocus && index == _focusedCastIndex;
|
||||
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 2),
|
||||
padding: const EdgeInsets.only(right: 4),
|
||||
child: FocusBuilders.buildLockedFocusWrapper(
|
||||
context: context,
|
||||
isFocused: isFocused,
|
||||
@@ -2719,7 +2722,7 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
|
||||
builder: (scrollController) => ListView.builder(
|
||||
controller: scrollController,
|
||||
scrollDirection: Axis.horizontal,
|
||||
padding: const EdgeInsets.symmetric(vertical: 5, horizontal: 12),
|
||||
padding: const EdgeInsets.symmetric(vertical: 5),
|
||||
itemCount: _extras!.length,
|
||||
itemBuilder: (context, index) {
|
||||
final extra = _extras![index];
|
||||
@@ -2727,7 +2730,7 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
|
||||
final cardKey = _extraCardKeys.putIfAbsent(index, () => GlobalKey<MediaCardState>());
|
||||
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 2),
|
||||
padding: const EdgeInsets.only(right: 4),
|
||||
child: FocusBuilders.buildLockedFocusWrapper(
|
||||
context: context,
|
||||
isFocused: isFocused,
|
||||
|
||||
@@ -497,7 +497,7 @@ class _DigitBox extends StatelessWidget {
|
||||
color: isActive ? focusColor.withValues(alpha: 0.08) : Colors.transparent,
|
||||
),
|
||||
child: Text(
|
||||
digit != null ? digit.toString() : '–',
|
||||
digit != null ? (isActive ? digit.toString() : '•') : '–',
|
||||
style: theme.textTheme.headlineSmall?.copyWith(
|
||||
fontWeight: FontWeight.bold,
|
||||
color: digit != null
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:material_symbols_icons/symbols.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import '../../models/plex_home_user.dart';
|
||||
@@ -37,6 +38,11 @@ class _ProfileSwitchScreenState extends State<ProfileSwitchScreen> {
|
||||
|
||||
return PopScope(
|
||||
canPop: !widget.requireSelection || _allowPop,
|
||||
onPopInvokedWithResult: (didPop, _) {
|
||||
if (!didPop && widget.requireSelection) {
|
||||
SystemNavigator.pop();
|
||||
}
|
||||
},
|
||||
child: Consumer<UserProfileProvider>(
|
||||
builder: (context, userProvider, child) {
|
||||
final users = userProvider.home?.users ?? [];
|
||||
@@ -44,6 +50,7 @@ class _ProfileSwitchScreenState extends State<ProfileSwitchScreen> {
|
||||
return FocusedScrollScaffold(
|
||||
title: Text(t.screens.switchProfile),
|
||||
automaticallyImplyLeading: !widget.requireSelection,
|
||||
onBackPressed: widget.requireSelection ? () => SystemNavigator.pop() : null,
|
||||
slivers: [
|
||||
if (userProvider.isLoading)
|
||||
const SliverFillRemaining(child: Center(child: CircularProgressIndicator()))
|
||||
|
||||
@@ -24,7 +24,7 @@ class SearchScreen extends StatefulWidget {
|
||||
State<SearchScreen> createState() => _SearchScreenState();
|
||||
}
|
||||
|
||||
class _SearchScreenState extends State<SearchScreen> with Refreshable, FullRefreshable, SearchInputFocusable {
|
||||
class _SearchScreenState extends State<SearchScreen> with Refreshable, FullRefreshable, SearchInputFocusable, FocusableTab {
|
||||
final _searchController = TextEditingController();
|
||||
final _searchFocusNode = FocusNode(debugLabel: 'SearchInput');
|
||||
final _firstResultFocusNode = FocusNode(debugLabel: 'SearchFirstResult');
|
||||
@@ -129,6 +129,11 @@ class _SearchScreenState extends State<SearchScreen> with Refreshable, FullRefre
|
||||
_searchFocusNode.requestFocus();
|
||||
}
|
||||
|
||||
@override
|
||||
void focusActiveTabIfReady() {
|
||||
_searchFocusNode.requestFocus();
|
||||
}
|
||||
|
||||
/// Set the search query externally (e.g. from companion remote)
|
||||
@override
|
||||
void setSearchQuery(String query) {
|
||||
@@ -204,6 +209,7 @@ class _SearchScreenState extends State<SearchScreen> with Refreshable, FullRefre
|
||||
key: Key(item.globalKey),
|
||||
item: item,
|
||||
forceListMode: true,
|
||||
disableScale: true,
|
||||
focusNode: index == 0 ? _firstResultFocusNode : null,
|
||||
onListRefresh: () => updateItem(item.ratingKey),
|
||||
onNavigateLeft: _navigateToSidebar,
|
||||
@@ -220,6 +226,7 @@ class _SearchScreenState extends State<SearchScreen> with Refreshable, FullRefre
|
||||
return Scaffold(
|
||||
body: SafeArea(
|
||||
child: CustomScrollView(
|
||||
primary: false,
|
||||
slivers: [
|
||||
DesktopSliverAppBar(title: Text(t.common.search), floating: true),
|
||||
SliverToBoxAdapter(
|
||||
|
||||
@@ -13,6 +13,7 @@ import '../../focus/focusable_action_bar.dart';
|
||||
import '../../focus/focusable_button.dart';
|
||||
import '../../focus/key_event_utils.dart';
|
||||
import '../../i18n/strings.g.dart';
|
||||
import '../../main.dart' show gitCommit;
|
||||
import '../../utils/app_logger.dart';
|
||||
import '../../utils/platform_detector.dart';
|
||||
import '../../utils/snackbar_helper.dart';
|
||||
@@ -41,7 +42,8 @@ class _LogsScreenState extends State<LogsScreen> {
|
||||
final packageInfo = await PackageInfo.fromPlatform();
|
||||
final deviceInfo = DeviceInfoPlugin();
|
||||
final buffer = StringBuffer();
|
||||
buffer.writeln('${t.app.title} v${packageInfo.version} (${packageInfo.buildNumber})');
|
||||
final commitSuffix = gitCommit.isNotEmpty ? ' ${gitCommit.substring(0, 7)}' : '';
|
||||
buffer.writeln('${t.app.title} v${packageInfo.version} (${packageInfo.buildNumber})$commitSuffix');
|
||||
|
||||
if (Platform.isAndroid) {
|
||||
final info = await deviceInfo.androidInfo;
|
||||
|
||||
@@ -77,6 +77,7 @@ class _SettingsScreenState extends State<SettingsScreen> with FocusableTab {
|
||||
static const _kShowUnwatchedCount = 'show_unwatched_count';
|
||||
static const _kHideSpoilers = 'hide_spoilers';
|
||||
static const _kShowNavBarLabels = 'show_nav_bar_labels';
|
||||
static const _kLiveTvDefaultFavorites = 'live_tv_default_favorites';
|
||||
static const _kRequireProfileSelectionOnOpen = 'require_profile_selection_on_open';
|
||||
static const _kConfirmExitOnBack = 'confirm_exit_on_back';
|
||||
static const _kPlayerBackend = 'player_backend';
|
||||
@@ -90,6 +91,7 @@ class _SettingsScreenState extends State<SettingsScreen> with FocusableTab {
|
||||
static const _kMpvConfig = 'mpv_config';
|
||||
static const _kSmallSkipDuration = 'small_skip_duration';
|
||||
static const _kLargeSkipDuration = 'large_skip_duration';
|
||||
static const _kRewindOnResume = 'rewind_on_resume';
|
||||
static const _kDefaultSleepTimer = 'default_sleep_timer';
|
||||
static const _kMaxVolume = 'max_volume';
|
||||
static const _kDiscordRichPresence = 'discord_rich_presence';
|
||||
@@ -121,6 +123,7 @@ class _SettingsScreenState extends State<SettingsScreen> with FocusableTab {
|
||||
int _bufferSize = 0;
|
||||
int _seekTimeSmall = 10;
|
||||
int _seekTimeLarge = 30;
|
||||
int _rewindOnResume = 0;
|
||||
int _sleepTimerDuration = 30;
|
||||
bool _rememberTrackSelections = true;
|
||||
bool _clickVideoTogglesPlayback = false;
|
||||
@@ -200,6 +203,7 @@ class _SettingsScreenState extends State<SettingsScreen> with FocusableTab {
|
||||
_bufferSize = _settingsService.getBufferSize();
|
||||
_seekTimeSmall = _settingsService.getSeekTimeSmall();
|
||||
_seekTimeLarge = _settingsService.getSeekTimeLarge();
|
||||
_rewindOnResume = _settingsService.getRewindOnResume();
|
||||
_sleepTimerDuration = _settingsService.getSleepTimerDuration();
|
||||
_rememberTrackSelections = _settingsService.getRememberTrackSelections();
|
||||
_clickVideoTogglesPlayback = _settingsService.getClickVideoTogglesPlayback();
|
||||
@@ -234,6 +238,7 @@ class _SettingsScreenState extends State<SettingsScreen> with FocusableTab {
|
||||
body: Focus(
|
||||
onKeyEvent: _handleKeyEvent,
|
||||
child: CustomScrollView(
|
||||
primary: false,
|
||||
slivers: [
|
||||
ExcludeFocus(child: CustomAppBar(title: Text(t.settings.title), pinned: true)),
|
||||
SliverPadding(
|
||||
@@ -525,6 +530,20 @@ class _SettingsScreenState extends State<SettingsScreen> with FocusableTab {
|
||||
);
|
||||
},
|
||||
),
|
||||
Consumer<SettingsProvider>(
|
||||
builder: (context, settingsProvider, child) {
|
||||
return SwitchListTile(
|
||||
focusNode: _focusTracker.get(_kLiveTvDefaultFavorites),
|
||||
secondary: const AppIcon(Symbols.star_rounded, fill: 1),
|
||||
title: Text(t.settings.liveTvDefaultFavorites),
|
||||
subtitle: Text(t.settings.liveTvDefaultFavoritesDescription),
|
||||
value: settingsProvider.liveTvDefaultFavorites,
|
||||
onChanged: (value) async {
|
||||
await settingsProvider.setLiveTvDefaultFavorites(value);
|
||||
},
|
||||
);
|
||||
},
|
||||
),
|
||||
Consumer<SettingsProvider>(
|
||||
builder: (context, settingsProvider, child) {
|
||||
return SwitchListTile(
|
||||
@@ -659,7 +678,7 @@ class _SettingsScreenState extends State<SettingsScreen> with FocusableTab {
|
||||
await _settingsService.setEnableHardwareDecoding(value);
|
||||
},
|
||||
),
|
||||
if (Platform.isAndroid || Platform.isIOS || Platform.isMacOS)
|
||||
if ((Platform.isAndroid && !PlatformDetector.isTV()) || Platform.isIOS || Platform.isMacOS)
|
||||
SwitchListTile(
|
||||
focusNode: _focusTracker.get(_kAutoPip),
|
||||
secondary: const AppIcon(Symbols.picture_in_picture_alt_rounded, fill: 1),
|
||||
@@ -779,6 +798,14 @@ class _SettingsScreenState extends State<SettingsScreen> with FocusableTab {
|
||||
trailing: const AppIcon(Symbols.chevron_right_rounded, fill: 1),
|
||||
onTap: () => _showSeekTimeLargeDialog(),
|
||||
),
|
||||
ListTile(
|
||||
focusNode: _focusTracker.get(_kRewindOnResume),
|
||||
leading: const AppIcon(Symbols.replay_rounded, fill: 1),
|
||||
title: Text(t.settings.rewindOnResume),
|
||||
subtitle: Text(t.settings.secondsUnit(seconds: _rewindOnResume.toString())),
|
||||
trailing: const AppIcon(Symbols.chevron_right_rounded, fill: 1),
|
||||
onTap: () => _showRewindOnResumeDialog(),
|
||||
),
|
||||
ListTile(
|
||||
focusNode: _focusTracker.get(_kDefaultSleepTimer),
|
||||
leading: const AppIcon(Symbols.bedtime_rounded, fill: 1),
|
||||
@@ -1023,6 +1050,11 @@ class _SettingsScreenState extends State<SettingsScreen> with FocusableTab {
|
||||
selectedPath = await safService.pickDirectory();
|
||||
if (selectedPath != null) {
|
||||
pathType = 'saf';
|
||||
} else if (PlatformDetector.isTV()) {
|
||||
if (mounted) {
|
||||
showErrorSnackBar(context, t.settings.downloadLocationSelectError);
|
||||
}
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
// Use file_picker on desktop
|
||||
@@ -1610,6 +1642,23 @@ class _SettingsScreenState extends State<SettingsScreen> with FocusableTab {
|
||||
);
|
||||
}
|
||||
|
||||
void _showRewindOnResumeDialog() {
|
||||
_showNumericInputDialog(
|
||||
title: t.settings.rewindOnResume,
|
||||
labelText: t.settings.secondsLabel,
|
||||
suffixText: t.settings.secondsShort,
|
||||
min: 0,
|
||||
max: 10,
|
||||
currentValue: _rewindOnResume,
|
||||
onSave: (value) async {
|
||||
setState(() {
|
||||
_rewindOnResume = value;
|
||||
_settingsService.setRewindOnResume(value);
|
||||
});
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
void _showSleepTimerDurationDialog() {
|
||||
_showNumericInputDialog(
|
||||
title: t.settings.defaultSleepTimer,
|
||||
|
||||
@@ -2,6 +2,8 @@ import 'dart:async';
|
||||
import 'dart:io';
|
||||
import 'dart:math';
|
||||
|
||||
import 'package:path/path.dart' as p;
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:plezy/widgets/app_icon.dart';
|
||||
import 'package:material_symbols_icons/symbols.dart';
|
||||
@@ -40,7 +42,7 @@ import '../services/playback_progress_tracker.dart';
|
||||
import '../services/offline_watch_sync_service.dart';
|
||||
import '../services/settings_service.dart';
|
||||
import '../services/sleep_timer_service.dart';
|
||||
import '../services/track_selection_service.dart';
|
||||
import '../services/track_manager.dart';
|
||||
import '../services/ambient_lighting_service.dart';
|
||||
import '../services/video_filter_manager.dart';
|
||||
import '../services/video_pip_manager.dart';
|
||||
@@ -55,9 +57,7 @@ import '../utils/player_utils.dart';
|
||||
import '../utils/orientation_helper.dart';
|
||||
import '../utils/platform_detector.dart';
|
||||
import '../utils/provider_extensions.dart';
|
||||
import '../utils/language_codes.dart';
|
||||
import '../utils/snackbar_helper.dart';
|
||||
import '../utils/track_label_builder.dart';
|
||||
import '../utils/plex_url_helper.dart';
|
||||
import '../utils/video_player_navigation.dart';
|
||||
import '../widgets/overlay_sheet.dart';
|
||||
@@ -148,10 +148,10 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
StreamSubscription<bool>? _completedSubscription;
|
||||
StreamSubscription<dynamic>? _mediaControlSubscription;
|
||||
StreamSubscription<bool>? _bufferingSubscription;
|
||||
StreamSubscription<Tracks>? _trackLoadingSubscription;
|
||||
StreamSubscription<Duration>? _positionSubscription;
|
||||
StreamSubscription<void>? _playbackRestartSubscription;
|
||||
StreamSubscription<void>? _backendSwitchedSubscription;
|
||||
TrackManager? _trackManager;
|
||||
StreamSubscription<PlayerLog>? _logSubscription;
|
||||
StreamSubscription<void>? _sleepTimerSubscription;
|
||||
StreamSubscription<bool>? _mediaControlsPlayingSubscription;
|
||||
@@ -161,8 +161,6 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
StreamSubscription<Map<String, bool>>? _serverStatusSubscription;
|
||||
bool _isReplacingWithVideo = false; // Flag to skip orientation restoration during video-to-video navigation
|
||||
bool _isDisposingForNavigation = false;
|
||||
bool _waitingForExternalSubsTrackSelection = false;
|
||||
bool _isApplyingTrackSelection = false;
|
||||
bool _isHandlingBack = false;
|
||||
BifThumbnailService? _bifService;
|
||||
|
||||
@@ -202,7 +200,9 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
|
||||
// App lifecycle state tracking
|
||||
bool _wasPlayingBeforeInactive = false;
|
||||
bool _hiddenForBackground = false;
|
||||
bool _autoPipEnabled = false;
|
||||
int _rewindOnResume = 0;
|
||||
|
||||
/// Whether to skip lifecycle actions because PiP is active or about to start.
|
||||
/// iOS auto-PiP is system-initiated during the background transition, so
|
||||
@@ -342,10 +342,9 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
// Don't pause - user may still be watching
|
||||
break;
|
||||
case AppLifecycleState.hidden:
|
||||
// App is being hidden (user is switching away)
|
||||
// Pause video since we don't support background playback (mobile only)
|
||||
if (_shouldSkipForPip) break;
|
||||
// Pause video on mobile (we don't support background playback)
|
||||
if (PlatformDetector.isMobile(context)) {
|
||||
if (_shouldSkipForPip) break;
|
||||
if (player != null && _isPlayerInitialized) {
|
||||
_wasPlayingBeforeInactive = player!.state.playing;
|
||||
if (_wasPlayingBeforeInactive) {
|
||||
@@ -354,6 +353,13 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
}
|
||||
}
|
||||
}
|
||||
// Hide render layer to stop Vulkan present loop and gate native events
|
||||
if (player != null && _isPlayerInitialized) {
|
||||
player!.setVisible(false);
|
||||
_hiddenForBackground = true;
|
||||
_liveTimelineTimer?.cancel();
|
||||
appLogger.d('Render layer hidden due to app being hidden');
|
||||
}
|
||||
break;
|
||||
case AppLifecycleState.paused:
|
||||
if (_shouldSkipForPip) break;
|
||||
@@ -365,6 +371,15 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
appLogger.d('Media controls cleared and wakelock disabled due to app being paused/backgrounded');
|
||||
break;
|
||||
case AppLifecycleState.resumed:
|
||||
// Restore render layer if it was hidden for background
|
||||
if (_hiddenForBackground && player != null && _isPlayerInitialized) {
|
||||
player!.setVisible(true);
|
||||
_hiddenForBackground = false;
|
||||
if (_liveSessionIdentifier != null) {
|
||||
_startLiveTimelineUpdates();
|
||||
}
|
||||
appLogger.d('Render layer restored after app resumed');
|
||||
}
|
||||
// Restore media controls and wakelock when app is resumed
|
||||
if (_isPlayerInitialized && mounted) {
|
||||
unawaited(_restoreMediaControlsAfterResume());
|
||||
@@ -376,35 +391,13 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
}
|
||||
}
|
||||
|
||||
/// Converts a 2-letter code like "fr", "nl", "ca" to a Plex 3-letter code, or returns null if unknown
|
||||
String? _iso6391ToPlex6392(String? code) {
|
||||
if (code == null || code.isEmpty) return null;
|
||||
// Takes the base "fr" from "fr-FR"
|
||||
final lang = code.split('-').first.toLowerCase();
|
||||
|
||||
// Use LanguageCodes utility to get variations and find the 639-2 code
|
||||
try {
|
||||
final variations = LanguageCodes.getVariations(lang);
|
||||
// The getVariations method returns all variations including 639-2 codes
|
||||
// We need to find the 3-letter code from the variations
|
||||
for (final variation in variations) {
|
||||
if (variation.length == 3) {
|
||||
return variation;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
} catch (e) {
|
||||
// If LanguageCodes is not initialized or fails, return null
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> _initializePlayer() async {
|
||||
try {
|
||||
// Load buffer size from settings
|
||||
final settingsService = await SettingsService.getInstance();
|
||||
_videoPlayerNavigationEnabled = settingsService.getVideoPlayerNavigationEnabled();
|
||||
_autoPipEnabled = settingsService.getAutoPip();
|
||||
_rewindOnResume = settingsService.getRewindOnResume();
|
||||
final bufferSizeMB = settingsService.getBufferSize();
|
||||
final enableHardwareDecoding = settingsService.getEnableHardwareDecoding();
|
||||
final debugLoggingEnabled = settingsService.getEnableDebugLogging();
|
||||
@@ -413,6 +406,7 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
// Create player (on Android, uses ExoPlayer by default, MPV as fallback)
|
||||
player = Player(useExoPlayer: useExoPlayer);
|
||||
|
||||
await player!.configureSubtitleFonts();
|
||||
await player!.setProperty('sub-ass', 'yes'); // Enable libass
|
||||
if (Platform.isAndroid && useExoPlayer) {
|
||||
final tunneledPlayback = settingsService.getTunneledPlayback();
|
||||
@@ -629,10 +623,7 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
await _applyFrameRateMatching();
|
||||
}
|
||||
}
|
||||
if (_waitingForExternalSubsTrackSelection) {
|
||||
_waitingForExternalSubsTrackSelection = false;
|
||||
_applyTrackSelection();
|
||||
}
|
||||
_trackManager?.onPlaybackRestart();
|
||||
});
|
||||
|
||||
// Listen to position for completion detection (fallback for unreliable MPV events)
|
||||
@@ -641,6 +632,12 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
// offline Android playback flows). Prevents a permanent loading spinner.
|
||||
if (!_hasFirstFrame.value && position.inMilliseconds > 0) {
|
||||
_hasFirstFrame.value = true;
|
||||
|
||||
// Apply frame rate matching here too, since this fallback may fire
|
||||
// before playbackRestart (race condition with resume positions > 0)
|
||||
if (Platform.isAndroid && settingsService.getMatchContentFrameRate()) {
|
||||
_applyFrameRateMatching();
|
||||
}
|
||||
}
|
||||
|
||||
final duration = player!.state.duration;
|
||||
@@ -672,6 +669,7 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
|
||||
/// Apply frame rate matching on Android by setting the display refresh rate
|
||||
/// to match the video content's frame rate.
|
||||
int _frameRateRetries = 0;
|
||||
Future<void> _applyFrameRateMatching() async {
|
||||
if (player == null || !Platform.isAndroid) return;
|
||||
|
||||
@@ -679,10 +677,20 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
final fpsStr = await player!.getProperty('container-fps');
|
||||
final fps = double.tryParse(fpsStr ?? '');
|
||||
if (fps == null || fps <= 0) {
|
||||
// ExoPlayer detects FPS from frame timestamps after ~8 rendered frames.
|
||||
// STATE_READY fires before frames render, so retry until detection completes.
|
||||
if (player is PlayerAndroid && _frameRateRetries < 10) {
|
||||
_frameRateRetries++;
|
||||
Future.delayed(const Duration(milliseconds: 500), () {
|
||||
if (mounted && player != null) _applyFrameRateMatching();
|
||||
});
|
||||
return;
|
||||
}
|
||||
appLogger.d('Frame rate matching: No valid fps available ($fpsStr)');
|
||||
return;
|
||||
}
|
||||
|
||||
_frameRateRetries = 0;
|
||||
final durationMs = player!.state.duration.inMilliseconds;
|
||||
await player!.setVideoFrameRate(fps, durationMs);
|
||||
|
||||
@@ -710,29 +718,6 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
}
|
||||
}
|
||||
|
||||
/// Add external subtitle tracks to the player
|
||||
Future<void> _addExternalSubtitles(List<SubtitleTrack> externalSubtitles) async {
|
||||
if (player == null || externalSubtitles.isEmpty) return;
|
||||
|
||||
appLogger.d('Adding ${externalSubtitles.length} external subtitle(s) to player');
|
||||
|
||||
for (final subtitleTrack in externalSubtitles) {
|
||||
if (subtitleTrack.uri == null) continue;
|
||||
|
||||
try {
|
||||
await player!.addSubtitleTrack(
|
||||
uri: subtitleTrack.uri!,
|
||||
title: subtitleTrack.title,
|
||||
language: subtitleTrack.language,
|
||||
select: false, // Don't auto-select
|
||||
);
|
||||
appLogger.d('Added external subtitle: ${subtitleTrack.title ?? subtitleTrack.uri}');
|
||||
} catch (e) {
|
||||
appLogger.w('Failed to add external subtitle: ${subtitleTrack.title ?? subtitleTrack.uri}', error: e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Initialize the service layer
|
||||
Future<void> _initializeServices() async {
|
||||
if (!mounted || player == null) return;
|
||||
@@ -774,7 +759,8 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
|
||||
if (event is PlayEvent) {
|
||||
appLogger.d('Media control: Play event received');
|
||||
currentPlayer!.play();
|
||||
_seekBackForRewind(currentPlayer!);
|
||||
currentPlayer.play();
|
||||
_wasPlayingBeforeInactive = false;
|
||||
_updateMediaControlsPlaybackState();
|
||||
} else if (event is PauseEvent) {
|
||||
@@ -786,6 +772,7 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
if (currentPlayer!.state.playing) {
|
||||
currentPlayer.pause();
|
||||
} else {
|
||||
_seekBackForRewind(currentPlayer);
|
||||
currentPlayer.play();
|
||||
_wasPlayingBeforeInactive = false;
|
||||
}
|
||||
@@ -947,15 +934,19 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
|
||||
if (episodes.isEmpty) return;
|
||||
|
||||
// Sort by season then episode number, with Season 0 (Specials) at the end
|
||||
// Sort by aired date, falling back to season/episode number
|
||||
final sorted = List<PlexMetadata>.from(episodes)
|
||||
..sort((a, b) {
|
||||
final aIsSpecial = (a.parentIndex ?? 0) == 0;
|
||||
final bIsSpecial = (b.parentIndex ?? 0) == 0;
|
||||
if (aIsSpecial != bIsSpecial) return aIsSpecial ? 1 : -1;
|
||||
final seasonCmp = (a.parentIndex ?? 0).compareTo(b.parentIndex ?? 0);
|
||||
if (seasonCmp != 0) return seasonCmp;
|
||||
return (a.index ?? 0).compareTo(b.index ?? 0);
|
||||
final aDate = a.originallyAvailableAt ?? '';
|
||||
final bDate = b.originallyAvailableAt ?? '';
|
||||
if (aDate.isEmpty && bDate.isEmpty) {
|
||||
final seasonCmp = (a.parentIndex ?? 0).compareTo(b.parentIndex ?? 0);
|
||||
if (seasonCmp != 0) return seasonCmp;
|
||||
return (a.index ?? 0).compareTo(b.index ?? 0);
|
||||
}
|
||||
if (aDate.isEmpty) return 1;
|
||||
if (bDate.isEmpty) return -1;
|
||||
return aDate.compareTo(bDate);
|
||||
});
|
||||
|
||||
// Find current episode in the sorted list
|
||||
@@ -1011,15 +1002,17 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
_livePlaybackStartTime = DateTime.now();
|
||||
await player!.open(Media(streamUrl, headers: const {'Accept-Language': 'en'}), play: true, isLive: true);
|
||||
|
||||
_trackManager?.cacheExternalSubtitles(const []);
|
||||
|
||||
if (mounted) {
|
||||
setState(() {
|
||||
_availableVersions = [];
|
||||
_currentMediaInfo = null;
|
||||
_isPlayerInitialized = true;
|
||||
});
|
||||
_trackManager?.mediaInfo = null;
|
||||
}
|
||||
|
||||
_startLiveTimelineUpdates();
|
||||
} catch (e) {
|
||||
appLogger.e('Failed to start live TV playback', error: e);
|
||||
_sendLiveTimeline('stopped');
|
||||
@@ -1056,8 +1049,9 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
|
||||
// Open video through Player
|
||||
if (result.videoUrl != null) {
|
||||
// Reset first frame flag for new video
|
||||
// Reset first frame flag and frame rate retry counter for new video
|
||||
_hasFirstFrame.value = false;
|
||||
_frameRateRetries = 0;
|
||||
|
||||
// Request audio focus before starting playback (Android)
|
||||
// This causes other media apps (Spotify, podcasts, etc.) to pause
|
||||
@@ -1085,13 +1079,16 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
'reconnect=1,reconnect_on_network_error=1,reconnect_streamed=1,reconnect_delay_max=600');
|
||||
}
|
||||
|
||||
// If we have external subtitles, open paused to add them before playback starts.
|
||||
// This prevents a race condition on Android where adding subtitle tracks
|
||||
// during active playback can freeze the video decoder (issue #226).
|
||||
final hasExternalSubs = result.externalSubtitles.isNotEmpty;
|
||||
final isExoPlayer = player is PlayerAndroid;
|
||||
|
||||
// ExoPlayer: attach external subs at open time so it discovers
|
||||
// them in a single prepare() — no media reload needed for selection.
|
||||
// MPV (all platforms including Android): external subs added after open via sub-add.
|
||||
await player!.open(
|
||||
Media(result.videoUrl!, start: resumePosition, headers: plexHeaders),
|
||||
play: !hasExternalSubs,
|
||||
play: isExoPlayer || !hasExternalSubs,
|
||||
externalSubtitles: isExoPlayer && hasExternalSubs ? result.externalSubtitles : null,
|
||||
);
|
||||
|
||||
// Apply subtitle styling to ExoPlayer native layer (CaptionStyleCompat + libass font scale)
|
||||
@@ -1183,25 +1180,41 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
}
|
||||
}
|
||||
|
||||
// Add external subtitles while paused, then start playback
|
||||
if (result.externalSubtitles.isNotEmpty) {
|
||||
// Track manager: owns track selection, external subtitle loading, and server sync
|
||||
_trackManager = TrackManager(
|
||||
player: player!,
|
||||
isActive: () => mounted && player != null,
|
||||
getClient: () => _getClientForMetadata(context),
|
||||
getProfileSettings: () => context.read<UserProfileProvider>().profileSettings,
|
||||
waitForProfileSettings: _waitForProfileSettingsIfNeeded,
|
||||
metadata: widget.metadata,
|
||||
mediaInfo: _currentMediaInfo,
|
||||
preferredAudioTrack: widget.preferredAudioTrack,
|
||||
preferredSubtitleTrack: widget.preferredSubtitleTrack,
|
||||
preferredSecondarySubtitleTrack: widget.preferredSecondarySubtitleTrack,
|
||||
showMessage: (message, {duration}) {
|
||||
if (mounted) showAppSnackBar(context, message, duration: duration);
|
||||
},
|
||||
);
|
||||
|
||||
// Store external subtitles for re-use after backend fallback
|
||||
_trackManager!.cacheExternalSubtitles(result.externalSubtitles);
|
||||
|
||||
// MPV with external subs: add after open via sub-add,
|
||||
// opened paused to avoid race condition (issue #226)
|
||||
if (player is! PlayerAndroid && result.externalSubtitles.isNotEmpty) {
|
||||
_hasFirstFrame.value = false;
|
||||
_waitingForExternalSubsTrackSelection = true;
|
||||
_trackManager!.waitingForExternalSubsTrackSelection = true;
|
||||
|
||||
try {
|
||||
await _addExternalSubtitles(result.externalSubtitles);
|
||||
await _trackManager!.addExternalSubtitles(result.externalSubtitles);
|
||||
} finally {
|
||||
await _resumeAfterSubtitleLoad();
|
||||
await _trackManager!.resumeAfterSubtitleLoad();
|
||||
}
|
||||
} else {
|
||||
_trackLoadingSubscription?.cancel();
|
||||
_trackLoadingSubscription = player!.streams.tracks.listen((tracks) {
|
||||
if (tracks.audio.isEmpty && tracks.subtitle.isEmpty) return;
|
||||
|
||||
_trackLoadingSubscription?.cancel();
|
||||
_trackLoadingSubscription = null;
|
||||
_applyTrackSelection();
|
||||
});
|
||||
// Android (subs attached at open time) or no external subs:
|
||||
// apply once tracks are available
|
||||
_trackManager!.applyTrackSelectionWhenReady();
|
||||
}
|
||||
}
|
||||
} on PlaybackException catch (e) {
|
||||
@@ -1217,27 +1230,6 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
}
|
||||
}
|
||||
|
||||
/// Resume playback after external subtitles have been loaded (or failed to load).
|
||||
Future<void> _resumeAfterSubtitleLoad() async {
|
||||
if (player == null || !mounted) return;
|
||||
|
||||
await player!.play();
|
||||
final pos = player!.state.position;
|
||||
try {
|
||||
await player!.seek(pos.inMilliseconds > 0 ? pos : Duration.zero);
|
||||
} catch (e) {
|
||||
appLogger.w('Non-critical seek after subtitle load failed', error: e);
|
||||
}
|
||||
|
||||
// Fallback if playbackRestart doesn't fire
|
||||
Future.delayed(const Duration(seconds: 3), () {
|
||||
if (_waitingForExternalSubsTrackSelection && mounted) {
|
||||
_waitingForExternalSubsTrackSelection = false;
|
||||
_applyTrackSelection();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/// Start playback for offline/downloaded content
|
||||
Future<PlaybackInitializationResult> _startOfflinePlayback() async {
|
||||
final downloadProvider = context.read<DownloadProvider>();
|
||||
@@ -1275,11 +1267,43 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
appLogger.d('Could not load cached media info for offline playback', error: e);
|
||||
}
|
||||
|
||||
// Discover downloaded subtitle files for offline playback
|
||||
final offlineSubtitles = <SubtitleTrack>[];
|
||||
if (!videoPath.startsWith('content://')) {
|
||||
final subsPath = videoPath.replaceAll(RegExp(r'\.[^.]+$'), '_subs');
|
||||
var subsDir = Directory(subsPath);
|
||||
|
||||
// Fallback: legacy structure uses 'subtitles/' in parent dir
|
||||
if (!await subsDir.exists()) {
|
||||
final legacyDir = Directory(p.join(File(videoPath).parent.path, 'subtitles'));
|
||||
if (await legacyDir.exists()) subsDir = legacyDir;
|
||||
}
|
||||
|
||||
if (await subsDir.exists()) {
|
||||
final entities = await subsDir.list().toList();
|
||||
for (final entity in entities) {
|
||||
if (entity is! File) continue;
|
||||
final fileName = p.basenameWithoutExtension(entity.path);
|
||||
final trackId = int.tryParse(fileName);
|
||||
|
||||
final plexTrack = trackId != null
|
||||
? mediaInfo?.subtitleTracks.where((t) => t.id == trackId).firstOrNull
|
||||
: null;
|
||||
|
||||
offlineSubtitles.add(SubtitleTrack.uri(
|
||||
'file://${entity.path}',
|
||||
title: plexTrack?.displayTitle ?? plexTrack?.language ?? 'Subtitle $fileName',
|
||||
language: plexTrack?.languageCode,
|
||||
));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return PlaybackInitializationResult(
|
||||
availableVersions: [],
|
||||
videoUrl: videoPath.contains('://') ? videoPath : 'file://$videoPath',
|
||||
mediaInfo: mediaInfo,
|
||||
externalSubtitles: const [],
|
||||
externalSubtitles: offlineSubtitles,
|
||||
isOffline: true,
|
||||
);
|
||||
}
|
||||
@@ -1608,45 +1632,9 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
_companionRemoteProvider = null;
|
||||
}
|
||||
|
||||
void _cycleSubtitleTrack() {
|
||||
if (player == null) return;
|
||||
final tracks = player!.state.tracks.subtitle.where((t) => t.id != 'auto').toList();
|
||||
if (tracks.isEmpty) return;
|
||||
void _cycleSubtitleTrack() => _trackManager?.cycleSubtitleTrack();
|
||||
|
||||
final current = player!.state.track.subtitle;
|
||||
// tracks includes 'no' (off). Find current index and advance.
|
||||
final currentIndex = tracks.indexWhere((t) => t.id == current?.id);
|
||||
final nextIndex = (currentIndex + 1) % tracks.length;
|
||||
final next = tracks[nextIndex];
|
||||
player!.selectSubtitleTrack(next);
|
||||
_onSubtitleTrackChanged(next);
|
||||
|
||||
if (mounted) {
|
||||
final label = next.id == 'no'
|
||||
? 'Subtitles: Off'
|
||||
: 'Subtitles: ${TrackLabelBuilder.buildSubtitleLabel(title: next.title, language: next.language, codec: next.codec, index: nextIndex)}';
|
||||
showAppSnackBar(context, label, duration: const Duration(seconds: 1));
|
||||
}
|
||||
}
|
||||
|
||||
void _cycleAudioTrack() {
|
||||
if (player == null) return;
|
||||
final tracks = player!.state.tracks.audio.where((t) => t.id != 'auto' && t.id != 'no').toList();
|
||||
if (tracks.length <= 1) return;
|
||||
|
||||
final current = player!.state.track.audio;
|
||||
final currentIndex = tracks.indexWhere((t) => t.id == current?.id);
|
||||
final nextIndex = (currentIndex + 1) % tracks.length;
|
||||
final next = tracks[nextIndex];
|
||||
player!.selectAudioTrack(next);
|
||||
_onAudioTrackChanged(next);
|
||||
|
||||
if (mounted) {
|
||||
final label =
|
||||
'Audio: ${TrackLabelBuilder.buildAudioLabel(title: next.title, language: next.language, codec: next.codec, channelsCount: next.channelsCount, index: nextIndex)}';
|
||||
showAppSnackBar(context, label, duration: const Duration(seconds: 1));
|
||||
}
|
||||
}
|
||||
void _cycleAudioTrack() => _trackManager?.cycleAudioTrack();
|
||||
|
||||
Future<void> _toggleFullscreen() async {
|
||||
if (PlatformDetector.isMobile(context)) return;
|
||||
@@ -1762,7 +1750,7 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
_errorSubscription?.cancel();
|
||||
_mediaControlSubscription?.cancel();
|
||||
_bufferingSubscription?.cancel();
|
||||
_trackLoadingSubscription?.cancel();
|
||||
_trackManager?.dispose();
|
||||
_positionSubscription?.cancel();
|
||||
_playbackRestartSubscription?.cancel();
|
||||
_backendSwitchedSubscription?.cancel();
|
||||
@@ -1888,6 +1876,10 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
}
|
||||
|
||||
void _onVideoCompleted(bool completed) async {
|
||||
// Live TV streams are continuous — ignore spurious EOF events caused by
|
||||
// inter-segment gaps in the chunked MKV transcode stream.
|
||||
if (widget.isLive) return;
|
||||
|
||||
if (completed &&
|
||||
_nextEpisode != null &&
|
||||
!_showPlayNextDialog &&
|
||||
@@ -1940,12 +1932,12 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
}
|
||||
|
||||
/// Handle notification when native player switched from ExoPlayer to MPV
|
||||
void _onBackendSwitched() {
|
||||
appLogger.i('Player backend switched from ExoPlayer to MPV (native fallback)');
|
||||
|
||||
Future<void> _onBackendSwitched() async {
|
||||
if (mounted) {
|
||||
showAppSnackBar(context, t.messages.switchingToCompatiblePlayer);
|
||||
}
|
||||
|
||||
await _trackManager?.onBackendSwitched();
|
||||
}
|
||||
|
||||
// OS Media Controls Integration
|
||||
@@ -1968,6 +1960,12 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> _seekBackForRewind(Player p) async {
|
||||
if (_rewindOnResume <= 0) return;
|
||||
final target = p.state.position - Duration(seconds: _rewindOnResume);
|
||||
await p.seek(clampSeekPosition(p, target));
|
||||
}
|
||||
|
||||
Future<void> _restoreMediaControlsAfterResume() async {
|
||||
if (!_isPlayerInitialized || !mounted) return;
|
||||
|
||||
@@ -1989,6 +1987,7 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
|
||||
if (_wasPlayingBeforeInactive) {
|
||||
try {
|
||||
await _seekBackForRewind(currentPlayer);
|
||||
await currentPlayer.play();
|
||||
appLogger.d('Video resumed after returning from inactive state');
|
||||
} catch (e) {
|
||||
@@ -2057,8 +2056,15 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
final state = player?.state.playing == true ? 'playing' : 'paused';
|
||||
_sendLiveTimeline(state);
|
||||
});
|
||||
// Send initial heartbeat immediately
|
||||
_sendLiveTimeline('playing');
|
||||
// Delay initial heartbeat to let the transcode session stabilize.
|
||||
// Sending time=0 immediately after player.open() causes the server
|
||||
// to spawn a duplicate transcode job with offset=-1 that 404s.
|
||||
Future.delayed(const Duration(seconds: 3), () {
|
||||
if (_liveTimelineTimer != null) {
|
||||
final state = player?.state.playing == true ? 'playing' : 'paused';
|
||||
_sendLiveTimeline(state);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
void _stopLiveTimelineUpdates() {
|
||||
@@ -2119,7 +2125,7 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
final p = player!;
|
||||
// FFmpeg HTTP protocol reconnection
|
||||
await p.setProperty('stream-lavf-o',
|
||||
'reconnect=1,reconnect_at_eof=1,reconnect_streamed=1,reconnect_on_network_error=1,reconnect_delay_max=30');
|
||||
'reconnect=1,reconnect_streamed=1,reconnect_on_network_error=1,reconnect_delay_max=30');
|
||||
// Demuxer: retry up to 1000 times on stream reload failures
|
||||
await p.setProperty('demuxer-lavf-o', 'max_reload=1000');
|
||||
await p.setProperty('force-seekable', 'no');
|
||||
@@ -2312,203 +2318,11 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
}
|
||||
}
|
||||
|
||||
/// Apply track selection using the TrackSelectionService
|
||||
Future<void> _applyTrackSelection() async {
|
||||
if (!mounted || player == null || _isApplyingTrackSelection) return;
|
||||
Future<void> _onAudioTrackChanged(AudioTrack track) async => _trackManager?.onAudioTrackChanged(track);
|
||||
|
||||
_isApplyingTrackSelection = true;
|
||||
try {
|
||||
await _waitForProfileSettingsIfNeeded();
|
||||
if (!mounted || player == null) return;
|
||||
Future<void> _onSubtitleTrackChanged(SubtitleTrack track) async => _trackManager?.onSubtitleTrackChanged(track);
|
||||
|
||||
final profileSettings = context.read<UserProfileProvider>().profileSettings;
|
||||
final settingsService = await SettingsService.getInstance();
|
||||
if (!mounted || player == null) return;
|
||||
|
||||
final trackService = TrackSelectionService(
|
||||
player: player!,
|
||||
profileSettings: profileSettings,
|
||||
metadata: widget.metadata,
|
||||
plexMediaInfo: _currentMediaInfo,
|
||||
);
|
||||
|
||||
await trackService.selectAndApplyTracks(
|
||||
preferredAudioTrack: widget.preferredAudioTrack,
|
||||
preferredSubtitleTrack: widget.preferredSubtitleTrack,
|
||||
preferredSecondarySubtitleTrack: widget.preferredSecondarySubtitleTrack,
|
||||
defaultPlaybackSpeed: settingsService.getDefaultPlaybackSpeed(),
|
||||
onAudioTrackChanged: _onAudioTrackChanged,
|
||||
onSubtitleTrackChanged: _onSubtitleTrackChanged,
|
||||
);
|
||||
} catch (e) {
|
||||
appLogger.w('Failed to apply track selection', error: e);
|
||||
} finally {
|
||||
_isApplyingTrackSelection = false;
|
||||
}
|
||||
}
|
||||
|
||||
/// Rating key used for series/movie level language preferences.
|
||||
String get _preferenceRatingKey {
|
||||
return widget.metadata.isEpisode
|
||||
? (widget.metadata.grandparentRatingKey ?? widget.metadata.ratingKey)
|
||||
: widget.metadata.ratingKey;
|
||||
}
|
||||
|
||||
/// Common guard checks for track change handlers.
|
||||
/// Returns the part ID if all checks pass, or null if the change should be skipped.
|
||||
Future<int?> _guardTrackChange() async {
|
||||
final settings = await SettingsService.getInstance();
|
||||
if (!settings.getRememberTrackSelections()) return null;
|
||||
|
||||
if (_currentMediaInfo == null) {
|
||||
appLogger.w('No media info available, cannot save stream selection');
|
||||
return null;
|
||||
}
|
||||
|
||||
final partId = _currentMediaInfo!.getPartId();
|
||||
if (partId == null) {
|
||||
appLogger.w('No part ID available, cannot save stream selection');
|
||||
}
|
||||
return partId;
|
||||
}
|
||||
|
||||
/// Save language preference and stream selection to the server.
|
||||
Future<void> _saveTrackPreferences({
|
||||
required int partId,
|
||||
required String trackType,
|
||||
String? languageCode,
|
||||
int? streamID,
|
||||
}) async {
|
||||
try {
|
||||
if (!mounted) return;
|
||||
final client = _getClientForMetadata(context);
|
||||
final ratingKey = _preferenceRatingKey;
|
||||
|
||||
final futures = <Future>[];
|
||||
|
||||
if (languageCode != null && (trackType == 'subtitle' || languageCode.isNotEmpty)) {
|
||||
futures.add(
|
||||
trackType == 'audio'
|
||||
? client.setMetadataPreferences(ratingKey, audioLanguage: languageCode)
|
||||
: client.setMetadataPreferences(ratingKey, subtitleLanguage: languageCode),
|
||||
);
|
||||
}
|
||||
if (streamID != null) {
|
||||
futures.add(
|
||||
trackType == 'audio'
|
||||
? client.selectStreams(partId, audioStreamID: streamID, allParts: true)
|
||||
: client.selectStreams(partId, subtitleStreamID: streamID, allParts: true),
|
||||
);
|
||||
}
|
||||
|
||||
await Future.wait(futures);
|
||||
appLogger.d('Successfully saved $trackType preferences (language + stream)');
|
||||
} catch (e) {
|
||||
appLogger.e('Failed to save $trackType preferences', error: e);
|
||||
}
|
||||
}
|
||||
|
||||
/// Match an mpv track against Plex tracks by language and title.
|
||||
int? _matchTrackByAttributes<T>({
|
||||
required String? mpvLanguage,
|
||||
required String? mpvTitle,
|
||||
required List<T> plexTracks,
|
||||
required String? Function(T) getLanguageCode,
|
||||
required String? Function(T) getDisplayTitle,
|
||||
required String? Function(T) getTitle,
|
||||
required int Function(T) getId,
|
||||
}) {
|
||||
final normalizedLang = _iso6391ToPlex6392(mpvLanguage);
|
||||
|
||||
for (final plexTrack in plexTracks) {
|
||||
final matchLang = getLanguageCode(plexTrack) == normalizedLang;
|
||||
final matchTitle = (mpvTitle == null || mpvTitle.isEmpty)
|
||||
? true
|
||||
: (getDisplayTitle(plexTrack) == mpvTitle || getTitle(plexTrack) == mpvTitle);
|
||||
|
||||
if (matchLang && matchTitle) {
|
||||
return getId(plexTrack);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/// Handle audio track changes from the user - save both stream selection and language preference
|
||||
Future<void> _onAudioTrackChanged(AudioTrack track) async {
|
||||
final partId = await _guardTrackChange();
|
||||
if (partId == null) return;
|
||||
|
||||
int? streamID = _matchTrackByAttributes(
|
||||
mpvLanguage: track.language,
|
||||
mpvTitle: track.title,
|
||||
plexTracks: _currentMediaInfo!.audioTracks,
|
||||
getLanguageCode: (t) => t.languageCode,
|
||||
getDisplayTitle: (t) => t.displayTitle,
|
||||
getTitle: (t) => t.title,
|
||||
getId: (t) => t.id,
|
||||
);
|
||||
|
||||
if (streamID != null) {
|
||||
appLogger.d('Matched audio by lang/title: streamID $streamID');
|
||||
} else {
|
||||
final matchedPlex = findPlexTrackForMpvAudio(track, _currentMediaInfo!.audioTracks);
|
||||
streamID = matchedPlex?.id;
|
||||
if (streamID != null) {
|
||||
appLogger.d('Matched audio by properties: streamID $streamID');
|
||||
} else {
|
||||
appLogger.e('Could not match audio track to any Plex track');
|
||||
}
|
||||
}
|
||||
|
||||
await _saveTrackPreferences(partId: partId, trackType: 'audio', languageCode: track.language, streamID: streamID);
|
||||
}
|
||||
|
||||
/// Handle subtitle track changes from the user - save both stream selection and language preference
|
||||
Future<void> _onSubtitleTrackChanged(SubtitleTrack track) async {
|
||||
final partId = await _guardTrackChange();
|
||||
if (partId == null) return;
|
||||
|
||||
String? languageCode;
|
||||
int? streamID;
|
||||
|
||||
if (track.id == 'no') {
|
||||
languageCode = 'none';
|
||||
streamID = 0;
|
||||
appLogger.i('User turned subtitles off, saving preference');
|
||||
} else {
|
||||
languageCode = track.language;
|
||||
|
||||
streamID = _matchTrackByAttributes(
|
||||
mpvLanguage: track.language,
|
||||
mpvTitle: track.title,
|
||||
plexTracks: _currentMediaInfo!.subtitleTracks,
|
||||
getLanguageCode: (t) => t.languageCode,
|
||||
getDisplayTitle: (t) => t.displayTitle,
|
||||
getTitle: (t) => t.title,
|
||||
getId: (t) => t.id,
|
||||
);
|
||||
|
||||
if (streamID != null) {
|
||||
appLogger.d('Matched subtitle by lang/title: streamID $streamID');
|
||||
} else {
|
||||
final matchedPlex = findPlexTrackForMpvSubtitle(track, _currentMediaInfo!.subtitleTracks);
|
||||
streamID = matchedPlex?.id;
|
||||
if (streamID != null) {
|
||||
appLogger.d('Matched subtitle by properties: streamID $streamID');
|
||||
} else {
|
||||
appLogger.e('Could not match subtitle track to any Plex track');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
await _saveTrackPreferences(partId: partId, trackType: 'subtitle', languageCode: languageCode, streamID: streamID);
|
||||
}
|
||||
|
||||
/// Handle secondary subtitle track changes - no server save needed, just preserve for episode navigation
|
||||
void _onSecondarySubtitleTrackChanged(SubtitleTrack track) {
|
||||
// Secondary subtitle preference is carried via player.state.track.secondarySubtitle
|
||||
// which is automatically read during episode navigation. No additional state needed.
|
||||
}
|
||||
void _onSecondarySubtitleTrackChanged(SubtitleTrack track) => _trackManager?.onSecondarySubtitleTrackChanged(track);
|
||||
|
||||
/// Set flag to skip orientation restoration when replacing with another video
|
||||
void setReplacingWithVideo() {
|
||||
@@ -3106,43 +2920,54 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
);
|
||||
},
|
||||
),
|
||||
// Watch Together: reconnecting to host overlay
|
||||
Consumer<WatchTogetherProvider>(
|
||||
builder: (context, provider, child) {
|
||||
if (!provider.isWaitingForHostReconnect) return const SizedBox.shrink();
|
||||
return Positioned(
|
||||
bottom: 120,
|
||||
left: 0,
|
||||
right: 0,
|
||||
child: Center(
|
||||
child: Container(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
|
||||
decoration: const BoxDecoration(
|
||||
color: Colors.black54,
|
||||
borderRadius: BorderRadius.all(Radius.circular(20)),
|
||||
),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
const SizedBox(
|
||||
width: 14,
|
||||
height: 14,
|
||||
child: CircularProgressIndicator(strokeWidth: 2, color: Colors.white),
|
||||
// Watch Together overlays (isolated from video surface repaints)
|
||||
RepaintBoundary(
|
||||
child: Stack(
|
||||
children: [
|
||||
// Watch Together: reconnecting to host overlay
|
||||
Selector<WatchTogetherProvider, bool>(
|
||||
selector: (_, provider) => provider.isWaitingForHostReconnect,
|
||||
builder: (context, isWaiting, child) {
|
||||
if (!isWaiting) return const SizedBox.shrink();
|
||||
return Positioned(
|
||||
bottom: 120,
|
||||
left: 0,
|
||||
right: 0,
|
||||
child: Center(
|
||||
child: Container(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
|
||||
decoration: const BoxDecoration(
|
||||
color: Colors.black54,
|
||||
borderRadius: BorderRadius.all(Radius.circular(20)),
|
||||
),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
if (PlatformDetector.isTV())
|
||||
const Icon(Symbols.sync_rounded, size: 14, color: Colors.white)
|
||||
else
|
||||
const SizedBox(
|
||||
width: 14,
|
||||
height: 14,
|
||||
child: CircularProgressIndicator(strokeWidth: 2, color: Colors.white),
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
Text(
|
||||
t.watchTogether.reconnectingToHost,
|
||||
style: const TextStyle(color: Colors.white, fontSize: 12),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
Text(
|
||||
t.watchTogether.reconnectingToHost,
|
||||
style: const TextStyle(color: Colors.white, fontSize: 12),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
);
|
||||
},
|
||||
// Watch Together: participant join/leave notifications
|
||||
const ParticipantNotificationOverlay(),
|
||||
],
|
||||
),
|
||||
),
|
||||
// Watch Together: participant join/leave notifications
|
||||
const ParticipantNotificationOverlay(),
|
||||
// Black overlay during exit (no spinner - just covers transparency)
|
||||
ValueListenableBuilder<bool>(
|
||||
valueListenable: _isExiting,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import 'dart:isolate';
|
||||
import '../utils/isolate_helper.dart';
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'plex_client.dart';
|
||||
@@ -72,7 +72,11 @@ class BifThumbnailService {
|
||||
try {
|
||||
final bytes = await client.downloadBifFile(partId);
|
||||
if (bytes == null || bytes.isEmpty) return;
|
||||
_entries = await Isolate.run(() => _parseBifBytes(bytes));
|
||||
if (bytes.length > 50 * 1024 * 1024) {
|
||||
appLogger.w('BIF file too large (${bytes.length} bytes), skipping');
|
||||
return;
|
||||
}
|
||||
_entries = await tryIsolateRun(() => _parseBifBytes(bytes));
|
||||
} catch (e) {
|
||||
appLogger.w('BIF download/parse failed', error: e);
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ import 'dart:io';
|
||||
import 'dart:math';
|
||||
|
||||
import 'package:web_socket_channel/io.dart';
|
||||
import '../../utils/future_extensions.dart';
|
||||
|
||||
import '../../models/companion_remote/remote_command.dart';
|
||||
import '../../models/companion_remote/remote_session.dart';
|
||||
@@ -506,7 +507,7 @@ class CompanionRemotePeerService with KeepaliveMixin {
|
||||
}
|
||||
|
||||
try {
|
||||
final winner = await completer.future.timeout(const Duration(seconds: 10));
|
||||
final winner = await completer.future.namedTimeout(const Duration(seconds: 10), operation: 'CompanionRemote race connect');
|
||||
cleanup();
|
||||
|
||||
// Now set up the proper managed connection on the winning address
|
||||
|
||||
@@ -20,6 +20,7 @@ import '../utils/app_logger.dart';
|
||||
import '../utils/codec_utils.dart';
|
||||
import '../utils/global_key_utils.dart';
|
||||
import '../utils/plex_cache_parser.dart';
|
||||
import 'package:sentry_flutter/sentry_flutter.dart';
|
||||
|
||||
/// Context for a download that's been enqueued with background_downloader.
|
||||
/// Carries metadata needed between enqueue and completion callback.
|
||||
@@ -158,9 +159,11 @@ class DownloadManagerService {
|
||||
/// then scans drift for orphaned items.
|
||||
Future<void> recoverInterruptedDownloads() async {
|
||||
try {
|
||||
Sentry.addBreadcrumb(Breadcrumb(message: 'Initializing FileDownloader', category: 'downloads'));
|
||||
await _initializeFileDownloader();
|
||||
|
||||
// Let background_downloader re-enqueue tasks killed by the OS
|
||||
Sentry.addBreadcrumb(Breadcrumb(message: 'Rescheduling killed tasks', category: 'downloads'));
|
||||
final (rescheduled, _) = await FileDownloader().rescheduleKilledTasks();
|
||||
if (rescheduled.isNotEmpty) {
|
||||
appLogger.i('Rescheduled ${rescheduled.length} killed download task(s)');
|
||||
@@ -206,6 +209,7 @@ class DownloadManagerService {
|
||||
}
|
||||
|
||||
// Scan drift for orphaned items stuck in 'downloading'
|
||||
Sentry.addBreadcrumb(Breadcrumb(message: 'Scanning for orphaned downloads', category: 'downloads'));
|
||||
final allDownloads = await _database.select(_database.downloadedMedia).get();
|
||||
for (final item in allDownloads) {
|
||||
if (item.status == DownloadStatus.downloading.index) {
|
||||
@@ -1081,6 +1085,7 @@ class DownloadManagerService {
|
||||
String? errorMessage,
|
||||
String? currentFile,
|
||||
}) {
|
||||
if (_disposed) return;
|
||||
_progressController.add(
|
||||
DownloadProgress(
|
||||
globalKey: globalKey,
|
||||
@@ -1114,6 +1119,7 @@ class DownloadManagerService {
|
||||
|
||||
/// Emit progress update with artwork paths so DownloadProvider can sync
|
||||
void _emitProgressWithArtwork(String globalKey, {String? thumbPath}) {
|
||||
if (_disposed) return;
|
||||
// Emit a progress update containing artwork path
|
||||
// The status is preserved as downloading since artwork is just one step
|
||||
_progressController.add(
|
||||
@@ -1259,6 +1265,7 @@ class DownloadManagerService {
|
||||
|
||||
/// Emit deletion progress update
|
||||
void _emitDeletionProgress(DeletionProgress progress) {
|
||||
if (_disposed) return;
|
||||
_deletionProgressController.add(progress);
|
||||
}
|
||||
|
||||
@@ -1423,6 +1430,9 @@ class DownloadManagerService {
|
||||
|
||||
// Clean up parent directories if empty
|
||||
await _cleanupEmptyDirectories(episode, showYear);
|
||||
|
||||
// Safety net: verify the actual DB-recorded file is gone
|
||||
await _ensureDbFileDeleted(serverId, episode.ratingKey);
|
||||
} catch (e, stack) {
|
||||
appLogger.e('Error deleting episode files', error: e, stackTrace: stack);
|
||||
}
|
||||
@@ -1531,11 +1541,64 @@ class DownloadManagerService {
|
||||
|
||||
// Delete chapter thumbnails (with reference counting)
|
||||
await _deleteChapterThumbnails(serverId, movie.ratingKey);
|
||||
|
||||
// Safety net: verify the actual DB-recorded file is gone
|
||||
await _ensureDbFileDeleted(serverId, movie.ratingKey);
|
||||
} catch (e, stack) {
|
||||
appLogger.e('Error deleting movie files', error: e, stackTrace: stack);
|
||||
}
|
||||
}
|
||||
|
||||
/// Safety net: after metadata-based deletion, verify the actual DB-recorded
|
||||
/// video file is gone. If not, delete it and clean up parent directories.
|
||||
Future<void> _ensureDbFileDeleted(String serverId, String ratingKey) async {
|
||||
try {
|
||||
final globalKey = buildGlobalKey(serverId, ratingKey);
|
||||
final record = await _database.getDownloadedMedia(globalKey);
|
||||
if (record?.videoFilePath == null) return;
|
||||
|
||||
final videoPath = await _storageService.ensureAbsolutePath(record!.videoFilePath!);
|
||||
final videoFile = File(videoPath);
|
||||
if (!await videoFile.exists()) return;
|
||||
|
||||
appLogger.w('Safety net: video still exists after metadata deletion, deleting: $videoPath');
|
||||
await videoFile.delete();
|
||||
|
||||
// Clean up .part file and subtitles directory alongside video
|
||||
await _deleteFileIfExists(File('$videoPath.part'), 'partial download');
|
||||
final subsPath = videoPath.replaceAll(RegExp(r'\.[^.]+$'), '_subs');
|
||||
final subsDir = Directory(subsPath);
|
||||
if (await subsDir.exists()) await subsDir.delete(recursive: true);
|
||||
|
||||
// Walk up empty parent directories toward downloads root
|
||||
await _cleanupEmptyParentDirectories(videoFile.parent);
|
||||
} catch (e, stack) {
|
||||
appLogger.w('Safety net deletion failed', error: e, stackTrace: stack);
|
||||
}
|
||||
}
|
||||
|
||||
/// Walk up from a directory toward the downloads root, removing empty dirs.
|
||||
Future<void> _cleanupEmptyParentDirectories(Directory dir) async {
|
||||
try {
|
||||
final downloadsDir = await _storageService.getDownloadsDirectory();
|
||||
var current = dir;
|
||||
while (current.path != downloadsDir.path &&
|
||||
current.path.startsWith(downloadsDir.path)) {
|
||||
if (!await current.exists()) { current = current.parent; continue; }
|
||||
final contents = await current.list().toList();
|
||||
if (contents.isEmpty) {
|
||||
await current.delete();
|
||||
appLogger.i('Cleaned up empty directory: ${current.path}');
|
||||
current = current.parent;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
appLogger.w('Error cleaning up parent directories', error: e);
|
||||
}
|
||||
}
|
||||
|
||||
/// Clean up empty directories after deleting episode
|
||||
Future<void> _cleanupEmptyDirectories(PlexMetadata episode, int? showYear) async {
|
||||
final seasonDir = await _storageService.getSeasonDirectory(episode, showYear: showYear);
|
||||
@@ -1621,23 +1684,35 @@ class DownloadManagerService {
|
||||
Future<void> _deleteByFilePath(DownloadedMediaItem record) async {
|
||||
try {
|
||||
if (record.videoFilePath != null) {
|
||||
final videoPath = await _storageService.toAbsolutePath(record.videoFilePath!);
|
||||
final videoDeleted = await _deleteFileIfExists(File(videoPath), 'video file');
|
||||
final videoPath = await _storageService.ensureAbsolutePath(record.videoFilePath!);
|
||||
final videoFile = File(videoPath);
|
||||
final videoDeleted = await _deleteFileIfExists(videoFile, 'video file');
|
||||
|
||||
// Delete subtitle directory if video was deleted
|
||||
if (videoDeleted) {
|
||||
// Delete .part file from interrupted downloads
|
||||
await _deleteFileIfExists(File('$videoPath.part'), 'partial download');
|
||||
|
||||
// Delete subtitle directory
|
||||
final subsPath = videoPath.replaceAll(RegExp(r'\.[^.]+$'), '_subs');
|
||||
final subsDir = Directory(subsPath);
|
||||
if (await subsDir.exists()) {
|
||||
await subsDir.delete(recursive: true);
|
||||
appLogger.i('Deleted subtitles: $subsPath');
|
||||
}
|
||||
|
||||
// Clean up empty parent directories
|
||||
await _cleanupEmptyParentDirectories(videoFile.parent);
|
||||
}
|
||||
}
|
||||
|
||||
// thumbPath is a Plex API path (e.g. /library/metadata/123/thumb/...),
|
||||
// not a local file path — resolve it via getArtworkPathFromThumb
|
||||
if (record.thumbPath != null) {
|
||||
final thumbPath = await _storageService.toAbsolutePath(record.thumbPath!);
|
||||
await _deleteFileIfExists(File(thumbPath), 'thumbnail');
|
||||
final parsed = parseGlobalKey(record.globalKey);
|
||||
if (parsed != null) {
|
||||
final thumbPath = await _storageService.getArtworkPathFromThumb(parsed.serverId, record.thumbPath!);
|
||||
await _deleteFileIfExists(File(thumbPath), 'thumbnail');
|
||||
}
|
||||
}
|
||||
} catch (e, stack) {
|
||||
appLogger.e('Error in fallback deletion', error: e, stackTrace: stack);
|
||||
@@ -1673,13 +1748,32 @@ class DownloadManagerService {
|
||||
|
||||
/// Cache metadata in the API response format for offline access
|
||||
/// This simulates what PlexClient would receive from the server
|
||||
/// Merges with existing cache to preserve Chapter/Marker/Media arrays
|
||||
Future<void> _cacheMetadataForOffline(String serverId, String ratingKey, PlexMetadata metadata) async {
|
||||
final endpoint = '/library/metadata/$ratingKey';
|
||||
|
||||
// Build a response structure that matches the Plex API format
|
||||
// Check for existing cache entry to preserve fields not in PlexMetadata
|
||||
final existing = await _apiCache.get(serverId, endpoint);
|
||||
final existingMeta = PlexCacheParser.extractFirstMetadata(existing);
|
||||
|
||||
Map<String, dynamic> merged;
|
||||
if (existingMeta != null) {
|
||||
// Start with existing (has Chapter/Marker/Media), overlay new metadata
|
||||
merged = existingMeta;
|
||||
final newJson = metadata.toJson();
|
||||
// Only update fields that toJson() sets to non-null values
|
||||
for (final entry in newJson.entries) {
|
||||
if (entry.value != null) {
|
||||
merged[entry.key] = entry.value;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
merged = metadata.toJson();
|
||||
}
|
||||
|
||||
final cachedResponse = {
|
||||
'MediaContainer': {
|
||||
'Metadata': [metadata.toJson()],
|
||||
'Metadata': [merged],
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -17,8 +17,8 @@ class PlexImageCacheManager extends CacheManager with ImageCacheManager {
|
||||
: super(
|
||||
Config(
|
||||
_key,
|
||||
stalePeriod: const Duration(days: 30),
|
||||
maxNrOfCacheObjects: 5000,
|
||||
stalePeriod: const Duration(days: 14),
|
||||
maxNrOfCacheObjects: 3000,
|
||||
fileService: HttpFileService(
|
||||
httpClient: IOClient(
|
||||
HttpClient()..maxConnectionsPerHost = 6,
|
||||
|
||||
@@ -139,31 +139,4 @@ class InAppReviewService {
|
||||
// Reset session count so user needs to use app more before next prompt
|
||||
await prefs.setInt(_keyQualifyingSessionsCount, 0);
|
||||
}
|
||||
|
||||
/// Get debug info about the current state (for development/testing)
|
||||
Future<Map<String, dynamic>> getDebugInfo() async {
|
||||
final prefs = await _getPrefs();
|
||||
final sessionCount = prefs.getInt(_keyQualifyingSessionsCount) ?? 0;
|
||||
final lastPromptString = prefs.getString(_keyLastPromptTime);
|
||||
final isAvailable = await _inAppReview.isAvailable();
|
||||
|
||||
return {
|
||||
'isEnabled': isEnabled,
|
||||
'isAvailable': isAvailable,
|
||||
'qualifyingSessions': sessionCount,
|
||||
'requiredSessions': _requiredSessions,
|
||||
'lastPromptTime': lastPromptString,
|
||||
'cooldownDays': _promptCooldown.inDays,
|
||||
'currentSessionStartTime': _sessionStartTime?.toIso8601String(),
|
||||
};
|
||||
}
|
||||
|
||||
/// Reset all stored data (for testing purposes)
|
||||
Future<void> reset() async {
|
||||
final prefs = await _getPrefs();
|
||||
await prefs.remove(_keyQualifyingSessionsCount);
|
||||
await prefs.remove(_keyLastPromptTime);
|
||||
_sessionStartTime = null;
|
||||
appLogger.d('In-app review: State reset');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -290,12 +290,12 @@ class KeyboardShortcutsService {
|
||||
onPreviousChapter?.call();
|
||||
break;
|
||||
case 'speed_increase':
|
||||
final newRateUp = (player.state.rate + 0.1).clamp(0.1, 3.0);
|
||||
final newRateUp = (player.state.rate + 0.25).clamp(0.25, 3.0);
|
||||
player.setRate(newRateUp);
|
||||
_settingsService.setDefaultPlaybackSpeed(newRateUp);
|
||||
break;
|
||||
case 'speed_decrease':
|
||||
final newRateDown = (player.state.rate - 0.1).clamp(0.1, 3.0);
|
||||
final newRateDown = (player.state.rate - 0.25).clamp(0.25, 3.0);
|
||||
player.setRate(newRateDown);
|
||||
_settingsService.setDefaultPlaybackSpeed(newRateDown);
|
||||
break;
|
||||
@@ -368,23 +368,6 @@ class KeyboardShortcutsService {
|
||||
}
|
||||
}
|
||||
|
||||
// Validate if a key combination is valid (legacy method for backward compatibility)
|
||||
bool isValidKeyShortcut(String keyString) {
|
||||
// For backward compatibility, assume all non-empty strings are valid
|
||||
// The new system will use HotKey objects for validation
|
||||
return keyString.isNotEmpty;
|
||||
}
|
||||
|
||||
// Check if a shortcut is already assigned to another action
|
||||
String? getActionForShortcut(String keyString) {
|
||||
for (final entry in _shortcuts.entries) {
|
||||
if (entry.value == keyString) {
|
||||
return entry.key;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
// Check if a hotkey is already assigned to another action
|
||||
String? getActionForHotkey(HotKey hotkey) {
|
||||
for (final entry in _hotkeys.entries) {
|
||||
|
||||
@@ -6,6 +6,7 @@ import 'plex_client.dart';
|
||||
import '../models/plex_config.dart';
|
||||
import '../utils/app_logger.dart';
|
||||
import '../utils/connection_constants.dart';
|
||||
import 'package:sentry_flutter/sentry_flutter.dart';
|
||||
import 'plex_auth_service.dart';
|
||||
import 'storage_service.dart';
|
||||
|
||||
@@ -109,7 +110,7 @@ class MultiServerManager {
|
||||
clientIdentifier: clientIdentifier,
|
||||
);
|
||||
|
||||
final client = PlexClient(
|
||||
final client = await PlexClient.create(
|
||||
config,
|
||||
serverId: serverId,
|
||||
serverName: server.name,
|
||||
@@ -183,6 +184,7 @@ class MultiServerManager {
|
||||
}
|
||||
|
||||
appLogger.i('Connecting to ${servers.length} servers...');
|
||||
Sentry.addBreadcrumb(Breadcrumb(message: 'Connecting to ${servers.length} server(s)', category: 'servers'));
|
||||
|
||||
// Use provided client ID or generate a unique one for this app instance
|
||||
final effectiveClientId = clientIdentifier ?? DateTime.now().millisecondsSinceEpoch.toString();
|
||||
@@ -486,6 +488,7 @@ class MultiServerManager {
|
||||
if (offline.isEmpty) return;
|
||||
|
||||
appLogger.d('Attempting reconnection for ${offline.length} offline servers');
|
||||
Sentry.addBreadcrumb(Breadcrumb(message: 'Reconnecting ${offline.length} offline server(s)', category: 'servers'));
|
||||
|
||||
final futures = offline.map((serverId) {
|
||||
final server = _servers[serverId];
|
||||
|
||||
@@ -5,6 +5,7 @@ import 'package:flutter/foundation.dart';
|
||||
import '../database/app_database.dart';
|
||||
import '../providers/offline_mode_provider.dart';
|
||||
import '../utils/app_logger.dart';
|
||||
import '../utils/plex_cache_parser.dart';
|
||||
import 'multi_server_manager.dart';
|
||||
import 'plex_api_cache.dart';
|
||||
import 'plex_client.dart';
|
||||
@@ -421,11 +422,32 @@ class OfflineWatchSyncService extends ChangeNotifier {
|
||||
for (final episode in seasonEpisodes) {
|
||||
if (!downloadedEpisodeKeys.contains(episode.ratingKey)) continue;
|
||||
|
||||
await PlexApiCache.instance.put(serverId, '/library/metadata/${episode.ratingKey}', {
|
||||
'MediaContainer': {
|
||||
'Metadata': [episode.toJson()],
|
||||
},
|
||||
});
|
||||
final cacheKey = '/library/metadata/${episode.ratingKey}';
|
||||
final existing = await PlexApiCache.instance.get(serverId, cacheKey);
|
||||
final existingMeta = PlexCacheParser.extractFirstMetadata(existing);
|
||||
|
||||
if (existingMeta != null) {
|
||||
// Only update watch-state fields — preserves Chapter/Marker/Media/etc.
|
||||
existingMeta['viewCount'] = episode.viewCount;
|
||||
existingMeta['viewOffset'] = episode.viewOffset;
|
||||
existingMeta['lastViewedAt'] = episode.lastViewedAt;
|
||||
existingMeta['viewedLeafCount'] = episode.viewedLeafCount;
|
||||
await PlexApiCache.instance.put(serverId, cacheKey, {
|
||||
'MediaContainer': {'Metadata': [existingMeta]},
|
||||
});
|
||||
|
||||
// Repair corrupted entries (missing Media/Chapter from previous overwrites)
|
||||
if (existingMeta['Media'] == null) {
|
||||
try {
|
||||
await client.getMetadataWithImages(episode.ratingKey);
|
||||
} catch (_) {}
|
||||
}
|
||||
} else {
|
||||
// No existing entry — write what we have
|
||||
await PlexApiCache.instance.put(serverId, cacheKey, {
|
||||
'MediaContainer': {'Metadata': [episode.toJson()]},
|
||||
});
|
||||
}
|
||||
synced++;
|
||||
}
|
||||
|
||||
@@ -501,13 +523,10 @@ class OfflineWatchSyncService extends ChangeNotifier {
|
||||
await _withOnlineClient(serverId, (client) async {
|
||||
for (final ratingKey in ratingKeys) {
|
||||
try {
|
||||
// getMetadataWithImages already caches the full API response
|
||||
// (with chapters/markers) via _fetchWithCacheFallback internally
|
||||
final metadata = await client.getMetadataWithImages(ratingKey);
|
||||
if (metadata != null) {
|
||||
await PlexApiCache.instance.put(serverId, '/library/metadata/$ratingKey', {
|
||||
'MediaContainer': {
|
||||
'Metadata': [metadata.toJson()],
|
||||
},
|
||||
});
|
||||
syncedCount++;
|
||||
}
|
||||
} catch (e) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import 'dart:convert';
|
||||
import 'dart:isolate';
|
||||
import '../utils/isolate_helper.dart';
|
||||
|
||||
import 'package:drift/drift.dart';
|
||||
|
||||
@@ -42,7 +42,7 @@ class PlexApiCache {
|
||||
final result = await (_db.select(_db.apiCache)..where((t) => t.cacheKey.equals(key))).getSingleOrNull();
|
||||
|
||||
if (result != null) {
|
||||
return await Isolate.run(() => jsonDecode(result.data) as Map<String, dynamic>);
|
||||
return await tryIsolateRun(() => jsonDecode(result.data) as Map<String, dynamic>);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -50,7 +50,7 @@ class PlexApiCache {
|
||||
/// Cache a response for an endpoint
|
||||
Future<void> put(String serverId, String endpoint, Map<String, dynamic> data) async {
|
||||
final key = _buildKey(serverId, endpoint);
|
||||
final encoded = await Isolate.run(() => jsonEncode(data));
|
||||
final encoded = await tryIsolateRun(() => jsonEncode(data));
|
||||
await _db
|
||||
.into(_db.apiCache)
|
||||
.insertOnConflictUpdate(ApiCacheCompanion(cacheKey: Value(key), data: Value(encoded), cachedAt: Value(DateTime.now())));
|
||||
@@ -145,7 +145,7 @@ class PlexApiCache {
|
||||
|
||||
if (entries.isEmpty) return {};
|
||||
|
||||
return await Isolate.run(() {
|
||||
return await tryIsolateRun(() {
|
||||
final result = <String, PlexMetadata>{};
|
||||
for (final (serverId, ratingKey, rawData) in entries) {
|
||||
try {
|
||||
|
||||
+263
-117
@@ -1,6 +1,6 @@
|
||||
import 'dart:async';
|
||||
import 'dart:convert';
|
||||
import 'dart:isolate';
|
||||
import '../utils/isolate_helper.dart';
|
||||
import 'dart:math';
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
||||
@@ -112,7 +112,7 @@ class ConnectionTestResult {
|
||||
ConnectionTestResult({required this.success, required this.latencyMs, this.error});
|
||||
}
|
||||
|
||||
// Top-level function required by compute()
|
||||
// Top-level function required by tryIsolateRun()
|
||||
String _decodeUtf8(List<int> bytes) {
|
||||
return utf8.decode(bytes, allowMalformed: true);
|
||||
}
|
||||
@@ -136,6 +136,12 @@ class PlexClient {
|
||||
/// Whether to operate in offline mode (use cache only)
|
||||
bool _offlineMode = false;
|
||||
|
||||
/// Libraries parsed from /media/providers (includes individually shared items)
|
||||
late final List<PlexLibrary> _providerLibraries;
|
||||
|
||||
/// EPG providers parsed from /media/providers
|
||||
late final List<({String identifier, String gridEndpoint})> _providerEpg;
|
||||
|
||||
/// Set offline mode - when true, only cached responses are returned
|
||||
void setOfflineMode(bool offline) {
|
||||
_offlineMode = offline;
|
||||
@@ -152,12 +158,34 @@ class PlexClient {
|
||||
ResponseBody responseBody,
|
||||
) {
|
||||
if (responseBytes.length > 50 * 1024) {
|
||||
return compute(_decodeUtf8, responseBytes);
|
||||
return tryIsolateRun(() => _decodeUtf8(responseBytes));
|
||||
}
|
||||
return utf8.decode(responseBytes, allowMalformed: true);
|
||||
}
|
||||
|
||||
PlexClient(
|
||||
/// Create a fully initialized PlexClient.
|
||||
/// Fetches /media/providers to discover libraries (including individually shared items) and EPG providers.
|
||||
static Future<PlexClient> create(
|
||||
PlexConfig config, {
|
||||
required String serverId,
|
||||
String? serverName,
|
||||
List<String>? prioritizedEndpoints,
|
||||
Future<void> Function(String newBaseUrl)? onEndpointChanged,
|
||||
VoidCallback? onAllEndpointsExhausted,
|
||||
}) async {
|
||||
final client = PlexClient._(
|
||||
config,
|
||||
serverId: serverId,
|
||||
serverName: serverName,
|
||||
prioritizedEndpoints: prioritizedEndpoints,
|
||||
onEndpointChanged: onEndpointChanged,
|
||||
onAllEndpointsExhausted: onAllEndpointsExhausted,
|
||||
);
|
||||
await client._initMediaProviders();
|
||||
return client;
|
||||
}
|
||||
|
||||
PlexClient._(
|
||||
this.config, {
|
||||
required this.serverId,
|
||||
this.serverName,
|
||||
@@ -203,6 +231,106 @@ class PlexClient {
|
||||
}
|
||||
}
|
||||
|
||||
/// Fetch /media/providers and parse libraries + EPG providers from the response.
|
||||
/// This discovers individually shared items that don't appear in /library/sections.
|
||||
Future<void> _initMediaProviders() async {
|
||||
try {
|
||||
final response = await _dio.get('/media/providers');
|
||||
final container = _getMediaContainer(response);
|
||||
if (container == null) {
|
||||
_providerLibraries = [];
|
||||
_providerEpg = [];
|
||||
return;
|
||||
}
|
||||
|
||||
final providers = container['MediaProvider'] as List?;
|
||||
if (providers == null) {
|
||||
_providerLibraries = [];
|
||||
_providerEpg = [];
|
||||
return;
|
||||
}
|
||||
|
||||
// Parse libraries from the library provider
|
||||
final libraries = <PlexLibrary>[];
|
||||
final epg = <({String identifier, String gridEndpoint})>[];
|
||||
|
||||
for (final provider in providers) {
|
||||
if (provider is! Map) continue;
|
||||
final identifier = provider['identifier'] as String?;
|
||||
if (identifier == null) continue;
|
||||
|
||||
final features = provider['Feature'] as List?;
|
||||
if (features == null) continue;
|
||||
|
||||
// Library provider — extract directories as libraries
|
||||
if (identifier == 'com.plexapp.plugins.library') {
|
||||
for (final feature in features) {
|
||||
if (feature is! Map) continue;
|
||||
if (feature['type'] != 'content') continue;
|
||||
|
||||
final directories = feature['Directory'] as List?;
|
||||
if (directories == null) continue;
|
||||
|
||||
for (final dir in directories) {
|
||||
try {
|
||||
if (dir is! Map<String, dynamic>) continue;
|
||||
|
||||
// Skip entries without id (Home hub) and playlists
|
||||
final id = dir['id']?.toString();
|
||||
if (id == null) continue;
|
||||
if (dir['type'] == 'playlist') continue;
|
||||
|
||||
final isNumericId = int.tryParse(id) != null;
|
||||
final isSharedLibrary = !isNumericId &&
|
||||
dir['key']?.toString().startsWith('/library/shared') == true;
|
||||
|
||||
// Skip non-numeric IDs unless it's a shared library
|
||||
if (!isNumericId && !isSharedLibrary) continue;
|
||||
|
||||
// Set key = id so downstream code gets a plain section ID (e.g. "1" or "shared")
|
||||
final json = Map<String, dynamic>.from(dir);
|
||||
json['key'] = id;
|
||||
|
||||
libraries.add(
|
||||
PlexLibrary.fromJson(json).copyWith(
|
||||
serverId: serverId,
|
||||
serverName: serverName,
|
||||
isShared: isSharedLibrary,
|
||||
),
|
||||
);
|
||||
} catch (e) {
|
||||
appLogger.w('Failed to parse media provider directory entry', error: e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// EPG provider — extract grid endpoints
|
||||
final protocols = provider['protocols'] as String?;
|
||||
if (protocols != null && protocols.contains('livetv')) {
|
||||
for (final feature in features) {
|
||||
if (feature is! Map) continue;
|
||||
if (feature['type'] == 'grid') {
|
||||
final gridEndpoint = feature['key'] as String?;
|
||||
if (gridEndpoint != null) {
|
||||
epg.add((identifier: identifier, gridEndpoint: gridEndpoint));
|
||||
appLogger.d('Discovered EPG provider: $identifier (grid: $gridEndpoint)');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
_providerLibraries = libraries;
|
||||
_providerEpg = epg;
|
||||
appLogger.d('Media providers: ${libraries.length} libraries, ${epg.length} EPG provider(s)');
|
||||
} catch (e) {
|
||||
appLogger.w('Failed to fetch /media/providers, will fall back to /library/sections', error: e);
|
||||
_providerLibraries = [];
|
||||
_providerEpg = [];
|
||||
}
|
||||
}
|
||||
|
||||
/// Update the token used by this client
|
||||
void updateToken(String newToken) {
|
||||
// Update both the Dio headers and the config to ensure consistency
|
||||
@@ -413,8 +541,12 @@ class PlexClient {
|
||||
}
|
||||
|
||||
/// Get library sections
|
||||
/// Returns libraries automatically tagged with this client's serverId and serverName
|
||||
/// Returns libraries automatically tagged with this client's serverId and serverName.
|
||||
/// Prefers /media/providers data (includes individually shared items),
|
||||
/// falls back to /library/sections for old servers.
|
||||
Future<List<PlexLibrary>> getLibraries() async {
|
||||
if (_providerLibraries.isNotEmpty) return _providerLibraries;
|
||||
// Fallback for old servers that don't support /media/providers
|
||||
final response = await _dio.get('/library/sections');
|
||||
return _extractLibraryList(response);
|
||||
}
|
||||
@@ -436,8 +568,12 @@ class PlexClient {
|
||||
queryParams.addAll(filters);
|
||||
}
|
||||
|
||||
final endpoint = sectionId == 'shared'
|
||||
? '/library/shared/all'
|
||||
: '/library/sections/$sectionId/all';
|
||||
|
||||
final response = await _dio.get(
|
||||
'/library/sections/$sectionId/all',
|
||||
endpoint,
|
||||
queryParameters: queryParams,
|
||||
cancelToken: cancelToken,
|
||||
);
|
||||
@@ -599,9 +735,7 @@ class PlexClient {
|
||||
}
|
||||
try {
|
||||
final response = await networkCall();
|
||||
if (cacheResponse && response.data != null) {
|
||||
await _cache.put(serverId, cacheKey, response.data);
|
||||
}
|
||||
if (cacheResponse) await _cacheResponseData(cacheKey, response.data);
|
||||
return parseResponse(response);
|
||||
} catch (e) {
|
||||
// On forceRefresh, still try cache as last resort on network error
|
||||
@@ -627,12 +761,18 @@ class PlexClient {
|
||||
if (cached != null) return parseCache(cached);
|
||||
if (_offlineMode) return null;
|
||||
final response = await networkCall();
|
||||
if (cacheResponse && response.data != null) {
|
||||
await _cache.put(serverId, cacheKey, response.data);
|
||||
}
|
||||
if (cacheResponse) await _cacheResponseData(cacheKey, response.data);
|
||||
return parseResponse(response);
|
||||
}
|
||||
|
||||
Future<void> _cacheResponseData(String cacheKey, dynamic data) async {
|
||||
if (data is Map<String, dynamic>) {
|
||||
await _cache.put(serverId, cacheKey, data);
|
||||
} else if (data != null) {
|
||||
appLogger.w('Unexpected response type for $cacheKey: ${data.runtimeType}');
|
||||
}
|
||||
}
|
||||
|
||||
/// Get first metadata JSON from response data
|
||||
Map<String, dynamic>? _getFirstMetadataJsonFromData(Map<String, dynamic>? data) =>
|
||||
PlexCacheParser.extractFirstMetadata(data);
|
||||
@@ -795,52 +935,41 @@ class PlexClient {
|
||||
return true;
|
||||
}
|
||||
|
||||
/// Search across all libraries using the hub search endpoint
|
||||
/// Only returns movies and shows, filtering out seasons and episodes
|
||||
Future<List<PlexMetadata>> search(String query, {int limit = 10}) async {
|
||||
/// Search across all libraries including individually shared items.
|
||||
/// Uses /library/search (same endpoint as Plex Web) which finds shared content.
|
||||
/// Only returns movies and shows, filtering out other types.
|
||||
Future<List<PlexMetadata>> search(String query, {int limit = 30}) async {
|
||||
final response = await _dio.get(
|
||||
'/hubs/search',
|
||||
queryParameters: {'query': query, 'limit': limit, 'includeCollections': 1},
|
||||
'/library/search',
|
||||
queryParameters: {
|
||||
'query': query,
|
||||
'limit': limit,
|
||||
'searchTypes': 'movies,tv',
|
||||
'includeCollections': 1,
|
||||
'includeExternalMedia': 1,
|
||||
},
|
||||
);
|
||||
|
||||
final results = <PlexMetadata>[];
|
||||
|
||||
final container = _getMediaContainer(response);
|
||||
if (container != null) {
|
||||
if (container['Hub'] != null) {
|
||||
// Each hub contains results of a specific type (movies, shows, etc.)
|
||||
for (final hub in container['Hub'] as List) {
|
||||
final hubType = hub['type'] as String?;
|
||||
if (container == null) return results;
|
||||
|
||||
// Only include movie and show hubs
|
||||
if (hubType != 'movie' && hubType != 'show') {
|
||||
continue;
|
||||
}
|
||||
final searchResults = container['SearchResult'] as List?;
|
||||
if (searchResults == null) return results;
|
||||
|
||||
// Hubs can contain either Metadata (for movies) or Directory (for shows)
|
||||
if (hub['Metadata'] != null) {
|
||||
for (final json in hub['Metadata'] as List) {
|
||||
try {
|
||||
results.add(_createTaggedMetadata(json));
|
||||
} catch (e) {
|
||||
// Skip items that fail to parse
|
||||
appLogger.w('Failed to parse search result', error: e);
|
||||
appLogger.d('Problematic JSON: $json');
|
||||
}
|
||||
}
|
||||
}
|
||||
if (hub['Directory'] != null) {
|
||||
for (final json in hub['Directory'] as List) {
|
||||
try {
|
||||
results.add(_createTaggedMetadata(json));
|
||||
} catch (e) {
|
||||
// Skip items that fail to parse
|
||||
appLogger.w('Failed to parse search result', error: e);
|
||||
appLogger.d('Problematic JSON: $json');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
for (final result in searchResults) {
|
||||
try {
|
||||
if (result is! Map) continue;
|
||||
final metadata = result['Metadata'];
|
||||
if (metadata is! Map<String, dynamic>) continue;
|
||||
|
||||
final type = metadata['type'] as String?;
|
||||
if (type != 'movie' && type != 'show') continue;
|
||||
|
||||
results.add(_createTaggedMetadata(metadata));
|
||||
} catch (e) {
|
||||
appLogger.w('Failed to parse search result', error: e);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -864,7 +993,7 @@ class PlexClient {
|
||||
final response = await _dio.get('/library/onDeck');
|
||||
final sid = serverId;
|
||||
final sname = serverName;
|
||||
return Isolate.run(() => _processOnDeckResponse(response.data as Map<String, dynamic>, sid, sname));
|
||||
return await tryIsolateRun(() => _processOnDeckResponse(response.data as Map<String, dynamic>, sid, sname));
|
||||
}
|
||||
|
||||
/// Get children of a metadata item (e.g., seasons for a show, episodes for a season)
|
||||
@@ -954,9 +1083,10 @@ class PlexClient {
|
||||
|
||||
/// Get chapters and markers from cached metadata or fetch if needed
|
||||
/// Uses same cache key as other metadata methods for consistency
|
||||
Future<PlaybackExtras> getPlaybackExtras(String ratingKey, {String? introPattern, String? creditsPattern}) async {
|
||||
Future<PlaybackExtras> getPlaybackExtras(String ratingKey, {String? introPattern, String? creditsPattern, bool forceRefresh = false}) async {
|
||||
try {
|
||||
final data = await _fetchWithCacheFirst<Map<String, dynamic>>(
|
||||
final fetch = forceRefresh ? _fetchWithCacheFallback : _fetchWithCacheFirst;
|
||||
final data = await fetch<Map<String, dynamic>>(
|
||||
cacheKey: '/library/metadata/$ratingKey',
|
||||
networkCall: () =>
|
||||
_dio.get('/library/metadata/$ratingKey', queryParameters: {'includeChapters': 1, 'includeMarkers': 1}),
|
||||
@@ -1251,6 +1381,7 @@ class PlexClient {
|
||||
|
||||
/// Get available filters for a library section
|
||||
Future<List<PlexFilter>> getLibraryFilters(String sectionId) async {
|
||||
if (sectionId == 'shared') return [];
|
||||
final response = await _dio.get('/library/sections/$sectionId/filters');
|
||||
return _extractDirectoryList(response, PlexFilter.fromJson);
|
||||
}
|
||||
@@ -1280,6 +1411,12 @@ class PlexClient {
|
||||
/// If [libraryType] is provided (e.g., 'movie', 'show'), it's used for fallback
|
||||
/// sorts without needing to re-fetch the library sections list.
|
||||
Future<List<PlexSort>> getLibrarySorts(String sectionId, {String? libraryType}) async {
|
||||
if (sectionId == 'shared') {
|
||||
return [
|
||||
PlexSort(key: 'titleSort', descKey: 'titleSort:desc', title: 'Title', defaultDirection: 'asc'),
|
||||
PlexSort(key: 'taggingCreatedAt', descKey: 'taggingCreatedAt:desc', title: 'Date Shared', defaultDirection: 'desc'),
|
||||
];
|
||||
}
|
||||
try {
|
||||
// Use the dedicated sorts endpoint
|
||||
final response = await _dio.get('/library/sections/$sectionId/sorts');
|
||||
@@ -1344,7 +1481,7 @@ class PlexClient {
|
||||
);
|
||||
final sid = serverId;
|
||||
final sname = serverName;
|
||||
return Isolate.run(() => _processHubResponse(response.data as Map<String, dynamic>, sid, sname));
|
||||
return await tryIsolateRun(() => _processHubResponse(response.data as Map<String, dynamic>, sid, sname));
|
||||
} catch (e) {
|
||||
appLogger.e('Failed to get library hubs: $e');
|
||||
}
|
||||
@@ -1359,7 +1496,7 @@ class PlexClient {
|
||||
final response = await _dio.get('/hubs', queryParameters: {'count': limit, 'includeGuids': 1});
|
||||
final sid = serverId;
|
||||
final sname = serverName;
|
||||
return Isolate.run(() => _processHubResponse(response.data as Map<String, dynamic>, sid, sname));
|
||||
return await tryIsolateRun(() => _processHubResponse(response.data as Map<String, dynamic>, sid, sname));
|
||||
} catch (e) {
|
||||
appLogger.e('Failed to get global hubs: $e');
|
||||
}
|
||||
@@ -1844,21 +1981,27 @@ class PlexClient {
|
||||
String? startingEpisodeKey,
|
||||
}) async {
|
||||
try {
|
||||
// Get machine identifier for building the URI
|
||||
final machineId = config.machineIdentifier ?? await getMachineIdentifier();
|
||||
if (machineId == null) {
|
||||
throw Exception('Could not get server machine identifier');
|
||||
}
|
||||
|
||||
// Build the URI for the show's episodes
|
||||
final uri = 'server://$machineId/com.plexapp.plugins.library/library/metadata/$showRatingKey/children';
|
||||
// When starting from a specific episode, use continuous mode
|
||||
// This lets the server determine playback order (respects episodeSort)
|
||||
if (startingEpisodeKey != null && shuffle == 0) {
|
||||
final uri = 'server://$machineId/com.plexapp.plugins.library/library/metadata/$startingEpisodeKey';
|
||||
return await createPlayQueue(
|
||||
uri: uri,
|
||||
type: 'video',
|
||||
continuous: 1,
|
||||
);
|
||||
}
|
||||
|
||||
// Create the play queue with optional starting episode
|
||||
final uri = 'server://$machineId/com.plexapp.plugins.library/library/metadata/$showRatingKey/children';
|
||||
return await createPlayQueue(
|
||||
uri: uri,
|
||||
type: 'video',
|
||||
shuffle: shuffle,
|
||||
key: startingEpisodeKey != null ? '/library/metadata/$startingEpisodeKey' : null,
|
||||
);
|
||||
} catch (e) {
|
||||
appLogger.e('Failed to create show play queue', error: e);
|
||||
@@ -2073,14 +2216,9 @@ class PlexClient {
|
||||
return dvrs.isNotEmpty;
|
||||
}
|
||||
|
||||
/// Get EPG channels for a specific lineup
|
||||
/// Get EPG channels using provider lineup endpoints (matches official Plex web client)
|
||||
Future<List<LiveTvChannel>> getEpgChannels({String? lineup}) async {
|
||||
final queryParams = <String, dynamic>{};
|
||||
if (lineup != null) queryParams['lineup'] = lineup;
|
||||
|
||||
return _wrapListApiCall<LiveTvChannel>(() => _dio.get('/livetv/epg/channels', queryParameters: queryParams), (
|
||||
response,
|
||||
) {
|
||||
List<LiveTvChannel> parseChannels(Response response) {
|
||||
final container = _getMediaContainer(response);
|
||||
if (container != null && container['Channel'] is List && (container['Channel'] as List).isNotEmpty) {
|
||||
appLogger.d('EPG channel sample: ${(container['Channel'] as List).first}');
|
||||
@@ -2095,7 +2233,6 @@ class PlexClient {
|
||||
.where((ch) => ch.key.isNotEmpty)
|
||||
.toList();
|
||||
}
|
||||
// Also check for Metadata key (some endpoints return channels there)
|
||||
if (container != null && container['Metadata'] != null) {
|
||||
return (container['Metadata'] as List)
|
||||
.map(
|
||||
@@ -2108,58 +2245,23 @@ class PlexClient {
|
||||
}
|
||||
appLogger.d('EPG channels: container keys=${container?.keys.toList()}, size=${container?['size']}');
|
||||
return [];
|
||||
}, 'Failed to get EPG channels');
|
||||
}
|
||||
|
||||
final allChannels = <LiveTvChannel>[];
|
||||
for (final provider in _providerEpg) {
|
||||
try {
|
||||
final response = await _dio.get('/${provider.identifier}/lineups/dvr/channels');
|
||||
allChannels.addAll(parseChannels(response));
|
||||
} catch (e) {
|
||||
appLogger.e('Failed to get EPG channels from ${provider.identifier}', error: e);
|
||||
}
|
||||
}
|
||||
return allChannels;
|
||||
}
|
||||
|
||||
/// Cached EPG providers (discovered from /media/providers)
|
||||
List<({String identifier, String gridEndpoint})>? _epgProviders;
|
||||
|
||||
/// Discover all EPG providers from media providers
|
||||
/// Return EPG providers (already parsed from /media/providers during initialization)
|
||||
Future<List<({String identifier, String gridEndpoint})>> _discoverEpgProviders() async {
|
||||
if (_epgProviders != null) return _epgProviders!;
|
||||
|
||||
try {
|
||||
final response = await _dio.get('/media/providers');
|
||||
final container = _getMediaContainer(response);
|
||||
if (container == null) return [];
|
||||
|
||||
final providers = container['MediaProvider'] as List?;
|
||||
if (providers == null) return [];
|
||||
|
||||
final results = <({String identifier, String gridEndpoint})>[];
|
||||
|
||||
for (final provider in providers) {
|
||||
if (provider is! Map) continue;
|
||||
final protocols = provider['protocols'] as String?;
|
||||
if (protocols == null || !protocols.contains('livetv')) continue;
|
||||
|
||||
final identifier = provider['identifier'] as String?;
|
||||
if (identifier == null) continue;
|
||||
|
||||
final features = provider['Feature'] as List?;
|
||||
if (features == null) continue;
|
||||
for (final feature in features) {
|
||||
if (feature is! Map) continue;
|
||||
if (feature['type'] == 'grid') {
|
||||
final gridEndpoint = feature['key'] as String?;
|
||||
if (gridEndpoint != null) {
|
||||
results.add((identifier: identifier, gridEndpoint: gridEndpoint));
|
||||
appLogger.d('Discovered EPG provider: $identifier (grid: $gridEndpoint)');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
_epgProviders = results;
|
||||
appLogger.d('Discovered ${results.length} EPG provider(s)');
|
||||
if (results.isEmpty) {
|
||||
appLogger.w('No EPG providers found');
|
||||
}
|
||||
return results;
|
||||
} catch (e) {
|
||||
appLogger.e('Failed to discover EPG providers', error: e);
|
||||
}
|
||||
return [];
|
||||
return _providerEpg;
|
||||
}
|
||||
|
||||
/// Parse a list of JSON items into [LiveTvProgram] objects, skipping any that fail.
|
||||
@@ -2474,6 +2576,50 @@ class PlexClient {
|
||||
);
|
||||
}
|
||||
|
||||
static const _favoriteChannelsUrl = 'https://epg.provider.plex.tv/settings/favoriteChannels';
|
||||
static const _providerVersionHeader = {'X-Plex-Provider-Version': '5.1'};
|
||||
|
||||
/// Build the source URI for favorite channels: `server://{machineIdentifier}/{providerIdentifier}`
|
||||
Future<String> buildFavoriteChannelSource() async {
|
||||
final providers = await _discoverEpgProviders();
|
||||
final providerIdentifier = providers.isNotEmpty ? providers.first.identifier : 'tv.plex.provider.epg';
|
||||
final machineId = config.machineIdentifier ?? serverId;
|
||||
return 'server://$machineId/$providerIdentifier';
|
||||
}
|
||||
|
||||
/// Get favorite channels from the Plex cloud.
|
||||
Future<List<FavoriteChannel>> getFavoriteChannels() async {
|
||||
try {
|
||||
final response = await _dio.get(
|
||||
_favoriteChannelsUrl,
|
||||
options: Options(headers: _providerVersionHeader),
|
||||
);
|
||||
final container = _getMediaContainer(response);
|
||||
if (container != null && container['FavoriteChannel'] != null) {
|
||||
return (container['FavoriteChannel'] as List)
|
||||
.map((json) => FavoriteChannel.fromJson(json as Map<String, dynamic>))
|
||||
.toList();
|
||||
}
|
||||
return [];
|
||||
} catch (e) {
|
||||
appLogger.e('Failed to get favorite channels', error: e);
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
/// Update favorite channels on the Plex cloud.
|
||||
Future<void> setFavoriteChannels(List<FavoriteChannel> channels) async {
|
||||
try {
|
||||
await _dio.put(
|
||||
_favoriteChannelsUrl,
|
||||
data: channels.map((c) => c.toJson()).toList(),
|
||||
options: Options(headers: _providerVersionHeader),
|
||||
);
|
||||
} catch (e) {
|
||||
appLogger.e('Failed to update favorite channels', error: e);
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> _handleEndpointSwitch(String newBaseUrl) async {
|
||||
if (config.baseUrl == newBaseUrl) {
|
||||
return;
|
||||
|
||||
@@ -3,6 +3,7 @@ import 'dart:io';
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:saf_util/saf_util.dart';
|
||||
import '../utils/platform_detector.dart';
|
||||
import 'package:saf_util/saf_util_platform_interface.dart';
|
||||
import 'package:saf_stream/saf_stream.dart';
|
||||
|
||||
@@ -22,6 +23,8 @@ class SafStorageService {
|
||||
/// Returns the content:// URI or null if cancelled
|
||||
Future<String?> pickDirectory() async {
|
||||
if (!isAvailable) return null;
|
||||
// SAF document picker is not available on Android TV
|
||||
if (TvDetectionService.isTVSync()) return null;
|
||||
try {
|
||||
// Pick directory with persistent write permission
|
||||
final doc = await _safUtil.pickDirectory(writePermission: true, persistablePermission: true);
|
||||
|
||||
@@ -53,21 +53,6 @@ class ServerRegistry {
|
||||
}
|
||||
}
|
||||
|
||||
/// Update server status (called when server connection status changes)
|
||||
Future<void> updateServerStatus(String serverId) async {
|
||||
final servers = await getServers();
|
||||
final serverIndex = servers.indexWhere((s) => s.clientIdentifier == serverId);
|
||||
|
||||
if (serverIndex == -1) {
|
||||
appLogger.w('Server not found for status update: $serverId');
|
||||
return;
|
||||
}
|
||||
|
||||
// Note: PlexServer from auth service doesn't have mutable status fields
|
||||
// Status tracking is handled by MultiServerManager
|
||||
// This method is kept for future extension if we add status to PlexServer model
|
||||
}
|
||||
|
||||
/// Add or update a single server
|
||||
Future<void> upsertServer(PlexServer server) async {
|
||||
final servers = await getServers();
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user