Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d72153c25a | ||
|
|
666b59c293 | ||
|
|
7543a8c55b | ||
|
|
bfc7be2b80 | ||
|
|
8b2c68f3ae | ||
|
|
9aa019fe6f | ||
|
|
23a100afdc | ||
|
|
af2ac2c993 | ||
|
|
166e73cdaa | ||
|
|
73fe9e054f | ||
|
|
42e066288f | ||
|
|
682a04f047 | ||
|
|
29cb88e6e2 | ||
|
|
6daf77c890 | ||
|
|
0372840ee1 | ||
|
|
3c51760203 | ||
|
|
f3c735e3a1 | ||
|
|
7784cb7511 | ||
|
|
82b0de9223 | ||
|
|
a6852d716f | ||
|
|
92dfe5b41f | ||
|
|
16e96cdde0 | ||
|
|
61e4bda616 | ||
|
|
e69fab87d0 | ||
|
|
a3e738773b | ||
|
|
425957c804 | ||
|
|
efa1cc8bd8 | ||
|
|
0fc64cdf81 | ||
|
|
d08c4c905f | ||
|
|
43b9bd7038 | ||
|
|
2dddd00fd3 | ||
|
|
5be7b43cb8 | ||
|
|
965d9540fa | ||
|
|
65bb7bd44e | ||
|
|
a5ade78cd6 | ||
|
|
57420e51cf | ||
|
|
bec8b593be | ||
|
|
c62e406749 | ||
|
|
d503f6c6ce |
@@ -3,6 +3,9 @@ name: Build
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
SENTRY_DART_DEFINE: ${{ github.repository == 'edde746/plezy' && '--dart-define=ENABLE_SENTRY=true' || '' }}
|
||||
|
||||
jobs:
|
||||
build-android:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -58,7 +61,7 @@ jobs:
|
||||
EOF
|
||||
|
||||
- name: Build APKs
|
||||
run: flutter build apk --release --split-per-abi --dart-define=ENABLE_UPDATE_CHECK=true
|
||||
run: flutter build apk --release --split-per-abi --dart-define=ENABLE_UPDATE_CHECK=true ${{ env.SENTRY_DART_DEFINE }}
|
||||
|
||||
- name: Clean up keystore
|
||||
if: always()
|
||||
@@ -126,7 +129,7 @@ jobs:
|
||||
run: flutter pub get
|
||||
|
||||
- name: Build iOS (no codesign)
|
||||
run: flutter build ios --release --no-codesign --dart-define=ENABLE_UPDATE_CHECK=true
|
||||
run: flutter build ios --release --no-codesign --dart-define=ENABLE_UPDATE_CHECK=true ${{ env.SENTRY_DART_DEFINE }}
|
||||
|
||||
- name: Create IPA
|
||||
run: |
|
||||
@@ -184,7 +187,7 @@ jobs:
|
||||
run: flutter pub get
|
||||
|
||||
- name: Build macOS
|
||||
run: flutter build macos --release --dart-define=ENABLE_UPDATE_CHECK=true
|
||||
run: flutter build macos --release --dart-define=ENABLE_UPDATE_CHECK=true ${{ env.SENTRY_DART_DEFINE }}
|
||||
|
||||
- name: Import Code Signing Certificate
|
||||
env:
|
||||
@@ -335,7 +338,7 @@ jobs:
|
||||
run: flutter pub get
|
||||
|
||||
- name: Build Windows x64
|
||||
run: flutter build windows --release --dart-define=ENABLE_UPDATE_CHECK=true
|
||||
run: flutter build windows --release --dart-define=ENABLE_UPDATE_CHECK=true ${{ env.SENTRY_DART_DEFINE }}
|
||||
|
||||
- name: Upload x64 build
|
||||
uses: actions/upload-artifact@v4
|
||||
@@ -372,7 +375,7 @@ jobs:
|
||||
run: flutter pub get
|
||||
|
||||
- name: Build Windows arm64
|
||||
run: flutter build windows --release --dart-define=ENABLE_UPDATE_CHECK=true
|
||||
run: flutter build windows --release --dart-define=ENABLE_UPDATE_CHECK=true ${{ env.SENTRY_DART_DEFINE }}
|
||||
|
||||
- name: Upload arm64 build
|
||||
uses: actions/upload-artifact@v4
|
||||
@@ -516,7 +519,7 @@ jobs:
|
||||
run: flutter pub get
|
||||
|
||||
- name: Build Linux x64
|
||||
run: flutter build linux --release --dart-define=ENABLE_UPDATE_CHECK=true
|
||||
run: flutter build linux --release --dart-define=ENABLE_UPDATE_CHECK=true ${{ env.SENTRY_DART_DEFINE }}
|
||||
env:
|
||||
PKG_CONFIG_PATH: ${{ github.workspace }}/libmpv-prefix/lib/pkgconfig:${{ github.workspace }}/libmpv-prefix/lib/x86_64-linux-gnu/pkgconfig
|
||||
|
||||
@@ -624,7 +627,7 @@ jobs:
|
||||
run: flutter pub get
|
||||
|
||||
- name: Build Linux arm64
|
||||
run: flutter build linux --release --dart-define=ENABLE_UPDATE_CHECK=true
|
||||
run: flutter build linux --release --dart-define=ENABLE_UPDATE_CHECK=true ${{ env.SENTRY_DART_DEFINE }}
|
||||
env:
|
||||
PKG_CONFIG_PATH: ${{ github.workspace }}/libmpv-prefix/lib/pkgconfig:${{ github.workspace }}/libmpv-prefix/lib/aarch64-linux-gnu/pkgconfig
|
||||
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
cask "plezy" do
|
||||
version "1.24.1"
|
||||
sha256 "40b02e3c8fdc3865f12171e6506848b46929f985a7aa69a36f7021096f6ba297"
|
||||
version "1.25.1"
|
||||
sha256 "213d75905ab81ce6ae9142771bd3ce130499612c52ede15b5af65f609f43bd65"
|
||||
|
||||
url "https://github.com/edde746/plezy/releases/download/#{version}/plezy-macos.dmg"
|
||||
name "Plezy"
|
||||
|
||||
@@ -141,8 +141,8 @@ dependencies {
|
||||
// FFmpeg audio decoder for unsupported codecs (ALAC, DTS, TrueHD, etc.)
|
||||
implementation("org.jellyfin.media3:media3-ffmpeg-decoder:1.9.0+1")
|
||||
|
||||
// libass-android for ASS/SSA subtitle rendering (fork with font buffering fix)
|
||||
implementation(files("libs/ass-media.aar"))
|
||||
// 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-beta01")
|
||||
implementation("io.github.peerless2012:ass-kt:0.4.0")
|
||||
}
|
||||
|
||||
Binary file not shown.
@@ -9,11 +9,7 @@
|
||||
<!-- Camera permission for QR code scanning (companion remote pairing) -->
|
||||
<uses-permission android:name="android.permission.CAMERA"/>
|
||||
|
||||
<!-- PIP Permissions -->
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK"/>
|
||||
|
||||
<!-- Media session permissions for OS media controls -->
|
||||
<!-- PIP and media session foreground service permissions -->
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK"/>
|
||||
|
||||
|
||||
@@ -27,9 +27,9 @@ import java.io.File
|
||||
|
||||
class MainActivity : FlutterActivity() {
|
||||
|
||||
private val PIP_CHANNEL = "app.plezy/pip"
|
||||
private val EXTERNAL_PLAYER_CHANNEL = "app.plezy/external_player"
|
||||
private val THEME_CHANNEL = "app.plezy/theme"
|
||||
private val PIP_CHANNEL = "com.plezy/pip"
|
||||
private val EXTERNAL_PLAYER_CHANNEL = "com.plezy/external_player"
|
||||
private val THEME_CHANNEL = "com.plezy/theme"
|
||||
private var watchNextPlugin: WatchNextPlugin? = null
|
||||
|
||||
// Auto PiP state
|
||||
|
||||
@@ -55,9 +55,7 @@ import io.github.peerless2012.ass.media.parser.AssSubtitleParserFactory
|
||||
import io.github.peerless2012.ass.media.type.AssRenderType
|
||||
import io.github.peerless2012.ass.media.widget.AssSubtitleView
|
||||
|
||||
interface ExoPlayerDelegate {
|
||||
fun onPropertyChange(name: String, value: Any?)
|
||||
fun onEvent(name: String, data: Map<String, Any>?)
|
||||
interface ExoPlayerDelegate : com.edde746.plezy.shared.PlayerDelegate {
|
||||
|
||||
/**
|
||||
* Called when ExoPlayer encounters a format it cannot play.
|
||||
@@ -95,6 +93,8 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
// Codec capability caches — codec support doesn't change at runtime
|
||||
private val hwAudioDecoderCache = HashMap<String, Boolean>()
|
||||
private val tunneledPlaybackCache = HashMap<String, Boolean>()
|
||||
|
||||
private var assGlCrashHandlerInstalled = false
|
||||
}
|
||||
|
||||
private var surfaceView: SurfaceView? = null
|
||||
@@ -114,6 +114,7 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
private var tunnelingCorrectionInProgress: Boolean = false
|
||||
private var pendingRestoredAudioTrackId: String? = null
|
||||
private var pendingRestoredSubtitleTrackId: String? = null
|
||||
private var lastSeekable: Boolean? = null
|
||||
private var lastTunnelingCorrectionTarget: Boolean? = null
|
||||
private var lastTunnelingCorrectionAtMs: Long = 0L
|
||||
@Volatile private var disposing: Boolean = false
|
||||
@@ -445,6 +446,23 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
// Initialize handler (registers as Player.Listener, creates Handler)
|
||||
handler.init(exoPlayer!!)
|
||||
|
||||
// Suppress ass-media GL thread crash when EGL init partially fails (e.g. Tegra).
|
||||
// AssRender.onSurfaceDestroyed() accesses uninitialized glProgram lateinit property
|
||||
// during error cleanup, which is a bug in the library. The render thread dying only
|
||||
// affects ASS subtitle GPU rendering; non-ASS subtitles are unaffected.
|
||||
if (!assGlCrashHandlerInstalled) {
|
||||
assGlCrashHandlerInstalled = true
|
||||
val previousHandler = Thread.getDefaultUncaughtExceptionHandler()
|
||||
Thread.setDefaultUncaughtExceptionHandler { thread, throwable ->
|
||||
if (thread.name.contains("AssTexRenderThread") &&
|
||||
throwable is UninitializedPropertyAccessException) {
|
||||
Log.e(TAG, "ASS GL thread crash suppressed (EGL init failure)", throwable)
|
||||
} else {
|
||||
previousHandler?.uncaughtException(thread, throwable)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
exoPlayer!!.addListener(this)
|
||||
exoPlayer!!.addAnalyticsListener(decoderHangListener)
|
||||
surfaceView?.let { exoPlayer!!.setVideoSurfaceView(it) }
|
||||
@@ -528,6 +546,18 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
positionUpdateRunnable = null
|
||||
}
|
||||
|
||||
private fun emitSeekable(seekable: Boolean, force: Boolean = false) {
|
||||
if (!force && lastSeekable == seekable) return
|
||||
lastSeekable = seekable
|
||||
delegate?.onPropertyChange("seekable", seekable)
|
||||
}
|
||||
|
||||
private fun emitCurrentSeekable(force: Boolean = false) {
|
||||
val player = exoPlayer
|
||||
val seekable = player?.isCurrentMediaItemSeekable == true && !currentMediaIsLive
|
||||
emitSeekable(seekable, force)
|
||||
}
|
||||
|
||||
// Player.Listener
|
||||
|
||||
override fun onCues(cueGroup: CueGroup) {
|
||||
@@ -553,6 +583,7 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
else -> "unknown"
|
||||
}
|
||||
emitLog("debug", "state", stateStr)
|
||||
emitCurrentSeekable()
|
||||
|
||||
when (state) {
|
||||
Player.STATE_BUFFERING -> {
|
||||
@@ -633,6 +664,7 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
emitLog("error", "player", "Error code=${error.errorCode}: ${error.message}, cause=${error.cause?.javaClass?.simpleName}")
|
||||
stopFrameWatchdog()
|
||||
cancelDecoderHangCheck()
|
||||
emitSeekable(false, force = true)
|
||||
|
||||
// If native DV7 failed, retry with conversion before falling to MPV
|
||||
if (error.errorCode in 4001..4005 && retryWithDvConversion("decoder error ${error.errorCode}")) return
|
||||
@@ -685,6 +717,7 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
Log.d(TAG, "onMediaItemTransition: ${mediaItem?.mediaId}, reason: $reason")
|
||||
delegate?.onEvent("file-loaded", null)
|
||||
delegate?.onPropertyChange("eof-reached", false)
|
||||
emitCurrentSeekable(force = true)
|
||||
}
|
||||
|
||||
override fun onVideoSizeChanged(videoSize: VideoSize) {
|
||||
@@ -1324,6 +1357,7 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
currentTunneledPlayback = false
|
||||
pendingStartPositionMs = startPositionMs
|
||||
applyTunnelingMode(false)
|
||||
emitSeekable(false, force = true)
|
||||
|
||||
if (isLive) {
|
||||
// Live MKV streams lack Cues (seek index). FLAG_DISABLE_SEEK_FOR_CUES tells
|
||||
@@ -1377,6 +1411,7 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
stopFrameWatchdog()
|
||||
cancelDecoderHangCheck()
|
||||
exoPlayer?.stop()
|
||||
emitSeekable(false, force = true)
|
||||
setVisible(false)
|
||||
}
|
||||
|
||||
@@ -1752,6 +1787,7 @@ class ExoPlayerCore(private val activity: Activity) : Player.Listener {
|
||||
pendingStartPositionMs = 0L
|
||||
currentMediaIsLive = false
|
||||
currentVisible = false
|
||||
emitSeekable(false, force = true)
|
||||
selectedAudioTrackId = null
|
||||
selectedSubtitleTrackId = null
|
||||
selectedExternalSubtitleIndex = null
|
||||
|
||||
@@ -6,7 +6,6 @@ import android.content.Context
|
||||
import android.net.Uri
|
||||
import android.util.Log
|
||||
import com.edde746.plezy.mpv.MpvPlayerCore
|
||||
import com.edde746.plezy.mpv.MpvPlayerDelegate
|
||||
import io.flutter.embedding.engine.plugins.FlutterPlugin
|
||||
import io.flutter.embedding.engine.plugins.activity.ActivityAware
|
||||
import io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding
|
||||
@@ -15,7 +14,7 @@ import io.flutter.plugin.common.MethodCall
|
||||
import io.flutter.plugin.common.MethodChannel
|
||||
|
||||
class ExoPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
EventChannel.StreamHandler, ActivityAware, ExoPlayerDelegate, MpvPlayerDelegate {
|
||||
EventChannel.StreamHandler, ActivityAware, ExoPlayerDelegate {
|
||||
|
||||
companion object {
|
||||
private const val TAG = "ExoPlayerPlugin"
|
||||
@@ -34,9 +33,9 @@ class ExoPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
private var activityBinding: ActivityPluginBinding? = null
|
||||
private val nameToId = mutableMapOf<String, Int>()
|
||||
private var configuredBufferSizeBytes: Int? = null
|
||||
private var configuredTunnelingEnabled: Boolean = true
|
||||
|
||||
private var debugLoggingEnabled: Boolean = false
|
||||
private val pendingMpvProperties = mutableListOf<Pair<String, String>>()
|
||||
|
||||
// FlutterPlugin
|
||||
|
||||
@@ -133,6 +132,7 @@ class ExoPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
}
|
||||
"setSubtitleStyle" -> handleSetSubtitleStyle(call, result)
|
||||
"observeProperty" -> handleObserveProperty(call, result)
|
||||
"setMpvProperty" -> handleSetMpvProperty(call, result)
|
||||
"setLogLevel" -> {
|
||||
val level = call.argument<String>("level") ?: "warn"
|
||||
debugLoggingEnabled = (level == "v" || level == "debug" || level == "trace")
|
||||
@@ -159,7 +159,6 @@ class ExoPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
val bufferSizeBytes = call.argument<Int>("bufferSizeBytes")
|
||||
val tunnelingEnabled = call.argument<Boolean>("tunnelingEnabled") ?: true
|
||||
configuredBufferSizeBytes = bufferSizeBytes
|
||||
configuredTunnelingEnabled = tunnelingEnabled
|
||||
|
||||
currentActivity.runOnUiThread {
|
||||
try {
|
||||
@@ -209,6 +208,9 @@ class ExoPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
return
|
||||
}
|
||||
|
||||
// New media = fresh slate for pending MPV properties
|
||||
pendingMpvProperties.clear()
|
||||
|
||||
activity?.runOnUiThread {
|
||||
if (usingMpvFallback) {
|
||||
// MPV: Build loadfile command with options
|
||||
@@ -472,6 +474,24 @@ class ExoPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
result.success(null)
|
||||
}
|
||||
|
||||
private fun handleSetMpvProperty(call: MethodCall, result: MethodChannel.Result) {
|
||||
val name = call.argument<String>("name")
|
||||
val value = call.argument<String>("value")
|
||||
|
||||
if (name == null || value == null) {
|
||||
result.error("INVALID_ARGS", "Missing 'name' or 'value'", null)
|
||||
return
|
||||
}
|
||||
|
||||
if (usingMpvFallback) {
|
||||
mpvCore?.setProperty(name, value)
|
||||
} else {
|
||||
// Store for later application if ExoPlayer falls back to MPV
|
||||
pendingMpvProperties.add(Pair(name, value))
|
||||
}
|
||||
result.success(null)
|
||||
}
|
||||
|
||||
private fun handleGetStats(result: MethodChannel.Result) {
|
||||
activity?.runOnUiThread {
|
||||
val stats = if (usingMpvFallback) {
|
||||
@@ -644,9 +664,16 @@ class ExoPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
}
|
||||
}
|
||||
|
||||
// Apply any pending MPV properties from Dart
|
||||
for ((propName, propValue) in pendingMpvProperties) {
|
||||
mpvCore?.setProperty(propName, propValue)
|
||||
}
|
||||
pendingMpvProperties.clear()
|
||||
|
||||
// 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")
|
||||
|
||||
@@ -16,15 +16,11 @@ import android.view.ViewTreeObserver
|
||||
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
|
||||
|
||||
interface MpvPlayerDelegate {
|
||||
fun onPropertyChange(name: String, value: Any?)
|
||||
fun onEvent(name: String, data: Map<String, Any>?)
|
||||
}
|
||||
|
||||
class MpvPlayerCore(private val activity: Activity) :
|
||||
SurfaceHolder.Callback,
|
||||
MPVLib.EventObserver,
|
||||
@@ -59,7 +55,7 @@ class MpvPlayerCore(private val activity: Activity) :
|
||||
@Volatile private var disposing: Boolean = false
|
||||
private var pendingSurface: Surface? = null
|
||||
private var lastSurfaceSize: String? = null
|
||||
var delegate: MpvPlayerDelegate? = null
|
||||
var delegate: PlayerDelegate? = null
|
||||
var isInitialized: Boolean = false
|
||||
private set
|
||||
|
||||
@@ -586,7 +582,6 @@ class MpvPlayerCore(private val activity: Activity) :
|
||||
} catch (e: Exception) {
|
||||
Log.w(TAG, "Failed to remove MPV observers during dispose", e)
|
||||
}
|
||||
detachSurfaceInternal()
|
||||
}
|
||||
|
||||
overlayLayoutListener?.let { listener ->
|
||||
@@ -621,6 +616,7 @@ class MpvPlayerCore(private val activity: Activity) :
|
||||
Thread {
|
||||
synchronized(mpvLock) {
|
||||
try {
|
||||
detachSurfaceInternal()
|
||||
MPVLib.destroy()
|
||||
} catch (e: Exception) {
|
||||
Log.w(TAG, "MPV destroy failed", e)
|
||||
|
||||
@@ -11,7 +11,7 @@ import io.flutter.plugin.common.MethodCall
|
||||
import io.flutter.plugin.common.MethodChannel
|
||||
|
||||
class MpvPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
EventChannel.StreamHandler, ActivityAware, MpvPlayerDelegate {
|
||||
EventChannel.StreamHandler, ActivityAware, com.edde746.plezy.shared.PlayerDelegate {
|
||||
|
||||
companion object {
|
||||
private const val TAG = "MpvPlayerPlugin"
|
||||
@@ -281,7 +281,7 @@ class MpvPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
} ?: result.error("NO_PLAYER", "Player not initialized", null)
|
||||
}
|
||||
|
||||
// MpvPlayerDelegate
|
||||
// PlayerDelegate
|
||||
|
||||
override fun onPropertyChange(name: String, value: Any?) {
|
||||
val propId = nameToId[name] ?: return
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
package com.edde746.plezy.shared
|
||||
|
||||
interface PlayerDelegate {
|
||||
fun onPropertyChange(name: String, value: Any?)
|
||||
fun onEvent(name: String, data: Map<String, Any>?)
|
||||
}
|
||||
@@ -17,7 +17,7 @@ class WatchNextPlugin : FlutterPlugin, MethodChannel.MethodCallHandler {
|
||||
|
||||
companion object {
|
||||
private const val TAG = "WatchNextPlugin"
|
||||
private const val METHOD_CHANNEL = "app.plezy/watch_next"
|
||||
private const val METHOD_CHANNEL = "com.plezy/watch_next"
|
||||
|
||||
private var pendingDeepLink: String? = null
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ platform :android do
|
||||
debug_info_dir = "./debug-info/#{version_name}+#{version_code}"
|
||||
|
||||
# Build the Flutter app
|
||||
sh("cd #{ENV['PWD']}/.. && flutter build appbundle --dart-define=ENABLE_IN_APP_REVIEW=true --obfuscate --split-debug-info=#{debug_info_dir}/aab")
|
||||
sh("cd #{ENV['PWD']}/.. && flutter build appbundle --dart-define=ENABLE_IN_APP_REVIEW=true --dart-define=ENABLE_SENTRY=true --obfuscate --split-debug-info=#{debug_info_dir}/aab")
|
||||
|
||||
upload_to_play_store(
|
||||
track: "production",
|
||||
@@ -32,7 +32,7 @@ platform :android do
|
||||
)
|
||||
|
||||
# Build universal APK for Amazon Appstore (doesn't accept AABs, excludes x86 via env var)
|
||||
sh("cd #{ENV['PWD']}/.. && AMAZON=1 flutter build apk --release --obfuscate --split-debug-info=#{debug_info_dir}/apk")
|
||||
sh("cd #{ENV['PWD']}/.. && AMAZON=1 flutter build apk --release --dart-define=ENABLE_SENTRY=true --obfuscate --split-debug-info=#{debug_info_dir}/apk")
|
||||
|
||||
upload_to_amazon_appstore(
|
||||
apk_paths: [
|
||||
|
||||
@@ -1 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 185.04 133.4"><defs><style>.cls-1{fill:url(#linear-gradient);}</style><linearGradient id="linear-gradient" y1="66.7" x2="185.04" y2="66.7" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#90cea1"/><stop offset="0.56" stop-color="#3cbec9"/><stop offset="1" stop-color="#00b3e5"/></linearGradient></defs><title>Asset 4</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><path class="cls-1" d="M51.06,66.7h0A17.67,17.67,0,0,1,68.73,49h-.1A17.67,17.67,0,0,1,86.3,66.7h0A17.67,17.67,0,0,1,68.63,84.37h.1A17.67,17.67,0,0,1,51.06,66.7Zm82.67-31.33h32.9A17.67,17.67,0,0,0,184.3,17.7h0A17.67,17.67,0,0,0,166.63,0h-32.9A17.67,17.67,0,0,0,116.06,17.7h0A17.67,17.67,0,0,0,133.73,35.37Zm-113,98h63.9A17.67,17.67,0,0,0,102.3,115.7h0A17.67,17.67,0,0,0,84.63,98H20.73A17.67,17.67,0,0,0,3.06,115.7h0A17.67,17.67,0,0,0,20.73,133.37Zm83.92-49h6.25L125.5,49h-8.35l-8.9,23.2h-.1L99.4,49H90.5Zm32.45,0h7.8V49h-7.8Zm22.2,0h24.95V77.2H167.1V70h15.35V62.8H167.1V56.2h16.25V49h-24ZM10.1,35.4h7.8V6.9H28V0H0V6.9H10.1ZM39,35.4h7.8V20.1H61.9V35.4h7.8V0H61.9V13.2H46.75V0H39Zm41.25,0h25V28.2H88V21h15.35V13.8H88V7.2h16.25V0h-24Zm-79,49H9V57.25h.1l9,27.15H24l9.3-27.15h.1V84.4h7.8V49H29.45l-8.2,23.1h-.1L13,49H1.2Zm112.09,49H126a24.59,24.59,0,0,0,7.56-1.15,19.52,19.52,0,0,0,6.35-3.37,16.37,16.37,0,0,0,4.37-5.5A16.91,16.91,0,0,0,146,115.8a18.5,18.5,0,0,0-1.68-8.25,15.1,15.1,0,0,0-4.52-5.53A18.55,18.55,0,0,0,133.07,99,33.54,33.54,0,0,0,125,98H113.29Zm7.81-28.2h4.6a17.43,17.43,0,0,1,4.67.62,11.68,11.68,0,0,1,3.88,1.88,9,9,0,0,1,2.62,3.18,9.87,9.87,0,0,1,1,4.52,11.92,11.92,0,0,1-1,5.08,8.69,8.69,0,0,1-2.67,3.34,10.87,10.87,0,0,1-4,1.83,21.57,21.57,0,0,1-5,.55H121.1Zm36.14,28.2h14.5a23.11,23.11,0,0,0,4.73-.5,13.38,13.38,0,0,0,4.27-1.65,9.42,9.42,0,0,0,3.1-3,8.52,8.52,0,0,0,1.2-4.68,9.16,9.16,0,0,0-.55-3.2,7.79,7.79,0,0,0-1.57-2.62,8.38,8.38,0,0,0-2.45-1.85,10,10,0,0,0-3.18-1v-.1a9.28,9.28,0,0,0,4.43-2.82,7.42,7.42,0,0,0,1.67-5,8.34,8.34,0,0,0-1.15-4.65,7.88,7.88,0,0,0-3-2.73,12.9,12.9,0,0,0-4.17-1.3,34.42,34.42,0,0,0-4.63-.32h-13.2Zm7.8-28.8h5.3a10.79,10.79,0,0,1,1.85.17,5.77,5.77,0,0,1,1.7.58,3.33,3.33,0,0,1,1.23,1.13,3.22,3.22,0,0,1,.47,1.82,3.63,3.63,0,0,1-.42,1.8,3.34,3.34,0,0,1-1.13,1.2,4.78,4.78,0,0,1-1.57.65,8.16,8.16,0,0,1-1.78.2H165Zm0,14.15h5.9a15.12,15.12,0,0,1,2.05.15,7.83,7.83,0,0,1,2,.55,4,4,0,0,1,1.58,1.17,3.13,3.13,0,0,1,.62,2,3.71,3.71,0,0,1-.47,1.95,4,4,0,0,1-1.23,1.3,4.78,4.78,0,0,1-1.67.7,8.91,8.91,0,0,1-1.83.2h-7Z"/></g></g></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 185.04 133.4"><defs><linearGradient id="linear-gradient" y1="66.7" x2="185.04" y2="66.7" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#90cea1"/><stop offset="0.56" stop-color="#3cbec9"/><stop offset="1" stop-color="#00b3e5"/></linearGradient></defs><title>Asset 4</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><path fill="url(#linear-gradient)" d="M51.06,66.7h0A17.67,17.67,0,0,1,68.73,49h-.1A17.67,17.67,0,0,1,86.3,66.7h0A17.67,17.67,0,0,1,68.63,84.37h.1A17.67,17.67,0,0,1,51.06,66.7Zm82.67-31.33h32.9A17.67,17.67,0,0,0,184.3,17.7h0A17.67,17.67,0,0,0,166.63,0h-32.9A17.67,17.67,0,0,0,116.06,17.7h0A17.67,17.67,0,0,0,133.73,35.37Zm-113,98h63.9A17.67,17.67,0,0,0,102.3,115.7h0A17.67,17.67,0,0,0,84.63,98H20.73A17.67,17.67,0,0,0,3.06,115.7h0A17.67,17.67,0,0,0,20.73,133.37Zm83.92-49h6.25L125.5,49h-8.35l-8.9,23.2h-.1L99.4,49H90.5Zm32.45,0h7.8V49h-7.8Zm22.2,0h24.95V77.2H167.1V70h15.35V62.8H167.1V56.2h16.25V49h-24ZM10.1,35.4h7.8V6.9H28V0H0V6.9H10.1ZM39,35.4h7.8V20.1H61.9V35.4h7.8V0H61.9V13.2H46.75V0H39Zm41.25,0h25V28.2H88V21h15.35V13.8H88V7.2h16.25V0h-24Zm-79,49H9V57.25h.1l9,27.15H24l9.3-27.15h.1V84.4h7.8V49H29.45l-8.2,23.1h-.1L13,49H1.2Zm112.09,49H126a24.59,24.59,0,0,0,7.56-1.15,19.52,19.52,0,0,0,6.35-3.37,16.37,16.37,0,0,0,4.37-5.5A16.91,16.91,0,0,0,146,115.8a18.5,18.5,0,0,0-1.68-8.25,15.1,15.1,0,0,0-4.52-5.53A18.55,18.55,0,0,0,133.07,99,33.54,33.54,0,0,0,125,98H113.29Zm7.81-28.2h4.6a17.43,17.43,0,0,1,4.67.62,11.68,11.68,0,0,1,3.88,1.88,9,9,0,0,1,2.62,3.18,9.87,9.87,0,0,1,1,4.52,11.92,11.92,0,0,1-1,5.08,8.69,8.69,0,0,1-2.67,3.34,10.87,10.87,0,0,1-4,1.83,21.57,21.57,0,0,1-5,.55H121.1Zm36.14,28.2h14.5a23.11,23.11,0,0,0,4.73-.5,13.38,13.38,0,0,0,4.27-1.65,9.42,9.42,0,0,0,3.1-3,8.52,8.52,0,0,0,1.2-4.68,9.16,9.16,0,0,0-.55-3.2,7.79,7.79,0,0,0-1.57-2.62,8.38,8.38,0,0,0-2.45-1.85,10,10,0,0,0-3.18-1v-.1a9.28,9.28,0,0,0,4.43-2.82,7.42,7.42,0,0,0,1.67-5,8.34,8.34,0,0,0-1.15-4.65,7.88,7.88,0,0,0-3-2.73,12.9,12.9,0,0,0-4.17-1.3,34.42,34.42,0,0,0-4.63-.32h-13.2Zm7.8-28.8h5.3a10.79,10.79,0,0,1,1.85.17,5.77,5.77,0,0,1,1.7.58,3.33,3.33,0,0,1,1.23,1.13,3.22,3.22,0,0,1,.47,1.82,3.63,3.63,0,0,1-.42,1.8,3.34,3.34,0,0,1-1.13,1.2,4.78,4.78,0,0,1-1.57.65,8.16,8.16,0,0,1-1.78.2H165Zm0,14.15h5.9a15.12,15.12,0,0,1,2.05.15,7.83,7.83,0,0,1,2,.55,4,4,0,0,1,1.58,1.17,3.13,3.13,0,0,1,.62,2,3.71,3.71,0,0,1-.47,1.95,4,4,0,0,1-1.23,1.3,4.78,4.78,0,0,1-1.67.7,8.91,8.91,0,0,1-1.83.2h-7Z"/></g></g></svg>
|
||||
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
@@ -16,6 +16,7 @@
|
||||
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 */; };
|
||||
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
|
||||
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
|
||||
@@ -59,7 +60,8 @@
|
||||
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 = ../apple/Shared/MpvPlayer/MpvPlayerCoreBase.swift; sourceTree = SOURCE_ROOT; };
|
||||
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>"; };
|
||||
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>"; };
|
||||
@@ -118,6 +120,7 @@
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
B1D51A6A2F00110000000002 /* MpvPlayerCoreBase.swift */,
|
||||
B1D51A6A2F00110000000006 /* MpvPlayerPluginShared.swift */,
|
||||
6A8A46222EDB370C0057B88C /* MpvPlayerCore.swift */,
|
||||
6A8A46232EDB370C0057B88C /* MpvPlayerPlugin.swift */,
|
||||
92F969587D0E464D999910F4 /* MpvPipController.swift */,
|
||||
@@ -420,6 +423,7 @@
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
B1D51A6A2F00110000000001 /* MpvPlayerCoreBase.swift in Sources */,
|
||||
B1D51A6A2F00110000000005 /* MpvPlayerPluginShared.swift in Sources */,
|
||||
6A8A46252EDB370C0057B88C /* MpvPlayerPlugin.swift in Sources */,
|
||||
6A8A46262EDB370C0057B88C /* MpvPlayerCore.swift in Sources */,
|
||||
92F969587D0E464D999910F5 /* MpvPipController.swift in Sources */,
|
||||
|
||||
@@ -3,14 +3,19 @@ import Flutter
|
||||
import AVKit
|
||||
|
||||
/// Flutter plugin that bridges MPV player to Dart via method and event channels
|
||||
class MpvPlayerPlugin: NSObject, FlutterPlugin, FlutterStreamHandler, MpvPlayerDelegate {
|
||||
class MpvPlayerPlugin: NSObject, FlutterPlugin, FlutterStreamHandler, MpvPluginShared {
|
||||
|
||||
// MARK: - Properties
|
||||
|
||||
private var playerCore: MpvPlayerCore?
|
||||
private var eventSink: FlutterEventSink?
|
||||
var eventSink: FlutterEventSink?
|
||||
private weak var registrar: FlutterPluginRegistrar?
|
||||
private var nameToId: [String: Int] = [:]
|
||||
var nameToId: [String: Int] = [:]
|
||||
|
||||
// MpvPluginShared conformance
|
||||
var coreBase: MpvPlayerCoreBase? { playerCore }
|
||||
func setPlayerVisible(_ visible: Bool) { playerCore?.setVisible(visible) }
|
||||
func updatePlayerFrame() { playerCore?.updateFrame() }
|
||||
|
||||
// PiP
|
||||
private var pipController: MpvPipController?
|
||||
@@ -33,7 +38,7 @@ class MpvPlayerPlugin: NSObject, FlutterPlugin, FlutterStreamHandler, MpvPlayerD
|
||||
binaryMessenger: registrar.messenger()
|
||||
)
|
||||
let pipChannel = FlutterMethodChannel(
|
||||
name: "app.plezy/pip",
|
||||
name: "com.plezy/pip",
|
||||
binaryMessenger: registrar.messenger()
|
||||
)
|
||||
|
||||
@@ -252,7 +257,7 @@ class MpvPlayerPlugin: NSObject, FlutterPlugin, FlutterStreamHandler, MpvPlayerD
|
||||
pipTimebaseSyncTimer = nil
|
||||
}
|
||||
|
||||
// MARK: - Method Handlers
|
||||
// MARK: - Platform-Specific Method Handlers
|
||||
|
||||
private func handleInitialize(result: @escaping FlutterResult) {
|
||||
DispatchQueue.main.async { [weak self] in
|
||||
@@ -320,91 +325,6 @@ class MpvPlayerPlugin: NSObject, FlutterPlugin, FlutterStreamHandler, MpvPlayerD
|
||||
result(nil)
|
||||
}
|
||||
|
||||
private func handleGetProperty(call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||
guard let args = call.arguments as? [String: Any],
|
||||
let name = args["name"] as? String else {
|
||||
result(FlutterError(code: "INVALID_ARGS", message: "Missing 'name' argument", details: nil))
|
||||
return
|
||||
}
|
||||
result(playerCore?.getProperty(name))
|
||||
}
|
||||
|
||||
private func handleObserveProperty(call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||
guard let args = call.arguments as? [String: Any],
|
||||
let name = args["name"] as? String,
|
||||
let format = args["format"] as? String,
|
||||
let id = args["id"] as? Int else {
|
||||
result(FlutterError(code: "INVALID_ARGS", message: "Missing 'name', 'format', or 'id' argument", details: nil))
|
||||
return
|
||||
}
|
||||
|
||||
nameToId[name] = id
|
||||
playerCore?.observeProperty(name, format: format)
|
||||
result(nil)
|
||||
}
|
||||
|
||||
private func handleCommand(call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||
guard let args = call.arguments as? [String: Any],
|
||||
let commandArgs = args["args"] as? [String] else {
|
||||
result(FlutterError(code: "INVALID_ARGS", message: "Missing 'args' argument", details: nil))
|
||||
return
|
||||
}
|
||||
|
||||
playerCore?.commandAsync(commandArgs) { commandResult in
|
||||
switch commandResult {
|
||||
case .success:
|
||||
result(nil)
|
||||
case .failure(let error):
|
||||
result(FlutterError(code: "COMMAND_FAILED", message: error.localizedDescription, details: nil))
|
||||
}
|
||||
} ?? result(nil)
|
||||
}
|
||||
|
||||
private func handleSetVisible(call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||
guard let args = call.arguments as? [String: Any],
|
||||
let visible = args["visible"] as? Bool else {
|
||||
result(FlutterError(code: "INVALID_ARGS", message: "Missing 'visible' argument", details: nil))
|
||||
return
|
||||
}
|
||||
|
||||
DispatchQueue.main.async { [weak self] in
|
||||
self?.playerCore?.setVisible(visible)
|
||||
if visible { self?.playerCore?.updateFrame() }
|
||||
result(nil)
|
||||
}
|
||||
}
|
||||
|
||||
private func handleUpdateFrame(result: @escaping FlutterResult) {
|
||||
DispatchQueue.main.async { [weak self] in
|
||||
self?.playerCore?.updateFrame()
|
||||
result(nil)
|
||||
}
|
||||
}
|
||||
|
||||
private func handleSetLogLevel(call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||
guard let args = call.arguments as? [String: Any],
|
||||
let level = args["level"] as? String else {
|
||||
result(FlutterError(code: "INVALID_ARGS", message: "Missing 'level'", details: nil))
|
||||
return
|
||||
}
|
||||
playerCore?.setLogLevel(level)
|
||||
result(nil)
|
||||
}
|
||||
|
||||
// MARK: - MpvPlayerDelegate
|
||||
|
||||
func onPropertyChange(name: String, value: Any?) {
|
||||
guard let eventSink = eventSink, let propId = nameToId[name] else { return }
|
||||
eventSink([propId, value as Any])
|
||||
}
|
||||
|
||||
func onEvent(name: String, data: [String: Any]?) {
|
||||
guard let eventSink = eventSink else { return }
|
||||
var event: [String: Any] = ["type": "event", "name": name]
|
||||
if let data = data { event["data"] = data }
|
||||
eventSink(event)
|
||||
}
|
||||
|
||||
// MARK: - Helpers
|
||||
|
||||
private func findKeyWindow() -> UIWindow? {
|
||||
|
||||
@@ -7,7 +7,7 @@ platform :ios do
|
||||
desc "Build and deploy to App Store"
|
||||
lane :deploy_appstore do
|
||||
# Build the Flutter app
|
||||
sh("cd #{ENV['PWD']}/.. && flutter build ipa --dart-define=ENABLE_IN_APP_REVIEW=true")
|
||||
sh("cd #{ENV['PWD']}/.. && flutter build ipa --dart-define=ENABLE_IN_APP_REVIEW=true --dart-define=ENABLE_SENTRY=true")
|
||||
|
||||
# Upload to App Store
|
||||
upload_to_app_store(
|
||||
|
||||
+15
-15
@@ -201,8 +201,8 @@
|
||||
"autoPipDescription": "Automatisch Bild-in-Bild aktivieren, wenn die App während der Wiedergabe verlassen wird",
|
||||
"matchContentFrameRate": "Inhalts-Bildrate anpassen",
|
||||
"matchContentFrameRateDescription": "Bildwiederholfrequenz des Displays an den Videoinhalt anpassen, reduziert Ruckeln und spart Akku",
|
||||
"tunneledPlayback": "Tunneled Playback",
|
||||
"tunneledPlaybackDescription": "Use hardware-accelerated video tunneling. Disable if you see a black screen with audio on HDR content",
|
||||
"tunneledPlayback": "Tunnelwiedergabe",
|
||||
"tunneledPlaybackDescription": "Hardware-beschleunigte Video-Tunnelierung verwenden. Deaktivieren, wenn bei HDR-Inhalten ein schwarzer Bildschirm mit Ton erscheint",
|
||||
"requireProfileSelectionOnOpen": "Profil beim Öffnen abfragen",
|
||||
"requireProfileSelectionOnOpenDescription": "Profilauswahl bei jedem Öffnen der App anzeigen",
|
||||
"confirmExitOnBack": "Vor dem Beenden bestätigen",
|
||||
@@ -365,8 +365,8 @@
|
||||
},
|
||||
"chapters": "Kapitel",
|
||||
"noChaptersAvailable": "Keine Kapitel verfügbar",
|
||||
"queue": "Queue",
|
||||
"noQueueItems": "No items in queue"
|
||||
"queue": "Warteschlange",
|
||||
"noQueueItems": "Keine Elemente in der Warteschlange"
|
||||
},
|
||||
"userStatus": {
|
||||
"admin": "Eigentümer",
|
||||
@@ -405,9 +405,9 @@
|
||||
"failedToCreatePlayQueueNoItems": "Wiedergabewarteschlange konnte nicht erstellt werden – keine Elemente",
|
||||
"failedPlayback": "Wiedergabe für ${action} fehlgeschlagen: ${error}",
|
||||
"switchingToCompatiblePlayer": "Wechsle zu kompatiblem Player...",
|
||||
"logsUploaded": "Logs uploaded",
|
||||
"logsUploadFailed": "Failed to upload logs",
|
||||
"logId": "Log ID"
|
||||
"logsUploaded": "Protokolle hochgeladen",
|
||||
"logsUploadFailed": "Protokolle konnten nicht hochgeladen werden",
|
||||
"logId": "Protokoll-ID"
|
||||
},
|
||||
"subtitlingStyling": {
|
||||
"stylingOptions": "Stiloptionen",
|
||||
@@ -544,7 +544,7 @@
|
||||
"logs": {
|
||||
"clearLogs": "Protokolle löschen",
|
||||
"copyLogs": "Protokolle kopieren",
|
||||
"uploadLogs": "Upload Logs",
|
||||
"uploadLogs": "Protokolle hochladen",
|
||||
"error": "Fehler:",
|
||||
"stackTrace": "Stacktrace:"
|
||||
},
|
||||
@@ -715,15 +715,15 @@
|
||||
"qualityFast": "Schnell",
|
||||
"qualityHQ": "Hohe Qualität",
|
||||
"mode": "Modus",
|
||||
"importShader": "Import Shader",
|
||||
"customShaderDescription": "Custom GLSL shader",
|
||||
"shaderImported": "Shader imported",
|
||||
"shaderImportFailed": "Failed to import shader",
|
||||
"deleteShader": "Delete Shader",
|
||||
"deleteShaderConfirm": "Delete \"${name}\"?"
|
||||
"importShader": "Shader importieren",
|
||||
"customShaderDescription": "Benutzerdefinierter GLSL-Shader",
|
||||
"shaderImported": "Shader importiert",
|
||||
"shaderImportFailed": "Shader konnte nicht importiert werden",
|
||||
"deleteShader": "Shader löschen",
|
||||
"deleteShaderConfirm": "\"${name}\" löschen?"
|
||||
},
|
||||
"companionRemote": {
|
||||
"title": "Companion Remote",
|
||||
"title": "Companion-Fernbedienung",
|
||||
"connectToDevice": "Mit Gerät verbinden",
|
||||
"hostRemoteSession": "Fernsteuerungssitzung starten",
|
||||
"controlThisDevice": "Dieses Gerät mit dem Handy steuern",
|
||||
|
||||
+16
-16
@@ -201,8 +201,8 @@
|
||||
"autoPipDescription": "Activar automáticamente imagen en imagen al salir de la app durante la reproducción",
|
||||
"matchContentFrameRate": "Ajustar frecuencia de actualización",
|
||||
"matchContentFrameRateDescription": "Ajustar la frecuencia de actualización de la pantalla para que coincida con el video, reduciendo tirones y ahorrando batería",
|
||||
"tunneledPlayback": "Tunneled Playback",
|
||||
"tunneledPlaybackDescription": "Use hardware-accelerated video tunneling. Disable if you see a black screen with audio on HDR content",
|
||||
"tunneledPlayback": "Reproducción tunelizada",
|
||||
"tunneledPlaybackDescription": "Usar tunelización de video acelerada por hardware. Desactivar si ves una pantalla negra con audio en contenido HDR",
|
||||
"requireProfileSelectionOnOpen": "Pedir perfil al abrir la app",
|
||||
"requireProfileSelectionOnOpenDescription": "Mostrar selección de perfil cada vez que se abre la aplicación",
|
||||
"confirmExitOnBack": "Confirmar antes de salir",
|
||||
@@ -365,8 +365,8 @@
|
||||
},
|
||||
"chapters": "Capítulos",
|
||||
"noChaptersAvailable": "No hay capítulos disponibles",
|
||||
"queue": "Queue",
|
||||
"noQueueItems": "No items in queue"
|
||||
"queue": "Cola",
|
||||
"noQueueItems": "No hay elementos en la cola"
|
||||
},
|
||||
"userStatus": {
|
||||
"admin": "Administrador",
|
||||
@@ -405,9 +405,9 @@
|
||||
"failedToCreatePlayQueueNoItems": "Error al crear la cola de reproducción - no hay elementos",
|
||||
"failedPlayback": "Error al ${action}: ${error}",
|
||||
"switchingToCompatiblePlayer": "Cambiando a reproductor compatible...",
|
||||
"logsUploaded": "Logs uploaded",
|
||||
"logsUploadFailed": "Failed to upload logs",
|
||||
"logId": "Log ID"
|
||||
"logsUploaded": "Registros subidos",
|
||||
"logsUploadFailed": "Error al subir registros",
|
||||
"logId": "ID de registro"
|
||||
},
|
||||
"subtitlingStyling": {
|
||||
"stylingOptions": "Opciones de Estilo",
|
||||
@@ -417,7 +417,7 @@
|
||||
"borderColor": "Color de Borde",
|
||||
"backgroundOpacity": "Opacidad de Fondo",
|
||||
"backgroundColor": "Color de Fondo",
|
||||
"position": "Position"
|
||||
"position": "Posición"
|
||||
},
|
||||
"mpvConfig": {
|
||||
"title": "Configuración de mpv",
|
||||
@@ -544,7 +544,7 @@
|
||||
"logs": {
|
||||
"clearLogs": "Borrar Logs",
|
||||
"copyLogs": "Copiar Logs",
|
||||
"uploadLogs": "Upload Logs",
|
||||
"uploadLogs": "Subir registros",
|
||||
"error": "Error:",
|
||||
"stackTrace": "Traza de la pila (Stack Trace):"
|
||||
},
|
||||
@@ -715,15 +715,15 @@
|
||||
"qualityFast": "Rápido",
|
||||
"qualityHQ": "Alta Calidad",
|
||||
"mode": "Modo",
|
||||
"importShader": "Import Shader",
|
||||
"customShaderDescription": "Custom GLSL shader",
|
||||
"shaderImported": "Shader imported",
|
||||
"shaderImportFailed": "Failed to import shader",
|
||||
"deleteShader": "Delete Shader",
|
||||
"deleteShaderConfirm": "Delete \"${name}\"?"
|
||||
"importShader": "Importar shader",
|
||||
"customShaderDescription": "Shader GLSL personalizado",
|
||||
"shaderImported": "Shader importado",
|
||||
"shaderImportFailed": "Error al importar shader",
|
||||
"deleteShader": "Eliminar shader",
|
||||
"deleteShaderConfirm": "¿Eliminar \"${name}\"?"
|
||||
},
|
||||
"companionRemote": {
|
||||
"title": "Companion Remote",
|
||||
"title": "Control remoto",
|
||||
"connectToDevice": "Conectar a dispositivo",
|
||||
"hostRemoteSession": "Iniciar sesión remota",
|
||||
"controlThisDevice": "Controla este dispositivo con tu teléfono",
|
||||
|
||||
+22
-22
@@ -95,8 +95,8 @@
|
||||
"durationHint": "Entrez la durée (${min}-${max})",
|
||||
"systemTheme": "Système",
|
||||
"systemThemeDescription": "Suivre les paramètres système",
|
||||
"lightTheme": "Light",
|
||||
"darkTheme": "Dark",
|
||||
"lightTheme": "Clair",
|
||||
"darkTheme": "Sombre",
|
||||
"oledTheme": "OLED",
|
||||
"oledThemeDescription": "Noir pur pour les écrans OLED",
|
||||
"libraryDensity": "Densité des bibliothèques",
|
||||
@@ -135,8 +135,8 @@
|
||||
"bufferSizeWarning": "Votre appareil dispose de ${heap}MB de mémoire. Un tampon de ${size}MB peut causer des problèmes de lecture.",
|
||||
"subtitleStyling": "Stylisation des sous-titres",
|
||||
"subtitleStylingDescription": "Personnaliser l'apparence des sous-titres",
|
||||
"smallSkipDuration": "Small Skip Duration",
|
||||
"largeSkipDuration": "Large Skip Duration",
|
||||
"smallSkipDuration": "Durée du petit saut",
|
||||
"largeSkipDuration": "Durée du grand saut",
|
||||
"secondsUnit": "${seconds} secondes",
|
||||
"defaultSleepTimer": "Minuterie de mise en veille par défaut",
|
||||
"minutesUnit": "${minutes} minutes",
|
||||
@@ -201,8 +201,8 @@
|
||||
"autoPipDescription": "Activer automatiquement l'image dans l'image en quittant l'application pendant la lecture",
|
||||
"matchContentFrameRate": "Fréquence d'images du contenu correspondant",
|
||||
"matchContentFrameRateDescription": "Ajustez la fréquence de rafraîchissement de l'écran en fonction du contenu vidéo, ce qui réduit les saccades et économise la batterie",
|
||||
"tunneledPlayback": "Tunneled Playback",
|
||||
"tunneledPlaybackDescription": "Use hardware-accelerated video tunneling. Disable if you see a black screen with audio on HDR content",
|
||||
"tunneledPlayback": "Lecture tunnelée",
|
||||
"tunneledPlaybackDescription": "Utiliser le tunnelage vidéo accéléré par matériel. Désactiver si vous voyez un écran noir avec du son sur du contenu HDR",
|
||||
"requireProfileSelectionOnOpen": "Demander le profil à l'ouverture",
|
||||
"requireProfileSelectionOnOpenDescription": "Afficher la sélection de profil à chaque ouverture de l'application",
|
||||
"confirmExitOnBack": "Confirmer avant de quitter",
|
||||
@@ -263,7 +263,7 @@
|
||||
"colorRange": "Gamme de couleurs",
|
||||
"colorPrimaries": "Couleurs primaires",
|
||||
"chromaSubsampling": "Sous-échantillonnage chromatique",
|
||||
"channels": "Channels",
|
||||
"channels": "Canaux",
|
||||
"path": "Chemin",
|
||||
"size": "Taille",
|
||||
"container": "Conteneur",
|
||||
@@ -347,7 +347,7 @@
|
||||
"ambientLightingOff": "Désactiver l'éclairage ambiant",
|
||||
"fullscreenButton": "Passer en mode plein écran",
|
||||
"exitFullscreenButton": "Quitter le mode plein écran",
|
||||
"alwaysOnTopButton": "Always on top",
|
||||
"alwaysOnTopButton": "Toujours au premier plan",
|
||||
"rotationLockButton": "Verrouillage de rotation",
|
||||
"timelineSlider": "Timeline vidéo",
|
||||
"volumeSlider": "Niveau sonore",
|
||||
@@ -365,8 +365,8 @@
|
||||
},
|
||||
"chapters": "Chapitres",
|
||||
"noChaptersAvailable": "Aucun chapitre disponible",
|
||||
"queue": "Queue",
|
||||
"noQueueItems": "No items in queue"
|
||||
"queue": "File d'attente",
|
||||
"noQueueItems": "Aucun élément dans la file d'attente"
|
||||
},
|
||||
"userStatus": {
|
||||
"admin": "Admin",
|
||||
@@ -405,9 +405,9 @@
|
||||
"failedToCreatePlayQueueNoItems": "Échec de la création de la file d'attente de lecture - aucun élément",
|
||||
"failedPlayback": "Echec de ${action}: ${error}",
|
||||
"switchingToCompatiblePlayer": "Passage au lecteur compatible...",
|
||||
"logsUploaded": "Logs uploaded",
|
||||
"logsUploadFailed": "Failed to upload logs",
|
||||
"logId": "Log ID"
|
||||
"logsUploaded": "Logs envoyés",
|
||||
"logsUploadFailed": "Échec de l'envoi des logs",
|
||||
"logId": "ID du log"
|
||||
},
|
||||
"subtitlingStyling": {
|
||||
"stylingOptions": "Options de style",
|
||||
@@ -544,7 +544,7 @@
|
||||
"logs": {
|
||||
"clearLogs": "Effacer les logs",
|
||||
"copyLogs": "Copier les logs",
|
||||
"uploadLogs": "Upload Logs",
|
||||
"uploadLogs": "Envoyer les logs",
|
||||
"error": "Erreur:",
|
||||
"stackTrace": "Liste des appels:"
|
||||
},
|
||||
@@ -628,7 +628,7 @@
|
||||
"deleted": "Playlist supprimée",
|
||||
"itemAdded": "Ajouté à la playlist",
|
||||
"itemRemoved": "Retiré de la playlist",
|
||||
"selectPlaylist": "Select Playlist",
|
||||
"selectPlaylist": "Sélectionner une playlist",
|
||||
"errorCreating": "Échec de la création de playlist",
|
||||
"errorDeleting": "Échec de suppression de playlist",
|
||||
"errorLoading": "Échec de chargement de playlists",
|
||||
@@ -715,15 +715,15 @@
|
||||
"qualityFast": "Rapide",
|
||||
"qualityHQ": "Haute qualité",
|
||||
"mode": "Mode",
|
||||
"importShader": "Import Shader",
|
||||
"customShaderDescription": "Custom GLSL shader",
|
||||
"shaderImported": "Shader imported",
|
||||
"shaderImportFailed": "Failed to import shader",
|
||||
"deleteShader": "Delete Shader",
|
||||
"deleteShaderConfirm": "Delete \"${name}\"?"
|
||||
"importShader": "Importer un shader",
|
||||
"customShaderDescription": "Shader GLSL personnalisé",
|
||||
"shaderImported": "Shader importé",
|
||||
"shaderImportFailed": "Échec de l'importation du shader",
|
||||
"deleteShader": "Supprimer le shader",
|
||||
"deleteShaderConfirm": "Supprimer \"${name}\" ?"
|
||||
},
|
||||
"companionRemote": {
|
||||
"title": "Companion Remote",
|
||||
"title": "Télécommande compagnon",
|
||||
"connectToDevice": "Se connecter à un appareil",
|
||||
"hostRemoteSession": "Héberger une session distante",
|
||||
"controlThisDevice": "Contrôlez cet appareil avec votre téléphone",
|
||||
|
||||
+16
-16
@@ -201,8 +201,8 @@
|
||||
"autoPipDescription": "Attiva automaticamente il picture-in-picture quando si esce dall'app durante la riproduzione",
|
||||
"matchContentFrameRate": "Adatta frequenza fotogrammi",
|
||||
"matchContentFrameRateDescription": "Regola la frequenza di aggiornamento del display in base al contenuto video, riducendo i tremolii e risparmiando batteria",
|
||||
"tunneledPlayback": "Tunneled Playback",
|
||||
"tunneledPlaybackDescription": "Use hardware-accelerated video tunneling. Disable if you see a black screen with audio on HDR content",
|
||||
"tunneledPlayback": "Riproduzione tunnelizzata",
|
||||
"tunneledPlaybackDescription": "Usa il tunneling video accelerato dall'hardware. Disattiva se vedi uno schermo nero con audio su contenuti HDR",
|
||||
"requireProfileSelectionOnOpen": "Chiedi profilo all'apertura",
|
||||
"requireProfileSelectionOnOpenDescription": "Mostra la selezione del profilo ogni volta che l'app viene aperta",
|
||||
"confirmExitOnBack": "Conferma prima di uscire",
|
||||
@@ -365,8 +365,8 @@
|
||||
},
|
||||
"chapters": "Capitoli",
|
||||
"noChaptersAvailable": "Nessun capitolo disponibile",
|
||||
"queue": "Queue",
|
||||
"noQueueItems": "No items in queue"
|
||||
"queue": "Coda",
|
||||
"noQueueItems": "Nessun elemento in coda"
|
||||
},
|
||||
"userStatus": {
|
||||
"admin": "Admin",
|
||||
@@ -405,9 +405,9 @@
|
||||
"failedToCreatePlayQueueNoItems": "Impossibile creare la coda di riproduzione - nessun elemento",
|
||||
"failedPlayback": "Impossibile ${action}: ${error}",
|
||||
"switchingToCompatiblePlayer": "Passaggio al lettore compatibile...",
|
||||
"logsUploaded": "Logs uploaded",
|
||||
"logsUploadFailed": "Failed to upload logs",
|
||||
"logId": "Log ID"
|
||||
"logsUploaded": "Log caricati",
|
||||
"logsUploadFailed": "Caricamento log fallito",
|
||||
"logId": "ID log"
|
||||
},
|
||||
"subtitlingStyling": {
|
||||
"stylingOptions": "Opzioni stile",
|
||||
@@ -417,7 +417,7 @@
|
||||
"borderColor": "Colore bordo",
|
||||
"backgroundOpacity": "Opacità sfondo",
|
||||
"backgroundColor": "Colore sfondo",
|
||||
"position": "Position"
|
||||
"position": "Posizione"
|
||||
},
|
||||
"mpvConfig": {
|
||||
"title": "Configurazione mpv",
|
||||
@@ -544,7 +544,7 @@
|
||||
"logs": {
|
||||
"clearLogs": "Cancella log",
|
||||
"copyLogs": "Copia log",
|
||||
"uploadLogs": "Upload Logs",
|
||||
"uploadLogs": "Carica log",
|
||||
"error": "Errore:",
|
||||
"stackTrace": "Traccia dello stack:"
|
||||
},
|
||||
@@ -715,15 +715,15 @@
|
||||
"qualityFast": "Veloce",
|
||||
"qualityHQ": "Alta qualità",
|
||||
"mode": "Modalità",
|
||||
"importShader": "Import Shader",
|
||||
"customShaderDescription": "Custom GLSL shader",
|
||||
"shaderImported": "Shader imported",
|
||||
"shaderImportFailed": "Failed to import shader",
|
||||
"deleteShader": "Delete Shader",
|
||||
"deleteShaderConfirm": "Delete \"${name}\"?"
|
||||
"importShader": "Importa shader",
|
||||
"customShaderDescription": "Shader GLSL personalizzato",
|
||||
"shaderImported": "Shader importato",
|
||||
"shaderImportFailed": "Importazione shader fallita",
|
||||
"deleteShader": "Elimina shader",
|
||||
"deleteShaderConfirm": "Eliminare \"${name}\"?"
|
||||
},
|
||||
"companionRemote": {
|
||||
"title": "Companion Remote",
|
||||
"title": "Telecomando",
|
||||
"connectToDevice": "Connetti a un dispositivo",
|
||||
"hostRemoteSession": "Ospita sessione remota",
|
||||
"controlThisDevice": "Controlla questo dispositivo con il tuo telefono",
|
||||
|
||||
+16
-16
@@ -201,8 +201,8 @@
|
||||
"autoPipDescription": "재생 중 앱을 나갈 때 자동으로 PIP 모드로 전환",
|
||||
"matchContentFrameRate": "콘텐츠 프레임 레이트 맞춤",
|
||||
"matchContentFrameRateDescription": "비디오 콘텐츠에 맞게 디스플레이 주사율을 조정하여 떨림을 줄이고 배터리를 절약합니다",
|
||||
"tunneledPlayback": "Tunneled Playback",
|
||||
"tunneledPlaybackDescription": "Use hardware-accelerated video tunneling. Disable if you see a black screen with audio on HDR content",
|
||||
"tunneledPlayback": "터널 재생",
|
||||
"tunneledPlaybackDescription": "하드웨어 가속 비디오 터널링을 사용합니다. HDR 콘텐츠에서 소리만 나고 검은 화면이 보이면 비활성화하세요",
|
||||
"requireProfileSelectionOnOpen": "앱 실행 시 프로필 선택",
|
||||
"requireProfileSelectionOnOpenDescription": "앱을 열 때마다 프로필 선택 화면을 표시합니다",
|
||||
"confirmExitOnBack": "종료 전 확인",
|
||||
@@ -365,8 +365,8 @@
|
||||
},
|
||||
"chapters": "챕터",
|
||||
"noChaptersAvailable": "사용 가능한 챕터가 없습니다",
|
||||
"queue": "Queue",
|
||||
"noQueueItems": "No items in queue"
|
||||
"queue": "재생 대기열",
|
||||
"noQueueItems": "대기열에 항목이 없습니다"
|
||||
},
|
||||
"userStatus": {
|
||||
"admin": "관리자",
|
||||
@@ -405,9 +405,9 @@
|
||||
"failedToCreatePlayQueueNoItems": "재생 대기열 생성 실패 - 항목 없음",
|
||||
"failedPlayback": "${action}을(를) 수행할 수 없습니다: ${error}",
|
||||
"switchingToCompatiblePlayer": "호환되는 플레이어로 전환 중...",
|
||||
"logsUploaded": "Logs uploaded",
|
||||
"logsUploadFailed": "Failed to upload logs",
|
||||
"logId": "Log ID"
|
||||
"logsUploaded": "로그 업로드 완료",
|
||||
"logsUploadFailed": "로그 업로드 실패",
|
||||
"logId": "로그 ID"
|
||||
},
|
||||
"subtitlingStyling": {
|
||||
"stylingOptions": "스타일 옵션",
|
||||
@@ -417,7 +417,7 @@
|
||||
"borderColor": "테두리 색상",
|
||||
"backgroundOpacity": "배경 불투명도",
|
||||
"backgroundColor": "배경색",
|
||||
"position": "Position"
|
||||
"position": "위치"
|
||||
},
|
||||
"mpvConfig": {
|
||||
"title": "mpv 설정",
|
||||
@@ -544,7 +544,7 @@
|
||||
"logs": {
|
||||
"clearLogs": "로그 지우기",
|
||||
"copyLogs": "로그 복사",
|
||||
"uploadLogs": "Upload Logs",
|
||||
"uploadLogs": "로그 업로드",
|
||||
"error": "오류:",
|
||||
"stackTrace": "스택 추적 (Stack Trace):"
|
||||
},
|
||||
@@ -715,15 +715,15 @@
|
||||
"qualityFast": "빠름",
|
||||
"qualityHQ": "고품질",
|
||||
"mode": "모드",
|
||||
"importShader": "Import Shader",
|
||||
"customShaderDescription": "Custom GLSL shader",
|
||||
"shaderImported": "Shader imported",
|
||||
"shaderImportFailed": "Failed to import shader",
|
||||
"deleteShader": "Delete Shader",
|
||||
"deleteShaderConfirm": "Delete \"${name}\"?"
|
||||
"importShader": "셰이더 가져오기",
|
||||
"customShaderDescription": "사용자 정의 GLSL 셰이더",
|
||||
"shaderImported": "셰이더를 가져왔습니다",
|
||||
"shaderImportFailed": "셰이더 가져오기 실패",
|
||||
"deleteShader": "셰이더 삭제",
|
||||
"deleteShaderConfirm": "\"${name}\"을(를) 삭제하시겠습니까?"
|
||||
},
|
||||
"companionRemote": {
|
||||
"title": "Companion Remote",
|
||||
"title": "컴패니언 리모컨",
|
||||
"connectToDevice": "기기에 연결",
|
||||
"hostRemoteSession": "원격 세션 호스트",
|
||||
"controlThisDevice": "휴대폰으로 이 기기를 제어하세요",
|
||||
|
||||
+16
-16
@@ -201,8 +201,8 @@
|
||||
"autoPipDescription": "Automatisch beeld-in-beeld activeren bij het verlaten van de app tijdens afspelen",
|
||||
"matchContentFrameRate": "Inhoudsframesnelheid afstemmen",
|
||||
"matchContentFrameRateDescription": "Pas de schermverversingssnelheid aan op de video-inhoud, vermindert haperingen en bespaart batterij",
|
||||
"tunneledPlayback": "Tunneled Playback",
|
||||
"tunneledPlaybackDescription": "Use hardware-accelerated video tunneling. Disable if you see a black screen with audio on HDR content",
|
||||
"tunneledPlayback": "Getunnelde weergave",
|
||||
"tunneledPlaybackDescription": "Gebruik hardwareversnelde videotunneling. Schakel uit als je een zwart scherm met geluid ziet bij HDR-content",
|
||||
"requireProfileSelectionOnOpen": "Vraag om profiel bij openen",
|
||||
"requireProfileSelectionOnOpenDescription": "Toon profielselectie telkens wanneer de app wordt geopend",
|
||||
"confirmExitOnBack": "Bevestigen voor afsluiten",
|
||||
@@ -365,8 +365,8 @@
|
||||
},
|
||||
"chapters": "Hoofdstukken",
|
||||
"noChaptersAvailable": "Geen hoofdstukken beschikbaar",
|
||||
"queue": "Queue",
|
||||
"noQueueItems": "No items in queue"
|
||||
"queue": "Wachtrij",
|
||||
"noQueueItems": "Geen items in de wachtrij"
|
||||
},
|
||||
"userStatus": {
|
||||
"admin": "Beheerder",
|
||||
@@ -405,9 +405,9 @@
|
||||
"failedToCreatePlayQueueNoItems": "Kan afspeelwachtrij niet maken - geen items",
|
||||
"failedPlayback": "Afspelen van ${action} mislukt: ${error}",
|
||||
"switchingToCompatiblePlayer": "Overschakelen naar compatibele speler...",
|
||||
"logsUploaded": "Logs uploaded",
|
||||
"logsUploadFailed": "Failed to upload logs",
|
||||
"logId": "Log ID"
|
||||
"logsUploaded": "Logs geüpload",
|
||||
"logsUploadFailed": "Uploaden van logs mislukt",
|
||||
"logId": "Log-ID"
|
||||
},
|
||||
"subtitlingStyling": {
|
||||
"stylingOptions": "Opmaak opties",
|
||||
@@ -417,7 +417,7 @@
|
||||
"borderColor": "Randkleur",
|
||||
"backgroundOpacity": "Achtergrond transparantie",
|
||||
"backgroundColor": "Achtergrondkleur",
|
||||
"position": "Position"
|
||||
"position": "Positie"
|
||||
},
|
||||
"mpvConfig": {
|
||||
"title": "mpv-configuratie",
|
||||
@@ -544,7 +544,7 @@
|
||||
"logs": {
|
||||
"clearLogs": "Wis logs",
|
||||
"copyLogs": "Kopieer logs",
|
||||
"uploadLogs": "Upload Logs",
|
||||
"uploadLogs": "Logs uploaden",
|
||||
"error": "Fout:",
|
||||
"stackTrace": "Stacktracering:"
|
||||
},
|
||||
@@ -715,15 +715,15 @@
|
||||
"qualityFast": "Snel",
|
||||
"qualityHQ": "Hoge kwaliteit",
|
||||
"mode": "Modus",
|
||||
"importShader": "Import Shader",
|
||||
"customShaderDescription": "Custom GLSL shader",
|
||||
"shaderImported": "Shader imported",
|
||||
"shaderImportFailed": "Failed to import shader",
|
||||
"deleteShader": "Delete Shader",
|
||||
"deleteShaderConfirm": "Delete \"${name}\"?"
|
||||
"importShader": "Shader importeren",
|
||||
"customShaderDescription": "Aangepaste GLSL-shader",
|
||||
"shaderImported": "Shader geïmporteerd",
|
||||
"shaderImportFailed": "Shader importeren mislukt",
|
||||
"deleteShader": "Shader verwijderen",
|
||||
"deleteShaderConfirm": "\"${name}\" verwijderen?"
|
||||
},
|
||||
"companionRemote": {
|
||||
"title": "Companion Remote",
|
||||
"title": "Afstandsbediening",
|
||||
"connectToDevice": "Verbinden met apparaat",
|
||||
"hostRemoteSession": "Externe sessie hosten",
|
||||
"controlThisDevice": "Bedien dit apparaat met je telefoon",
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
/// Locales: 15
|
||||
/// Strings: 12105 (807 per locale)
|
||||
///
|
||||
/// Built on 2026-03-08 at 14:11 UTC
|
||||
/// Built on 2026-03-10 at 00:19 UTC
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: type=lint, unused_import
|
||||
|
||||
+30
-30
@@ -320,8 +320,8 @@ class _TranslationsSettingsDe implements TranslationsSettingsEn {
|
||||
@override String get autoPipDescription => 'Automatisch Bild-in-Bild aktivieren, wenn die App während der Wiedergabe verlassen wird';
|
||||
@override String get matchContentFrameRate => 'Inhalts-Bildrate anpassen';
|
||||
@override String get matchContentFrameRateDescription => 'Bildwiederholfrequenz des Displays an den Videoinhalt anpassen, reduziert Ruckeln und spart Akku';
|
||||
@override String get tunneledPlayback => 'Tunneled Playback';
|
||||
@override String get tunneledPlaybackDescription => 'Use hardware-accelerated video tunneling. Disable if you see a black screen with audio on HDR content';
|
||||
@override String get tunneledPlayback => 'Tunnelwiedergabe';
|
||||
@override String get tunneledPlaybackDescription => 'Hardware-beschleunigte Video-Tunnelierung verwenden. Deaktivieren, wenn bei HDR-Inhalten ein schwarzer Bildschirm mit Ton erscheint';
|
||||
@override String get requireProfileSelectionOnOpen => 'Profil beim Öffnen abfragen';
|
||||
@override String get requireProfileSelectionOnOpenDescription => 'Profilauswahl bei jedem Öffnen der App anzeigen';
|
||||
@override String get confirmExitOnBack => 'Vor dem Beenden bestätigen';
|
||||
@@ -512,8 +512,8 @@ class _TranslationsVideoControlsDe implements TranslationsVideoControlsEn {
|
||||
@override late final _TranslationsVideoControlsPipErrorsDe pipErrors = _TranslationsVideoControlsPipErrorsDe._(_root);
|
||||
@override String get chapters => 'Kapitel';
|
||||
@override String get noChaptersAvailable => 'Keine Kapitel verfügbar';
|
||||
@override String get queue => 'Queue';
|
||||
@override String get noQueueItems => 'No items in queue';
|
||||
@override String get queue => 'Warteschlange';
|
||||
@override String get noQueueItems => 'Keine Elemente in der Warteschlange';
|
||||
}
|
||||
|
||||
// Path: userStatus
|
||||
@@ -566,9 +566,9 @@ class _TranslationsMessagesDe implements TranslationsMessagesEn {
|
||||
@override String get failedToCreatePlayQueueNoItems => 'Wiedergabewarteschlange konnte nicht erstellt werden – keine Elemente';
|
||||
@override String failedPlayback({required Object action, required Object error}) => 'Wiedergabe für ${action} fehlgeschlagen: ${error}';
|
||||
@override String get switchingToCompatiblePlayer => 'Wechsle zu kompatiblem Player...';
|
||||
@override String get logsUploaded => 'Logs uploaded';
|
||||
@override String get logsUploadFailed => 'Failed to upload logs';
|
||||
@override String get logId => 'Log ID';
|
||||
@override String get logsUploaded => 'Protokolle hochgeladen';
|
||||
@override String get logsUploadFailed => 'Protokolle konnten nicht hochgeladen werden';
|
||||
@override String get logId => 'Protokoll-ID';
|
||||
}
|
||||
|
||||
// Path: subtitlingStyling
|
||||
@@ -763,7 +763,7 @@ class _TranslationsLogsDe implements TranslationsLogsEn {
|
||||
// Translations
|
||||
@override String get clearLogs => 'Protokolle löschen';
|
||||
@override String get copyLogs => 'Protokolle kopieren';
|
||||
@override String get uploadLogs => 'Upload Logs';
|
||||
@override String get uploadLogs => 'Protokolle hochladen';
|
||||
@override String get error => 'Fehler:';
|
||||
@override String get stackTrace => 'Stacktrace:';
|
||||
}
|
||||
@@ -990,12 +990,12 @@ class _TranslationsShadersDe implements TranslationsShadersEn {
|
||||
@override String get qualityFast => 'Schnell';
|
||||
@override String get qualityHQ => 'Hohe Qualität';
|
||||
@override String get mode => 'Modus';
|
||||
@override String get importShader => 'Import Shader';
|
||||
@override String get customShaderDescription => 'Custom GLSL shader';
|
||||
@override String get shaderImported => 'Shader imported';
|
||||
@override String get shaderImportFailed => 'Failed to import shader';
|
||||
@override String get deleteShader => 'Delete Shader';
|
||||
@override String deleteShaderConfirm({required Object name}) => 'Delete "${name}"?';
|
||||
@override String get importShader => 'Shader importieren';
|
||||
@override String get customShaderDescription => 'Benutzerdefinierter GLSL-Shader';
|
||||
@override String get shaderImported => 'Shader importiert';
|
||||
@override String get shaderImportFailed => 'Shader konnte nicht importiert werden';
|
||||
@override String get deleteShader => 'Shader löschen';
|
||||
@override String deleteShaderConfirm({required Object name}) => '"${name}" löschen?';
|
||||
}
|
||||
|
||||
// Path: companionRemote
|
||||
@@ -1005,7 +1005,7 @@ class _TranslationsCompanionRemoteDe implements TranslationsCompanionRemoteEn {
|
||||
final TranslationsDe _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get title => 'Companion Remote';
|
||||
@override String get title => 'Companion-Fernbedienung';
|
||||
@override String get connectToDevice => 'Mit Gerät verbinden';
|
||||
@override String get hostRemoteSession => 'Fernsteuerungssitzung starten';
|
||||
@override String get controlThisDevice => 'Dieses Gerät mit dem Handy steuern';
|
||||
@@ -1495,8 +1495,8 @@ extension on TranslationsDe {
|
||||
'settings.autoPipDescription' => 'Automatisch Bild-in-Bild aktivieren, wenn die App während der Wiedergabe verlassen wird',
|
||||
'settings.matchContentFrameRate' => 'Inhalts-Bildrate anpassen',
|
||||
'settings.matchContentFrameRateDescription' => 'Bildwiederholfrequenz des Displays an den Videoinhalt anpassen, reduziert Ruckeln und spart Akku',
|
||||
'settings.tunneledPlayback' => 'Tunneled Playback',
|
||||
'settings.tunneledPlaybackDescription' => 'Use hardware-accelerated video tunneling. Disable if you see a black screen with audio on HDR content',
|
||||
'settings.tunneledPlayback' => 'Tunnelwiedergabe',
|
||||
'settings.tunneledPlaybackDescription' => 'Hardware-beschleunigte Video-Tunnelierung verwenden. Deaktivieren, wenn bei HDR-Inhalten ein schwarzer Bildschirm mit Ton erscheint',
|
||||
'settings.requireProfileSelectionOnOpen' => 'Profil beim Öffnen abfragen',
|
||||
'settings.requireProfileSelectionOnOpenDescription' => 'Profilauswahl bei jedem Öffnen der App anzeigen',
|
||||
'settings.confirmExitOnBack' => 'Vor dem Beenden bestätigen',
|
||||
@@ -1639,8 +1639,8 @@ extension on TranslationsDe {
|
||||
'videoControls.pipErrors.unknown' => ({required Object error}) => 'Ein Fehler ist aufgetreten: ${error}',
|
||||
'videoControls.chapters' => 'Kapitel',
|
||||
'videoControls.noChaptersAvailable' => 'Keine Kapitel verfügbar',
|
||||
'videoControls.queue' => 'Queue',
|
||||
'videoControls.noQueueItems' => 'No items in queue',
|
||||
'videoControls.queue' => 'Warteschlange',
|
||||
'videoControls.noQueueItems' => 'Keine Elemente in der Warteschlange',
|
||||
'userStatus.admin' => 'Eigentümer',
|
||||
'userStatus.restricted' => 'Eingeschränkt',
|
||||
'userStatus.protected' => 'Geschützt',
|
||||
@@ -1675,9 +1675,9 @@ extension on TranslationsDe {
|
||||
'messages.failedToCreatePlayQueueNoItems' => 'Wiedergabewarteschlange konnte nicht erstellt werden – keine Elemente',
|
||||
'messages.failedPlayback' => ({required Object action, required Object error}) => 'Wiedergabe für ${action} fehlgeschlagen: ${error}',
|
||||
'messages.switchingToCompatiblePlayer' => 'Wechsle zu kompatiblem Player...',
|
||||
'messages.logsUploaded' => 'Logs uploaded',
|
||||
'messages.logsUploadFailed' => 'Failed to upload logs',
|
||||
'messages.logId' => 'Log ID',
|
||||
'messages.logsUploaded' => 'Protokolle hochgeladen',
|
||||
'messages.logsUploadFailed' => 'Protokolle konnten nicht hochgeladen werden',
|
||||
'messages.logId' => 'Protokoll-ID',
|
||||
'subtitlingStyling.stylingOptions' => 'Stiloptionen',
|
||||
'subtitlingStyling.fontSize' => 'Schriftgröße',
|
||||
'subtitlingStyling.textColor' => 'Textfarbe',
|
||||
@@ -1790,7 +1790,7 @@ extension on TranslationsDe {
|
||||
'hubDetail.noItemsFound' => 'Keine Elemente gefunden',
|
||||
'logs.clearLogs' => 'Protokolle löschen',
|
||||
'logs.copyLogs' => 'Protokolle kopieren',
|
||||
'logs.uploadLogs' => 'Upload Logs',
|
||||
'logs.uploadLogs' => 'Protokolle hochladen',
|
||||
'logs.error' => 'Fehler:',
|
||||
'logs.stackTrace' => 'Stacktrace:',
|
||||
'licenses.relatedPackages' => 'Verwandte Pakete',
|
||||
@@ -1947,13 +1947,13 @@ extension on TranslationsDe {
|
||||
'shaders.qualityFast' => 'Schnell',
|
||||
'shaders.qualityHQ' => 'Hohe Qualität',
|
||||
'shaders.mode' => 'Modus',
|
||||
'shaders.importShader' => 'Import Shader',
|
||||
'shaders.customShaderDescription' => 'Custom GLSL shader',
|
||||
'shaders.shaderImported' => 'Shader imported',
|
||||
'shaders.shaderImportFailed' => 'Failed to import shader',
|
||||
'shaders.deleteShader' => 'Delete Shader',
|
||||
'shaders.deleteShaderConfirm' => ({required Object name}) => 'Delete "${name}"?',
|
||||
'companionRemote.title' => 'Companion Remote',
|
||||
'shaders.importShader' => 'Shader importieren',
|
||||
'shaders.customShaderDescription' => 'Benutzerdefinierter GLSL-Shader',
|
||||
'shaders.shaderImported' => 'Shader importiert',
|
||||
'shaders.shaderImportFailed' => 'Shader konnte nicht importiert werden',
|
||||
'shaders.deleteShader' => 'Shader löschen',
|
||||
'shaders.deleteShaderConfirm' => ({required Object name}) => '"${name}" löschen?',
|
||||
'companionRemote.title' => 'Companion-Fernbedienung',
|
||||
'companionRemote.connectToDevice' => 'Mit Gerät verbinden',
|
||||
'companionRemote.hostRemoteSession' => 'Fernsteuerungssitzung starten',
|
||||
'companionRemote.controlThisDevice' => 'Dieses Gerät mit dem Handy steuern',
|
||||
|
||||
+32
-32
@@ -320,8 +320,8 @@ class _TranslationsSettingsEs implements TranslationsSettingsEn {
|
||||
@override String get autoPipDescription => 'Activar automáticamente imagen en imagen al salir de la app durante la reproducción';
|
||||
@override String get matchContentFrameRate => 'Ajustar frecuencia de actualización';
|
||||
@override String get matchContentFrameRateDescription => 'Ajustar la frecuencia de actualización de la pantalla para que coincida con el video, reduciendo tirones y ahorrando batería';
|
||||
@override String get tunneledPlayback => 'Tunneled Playback';
|
||||
@override String get tunneledPlaybackDescription => 'Use hardware-accelerated video tunneling. Disable if you see a black screen with audio on HDR content';
|
||||
@override String get tunneledPlayback => 'Reproducción tunelizada';
|
||||
@override String get tunneledPlaybackDescription => 'Usar tunelización de video acelerada por hardware. Desactivar si ves una pantalla negra con audio en contenido HDR';
|
||||
@override String get requireProfileSelectionOnOpen => 'Pedir perfil al abrir la app';
|
||||
@override String get requireProfileSelectionOnOpenDescription => 'Mostrar selección de perfil cada vez que se abre la aplicación';
|
||||
@override String get confirmExitOnBack => 'Confirmar antes de salir';
|
||||
@@ -512,8 +512,8 @@ class _TranslationsVideoControlsEs implements TranslationsVideoControlsEn {
|
||||
@override late final _TranslationsVideoControlsPipErrorsEs pipErrors = _TranslationsVideoControlsPipErrorsEs._(_root);
|
||||
@override String get chapters => 'Capítulos';
|
||||
@override String get noChaptersAvailable => 'No hay capítulos disponibles';
|
||||
@override String get queue => 'Queue';
|
||||
@override String get noQueueItems => 'No items in queue';
|
||||
@override String get queue => 'Cola';
|
||||
@override String get noQueueItems => 'No hay elementos en la cola';
|
||||
}
|
||||
|
||||
// Path: userStatus
|
||||
@@ -566,9 +566,9 @@ class _TranslationsMessagesEs implements TranslationsMessagesEn {
|
||||
@override String get failedToCreatePlayQueueNoItems => 'Error al crear la cola de reproducción - no hay elementos';
|
||||
@override String failedPlayback({required Object action, required Object error}) => 'Error al ${action}: ${error}';
|
||||
@override String get switchingToCompatiblePlayer => 'Cambiando a reproductor compatible...';
|
||||
@override String get logsUploaded => 'Logs uploaded';
|
||||
@override String get logsUploadFailed => 'Failed to upload logs';
|
||||
@override String get logId => 'Log ID';
|
||||
@override String get logsUploaded => 'Registros subidos';
|
||||
@override String get logsUploadFailed => 'Error al subir registros';
|
||||
@override String get logId => 'ID de registro';
|
||||
}
|
||||
|
||||
// Path: subtitlingStyling
|
||||
@@ -585,7 +585,7 @@ class _TranslationsSubtitlingStylingEs implements TranslationsSubtitlingStylingE
|
||||
@override String get borderColor => 'Color de Borde';
|
||||
@override String get backgroundOpacity => 'Opacidad de Fondo';
|
||||
@override String get backgroundColor => 'Color de Fondo';
|
||||
@override String get position => 'Position';
|
||||
@override String get position => 'Posición';
|
||||
}
|
||||
|
||||
// Path: mpvConfig
|
||||
@@ -763,7 +763,7 @@ class _TranslationsLogsEs implements TranslationsLogsEn {
|
||||
// Translations
|
||||
@override String get clearLogs => 'Borrar Logs';
|
||||
@override String get copyLogs => 'Copiar Logs';
|
||||
@override String get uploadLogs => 'Upload Logs';
|
||||
@override String get uploadLogs => 'Subir registros';
|
||||
@override String get error => 'Error:';
|
||||
@override String get stackTrace => 'Traza de la pila (Stack Trace):';
|
||||
}
|
||||
@@ -990,12 +990,12 @@ class _TranslationsShadersEs implements TranslationsShadersEn {
|
||||
@override String get qualityFast => 'Rápido';
|
||||
@override String get qualityHQ => 'Alta Calidad';
|
||||
@override String get mode => 'Modo';
|
||||
@override String get importShader => 'Import Shader';
|
||||
@override String get customShaderDescription => 'Custom GLSL shader';
|
||||
@override String get shaderImported => 'Shader imported';
|
||||
@override String get shaderImportFailed => 'Failed to import shader';
|
||||
@override String get deleteShader => 'Delete Shader';
|
||||
@override String deleteShaderConfirm({required Object name}) => 'Delete "${name}"?';
|
||||
@override String get importShader => 'Importar shader';
|
||||
@override String get customShaderDescription => 'Shader GLSL personalizado';
|
||||
@override String get shaderImported => 'Shader importado';
|
||||
@override String get shaderImportFailed => 'Error al importar shader';
|
||||
@override String get deleteShader => 'Eliminar shader';
|
||||
@override String deleteShaderConfirm({required Object name}) => '¿Eliminar "${name}"?';
|
||||
}
|
||||
|
||||
// Path: companionRemote
|
||||
@@ -1005,7 +1005,7 @@ class _TranslationsCompanionRemoteEs implements TranslationsCompanionRemoteEn {
|
||||
final TranslationsEs _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get title => 'Companion Remote';
|
||||
@override String get title => 'Control remoto';
|
||||
@override String get connectToDevice => 'Conectar a dispositivo';
|
||||
@override String get hostRemoteSession => 'Iniciar sesión remota';
|
||||
@override String get controlThisDevice => 'Controla este dispositivo con tu teléfono';
|
||||
@@ -1495,8 +1495,8 @@ extension on TranslationsEs {
|
||||
'settings.autoPipDescription' => 'Activar automáticamente imagen en imagen al salir de la app durante la reproducción',
|
||||
'settings.matchContentFrameRate' => 'Ajustar frecuencia de actualización',
|
||||
'settings.matchContentFrameRateDescription' => 'Ajustar la frecuencia de actualización de la pantalla para que coincida con el video, reduciendo tirones y ahorrando batería',
|
||||
'settings.tunneledPlayback' => 'Tunneled Playback',
|
||||
'settings.tunneledPlaybackDescription' => 'Use hardware-accelerated video tunneling. Disable if you see a black screen with audio on HDR content',
|
||||
'settings.tunneledPlayback' => 'Reproducción tunelizada',
|
||||
'settings.tunneledPlaybackDescription' => 'Usar tunelización de video acelerada por hardware. Desactivar si ves una pantalla negra con audio en contenido HDR',
|
||||
'settings.requireProfileSelectionOnOpen' => 'Pedir perfil al abrir la app',
|
||||
'settings.requireProfileSelectionOnOpenDescription' => 'Mostrar selección de perfil cada vez que se abre la aplicación',
|
||||
'settings.confirmExitOnBack' => 'Confirmar antes de salir',
|
||||
@@ -1639,8 +1639,8 @@ extension on TranslationsEs {
|
||||
'videoControls.pipErrors.unknown' => ({required Object error}) => 'Ocurrió un error: ${error}',
|
||||
'videoControls.chapters' => 'Capítulos',
|
||||
'videoControls.noChaptersAvailable' => 'No hay capítulos disponibles',
|
||||
'videoControls.queue' => 'Queue',
|
||||
'videoControls.noQueueItems' => 'No items in queue',
|
||||
'videoControls.queue' => 'Cola',
|
||||
'videoControls.noQueueItems' => 'No hay elementos en la cola',
|
||||
'userStatus.admin' => 'Administrador',
|
||||
'userStatus.restricted' => 'Restringido',
|
||||
'userStatus.protected' => 'Protegido',
|
||||
@@ -1675,9 +1675,9 @@ extension on TranslationsEs {
|
||||
'messages.failedToCreatePlayQueueNoItems' => 'Error al crear la cola de reproducción - no hay elementos',
|
||||
'messages.failedPlayback' => ({required Object action, required Object error}) => 'Error al ${action}: ${error}',
|
||||
'messages.switchingToCompatiblePlayer' => 'Cambiando a reproductor compatible...',
|
||||
'messages.logsUploaded' => 'Logs uploaded',
|
||||
'messages.logsUploadFailed' => 'Failed to upload logs',
|
||||
'messages.logId' => 'Log ID',
|
||||
'messages.logsUploaded' => 'Registros subidos',
|
||||
'messages.logsUploadFailed' => 'Error al subir registros',
|
||||
'messages.logId' => 'ID de registro',
|
||||
'subtitlingStyling.stylingOptions' => 'Opciones de Estilo',
|
||||
'subtitlingStyling.fontSize' => 'Tamaño de Fuente',
|
||||
'subtitlingStyling.textColor' => 'Color de Texto',
|
||||
@@ -1685,7 +1685,7 @@ extension on TranslationsEs {
|
||||
'subtitlingStyling.borderColor' => 'Color de Borde',
|
||||
'subtitlingStyling.backgroundOpacity' => 'Opacidad de Fondo',
|
||||
'subtitlingStyling.backgroundColor' => 'Color de Fondo',
|
||||
'subtitlingStyling.position' => 'Position',
|
||||
'subtitlingStyling.position' => 'Posición',
|
||||
'mpvConfig.title' => 'Configuración de mpv',
|
||||
'mpvConfig.description' => 'Ajustes avanzados del reproductor de video',
|
||||
'mpvConfig.presets' => 'Ajustes preestablecidos',
|
||||
@@ -1790,7 +1790,7 @@ extension on TranslationsEs {
|
||||
'hubDetail.noItemsFound' => 'No se encontraron elementos',
|
||||
'logs.clearLogs' => 'Borrar Logs',
|
||||
'logs.copyLogs' => 'Copiar Logs',
|
||||
'logs.uploadLogs' => 'Upload Logs',
|
||||
'logs.uploadLogs' => 'Subir registros',
|
||||
'logs.error' => 'Error:',
|
||||
'logs.stackTrace' => 'Traza de la pila (Stack Trace):',
|
||||
'licenses.relatedPackages' => 'Paquetes relacionados',
|
||||
@@ -1947,13 +1947,13 @@ extension on TranslationsEs {
|
||||
'shaders.qualityFast' => 'Rápido',
|
||||
'shaders.qualityHQ' => 'Alta Calidad',
|
||||
'shaders.mode' => 'Modo',
|
||||
'shaders.importShader' => 'Import Shader',
|
||||
'shaders.customShaderDescription' => 'Custom GLSL shader',
|
||||
'shaders.shaderImported' => 'Shader imported',
|
||||
'shaders.shaderImportFailed' => 'Failed to import shader',
|
||||
'shaders.deleteShader' => 'Delete Shader',
|
||||
'shaders.deleteShaderConfirm' => ({required Object name}) => 'Delete "${name}"?',
|
||||
'companionRemote.title' => 'Companion Remote',
|
||||
'shaders.importShader' => 'Importar shader',
|
||||
'shaders.customShaderDescription' => 'Shader GLSL personalizado',
|
||||
'shaders.shaderImported' => 'Shader importado',
|
||||
'shaders.shaderImportFailed' => 'Error al importar shader',
|
||||
'shaders.deleteShader' => 'Eliminar shader',
|
||||
'shaders.deleteShaderConfirm' => ({required Object name}) => '¿Eliminar "${name}"?',
|
||||
'companionRemote.title' => 'Control remoto',
|
||||
'companionRemote.connectToDevice' => 'Conectar a dispositivo',
|
||||
'companionRemote.hostRemoteSession' => 'Iniciar sesión remota',
|
||||
'companionRemote.controlThisDevice' => 'Controla este dispositivo con tu teléfono',
|
||||
|
||||
+44
-44
@@ -214,8 +214,8 @@ class _TranslationsSettingsFr implements TranslationsSettingsEn {
|
||||
@override String durationHint({required Object min, required Object max}) => 'Entrez la durée (${min}-${max})';
|
||||
@override String get systemTheme => 'Système';
|
||||
@override String get systemThemeDescription => 'Suivre les paramètres système';
|
||||
@override String get lightTheme => 'Light';
|
||||
@override String get darkTheme => 'Dark';
|
||||
@override String get lightTheme => 'Clair';
|
||||
@override String get darkTheme => 'Sombre';
|
||||
@override String get oledTheme => 'OLED';
|
||||
@override String get oledThemeDescription => 'Noir pur pour les écrans OLED';
|
||||
@override String get libraryDensity => 'Densité des bibliothèques';
|
||||
@@ -254,8 +254,8 @@ class _TranslationsSettingsFr implements TranslationsSettingsEn {
|
||||
@override String bufferSizeWarning({required Object heap, required Object size}) => 'Votre appareil dispose de ${heap}MB de mémoire. Un tampon de ${size}MB peut causer des problèmes de lecture.';
|
||||
@override String get subtitleStyling => 'Stylisation des sous-titres';
|
||||
@override String get subtitleStylingDescription => 'Personnaliser l\'apparence des sous-titres';
|
||||
@override String get smallSkipDuration => 'Small Skip Duration';
|
||||
@override String get largeSkipDuration => 'Large Skip Duration';
|
||||
@override String get smallSkipDuration => 'Durée du petit saut';
|
||||
@override String get largeSkipDuration => 'Durée du grand saut';
|
||||
@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';
|
||||
@@ -320,8 +320,8 @@ class _TranslationsSettingsFr implements TranslationsSettingsEn {
|
||||
@override String get autoPipDescription => 'Activer automatiquement l\'image dans l\'image en quittant l\'application pendant la lecture';
|
||||
@override String get matchContentFrameRate => 'Fréquence d\'images du contenu correspondant';
|
||||
@override String get matchContentFrameRateDescription => 'Ajustez la fréquence de rafraîchissement de l\'écran en fonction du contenu vidéo, ce qui réduit les saccades et économise la batterie';
|
||||
@override String get tunneledPlayback => 'Tunneled Playback';
|
||||
@override String get tunneledPlaybackDescription => 'Use hardware-accelerated video tunneling. Disable if you see a black screen with audio on HDR content';
|
||||
@override String get tunneledPlayback => 'Lecture tunnelée';
|
||||
@override String get tunneledPlaybackDescription => 'Utiliser le tunnelage vidéo accéléré par matériel. Désactiver si vous voyez un écran noir avec du son sur du contenu HDR';
|
||||
@override String get requireProfileSelectionOnOpen => 'Demander le profil à l\'ouverture';
|
||||
@override String get requireProfileSelectionOnOpenDescription => 'Afficher la sélection de profil à chaque ouverture de l\'application';
|
||||
@override String get confirmExitOnBack => 'Confirmer avant de quitter';
|
||||
@@ -390,7 +390,7 @@ class _TranslationsFileInfoFr implements TranslationsFileInfoEn {
|
||||
@override String get colorRange => 'Gamme de couleurs';
|
||||
@override String get colorPrimaries => 'Couleurs primaires';
|
||||
@override String get chromaSubsampling => 'Sous-échantillonnage chromatique';
|
||||
@override String get channels => 'Channels';
|
||||
@override String get channels => 'Canaux';
|
||||
@override String get path => 'Chemin';
|
||||
@override String get size => 'Taille';
|
||||
@override String get container => 'Conteneur';
|
||||
@@ -502,7 +502,7 @@ class _TranslationsVideoControlsFr implements TranslationsVideoControlsEn {
|
||||
@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 => 'Always on top';
|
||||
@override String get alwaysOnTopButton => 'Toujours au premier plan';
|
||||
@override String get rotationLockButton => 'Verrouillage de rotation';
|
||||
@override String get timelineSlider => 'Timeline vidéo';
|
||||
@override String get volumeSlider => 'Niveau sonore';
|
||||
@@ -512,8 +512,8 @@ class _TranslationsVideoControlsFr implements TranslationsVideoControlsEn {
|
||||
@override late final _TranslationsVideoControlsPipErrorsFr pipErrors = _TranslationsVideoControlsPipErrorsFr._(_root);
|
||||
@override String get chapters => 'Chapitres';
|
||||
@override String get noChaptersAvailable => 'Aucun chapitre disponible';
|
||||
@override String get queue => 'Queue';
|
||||
@override String get noQueueItems => 'No items in queue';
|
||||
@override String get queue => 'File d\'attente';
|
||||
@override String get noQueueItems => 'Aucun élément dans la file d\'attente';
|
||||
}
|
||||
|
||||
// Path: userStatus
|
||||
@@ -566,9 +566,9 @@ class _TranslationsMessagesFr implements TranslationsMessagesEn {
|
||||
@override String get failedToCreatePlayQueueNoItems => 'Échec de la création de la file d\'attente de lecture - aucun élément';
|
||||
@override String failedPlayback({required Object action, required Object error}) => 'Echec de ${action}: ${error}';
|
||||
@override String get switchingToCompatiblePlayer => 'Passage au lecteur compatible...';
|
||||
@override String get logsUploaded => 'Logs uploaded';
|
||||
@override String get logsUploadFailed => 'Failed to upload logs';
|
||||
@override String get logId => 'Log ID';
|
||||
@override String get logsUploaded => 'Logs envoyés';
|
||||
@override String get logsUploadFailed => 'Échec de l\'envoi des logs';
|
||||
@override String get logId => 'ID du log';
|
||||
}
|
||||
|
||||
// Path: subtitlingStyling
|
||||
@@ -763,7 +763,7 @@ class _TranslationsLogsFr implements TranslationsLogsEn {
|
||||
// Translations
|
||||
@override String get clearLogs => 'Effacer les logs';
|
||||
@override String get copyLogs => 'Copier les logs';
|
||||
@override String get uploadLogs => 'Upload Logs';
|
||||
@override String get uploadLogs => 'Envoyer les logs';
|
||||
@override String get error => 'Erreur:';
|
||||
@override String get stackTrace => 'Liste des appels:';
|
||||
}
|
||||
@@ -882,7 +882,7 @@ class _TranslationsPlaylistsFr implements TranslationsPlaylistsEn {
|
||||
@override String get deleted => 'Playlist supprimée';
|
||||
@override String get itemAdded => 'Ajouté à la playlist';
|
||||
@override String get itemRemoved => 'Retiré de la playlist';
|
||||
@override String get selectPlaylist => 'Select Playlist';
|
||||
@override String get selectPlaylist => 'Sélectionner une playlist';
|
||||
@override String get errorCreating => 'Échec de la création de playlist';
|
||||
@override String get errorDeleting => 'Échec de suppression de playlist';
|
||||
@override String get errorLoading => 'Échec de chargement de playlists';
|
||||
@@ -990,12 +990,12 @@ class _TranslationsShadersFr implements TranslationsShadersEn {
|
||||
@override String get qualityFast => 'Rapide';
|
||||
@override String get qualityHQ => 'Haute qualité';
|
||||
@override String get mode => 'Mode';
|
||||
@override String get importShader => 'Import Shader';
|
||||
@override String get customShaderDescription => 'Custom GLSL shader';
|
||||
@override String get shaderImported => 'Shader imported';
|
||||
@override String get shaderImportFailed => 'Failed to import shader';
|
||||
@override String get deleteShader => 'Delete Shader';
|
||||
@override String deleteShaderConfirm({required Object name}) => 'Delete "${name}"?';
|
||||
@override String get importShader => 'Importer un shader';
|
||||
@override String get customShaderDescription => 'Shader GLSL personnalisé';
|
||||
@override String get shaderImported => 'Shader importé';
|
||||
@override String get shaderImportFailed => 'Échec de l\'importation du shader';
|
||||
@override String get deleteShader => 'Supprimer le shader';
|
||||
@override String deleteShaderConfirm({required Object name}) => 'Supprimer "${name}" ?';
|
||||
}
|
||||
|
||||
// Path: companionRemote
|
||||
@@ -1005,7 +1005,7 @@ class _TranslationsCompanionRemoteFr implements TranslationsCompanionRemoteEn {
|
||||
final TranslationsFr _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get title => 'Companion Remote';
|
||||
@override String get title => 'Télécommande compagnon';
|
||||
@override String get connectToDevice => 'Se connecter à un appareil';
|
||||
@override String get hostRemoteSession => 'Héberger une session distante';
|
||||
@override String get controlThisDevice => 'Contrôlez cet appareil avec votre téléphone';
|
||||
@@ -1389,8 +1389,8 @@ extension on TranslationsFr {
|
||||
'settings.durationHint' => ({required Object min, required Object max}) => 'Entrez la durée (${min}-${max})',
|
||||
'settings.systemTheme' => 'Système',
|
||||
'settings.systemThemeDescription' => 'Suivre les paramètres système',
|
||||
'settings.lightTheme' => 'Light',
|
||||
'settings.darkTheme' => 'Dark',
|
||||
'settings.lightTheme' => 'Clair',
|
||||
'settings.darkTheme' => 'Sombre',
|
||||
'settings.oledTheme' => 'OLED',
|
||||
'settings.oledThemeDescription' => 'Noir pur pour les écrans OLED',
|
||||
'settings.libraryDensity' => 'Densité des bibliothèques',
|
||||
@@ -1429,8 +1429,8 @@ extension on TranslationsFr {
|
||||
'settings.bufferSizeWarning' => ({required Object heap, required Object size}) => 'Votre appareil dispose de ${heap}MB de mémoire. Un tampon de ${size}MB peut causer des problèmes de lecture.',
|
||||
'settings.subtitleStyling' => 'Stylisation des sous-titres',
|
||||
'settings.subtitleStylingDescription' => 'Personnaliser l\'apparence des sous-titres',
|
||||
'settings.smallSkipDuration' => 'Small Skip Duration',
|
||||
'settings.largeSkipDuration' => 'Large Skip Duration',
|
||||
'settings.smallSkipDuration' => 'Durée du petit saut',
|
||||
'settings.largeSkipDuration' => 'Durée du grand saut',
|
||||
'settings.secondsUnit' => ({required Object seconds}) => '${seconds} secondes',
|
||||
'settings.defaultSleepTimer' => 'Minuterie de mise en veille par défaut',
|
||||
'settings.minutesUnit' => ({required Object minutes}) => '${minutes} minutes',
|
||||
@@ -1495,8 +1495,8 @@ extension on TranslationsFr {
|
||||
'settings.autoPipDescription' => 'Activer automatiquement l\'image dans l\'image en quittant l\'application pendant la lecture',
|
||||
'settings.matchContentFrameRate' => 'Fréquence d\'images du contenu correspondant',
|
||||
'settings.matchContentFrameRateDescription' => 'Ajustez la fréquence de rafraîchissement de l\'écran en fonction du contenu vidéo, ce qui réduit les saccades et économise la batterie',
|
||||
'settings.tunneledPlayback' => 'Tunneled Playback',
|
||||
'settings.tunneledPlaybackDescription' => 'Use hardware-accelerated video tunneling. Disable if you see a black screen with audio on HDR content',
|
||||
'settings.tunneledPlayback' => 'Lecture tunnelée',
|
||||
'settings.tunneledPlaybackDescription' => 'Utiliser le tunnelage vidéo accéléré par matériel. Désactiver si vous voyez un écran noir avec du son sur du contenu HDR',
|
||||
'settings.requireProfileSelectionOnOpen' => 'Demander le profil à l\'ouverture',
|
||||
'settings.requireProfileSelectionOnOpenDescription' => 'Afficher la sélection de profil à chaque ouverture de l\'application',
|
||||
'settings.confirmExitOnBack' => 'Confirmer avant de quitter',
|
||||
@@ -1547,7 +1547,7 @@ extension on TranslationsFr {
|
||||
'fileInfo.colorRange' => 'Gamme de couleurs',
|
||||
'fileInfo.colorPrimaries' => 'Couleurs primaires',
|
||||
'fileInfo.chromaSubsampling' => 'Sous-échantillonnage chromatique',
|
||||
'fileInfo.channels' => 'Channels',
|
||||
'fileInfo.channels' => 'Canaux',
|
||||
'fileInfo.path' => 'Chemin',
|
||||
'fileInfo.size' => 'Taille',
|
||||
'fileInfo.container' => 'Conteneur',
|
||||
@@ -1623,7 +1623,7 @@ extension on TranslationsFr {
|
||||
'videoControls.ambientLightingOff' => 'Désactiver l\'éclairage ambiant',
|
||||
'videoControls.fullscreenButton' => 'Passer en mode plein écran',
|
||||
'videoControls.exitFullscreenButton' => 'Quitter le mode plein écran',
|
||||
'videoControls.alwaysOnTopButton' => 'Always on top',
|
||||
'videoControls.alwaysOnTopButton' => 'Toujours au premier plan',
|
||||
'videoControls.rotationLockButton' => 'Verrouillage de rotation',
|
||||
'videoControls.timelineSlider' => 'Timeline vidéo',
|
||||
'videoControls.volumeSlider' => 'Niveau sonore',
|
||||
@@ -1639,8 +1639,8 @@ extension on TranslationsFr {
|
||||
'videoControls.pipErrors.unknown' => ({required Object error}) => 'Une erreur s\'est produite : ${error}',
|
||||
'videoControls.chapters' => 'Chapitres',
|
||||
'videoControls.noChaptersAvailable' => 'Aucun chapitre disponible',
|
||||
'videoControls.queue' => 'Queue',
|
||||
'videoControls.noQueueItems' => 'No items in queue',
|
||||
'videoControls.queue' => 'File d\'attente',
|
||||
'videoControls.noQueueItems' => 'Aucun élément dans la file d\'attente',
|
||||
'userStatus.admin' => 'Admin',
|
||||
'userStatus.restricted' => 'Restreint',
|
||||
'userStatus.protected' => 'Protégé',
|
||||
@@ -1675,9 +1675,9 @@ extension on TranslationsFr {
|
||||
'messages.failedToCreatePlayQueueNoItems' => 'Échec de la création de la file d\'attente de lecture - aucun élément',
|
||||
'messages.failedPlayback' => ({required Object action, required Object error}) => 'Echec de ${action}: ${error}',
|
||||
'messages.switchingToCompatiblePlayer' => 'Passage au lecteur compatible...',
|
||||
'messages.logsUploaded' => 'Logs uploaded',
|
||||
'messages.logsUploadFailed' => 'Failed to upload logs',
|
||||
'messages.logId' => 'Log ID',
|
||||
'messages.logsUploaded' => 'Logs envoyés',
|
||||
'messages.logsUploadFailed' => 'Échec de l\'envoi des logs',
|
||||
'messages.logId' => 'ID du log',
|
||||
'subtitlingStyling.stylingOptions' => 'Options de style',
|
||||
'subtitlingStyling.fontSize' => 'Taille de la police',
|
||||
'subtitlingStyling.textColor' => 'Couleur du texte',
|
||||
@@ -1790,7 +1790,7 @@ extension on TranslationsFr {
|
||||
'hubDetail.noItemsFound' => 'Aucun élément trouvé',
|
||||
'logs.clearLogs' => 'Effacer les logs',
|
||||
'logs.copyLogs' => 'Copier les logs',
|
||||
'logs.uploadLogs' => 'Upload Logs',
|
||||
'logs.uploadLogs' => 'Envoyer les logs',
|
||||
'logs.error' => 'Erreur:',
|
||||
'logs.stackTrace' => 'Liste des appels:',
|
||||
'licenses.relatedPackages' => 'Package associés',
|
||||
@@ -1866,7 +1866,7 @@ extension on TranslationsFr {
|
||||
'playlists.deleted' => 'Playlist supprimée',
|
||||
'playlists.itemAdded' => 'Ajouté à la playlist',
|
||||
'playlists.itemRemoved' => 'Retiré de la playlist',
|
||||
'playlists.selectPlaylist' => 'Select Playlist',
|
||||
'playlists.selectPlaylist' => 'Sélectionner une playlist',
|
||||
'playlists.errorCreating' => 'Échec de la création de playlist',
|
||||
'playlists.errorDeleting' => 'Échec de suppression de playlist',
|
||||
'playlists.errorLoading' => 'Échec de chargement de playlists',
|
||||
@@ -1947,13 +1947,13 @@ extension on TranslationsFr {
|
||||
'shaders.qualityFast' => 'Rapide',
|
||||
'shaders.qualityHQ' => 'Haute qualité',
|
||||
'shaders.mode' => 'Mode',
|
||||
'shaders.importShader' => 'Import Shader',
|
||||
'shaders.customShaderDescription' => 'Custom GLSL shader',
|
||||
'shaders.shaderImported' => 'Shader imported',
|
||||
'shaders.shaderImportFailed' => 'Failed to import shader',
|
||||
'shaders.deleteShader' => 'Delete Shader',
|
||||
'shaders.deleteShaderConfirm' => ({required Object name}) => 'Delete "${name}"?',
|
||||
'companionRemote.title' => 'Companion Remote',
|
||||
'shaders.importShader' => 'Importer un shader',
|
||||
'shaders.customShaderDescription' => 'Shader GLSL personnalisé',
|
||||
'shaders.shaderImported' => 'Shader importé',
|
||||
'shaders.shaderImportFailed' => 'Échec de l\'importation du shader',
|
||||
'shaders.deleteShader' => 'Supprimer le shader',
|
||||
'shaders.deleteShaderConfirm' => ({required Object name}) => 'Supprimer "${name}" ?',
|
||||
'companionRemote.title' => 'Télécommande compagnon',
|
||||
'companionRemote.connectToDevice' => 'Se connecter à un appareil',
|
||||
'companionRemote.hostRemoteSession' => 'Héberger une session distante',
|
||||
'companionRemote.controlThisDevice' => 'Contrôlez cet appareil avec votre téléphone',
|
||||
|
||||
+32
-32
@@ -320,8 +320,8 @@ class _TranslationsSettingsIt implements TranslationsSettingsEn {
|
||||
@override String get autoPipDescription => 'Attiva automaticamente il picture-in-picture quando si esce dall\'app durante la riproduzione';
|
||||
@override String get matchContentFrameRate => 'Adatta frequenza fotogrammi';
|
||||
@override String get matchContentFrameRateDescription => 'Regola la frequenza di aggiornamento del display in base al contenuto video, riducendo i tremolii e risparmiando batteria';
|
||||
@override String get tunneledPlayback => 'Tunneled Playback';
|
||||
@override String get tunneledPlaybackDescription => 'Use hardware-accelerated video tunneling. Disable if you see a black screen with audio on HDR content';
|
||||
@override String get tunneledPlayback => 'Riproduzione tunnelizzata';
|
||||
@override String get tunneledPlaybackDescription => 'Usa il tunneling video accelerato dall\'hardware. Disattiva se vedi uno schermo nero con audio su contenuti HDR';
|
||||
@override String get requireProfileSelectionOnOpen => 'Chiedi profilo all\'apertura';
|
||||
@override String get requireProfileSelectionOnOpenDescription => 'Mostra la selezione del profilo ogni volta che l\'app viene aperta';
|
||||
@override String get confirmExitOnBack => 'Conferma prima di uscire';
|
||||
@@ -512,8 +512,8 @@ class _TranslationsVideoControlsIt implements TranslationsVideoControlsEn {
|
||||
@override late final _TranslationsVideoControlsPipErrorsIt pipErrors = _TranslationsVideoControlsPipErrorsIt._(_root);
|
||||
@override String get chapters => 'Capitoli';
|
||||
@override String get noChaptersAvailable => 'Nessun capitolo disponibile';
|
||||
@override String get queue => 'Queue';
|
||||
@override String get noQueueItems => 'No items in queue';
|
||||
@override String get queue => 'Coda';
|
||||
@override String get noQueueItems => 'Nessun elemento in coda';
|
||||
}
|
||||
|
||||
// Path: userStatus
|
||||
@@ -566,9 +566,9 @@ class _TranslationsMessagesIt implements TranslationsMessagesEn {
|
||||
@override String get failedToCreatePlayQueueNoItems => 'Impossibile creare la coda di riproduzione - nessun elemento';
|
||||
@override String failedPlayback({required Object action, required Object error}) => 'Impossibile ${action}: ${error}';
|
||||
@override String get switchingToCompatiblePlayer => 'Passaggio al lettore compatibile...';
|
||||
@override String get logsUploaded => 'Logs uploaded';
|
||||
@override String get logsUploadFailed => 'Failed to upload logs';
|
||||
@override String get logId => 'Log ID';
|
||||
@override String get logsUploaded => 'Log caricati';
|
||||
@override String get logsUploadFailed => 'Caricamento log fallito';
|
||||
@override String get logId => 'ID log';
|
||||
}
|
||||
|
||||
// Path: subtitlingStyling
|
||||
@@ -585,7 +585,7 @@ class _TranslationsSubtitlingStylingIt implements TranslationsSubtitlingStylingE
|
||||
@override String get borderColor => 'Colore bordo';
|
||||
@override String get backgroundOpacity => 'Opacità sfondo';
|
||||
@override String get backgroundColor => 'Colore sfondo';
|
||||
@override String get position => 'Position';
|
||||
@override String get position => 'Posizione';
|
||||
}
|
||||
|
||||
// Path: mpvConfig
|
||||
@@ -763,7 +763,7 @@ class _TranslationsLogsIt implements TranslationsLogsEn {
|
||||
// Translations
|
||||
@override String get clearLogs => 'Cancella log';
|
||||
@override String get copyLogs => 'Copia log';
|
||||
@override String get uploadLogs => 'Upload Logs';
|
||||
@override String get uploadLogs => 'Carica log';
|
||||
@override String get error => 'Errore:';
|
||||
@override String get stackTrace => 'Traccia dello stack:';
|
||||
}
|
||||
@@ -990,12 +990,12 @@ class _TranslationsShadersIt implements TranslationsShadersEn {
|
||||
@override String get qualityFast => 'Veloce';
|
||||
@override String get qualityHQ => 'Alta qualità';
|
||||
@override String get mode => 'Modalità';
|
||||
@override String get importShader => 'Import Shader';
|
||||
@override String get customShaderDescription => 'Custom GLSL shader';
|
||||
@override String get shaderImported => 'Shader imported';
|
||||
@override String get shaderImportFailed => 'Failed to import shader';
|
||||
@override String get deleteShader => 'Delete Shader';
|
||||
@override String deleteShaderConfirm({required Object name}) => 'Delete "${name}"?';
|
||||
@override String get importShader => 'Importa shader';
|
||||
@override String get customShaderDescription => 'Shader GLSL personalizzato';
|
||||
@override String get shaderImported => 'Shader importato';
|
||||
@override String get shaderImportFailed => 'Importazione shader fallita';
|
||||
@override String get deleteShader => 'Elimina shader';
|
||||
@override String deleteShaderConfirm({required Object name}) => 'Eliminare "${name}"?';
|
||||
}
|
||||
|
||||
// Path: companionRemote
|
||||
@@ -1005,7 +1005,7 @@ class _TranslationsCompanionRemoteIt implements TranslationsCompanionRemoteEn {
|
||||
final TranslationsIt _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get title => 'Companion Remote';
|
||||
@override String get title => 'Telecomando';
|
||||
@override String get connectToDevice => 'Connetti a un dispositivo';
|
||||
@override String get hostRemoteSession => 'Ospita sessione remota';
|
||||
@override String get controlThisDevice => 'Controlla questo dispositivo con il tuo telefono';
|
||||
@@ -1495,8 +1495,8 @@ extension on TranslationsIt {
|
||||
'settings.autoPipDescription' => 'Attiva automaticamente il picture-in-picture quando si esce dall\'app durante la riproduzione',
|
||||
'settings.matchContentFrameRate' => 'Adatta frequenza fotogrammi',
|
||||
'settings.matchContentFrameRateDescription' => 'Regola la frequenza di aggiornamento del display in base al contenuto video, riducendo i tremolii e risparmiando batteria',
|
||||
'settings.tunneledPlayback' => 'Tunneled Playback',
|
||||
'settings.tunneledPlaybackDescription' => 'Use hardware-accelerated video tunneling. Disable if you see a black screen with audio on HDR content',
|
||||
'settings.tunneledPlayback' => 'Riproduzione tunnelizzata',
|
||||
'settings.tunneledPlaybackDescription' => 'Usa il tunneling video accelerato dall\'hardware. Disattiva se vedi uno schermo nero con audio su contenuti HDR',
|
||||
'settings.requireProfileSelectionOnOpen' => 'Chiedi profilo all\'apertura',
|
||||
'settings.requireProfileSelectionOnOpenDescription' => 'Mostra la selezione del profilo ogni volta che l\'app viene aperta',
|
||||
'settings.confirmExitOnBack' => 'Conferma prima di uscire',
|
||||
@@ -1639,8 +1639,8 @@ extension on TranslationsIt {
|
||||
'videoControls.pipErrors.unknown' => ({required Object error}) => 'Si è verificato un errore: ${error}',
|
||||
'videoControls.chapters' => 'Capitoli',
|
||||
'videoControls.noChaptersAvailable' => 'Nessun capitolo disponibile',
|
||||
'videoControls.queue' => 'Queue',
|
||||
'videoControls.noQueueItems' => 'No items in queue',
|
||||
'videoControls.queue' => 'Coda',
|
||||
'videoControls.noQueueItems' => 'Nessun elemento in coda',
|
||||
'userStatus.admin' => 'Admin',
|
||||
'userStatus.restricted' => 'Limitato',
|
||||
'userStatus.protected' => 'Protetto',
|
||||
@@ -1675,9 +1675,9 @@ extension on TranslationsIt {
|
||||
'messages.failedToCreatePlayQueueNoItems' => 'Impossibile creare la coda di riproduzione - nessun elemento',
|
||||
'messages.failedPlayback' => ({required Object action, required Object error}) => 'Impossibile ${action}: ${error}',
|
||||
'messages.switchingToCompatiblePlayer' => 'Passaggio al lettore compatibile...',
|
||||
'messages.logsUploaded' => 'Logs uploaded',
|
||||
'messages.logsUploadFailed' => 'Failed to upload logs',
|
||||
'messages.logId' => 'Log ID',
|
||||
'messages.logsUploaded' => 'Log caricati',
|
||||
'messages.logsUploadFailed' => 'Caricamento log fallito',
|
||||
'messages.logId' => 'ID log',
|
||||
'subtitlingStyling.stylingOptions' => 'Opzioni stile',
|
||||
'subtitlingStyling.fontSize' => 'Dimensione',
|
||||
'subtitlingStyling.textColor' => 'Colore testo',
|
||||
@@ -1685,7 +1685,7 @@ extension on TranslationsIt {
|
||||
'subtitlingStyling.borderColor' => 'Colore bordo',
|
||||
'subtitlingStyling.backgroundOpacity' => 'Opacità sfondo',
|
||||
'subtitlingStyling.backgroundColor' => 'Colore sfondo',
|
||||
'subtitlingStyling.position' => 'Position',
|
||||
'subtitlingStyling.position' => 'Posizione',
|
||||
'mpvConfig.title' => 'Configurazione mpv',
|
||||
'mpvConfig.description' => 'Impostazioni avanzate del lettore video',
|
||||
'mpvConfig.presets' => 'Preset',
|
||||
@@ -1790,7 +1790,7 @@ extension on TranslationsIt {
|
||||
'hubDetail.noItemsFound' => 'Nessun elemento trovato',
|
||||
'logs.clearLogs' => 'Cancella log',
|
||||
'logs.copyLogs' => 'Copia log',
|
||||
'logs.uploadLogs' => 'Upload Logs',
|
||||
'logs.uploadLogs' => 'Carica log',
|
||||
'logs.error' => 'Errore:',
|
||||
'logs.stackTrace' => 'Traccia dello stack:',
|
||||
'licenses.relatedPackages' => 'Pacchetti correlati',
|
||||
@@ -1947,13 +1947,13 @@ extension on TranslationsIt {
|
||||
'shaders.qualityFast' => 'Veloce',
|
||||
'shaders.qualityHQ' => 'Alta qualità',
|
||||
'shaders.mode' => 'Modalità',
|
||||
'shaders.importShader' => 'Import Shader',
|
||||
'shaders.customShaderDescription' => 'Custom GLSL shader',
|
||||
'shaders.shaderImported' => 'Shader imported',
|
||||
'shaders.shaderImportFailed' => 'Failed to import shader',
|
||||
'shaders.deleteShader' => 'Delete Shader',
|
||||
'shaders.deleteShaderConfirm' => ({required Object name}) => 'Delete "${name}"?',
|
||||
'companionRemote.title' => 'Companion Remote',
|
||||
'shaders.importShader' => 'Importa shader',
|
||||
'shaders.customShaderDescription' => 'Shader GLSL personalizzato',
|
||||
'shaders.shaderImported' => 'Shader importato',
|
||||
'shaders.shaderImportFailed' => 'Importazione shader fallita',
|
||||
'shaders.deleteShader' => 'Elimina shader',
|
||||
'shaders.deleteShaderConfirm' => ({required Object name}) => 'Eliminare "${name}"?',
|
||||
'companionRemote.title' => 'Telecomando',
|
||||
'companionRemote.connectToDevice' => 'Connetti a un dispositivo',
|
||||
'companionRemote.hostRemoteSession' => 'Ospita sessione remota',
|
||||
'companionRemote.controlThisDevice' => 'Controlla questo dispositivo con il tuo telefono',
|
||||
|
||||
+32
-32
@@ -320,8 +320,8 @@ class _TranslationsSettingsKo implements TranslationsSettingsEn {
|
||||
@override String get autoPipDescription => '재생 중 앱을 나갈 때 자동으로 PIP 모드로 전환';
|
||||
@override String get matchContentFrameRate => '콘텐츠 프레임 레이트 맞춤';
|
||||
@override String get matchContentFrameRateDescription => '비디오 콘텐츠에 맞게 디스플레이 주사율을 조정하여 떨림을 줄이고 배터리를 절약합니다';
|
||||
@override String get tunneledPlayback => 'Tunneled Playback';
|
||||
@override String get tunneledPlaybackDescription => 'Use hardware-accelerated video tunneling. Disable if you see a black screen with audio on HDR content';
|
||||
@override String get tunneledPlayback => '터널 재생';
|
||||
@override String get tunneledPlaybackDescription => '하드웨어 가속 비디오 터널링을 사용합니다. HDR 콘텐츠에서 소리만 나고 검은 화면이 보이면 비활성화하세요';
|
||||
@override String get requireProfileSelectionOnOpen => '앱 실행 시 프로필 선택';
|
||||
@override String get requireProfileSelectionOnOpenDescription => '앱을 열 때마다 프로필 선택 화면을 표시합니다';
|
||||
@override String get confirmExitOnBack => '종료 전 확인';
|
||||
@@ -512,8 +512,8 @@ class _TranslationsVideoControlsKo implements TranslationsVideoControlsEn {
|
||||
@override late final _TranslationsVideoControlsPipErrorsKo pipErrors = _TranslationsVideoControlsPipErrorsKo._(_root);
|
||||
@override String get chapters => '챕터';
|
||||
@override String get noChaptersAvailable => '사용 가능한 챕터가 없습니다';
|
||||
@override String get queue => 'Queue';
|
||||
@override String get noQueueItems => 'No items in queue';
|
||||
@override String get queue => '재생 대기열';
|
||||
@override String get noQueueItems => '대기열에 항목이 없습니다';
|
||||
}
|
||||
|
||||
// Path: userStatus
|
||||
@@ -566,9 +566,9 @@ class _TranslationsMessagesKo implements TranslationsMessagesEn {
|
||||
@override String get failedToCreatePlayQueueNoItems => '재생 대기열 생성 실패 - 항목 없음';
|
||||
@override String failedPlayback({required Object action, required Object error}) => '${action}을(를) 수행할 수 없습니다: ${error}';
|
||||
@override String get switchingToCompatiblePlayer => '호환되는 플레이어로 전환 중...';
|
||||
@override String get logsUploaded => 'Logs uploaded';
|
||||
@override String get logsUploadFailed => 'Failed to upload logs';
|
||||
@override String get logId => 'Log ID';
|
||||
@override String get logsUploaded => '로그 업로드 완료';
|
||||
@override String get logsUploadFailed => '로그 업로드 실패';
|
||||
@override String get logId => '로그 ID';
|
||||
}
|
||||
|
||||
// Path: subtitlingStyling
|
||||
@@ -585,7 +585,7 @@ class _TranslationsSubtitlingStylingKo implements TranslationsSubtitlingStylingE
|
||||
@override String get borderColor => '테두리 색상';
|
||||
@override String get backgroundOpacity => '배경 불투명도';
|
||||
@override String get backgroundColor => '배경색';
|
||||
@override String get position => 'Position';
|
||||
@override String get position => '위치';
|
||||
}
|
||||
|
||||
// Path: mpvConfig
|
||||
@@ -763,7 +763,7 @@ class _TranslationsLogsKo implements TranslationsLogsEn {
|
||||
// Translations
|
||||
@override String get clearLogs => '로그 지우기';
|
||||
@override String get copyLogs => '로그 복사';
|
||||
@override String get uploadLogs => 'Upload Logs';
|
||||
@override String get uploadLogs => '로그 업로드';
|
||||
@override String get error => '오류:';
|
||||
@override String get stackTrace => '스택 추적 (Stack Trace):';
|
||||
}
|
||||
@@ -990,12 +990,12 @@ class _TranslationsShadersKo implements TranslationsShadersEn {
|
||||
@override String get qualityFast => '빠름';
|
||||
@override String get qualityHQ => '고품질';
|
||||
@override String get mode => '모드';
|
||||
@override String get importShader => 'Import Shader';
|
||||
@override String get customShaderDescription => 'Custom GLSL shader';
|
||||
@override String get shaderImported => 'Shader imported';
|
||||
@override String get shaderImportFailed => 'Failed to import shader';
|
||||
@override String get deleteShader => 'Delete Shader';
|
||||
@override String deleteShaderConfirm({required Object name}) => 'Delete "${name}"?';
|
||||
@override String get importShader => '셰이더 가져오기';
|
||||
@override String get customShaderDescription => '사용자 정의 GLSL 셰이더';
|
||||
@override String get shaderImported => '셰이더를 가져왔습니다';
|
||||
@override String get shaderImportFailed => '셰이더 가져오기 실패';
|
||||
@override String get deleteShader => '셰이더 삭제';
|
||||
@override String deleteShaderConfirm({required Object name}) => '"${name}"을(를) 삭제하시겠습니까?';
|
||||
}
|
||||
|
||||
// Path: companionRemote
|
||||
@@ -1005,7 +1005,7 @@ class _TranslationsCompanionRemoteKo implements TranslationsCompanionRemoteEn {
|
||||
final TranslationsKo _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get title => 'Companion Remote';
|
||||
@override String get title => '컴패니언 리모컨';
|
||||
@override String get connectToDevice => '기기에 연결';
|
||||
@override String get hostRemoteSession => '원격 세션 호스트';
|
||||
@override String get controlThisDevice => '휴대폰으로 이 기기를 제어하세요';
|
||||
@@ -1495,8 +1495,8 @@ extension on TranslationsKo {
|
||||
'settings.autoPipDescription' => '재생 중 앱을 나갈 때 자동으로 PIP 모드로 전환',
|
||||
'settings.matchContentFrameRate' => '콘텐츠 프레임 레이트 맞춤',
|
||||
'settings.matchContentFrameRateDescription' => '비디오 콘텐츠에 맞게 디스플레이 주사율을 조정하여 떨림을 줄이고 배터리를 절약합니다',
|
||||
'settings.tunneledPlayback' => 'Tunneled Playback',
|
||||
'settings.tunneledPlaybackDescription' => 'Use hardware-accelerated video tunneling. Disable if you see a black screen with audio on HDR content',
|
||||
'settings.tunneledPlayback' => '터널 재생',
|
||||
'settings.tunneledPlaybackDescription' => '하드웨어 가속 비디오 터널링을 사용합니다. HDR 콘텐츠에서 소리만 나고 검은 화면이 보이면 비활성화하세요',
|
||||
'settings.requireProfileSelectionOnOpen' => '앱 실행 시 프로필 선택',
|
||||
'settings.requireProfileSelectionOnOpenDescription' => '앱을 열 때마다 프로필 선택 화면을 표시합니다',
|
||||
'settings.confirmExitOnBack' => '종료 전 확인',
|
||||
@@ -1639,8 +1639,8 @@ extension on TranslationsKo {
|
||||
'videoControls.pipErrors.unknown' => ({required Object error}) => '오류가 발생했습니다: ${error}',
|
||||
'videoControls.chapters' => '챕터',
|
||||
'videoControls.noChaptersAvailable' => '사용 가능한 챕터가 없습니다',
|
||||
'videoControls.queue' => 'Queue',
|
||||
'videoControls.noQueueItems' => 'No items in queue',
|
||||
'videoControls.queue' => '재생 대기열',
|
||||
'videoControls.noQueueItems' => '대기열에 항목이 없습니다',
|
||||
'userStatus.admin' => '관리자',
|
||||
'userStatus.restricted' => '제한됨',
|
||||
'userStatus.protected' => '보호됨',
|
||||
@@ -1675,9 +1675,9 @@ extension on TranslationsKo {
|
||||
'messages.failedToCreatePlayQueueNoItems' => '재생 대기열 생성 실패 - 항목 없음',
|
||||
'messages.failedPlayback' => ({required Object action, required Object error}) => '${action}을(를) 수행할 수 없습니다: ${error}',
|
||||
'messages.switchingToCompatiblePlayer' => '호환되는 플레이어로 전환 중...',
|
||||
'messages.logsUploaded' => 'Logs uploaded',
|
||||
'messages.logsUploadFailed' => 'Failed to upload logs',
|
||||
'messages.logId' => 'Log ID',
|
||||
'messages.logsUploaded' => '로그 업로드 완료',
|
||||
'messages.logsUploadFailed' => '로그 업로드 실패',
|
||||
'messages.logId' => '로그 ID',
|
||||
'subtitlingStyling.stylingOptions' => '스타일 옵션',
|
||||
'subtitlingStyling.fontSize' => '글자 크기',
|
||||
'subtitlingStyling.textColor' => '텍스트 색상',
|
||||
@@ -1685,7 +1685,7 @@ extension on TranslationsKo {
|
||||
'subtitlingStyling.borderColor' => '테두리 색상',
|
||||
'subtitlingStyling.backgroundOpacity' => '배경 불투명도',
|
||||
'subtitlingStyling.backgroundColor' => '배경색',
|
||||
'subtitlingStyling.position' => 'Position',
|
||||
'subtitlingStyling.position' => '위치',
|
||||
'mpvConfig.title' => 'mpv 설정',
|
||||
'mpvConfig.description' => '고급 비디오 플레이어 설정',
|
||||
'mpvConfig.presets' => '사전 설정',
|
||||
@@ -1790,7 +1790,7 @@ extension on TranslationsKo {
|
||||
'hubDetail.noItemsFound' => '항목이 없습니다',
|
||||
'logs.clearLogs' => '로그 지우기',
|
||||
'logs.copyLogs' => '로그 복사',
|
||||
'logs.uploadLogs' => 'Upload Logs',
|
||||
'logs.uploadLogs' => '로그 업로드',
|
||||
'logs.error' => '오류:',
|
||||
'logs.stackTrace' => '스택 추적 (Stack Trace):',
|
||||
'licenses.relatedPackages' => '관련 소프트웨어 패키지',
|
||||
@@ -1947,13 +1947,13 @@ extension on TranslationsKo {
|
||||
'shaders.qualityFast' => '빠름',
|
||||
'shaders.qualityHQ' => '고품질',
|
||||
'shaders.mode' => '모드',
|
||||
'shaders.importShader' => 'Import Shader',
|
||||
'shaders.customShaderDescription' => 'Custom GLSL shader',
|
||||
'shaders.shaderImported' => 'Shader imported',
|
||||
'shaders.shaderImportFailed' => 'Failed to import shader',
|
||||
'shaders.deleteShader' => 'Delete Shader',
|
||||
'shaders.deleteShaderConfirm' => ({required Object name}) => 'Delete "${name}"?',
|
||||
'companionRemote.title' => 'Companion Remote',
|
||||
'shaders.importShader' => '셰이더 가져오기',
|
||||
'shaders.customShaderDescription' => '사용자 정의 GLSL 셰이더',
|
||||
'shaders.shaderImported' => '셰이더를 가져왔습니다',
|
||||
'shaders.shaderImportFailed' => '셰이더 가져오기 실패',
|
||||
'shaders.deleteShader' => '셰이더 삭제',
|
||||
'shaders.deleteShaderConfirm' => ({required Object name}) => '"${name}"을(를) 삭제하시겠습니까?',
|
||||
'companionRemote.title' => '컴패니언 리모컨',
|
||||
'companionRemote.connectToDevice' => '기기에 연결',
|
||||
'companionRemote.hostRemoteSession' => '원격 세션 호스트',
|
||||
'companionRemote.controlThisDevice' => '휴대폰으로 이 기기를 제어하세요',
|
||||
|
||||
+32
-32
@@ -320,8 +320,8 @@ class _TranslationsSettingsNl implements TranslationsSettingsEn {
|
||||
@override String get autoPipDescription => 'Automatisch beeld-in-beeld activeren bij het verlaten van de app tijdens afspelen';
|
||||
@override String get matchContentFrameRate => 'Inhoudsframesnelheid afstemmen';
|
||||
@override String get matchContentFrameRateDescription => 'Pas de schermverversingssnelheid aan op de video-inhoud, vermindert haperingen en bespaart batterij';
|
||||
@override String get tunneledPlayback => 'Tunneled Playback';
|
||||
@override String get tunneledPlaybackDescription => 'Use hardware-accelerated video tunneling. Disable if you see a black screen with audio on HDR content';
|
||||
@override String get tunneledPlayback => 'Getunnelde weergave';
|
||||
@override String get tunneledPlaybackDescription => 'Gebruik hardwareversnelde videotunneling. Schakel uit als je een zwart scherm met geluid ziet bij HDR-content';
|
||||
@override String get requireProfileSelectionOnOpen => 'Vraag om profiel bij openen';
|
||||
@override String get requireProfileSelectionOnOpenDescription => 'Toon profielselectie telkens wanneer de app wordt geopend';
|
||||
@override String get confirmExitOnBack => 'Bevestigen voor afsluiten';
|
||||
@@ -512,8 +512,8 @@ class _TranslationsVideoControlsNl implements TranslationsVideoControlsEn {
|
||||
@override late final _TranslationsVideoControlsPipErrorsNl pipErrors = _TranslationsVideoControlsPipErrorsNl._(_root);
|
||||
@override String get chapters => 'Hoofdstukken';
|
||||
@override String get noChaptersAvailable => 'Geen hoofdstukken beschikbaar';
|
||||
@override String get queue => 'Queue';
|
||||
@override String get noQueueItems => 'No items in queue';
|
||||
@override String get queue => 'Wachtrij';
|
||||
@override String get noQueueItems => 'Geen items in de wachtrij';
|
||||
}
|
||||
|
||||
// Path: userStatus
|
||||
@@ -566,9 +566,9 @@ class _TranslationsMessagesNl implements TranslationsMessagesEn {
|
||||
@override String get failedToCreatePlayQueueNoItems => 'Kan afspeelwachtrij niet maken - geen items';
|
||||
@override String failedPlayback({required Object action, required Object error}) => 'Afspelen van ${action} mislukt: ${error}';
|
||||
@override String get switchingToCompatiblePlayer => 'Overschakelen naar compatibele speler...';
|
||||
@override String get logsUploaded => 'Logs uploaded';
|
||||
@override String get logsUploadFailed => 'Failed to upload logs';
|
||||
@override String get logId => 'Log ID';
|
||||
@override String get logsUploaded => 'Logs geüpload';
|
||||
@override String get logsUploadFailed => 'Uploaden van logs mislukt';
|
||||
@override String get logId => 'Log-ID';
|
||||
}
|
||||
|
||||
// Path: subtitlingStyling
|
||||
@@ -585,7 +585,7 @@ class _TranslationsSubtitlingStylingNl implements TranslationsSubtitlingStylingE
|
||||
@override String get borderColor => 'Randkleur';
|
||||
@override String get backgroundOpacity => 'Achtergrond transparantie';
|
||||
@override String get backgroundColor => 'Achtergrondkleur';
|
||||
@override String get position => 'Position';
|
||||
@override String get position => 'Positie';
|
||||
}
|
||||
|
||||
// Path: mpvConfig
|
||||
@@ -763,7 +763,7 @@ class _TranslationsLogsNl implements TranslationsLogsEn {
|
||||
// Translations
|
||||
@override String get clearLogs => 'Wis logs';
|
||||
@override String get copyLogs => 'Kopieer logs';
|
||||
@override String get uploadLogs => 'Upload Logs';
|
||||
@override String get uploadLogs => 'Logs uploaden';
|
||||
@override String get error => 'Fout:';
|
||||
@override String get stackTrace => 'Stacktracering:';
|
||||
}
|
||||
@@ -990,12 +990,12 @@ class _TranslationsShadersNl implements TranslationsShadersEn {
|
||||
@override String get qualityFast => 'Snel';
|
||||
@override String get qualityHQ => 'Hoge kwaliteit';
|
||||
@override String get mode => 'Modus';
|
||||
@override String get importShader => 'Import Shader';
|
||||
@override String get customShaderDescription => 'Custom GLSL shader';
|
||||
@override String get shaderImported => 'Shader imported';
|
||||
@override String get shaderImportFailed => 'Failed to import shader';
|
||||
@override String get deleteShader => 'Delete Shader';
|
||||
@override String deleteShaderConfirm({required Object name}) => 'Delete "${name}"?';
|
||||
@override String get importShader => 'Shader importeren';
|
||||
@override String get customShaderDescription => 'Aangepaste GLSL-shader';
|
||||
@override String get shaderImported => 'Shader geïmporteerd';
|
||||
@override String get shaderImportFailed => 'Shader importeren mislukt';
|
||||
@override String get deleteShader => 'Shader verwijderen';
|
||||
@override String deleteShaderConfirm({required Object name}) => '"${name}" verwijderen?';
|
||||
}
|
||||
|
||||
// Path: companionRemote
|
||||
@@ -1005,7 +1005,7 @@ class _TranslationsCompanionRemoteNl implements TranslationsCompanionRemoteEn {
|
||||
final TranslationsNl _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get title => 'Companion Remote';
|
||||
@override String get title => 'Afstandsbediening';
|
||||
@override String get connectToDevice => 'Verbinden met apparaat';
|
||||
@override String get hostRemoteSession => 'Externe sessie hosten';
|
||||
@override String get controlThisDevice => 'Bedien dit apparaat met je telefoon';
|
||||
@@ -1495,8 +1495,8 @@ extension on TranslationsNl {
|
||||
'settings.autoPipDescription' => 'Automatisch beeld-in-beeld activeren bij het verlaten van de app tijdens afspelen',
|
||||
'settings.matchContentFrameRate' => 'Inhoudsframesnelheid afstemmen',
|
||||
'settings.matchContentFrameRateDescription' => 'Pas de schermverversingssnelheid aan op de video-inhoud, vermindert haperingen en bespaart batterij',
|
||||
'settings.tunneledPlayback' => 'Tunneled Playback',
|
||||
'settings.tunneledPlaybackDescription' => 'Use hardware-accelerated video tunneling. Disable if you see a black screen with audio on HDR content',
|
||||
'settings.tunneledPlayback' => 'Getunnelde weergave',
|
||||
'settings.tunneledPlaybackDescription' => 'Gebruik hardwareversnelde videotunneling. Schakel uit als je een zwart scherm met geluid ziet bij HDR-content',
|
||||
'settings.requireProfileSelectionOnOpen' => 'Vraag om profiel bij openen',
|
||||
'settings.requireProfileSelectionOnOpenDescription' => 'Toon profielselectie telkens wanneer de app wordt geopend',
|
||||
'settings.confirmExitOnBack' => 'Bevestigen voor afsluiten',
|
||||
@@ -1639,8 +1639,8 @@ extension on TranslationsNl {
|
||||
'videoControls.pipErrors.unknown' => ({required Object error}) => 'Er is een fout opgetreden: ${error}',
|
||||
'videoControls.chapters' => 'Hoofdstukken',
|
||||
'videoControls.noChaptersAvailable' => 'Geen hoofdstukken beschikbaar',
|
||||
'videoControls.queue' => 'Queue',
|
||||
'videoControls.noQueueItems' => 'No items in queue',
|
||||
'videoControls.queue' => 'Wachtrij',
|
||||
'videoControls.noQueueItems' => 'Geen items in de wachtrij',
|
||||
'userStatus.admin' => 'Beheerder',
|
||||
'userStatus.restricted' => 'Beperkt',
|
||||
'userStatus.protected' => 'Beschermd',
|
||||
@@ -1675,9 +1675,9 @@ extension on TranslationsNl {
|
||||
'messages.failedToCreatePlayQueueNoItems' => 'Kan afspeelwachtrij niet maken - geen items',
|
||||
'messages.failedPlayback' => ({required Object action, required Object error}) => 'Afspelen van ${action} mislukt: ${error}',
|
||||
'messages.switchingToCompatiblePlayer' => 'Overschakelen naar compatibele speler...',
|
||||
'messages.logsUploaded' => 'Logs uploaded',
|
||||
'messages.logsUploadFailed' => 'Failed to upload logs',
|
||||
'messages.logId' => 'Log ID',
|
||||
'messages.logsUploaded' => 'Logs geüpload',
|
||||
'messages.logsUploadFailed' => 'Uploaden van logs mislukt',
|
||||
'messages.logId' => 'Log-ID',
|
||||
'subtitlingStyling.stylingOptions' => 'Opmaak opties',
|
||||
'subtitlingStyling.fontSize' => 'Lettergrootte',
|
||||
'subtitlingStyling.textColor' => 'Tekstkleur',
|
||||
@@ -1685,7 +1685,7 @@ extension on TranslationsNl {
|
||||
'subtitlingStyling.borderColor' => 'Randkleur',
|
||||
'subtitlingStyling.backgroundOpacity' => 'Achtergrond transparantie',
|
||||
'subtitlingStyling.backgroundColor' => 'Achtergrondkleur',
|
||||
'subtitlingStyling.position' => 'Position',
|
||||
'subtitlingStyling.position' => 'Positie',
|
||||
'mpvConfig.title' => 'mpv-configuratie',
|
||||
'mpvConfig.description' => 'Geavanceerde videospeler-instellingen',
|
||||
'mpvConfig.presets' => 'Voorinstellingen',
|
||||
@@ -1790,7 +1790,7 @@ extension on TranslationsNl {
|
||||
'hubDetail.noItemsFound' => 'Geen items gevonden',
|
||||
'logs.clearLogs' => 'Wis logs',
|
||||
'logs.copyLogs' => 'Kopieer logs',
|
||||
'logs.uploadLogs' => 'Upload Logs',
|
||||
'logs.uploadLogs' => 'Logs uploaden',
|
||||
'logs.error' => 'Fout:',
|
||||
'logs.stackTrace' => 'Stacktracering:',
|
||||
'licenses.relatedPackages' => 'Gerelateerde pakketten',
|
||||
@@ -1947,13 +1947,13 @@ extension on TranslationsNl {
|
||||
'shaders.qualityFast' => 'Snel',
|
||||
'shaders.qualityHQ' => 'Hoge kwaliteit',
|
||||
'shaders.mode' => 'Modus',
|
||||
'shaders.importShader' => 'Import Shader',
|
||||
'shaders.customShaderDescription' => 'Custom GLSL shader',
|
||||
'shaders.shaderImported' => 'Shader imported',
|
||||
'shaders.shaderImportFailed' => 'Failed to import shader',
|
||||
'shaders.deleteShader' => 'Delete Shader',
|
||||
'shaders.deleteShaderConfirm' => ({required Object name}) => 'Delete "${name}"?',
|
||||
'companionRemote.title' => 'Companion Remote',
|
||||
'shaders.importShader' => 'Shader importeren',
|
||||
'shaders.customShaderDescription' => 'Aangepaste GLSL-shader',
|
||||
'shaders.shaderImported' => 'Shader geïmporteerd',
|
||||
'shaders.shaderImportFailed' => 'Shader importeren mislukt',
|
||||
'shaders.deleteShader' => 'Shader verwijderen',
|
||||
'shaders.deleteShaderConfirm' => ({required Object name}) => '"${name}" verwijderen?',
|
||||
'companionRemote.title' => 'Afstandsbediening',
|
||||
'companionRemote.connectToDevice' => 'Verbinden met apparaat',
|
||||
'companionRemote.hostRemoteSession' => 'Externe sessie hosten',
|
||||
'companionRemote.controlThisDevice' => 'Bedien dit apparaat met je telefoon',
|
||||
|
||||
+30
-30
@@ -320,8 +320,8 @@ class _TranslationsSettingsSv implements TranslationsSettingsEn {
|
||||
@override String get autoPipDescription => 'Aktivera bild-i-bild automatiskt när appen lämnas under uppspelning';
|
||||
@override String get matchContentFrameRate => 'Matcha innehållets bildfrekvens';
|
||||
@override String get matchContentFrameRateDescription => 'Justera skärmens uppdateringsfrekvens för att matcha videoinnehållet, minskar hackighet och sparar batteri';
|
||||
@override String get tunneledPlayback => 'Tunneled Playback';
|
||||
@override String get tunneledPlaybackDescription => 'Use hardware-accelerated video tunneling. Disable if you see a black screen with audio on HDR content';
|
||||
@override String get tunneledPlayback => 'Tunneluppspelning';
|
||||
@override String get tunneledPlaybackDescription => 'Använd hårdvaruaccelererad videotunnling. Inaktivera om du ser en svart skärm med ljud vid HDR-innehåll';
|
||||
@override String get requireProfileSelectionOnOpen => 'Fråga efter profil vid appstart';
|
||||
@override String get requireProfileSelectionOnOpenDescription => 'Visa profilval varje gång appen öppnas';
|
||||
@override String get confirmExitOnBack => 'Bekräfta innan avslut';
|
||||
@@ -512,8 +512,8 @@ class _TranslationsVideoControlsSv implements TranslationsVideoControlsEn {
|
||||
@override late final _TranslationsVideoControlsPipErrorsSv pipErrors = _TranslationsVideoControlsPipErrorsSv._(_root);
|
||||
@override String get chapters => 'Kapitel';
|
||||
@override String get noChaptersAvailable => 'Inga kapitel tillgängliga';
|
||||
@override String get queue => 'Queue';
|
||||
@override String get noQueueItems => 'No items in queue';
|
||||
@override String get queue => 'Kö';
|
||||
@override String get noQueueItems => 'Inga objekt i kön';
|
||||
}
|
||||
|
||||
// Path: userStatus
|
||||
@@ -566,9 +566,9 @@ class _TranslationsMessagesSv implements TranslationsMessagesEn {
|
||||
@override String get failedToCreatePlayQueueNoItems => 'Det gick inte att skapa uppspelningskö – inga objekt';
|
||||
@override String failedPlayback({required Object action, required Object error}) => 'Kunde inte ${action}: ${error}';
|
||||
@override String get switchingToCompatiblePlayer => 'Byter till kompatibel spelare...';
|
||||
@override String get logsUploaded => 'Logs uploaded';
|
||||
@override String get logsUploadFailed => 'Failed to upload logs';
|
||||
@override String get logId => 'Log ID';
|
||||
@override String get logsUploaded => 'Loggar uppladdade';
|
||||
@override String get logsUploadFailed => 'Uppladdning av loggar misslyckades';
|
||||
@override String get logId => 'Logg-ID';
|
||||
}
|
||||
|
||||
// Path: subtitlingStyling
|
||||
@@ -763,7 +763,7 @@ class _TranslationsLogsSv implements TranslationsLogsEn {
|
||||
// Translations
|
||||
@override String get clearLogs => 'Rensa loggar';
|
||||
@override String get copyLogs => 'Kopiera loggar';
|
||||
@override String get uploadLogs => 'Upload Logs';
|
||||
@override String get uploadLogs => 'Ladda upp loggar';
|
||||
@override String get error => 'Fel:';
|
||||
@override String get stackTrace => 'Stack trace:';
|
||||
}
|
||||
@@ -990,12 +990,12 @@ class _TranslationsShadersSv implements TranslationsShadersEn {
|
||||
@override String get qualityFast => 'Snabb';
|
||||
@override String get qualityHQ => 'Hög kvalitet';
|
||||
@override String get mode => 'Läge';
|
||||
@override String get importShader => 'Import Shader';
|
||||
@override String get customShaderDescription => 'Custom GLSL shader';
|
||||
@override String get shaderImported => 'Shader imported';
|
||||
@override String get shaderImportFailed => 'Failed to import shader';
|
||||
@override String get deleteShader => 'Delete Shader';
|
||||
@override String deleteShaderConfirm({required Object name}) => 'Delete "${name}"?';
|
||||
@override String get importShader => 'Importera shader';
|
||||
@override String get customShaderDescription => 'Anpassad GLSL-shader';
|
||||
@override String get shaderImported => 'Shader importerad';
|
||||
@override String get shaderImportFailed => 'Kunde inte importera shader';
|
||||
@override String get deleteShader => 'Ta bort shader';
|
||||
@override String deleteShaderConfirm({required Object name}) => 'Ta bort "${name}"?';
|
||||
}
|
||||
|
||||
// Path: companionRemote
|
||||
@@ -1005,7 +1005,7 @@ class _TranslationsCompanionRemoteSv implements TranslationsCompanionRemoteEn {
|
||||
final TranslationsSv _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get title => 'Companion Remote';
|
||||
@override String get title => 'Fjärrkontroll';
|
||||
@override String get connectToDevice => 'Anslut till enhet';
|
||||
@override String get hostRemoteSession => 'Starta fjärrsession';
|
||||
@override String get controlThisDevice => 'Styr den här enheten med din telefon';
|
||||
@@ -1495,8 +1495,8 @@ extension on TranslationsSv {
|
||||
'settings.autoPipDescription' => 'Aktivera bild-i-bild automatiskt när appen lämnas under uppspelning',
|
||||
'settings.matchContentFrameRate' => 'Matcha innehållets bildfrekvens',
|
||||
'settings.matchContentFrameRateDescription' => 'Justera skärmens uppdateringsfrekvens för att matcha videoinnehållet, minskar hackighet och sparar batteri',
|
||||
'settings.tunneledPlayback' => 'Tunneled Playback',
|
||||
'settings.tunneledPlaybackDescription' => 'Use hardware-accelerated video tunneling. Disable if you see a black screen with audio on HDR content',
|
||||
'settings.tunneledPlayback' => 'Tunneluppspelning',
|
||||
'settings.tunneledPlaybackDescription' => 'Använd hårdvaruaccelererad videotunnling. Inaktivera om du ser en svart skärm med ljud vid HDR-innehåll',
|
||||
'settings.requireProfileSelectionOnOpen' => 'Fråga efter profil vid appstart',
|
||||
'settings.requireProfileSelectionOnOpenDescription' => 'Visa profilval varje gång appen öppnas',
|
||||
'settings.confirmExitOnBack' => 'Bekräfta innan avslut',
|
||||
@@ -1639,8 +1639,8 @@ extension on TranslationsSv {
|
||||
'videoControls.pipErrors.unknown' => ({required Object error}) => 'Ett fel uppstod: ${error}',
|
||||
'videoControls.chapters' => 'Kapitel',
|
||||
'videoControls.noChaptersAvailable' => 'Inga kapitel tillgängliga',
|
||||
'videoControls.queue' => 'Queue',
|
||||
'videoControls.noQueueItems' => 'No items in queue',
|
||||
'videoControls.queue' => 'Kö',
|
||||
'videoControls.noQueueItems' => 'Inga objekt i kön',
|
||||
'userStatus.admin' => 'Admin',
|
||||
'userStatus.restricted' => 'Begränsad',
|
||||
'userStatus.protected' => 'Skyddad',
|
||||
@@ -1675,9 +1675,9 @@ extension on TranslationsSv {
|
||||
'messages.failedToCreatePlayQueueNoItems' => 'Det gick inte att skapa uppspelningskö – inga objekt',
|
||||
'messages.failedPlayback' => ({required Object action, required Object error}) => 'Kunde inte ${action}: ${error}',
|
||||
'messages.switchingToCompatiblePlayer' => 'Byter till kompatibel spelare...',
|
||||
'messages.logsUploaded' => 'Logs uploaded',
|
||||
'messages.logsUploadFailed' => 'Failed to upload logs',
|
||||
'messages.logId' => 'Log ID',
|
||||
'messages.logsUploaded' => 'Loggar uppladdade',
|
||||
'messages.logsUploadFailed' => 'Uppladdning av loggar misslyckades',
|
||||
'messages.logId' => 'Logg-ID',
|
||||
'subtitlingStyling.stylingOptions' => 'Stilalternativ',
|
||||
'subtitlingStyling.fontSize' => 'Teckenstorlek',
|
||||
'subtitlingStyling.textColor' => 'Textfärg',
|
||||
@@ -1790,7 +1790,7 @@ extension on TranslationsSv {
|
||||
'hubDetail.noItemsFound' => 'Inga objekt hittades',
|
||||
'logs.clearLogs' => 'Rensa loggar',
|
||||
'logs.copyLogs' => 'Kopiera loggar',
|
||||
'logs.uploadLogs' => 'Upload Logs',
|
||||
'logs.uploadLogs' => 'Ladda upp loggar',
|
||||
'logs.error' => 'Fel:',
|
||||
'logs.stackTrace' => 'Stack trace:',
|
||||
'licenses.relatedPackages' => 'Relaterade paket',
|
||||
@@ -1947,13 +1947,13 @@ extension on TranslationsSv {
|
||||
'shaders.qualityFast' => 'Snabb',
|
||||
'shaders.qualityHQ' => 'Hög kvalitet',
|
||||
'shaders.mode' => 'Läge',
|
||||
'shaders.importShader' => 'Import Shader',
|
||||
'shaders.customShaderDescription' => 'Custom GLSL shader',
|
||||
'shaders.shaderImported' => 'Shader imported',
|
||||
'shaders.shaderImportFailed' => 'Failed to import shader',
|
||||
'shaders.deleteShader' => 'Delete Shader',
|
||||
'shaders.deleteShaderConfirm' => ({required Object name}) => 'Delete "${name}"?',
|
||||
'companionRemote.title' => 'Companion Remote',
|
||||
'shaders.importShader' => 'Importera shader',
|
||||
'shaders.customShaderDescription' => 'Anpassad GLSL-shader',
|
||||
'shaders.shaderImported' => 'Shader importerad',
|
||||
'shaders.shaderImportFailed' => 'Kunde inte importera shader',
|
||||
'shaders.deleteShader' => 'Ta bort shader',
|
||||
'shaders.deleteShaderConfirm' => ({required Object name}) => 'Ta bort "${name}"?',
|
||||
'companionRemote.title' => 'Fjärrkontroll',
|
||||
'companionRemote.connectToDevice' => 'Anslut till enhet',
|
||||
'companionRemote.hostRemoteSession' => 'Starta fjärrsession',
|
||||
'companionRemote.controlThisDevice' => 'Styr den här enheten med din telefon',
|
||||
|
||||
+32
-32
@@ -320,8 +320,8 @@ class _TranslationsSettingsZh implements TranslationsSettingsEn {
|
||||
@override String get autoPipDescription => '在播放期间离开应用时自动进入画中画模式';
|
||||
@override String get matchContentFrameRate => '匹配内容帧率';
|
||||
@override String get matchContentFrameRateDescription => '调整显示刷新率以匹配视频内容,减少画面抖动并节省电量';
|
||||
@override String get tunneledPlayback => 'Tunneled Playback';
|
||||
@override String get tunneledPlaybackDescription => 'Use hardware-accelerated video tunneling. Disable if you see a black screen with audio on HDR content';
|
||||
@override String get tunneledPlayback => '通道化播放';
|
||||
@override String get tunneledPlaybackDescription => '使用硬件加速视频通道。如果在 HDR 内容上看到黑屏但有声音,请禁用此选项';
|
||||
@override String get requireProfileSelectionOnOpen => '打开应用时询问配置文件';
|
||||
@override String get requireProfileSelectionOnOpenDescription => '每次打开应用时显示配置文件选择';
|
||||
@override String get confirmExitOnBack => '退出前确认';
|
||||
@@ -512,8 +512,8 @@ class _TranslationsVideoControlsZh implements TranslationsVideoControlsEn {
|
||||
@override late final _TranslationsVideoControlsPipErrorsZh pipErrors = _TranslationsVideoControlsPipErrorsZh._(_root);
|
||||
@override String get chapters => '章节';
|
||||
@override String get noChaptersAvailable => '没有可用的章节';
|
||||
@override String get queue => 'Queue';
|
||||
@override String get noQueueItems => 'No items in queue';
|
||||
@override String get queue => '播放队列';
|
||||
@override String get noQueueItems => '队列中没有项目';
|
||||
}
|
||||
|
||||
// Path: userStatus
|
||||
@@ -566,9 +566,9 @@ class _TranslationsMessagesZh implements TranslationsMessagesEn {
|
||||
@override String get failedToCreatePlayQueueNoItems => '创建播放队列失败 - 没有项目';
|
||||
@override String failedPlayback({required Object action, required Object error}) => '无法${action}: ${error}';
|
||||
@override String get switchingToCompatiblePlayer => '正在切换到兼容的播放器...';
|
||||
@override String get logsUploaded => 'Logs uploaded';
|
||||
@override String get logsUploadFailed => 'Failed to upload logs';
|
||||
@override String get logId => 'Log ID';
|
||||
@override String get logsUploaded => '日志已上传';
|
||||
@override String get logsUploadFailed => '上传日志失败';
|
||||
@override String get logId => '日志 ID';
|
||||
}
|
||||
|
||||
// Path: subtitlingStyling
|
||||
@@ -585,7 +585,7 @@ class _TranslationsSubtitlingStylingZh implements TranslationsSubtitlingStylingE
|
||||
@override String get borderColor => '边框颜色';
|
||||
@override String get backgroundOpacity => '背景不透明度';
|
||||
@override String get backgroundColor => '背景颜色';
|
||||
@override String get position => 'Position';
|
||||
@override String get position => '位置';
|
||||
}
|
||||
|
||||
// Path: mpvConfig
|
||||
@@ -763,7 +763,7 @@ class _TranslationsLogsZh implements TranslationsLogsEn {
|
||||
// Translations
|
||||
@override String get clearLogs => '清除日志';
|
||||
@override String get copyLogs => '复制日志';
|
||||
@override String get uploadLogs => 'Upload Logs';
|
||||
@override String get uploadLogs => '上传日志';
|
||||
@override String get error => '错误:';
|
||||
@override String get stackTrace => '堆栈跟踪 (Stack Trace):';
|
||||
}
|
||||
@@ -990,12 +990,12 @@ class _TranslationsShadersZh implements TranslationsShadersEn {
|
||||
@override String get qualityFast => '快速';
|
||||
@override String get qualityHQ => '高质量';
|
||||
@override String get mode => '模式';
|
||||
@override String get importShader => 'Import Shader';
|
||||
@override String get customShaderDescription => 'Custom GLSL shader';
|
||||
@override String get shaderImported => 'Shader imported';
|
||||
@override String get shaderImportFailed => 'Failed to import shader';
|
||||
@override String get deleteShader => 'Delete Shader';
|
||||
@override String deleteShaderConfirm({required Object name}) => 'Delete "${name}"?';
|
||||
@override String get importShader => '导入着色器';
|
||||
@override String get customShaderDescription => '自定义 GLSL 着色器';
|
||||
@override String get shaderImported => '着色器已导入';
|
||||
@override String get shaderImportFailed => '导入着色器失败';
|
||||
@override String get deleteShader => '删除着色器';
|
||||
@override String deleteShaderConfirm({required Object name}) => '删除"${name}"?';
|
||||
}
|
||||
|
||||
// Path: companionRemote
|
||||
@@ -1005,7 +1005,7 @@ class _TranslationsCompanionRemoteZh implements TranslationsCompanionRemoteEn {
|
||||
final TranslationsZh _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get title => 'Companion Remote';
|
||||
@override String get title => '伴侣遥控';
|
||||
@override String get connectToDevice => '连接到设备';
|
||||
@override String get hostRemoteSession => '创建远程会话';
|
||||
@override String get controlThisDevice => '使用手机控制此设备';
|
||||
@@ -1495,8 +1495,8 @@ extension on TranslationsZh {
|
||||
'settings.autoPipDescription' => '在播放期间离开应用时自动进入画中画模式',
|
||||
'settings.matchContentFrameRate' => '匹配内容帧率',
|
||||
'settings.matchContentFrameRateDescription' => '调整显示刷新率以匹配视频内容,减少画面抖动并节省电量',
|
||||
'settings.tunneledPlayback' => 'Tunneled Playback',
|
||||
'settings.tunneledPlaybackDescription' => 'Use hardware-accelerated video tunneling. Disable if you see a black screen with audio on HDR content',
|
||||
'settings.tunneledPlayback' => '通道化播放',
|
||||
'settings.tunneledPlaybackDescription' => '使用硬件加速视频通道。如果在 HDR 内容上看到黑屏但有声音,请禁用此选项',
|
||||
'settings.requireProfileSelectionOnOpen' => '打开应用时询问配置文件',
|
||||
'settings.requireProfileSelectionOnOpenDescription' => '每次打开应用时显示配置文件选择',
|
||||
'settings.confirmExitOnBack' => '退出前确认',
|
||||
@@ -1639,8 +1639,8 @@ extension on TranslationsZh {
|
||||
'videoControls.pipErrors.unknown' => ({required Object error}) => '发生错误:${error}',
|
||||
'videoControls.chapters' => '章节',
|
||||
'videoControls.noChaptersAvailable' => '没有可用的章节',
|
||||
'videoControls.queue' => 'Queue',
|
||||
'videoControls.noQueueItems' => 'No items in queue',
|
||||
'videoControls.queue' => '播放队列',
|
||||
'videoControls.noQueueItems' => '队列中没有项目',
|
||||
'userStatus.admin' => '管理员',
|
||||
'userStatus.restricted' => '受限',
|
||||
'userStatus.protected' => '受保护',
|
||||
@@ -1675,9 +1675,9 @@ extension on TranslationsZh {
|
||||
'messages.failedToCreatePlayQueueNoItems' => '创建播放队列失败 - 没有项目',
|
||||
'messages.failedPlayback' => ({required Object action, required Object error}) => '无法${action}: ${error}',
|
||||
'messages.switchingToCompatiblePlayer' => '正在切换到兼容的播放器...',
|
||||
'messages.logsUploaded' => 'Logs uploaded',
|
||||
'messages.logsUploadFailed' => 'Failed to upload logs',
|
||||
'messages.logId' => 'Log ID',
|
||||
'messages.logsUploaded' => '日志已上传',
|
||||
'messages.logsUploadFailed' => '上传日志失败',
|
||||
'messages.logId' => '日志 ID',
|
||||
'subtitlingStyling.stylingOptions' => '样式选项',
|
||||
'subtitlingStyling.fontSize' => '字号',
|
||||
'subtitlingStyling.textColor' => '文本颜色',
|
||||
@@ -1685,7 +1685,7 @@ extension on TranslationsZh {
|
||||
'subtitlingStyling.borderColor' => '边框颜色',
|
||||
'subtitlingStyling.backgroundOpacity' => '背景不透明度',
|
||||
'subtitlingStyling.backgroundColor' => '背景颜色',
|
||||
'subtitlingStyling.position' => 'Position',
|
||||
'subtitlingStyling.position' => '位置',
|
||||
'mpvConfig.title' => 'mpv 配置',
|
||||
'mpvConfig.description' => '高级视频播放器设置',
|
||||
'mpvConfig.presets' => '预设',
|
||||
@@ -1790,7 +1790,7 @@ extension on TranslationsZh {
|
||||
'hubDetail.noItemsFound' => '未找到项目',
|
||||
'logs.clearLogs' => '清除日志',
|
||||
'logs.copyLogs' => '复制日志',
|
||||
'logs.uploadLogs' => 'Upload Logs',
|
||||
'logs.uploadLogs' => '上传日志',
|
||||
'logs.error' => '错误:',
|
||||
'logs.stackTrace' => '堆栈跟踪 (Stack Trace):',
|
||||
'licenses.relatedPackages' => '相关软件包',
|
||||
@@ -1947,13 +1947,13 @@ extension on TranslationsZh {
|
||||
'shaders.qualityFast' => '快速',
|
||||
'shaders.qualityHQ' => '高质量',
|
||||
'shaders.mode' => '模式',
|
||||
'shaders.importShader' => 'Import Shader',
|
||||
'shaders.customShaderDescription' => 'Custom GLSL shader',
|
||||
'shaders.shaderImported' => 'Shader imported',
|
||||
'shaders.shaderImportFailed' => 'Failed to import shader',
|
||||
'shaders.deleteShader' => 'Delete Shader',
|
||||
'shaders.deleteShaderConfirm' => ({required Object name}) => 'Delete "${name}"?',
|
||||
'companionRemote.title' => 'Companion Remote',
|
||||
'shaders.importShader' => '导入着色器',
|
||||
'shaders.customShaderDescription' => '自定义 GLSL 着色器',
|
||||
'shaders.shaderImported' => '着色器已导入',
|
||||
'shaders.shaderImportFailed' => '导入着色器失败',
|
||||
'shaders.deleteShader' => '删除着色器',
|
||||
'shaders.deleteShaderConfirm' => ({required Object name}) => '删除"${name}"?',
|
||||
'companionRemote.title' => '伴侣遥控',
|
||||
'companionRemote.connectToDevice' => '连接到设备',
|
||||
'companionRemote.hostRemoteSession' => '创建远程会话',
|
||||
'companionRemote.controlThisDevice' => '使用手机控制此设备',
|
||||
|
||||
+15
-15
@@ -201,8 +201,8 @@
|
||||
"autoPipDescription": "Aktivera bild-i-bild automatiskt när appen lämnas under uppspelning",
|
||||
"matchContentFrameRate": "Matcha innehållets bildfrekvens",
|
||||
"matchContentFrameRateDescription": "Justera skärmens uppdateringsfrekvens för att matcha videoinnehållet, minskar hackighet och sparar batteri",
|
||||
"tunneledPlayback": "Tunneled Playback",
|
||||
"tunneledPlaybackDescription": "Use hardware-accelerated video tunneling. Disable if you see a black screen with audio on HDR content",
|
||||
"tunneledPlayback": "Tunneluppspelning",
|
||||
"tunneledPlaybackDescription": "Använd hårdvaruaccelererad videotunnling. Inaktivera om du ser en svart skärm med ljud vid HDR-innehåll",
|
||||
"requireProfileSelectionOnOpen": "Fråga efter profil vid appstart",
|
||||
"requireProfileSelectionOnOpenDescription": "Visa profilval varje gång appen öppnas",
|
||||
"confirmExitOnBack": "Bekräfta innan avslut",
|
||||
@@ -365,8 +365,8 @@
|
||||
},
|
||||
"chapters": "Kapitel",
|
||||
"noChaptersAvailable": "Inga kapitel tillgängliga",
|
||||
"queue": "Queue",
|
||||
"noQueueItems": "No items in queue"
|
||||
"queue": "Kö",
|
||||
"noQueueItems": "Inga objekt i kön"
|
||||
},
|
||||
"userStatus": {
|
||||
"admin": "Admin",
|
||||
@@ -405,9 +405,9 @@
|
||||
"failedToCreatePlayQueueNoItems": "Det gick inte att skapa uppspelningskö – inga objekt",
|
||||
"failedPlayback": "Kunde inte ${action}: ${error}",
|
||||
"switchingToCompatiblePlayer": "Byter till kompatibel spelare...",
|
||||
"logsUploaded": "Logs uploaded",
|
||||
"logsUploadFailed": "Failed to upload logs",
|
||||
"logId": "Log ID"
|
||||
"logsUploaded": "Loggar uppladdade",
|
||||
"logsUploadFailed": "Uppladdning av loggar misslyckades",
|
||||
"logId": "Logg-ID"
|
||||
},
|
||||
"subtitlingStyling": {
|
||||
"stylingOptions": "Stilalternativ",
|
||||
@@ -544,7 +544,7 @@
|
||||
"logs": {
|
||||
"clearLogs": "Rensa loggar",
|
||||
"copyLogs": "Kopiera loggar",
|
||||
"uploadLogs": "Upload Logs",
|
||||
"uploadLogs": "Ladda upp loggar",
|
||||
"error": "Fel:",
|
||||
"stackTrace": "Stack trace:"
|
||||
},
|
||||
@@ -715,15 +715,15 @@
|
||||
"qualityFast": "Snabb",
|
||||
"qualityHQ": "Hög kvalitet",
|
||||
"mode": "Läge",
|
||||
"importShader": "Import Shader",
|
||||
"customShaderDescription": "Custom GLSL shader",
|
||||
"shaderImported": "Shader imported",
|
||||
"shaderImportFailed": "Failed to import shader",
|
||||
"deleteShader": "Delete Shader",
|
||||
"deleteShaderConfirm": "Delete \"${name}\"?"
|
||||
"importShader": "Importera shader",
|
||||
"customShaderDescription": "Anpassad GLSL-shader",
|
||||
"shaderImported": "Shader importerad",
|
||||
"shaderImportFailed": "Kunde inte importera shader",
|
||||
"deleteShader": "Ta bort shader",
|
||||
"deleteShaderConfirm": "Ta bort \"${name}\"?"
|
||||
},
|
||||
"companionRemote": {
|
||||
"title": "Companion Remote",
|
||||
"title": "Fjärrkontroll",
|
||||
"connectToDevice": "Anslut till enhet",
|
||||
"hostRemoteSession": "Starta fjärrsession",
|
||||
"controlThisDevice": "Styr den här enheten med din telefon",
|
||||
|
||||
+16
-16
@@ -201,8 +201,8 @@
|
||||
"autoPipDescription": "在播放期间离开应用时自动进入画中画模式",
|
||||
"matchContentFrameRate": "匹配内容帧率",
|
||||
"matchContentFrameRateDescription": "调整显示刷新率以匹配视频内容,减少画面抖动并节省电量",
|
||||
"tunneledPlayback": "Tunneled Playback",
|
||||
"tunneledPlaybackDescription": "Use hardware-accelerated video tunneling. Disable if you see a black screen with audio on HDR content",
|
||||
"tunneledPlayback": "通道化播放",
|
||||
"tunneledPlaybackDescription": "使用硬件加速视频通道。如果在 HDR 内容上看到黑屏但有声音,请禁用此选项",
|
||||
"requireProfileSelectionOnOpen": "打开应用时询问配置文件",
|
||||
"requireProfileSelectionOnOpenDescription": "每次打开应用时显示配置文件选择",
|
||||
"confirmExitOnBack": "退出前确认",
|
||||
@@ -365,8 +365,8 @@
|
||||
},
|
||||
"chapters": "章节",
|
||||
"noChaptersAvailable": "没有可用的章节",
|
||||
"queue": "Queue",
|
||||
"noQueueItems": "No items in queue"
|
||||
"queue": "播放队列",
|
||||
"noQueueItems": "队列中没有项目"
|
||||
},
|
||||
"userStatus": {
|
||||
"admin": "管理员",
|
||||
@@ -405,9 +405,9 @@
|
||||
"failedToCreatePlayQueueNoItems": "创建播放队列失败 - 没有项目",
|
||||
"failedPlayback": "无法${action}: ${error}",
|
||||
"switchingToCompatiblePlayer": "正在切换到兼容的播放器...",
|
||||
"logsUploaded": "Logs uploaded",
|
||||
"logsUploadFailed": "Failed to upload logs",
|
||||
"logId": "Log ID"
|
||||
"logsUploaded": "日志已上传",
|
||||
"logsUploadFailed": "上传日志失败",
|
||||
"logId": "日志 ID"
|
||||
},
|
||||
"subtitlingStyling": {
|
||||
"stylingOptions": "样式选项",
|
||||
@@ -417,7 +417,7 @@
|
||||
"borderColor": "边框颜色",
|
||||
"backgroundOpacity": "背景不透明度",
|
||||
"backgroundColor": "背景颜色",
|
||||
"position": "Position"
|
||||
"position": "位置"
|
||||
},
|
||||
"mpvConfig": {
|
||||
"title": "mpv 配置",
|
||||
@@ -544,7 +544,7 @@
|
||||
"logs": {
|
||||
"clearLogs": "清除日志",
|
||||
"copyLogs": "复制日志",
|
||||
"uploadLogs": "Upload Logs",
|
||||
"uploadLogs": "上传日志",
|
||||
"error": "错误:",
|
||||
"stackTrace": "堆栈跟踪 (Stack Trace):"
|
||||
},
|
||||
@@ -715,15 +715,15 @@
|
||||
"qualityFast": "快速",
|
||||
"qualityHQ": "高质量",
|
||||
"mode": "模式",
|
||||
"importShader": "Import Shader",
|
||||
"customShaderDescription": "Custom GLSL shader",
|
||||
"shaderImported": "Shader imported",
|
||||
"shaderImportFailed": "Failed to import shader",
|
||||
"deleteShader": "Delete Shader",
|
||||
"deleteShaderConfirm": "Delete \"${name}\"?"
|
||||
"importShader": "导入着色器",
|
||||
"customShaderDescription": "自定义 GLSL 着色器",
|
||||
"shaderImported": "着色器已导入",
|
||||
"shaderImportFailed": "导入着色器失败",
|
||||
"deleteShader": "删除着色器",
|
||||
"deleteShaderConfirm": "删除\"${name}\"?"
|
||||
},
|
||||
"companionRemote": {
|
||||
"title": "Companion Remote",
|
||||
"title": "伴侣遥控",
|
||||
"connectToDevice": "连接到设备",
|
||||
"hostRemoteSession": "创建远程会话",
|
||||
"controlThisDevice": "使用手机控制此设备",
|
||||
|
||||
+152
-71
@@ -1,5 +1,4 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/gestures.dart';
|
||||
@@ -53,6 +52,8 @@ import 'utils/navigation_transitions.dart';
|
||||
import 'utils/log_redaction_manager.dart';
|
||||
import 'package:package_info_plus/package_info_plus.dart';
|
||||
|
||||
const bool _enableSentry = bool.fromEnvironment('ENABLE_SENTRY', defaultValue: false);
|
||||
|
||||
// Workaround for Flutter bug #177992: iPadOS 26.1+ misinterprets fake touch events
|
||||
// at (0,0) as barrier taps, causing modals to dismiss immediately.
|
||||
// Remove when Flutter PR #179643 is merged.
|
||||
@@ -70,14 +71,14 @@ void _absorbZeroOffsetPointerEvent(PointerEvent event) {
|
||||
}
|
||||
}
|
||||
|
||||
void main() async {
|
||||
Future<void> main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
_installZeroOffsetPointerGuard(); // Workaround for iPadOS 26.1+ modal dismissal bug
|
||||
|
||||
final packageInfo = await PackageInfo.fromPlatform();
|
||||
if (_enableSentry) {
|
||||
final packageInfo = await PackageInfo.fromPlatform();
|
||||
|
||||
await SentryFlutter.init(
|
||||
(options) {
|
||||
await SentryFlutter.init((options) {
|
||||
options.dsn = 'https://6a1a6ef8c72140099b2798973c1bfb2f@bugs.plezy.app/1';
|
||||
options.release = 'plezy@${packageInfo.version}+${packageInfo.buildNumber}';
|
||||
options.tracesSampleRate = 0;
|
||||
@@ -86,73 +87,80 @@ void main() async {
|
||||
options.recordHttpBreadcrumbs = false;
|
||||
options.beforeSend = _beforeSend;
|
||||
options.beforeBreadcrumb = _beforeBreadcrumb;
|
||||
},
|
||||
appRunner: () async {
|
||||
// Initialize settings first to get saved locale
|
||||
final settings = await SettingsService.getInstance();
|
||||
final savedLocale = settings.getAppLocale();
|
||||
}, appRunner: _bootstrapApp);
|
||||
return;
|
||||
}
|
||||
|
||||
// Initialize localization with saved locale
|
||||
LocaleSettings.setLocale(savedLocale);
|
||||
await _bootstrapApp();
|
||||
}
|
||||
|
||||
// Needed for formatting dates in different locales
|
||||
await initializeDateFormatting(savedLocale.languageCode, null);
|
||||
Future<void> _bootstrapApp() async {
|
||||
// Initialize settings first to get saved locale
|
||||
final settings = await SettingsService.getInstance();
|
||||
final savedLocale = settings.getAppLocale();
|
||||
|
||||
// Configure image cache for large libraries
|
||||
PaintingBinding.instance.imageCache.maximumSize = 2000; // default 1000
|
||||
PaintingBinding.instance.imageCache.maximumSizeBytes = 300 << 20; // 300MB
|
||||
// Initialize localization with saved locale
|
||||
LocaleSettings.setLocale(savedLocale);
|
||||
|
||||
// Initialize services in parallel where possible
|
||||
final futures = <Future<void>>[];
|
||||
// Needed for formatting dates in different locales
|
||||
await initializeDateFormatting(savedLocale.languageCode, null);
|
||||
|
||||
// Initialize window_manager for desktop platforms
|
||||
if (Platform.isMacOS || Platform.isWindows || Platform.isLinux) {
|
||||
futures.add(windowManager.ensureInitialized());
|
||||
}
|
||||
// Configure image cache for large libraries
|
||||
PaintingBinding.instance.imageCache.maximumSize = 2000; // default 1000
|
||||
PaintingBinding.instance.imageCache.maximumSizeBytes = 300 << 20; // 300MB
|
||||
|
||||
// Initialize TV detection and PiP service for Android
|
||||
if (Platform.isAndroid) {
|
||||
futures.add(TvDetectionService.getInstance());
|
||||
// Initialize PiP service to listen for PiP state changes
|
||||
PipService();
|
||||
}
|
||||
// Initialize services in parallel where possible
|
||||
final futures = <Future<void>>[];
|
||||
|
||||
// Configure macOS window with custom titlebar (depends on window manager)
|
||||
futures.add(MacOSWindowService.setupCustomTitlebar());
|
||||
// Initialize window_manager for desktop platforms
|
||||
if (Platform.isMacOS || Platform.isWindows || Platform.isLinux) {
|
||||
futures.add(windowManager.ensureInitialized());
|
||||
}
|
||||
|
||||
// Initialize storage service
|
||||
futures.add(StorageService.getInstance());
|
||||
// Initialize TV detection and PiP service for Android
|
||||
if (Platform.isAndroid) {
|
||||
futures.add(TvDetectionService.getInstance());
|
||||
// Initialize PiP service to listen for PiP state changes
|
||||
PipService();
|
||||
}
|
||||
|
||||
// Initialize language codes for track selection
|
||||
futures.add(LanguageCodes.initialize());
|
||||
// Configure macOS window with custom titlebar (depends on window manager)
|
||||
futures.add(MacOSWindowService.setupCustomTitlebar());
|
||||
|
||||
// Wait for all parallel services to complete
|
||||
await Future.wait(futures);
|
||||
// Initialize storage service
|
||||
futures.add(StorageService.getInstance());
|
||||
|
||||
// Initialize logger level based on debug setting
|
||||
final debugEnabled = settings.getEnableDebugLogging();
|
||||
setLoggerLevel(debugEnabled);
|
||||
// Initialize language codes for track selection
|
||||
futures.add(LanguageCodes.initialize());
|
||||
|
||||
// Initialize download storage service with settings
|
||||
await DownloadStorageService.instance.initialize(settings);
|
||||
// Wait for all parallel services to complete
|
||||
await Future.wait(futures);
|
||||
|
||||
// Start global fullscreen state monitoring
|
||||
FullscreenStateManager().startMonitoring();
|
||||
// Initialize logger level based on debug setting
|
||||
final debugEnabled = settings.getEnableDebugLogging();
|
||||
setLoggerLevel(debugEnabled);
|
||||
|
||||
// Initialize gamepad service for desktop platforms
|
||||
if (Platform.isMacOS || Platform.isWindows || Platform.isLinux) {
|
||||
GamepadService.instance.start();
|
||||
DiscordRPCService.instance.initialize();
|
||||
}
|
||||
// Initialize download storage service with settings
|
||||
await DownloadStorageService.instance.initialize(settings);
|
||||
|
||||
// DTD service is available for MCP tooling connection if needed
|
||||
// Start global fullscreen state monitoring
|
||||
FullscreenStateManager().startMonitoring();
|
||||
|
||||
// Register bundled shader licenses
|
||||
_registerShaderLicenses();
|
||||
// Initialize gamepad service (all platforms — universal_gamepad auto-registers
|
||||
// and intercepts input events, so we must listen to re-dispatch them)
|
||||
GamepadService.instance.start();
|
||||
|
||||
runApp(const MainApp());
|
||||
},
|
||||
);
|
||||
// Desktop-only services
|
||||
if (Platform.isMacOS || Platform.isWindows || Platform.isLinux) {
|
||||
DiscordRPCService.instance.initialize();
|
||||
}
|
||||
|
||||
// DTD service is available for MCP tooling connection if needed
|
||||
|
||||
// Register bundled shader licenses
|
||||
_registerShaderLicenses();
|
||||
|
||||
runApp(const MainApp());
|
||||
}
|
||||
|
||||
Breadcrumb? _beforeBreadcrumb(Breadcrumb? breadcrumb, Hint _) {
|
||||
@@ -443,6 +451,9 @@ class SetupScreen extends StatefulWidget {
|
||||
class _SetupScreenState extends State<SetupScreen> {
|
||||
String _statusMessage = '';
|
||||
|
||||
// Per-server connection status: serverId -> (name, connected?)
|
||||
final Map<String, (String name, bool? connected)> _serverStatus = {};
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
@@ -508,6 +519,15 @@ class _SetupScreenState extends State<SetupScreen> {
|
||||
|
||||
_setStatus(t.common.connectingToServers);
|
||||
|
||||
// Populate per-server status for splash display
|
||||
if (mounted) {
|
||||
setState(() {
|
||||
for (final server in servers) {
|
||||
_serverStatus[server.clientIdentifier] = (server.name, null);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
try {
|
||||
final result = await ServerConnectionOrchestrator.connectAndInitialize(
|
||||
servers: servers,
|
||||
@@ -515,6 +535,16 @@ class _SetupScreenState extends State<SetupScreen> {
|
||||
librariesProvider: context.read<LibrariesProvider>(),
|
||||
syncService: context.read<OfflineWatchSyncService>(),
|
||||
clientIdentifier: storage.getClientIdentifier(),
|
||||
onServerStatus: (serverId, success) {
|
||||
if (mounted) {
|
||||
setState(() {
|
||||
final existing = _serverStatus[serverId];
|
||||
if (existing != null) {
|
||||
_serverStatus[serverId] = (existing.$1, success);
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
if (!mounted) return;
|
||||
@@ -545,30 +575,81 @@ class _SetupScreenState extends State<SetupScreen> {
|
||||
}
|
||||
}
|
||||
|
||||
Widget _buildStatusText(BuildContext context) {
|
||||
return AnimatedSwitcher(
|
||||
duration: const Duration(milliseconds: 200),
|
||||
child: Text(
|
||||
_statusMessage,
|
||||
key: ValueKey(_statusMessage),
|
||||
textAlign: TextAlign.center,
|
||||
style: Theme.of(context).textTheme.bodyMedium?.copyWith(
|
||||
color: Theme.of(context).colorScheme.onSurface.withValues(alpha: 0.6),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildServerStatusList(BuildContext context) {
|
||||
if (_serverStatus.isEmpty) return const SizedBox.shrink();
|
||||
final textTheme = Theme.of(context).textTheme;
|
||||
final dimColor = Theme.of(context).colorScheme.onSurface.withValues(alpha: 0.5);
|
||||
const coralColor = Color(0xFFE5A00D);
|
||||
const successColor = Color(0xFF4CAF50);
|
||||
const failColor = Color(0xFFEF5350);
|
||||
|
||||
return Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: _serverStatus.entries.map((entry) {
|
||||
final (name, connected) = entry.value;
|
||||
final Widget statusIcon;
|
||||
if (connected == null) {
|
||||
statusIcon = const SizedBox(
|
||||
width: 12, height: 12,
|
||||
child: CircularProgressIndicator(strokeWidth: 1.5, color: coralColor),
|
||||
);
|
||||
} else if (connected) {
|
||||
statusIcon = const Icon(Icons.check_circle, size: 14, color: successColor);
|
||||
} else {
|
||||
statusIcon = const Icon(Icons.cancel, size: 14, color: failColor);
|
||||
}
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 2),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
statusIcon,
|
||||
const SizedBox(width: 8),
|
||||
Text(name, style: textTheme.bodySmall?.copyWith(color: dimColor)),
|
||||
],
|
||||
),
|
||||
);
|
||||
}).toList(),
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
const coralColor = Color(0xFFE5A00D);
|
||||
return ColoredBox(
|
||||
color: Theme.of(context).scaffoldBackgroundColor,
|
||||
child: Stack(
|
||||
children: [
|
||||
// Icon dead-center, matching Android 12+ splash position.
|
||||
// 192dp accounts for the 16% inset in ic_launcher.xml.
|
||||
Center(child: SvgPicture.asset('assets/plezy_adaptive_foreground.svg', width: 288, height: 288)),
|
||||
// Status text below center, independent of icon position.
|
||||
Positioned(
|
||||
left: 0,
|
||||
right: 0,
|
||||
bottom: MediaQuery.of(context).size.height * 0.5 - 140,
|
||||
child: AnimatedSwitcher(
|
||||
duration: const Duration(milliseconds: 200),
|
||||
child: Text(
|
||||
_statusMessage,
|
||||
key: ValueKey(_statusMessage),
|
||||
textAlign: TextAlign.center,
|
||||
style: Theme.of(
|
||||
context,
|
||||
).textTheme.bodyMedium?.copyWith(color: Theme.of(context).colorScheme.onSurface.withValues(alpha: 0.6)),
|
||||
),
|
||||
left: 0, right: 0,
|
||||
bottom: MediaQuery.of(context).size.height * 0.5 - 170,
|
||||
child: _buildStatusText(context),
|
||||
),
|
||||
Positioned(
|
||||
left: 0, right: 0,
|
||||
top: MediaQuery.of(context).size.height * 0.5 + 180,
|
||||
child: Center(
|
||||
child: _serverStatus.isEmpty
|
||||
? const SizedBox(
|
||||
width: 20, height: 20,
|
||||
child: CircularProgressIndicator(strokeWidth: 2, color: coralColor),
|
||||
)
|
||||
: _buildServerStatusList(context),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
@@ -25,11 +25,11 @@ class PlexHome {
|
||||
|
||||
return PlexHome(
|
||||
id: (json['id'] as num?)?.toInt() ?? 0,
|
||||
name: json['name'] as String,
|
||||
name: json['name'] as String? ?? '',
|
||||
guestUserID: (json['guestUserID'] as num?)?.toInt(),
|
||||
guestUserUUID: json['guestUserUUID'] as String,
|
||||
guestEnabled: json['guestEnabled'] as bool,
|
||||
subscription: json['subscription'] as bool,
|
||||
guestUserUUID: json['guestUserUUID'] as String? ?? '',
|
||||
guestEnabled: json['guestEnabled'] as bool? ?? false,
|
||||
subscription: json['subscription'] as bool? ?? false,
|
||||
users: users,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -99,6 +99,7 @@ class PlexMetadata with MultiServerFields {
|
||||
final String? audienceRatingImage; // Audience rating source URI
|
||||
final String? tagline;
|
||||
final String? originalTitle;
|
||||
final String? editionTitle; // Edition name for movies (e.g., "Director's Cut", "Extended")
|
||||
final String? subtype; // Clip subtype: "trailer", "behindTheScenes", "deleted", etc.
|
||||
final int? extraType; // Numeric extra type identifier
|
||||
final String? primaryExtraKey; // Points to main trailer (e.g., "/library/metadata/52601")
|
||||
@@ -186,6 +187,7 @@ class PlexMetadata with MultiServerFields {
|
||||
this.audienceRatingImage,
|
||||
this.tagline,
|
||||
this.originalTitle,
|
||||
this.editionTitle,
|
||||
this.subtype,
|
||||
this.extraType,
|
||||
this.primaryExtraKey,
|
||||
@@ -244,6 +246,7 @@ class PlexMetadata with MultiServerFields {
|
||||
String? audienceRatingImage,
|
||||
String? tagline,
|
||||
String? originalTitle,
|
||||
String? editionTitle,
|
||||
String? subtype,
|
||||
int? extraType,
|
||||
String? primaryExtraKey,
|
||||
@@ -300,6 +303,7 @@ class PlexMetadata with MultiServerFields {
|
||||
audienceRatingImage: audienceRatingImage ?? this.audienceRatingImage,
|
||||
tagline: tagline ?? this.tagline,
|
||||
originalTitle: originalTitle ?? this.originalTitle,
|
||||
editionTitle: editionTitle ?? this.editionTitle,
|
||||
subtype: subtype ?? this.subtype,
|
||||
extraType: extraType ?? this.extraType,
|
||||
primaryExtraKey: primaryExtraKey ?? this.primaryExtraKey,
|
||||
|
||||
@@ -7,12 +7,12 @@ part of 'plex_metadata.dart';
|
||||
// **************************************************************************
|
||||
|
||||
PlexMetadata _$PlexMetadataFromJson(Map<String, dynamic> json) => PlexMetadata(
|
||||
ratingKey: json['ratingKey'] as String,
|
||||
key: json['key'] as String,
|
||||
ratingKey: json['ratingKey'] as String? ?? '',
|
||||
key: json['key'] as String? ?? '',
|
||||
guid: json['guid'] as String?,
|
||||
studio: json['studio'] as String?,
|
||||
type: json['type'] as String,
|
||||
title: json['title'] as String,
|
||||
type: json['type'] as String? ?? 'folder',
|
||||
title: json['title'] as String? ?? '',
|
||||
titleSort: json['titleSort'] as String?,
|
||||
contentRating: json['contentRating'] as String?,
|
||||
summary: json['summary'] as String?,
|
||||
@@ -54,6 +54,7 @@ PlexMetadata _$PlexMetadataFromJson(Map<String, dynamic> json) => PlexMetadata(
|
||||
audienceRatingImage: json['audienceRatingImage'] as String?,
|
||||
tagline: json['tagline'] as String?,
|
||||
originalTitle: json['originalTitle'] as String?,
|
||||
editionTitle: json['editionTitle'] as String?,
|
||||
subtype: json['subtype'] as String?,
|
||||
extraType: (json['extraType'] as num?)?.toInt(),
|
||||
primaryExtraKey: json['primaryExtraKey'] as String?,
|
||||
@@ -109,6 +110,7 @@ Map<String, dynamic> _$PlexMetadataToJson(PlexMetadata instance) => <String, dyn
|
||||
'audienceRatingImage': instance.audienceRatingImage,
|
||||
'tagline': instance.tagline,
|
||||
'originalTitle': instance.originalTitle,
|
||||
'editionTitle': instance.editionTitle,
|
||||
'subtype': instance.subtype,
|
||||
'extraType': instance.extraType,
|
||||
'primaryExtraKey': instance.primaryExtraKey,
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
import '../../models.dart';
|
||||
import '../../../utils/app_logger.dart';
|
||||
import '../player_base.dart';
|
||||
|
||||
/// Android implementation of [Player] using ExoPlayer.
|
||||
@@ -67,6 +68,7 @@ class PlayerAndroid extends PlayerBase {
|
||||
// Register property observers so the plugin knows propId mappings
|
||||
await observeProperty('time-pos', 'double');
|
||||
await observeProperty('duration', 'double');
|
||||
await observeProperty('seekable', 'flag');
|
||||
await observeProperty('pause', 'flag');
|
||||
await observeProperty('paused-for-cache', 'flag');
|
||||
await observeProperty('track-list', 'string');
|
||||
@@ -90,6 +92,7 @@ class PlayerAndroid extends PlayerBase {
|
||||
Future<void> open(Media media, {bool play = true, bool isLive = false}) async {
|
||||
if (disposed) return;
|
||||
await _ensureInitialized();
|
||||
setSeekable(false);
|
||||
|
||||
// Show the video layer
|
||||
await setVisible(true);
|
||||
@@ -116,12 +119,21 @@ class PlayerAndroid extends PlayerBase {
|
||||
@override
|
||||
Future<void> stop() async {
|
||||
await invoke('stop');
|
||||
setSeekable(false);
|
||||
await setVisible(false);
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> seek(Duration position) async {
|
||||
await invoke('seek', {'positionMs': position.inMilliseconds});
|
||||
try {
|
||||
await invoke('seek', {'positionMs': position.inMilliseconds});
|
||||
} on PlatformException catch (e) {
|
||||
if (e.code == 'COMMAND_FAILED' || e.code == 'NOT_INITIALIZED') {
|
||||
appLogger.w('Seek failed (${e.code}), player not ready');
|
||||
return;
|
||||
}
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
|
||||
// ============================================
|
||||
@@ -140,12 +152,7 @@ class PlayerAndroid extends PlayerBase {
|
||||
|
||||
@override
|
||||
Future<void> addSubtitleTrack({required String uri, String? title, String? language, bool select = false}) async {
|
||||
await invoke('addSubtitleTrack', {
|
||||
'uri': uri,
|
||||
'title': title,
|
||||
'language': language,
|
||||
'select': select,
|
||||
});
|
||||
await invoke('addSubtitleTrack', {'uri': uri, 'title': title, 'language': language, 'select': select});
|
||||
}
|
||||
|
||||
// ============================================
|
||||
@@ -213,7 +220,9 @@ class PlayerAndroid extends PlayerBase {
|
||||
}
|
||||
}
|
||||
break;
|
||||
// Other properties are no-ops for ExoPlayer
|
||||
default:
|
||||
// Forward unknown properties to Kotlin for MPV fallback
|
||||
await invoke('setMpvProperty', {'name': name, 'value': value});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -232,6 +241,8 @@ class PlayerAndroid extends PlayerBase {
|
||||
return (state.position.inMilliseconds / 1000.0).toString();
|
||||
case 'duration':
|
||||
return (state.duration.inMilliseconds / 1000.0).toString();
|
||||
case 'seekable':
|
||||
return state.seekable ? 'yes' : 'no';
|
||||
// Video dimensions - query from ExoPlayer stats
|
||||
case 'width':
|
||||
case 'dwidth':
|
||||
|
||||
@@ -169,6 +169,12 @@ abstract class PlayerBase with PlayerStreamControllersMixin implements Player {
|
||||
}
|
||||
break;
|
||||
|
||||
case 'seekable':
|
||||
if (value is bool) {
|
||||
setSeekable(value);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'demuxer-cache-time':
|
||||
if (value is num) {
|
||||
final nowMs = _throttleSw.elapsedMilliseconds;
|
||||
@@ -325,6 +331,7 @@ abstract class PlayerBase with PlayerStreamControllersMixin implements Player {
|
||||
if (_disposed) return;
|
||||
switch (name) {
|
||||
case 'end-file':
|
||||
setSeekable(false);
|
||||
final rawReason = data?['reason'];
|
||||
final reason = switch (rawReason) {
|
||||
0 => 'eof',
|
||||
@@ -462,6 +469,13 @@ abstract class PlayerBase with PlayerStreamControllersMixin implements Player {
|
||||
_state = update(_state);
|
||||
}
|
||||
|
||||
@protected
|
||||
void setSeekable(bool seekable) {
|
||||
if (_state.seekable == seekable) return;
|
||||
_state = _state.copyWith(seekable: seekable);
|
||||
seekableController.add(seekable);
|
||||
}
|
||||
|
||||
/// Safe method channel invocation — no-ops if player is disposed.
|
||||
@protected
|
||||
Future<T?> invoke<T>(String method, [dynamic args]) async {
|
||||
|
||||
@@ -4,6 +4,7 @@ import 'package:flutter/services.dart';
|
||||
|
||||
import '../font_loader.dart';
|
||||
import '../models.dart';
|
||||
import '../../utils/app_logger.dart';
|
||||
import 'player_base.dart';
|
||||
|
||||
/// Shared native implementation of [Player] for iOS, macOS, Android (MPV fallback), and Linux.
|
||||
@@ -60,6 +61,7 @@ class PlayerNative extends PlayerBase {
|
||||
// Subscribe to MPV properties
|
||||
await observeProperty('time-pos', 'double');
|
||||
await observeProperty('duration', 'double');
|
||||
await observeProperty('seekable', 'flag');
|
||||
await observeProperty('pause', 'flag');
|
||||
await observeProperty('paused-for-cache', 'flag');
|
||||
await observeProperty('track-list', _nodeFormat);
|
||||
@@ -114,6 +116,7 @@ class PlayerNative extends PlayerBase {
|
||||
Future<void> open(Media media, {bool play = true, bool isLive = false}) async {
|
||||
if (disposed) return;
|
||||
await _ensureInitialized();
|
||||
setSeekable(false);
|
||||
|
||||
// Show the video layer
|
||||
await setVisible(true);
|
||||
@@ -164,12 +167,21 @@ class PlayerNative extends PlayerBase {
|
||||
@override
|
||||
Future<void> stop() async {
|
||||
await command(['stop']);
|
||||
setSeekable(false);
|
||||
await invoke('setVisible', {'visible': false});
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> seek(Duration position) async {
|
||||
await command(['seek', (position.inMilliseconds / 1000.0).toString(), 'absolute']);
|
||||
try {
|
||||
await command(['seek', (position.inMilliseconds / 1000.0).toString(), 'absolute']);
|
||||
} on PlatformException catch (e) {
|
||||
if (e.code == 'COMMAND_FAILED' || e.code == 'NOT_INITIALIZED') {
|
||||
appLogger.w('Seek failed (${e.code}), player not ready');
|
||||
return;
|
||||
}
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
|
||||
// ============================================
|
||||
|
||||
@@ -20,6 +20,9 @@ class PlayerState {
|
||||
/// Total duration of the media.
|
||||
final Duration duration;
|
||||
|
||||
/// Whether the current media item can be seeked.
|
||||
final bool seekable;
|
||||
|
||||
/// Amount of media buffered ahead of current position.
|
||||
final Duration buffer;
|
||||
|
||||
@@ -59,6 +62,7 @@ class PlayerState {
|
||||
this.buffering = false,
|
||||
this.position = Duration.zero,
|
||||
this.duration = Duration.zero,
|
||||
this.seekable = false,
|
||||
this.buffer = Duration.zero,
|
||||
this.volume = 100.0,
|
||||
this.rate = 1.0,
|
||||
@@ -79,6 +83,7 @@ class PlayerState {
|
||||
bool? buffering,
|
||||
Duration? position,
|
||||
Duration? duration,
|
||||
bool? seekable,
|
||||
Duration? buffer,
|
||||
double? volume,
|
||||
double? rate,
|
||||
@@ -97,6 +102,7 @@ class PlayerState {
|
||||
buffering: buffering ?? this.buffering,
|
||||
position: position ?? this.position,
|
||||
duration: duration ?? this.duration,
|
||||
seekable: seekable ?? this.seekable,
|
||||
buffer: buffer ?? this.buffer,
|
||||
volume: volume ?? this.volume,
|
||||
rate: rate ?? this.rate,
|
||||
@@ -112,5 +118,5 @@ class PlayerState {
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() => 'PlayerState(playing: $playing, position: $position, duration: $duration)';
|
||||
String toString() => 'PlayerState(playing: $playing, position: $position, duration: $duration, seekable: $seekable)';
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@ mixin PlayerStreamControllersMixin {
|
||||
final bufferingController = StreamController<bool>.broadcast();
|
||||
final positionController = StreamController<Duration>.broadcast();
|
||||
final durationController = StreamController<Duration>.broadcast();
|
||||
final seekableController = StreamController<bool>.broadcast();
|
||||
final bufferController = StreamController<Duration>.broadcast();
|
||||
final volumeController = StreamController<double>.broadcast();
|
||||
final rateController = StreamController<double>.broadcast();
|
||||
@@ -35,6 +36,7 @@ mixin PlayerStreamControllersMixin {
|
||||
buffering: bufferingController.stream,
|
||||
position: positionController.stream,
|
||||
duration: durationController.stream,
|
||||
seekable: seekableController.stream,
|
||||
buffer: bufferController.stream,
|
||||
volume: volumeController.stream,
|
||||
rate: rateController.stream,
|
||||
@@ -57,6 +59,7 @@ mixin PlayerStreamControllersMixin {
|
||||
await bufferingController.close();
|
||||
await positionController.close();
|
||||
await durationController.close();
|
||||
await seekableController.close();
|
||||
await bufferController.close();
|
||||
await volumeController.close();
|
||||
await rateController.close();
|
||||
|
||||
@@ -20,6 +20,9 @@ class PlayerStreams {
|
||||
/// Stream of duration changes (when media is loaded).
|
||||
final Stream<Duration> duration;
|
||||
|
||||
/// Stream of seekability changes for the current media item.
|
||||
final Stream<bool> seekable;
|
||||
|
||||
/// Stream of buffer position updates.
|
||||
final Stream<Duration> buffer;
|
||||
|
||||
@@ -63,6 +66,7 @@ class PlayerStreams {
|
||||
required this.buffering,
|
||||
required this.position,
|
||||
required this.duration,
|
||||
required this.seekable,
|
||||
required this.buffer,
|
||||
required this.volume,
|
||||
required this.rate,
|
||||
|
||||
@@ -226,6 +226,10 @@ class CompanionRemoteProvider with ChangeNotifier {
|
||||
}
|
||||
|
||||
Future<void> joinSessionMulti(String sessionId, String pin, List<String> hostAddresses) async {
|
||||
if (hostAddresses.isEmpty) {
|
||||
throw ArgumentError('hostAddresses must not be empty');
|
||||
}
|
||||
|
||||
await leaveSession();
|
||||
|
||||
_lastSessionId = sessionId;
|
||||
|
||||
@@ -145,7 +145,7 @@ class OfflineWatchProvider extends ChangeNotifier {
|
||||
}
|
||||
|
||||
// All episodes watched - return first episode for replay
|
||||
return episodes.first;
|
||||
return episodes.firstOrNull;
|
||||
}
|
||||
|
||||
/// Find the next unwatched downloaded episode synchronously.
|
||||
@@ -164,7 +164,7 @@ class OfflineWatchProvider extends ChangeNotifier {
|
||||
}
|
||||
|
||||
// All episodes watched - return first episode for replay
|
||||
return episodes.first;
|
||||
return episodes.firstOrNull;
|
||||
}
|
||||
|
||||
/// Emit a watch state change event for immediate UI update.
|
||||
|
||||
@@ -210,7 +210,7 @@ class PlaybackStateProvider with ChangeNotifier {
|
||||
}
|
||||
|
||||
// Need to load next window
|
||||
if (_client != null && _playQueueId != null) {
|
||||
if (_client != null && _playQueueId != null && _loadedItems.isNotEmpty) {
|
||||
// Load next window centered on the item after current
|
||||
final nextItemID = _loadedItems.last.playQueueItemID;
|
||||
if (nextItemID != null) {
|
||||
@@ -248,7 +248,7 @@ class PlaybackStateProvider with ChangeNotifier {
|
||||
}
|
||||
|
||||
// Need to load previous window
|
||||
if (_client != null && _playQueueId != null) {
|
||||
if (_client != null && _playQueueId != null && _loadedItems.isNotEmpty) {
|
||||
final prevItemID = _loadedItems.first.playQueueItemID;
|
||||
if (prevItemID != null && prevItemID > 0) {
|
||||
final loaded = await _ensureItemsLoaded(prevItemID - 1);
|
||||
|
||||
@@ -66,7 +66,7 @@ class ThemeProvider extends ChangeNotifier {
|
||||
}
|
||||
}
|
||||
|
||||
static const _themeChannel = MethodChannel('app.plezy/theme');
|
||||
static const _themeChannel = MethodChannel('com.plezy/theme');
|
||||
|
||||
Future<void> setThemeMode(settings.ThemeMode mode) async {
|
||||
if (_themeMode != mode) {
|
||||
|
||||
@@ -59,10 +59,10 @@ abstract class BaseMediaListDetailScreen<T extends StatefulWidget> extends State
|
||||
// If serverId is null, fall back to first available server
|
||||
if (serverId == null) {
|
||||
final multiServerProvider = Provider.of<MultiServerProvider>(context, listen: false);
|
||||
if (!multiServerProvider.hasConnectedServers) {
|
||||
serverId = multiServerProvider.onlineServerIds.firstOrNull;
|
||||
if (serverId == null) {
|
||||
throw Exception(t.errors.noClientAvailable);
|
||||
}
|
||||
serverId = multiServerProvider.onlineServerIds.first;
|
||||
}
|
||||
|
||||
return context.getClientForServer(serverId);
|
||||
|
||||
@@ -63,10 +63,11 @@ class _DiscoverScreenState extends State<DiscoverScreen>
|
||||
@override
|
||||
PlexClient get client {
|
||||
final multiServerProvider = Provider.of<MultiServerProvider>(context, listen: false);
|
||||
if (!multiServerProvider.hasConnectedServers) {
|
||||
final serverId = multiServerProvider.onlineServerIds.firstOrNull;
|
||||
if (serverId == null) {
|
||||
throw Exception('No servers available');
|
||||
}
|
||||
return context.getClientForServer(multiServerProvider.onlineServerIds.first);
|
||||
return context.getClientForServer(serverId);
|
||||
}
|
||||
|
||||
List<PlexMetadata> _onDeck = [];
|
||||
@@ -140,10 +141,11 @@ class _DiscoverScreenState extends State<DiscoverScreen>
|
||||
final serverId = item?.serverId;
|
||||
if (serverId == null) {
|
||||
final multiServerProvider = Provider.of<MultiServerProvider>(context, listen: false);
|
||||
if (!multiServerProvider.hasConnectedServers) {
|
||||
final fallbackId = multiServerProvider.onlineServerIds.firstOrNull;
|
||||
if (fallbackId == null) {
|
||||
throw Exception('No servers available');
|
||||
}
|
||||
return context.getClientForServer(multiServerProvider.onlineServerIds.first);
|
||||
return context.getClientForServer(fallbackId);
|
||||
}
|
||||
return context.getClientForServer(serverId);
|
||||
}
|
||||
|
||||
@@ -79,10 +79,11 @@ class _LibrariesScreenState extends State<LibrariesScreen>
|
||||
@override
|
||||
PlexClient get client {
|
||||
final multiServerProvider = Provider.of<MultiServerProvider>(context, listen: false);
|
||||
if (!multiServerProvider.hasConnectedServers) {
|
||||
final serverId = multiServerProvider.onlineServerIds.firstOrNull;
|
||||
if (serverId == null) {
|
||||
throw Exception(t.errors.noClientAvailable);
|
||||
}
|
||||
return context.getClientForServer(multiServerProvider.onlineServerIds.first);
|
||||
return context.getClientForServer(serverId);
|
||||
}
|
||||
|
||||
// GlobalKeys for tabs to enable refresh
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:material_symbols_icons/symbols.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
@@ -37,7 +38,7 @@ enum _GuideZone { timeNav, grid }
|
||||
|
||||
class GuideTabState extends State<GuideTab> {
|
||||
static const _slotWidth = 180.0;
|
||||
static const _channelColumnWidth = 140.0;
|
||||
static const _channelColumnWidth = 100.0;
|
||||
static const _rowHeight = 64.0;
|
||||
static const _timeHeaderHeight = 40.0;
|
||||
static const _minutesPerSlot = 30;
|
||||
@@ -636,9 +637,7 @@ class GuideTabState extends State<GuideTab> {
|
||||
|
||||
if (target == today) return t.liveTv.today;
|
||||
|
||||
final format = MaterialLocalizations.of(context);
|
||||
final full = format.formatFullDate(target);
|
||||
return full.split(',').first;
|
||||
return DateFormat('EEEE', LocaleSettings.currentLocale.languageCode).format(target);
|
||||
}
|
||||
|
||||
List<(String, int)> get _timeSlots => [
|
||||
@@ -776,8 +775,7 @@ class GuideTabState extends State<GuideTab> {
|
||||
}
|
||||
|
||||
Widget _buildTimeNavigation(ThemeData theme) {
|
||||
final format = MaterialLocalizations.of(context);
|
||||
final timeLabel = format.formatTimeOfDay(TimeOfDay.fromDateTime(_gridStart));
|
||||
final timeLabel = formatClockTime(_gridStart, is24Hour: MediaQuery.alwaysUse24HourFormatOf(context));
|
||||
final dayLabel = _dayLabel(_gridStart);
|
||||
|
||||
return Container(
|
||||
|
||||
@@ -2041,6 +2041,7 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
|
||||
runSpacing: 8,
|
||||
children: [
|
||||
if (metadata.year != null) _buildMetadataChip('${metadata.year}'),
|
||||
if (metadata.editionTitle != null) _buildMetadataChip(metadata.editionTitle!),
|
||||
if (metadata.contentRating != null)
|
||||
_buildMetadataChip(formatContentRating(metadata.contentRating!)),
|
||||
if (metadata.duration != null)
|
||||
|
||||
@@ -248,8 +248,12 @@ class _PlaylistItemCardState extends State<PlaylistItemCard> {
|
||||
}
|
||||
return widget.item.displaySubtitle ?? t.discover.tvShow;
|
||||
} else if (itemType == 'movie') {
|
||||
// For movies, show year
|
||||
return widget.item.year?.toString() ?? t.discover.movie;
|
||||
// For movies, show year and edition
|
||||
final year = widget.item.year?.toString();
|
||||
if (year != null && widget.item.editionTitle != null) {
|
||||
return '$year · ${widget.item.editionTitle}';
|
||||
}
|
||||
return year ?? t.discover.movie;
|
||||
}
|
||||
|
||||
// Default to type
|
||||
|
||||
@@ -10,10 +10,11 @@ import '../../models/hotkey_model.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
|
||||
|
||||
import '../../focus/dpad_navigator.dart';
|
||||
import '../../focus/focus_memory_tracker.dart';
|
||||
import '../../focus/input_mode_tracker.dart';
|
||||
import '../../i18n/strings.g.dart';
|
||||
import '../../utils/focus_utils.dart';
|
||||
import '../main_screen.dart';
|
||||
import '../../mixins/refreshable.dart';
|
||||
import '../../services/discord_rpc_service.dart';
|
||||
@@ -29,7 +30,9 @@ import '../../services/update_service.dart';
|
||||
import '../../utils/snackbar_helper.dart';
|
||||
import '../../utils/platform_detector.dart';
|
||||
import '../../widgets/desktop_app_bar.dart';
|
||||
import '../../widgets/focusable_list_tile.dart';
|
||||
import '../../widgets/focused_scroll_scaffold.dart';
|
||||
import '../../widgets/overlay_sheet.dart';
|
||||
import '../../widgets/tv_number_spinner.dart';
|
||||
import 'hotkey_recorder_widget.dart';
|
||||
import '../../providers/companion_remote_provider.dart';
|
||||
@@ -268,59 +271,179 @@ class _SettingsScreenState extends State<SettingsScreen> with FocusableTab {
|
||||
),
|
||||
Consumer<ThemeProvider>(
|
||||
builder: (context, themeProvider, child) {
|
||||
return ListTile(
|
||||
focusNode: _focusTracker.get(_kTheme),
|
||||
leading: AppIcon(themeProvider.themeModeIcon, fill: 1),
|
||||
title: Text(t.settings.theme),
|
||||
subtitle: Text(themeProvider.themeModeDisplayName),
|
||||
trailing: const AppIcon(Symbols.chevron_right_rounded, fill: 1),
|
||||
onTap: () => _showThemeDialog(themeProvider),
|
||||
);
|
||||
},
|
||||
),
|
||||
ListTile(
|
||||
focusNode: _focusTracker.get(_kLanguage),
|
||||
leading: const AppIcon(Symbols.language_rounded, fill: 1),
|
||||
title: Text(t.settings.language),
|
||||
subtitle: Text(_getLanguageDisplayName(LocaleSettings.currentLocale)),
|
||||
trailing: const AppIcon(Symbols.chevron_right_rounded, fill: 1),
|
||||
onTap: () => _showLanguageDialog(),
|
||||
),
|
||||
Consumer<SettingsProvider>(
|
||||
builder: (context, settingsProvider, child) {
|
||||
return ListTile(
|
||||
focusNode: _focusTracker.get(_kLibraryDensity),
|
||||
leading: const AppIcon(Symbols.grid_view_rounded, fill: 1),
|
||||
title: Text(t.settings.libraryDensity),
|
||||
subtitle: Text(settingsProvider.libraryDensityDisplayName),
|
||||
trailing: const AppIcon(Symbols.chevron_right_rounded, fill: 1),
|
||||
onTap: () => _showLibraryDensityDialog(),
|
||||
);
|
||||
},
|
||||
),
|
||||
Consumer<SettingsProvider>(
|
||||
builder: (context, settingsProvider, child) {
|
||||
return ListTile(
|
||||
focusNode: _focusTracker.get(_kViewMode),
|
||||
leading: const AppIcon(Symbols.view_list_rounded, fill: 1),
|
||||
title: Text(t.settings.viewMode),
|
||||
subtitle: Text(
|
||||
settingsProvider.viewMode == settings.ViewMode.grid ? t.settings.gridView : t.settings.listView,
|
||||
return Builder(
|
||||
builder: (tileContext) => ListTile(
|
||||
focusNode: _focusTracker.get(_kTheme),
|
||||
leading: AppIcon(themeProvider.themeModeIcon, fill: 1),
|
||||
title: Text(t.settings.theme),
|
||||
subtitle: Text(themeProvider.themeModeDisplayName),
|
||||
trailing: const AppIcon(Symbols.arrow_drop_down_rounded, fill: 1),
|
||||
onTap: () async {
|
||||
final value = await _showSettingsMenu<settings.ThemeMode>(
|
||||
tileContext: tileContext,
|
||||
title: t.settings.theme,
|
||||
options: [
|
||||
_DialogOption(
|
||||
value: settings.ThemeMode.system,
|
||||
title: t.settings.systemTheme,
|
||||
subtitle: t.settings.systemThemeDescription,
|
||||
),
|
||||
_DialogOption(value: settings.ThemeMode.light, title: t.settings.lightTheme),
|
||||
_DialogOption(value: settings.ThemeMode.dark, title: t.settings.darkTheme),
|
||||
_DialogOption(
|
||||
value: settings.ThemeMode.oled,
|
||||
title: t.settings.oledTheme,
|
||||
subtitle: t.settings.oledThemeDescription,
|
||||
),
|
||||
],
|
||||
currentValue: themeProvider.themeMode,
|
||||
);
|
||||
if (value != null) {
|
||||
themeProvider.setThemeMode(value);
|
||||
}
|
||||
},
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
Builder(
|
||||
builder: (tileContext) => ListTile(
|
||||
focusNode: _focusTracker.get(_kLanguage),
|
||||
leading: const AppIcon(Symbols.language_rounded, fill: 1),
|
||||
title: Text(t.settings.language),
|
||||
subtitle: Text(_getLanguageDisplayName(LocaleSettings.currentLocale)),
|
||||
trailing: const AppIcon(Symbols.arrow_drop_down_rounded, fill: 1),
|
||||
onTap: () async {
|
||||
final value = await _showSettingsMenu<AppLocale>(
|
||||
tileContext: tileContext,
|
||||
title: t.settings.language,
|
||||
options: AppLocale.values
|
||||
.map((locale) => _DialogOption(value: locale, title: _getLanguageDisplayName(locale)))
|
||||
.toList(),
|
||||
currentValue: LocaleSettings.currentLocale,
|
||||
);
|
||||
if (value != null) {
|
||||
await _settingsService.setAppLocale(value);
|
||||
LocaleSettings.setLocale(value);
|
||||
_restartApp();
|
||||
}
|
||||
},
|
||||
),
|
||||
),
|
||||
Consumer<SettingsProvider>(
|
||||
builder: (context, settingsProvider, child) {
|
||||
return Builder(
|
||||
builder: (tileContext) => ListTile(
|
||||
focusNode: _focusTracker.get(_kLibraryDensity),
|
||||
leading: const AppIcon(Symbols.grid_view_rounded, fill: 1),
|
||||
title: Text(t.settings.libraryDensity),
|
||||
subtitle: Text(settingsProvider.libraryDensityDisplayName),
|
||||
trailing: const AppIcon(Symbols.arrow_drop_down_rounded, fill: 1),
|
||||
onTap: () async {
|
||||
final value = await _showSettingsMenu<settings.LibraryDensity>(
|
||||
tileContext: tileContext,
|
||||
title: t.settings.libraryDensity,
|
||||
options: [
|
||||
_DialogOption(
|
||||
value: settings.LibraryDensity.compact,
|
||||
title: t.settings.compact,
|
||||
subtitle: t.settings.compactDescription,
|
||||
),
|
||||
_DialogOption(
|
||||
value: settings.LibraryDensity.normal,
|
||||
title: t.settings.normal,
|
||||
subtitle: t.settings.normalDescription,
|
||||
),
|
||||
_DialogOption(
|
||||
value: settings.LibraryDensity.comfortable,
|
||||
title: t.settings.comfortable,
|
||||
subtitle: t.settings.comfortableDescription,
|
||||
),
|
||||
],
|
||||
currentValue: settingsProvider.libraryDensity,
|
||||
);
|
||||
if (value != null) {
|
||||
settingsProvider.setLibraryDensity(value);
|
||||
}
|
||||
},
|
||||
),
|
||||
trailing: const AppIcon(Symbols.chevron_right_rounded, fill: 1),
|
||||
onTap: () => _showViewModeDialog(),
|
||||
);
|
||||
},
|
||||
),
|
||||
Consumer<SettingsProvider>(
|
||||
builder: (context, settingsProvider, child) {
|
||||
return ListTile(
|
||||
focusNode: _focusTracker.get(_kEpisodePosterMode),
|
||||
leading: const AppIcon(Symbols.image_rounded, fill: 1),
|
||||
title: Text(t.settings.episodePosterMode),
|
||||
subtitle: Text(settingsProvider.episodePosterModeDisplayName),
|
||||
trailing: const AppIcon(Symbols.chevron_right_rounded, fill: 1),
|
||||
onTap: () => _showEpisodePosterModeDialog(),
|
||||
return Builder(
|
||||
builder: (tileContext) => ListTile(
|
||||
focusNode: _focusTracker.get(_kViewMode),
|
||||
leading: const AppIcon(Symbols.view_list_rounded, fill: 1),
|
||||
title: Text(t.settings.viewMode),
|
||||
subtitle: Text(
|
||||
settingsProvider.viewMode == settings.ViewMode.grid ? t.settings.gridView : t.settings.listView,
|
||||
),
|
||||
trailing: const AppIcon(Symbols.arrow_drop_down_rounded, fill: 1),
|
||||
onTap: () async {
|
||||
final value = await _showSettingsMenu<settings.ViewMode>(
|
||||
tileContext: tileContext,
|
||||
title: t.settings.viewMode,
|
||||
options: [
|
||||
_DialogOption(
|
||||
value: settings.ViewMode.grid,
|
||||
title: t.settings.gridView,
|
||||
subtitle: t.settings.gridViewDescription,
|
||||
),
|
||||
_DialogOption(
|
||||
value: settings.ViewMode.list,
|
||||
title: t.settings.listView,
|
||||
subtitle: t.settings.listViewDescription,
|
||||
),
|
||||
],
|
||||
currentValue: settingsProvider.viewMode,
|
||||
);
|
||||
if (value != null) {
|
||||
settingsProvider.setViewMode(value);
|
||||
}
|
||||
},
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
Consumer<SettingsProvider>(
|
||||
builder: (context, settingsProvider, child) {
|
||||
return Builder(
|
||||
builder: (tileContext) => ListTile(
|
||||
focusNode: _focusTracker.get(_kEpisodePosterMode),
|
||||
leading: const AppIcon(Symbols.image_rounded, fill: 1),
|
||||
title: Text(t.settings.episodePosterMode),
|
||||
subtitle: Text(settingsProvider.episodePosterModeDisplayName),
|
||||
trailing: const AppIcon(Symbols.arrow_drop_down_rounded, fill: 1),
|
||||
onTap: () async {
|
||||
final value = await _showSettingsMenu<settings.EpisodePosterMode>(
|
||||
tileContext: tileContext,
|
||||
title: t.settings.episodePosterMode,
|
||||
options: [
|
||||
_DialogOption(
|
||||
value: settings.EpisodePosterMode.seriesPoster,
|
||||
title: t.settings.seriesPoster,
|
||||
subtitle: t.settings.seriesPosterDescription,
|
||||
),
|
||||
_DialogOption(
|
||||
value: settings.EpisodePosterMode.seasonPoster,
|
||||
title: t.settings.seasonPoster,
|
||||
subtitle: t.settings.seasonPosterDescription,
|
||||
),
|
||||
_DialogOption(
|
||||
value: settings.EpisodePosterMode.episodeThumbnail,
|
||||
title: t.settings.episodeThumbnail,
|
||||
subtitle: t.settings.episodeThumbnailDescription,
|
||||
),
|
||||
],
|
||||
currentValue: settingsProvider.episodePosterMode,
|
||||
);
|
||||
if (value != null) {
|
||||
settingsProvider.setEpisodePosterMode(value);
|
||||
}
|
||||
},
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
@@ -472,13 +595,33 @@ class _SettingsScreenState extends State<SettingsScreen> with FocusableTab {
|
||||
),
|
||||
),
|
||||
if (Platform.isAndroid)
|
||||
ListTile(
|
||||
focusNode: _focusTracker.get(_kPlayerBackend),
|
||||
leading: const AppIcon(Symbols.play_circle_rounded, fill: 1),
|
||||
title: Text(t.settings.playerBackend),
|
||||
subtitle: Text(_useExoPlayer ? t.settings.exoPlayerDescription : t.settings.mpvDescription),
|
||||
trailing: const AppIcon(Symbols.chevron_right_rounded, fill: 1),
|
||||
onTap: () => _showPlayerBackendDialog(),
|
||||
Builder(
|
||||
builder: (tileContext) => ListTile(
|
||||
focusNode: _focusTracker.get(_kPlayerBackend),
|
||||
leading: const AppIcon(Symbols.play_circle_rounded, fill: 1),
|
||||
title: Text(t.settings.playerBackend),
|
||||
subtitle: Text(_useExoPlayer ? t.settings.exoPlayerDescription : t.settings.mpvDescription),
|
||||
trailing: const AppIcon(Symbols.arrow_drop_down_rounded, fill: 1),
|
||||
onTap: () async {
|
||||
final value = await _showSettingsMenu<bool>(
|
||||
tileContext: tileContext,
|
||||
title: t.settings.playerBackend,
|
||||
options: [
|
||||
_DialogOption(
|
||||
value: true,
|
||||
title: t.settings.exoPlayer,
|
||||
subtitle: t.settings.exoPlayerDescription,
|
||||
),
|
||||
_DialogOption(value: false, title: t.settings.mpv, subtitle: t.settings.mpvDescription),
|
||||
],
|
||||
currentValue: _useExoPlayer,
|
||||
);
|
||||
if (value != null) {
|
||||
setState(() => _useExoPlayer = value);
|
||||
await _settingsService.setUseExoPlayer(value);
|
||||
}
|
||||
},
|
||||
),
|
||||
),
|
||||
ListTile(
|
||||
focusNode: _focusTracker.get(_kExternalPlayer),
|
||||
@@ -552,13 +695,45 @@ class _SettingsScreenState extends State<SettingsScreen> with FocusableTab {
|
||||
await _settingsService.setTunneledPlayback(value);
|
||||
},
|
||||
),
|
||||
ListTile(
|
||||
focusNode: _focusTracker.get(_kBufferSize),
|
||||
leading: const AppIcon(Symbols.memory_rounded, fill: 1),
|
||||
title: Text(t.settings.bufferSize),
|
||||
subtitle: Text(_bufferSize == 0 ? t.settings.bufferSizeAuto : t.settings.bufferSizeMB(size: _bufferSize.toString())),
|
||||
trailing: const AppIcon(Symbols.chevron_right_rounded, fill: 1),
|
||||
onTap: () => _showBufferSizeDialog(),
|
||||
Builder(
|
||||
builder: (tileContext) => ListTile(
|
||||
focusNode: _focusTracker.get(_kBufferSize),
|
||||
leading: const AppIcon(Symbols.memory_rounded, fill: 1),
|
||||
title: Text(t.settings.bufferSize),
|
||||
subtitle: Text(
|
||||
_bufferSize == 0 ? t.settings.bufferSizeAuto : t.settings.bufferSizeMB(size: _bufferSize.toString()),
|
||||
),
|
||||
trailing: const AppIcon(Symbols.arrow_drop_down_rounded, fill: 1),
|
||||
onTap: () async {
|
||||
final bufferOptions = [0, 64, 128, 256, 512, 1024];
|
||||
final value = await _showSettingsMenu<int>(
|
||||
tileContext: tileContext,
|
||||
title: t.settings.bufferSize,
|
||||
options: bufferOptions
|
||||
.map(
|
||||
(size) =>
|
||||
_DialogOption(value: size, title: size == 0 ? t.settings.bufferSizeAuto : '${size}MB'),
|
||||
)
|
||||
.toList(),
|
||||
currentValue: _bufferSize,
|
||||
);
|
||||
if (value != null) {
|
||||
setState(() {
|
||||
_bufferSize = value;
|
||||
_settingsService.setBufferSize(value);
|
||||
});
|
||||
if (Platform.isAndroid && value > 0) {
|
||||
final heapMB = await PlayerAndroid.getHeapSize();
|
||||
if (heapMB > 0 && value > heapMB ~/ 4 && mounted) {
|
||||
showAppSnackBar(
|
||||
context,
|
||||
t.settings.bufferSizeWarning(heap: heapMB.toString(), size: value.toString()),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
),
|
||||
),
|
||||
ListTile(
|
||||
focusNode: _focusTracker.get(_kSubtitleStyling),
|
||||
@@ -1115,113 +1290,73 @@ class _SettingsScreenState extends State<SettingsScreen> with FocusableTab {
|
||||
);
|
||||
}
|
||||
|
||||
void _showThemeDialog(ThemeProvider themeProvider) {
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (BuildContext context) {
|
||||
return AlertDialog(
|
||||
title: Text(t.settings.theme),
|
||||
content: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
ListTile(
|
||||
leading: AppIcon(
|
||||
themeProvider.themeMode == settings.ThemeMode.system
|
||||
? Symbols.radio_button_checked_rounded
|
||||
: Symbols.radio_button_unchecked_rounded,
|
||||
fill: 1,
|
||||
),
|
||||
title: Text(t.settings.systemTheme),
|
||||
subtitle: Text(t.settings.systemThemeDescription),
|
||||
onTap: () {
|
||||
themeProvider.setThemeMode(settings.ThemeMode.system);
|
||||
Navigator.pop(context);
|
||||
},
|
||||
),
|
||||
ListTile(
|
||||
leading: AppIcon(
|
||||
themeProvider.themeMode == settings.ThemeMode.light
|
||||
? Symbols.radio_button_checked_rounded
|
||||
: Symbols.radio_button_unchecked_rounded,
|
||||
fill: 1,
|
||||
),
|
||||
title: Text(t.settings.lightTheme),
|
||||
onTap: () {
|
||||
themeProvider.setThemeMode(settings.ThemeMode.light);
|
||||
Navigator.pop(context);
|
||||
},
|
||||
),
|
||||
ListTile(
|
||||
leading: AppIcon(
|
||||
themeProvider.themeMode == settings.ThemeMode.dark
|
||||
? Symbols.radio_button_checked_rounded
|
||||
: Symbols.radio_button_unchecked_rounded,
|
||||
fill: 1,
|
||||
),
|
||||
title: Text(t.settings.darkTheme),
|
||||
onTap: () {
|
||||
themeProvider.setThemeMode(settings.ThemeMode.dark);
|
||||
Navigator.pop(context);
|
||||
},
|
||||
),
|
||||
ListTile(
|
||||
leading: AppIcon(
|
||||
themeProvider.themeMode == settings.ThemeMode.oled
|
||||
? Symbols.radio_button_checked_rounded
|
||||
: Symbols.radio_button_unchecked_rounded,
|
||||
fill: 1,
|
||||
),
|
||||
title: Text(t.settings.oledTheme),
|
||||
subtitle: Text(t.settings.oledThemeDescription),
|
||||
onTap: () {
|
||||
themeProvider.setThemeMode(settings.ThemeMode.oled);
|
||||
Navigator.pop(context);
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
actions: [TextButton(onPressed: () => Navigator.pop(context), child: Text(t.common.cancel))],
|
||||
);
|
||||
},
|
||||
/// Shows a platform-adaptive settings menu: popup dropdown on desktop/TV,
|
||||
/// bottom sheet on mobile.
|
||||
Future<T?> _showSettingsMenu<T>({
|
||||
required BuildContext tileContext,
|
||||
required String title,
|
||||
required List<_DialogOption<T>> options,
|
||||
required T currentValue,
|
||||
}) {
|
||||
final useBottomSheet = Platform.isIOS || Platform.isAndroid;
|
||||
final focusFirstItem = InputModeTracker.isKeyboardMode(context);
|
||||
|
||||
if (useBottomSheet) {
|
||||
return _showSettingsMenuSheet<T>(
|
||||
title: title,
|
||||
options: options,
|
||||
currentValue: currentValue,
|
||||
focusFirstItem: focusFirstItem,
|
||||
);
|
||||
} else {
|
||||
return _showSettingsMenuPopup<T>(
|
||||
tileContext: tileContext,
|
||||
options: options,
|
||||
currentValue: currentValue,
|
||||
focusFirstItem: focusFirstItem,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// Mobile path: bottom sheet via OverlaySheetController.showAdaptive
|
||||
Future<T?> _showSettingsMenuSheet<T>({
|
||||
required String title,
|
||||
required List<_DialogOption<T>> options,
|
||||
required T currentValue,
|
||||
required bool focusFirstItem,
|
||||
}) {
|
||||
return OverlaySheetController.showAdaptive<T>(
|
||||
context,
|
||||
showDragHandle: true,
|
||||
builder: (context) => _SettingsMenuSheet<T>(
|
||||
title: title,
|
||||
options: options,
|
||||
currentValue: currentValue,
|
||||
focusFirstItem: focusFirstItem,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
void _showBufferSizeDialog() {
|
||||
final options = [0, 64, 128, 256, 512, 1024];
|
||||
/// Desktop/TV path: positioned popup dropdown
|
||||
Future<T?> _showSettingsMenuPopup<T>({
|
||||
required BuildContext tileContext,
|
||||
required List<_DialogOption<T>> options,
|
||||
required T currentValue,
|
||||
required bool focusFirstItem,
|
||||
}) {
|
||||
final renderBox = tileContext.findRenderObject() as RenderBox;
|
||||
final position = renderBox.localToGlobal(Offset.zero);
|
||||
final tileSize = renderBox.size;
|
||||
|
||||
showDialog(
|
||||
return showDialog<T>(
|
||||
context: context,
|
||||
builder: (BuildContext context) {
|
||||
return AlertDialog(
|
||||
title: Text(t.settings.bufferSize),
|
||||
content: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: options.map((size) {
|
||||
return ListTile(
|
||||
leading: AppIcon(
|
||||
_bufferSize == size ? Symbols.radio_button_checked_rounded : Symbols.radio_button_unchecked_rounded,
|
||||
fill: 1,
|
||||
),
|
||||
title: Text(size == 0 ? t.settings.bufferSizeAuto : '${size}MB'),
|
||||
onTap: () async {
|
||||
setState(() {
|
||||
_bufferSize = size;
|
||||
_settingsService.setBufferSize(size);
|
||||
});
|
||||
Navigator.pop(context);
|
||||
if (Platform.isAndroid && size > 0) {
|
||||
final heapMB = await PlayerAndroid.getHeapSize();
|
||||
if (heapMB > 0 && size > heapMB ~/ 4 && mounted) {
|
||||
showAppSnackBar(this.context, t.settings.bufferSizeWarning(heap: heapMB.toString(), size: size.toString()));
|
||||
}
|
||||
}
|
||||
},
|
||||
);
|
||||
}).toList(),
|
||||
),
|
||||
actions: [TextButton(onPressed: () => Navigator.pop(context), child: Text(t.common.cancel))],
|
||||
);
|
||||
},
|
||||
barrierColor: Colors.transparent,
|
||||
builder: (context) => _SettingsMenuPopup<T>(
|
||||
position: Offset(position.dx + tileSize.width, position.dy + tileSize.height),
|
||||
options: options,
|
||||
currentValue: currentValue,
|
||||
focusFirstItem: focusFirstItem,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1482,53 +1617,6 @@ class _SettingsScreenState extends State<SettingsScreen> with FocusableTab {
|
||||
);
|
||||
}
|
||||
|
||||
void _showPlayerBackendDialog() {
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (BuildContext context) {
|
||||
return AlertDialog(
|
||||
title: Text(t.settings.playerBackend),
|
||||
content: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
ListTile(
|
||||
leading: AppIcon(
|
||||
_useExoPlayer ? Symbols.radio_button_checked_rounded : Symbols.radio_button_unchecked_rounded,
|
||||
fill: 1,
|
||||
),
|
||||
title: Text(t.settings.exoPlayer),
|
||||
subtitle: Text(t.settings.exoPlayerDescription),
|
||||
onTap: () async {
|
||||
setState(() {
|
||||
_useExoPlayer = true;
|
||||
});
|
||||
await _settingsService.setUseExoPlayer(true);
|
||||
if (context.mounted) Navigator.pop(context);
|
||||
},
|
||||
),
|
||||
ListTile(
|
||||
leading: AppIcon(
|
||||
!_useExoPlayer ? Symbols.radio_button_checked_rounded : Symbols.radio_button_unchecked_rounded,
|
||||
fill: 1,
|
||||
),
|
||||
title: Text(t.settings.mpv),
|
||||
subtitle: Text(t.settings.mpvDescription),
|
||||
onTap: () async {
|
||||
setState(() {
|
||||
_useExoPlayer = false;
|
||||
});
|
||||
await _settingsService.setUseExoPlayer(false);
|
||||
if (context.mounted) Navigator.pop(context);
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
actions: [TextButton(onPressed: () => Navigator.pop(context), child: Text(t.common.cancel))],
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
void _showKeyboardShortcutsDialog() {
|
||||
if (_keyboardService == null) return;
|
||||
|
||||
@@ -1546,11 +1634,7 @@ class _SettingsScreenState extends State<SettingsScreen> with FocusableTab {
|
||||
title: Text(t.settings.clearCache),
|
||||
content: Text(t.settings.clearCacheDescription),
|
||||
actions: [
|
||||
TextButton(
|
||||
autofocus: true,
|
||||
onPressed: () => Navigator.pop(context),
|
||||
child: Text(t.common.cancel),
|
||||
),
|
||||
TextButton(autofocus: true, onPressed: () => Navigator.pop(context), child: Text(t.common.cancel)),
|
||||
TextButton(
|
||||
onPressed: () async {
|
||||
final navigator = Navigator.of(context);
|
||||
@@ -1576,11 +1660,7 @@ class _SettingsScreenState extends State<SettingsScreen> with FocusableTab {
|
||||
title: Text(t.settings.resetSettings),
|
||||
content: Text(t.settings.resetSettingsDescription),
|
||||
actions: [
|
||||
TextButton(
|
||||
autofocus: true,
|
||||
onPressed: () => Navigator.pop(context),
|
||||
child: Text(t.common.cancel),
|
||||
),
|
||||
TextButton(autofocus: true, onPressed: () => Navigator.pop(context), child: Text(t.common.cancel)),
|
||||
TextButton(
|
||||
onPressed: () async {
|
||||
final navigator = Navigator.of(context);
|
||||
@@ -1635,50 +1715,6 @@ class _SettingsScreenState extends State<SettingsScreen> with FocusableTab {
|
||||
}
|
||||
}
|
||||
|
||||
void _showLanguageDialog() {
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (BuildContext context) {
|
||||
return AlertDialog(
|
||||
title: Text(t.settings.language),
|
||||
content: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: AppLocale.values.map((locale) {
|
||||
final isSelected = LocaleSettings.currentLocale == locale;
|
||||
return ListTile(
|
||||
title: Text(_getLanguageDisplayName(locale)),
|
||||
leading: AppIcon(
|
||||
isSelected ? Symbols.radio_button_checked_rounded : Symbols.radio_button_unchecked_rounded,
|
||||
fill: 1,
|
||||
color: isSelected ? Theme.of(context).colorScheme.primary : null,
|
||||
),
|
||||
tileColor: isSelected ? Theme.of(context).colorScheme.primaryContainer.withValues(alpha: 0.3) : null,
|
||||
onTap: () async {
|
||||
// Save the locale to settings
|
||||
await _settingsService.setAppLocale(locale);
|
||||
|
||||
// Set the locale immediately
|
||||
LocaleSettings.setLocale(locale);
|
||||
|
||||
// Close dialog
|
||||
if (context.mounted) {
|
||||
Navigator.pop(context);
|
||||
}
|
||||
|
||||
// Trigger app-wide rebuild by restarting the app
|
||||
if (context.mounted) {
|
||||
_restartApp();
|
||||
}
|
||||
},
|
||||
);
|
||||
}).toList(),
|
||||
),
|
||||
actions: [TextButton(onPressed: () => Navigator.pop(context), child: Text(t.common.cancel))],
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
void _restartApp() {
|
||||
// Navigate to the root and remove all previous routes
|
||||
Navigator.pushNamedAndRemoveUntil(context, '/', (route) => false);
|
||||
@@ -1738,11 +1774,7 @@ class _SettingsScreenState extends State<SettingsScreen> with FocusableTab {
|
||||
],
|
||||
),
|
||||
actions: [
|
||||
TextButton(
|
||||
autofocus: true,
|
||||
onPressed: () => Navigator.pop(context),
|
||||
child: Text(t.common.close),
|
||||
),
|
||||
TextButton(autofocus: true, onPressed: () => Navigator.pop(context), child: Text(t.common.close)),
|
||||
FilledButton(
|
||||
onPressed: () async {
|
||||
final url = Uri.parse(_updateInfo!['releaseUrl']);
|
||||
@@ -1758,117 +1790,212 @@ class _SettingsScreenState extends State<SettingsScreen> with FocusableTab {
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// Generic option selection dialog for settings with SettingsProvider
|
||||
void _showOptionSelectionDialog<T>({
|
||||
required String title,
|
||||
required List<_DialogOption<T>> options,
|
||||
required T Function(SettingsProvider) getCurrentValue,
|
||||
required Future<void> Function(T value, SettingsProvider provider) onSelect,
|
||||
}) {
|
||||
final settingsProvider = context.read<SettingsProvider>();
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (BuildContext context) {
|
||||
return Consumer<SettingsProvider>(
|
||||
builder: (context, provider, child) {
|
||||
final currentValue = getCurrentValue(provider);
|
||||
return AlertDialog(
|
||||
title: Text(title),
|
||||
content: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: options.map((option) {
|
||||
return ListTile(
|
||||
/// Bottom sheet content for settings menu (mobile)
|
||||
class _SettingsMenuSheet<T> extends StatefulWidget {
|
||||
final String title;
|
||||
final List<_DialogOption<T>> options;
|
||||
final T currentValue;
|
||||
final bool focusFirstItem;
|
||||
|
||||
const _SettingsMenuSheet({
|
||||
required this.title,
|
||||
required this.options,
|
||||
required this.currentValue,
|
||||
this.focusFirstItem = false,
|
||||
});
|
||||
|
||||
@override
|
||||
State<_SettingsMenuSheet<T>> createState() => _SettingsMenuSheetState<T>();
|
||||
}
|
||||
|
||||
class _SettingsMenuSheetState<T> extends State<_SettingsMenuSheet<T>> {
|
||||
late final FocusNode _initialFocusNode;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_initialFocusNode = FocusNode(debugLabel: 'SettingsMenuSheetInitialFocus');
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_initialFocusNode.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.fromLTRB(16, 4, 16, 8),
|
||||
child: Text(
|
||||
widget.title,
|
||||
style: Theme.of(context).textTheme.titleMedium,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
),
|
||||
Flexible(
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
...widget.options.asMap().entries.map((entry) {
|
||||
final index = entry.key;
|
||||
final option = entry.value;
|
||||
final isSelected = widget.currentValue == option.value;
|
||||
return FocusableListTile(
|
||||
focusNode: index == 0 && widget.focusFirstItem ? _initialFocusNode : null,
|
||||
dense: true,
|
||||
leading: AppIcon(
|
||||
currentValue == option.value
|
||||
? Symbols.radio_button_checked_rounded
|
||||
: Symbols.radio_button_unchecked_rounded,
|
||||
isSelected ? Symbols.radio_button_checked_rounded : Symbols.radio_button_unchecked_rounded,
|
||||
fill: 1,
|
||||
),
|
||||
title: Text(option.title),
|
||||
subtitle: option.subtitle != null ? Text(option.subtitle!) : null,
|
||||
onTap: () async {
|
||||
await onSelect(option.value, settingsProvider);
|
||||
if (context.mounted) Navigator.pop(context);
|
||||
},
|
||||
onTap: () => OverlaySheetController.closeAdaptive(context, option.value),
|
||||
);
|
||||
}).toList(),
|
||||
}),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// Positioned popup menu for settings menu (desktop/TV)
|
||||
class _SettingsMenuPopup<T> extends StatefulWidget {
|
||||
final Offset position;
|
||||
final List<_DialogOption<T>> options;
|
||||
final T currentValue;
|
||||
final bool focusFirstItem;
|
||||
|
||||
const _SettingsMenuPopup({
|
||||
required this.position,
|
||||
required this.options,
|
||||
required this.currentValue,
|
||||
this.focusFirstItem = false,
|
||||
});
|
||||
|
||||
@override
|
||||
State<_SettingsMenuPopup<T>> createState() => _SettingsMenuPopupState<T>();
|
||||
}
|
||||
|
||||
class _SettingsMenuPopupState<T> extends State<_SettingsMenuPopup<T>> {
|
||||
late final FocusNode _initialFocusNode;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_initialFocusNode = FocusNode(debugLabel: 'SettingsMenuPopupInitialFocus');
|
||||
if (widget.focusFirstItem) {
|
||||
FocusUtils.requestFocusAfterBuild(this, _initialFocusNode);
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_initialFocusNode.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final screenSize = MediaQuery.of(context).size;
|
||||
const menuWidth = 280.0;
|
||||
const edgePadding = 8.0;
|
||||
|
||||
// Right-align: position.dx is the tile's right edge
|
||||
final left = (widget.position.dx - menuWidth).clamp(edgePadding, screenSize.width - menuWidth - edgePadding);
|
||||
|
||||
final estimatedHeight = widget.options.length * 56.0 + 16;
|
||||
final spaceBelow = screenSize.height - widget.position.dy - edgePadding;
|
||||
final spaceAbove = widget.position.dy - edgePadding;
|
||||
|
||||
final double top;
|
||||
final double maxHeight;
|
||||
if (estimatedHeight <= spaceBelow) {
|
||||
top = widget.position.dy;
|
||||
maxHeight = spaceBelow;
|
||||
} else if (spaceAbove > spaceBelow) {
|
||||
final menuHeight = estimatedHeight.clamp(0.0, spaceAbove);
|
||||
top = widget.position.dy - menuHeight;
|
||||
maxHeight = menuHeight;
|
||||
} else {
|
||||
top = widget.position.dy;
|
||||
maxHeight = spaceBelow;
|
||||
}
|
||||
|
||||
return FocusScope(
|
||||
autofocus: false,
|
||||
child: Focus(
|
||||
canRequestFocus: false,
|
||||
skipTraversal: true,
|
||||
onKeyEvent: (node, event) {
|
||||
if (SelectKeyUpSuppressor.consumeIfSuppressed(event)) {
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
if (BackKeyUpSuppressor.consumeIfSuppressed(event)) {
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
return KeyEventResult.ignored;
|
||||
},
|
||||
child: Stack(
|
||||
children: [
|
||||
Positioned.fill(
|
||||
child: GestureDetector(
|
||||
onTap: () => Navigator.pop(context),
|
||||
behavior: HitTestBehavior.opaque,
|
||||
child: Container(color: Colors.transparent),
|
||||
),
|
||||
actions: [TextButton(onPressed: () => Navigator.pop(context), child: Text(t.common.cancel))],
|
||||
);
|
||||
},
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
void _showLibraryDensityDialog() {
|
||||
_showOptionSelectionDialog<settings.LibraryDensity>(
|
||||
title: t.settings.libraryDensity,
|
||||
options: [
|
||||
_DialogOption(
|
||||
value: settings.LibraryDensity.compact,
|
||||
title: t.settings.compact,
|
||||
subtitle: t.settings.compactDescription,
|
||||
),
|
||||
Positioned(
|
||||
left: left,
|
||||
top: top,
|
||||
child: Material(
|
||||
elevation: 8,
|
||||
color: Color.alphaBlend(
|
||||
Theme.of(context).colorScheme.onSurface.withValues(alpha: 0.08),
|
||||
Theme.of(context).colorScheme.surface,
|
||||
),
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
clipBehavior: Clip.antiAlias,
|
||||
child: ConstrainedBox(
|
||||
constraints: BoxConstraints(minWidth: menuWidth, maxWidth: menuWidth, maxHeight: maxHeight),
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: widget.options.asMap().entries.map((entry) {
|
||||
final index = entry.key;
|
||||
final option = entry.value;
|
||||
final isSelected = widget.currentValue == option.value;
|
||||
return FocusableListTile(
|
||||
focusNode: index == 0 && widget.focusFirstItem ? _initialFocusNode : null,
|
||||
dense: true,
|
||||
leading: AppIcon(
|
||||
isSelected ? Symbols.radio_button_checked_rounded : Symbols.radio_button_unchecked_rounded,
|
||||
fill: 1,
|
||||
),
|
||||
title: Text(option.title),
|
||||
subtitle: option.subtitle != null ? Text(option.subtitle!) : null,
|
||||
onTap: () => Navigator.pop(context, option.value),
|
||||
);
|
||||
}).toList(),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
_DialogOption(
|
||||
value: settings.LibraryDensity.normal,
|
||||
title: t.settings.normal,
|
||||
subtitle: t.settings.normalDescription,
|
||||
),
|
||||
_DialogOption(
|
||||
value: settings.LibraryDensity.comfortable,
|
||||
title: t.settings.comfortable,
|
||||
subtitle: t.settings.comfortableDescription,
|
||||
),
|
||||
],
|
||||
getCurrentValue: (p) => p.libraryDensity,
|
||||
onSelect: (value, provider) => provider.setLibraryDensity(value),
|
||||
);
|
||||
}
|
||||
|
||||
void _showViewModeDialog() {
|
||||
_showOptionSelectionDialog<settings.ViewMode>(
|
||||
title: t.settings.viewMode,
|
||||
options: [
|
||||
_DialogOption(
|
||||
value: settings.ViewMode.grid,
|
||||
title: t.settings.gridView,
|
||||
subtitle: t.settings.gridViewDescription,
|
||||
),
|
||||
_DialogOption(
|
||||
value: settings.ViewMode.list,
|
||||
title: t.settings.listView,
|
||||
subtitle: t.settings.listViewDescription,
|
||||
),
|
||||
],
|
||||
getCurrentValue: (p) => p.viewMode,
|
||||
onSelect: (value, provider) => provider.setViewMode(value),
|
||||
);
|
||||
}
|
||||
|
||||
void _showEpisodePosterModeDialog() {
|
||||
_showOptionSelectionDialog<settings.EpisodePosterMode>(
|
||||
title: t.settings.episodePosterMode,
|
||||
options: [
|
||||
_DialogOption(
|
||||
value: settings.EpisodePosterMode.seriesPoster,
|
||||
title: t.settings.seriesPoster,
|
||||
subtitle: t.settings.seriesPosterDescription,
|
||||
),
|
||||
_DialogOption(
|
||||
value: settings.EpisodePosterMode.seasonPoster,
|
||||
title: t.settings.seasonPoster,
|
||||
subtitle: t.settings.seasonPosterDescription,
|
||||
),
|
||||
_DialogOption(
|
||||
value: settings.EpisodePosterMode.episodeThumbnail,
|
||||
title: t.settings.episodeThumbnail,
|
||||
subtitle: t.settings.episodeThumbnailDescription,
|
||||
),
|
||||
],
|
||||
getCurrentValue: (p) => p.episodePosterMode,
|
||||
onSelect: (value, provider) => provider.setEpisodePosterMode(value),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -70,6 +70,18 @@ import '../i18n/strings.g.dart';
|
||||
import '../watch_together/providers/watch_together_provider.dart';
|
||||
import '../watch_together/widgets/watch_together_overlay.dart';
|
||||
|
||||
Future<void> _setWakelock(bool enabled) async {
|
||||
try {
|
||||
if (enabled) {
|
||||
await WakelockPlus.enable();
|
||||
} else {
|
||||
await WakelockPlus.disable();
|
||||
}
|
||||
} catch (e) {
|
||||
appLogger.w('Wakelock ${enabled ? 'enable' : 'disable'} failed: $e');
|
||||
}
|
||||
}
|
||||
|
||||
class VideoPlayerScreen extends StatefulWidget {
|
||||
final PlexMetadata metadata;
|
||||
final AudioTrack? preferredAudioTrack;
|
||||
@@ -144,6 +156,7 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
StreamSubscription<bool>? _mediaControlsPlayingSubscription;
|
||||
StreamSubscription<Duration>? _mediaControlsPositionSubscription;
|
||||
StreamSubscription<double>? _mediaControlsRateSubscription;
|
||||
StreamSubscription<bool>? _mediaControlsSeekableSubscription;
|
||||
bool _isReplacingWithVideo = false; // Flag to skip orientation restoration during video-to-video navigation
|
||||
bool _isDisposingForNavigation = false;
|
||||
bool _waitingForExternalSubsTrackSelection = false;
|
||||
@@ -344,36 +357,15 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
if (_shouldSkipForPip) break;
|
||||
// Clear media controls when app truly goes to background
|
||||
// (we don't support background playback)
|
||||
OsMediaControls.clear();
|
||||
_mediaControlsManager?.clear();
|
||||
// Disable wakelock when app goes to background
|
||||
WakelockPlus.disable();
|
||||
_setWakelock(false);
|
||||
appLogger.d('Media controls cleared and wakelock disabled due to app being paused/backgrounded');
|
||||
break;
|
||||
case AppLifecycleState.resumed:
|
||||
// Restore media controls and wakelock when app is resumed
|
||||
if (_isPlayerInitialized && mounted) {
|
||||
// Re-enable wakelock since we're back in the video player
|
||||
WakelockPlus.enable();
|
||||
|
||||
// Restore media metadata (only in online mode - requires client for artwork URLs)
|
||||
if (!widget.isOffline && _mediaControlsManager != null) {
|
||||
final client = _getClientForMetadata(context);
|
||||
_mediaControlsManager!.updateMetadata(
|
||||
metadata: widget.metadata,
|
||||
client: client,
|
||||
duration: widget.metadata.duration != null ? Duration(milliseconds: widget.metadata.duration!) : null,
|
||||
);
|
||||
}
|
||||
|
||||
// Resume playback if it was playing before going inactive
|
||||
if (_wasPlayingBeforeInactive && player != null) {
|
||||
player!.play();
|
||||
_wasPlayingBeforeInactive = false;
|
||||
appLogger.d('Video resumed after returning from inactive state');
|
||||
}
|
||||
|
||||
_updateMediaControlsPlaybackState();
|
||||
appLogger.d('Media controls restored and wakelock re-enabled on app resume');
|
||||
unawaited(_restoreMediaControlsAfterResume());
|
||||
}
|
||||
break;
|
||||
case AppLifecycleState.detached:
|
||||
@@ -553,7 +545,7 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
}
|
||||
|
||||
// Enable wakelock to prevent screen from turning off during playback
|
||||
WakelockPlus.enable();
|
||||
_setWakelock(true);
|
||||
appLogger.d('Wakelock enabled for video playback');
|
||||
}
|
||||
|
||||
@@ -767,7 +759,10 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
}
|
||||
} else if (event is SeekEvent) {
|
||||
appLogger.d('Media control: Seek event received to ${event.position}');
|
||||
player?.seek(event.position);
|
||||
final currentPlayer = player;
|
||||
if (currentPlayer != null) {
|
||||
unawaited(currentPlayer.seek(clampSeekPosition(currentPlayer, event.position)));
|
||||
}
|
||||
} else if (event is NextTrackEvent) {
|
||||
appLogger.d('Media control: Next track event received');
|
||||
if (_nextEpisode != null) {
|
||||
@@ -790,15 +785,7 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
|
||||
if (!mounted) return;
|
||||
|
||||
// Set controls enabled based on content type
|
||||
final playbackState = context.read<PlaybackStateProvider>();
|
||||
final isEpisode = widget.metadata.isEpisode;
|
||||
final isInPlaylist = playbackState.isPlaylistActive;
|
||||
|
||||
await _mediaControlsManager!.setControlsEnabled(
|
||||
canGoNext: isEpisode || isInPlaylist,
|
||||
canGoPrevious: isEpisode || isInPlaylist,
|
||||
);
|
||||
await _syncMediaControlsAvailability();
|
||||
|
||||
// Listen to playing state and update media controls
|
||||
_mediaControlsPlayingSubscription = player!.streams.playing.listen((isPlaying) {
|
||||
@@ -820,6 +807,10 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
DiscordRPCService.instance.updatePlaybackSpeed(rate);
|
||||
});
|
||||
|
||||
_mediaControlsSeekableSubscription = player!.streams.seekable.listen((_) {
|
||||
unawaited(_syncMediaControlsAvailability());
|
||||
});
|
||||
|
||||
// Start Discord Rich Presence for current media
|
||||
if (client != null) {
|
||||
DiscordRPCService.instance.startPlayback(widget.metadata, client);
|
||||
@@ -1062,6 +1053,14 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
? Duration(milliseconds: widget.metadata.viewOffset!)
|
||||
: null;
|
||||
|
||||
// Enable FFmpeg auto-reconnect for VOD streams (covers network drops up to 10 min)
|
||||
if (!widget.isOffline && !widget.isLive) {
|
||||
await player!.setProperty('stream-lavf-o-append', 'reconnect=1');
|
||||
await player!.setProperty('stream-lavf-o-append', 'reconnect_on_network_error=1');
|
||||
await player!.setProperty('stream-lavf-o-append', 'reconnect_streamed=1');
|
||||
await player!.setProperty('stream-lavf-o-append', '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).
|
||||
@@ -1515,12 +1514,14 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
receiver.onSeekForward = () async {
|
||||
if (player == null) return;
|
||||
final settings = await SettingsService.getInstance();
|
||||
seekWithClamping(player!, Duration(seconds: settings.getSeekTimeSmall()));
|
||||
final target = clampSeekPosition(player!, player!.state.position + Duration(seconds: settings.getSeekTimeSmall()));
|
||||
await player!.seek(target);
|
||||
};
|
||||
receiver.onSeekBackward = () async {
|
||||
if (player == null) return;
|
||||
final settings = await SettingsService.getInstance();
|
||||
seekWithClamping(player!, Duration(seconds: -settings.getSeekTimeSmall()));
|
||||
final target = clampSeekPosition(player!, player!.state.position - Duration(seconds: settings.getSeekTimeSmall()));
|
||||
await player!.seek(target);
|
||||
};
|
||||
receiver.onVolumeUp = () async {
|
||||
if (player == null) return;
|
||||
@@ -1745,6 +1746,7 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
_mediaControlsPlayingSubscription?.cancel();
|
||||
_mediaControlsPositionSubscription?.cancel();
|
||||
_mediaControlsRateSubscription?.cancel();
|
||||
_mediaControlsSeekableSubscription?.cancel();
|
||||
|
||||
// Cancel auto-play timer
|
||||
_autoPlayTimer?.cancel();
|
||||
@@ -1778,7 +1780,7 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
}
|
||||
|
||||
// Disable wakelock when leaving the video player
|
||||
WakelockPlus.disable();
|
||||
_setWakelock(false);
|
||||
appLogger.d('Wakelock disabled');
|
||||
|
||||
// Restore system UI and orientation preferences (skip if navigating to another video)
|
||||
@@ -1831,15 +1833,13 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
}
|
||||
|
||||
void _onPlayingStateChanged(bool isPlaying) {
|
||||
// Toggle wakelock based on playback state
|
||||
_setWakelock(isPlaying);
|
||||
|
||||
if (isPlaying) {
|
||||
WakelockPlus.enable();
|
||||
// Force a texture refresh on resume to unstick stale frames
|
||||
// (Linux/macOS texture registrars can miss frame-available
|
||||
// notifications after extended pause periods)
|
||||
player?.updateFrame();
|
||||
} else {
|
||||
WakelockPlus.disable();
|
||||
}
|
||||
|
||||
// Send timeline update when playback state changes
|
||||
@@ -1893,9 +1893,7 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
if (autoPlayEnabled) {
|
||||
_startAutoPlayTimer();
|
||||
}
|
||||
} else if (completed &&
|
||||
_nextEpisode == null &&
|
||||
!_completionTriggered) {
|
||||
} else if (completed && _nextEpisode == null && !_completionTriggered) {
|
||||
_completionTriggered = true;
|
||||
_handleBackButton();
|
||||
}
|
||||
@@ -1919,6 +1917,58 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
|
||||
// OS Media Controls Integration
|
||||
|
||||
Future<void> _syncMediaControlsAvailability() async {
|
||||
final manager = _mediaControlsManager;
|
||||
final currentPlayer = player;
|
||||
if (!mounted || manager == null || currentPlayer == null) return;
|
||||
|
||||
final playbackState = context.read<PlaybackStateProvider>();
|
||||
final canNavigateEpisodes = widget.metadata.isEpisode || playbackState.isPlaylistActive;
|
||||
final canSeek = !widget.isLive && currentPlayer.state.seekable;
|
||||
|
||||
if (!mounted || currentPlayer != player || manager != _mediaControlsManager) return;
|
||||
|
||||
await manager.setControlsEnabled(
|
||||
canGoNext: canNavigateEpisodes,
|
||||
canGoPrevious: canNavigateEpisodes,
|
||||
canSeek: canSeek,
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> _restoreMediaControlsAfterResume() async {
|
||||
if (!_isPlayerInitialized || !mounted) return;
|
||||
|
||||
_setWakelock(true);
|
||||
|
||||
final manager = _mediaControlsManager;
|
||||
final currentPlayer = player;
|
||||
if (manager != null && currentPlayer != null) {
|
||||
final client = widget.isOffline ? null : _getClientForMetadata(context);
|
||||
await manager.updateMetadata(
|
||||
metadata: widget.metadata,
|
||||
client: client,
|
||||
duration: widget.metadata.duration != null ? Duration(milliseconds: widget.metadata.duration!) : null,
|
||||
);
|
||||
await _syncMediaControlsAvailability();
|
||||
}
|
||||
|
||||
if (!mounted || currentPlayer != player || currentPlayer == null) return;
|
||||
|
||||
if (_wasPlayingBeforeInactive) {
|
||||
try {
|
||||
await currentPlayer.play();
|
||||
appLogger.d('Video resumed after returning from inactive state');
|
||||
} catch (e) {
|
||||
appLogger.w('Failed to resume playback after returning from inactive state', error: e);
|
||||
} finally {
|
||||
_wasPlayingBeforeInactive = false;
|
||||
}
|
||||
}
|
||||
|
||||
_updateMediaControlsPlaybackState();
|
||||
appLogger.d('Media controls restored and wakelock re-enabled on app resume');
|
||||
}
|
||||
|
||||
/// Wrapper method to update media controls playback state
|
||||
void _updateMediaControlsPlaybackState() {
|
||||
if (player == null) return;
|
||||
@@ -2090,6 +2140,7 @@ class VideoPlayerScreenState extends State<VideoPlayerScreen> with WidgetsBindin
|
||||
_startLiveTimelineUpdates();
|
||||
} catch (e) {
|
||||
appLogger.e('Failed to switch channel', error: e);
|
||||
if (mounted) showErrorSnackBar(context, e.toString());
|
||||
} finally {
|
||||
_isSwitchingChannel = false;
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ import '../i18n/strings.g.dart';
|
||||
import 'plex_client.dart';
|
||||
import 'settings_service.dart';
|
||||
|
||||
const _externalPlayerChannel = MethodChannel('app.plezy/external_player');
|
||||
const _externalPlayerChannel = MethodChannel('com.plezy/external_player');
|
||||
|
||||
class ExternalPlayerService {
|
||||
/// Launch an external player with either a pre-resolved [videoUrl] (e.g. local
|
||||
|
||||
@@ -153,8 +153,12 @@ class GamepadService with WindowListener {
|
||||
if (event.pressed) {
|
||||
onGamepadInput?.call();
|
||||
_setTraditionalFocusHighlight();
|
||||
key_sim.scheduleFrameIfIdle();
|
||||
}
|
||||
// Ensure a frame is scheduled so addPostFrameCallback-based key
|
||||
// simulation fires promptly. Without this, key-up events can be
|
||||
// delayed indefinitely when the app is idle, causing the long-press
|
||||
// timer to fire before the release is delivered.
|
||||
key_sim.scheduleFrameIfIdle();
|
||||
|
||||
final wasPressed = _pressedButtons.contains(event.button);
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import 'dart:async' show unawaited;
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
@@ -250,16 +251,20 @@ class KeyboardShortcutsService {
|
||||
_settingsService.setVolume(newVolume);
|
||||
break;
|
||||
case 'seek_forward':
|
||||
seekWithClamping(player, Duration(seconds: _seekTimeSmall));
|
||||
final fwdTarget = clampSeekPosition(player, player.state.position + Duration(seconds: _seekTimeSmall));
|
||||
unawaited(player.seek(fwdTarget));
|
||||
break;
|
||||
case 'seek_backward':
|
||||
seekWithClamping(player, Duration(seconds: -_seekTimeSmall));
|
||||
final bwdTarget = clampSeekPosition(player, player.state.position - Duration(seconds: _seekTimeSmall));
|
||||
unawaited(player.seek(bwdTarget));
|
||||
break;
|
||||
case 'seek_forward_large':
|
||||
seekWithClamping(player, Duration(seconds: _seekTimeLarge));
|
||||
final fwdLTarget = clampSeekPosition(player, player.state.position + Duration(seconds: _seekTimeLarge));
|
||||
unawaited(player.seek(fwdLTarget));
|
||||
break;
|
||||
case 'seek_backward_large':
|
||||
seekWithClamping(player, Duration(seconds: -_seekTimeLarge));
|
||||
final bwdLTarget = clampSeekPosition(player, player.state.position - Duration(seconds: _seekTimeLarge));
|
||||
unawaited(player.seek(bwdLTarget));
|
||||
break;
|
||||
case 'fullscreen_toggle':
|
||||
onToggleFullscreen?.call();
|
||||
|
||||
@@ -23,6 +23,7 @@ class MediaControlsManager {
|
||||
/// Cached control enabled state to avoid redundant platform calls
|
||||
bool? _lastCanGoNext;
|
||||
bool? _lastCanGoPrevious;
|
||||
bool? _lastCanSeek;
|
||||
|
||||
MediaControlsManager() {
|
||||
_throttledUpdate = throttle(
|
||||
@@ -109,27 +110,34 @@ class MediaControlsManager {
|
||||
/// - Episodes: Enable both if there are adjacent episodes
|
||||
/// - Playlist items: Enable based on playlist position
|
||||
/// - Movies: Usually disabled
|
||||
Future<void> setControlsEnabled({bool canGoNext = false, bool canGoPrevious = false}) async {
|
||||
// Skip if unchanged (avoid redundant platform calls)
|
||||
if (canGoNext == _lastCanGoNext && canGoPrevious == _lastCanGoPrevious) {
|
||||
return;
|
||||
}
|
||||
|
||||
_lastCanGoNext = canGoNext;
|
||||
_lastCanGoPrevious = canGoPrevious;
|
||||
|
||||
Future<void> setControlsEnabled({bool canGoNext = false, bool canGoPrevious = false, bool canSeek = false}) async {
|
||||
try {
|
||||
final controls = <MediaControl>[];
|
||||
if (canGoPrevious) controls.add(MediaControl.previous);
|
||||
if (canGoNext) controls.add(MediaControl.next);
|
||||
final controlsToEnable = <MediaControl>[];
|
||||
final controlsToDisable = <MediaControl>[];
|
||||
|
||||
if (controls.isNotEmpty) {
|
||||
await OsMediaControls.enableControls(controls);
|
||||
appLogger.d('Media controls enabled - Previous: $canGoPrevious, Next: $canGoNext');
|
||||
} else {
|
||||
await OsMediaControls.disableControls([MediaControl.previous, MediaControl.next]);
|
||||
appLogger.d('Media controls disabled');
|
||||
if (canGoPrevious != _lastCanGoPrevious) {
|
||||
(canGoPrevious ? controlsToEnable : controlsToDisable).add(MediaControl.previous);
|
||||
}
|
||||
if (canGoNext != _lastCanGoNext) {
|
||||
(canGoNext ? controlsToEnable : controlsToDisable).add(MediaControl.next);
|
||||
}
|
||||
if (canSeek != _lastCanSeek) {
|
||||
(canSeek ? controlsToEnable : controlsToDisable).add(MediaControl.seek);
|
||||
}
|
||||
|
||||
if (controlsToEnable.isEmpty && controlsToDisable.isEmpty) return;
|
||||
|
||||
if (controlsToEnable.isNotEmpty) {
|
||||
await OsMediaControls.enableControls(controlsToEnable);
|
||||
}
|
||||
if (controlsToDisable.isNotEmpty) {
|
||||
await OsMediaControls.disableControls(controlsToDisable);
|
||||
}
|
||||
|
||||
_lastCanGoNext = canGoNext;
|
||||
_lastCanGoPrevious = canGoPrevious;
|
||||
_lastCanSeek = canSeek;
|
||||
appLogger.d('Media controls updated - Previous: $canGoPrevious, Next: $canGoNext, Seek: $canSeek');
|
||||
} catch (e) {
|
||||
appLogger.w('Failed to set media controls enabled state', error: e);
|
||||
}
|
||||
@@ -142,6 +150,9 @@ class MediaControlsManager {
|
||||
try {
|
||||
await OsMediaControls.clear();
|
||||
_throttledUpdate.cancel();
|
||||
_lastCanGoNext = null;
|
||||
_lastCanGoPrevious = null;
|
||||
_lastCanSeek = null;
|
||||
appLogger.d('Media controls cleared');
|
||||
} catch (e) {
|
||||
appLogger.w('Failed to clear media controls', error: e);
|
||||
|
||||
@@ -5,7 +5,7 @@ import 'package:flutter/services.dart';
|
||||
import 'package:plezy/i18n/strings.g.dart';
|
||||
|
||||
class PipService {
|
||||
static const MethodChannel _channel = MethodChannel('app.plezy/pip');
|
||||
static const MethodChannel _channel = MethodChannel('com.plezy/pip');
|
||||
|
||||
/// PiP is only implemented natively on Android, iOS, and macOS.
|
||||
static bool get _isAvailable => Platform.isAndroid || Platform.isIOS || Platform.isMacOS;
|
||||
|
||||
@@ -815,15 +815,8 @@ class PlexServer {
|
||||
}
|
||||
|
||||
/// Returns true if the address is known to be unreachable from external
|
||||
/// clients (Docker bridge networks, IPv6 link-local, or all-zeros).
|
||||
/// clients (IPv6 link-local or all-zeros).
|
||||
static bool _isUnreachableAddress(String address) {
|
||||
// Docker bridge subnets (172.17.0.0/16, 172.18.0.0/16, etc.)
|
||||
// Docker uses 172.17-31.x.x by default.
|
||||
final dockerPattern = RegExp(r'^172\.(1[7-9]|2[0-9]|3[01])\.');
|
||||
if (dockerPattern.hasMatch(address)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// IPv6 all-zeros (::) or link-local (fe80::)
|
||||
final normalized = address.replaceAll('-', ':').toLowerCase();
|
||||
if (normalized == '::' || normalized == '0000:0000:0000:0000:0000:0000:0000:0000') {
|
||||
|
||||
@@ -2339,6 +2339,13 @@ class PlexClient {
|
||||
final container = _getMediaContainer(response);
|
||||
if (container == null) return null;
|
||||
|
||||
final containerStatus = container['status'];
|
||||
if (containerStatus != null && containerStatus != 0 && containerStatus != 200) {
|
||||
final msg = container['message'] ?? 'Unknown error';
|
||||
appLogger.w('Tune channel error: $msg (status: $containerStatus)');
|
||||
throw Exception(msg);
|
||||
}
|
||||
|
||||
// Metadata is nested: MediaSubscription[0].MediaGrabOperation[0].Metadata
|
||||
Map<String, dynamic>? metadataJson;
|
||||
final subscriptions = container['MediaSubscription'] as List?;
|
||||
@@ -2350,13 +2357,15 @@ class PlexClient {
|
||||
final nested = op['Metadata'];
|
||||
if (nested is Map<String, dynamic>) {
|
||||
metadataJson = nested;
|
||||
} else if (nested is List && nested.isNotEmpty) {
|
||||
metadataJson = nested.first as Map<String, dynamic>;
|
||||
}
|
||||
}
|
||||
}
|
||||
metadataJson ??= (container['Metadata'] as List?)?.firstOrNull as Map<String, dynamic>?;
|
||||
|
||||
if (metadataJson == null) {
|
||||
appLogger.w('Tune channel: no metadata in response');
|
||||
appLogger.w('Tune channel failed: ${container['message'] ?? 'no metadata'} (status: ${container['status']}, keys: ${container.keys.toList()})');
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -37,6 +37,7 @@ class ServerConnectionOrchestrator {
|
||||
required OfflineWatchSyncService syncService,
|
||||
String? clientIdentifier,
|
||||
Duration timeout = ConnectionTimeouts.connectAll,
|
||||
void Function(String serverId, bool success)? onServerStatus,
|
||||
}) async {
|
||||
appLogger.i('Connecting to ${servers.length} servers...');
|
||||
|
||||
@@ -44,6 +45,12 @@ class ServerConnectionOrchestrator {
|
||||
servers,
|
||||
clientIdentifier: clientIdentifier,
|
||||
timeout: timeout,
|
||||
onServerConnected: onServerStatus != null
|
||||
? (serverId, _) => onServerStatus(serverId, true)
|
||||
: null,
|
||||
onServerFailed: onServerStatus != null
|
||||
? (serverId, _) => onServerStatus(serverId, false)
|
||||
: null,
|
||||
);
|
||||
|
||||
PlexClient? firstClient;
|
||||
|
||||
@@ -45,12 +45,10 @@ class UpdateService {
|
||||
/// Call once at startup if [useNativeUpdater] is true.
|
||||
static Future<void> initNativeUpdater() async {
|
||||
if (_nativeUpdaterInitialized) return;
|
||||
_nativeUpdaterInitialized = true;
|
||||
|
||||
try {
|
||||
await autoUpdater.setFeedURL(_feedUrl);
|
||||
// 6 hours in seconds
|
||||
await autoUpdater.setScheduledCheckInterval(_checkCooldown.inSeconds);
|
||||
_nativeUpdaterInitialized = true;
|
||||
} catch (e) {
|
||||
_logger.e('Failed to initialize native auto updater: $e');
|
||||
}
|
||||
@@ -59,7 +57,10 @@ class UpdateService {
|
||||
/// Trigger a background update check via Sparkle/WinSparkle.
|
||||
/// Only shows UI if an update is found.
|
||||
static Future<void> checkForUpdatesNative({bool inBackground = true}) async {
|
||||
if (!_nativeUpdaterInitialized) await initNativeUpdater();
|
||||
if (!_nativeUpdaterInitialized) {
|
||||
await initNativeUpdater();
|
||||
if (!_nativeUpdaterInitialized) return;
|
||||
}
|
||||
try {
|
||||
await autoUpdater.checkForUpdates(inBackground: inBackground);
|
||||
} catch (e) {
|
||||
|
||||
@@ -9,7 +9,7 @@ import 'settings_service.dart' show EpisodePosterMode;
|
||||
|
||||
/// Service for syncing Plex "On Deck" content to Android TV's Watch Next row.
|
||||
class WatchNextService {
|
||||
static const MethodChannel _channel = MethodChannel('app.plezy/watch_next');
|
||||
static const MethodChannel _channel = MethodChannel('com.plezy/watch_next');
|
||||
|
||||
static final WatchNextService _instance = WatchNextService._internal();
|
||||
factory WatchNextService() => _instance;
|
||||
|
||||
@@ -1,23 +1,8 @@
|
||||
import '../mpv/mpv.dart';
|
||||
|
||||
/// Seeks by the given offset (can be positive or negative) while clamping
|
||||
/// the result between 0 and the video duration.
|
||||
/// Returns the clamped position that was seeked to.
|
||||
Duration seekWithClamping(Player player, Duration offset) {
|
||||
final currentPosition = player.state.position;
|
||||
Duration clampSeekPosition(Player player, Duration position) {
|
||||
final duration = player.state.duration;
|
||||
final newPosition = currentPosition + offset;
|
||||
|
||||
// Clamp between 0 and video duration
|
||||
Duration clampedPosition;
|
||||
if (newPosition.isNegative) {
|
||||
clampedPosition = Duration.zero;
|
||||
} else if (newPosition > duration) {
|
||||
clampedPosition = duration;
|
||||
} else {
|
||||
clampedPosition = newPosition;
|
||||
}
|
||||
|
||||
player.seek(clampedPosition);
|
||||
return clampedPosition;
|
||||
if (position.isNegative) return Duration.zero;
|
||||
if (duration > Duration.zero && position > duration) return duration;
|
||||
return position;
|
||||
}
|
||||
|
||||
@@ -50,10 +50,11 @@ extension ProviderExtensions on BuildContext {
|
||||
// If library doesn't have a serverId, fall back to first available server
|
||||
if (library.serverId == null) {
|
||||
final multiServerProvider = Provider.of<MultiServerProvider>(this, listen: false);
|
||||
if (!multiServerProvider.hasConnectedServers) {
|
||||
final serverId = multiServerProvider.onlineServerIds.firstOrNull;
|
||||
if (serverId == null) {
|
||||
throw Exception(t.errors.noClientAvailable);
|
||||
}
|
||||
return getClientForServer(multiServerProvider.onlineServerIds.first);
|
||||
return getClientForServer(serverId);
|
||||
}
|
||||
return getClientForServer(library.serverId!);
|
||||
}
|
||||
@@ -80,10 +81,11 @@ extension ProviderExtensions on BuildContext {
|
||||
/// Throws an exception if no servers are available
|
||||
PlexClient getFirstAvailableClient() {
|
||||
final multiServerProvider = Provider.of<MultiServerProvider>(this, listen: false);
|
||||
if (!multiServerProvider.hasConnectedServers) {
|
||||
final serverId = multiServerProvider.onlineServerIds.firstOrNull;
|
||||
if (serverId == null) {
|
||||
throw Exception(t.errors.noClientAvailable);
|
||||
}
|
||||
return getClientForServer(multiServerProvider.onlineServerIds.first);
|
||||
return getClientForServer(serverId);
|
||||
}
|
||||
|
||||
/// Get client for a serverId with fallback to first available server
|
||||
|
||||
@@ -172,7 +172,6 @@ class WatchTogetherPeerService with KeepaliveMixin {
|
||||
}
|
||||
|
||||
case 'message':
|
||||
final from = msg['from'] as String?;
|
||||
final payload = msg['payload'];
|
||||
if (payload != null) {
|
||||
try {
|
||||
|
||||
@@ -513,8 +513,8 @@ class _DownloadTreeItemState extends State<_DownloadTreeItem> {
|
||||
@override
|
||||
void didUpdateWidget(_DownloadTreeItem oldWidget) {
|
||||
super.didUpdateWidget(oldWidget);
|
||||
// Reinitialize focus nodes if action count might have changed
|
||||
if (oldWidget.node.status != widget.node.status) {
|
||||
// Reinitialize focus nodes if action count changed
|
||||
if (_getActionCount() != _buttonFocusNodes.length) {
|
||||
_disposeButtonFocusNodes();
|
||||
_initButtonFocusNodes();
|
||||
}
|
||||
|
||||
+219
-29
@@ -5,11 +5,14 @@ import 'package:plezy/utils/content_utils.dart';
|
||||
import 'package:plezy/widgets/app_icon.dart';
|
||||
import 'package:material_symbols_icons/symbols.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import '../focus/input_mode_tracker.dart';
|
||||
import '../models/plex_metadata.dart';
|
||||
import '../models/plex_playlist.dart';
|
||||
import '../providers/download_provider.dart';
|
||||
import '../services/download_storage_service.dart';
|
||||
import '../providers/settings_provider.dart';
|
||||
import '../screens/media_detail_screen.dart';
|
||||
import '../screens/season_detail_screen.dart';
|
||||
import '../services/settings_service.dart';
|
||||
import '../utils/provider_extensions.dart';
|
||||
import '../utils/formatters.dart';
|
||||
@@ -280,17 +283,24 @@ class MediaCardState extends State<MediaCard> {
|
||||
),
|
||||
const SizedBox(height: 2),
|
||||
// Title (flattened — no inner Column)
|
||||
Text(
|
||||
item is PlexPlaylist ? item.title : (item as PlexMetadata).displayTitle,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: const TextStyle(fontWeight: FontWeight.w600, fontSize: 13, height: 1.1),
|
||||
),
|
||||
if (item is PlexMetadata && _hasClickableTitle(item))
|
||||
_ClickableText(
|
||||
text: item.displayTitle,
|
||||
style: const TextStyle(fontWeight: FontWeight.w600, fontSize: 13, height: 1.1),
|
||||
onTap: () => _navigateToDetail(context, item, isOffline: widget.isOffline),
|
||||
)
|
||||
else
|
||||
Text(
|
||||
item is PlexPlaylist ? item.title : (item as PlexMetadata).displayTitle,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: const TextStyle(fontWeight: FontWeight.w600, fontSize: 13, height: 1.1),
|
||||
),
|
||||
// Subtitle
|
||||
if (item is PlexPlaylist)
|
||||
_MediaCardHelpers.buildPlaylistMeta(context, item)
|
||||
else if (item is PlexMetadata)
|
||||
_MediaCardHelpers.buildMetadataSubtitle(context, item),
|
||||
_MediaCardHelpers.buildMetadataSubtitle(context, item, isOffline: widget.isOffline),
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -455,6 +465,11 @@ class _MediaCardList extends StatelessWidget {
|
||||
parts.add('${metadata.year}');
|
||||
}
|
||||
|
||||
// Add edition title
|
||||
if (metadata.editionTitle != null) {
|
||||
parts.add(metadata.editionTitle!);
|
||||
}
|
||||
|
||||
// Add duration
|
||||
if (metadata.duration != null) {
|
||||
parts.add(formatDurationTextual(metadata.duration!));
|
||||
@@ -499,6 +514,33 @@ class _MediaCardList extends StatelessWidget {
|
||||
return null;
|
||||
}
|
||||
|
||||
Widget _buildEpisodeSubtitle(BuildContext context, PlexMetadata metadata) {
|
||||
final style = Theme.of(context).textTheme.bodySmall?.copyWith(
|
||||
color: tokens(context).textMuted.withValues(alpha: 0.85),
|
||||
fontSize: _subtitleFontSize,
|
||||
);
|
||||
final episodeTitle = metadata.displaySubtitle ?? metadata.title;
|
||||
final episodeNum = metadata.index != null ? ' E${metadata.index}' : '';
|
||||
return Row(
|
||||
children: [
|
||||
_ClickableText(
|
||||
text: 'S${metadata.parentIndex}',
|
||||
style: style,
|
||||
onTap: () => _navigateToSeason(context, metadata, isOffline: isOffline),
|
||||
),
|
||||
Text('$episodeNum · ', style: style),
|
||||
Expanded(
|
||||
child: Text(
|
||||
episodeTitle,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: style,
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final metadataLine = _buildMetadataLine();
|
||||
@@ -539,12 +581,19 @@ class _MediaCardList extends StatelessWidget {
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: [
|
||||
// Title
|
||||
Text(
|
||||
item.displayTitle,
|
||||
maxLines: 2,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: TextStyle(fontWeight: FontWeight.w600, fontSize: _titleFontSize, height: 1.2),
|
||||
),
|
||||
if (item is PlexMetadata && _hasClickableTitle(item as PlexMetadata))
|
||||
_ClickableText(
|
||||
text: item.displayTitle,
|
||||
style: TextStyle(fontWeight: FontWeight.w600, fontSize: _titleFontSize, height: 1.2),
|
||||
onTap: () => _navigateToDetail(context, item as PlexMetadata, isOffline: isOffline),
|
||||
)
|
||||
else
|
||||
Text(
|
||||
item.displayTitle,
|
||||
maxLines: 2,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: TextStyle(fontWeight: FontWeight.w600, fontSize: _titleFontSize, height: 1.2),
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
// Metadata info line (rating, duration, score, studio)
|
||||
if (metadataLine.isNotEmpty) ...[
|
||||
@@ -560,8 +609,11 @@ class _MediaCardList extends StatelessWidget {
|
||||
),
|
||||
const SizedBox(height: 2),
|
||||
],
|
||||
// Subtitle (S#E# or year/parent title)
|
||||
if (subtitle != null) ...[
|
||||
// Subtitle (S# · Episode Title, or year/parent title)
|
||||
if (item is PlexMetadata && (item as PlexMetadata).isEpisode && (item as PlexMetadata).parentIndex != null && (item as PlexMetadata).parentRatingKey != null) ...[
|
||||
_buildEpisodeSubtitle(context, item as PlexMetadata),
|
||||
const SizedBox(height: 4),
|
||||
] else if (subtitle != null) ...[
|
||||
Text(
|
||||
subtitle,
|
||||
maxLines: 1,
|
||||
@@ -712,7 +764,11 @@ class _MediaCardHelpers {
|
||||
}
|
||||
|
||||
/// Builds metadata subtitle (for collections, episodes, movies, shows)
|
||||
static Widget buildMetadataSubtitle(BuildContext context, PlexMetadata metadata) {
|
||||
static Widget buildMetadataSubtitle(BuildContext context, PlexMetadata metadata, {bool isOffline = false}) {
|
||||
final subtitleStyle = Theme.of(
|
||||
context,
|
||||
).textTheme.bodySmall?.copyWith(color: tokens(context).textMuted, fontSize: 11, height: 1.1);
|
||||
|
||||
// For collections, show item count
|
||||
if (metadata.mediaType == PlexMediaType.collection) {
|
||||
final count = metadata.childCount ?? metadata.leafCount;
|
||||
@@ -721,38 +777,63 @@ class _MediaCardHelpers {
|
||||
t.playlists.itemCount(count: count),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: Theme.of(
|
||||
context,
|
||||
).textTheme.bodySmall?.copyWith(color: tokens(context).textMuted, fontSize: 11, height: 1.1),
|
||||
style: subtitleStyle,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// For episodes, show "S# · Episode Title" with clickable season link
|
||||
if (metadata.isEpisode && metadata.parentIndex != null) {
|
||||
final episodeTitle = metadata.displaySubtitle ?? metadata.title;
|
||||
if (metadata.parentRatingKey != null) {
|
||||
return Row(
|
||||
children: [
|
||||
_ClickableText(
|
||||
text: 'S${metadata.parentIndex}',
|
||||
style: subtitleStyle,
|
||||
onTap: () => _navigateToSeason(context, metadata, isOffline: isOffline),
|
||||
),
|
||||
Text(' · ', style: subtitleStyle),
|
||||
Expanded(
|
||||
child: Text(
|
||||
episodeTitle,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: subtitleStyle,
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
return Text(
|
||||
'S${metadata.parentIndex} · $episodeTitle',
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: subtitleStyle,
|
||||
);
|
||||
}
|
||||
|
||||
// For other media types, show subtitle/parent/year
|
||||
if (metadata.displaySubtitle != null) {
|
||||
return Text(
|
||||
metadata.displaySubtitle!,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: Theme.of(
|
||||
context,
|
||||
).textTheme.bodySmall?.copyWith(color: tokens(context).textMuted, fontSize: 11, height: 1.1),
|
||||
style: subtitleStyle,
|
||||
);
|
||||
} else if (metadata.parentTitle != null) {
|
||||
return Text(
|
||||
metadata.parentTitle!,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: Theme.of(
|
||||
context,
|
||||
).textTheme.bodySmall?.copyWith(color: tokens(context).textMuted, fontSize: 11, height: 1.1),
|
||||
style: subtitleStyle,
|
||||
);
|
||||
} else if (metadata.year != null) {
|
||||
return Text(
|
||||
'${metadata.year}',
|
||||
style: Theme.of(
|
||||
context,
|
||||
).textTheme.bodySmall?.copyWith(color: tokens(context).textMuted, fontSize: 11, height: 1.1),
|
||||
metadata.editionTitle != null ? '${metadata.year} · ${metadata.editionTitle}' : '${metadata.year}',
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: subtitleStyle,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -845,6 +926,115 @@ class _MediaCardHelpers {
|
||||
}
|
||||
}
|
||||
|
||||
/// Whether this metadata item has a clickable title that navigates somewhere.
|
||||
/// Episodes/seasons navigate to their parent show; movies navigate to their detail page.
|
||||
bool _hasClickableTitle(PlexMetadata metadata) {
|
||||
if (metadata.isEpisode) return metadata.grandparentRatingKey != null;
|
||||
if (metadata.isSeason) return metadata.parentRatingKey != null;
|
||||
if (metadata.isMovie) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/// Navigate to season detail from episode metadata
|
||||
void _navigateToSeason(BuildContext context, PlexMetadata episode, {bool isOffline = false}) {
|
||||
if (episode.parentRatingKey == null) return;
|
||||
final seasonStub = PlexMetadata(
|
||||
ratingKey: episode.parentRatingKey!,
|
||||
key: '/library/metadata/${episode.parentRatingKey}',
|
||||
type: 'season',
|
||||
title: episode.parentTitle ?? 'Season ${episode.parentIndex ?? ''}',
|
||||
index: episode.parentIndex,
|
||||
parentRatingKey: episode.grandparentRatingKey,
|
||||
thumb: episode.parentThumb,
|
||||
serverId: episode.serverId,
|
||||
serverName: episode.serverName,
|
||||
);
|
||||
Navigator.push(context, MaterialPageRoute(builder: (_) => SeasonDetailScreen(season: seasonStub, isOffline: isOffline)));
|
||||
}
|
||||
|
||||
/// Navigate to the detail screen for a metadata item.
|
||||
/// For episodes/seasons: navigates to the parent show.
|
||||
/// For movies and other types: navigates to the item's own detail page.
|
||||
void _navigateToDetail(BuildContext context, PlexMetadata metadata, {bool isOffline = false}) {
|
||||
PlexMetadata target = metadata;
|
||||
|
||||
if (metadata.isEpisode && metadata.grandparentRatingKey != null) {
|
||||
target = PlexMetadata(
|
||||
ratingKey: metadata.grandparentRatingKey!,
|
||||
key: '/library/metadata/${metadata.grandparentRatingKey}',
|
||||
type: 'show',
|
||||
title: metadata.grandparentTitle ?? metadata.displayTitle,
|
||||
thumb: metadata.grandparentThumb,
|
||||
art: metadata.grandparentArt,
|
||||
serverId: metadata.serverId,
|
||||
serverName: metadata.serverName,
|
||||
);
|
||||
} else if (metadata.isSeason && metadata.parentRatingKey != null) {
|
||||
target = PlexMetadata(
|
||||
ratingKey: metadata.parentRatingKey!,
|
||||
key: '/library/metadata/${metadata.parentRatingKey}',
|
||||
type: 'show',
|
||||
title: metadata.grandparentTitle ?? metadata.parentTitle ?? metadata.displayTitle,
|
||||
thumb: metadata.grandparentThumb ?? metadata.parentThumb,
|
||||
art: metadata.grandparentArt,
|
||||
serverId: metadata.serverId,
|
||||
serverName: metadata.serverName,
|
||||
);
|
||||
}
|
||||
|
||||
Navigator.push(context, MaterialPageRoute(builder: (_) => MediaDetailScreen(metadata: target, isOffline: isOffline)));
|
||||
}
|
||||
|
||||
/// Text widget that shows hover underline + pointer cursor only in pointer mode.
|
||||
/// In keyboard/dpad mode, renders as plain text with no interaction.
|
||||
class _ClickableText extends StatefulWidget {
|
||||
final String text;
|
||||
final TextStyle? style;
|
||||
final VoidCallback onTap;
|
||||
|
||||
const _ClickableText({required this.text, this.style, required this.onTap});
|
||||
|
||||
@override
|
||||
State<_ClickableText> createState() => _ClickableTextState();
|
||||
}
|
||||
|
||||
class _ClickableTextState extends State<_ClickableText> {
|
||||
bool _isHovered = false;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final isKeyboard = InputModeTracker.isKeyboardMode(context);
|
||||
final baseStyle = widget.style ?? const TextStyle();
|
||||
|
||||
if (isKeyboard) {
|
||||
return Text(
|
||||
widget.text,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: baseStyle,
|
||||
);
|
||||
}
|
||||
|
||||
return MouseRegion(
|
||||
cursor: SystemMouseCursors.click,
|
||||
onEnter: (_) => setState(() => _isHovered = true),
|
||||
onExit: (_) => setState(() => _isHovered = false),
|
||||
child: GestureDetector(
|
||||
onTap: widget.onTap,
|
||||
child: Text(
|
||||
widget.text,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: baseStyle.copyWith(
|
||||
decoration: _isHovered ? TextDecoration.underline : null,
|
||||
decorationColor: baseStyle.color,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// Skeleton loader widget with subtle opacity pulse animation
|
||||
class SkeletonLoader extends StatefulWidget {
|
||||
final Widget? child;
|
||||
|
||||
@@ -343,16 +343,11 @@ class MediaContextMenuState extends State<MediaContextMenu> {
|
||||
}
|
||||
|
||||
try {
|
||||
final client = _getClientForItem();
|
||||
|
||||
if (!context.mounted) return;
|
||||
|
||||
// Check if we're in offline mode for watch actions
|
||||
final offlineModeProvider = context.read<OfflineModeProvider>();
|
||||
final isOffline = offlineModeProvider.isOffline;
|
||||
|
||||
switch (selected) {
|
||||
case 'watch':
|
||||
final isOffline = context.read<OfflineModeProvider>().isOffline;
|
||||
if (isOffline && metadata?.serverId != null) {
|
||||
// Offline mode: queue action for later sync (emits WatchStateEvent)
|
||||
final offlineWatch = context.read<OfflineWatchProvider>();
|
||||
@@ -365,13 +360,14 @@ class MediaContextMenuState extends State<MediaContextMenu> {
|
||||
// Pass metadata to emit WatchStateEvent for cross-screen updates
|
||||
await _executeAction(
|
||||
context,
|
||||
() => client.markAsWatched(metadata!.ratingKey, metadata: metadata),
|
||||
() => _getClientForItem().markAsWatched(metadata!.ratingKey, metadata: metadata),
|
||||
t.messages.markedAsWatched,
|
||||
);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'unwatch':
|
||||
final isOffline = context.read<OfflineModeProvider>().isOffline;
|
||||
if (isOffline && metadata?.serverId != null) {
|
||||
// Offline mode: queue action for later sync (emits WatchStateEvent)
|
||||
final offlineWatch = context.read<OfflineWatchProvider>();
|
||||
@@ -384,7 +380,7 @@ class MediaContextMenuState extends State<MediaContextMenu> {
|
||||
// Pass metadata to emit WatchStateEvent for cross-screen updates
|
||||
await _executeAction(
|
||||
context,
|
||||
() => client.markAsUnwatched(metadata!.ratingKey, metadata: metadata),
|
||||
() => _getClientForItem().markAsUnwatched(metadata!.ratingKey, metadata: metadata),
|
||||
t.messages.markedAsUnwatched,
|
||||
);
|
||||
}
|
||||
@@ -395,6 +391,7 @@ class MediaContextMenuState extends State<MediaContextMenu> {
|
||||
// This preserves the progression for partially watched items
|
||||
// and doesn't mark unwatched next episodes as watched
|
||||
try {
|
||||
final client = _getClientForItem();
|
||||
await client.removeFromOnDeck(metadata!.ratingKey);
|
||||
if (context.mounted) {
|
||||
showSuccessSnackBar(context, t.messages.removedFromContinueWatching);
|
||||
@@ -414,7 +411,14 @@ class MediaContextMenuState extends State<MediaContextMenu> {
|
||||
|
||||
case 'rate':
|
||||
if (context.mounted) {
|
||||
await _showRatingSheet(context, metadata!, client);
|
||||
try {
|
||||
final client = _getClientForItem();
|
||||
await _showRatingSheet(context, metadata!, client);
|
||||
} catch (e) {
|
||||
if (context.mounted) {
|
||||
showErrorSnackBar(context, t.messages.errorLoading(error: e.toString()));
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -1420,6 +1424,10 @@ class _FocusablePopupMenuState extends State<_FocusablePopupMenu> {
|
||||
top: top,
|
||||
child: Material(
|
||||
elevation: 8,
|
||||
color: Color.alphaBlend(
|
||||
Theme.of(context).colorScheme.onSurface.withValues(alpha: 0.08),
|
||||
Theme.of(context).colorScheme.surface,
|
||||
),
|
||||
borderRadius: BorderRadius.circular(tokens(context).radiusSm),
|
||||
clipBehavior: Clip.antiAlias,
|
||||
child: ConstrainedBox(
|
||||
|
||||
@@ -83,6 +83,9 @@ class DesktopVideoControls extends StatefulWidget {
|
||||
/// Called when content strip visibility changes
|
||||
final ValueChanged<bool>? onContentStripVisibilityChanged;
|
||||
|
||||
/// Called when a seek operation completes successfully.
|
||||
final Function(Duration position)? onSeekCompleted;
|
||||
|
||||
const DesktopVideoControls({
|
||||
super.key,
|
||||
required this.player,
|
||||
@@ -115,6 +118,7 @@ class DesktopVideoControls extends StatefulWidget {
|
||||
this.onCancelAutoHide,
|
||||
this.onStartAutoHide,
|
||||
this.onContentStripVisibilityChanged,
|
||||
this.onSeekCompleted,
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -489,12 +493,17 @@ class DesktopVideoControlsState extends State<DesktopVideoControls> {
|
||||
// Content strip (TV/dpad only) — replaces normal controls
|
||||
if (_contentStripVisible && widget.useDpadNavigation)
|
||||
Container(
|
||||
padding: const EdgeInsets.only(left: 8, right: 8, bottom: 8),
|
||||
decoration: const BoxDecoration(
|
||||
padding: const EdgeInsets.only(left: 8, right: 8, bottom: 8, top: 32),
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
begin: Alignment.topCenter,
|
||||
end: Alignment.bottomCenter,
|
||||
colors: [Colors.transparent, Colors.black87],
|
||||
colors: [
|
||||
Colors.transparent,
|
||||
Colors.black.withValues(alpha: 0.65),
|
||||
Colors.black.withValues(alpha: 0.7),
|
||||
],
|
||||
stops: const [0.0, 0.42, 1.0],
|
||||
),
|
||||
),
|
||||
child: Column(
|
||||
@@ -510,6 +519,7 @@ class DesktopVideoControlsState extends State<DesktopVideoControls> {
|
||||
serverId: widget.serverId,
|
||||
showQueueTab: widget.showQueueTab,
|
||||
onQueueItemSelected: widget.onQueueItemSelected,
|
||||
onSeekCompleted: widget.onSeekCompleted,
|
||||
useFocusNavigation: true,
|
||||
onNavigateUp: _onContentStripNavigateUp,
|
||||
onFocusActivity: widget.onFocusActivity,
|
||||
@@ -788,6 +798,7 @@ class DesktopVideoControlsState extends State<DesktopVideoControls> {
|
||||
chapters: widget.chapters,
|
||||
chaptersLoaded: widget.chaptersLoaded,
|
||||
trackControlsState: _trackControlsState,
|
||||
onSeekCompleted: widget.onSeekCompleted,
|
||||
focusNodes: _trackControlFocusNodes,
|
||||
onFocusChange: _onFocusChange,
|
||||
onNavigateLeft: navigateFromTrackToVolume,
|
||||
|
||||
@@ -245,20 +245,35 @@ class _MobileVideoControlsState extends State<MobileVideoControls>
|
||||
ignoring: t < 0.5,
|
||||
child: Opacity(
|
||||
opacity: (t * 2).clamp(0.0, 1.0),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
const Icon(Symbols.keyboard_arrow_down_rounded, color: Colors.white38, size: 20),
|
||||
const SizedBox(height: 4),
|
||||
ContentStrip(
|
||||
player: widget.player,
|
||||
chapters: widget.chapters,
|
||||
chaptersLoaded: widget.chaptersLoaded,
|
||||
serverId: widget.serverId,
|
||||
showQueueTab: widget.showQueueTab,
|
||||
onQueueItemSelected: widget.onQueueItemSelected,
|
||||
child: Container(
|
||||
padding: const EdgeInsets.only(top: 32),
|
||||
decoration: BoxDecoration(
|
||||
gradient: LinearGradient(
|
||||
begin: Alignment.topCenter,
|
||||
end: Alignment.bottomCenter,
|
||||
colors: [
|
||||
Colors.transparent,
|
||||
Colors.black.withValues(alpha: 0.65),
|
||||
Colors.black.withValues(alpha: 0.7),
|
||||
],
|
||||
stops: const [0.0, 0.42, 1.0],
|
||||
),
|
||||
],
|
||||
),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
const Icon(Symbols.keyboard_arrow_down_rounded, color: Colors.white38, size: 20),
|
||||
const SizedBox(height: 4),
|
||||
ContentStrip(
|
||||
player: widget.player,
|
||||
chapters: widget.chapters,
|
||||
chaptersLoaded: widget.chaptersLoaded,
|
||||
serverId: widget.serverId,
|
||||
showQueueTab: widget.showQueueTab,
|
||||
onQueueItemSelected: widget.onQueueItemSelected,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import 'dart:async' show unawaited;
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:plezy/widgets/app_icon.dart';
|
||||
import 'package:material_symbols_icons/symbols.dart';
|
||||
@@ -9,6 +11,7 @@ import '../../../services/download_storage_service.dart';
|
||||
import '../../../models/plex_media_info.dart';
|
||||
import '../../../theme/mono_tokens.dart';
|
||||
import '../../../utils/formatters.dart';
|
||||
import '../../../utils/player_utils.dart';
|
||||
import '../../../utils/provider_extensions.dart';
|
||||
import '../../../widgets/focusable_list_tile.dart';
|
||||
import '../../../widgets/overlay_sheet.dart';
|
||||
@@ -21,6 +24,7 @@ class ChapterSheet extends StatefulWidget {
|
||||
final List<PlexChapter> chapters;
|
||||
final bool chaptersLoaded;
|
||||
final String? serverId; // Server ID for the metadata these chapters belong to
|
||||
final Function(Duration position)? onSeekCompleted;
|
||||
|
||||
const ChapterSheet({
|
||||
super.key,
|
||||
@@ -28,6 +32,7 @@ class ChapterSheet extends StatefulWidget {
|
||||
required this.chapters,
|
||||
required this.chaptersLoaded,
|
||||
this.serverId,
|
||||
this.onSeekCompleted,
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -35,6 +40,15 @@ class ChapterSheet extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _ChapterSheetState extends State<ChapterSheet> {
|
||||
Future<void> _handleChapterTap(Duration position) async {
|
||||
final clamped = clampSeekPosition(widget.player, position);
|
||||
await widget.player.seek(clamped);
|
||||
if (mounted) {
|
||||
widget.onSeekCompleted?.call(clamped);
|
||||
OverlaySheetController.of(context).close();
|
||||
}
|
||||
}
|
||||
|
||||
/// Get the PlexClient for chapters, or null if unavailable (offline mode)
|
||||
PlexClient? _tryGetClientForChapters(BuildContext context) {
|
||||
return context.tryGetClientForServer(widget.serverId);
|
||||
@@ -138,8 +152,7 @@ class _ChapterSheetState extends State<ChapterSheet> {
|
||||
? AppIcon(Symbols.play_circle_rounded, fill: 1, color: Theme.of(context).colorScheme.primary)
|
||||
: null,
|
||||
onTap: () {
|
||||
widget.player.seek(chapter.startTime);
|
||||
OverlaySheetController.of(context).close();
|
||||
unawaited(_handleChapterTap(chapter.startTime));
|
||||
},
|
||||
);
|
||||
},
|
||||
|
||||
@@ -137,7 +137,7 @@ class QueueSheet extends StatelessWidget {
|
||||
return item.grandparentTitle!;
|
||||
}
|
||||
if (item.year != null) {
|
||||
return '${item.year}';
|
||||
return item.editionTitle != null ? '${item.year} · ${item.editionTitle}' : '${item.year}';
|
||||
}
|
||||
return item.type;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import 'dart:async' show StreamSubscription, Timer;
|
||||
import 'dart:async' show StreamSubscription, Timer, unawaited;
|
||||
import 'dart:io' show Platform;
|
||||
import 'dart:typed_data';
|
||||
|
||||
@@ -255,6 +255,8 @@ class _PlexVideoControlsState extends State<PlexVideoControls> with WindowListen
|
||||
StreamSubscription<bool>? _playingSubscription;
|
||||
// Completed subscription to show controls when video ends
|
||||
StreamSubscription<bool>? _completedSubscription;
|
||||
// Position subscription for marker tracking
|
||||
StreamSubscription<Duration>? _positionSubscription;
|
||||
// Auto-skip state
|
||||
bool _autoSkipIntro = false;
|
||||
bool _autoSkipCredits = false;
|
||||
@@ -287,7 +289,9 @@ class _PlexVideoControlsState extends State<PlexVideoControls> with WindowListen
|
||||
_focusNode = FocusNode();
|
||||
_skipMarkerFocusNode = FocusNode(debugLabel: 'SkipMarkerButton');
|
||||
_seekThrottle = throttle(
|
||||
(Duration pos) => widget.player.seek(pos),
|
||||
(Duration pos) {
|
||||
unawaited(_seekToPosition(pos, notifyCompletion: false));
|
||||
},
|
||||
const Duration(milliseconds: 200),
|
||||
leading: true,
|
||||
trailing: true,
|
||||
@@ -356,7 +360,7 @@ class _PlexVideoControlsState extends State<PlexVideoControls> with WindowListen
|
||||
}
|
||||
|
||||
void _listenToPosition() {
|
||||
widget.player.streams.position.listen((position) {
|
||||
_positionSubscription = widget.player.streams.position.listen((position) {
|
||||
if (_markers.isEmpty || !_markersLoaded) {
|
||||
return;
|
||||
}
|
||||
@@ -436,14 +440,14 @@ class _PlexVideoControlsState extends State<PlexVideoControls> with WindowListen
|
||||
});
|
||||
}
|
||||
|
||||
void _skipMarker() {
|
||||
Future<void> _skipMarker() async {
|
||||
if (_currentMarker != null) {
|
||||
final endTime = _currentMarker!.endTime;
|
||||
await _seekToPosition(endTime);
|
||||
if (!mounted) return;
|
||||
setState(() {
|
||||
_currentMarker = null;
|
||||
});
|
||||
widget.player.seek(endTime);
|
||||
widget.onSeekCompleted?.call(endTime);
|
||||
}
|
||||
_cancelAutoSkipTimer();
|
||||
_cancelSkipButtonDismissTimer();
|
||||
@@ -474,11 +478,7 @@ class _PlexVideoControlsState extends State<PlexVideoControls> with WindowListen
|
||||
|
||||
if (timer.tick >= totalTicks) {
|
||||
timer.cancel();
|
||||
try {
|
||||
_performAutoSkip();
|
||||
} catch (e) {
|
||||
// Handle any errors during skip gracefully
|
||||
}
|
||||
_performAutoSkip();
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -522,7 +522,7 @@ class _PlexVideoControlsState extends State<PlexVideoControls> with WindowListen
|
||||
if (showNextEpisode) {
|
||||
widget.onNext?.call();
|
||||
} else {
|
||||
_skipMarker();
|
||||
unawaited(_skipMarker());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -655,6 +655,7 @@ class _PlexVideoControlsState extends State<PlexVideoControls> with WindowListen
|
||||
_seekThrottle.cancel();
|
||||
_playingSubscription?.cancel();
|
||||
_completedSubscription?.cancel();
|
||||
_positionSubscription?.cancel();
|
||||
_focusNode.dispose();
|
||||
_skipMarkerFocusNode.dispose();
|
||||
// Restore original rate if long-press was active when disposed
|
||||
@@ -1070,36 +1071,25 @@ class _PlexVideoControlsState extends State<PlexVideoControls> with WindowListen
|
||||
chapters: _chapters,
|
||||
chaptersLoaded: _chaptersLoaded,
|
||||
trackControlsState: trackControlsState,
|
||||
onSeekCompleted: widget.onSeekCompleted,
|
||||
hideChaptersAndQueue: hideChaptersAndQueue,
|
||||
);
|
||||
}
|
||||
|
||||
void _seekToPreviousChapter() => _seekToChapter(forward: false);
|
||||
void _seekToPreviousChapter() => unawaited(_seekToChapter(forward: false));
|
||||
|
||||
void _seekToNextChapter() => _seekToChapter(forward: true);
|
||||
void _seekToNextChapter() => unawaited(_seekToChapter(forward: true));
|
||||
|
||||
void _seekByTime({required bool forward}) {
|
||||
Future<void> _seekByTime({required bool forward}) async {
|
||||
final delta = Duration(seconds: forward ? _seekTimeSmall : -_seekTimeSmall);
|
||||
final newPosition = seekWithClamping(widget.player, delta);
|
||||
widget.onSeekCompleted?.call(newPosition);
|
||||
await _seekByOffset(delta);
|
||||
}
|
||||
|
||||
void _seekToChapter({required bool forward}) {
|
||||
Future<void> _seekToChapter({required bool forward}) async {
|
||||
if (_chapters.isEmpty) {
|
||||
// No chapters - seek by configured amount
|
||||
final delta = Duration(seconds: forward ? _seekTimeSmall : -_seekTimeSmall);
|
||||
final duration = widget.player.state.duration;
|
||||
final unclamped = widget.player.state.position + delta;
|
||||
Duration newPosition;
|
||||
if (unclamped < Duration.zero) {
|
||||
newPosition = Duration.zero;
|
||||
} else if (unclamped > duration) {
|
||||
newPosition = duration;
|
||||
} else {
|
||||
newPosition = unclamped;
|
||||
}
|
||||
seekWithClamping(widget.player, delta);
|
||||
widget.onSeekCompleted?.call(newPosition);
|
||||
await _seekByOffset(delta);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1110,7 +1100,7 @@ class _PlexVideoControlsState extends State<PlexVideoControls> with WindowListen
|
||||
for (final chapter in _chapters) {
|
||||
final chapterStart = chapter.startTimeOffset ?? 0;
|
||||
if (chapterStart > currentPositionMs) {
|
||||
_seekToPosition(Duration(milliseconds: chapterStart));
|
||||
await _seekToPosition(Duration(milliseconds: chapterStart));
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -1120,18 +1110,30 @@ class _PlexVideoControlsState extends State<PlexVideoControls> with WindowListen
|
||||
final chapterStart = _chapters[i].startTimeOffset ?? 0;
|
||||
if (currentPositionMs > chapterStart + 3000) {
|
||||
// If more than 3 seconds into chapter, go to start of current chapter
|
||||
_seekToPosition(Duration(milliseconds: chapterStart));
|
||||
await _seekToPosition(Duration(milliseconds: chapterStart));
|
||||
return;
|
||||
}
|
||||
}
|
||||
// If at start of first chapter, go to beginning
|
||||
_seekToPosition(Duration.zero);
|
||||
await _seekToPosition(Duration.zero);
|
||||
}
|
||||
}
|
||||
|
||||
void _seekToPosition(Duration position) {
|
||||
widget.player.seek(position);
|
||||
widget.onSeekCompleted?.call(position);
|
||||
Future<void> _seekToPosition(Duration position, {bool notifyCompletion = true}) async {
|
||||
final clamped = clampSeekPosition(widget.player, position);
|
||||
await widget.player.seek(clamped);
|
||||
if (notifyCompletion && mounted) {
|
||||
widget.onSeekCompleted?.call(clamped);
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> _seekByOffset(Duration delta, {bool notifyCompletion = true}) async {
|
||||
final target = widget.player.state.position + delta;
|
||||
final clamped = clampSeekPosition(widget.player, target);
|
||||
await widget.player.seek(clamped);
|
||||
if (notifyCompletion && mounted) {
|
||||
widget.onSeekCompleted?.call(clamped);
|
||||
}
|
||||
}
|
||||
|
||||
/// Throttled seek for timeline slider - executes immediately then throttles to 200ms
|
||||
@@ -1140,8 +1142,7 @@ class _PlexVideoControlsState extends State<PlexVideoControls> with WindowListen
|
||||
/// Finalizes the seek when user stops scrubbing the timeline
|
||||
void _finalizeSeek(Duration position) {
|
||||
_seekThrottle.cancel();
|
||||
widget.player.seek(position);
|
||||
widget.onSeekCompleted?.call(position);
|
||||
unawaited(_seekToPosition(position));
|
||||
}
|
||||
|
||||
/// Handle tap in skip zone for desktop mode
|
||||
@@ -1179,10 +1180,10 @@ class _PlexVideoControlsState extends State<PlexVideoControls> with WindowListen
|
||||
|
||||
if (_showDoubleTapFeedback && _lastDoubleTapWasForward == isForward) {
|
||||
// Stacking skip - add to accumulated
|
||||
_handleStackingSkip(isForward: isForward);
|
||||
unawaited(_handleStackingSkip(isForward: isForward));
|
||||
} else {
|
||||
// First double-tap - initiate skip
|
||||
_handleDoubleTapSkip(isForward: isForward);
|
||||
unawaited(_handleDoubleTapSkip(isForward: isForward));
|
||||
}
|
||||
} else {
|
||||
// First tap - record timestamp and start timer for single-tap action
|
||||
@@ -1199,7 +1200,7 @@ class _PlexVideoControlsState extends State<PlexVideoControls> with WindowListen
|
||||
}
|
||||
|
||||
/// Handle stacking skip - add to accumulated skip when feedback is active
|
||||
void _handleStackingSkip({required bool isForward}) {
|
||||
Future<void> _handleStackingSkip({required bool isForward}) async {
|
||||
if (!widget.canControl) return;
|
||||
|
||||
// Add to accumulated skip
|
||||
@@ -1207,10 +1208,7 @@ class _PlexVideoControlsState extends State<PlexVideoControls> with WindowListen
|
||||
|
||||
// Calculate and perform seek
|
||||
final delta = Duration(seconds: isForward ? _seekTimeSmall : -_seekTimeSmall);
|
||||
final newPosition = seekWithClamping(widget.player, delta);
|
||||
|
||||
// Notify Watch Together
|
||||
widget.onSeekCompleted?.call(newPosition);
|
||||
await _seekByOffset(delta);
|
||||
|
||||
// Refresh feedback (extends timer, updates display)
|
||||
_showSkipFeedback(isForward: isForward);
|
||||
@@ -1220,32 +1218,15 @@ class _PlexVideoControlsState extends State<PlexVideoControls> with WindowListen
|
||||
}
|
||||
|
||||
/// Handle double-tap skip forward or backward
|
||||
void _handleDoubleTapSkip({required bool isForward}) {
|
||||
Future<void> _handleDoubleTapSkip({required bool isForward}) async {
|
||||
// Ignore if user cannot control playback
|
||||
if (!widget.canControl) return;
|
||||
|
||||
// Reset accumulated skip for new gesture
|
||||
_accumulatedSkipSeconds = _seekTimeSmall;
|
||||
|
||||
// Calculate the new position (clamped to valid range)
|
||||
final currentPosition = widget.player.state.position;
|
||||
final duration = widget.player.state.duration;
|
||||
final delta = Duration(seconds: isForward ? _seekTimeSmall : -_seekTimeSmall);
|
||||
final unclamped = currentPosition + delta;
|
||||
Duration newPosition;
|
||||
if (unclamped < Duration.zero) {
|
||||
newPosition = Duration.zero;
|
||||
} else if (unclamped > duration) {
|
||||
newPosition = duration;
|
||||
} else {
|
||||
newPosition = unclamped;
|
||||
}
|
||||
|
||||
// Perform the seek
|
||||
seekWithClamping(widget.player, delta);
|
||||
|
||||
// Notify Watch Together
|
||||
widget.onSeekCompleted?.call(newPosition);
|
||||
await _seekByOffset(delta);
|
||||
|
||||
// Show visual feedback
|
||||
_showSkipFeedback(isForward: isForward);
|
||||
@@ -1736,7 +1717,7 @@ class _PlexVideoControlsState extends State<PlexVideoControls> with WindowListen
|
||||
if (widget.canControl) {
|
||||
final isForward =
|
||||
key == LogicalKeyboardKey.mediaFastForward || key == LogicalKeyboardKey.mediaSkipForward;
|
||||
_seekToChapter(forward: isForward);
|
||||
unawaited(_seekToChapter(forward: isForward));
|
||||
}
|
||||
_showControlsWithFocus(requestFocus: _videoPlayerNavigationEnabled);
|
||||
return KeyEventResult.handled;
|
||||
@@ -1746,7 +1727,7 @@ class _PlexVideoControlsState extends State<PlexVideoControls> with WindowListen
|
||||
// Uses same behavior as seek keys: chapter navigation or time-based seek
|
||||
if (event is KeyDownEvent && _isMediaTrackKey(key)) {
|
||||
if (widget.canControl) {
|
||||
_seekToChapter(forward: key == LogicalKeyboardKey.mediaTrackNext);
|
||||
unawaited(_seekToChapter(forward: key == LogicalKeyboardKey.mediaTrackNext));
|
||||
}
|
||||
_showControlsWithFocus(requestFocus: _videoPlayerNavigationEnabled);
|
||||
return KeyEventResult.handled;
|
||||
@@ -2080,8 +2061,8 @@ class _PlexVideoControlsState extends State<PlexVideoControls> with WindowListen
|
||||
seekTimeSmall: _seekTimeSmall,
|
||||
onSeekToPreviousChapter: _seekToPreviousChapter,
|
||||
onSeekToNextChapter: _seekToNextChapter,
|
||||
onSeekBackward: () => _seekByTime(forward: false),
|
||||
onSeekForward: () => _seekByTime(forward: true),
|
||||
onSeekBackward: () => unawaited(_seekByTime(forward: false)),
|
||||
onSeekForward: () => unawaited(_seekByTime(forward: true)),
|
||||
onSeek: _throttledSeek,
|
||||
onSeekEnd: _finalizeSeek,
|
||||
getReplayIcon: getReplayIcon,
|
||||
@@ -2099,6 +2080,7 @@ class _PlexVideoControlsState extends State<PlexVideoControls> with WindowListen
|
||||
onQueueItemSelected: playbackState.isQueueActive ? _onQueueItemSelected : null,
|
||||
onCancelAutoHide: () => _hideTimer?.cancel(),
|
||||
onStartAutoHide: _startHideTimer,
|
||||
onSeekCompleted: widget.onSeekCompleted,
|
||||
onContentStripVisibilityChanged: (visible) {
|
||||
setState(() => _isContentStripVisible = visible);
|
||||
if (visible) {
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import 'dart:async' show unawaited;
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:material_symbols_icons/symbols.dart';
|
||||
@@ -12,8 +14,8 @@ import '../../../models/plex_metadata.dart';
|
||||
import '../../../providers/playback_state_provider.dart';
|
||||
import '../../../services/download_storage_service.dart';
|
||||
import '../../../services/plex_client.dart';
|
||||
import '../../../theme/mono_tokens.dart';
|
||||
import '../../../utils/formatters.dart';
|
||||
import '../../../utils/player_utils.dart';
|
||||
import '../../../utils/provider_extensions.dart';
|
||||
import '../../app_icon.dart';
|
||||
import '../../plex_optimized_image.dart';
|
||||
@@ -26,6 +28,7 @@ class ContentStrip extends StatefulWidget {
|
||||
final String? serverId;
|
||||
final bool showQueueTab;
|
||||
final Function(PlexMetadata)? onQueueItemSelected;
|
||||
final Function(Duration position)? onSeekCompleted;
|
||||
|
||||
/// Whether to use dpad/focus-based navigation (TV mode).
|
||||
/// When true, no tab bar is shown — pages are navigated via UP/DOWN.
|
||||
@@ -45,6 +48,7 @@ class ContentStrip extends StatefulWidget {
|
||||
this.serverId,
|
||||
this.showQueueTab = false,
|
||||
this.onQueueItemSelected,
|
||||
this.onSeekCompleted,
|
||||
this.useFocusNavigation = false,
|
||||
this.onNavigateUp,
|
||||
this.onFocusActivity,
|
||||
@@ -120,6 +124,14 @@ class ContentStripState extends State<ContentStrip> {
|
||||
return null;
|
||||
}
|
||||
|
||||
Future<void> _handleChapterTap(Duration position) async {
|
||||
final clamped = clampSeekPosition(widget.player, position);
|
||||
await widget.player.seek(clamped);
|
||||
if (mounted) {
|
||||
widget.onSeekCompleted?.call(clamped);
|
||||
}
|
||||
}
|
||||
|
||||
int? _getCurrentQueueIndex() {
|
||||
try {
|
||||
final playbackState = context.read<PlaybackStateProvider>();
|
||||
@@ -155,13 +167,7 @@ class ContentStripState extends State<ContentStrip> {
|
||||
});
|
||||
}
|
||||
|
||||
KeyEventResult _handleFocusItemKeyEvent(
|
||||
FocusNode node,
|
||||
KeyEvent event,
|
||||
int index,
|
||||
int totalItems,
|
||||
_StripTab page,
|
||||
) {
|
||||
KeyEventResult _handleFocusItemKeyEvent(FocusNode node, KeyEvent event, int index, int totalItems, _StripTab page) {
|
||||
if (!event.isActionable) return KeyEventResult.ignored;
|
||||
|
||||
final key = event.logicalKey;
|
||||
@@ -306,7 +312,7 @@ class ContentStripState extends State<ContentStrip> {
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
Container(height: 2, width: 40, color: isActive ? Theme.of(context).colorScheme.primary : Colors.transparent),
|
||||
Container(height: 2, width: 40, color: isActive ? Colors.white : Colors.transparent),
|
||||
],
|
||||
),
|
||||
);
|
||||
@@ -363,7 +369,7 @@ class ContentStripState extends State<ContentStrip> {
|
||||
? DownloadStorageService.instance.getArtworkPathSync(widget.serverId!, chapter.thumb!)
|
||||
: null;
|
||||
|
||||
void onTap() => widget.player.seek(chapter.startTime);
|
||||
void onTap() => unawaited(_handleChapterTap(chapter.startTime));
|
||||
|
||||
final item = _buildStripItem(
|
||||
context: context,
|
||||
@@ -504,7 +510,7 @@ class ContentStripState extends State<ContentStrip> {
|
||||
return '${item.grandparentTitle} \u00b7 S${item.parentIndex}E${item.index}';
|
||||
}
|
||||
if (item.grandparentTitle != null) return item.grandparentTitle!;
|
||||
if (item.year != null) return '${item.year}';
|
||||
if (item.year != null) return item.editionTitle != null ? '${item.year} · ${item.editionTitle}' : '${item.year}';
|
||||
return item.type;
|
||||
}
|
||||
|
||||
@@ -555,7 +561,7 @@ class ContentStripState extends State<ContentStrip> {
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: const BorderRadius.all(Radius.circular(6)),
|
||||
border: Border.fromBorderSide(
|
||||
BorderSide(color: Theme.of(context).colorScheme.primary, width: 2),
|
||||
BorderSide(color: Colors.white, width: 2),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -568,7 +574,7 @@ class ContentStripState extends State<ContentStrip> {
|
||||
Text(
|
||||
title,
|
||||
style: TextStyle(
|
||||
color: isCurrent ? Theme.of(context).colorScheme.primary : Colors.white,
|
||||
color: Colors.white,
|
||||
fontSize: titleFontSize,
|
||||
fontWeight: isCurrent ? FontWeight.w600 : FontWeight.normal,
|
||||
),
|
||||
@@ -579,9 +585,7 @@ class ContentStripState extends State<ContentStrip> {
|
||||
Text(
|
||||
subtitle,
|
||||
style: TextStyle(
|
||||
color: isCurrent
|
||||
? Theme.of(context).colorScheme.primary.withValues(alpha: 0.7)
|
||||
: tokens(context).textMuted,
|
||||
color: isCurrent ? Colors.white70 : Colors.white60,
|
||||
fontSize: subtitleFontSize,
|
||||
fontWeight: isCurrent ? FontWeight.w500 : FontWeight.normal,
|
||||
),
|
||||
|
||||
@@ -29,6 +29,7 @@ class TrackChapterControls extends StatelessWidget {
|
||||
final List<PlexChapter> chapters;
|
||||
final bool chaptersLoaded;
|
||||
final TrackControlsState trackControlsState;
|
||||
final Function(Duration position)? onSeekCompleted;
|
||||
|
||||
/// List of FocusNodes for the buttons (passed from parent for navigation)
|
||||
final List<FocusNode>? focusNodes;
|
||||
@@ -54,6 +55,7 @@ class TrackChapterControls extends StatelessWidget {
|
||||
required this.chapters,
|
||||
required this.chaptersLoaded,
|
||||
required this.trackControlsState,
|
||||
this.onSeekCompleted,
|
||||
this.focusNodes,
|
||||
this.onFocusChange,
|
||||
this.onNavigateLeft,
|
||||
@@ -286,6 +288,7 @@ class TrackChapterControls extends StatelessWidget {
|
||||
chapters: chapters,
|
||||
chaptersLoaded: chaptersLoaded,
|
||||
serverId: serverId,
|
||||
onSeekCompleted: onSeekCompleted,
|
||||
),
|
||||
)
|
||||
.whenComplete(() => onStartAutoHide?.call());
|
||||
|
||||
@@ -43,3 +43,4 @@ target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::EPOXY)
|
||||
target_link_libraries(${BINARY_NAME} PRIVATE simdutf)
|
||||
|
||||
target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}")
|
||||
target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}/../shared/cpp")
|
||||
|
||||
@@ -11,49 +11,8 @@
|
||||
#include <gdk/gdkwayland.h>
|
||||
#endif
|
||||
#include <clocale>
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
#include <simdutf.h>
|
||||
|
||||
// Sanitize a C string that may contain invalid UTF-8 sequences.
|
||||
// Uses simdutf for SIMD-accelerated validation (fast path for valid strings),
|
||||
// then falls back to iterative replacement with U+FFFD on the rare invalid case.
|
||||
// mpv does not guarantee UTF-8 for log messages, error strings, or
|
||||
// system-encoded paths — sending these unsanitized through Flutter's
|
||||
// StandardMessageCodec causes FormatException crashes.
|
||||
static std::string SanitizeUtf8(const char* input) {
|
||||
if (!input) return std::string();
|
||||
size_t len = strlen(input);
|
||||
if (len == 0) return std::string();
|
||||
|
||||
// Fast path: SIMD-accelerated validation — almost all strings pass this
|
||||
if (simdutf::validate_utf8(input, len)) {
|
||||
return std::string(input, len);
|
||||
}
|
||||
|
||||
// Slow path: find each invalid position, copy valid prefix, insert U+FFFD,
|
||||
// skip the bad byte, and repeat.
|
||||
std::string result;
|
||||
result.reserve(len);
|
||||
size_t pos = 0;
|
||||
|
||||
while (pos < len) {
|
||||
auto r = simdutf::validate_utf8_with_errors(input + pos, len - pos);
|
||||
// Copy the valid prefix up to the error
|
||||
if (r.count > 0) {
|
||||
result.append(input + pos, r.count);
|
||||
}
|
||||
pos += r.count;
|
||||
if (r.error == simdutf::error_code::SUCCESS) {
|
||||
break; // remaining tail is valid
|
||||
}
|
||||
// Replace the invalid byte with U+FFFD and skip it
|
||||
result.append("\xEF\xBF\xBD");
|
||||
pos++;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
#include "sanitize_utf8.h"
|
||||
|
||||
// Flutter on Linux uses EGL (OpenGL ES) for both X11 and Wayland.
|
||||
static void* get_opengl_proc_address(void* ctx, const char* name) {
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
6AD8B1612ED7B50000E9E1B4 /* MpvPlayerCore.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6AD8B1632ED7B50000E9E1B4 /* MpvPlayerCore.swift */; };
|
||||
6AD8B1622ED7B50000E9E1B4 /* MpvPlayerPlugin.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6AD8B1642ED7B50000E9E1B4 /* MpvPlayerPlugin.swift */; };
|
||||
B1D51A6A2F00110000000003 /* MpvPlayerCoreBase.swift in Sources */ = {isa = PBXBuildFile; fileRef = B1D51A6A2F00110000000004 /* MpvPlayerCoreBase.swift */; };
|
||||
B1D51A6A2F00110000000007 /* MpvPlayerPluginShared.swift in Sources */ = {isa = PBXBuildFile; fileRef = B1D51A6A2F00110000000008 /* MpvPlayerPluginShared.swift */; };
|
||||
6AD8B1662ED7B50000E9E1B5 /* WindowUtilsPlugin.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6AD8B1682ED7B50000E9E1B5 /* WindowUtilsPlugin.swift */; };
|
||||
6AD8B1672ED7B50000E9E1B5 /* WindowDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6AD8B1692ED7B50000E9E1B5 /* WindowDelegate.swift */; };
|
||||
6AD8B16A2ED7B50000E9E1B6 /* MpvPipController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6AD8B16B2ED7B50000E9E1B6 /* MpvPipController.swift */; };
|
||||
@@ -89,7 +90,8 @@
|
||||
6AC86ED62EA70B4C0067BC66 /* plezy.icon */ = {isa = PBXFileReference; lastKnownFileType = folder.iconcomposer.icon; path = plezy.icon; sourceTree = "<group>"; };
|
||||
6AD8B1632ED7B50000E9E1B4 /* MpvPlayerCore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MpvPlayerCore.swift; sourceTree = "<group>"; };
|
||||
6AD8B1642ED7B50000E9E1B4 /* MpvPlayerPlugin.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MpvPlayerPlugin.swift; sourceTree = "<group>"; };
|
||||
B1D51A6A2F00110000000004 /* MpvPlayerCoreBase.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = MpvPlayerCoreBase.swift; path = ../apple/Shared/MpvPlayer/MpvPlayerCoreBase.swift; sourceTree = SOURCE_ROOT; };
|
||||
B1D51A6A2F00110000000004 /* MpvPlayerCoreBase.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = MpvPlayerCoreBase.swift; path = ../shared/apple/MpvPlayer/MpvPlayerCoreBase.swift; sourceTree = SOURCE_ROOT; };
|
||||
B1D51A6A2F00110000000008 /* MpvPlayerPluginShared.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = MpvPlayerPluginShared.swift; path = ../shared/apple/MpvPlayer/MpvPlayerPluginShared.swift; sourceTree = SOURCE_ROOT; };
|
||||
6AD8B1682ED7B50000E9E1B5 /* WindowUtilsPlugin.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WindowUtilsPlugin.swift; sourceTree = "<group>"; };
|
||||
6AD8B1692ED7B50000E9E1B5 /* WindowDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WindowDelegate.swift; sourceTree = "<group>"; };
|
||||
6AD8B16B2ED7B50000E9E1B6 /* MpvPipController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MpvPipController.swift; sourceTree = "<group>"; };
|
||||
@@ -221,6 +223,7 @@
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
B1D51A6A2F00110000000004 /* MpvPlayerCoreBase.swift */,
|
||||
B1D51A6A2F00110000000008 /* MpvPlayerPluginShared.swift */,
|
||||
6AD8B1632ED7B50000E9E1B4 /* MpvPlayerCore.swift */,
|
||||
6AD8B16B2ED7B50000E9E1B6 /* MpvPipController.swift */,
|
||||
6AD8B1642ED7B50000E9E1B4 /* MpvPlayerPlugin.swift */,
|
||||
@@ -473,6 +476,7 @@
|
||||
33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */,
|
||||
335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */,
|
||||
B1D51A6A2F00110000000003 /* MpvPlayerCoreBase.swift in Sources */,
|
||||
B1D51A6A2F00110000000007 /* MpvPlayerPluginShared.swift in Sources */,
|
||||
6AD8B1612ED7B50000E9E1B4 /* MpvPlayerCore.swift in Sources */,
|
||||
6AD8B1622ED7B50000E9E1B4 /* MpvPlayerPlugin.swift in Sources */,
|
||||
6AD8B1662ED7B50000E9E1B5 /* WindowUtilsPlugin.swift in Sources */,
|
||||
|
||||
@@ -30,6 +30,8 @@
|
||||
<string>NSApplication</string>
|
||||
<key>FLTEnableMergedPlatformUIThread</key>
|
||||
<false/>
|
||||
<key>SUEnableAutomaticChecks</key>
|
||||
<false/>
|
||||
<key>SUFeedURL</key>
|
||||
<string>https://github.com/edde746/plezy/releases/latest/download/appcast.xml</string>
|
||||
<key>SUPublicEDKey</key>
|
||||
|
||||
@@ -2,14 +2,19 @@ import Cocoa
|
||||
import FlutterMacOS
|
||||
|
||||
/// Flutter plugin that bridges MPV player to Dart via method and event channels
|
||||
class MpvPlayerPlugin: NSObject, FlutterPlugin, FlutterStreamHandler, MpvPlayerDelegate {
|
||||
class MpvPlayerPlugin: NSObject, FlutterPlugin, FlutterStreamHandler, MpvPluginShared {
|
||||
|
||||
// MARK: - Properties
|
||||
|
||||
private var playerCore: MpvPlayerCore?
|
||||
private var eventSink: FlutterEventSink?
|
||||
var eventSink: FlutterEventSink?
|
||||
private weak var registrar: FlutterPluginRegistrar?
|
||||
private var nameToId: [String: Int] = [:]
|
||||
var nameToId: [String: Int] = [:]
|
||||
|
||||
// MpvPluginShared conformance
|
||||
var coreBase: MpvPlayerCoreBase? { playerCore }
|
||||
func setPlayerVisible(_ visible: Bool) { playerCore?.setVisible(visible) }
|
||||
func updatePlayerFrame() { playerCore?.updateFrame() }
|
||||
|
||||
// PiP
|
||||
private var pipController: MpvPipController?
|
||||
@@ -33,7 +38,7 @@ class MpvPlayerPlugin: NSObject, FlutterPlugin, FlutterStreamHandler, MpvPlayerD
|
||||
)
|
||||
|
||||
let pipChannel = FlutterMethodChannel(
|
||||
name: "app.plezy/pip",
|
||||
name: "com.plezy/pip",
|
||||
binaryMessenger: registrar.messenger
|
||||
)
|
||||
|
||||
@@ -198,7 +203,7 @@ class MpvPlayerPlugin: NSObject, FlutterPlugin, FlutterStreamHandler, MpvPlayerD
|
||||
pip.stopPip()
|
||||
}
|
||||
|
||||
// MARK: - Method Handlers
|
||||
// MARK: - Platform-Specific Method Handlers
|
||||
|
||||
private func handleInitialize(result: @escaping FlutterResult) {
|
||||
DispatchQueue.main.async { [weak self] in
|
||||
@@ -277,110 +282,6 @@ class MpvPlayerPlugin: NSObject, FlutterPlugin, FlutterStreamHandler, MpvPlayerD
|
||||
result(nil)
|
||||
}
|
||||
|
||||
private func handleGetProperty(call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||
guard let args = call.arguments as? [String: Any],
|
||||
let name = args["name"] as? String else {
|
||||
result(FlutterError(code: "INVALID_ARGS", message: "Missing 'name' argument", details: nil))
|
||||
return
|
||||
}
|
||||
|
||||
let value = playerCore?.getProperty(name)
|
||||
result(value)
|
||||
}
|
||||
|
||||
private func handleObserveProperty(call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||
guard let args = call.arguments as? [String: Any],
|
||||
let name = args["name"] as? String,
|
||||
let format = args["format"] as? String,
|
||||
let id = args["id"] as? Int else {
|
||||
result(FlutterError(code: "INVALID_ARGS", message: "Missing 'name', 'format', or 'id' argument", details: nil))
|
||||
return
|
||||
}
|
||||
|
||||
nameToId[name] = id
|
||||
playerCore?.observeProperty(name, format: format)
|
||||
result(nil)
|
||||
}
|
||||
|
||||
private func handleCommand(call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||
guard let args = call.arguments as? [String: Any],
|
||||
let commandArgs = args["args"] as? [String] else {
|
||||
result(FlutterError(code: "INVALID_ARGS", message: "Missing 'args' argument", details: nil))
|
||||
return
|
||||
}
|
||||
|
||||
// Use async command to prevent UI blocking during network operations
|
||||
playerCore?.commandAsync(commandArgs) { commandResult in
|
||||
switch commandResult {
|
||||
case .success:
|
||||
result(nil)
|
||||
case .failure(let error):
|
||||
result(FlutterError(code: "COMMAND_FAILED", message: error.localizedDescription, details: nil))
|
||||
}
|
||||
} ?? result(nil)
|
||||
}
|
||||
|
||||
private func handleSetVisible(call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||
guard let args = call.arguments as? [String: Any],
|
||||
let visible = args["visible"] as? Bool else {
|
||||
result(FlutterError(code: "INVALID_ARGS", message: "Missing 'visible' argument", details: nil))
|
||||
return
|
||||
}
|
||||
|
||||
DispatchQueue.main.async { [weak self] in
|
||||
self?.playerCore?.setVisible(visible)
|
||||
|
||||
// Update frame when becoming visible
|
||||
if visible {
|
||||
self?.playerCore?.updateFrame()
|
||||
}
|
||||
|
||||
result(nil)
|
||||
}
|
||||
}
|
||||
|
||||
private func handleUpdateFrame(result: @escaping FlutterResult) {
|
||||
DispatchQueue.main.async { [weak self] in
|
||||
self?.playerCore?.updateFrame()
|
||||
result(nil)
|
||||
}
|
||||
}
|
||||
|
||||
private func handleSetLogLevel(call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||
guard let playerCore = playerCore else {
|
||||
result(FlutterError(code: "NOT_INITIALIZED", message: "Player not initialized", details: nil))
|
||||
return
|
||||
}
|
||||
guard let args = call.arguments as? [String: Any],
|
||||
let level = args["level"] as? String else {
|
||||
result(FlutterError(code: "INVALID_ARGS", message: "Missing 'level'", details: nil))
|
||||
return
|
||||
}
|
||||
playerCore.setLogLevel(level)
|
||||
result(nil)
|
||||
}
|
||||
|
||||
// MARK: - MpvPlayerDelegate
|
||||
|
||||
func onPropertyChange(name: String, value: Any?) {
|
||||
guard let eventSink = eventSink else { return }
|
||||
|
||||
if let propId = nameToId[name] {
|
||||
eventSink([propId, value as Any])
|
||||
}
|
||||
}
|
||||
|
||||
func onEvent(name: String, data: [String: Any]?) {
|
||||
guard let eventSink = eventSink else { return }
|
||||
|
||||
var event: [String: Any] = ["type": "event", "name": name]
|
||||
if let data = data {
|
||||
event["data"] = data
|
||||
}
|
||||
|
||||
eventSink(event)
|
||||
}
|
||||
|
||||
// MARK: - Helpers
|
||||
|
||||
private func findFlutterWindow() -> (NSWindow, NSView, NSView)? {
|
||||
|
||||
+14
-13
@@ -61,8 +61,8 @@ packages:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
path: "packages/auto_updater"
|
||||
ref: HEAD
|
||||
resolved-ref: c70320c6885db88ef8360d278f936e90a7cc9689
|
||||
ref: "9e150f7"
|
||||
resolved-ref: "9e150f71e17495b7361aedbe6df22e89ad52c254"
|
||||
url: "https://github.com/edde746/auto_updater"
|
||||
source: git
|
||||
version: "1.0.0"
|
||||
@@ -70,25 +70,26 @@ packages:
|
||||
dependency: "direct overridden"
|
||||
description:
|
||||
path: "packages/auto_updater_macos"
|
||||
ref: HEAD
|
||||
resolved-ref: "6a21278549a7b988302ea1a9b2a3210fe0cd177c"
|
||||
ref: "9e150f7"
|
||||
resolved-ref: "9e150f71e17495b7361aedbe6df22e89ad52c254"
|
||||
url: "https://github.com/edde746/auto_updater"
|
||||
source: git
|
||||
version: "1.0.0"
|
||||
auto_updater_platform_interface:
|
||||
dependency: transitive
|
||||
dependency: "direct overridden"
|
||||
description:
|
||||
name: auto_updater_platform_interface
|
||||
sha256: ed5dff8cea18c58bc5ac787ff9122fedd1644272e02015d28c9b592f8078c5dc
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
path: "packages/auto_updater_platform_interface"
|
||||
ref: "9e150f7"
|
||||
resolved-ref: "9e150f71e17495b7361aedbe6df22e89ad52c254"
|
||||
url: "https://github.com/edde746/auto_updater"
|
||||
source: git
|
||||
version: "1.0.0"
|
||||
auto_updater_windows:
|
||||
dependency: "direct overridden"
|
||||
description:
|
||||
path: "packages/auto_updater_windows"
|
||||
ref: HEAD
|
||||
resolved-ref: c70320c6885db88ef8360d278f936e90a7cc9689
|
||||
ref: "9e150f7"
|
||||
resolved-ref: "9e150f71e17495b7361aedbe6df22e89ad52c254"
|
||||
url: "https://github.com/edde746/auto_updater"
|
||||
source: git
|
||||
version: "1.0.0"
|
||||
@@ -1290,10 +1291,10 @@ packages:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: universal_gamepad
|
||||
sha256: "757711dcc142daf19cfbdf3302abe90615de112269022c38b7a2f1789a00cc84"
|
||||
sha256: "6177944707639a20dd4f89e7f8d78bf66b40ba03d70a1962754d3bba45e14ccd"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.5.2"
|
||||
version: "1.5.4"
|
||||
url_launcher:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
|
||||
+9
-1
@@ -1,7 +1,7 @@
|
||||
name: plezy
|
||||
description: "A beautiful Plex client for Flutter"
|
||||
publish_to: "none"
|
||||
version: 1.25.0+53
|
||||
version: 1.26.0+55
|
||||
|
||||
environment:
|
||||
sdk: ^3.8.1
|
||||
@@ -61,6 +61,7 @@ dependencies:
|
||||
git:
|
||||
url: https://github.com/edde746/auto_updater
|
||||
path: packages/auto_updater
|
||||
ref: 9e150f7
|
||||
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
@@ -73,13 +74,20 @@ dev_dependencies:
|
||||
drift_dev: ^2.14.0
|
||||
|
||||
dependency_overrides:
|
||||
auto_updater_platform_interface:
|
||||
git:
|
||||
url: https://github.com/edde746/auto_updater
|
||||
ref: 9e150f7
|
||||
path: packages/auto_updater_platform_interface
|
||||
auto_updater_macos:
|
||||
git:
|
||||
url: https://github.com/edde746/auto_updater
|
||||
ref: 9e150f7
|
||||
path: packages/auto_updater_macos
|
||||
auto_updater_windows:
|
||||
git:
|
||||
url: https://github.com/edde746/auto_updater
|
||||
ref: 9e150f7
|
||||
path: packages/auto_updater_windows
|
||||
|
||||
flutter:
|
||||
|
||||
@@ -0,0 +1,105 @@
|
||||
#if os(iOS)
|
||||
import Flutter
|
||||
#elseif os(macOS)
|
||||
import FlutterMacOS
|
||||
#endif
|
||||
|
||||
/// Protocol for shared MpvPlayerPlugin method handlers across iOS and macOS.
|
||||
/// Platform-specific methods (PiP, initialization, window finding) remain
|
||||
/// in the per-platform MpvPlayerPlugin files.
|
||||
protocol MpvPluginShared: AnyObject, MpvPlayerDelegate {
|
||||
var coreBase: MpvPlayerCoreBase? { get }
|
||||
var eventSink: FlutterEventSink? { get }
|
||||
var nameToId: [String: Int] { get set }
|
||||
|
||||
func setPlayerVisible(_ visible: Bool)
|
||||
func updatePlayerFrame()
|
||||
}
|
||||
|
||||
extension MpvPluginShared {
|
||||
|
||||
func handleGetProperty(call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||
guard let args = call.arguments as? [String: Any],
|
||||
let name = args["name"] as? String else {
|
||||
result(FlutterError(code: "INVALID_ARGS", message: "Missing 'name' argument", details: nil))
|
||||
return
|
||||
}
|
||||
result(coreBase?.getProperty(name))
|
||||
}
|
||||
|
||||
func handleObserveProperty(call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||
guard let args = call.arguments as? [String: Any],
|
||||
let name = args["name"] as? String,
|
||||
let format = args["format"] as? String,
|
||||
let id = args["id"] as? Int else {
|
||||
result(FlutterError(code: "INVALID_ARGS", message: "Missing 'name', 'format', or 'id' argument", details: nil))
|
||||
return
|
||||
}
|
||||
|
||||
nameToId[name] = id
|
||||
coreBase?.observeProperty(name, format: format)
|
||||
result(nil)
|
||||
}
|
||||
|
||||
func handleCommand(call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||
guard let args = call.arguments as? [String: Any],
|
||||
let commandArgs = args["args"] as? [String] else {
|
||||
result(FlutterError(code: "INVALID_ARGS", message: "Missing 'args' argument", details: nil))
|
||||
return
|
||||
}
|
||||
|
||||
coreBase?.commandAsync(commandArgs) { commandResult in
|
||||
switch commandResult {
|
||||
case .success:
|
||||
result(nil)
|
||||
case .failure(let error):
|
||||
result(FlutterError(code: "COMMAND_FAILED", message: error.localizedDescription, details: nil))
|
||||
}
|
||||
} ?? result(nil)
|
||||
}
|
||||
|
||||
func handleSetVisible(call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||
guard let args = call.arguments as? [String: Any],
|
||||
let visible = args["visible"] as? Bool else {
|
||||
result(FlutterError(code: "INVALID_ARGS", message: "Missing 'visible' argument", details: nil))
|
||||
return
|
||||
}
|
||||
|
||||
DispatchQueue.main.async { [weak self] in
|
||||
self?.setPlayerVisible(visible)
|
||||
if visible { self?.updatePlayerFrame() }
|
||||
result(nil)
|
||||
}
|
||||
}
|
||||
|
||||
func handleUpdateFrame(result: @escaping FlutterResult) {
|
||||
DispatchQueue.main.async { [weak self] in
|
||||
self?.updatePlayerFrame()
|
||||
result(nil)
|
||||
}
|
||||
}
|
||||
|
||||
func handleSetLogLevel(call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||
guard let args = call.arguments as? [String: Any],
|
||||
let level = args["level"] as? String else {
|
||||
result(FlutterError(code: "INVALID_ARGS", message: "Missing 'level'", details: nil))
|
||||
return
|
||||
}
|
||||
coreBase?.setLogLevel(level)
|
||||
result(nil)
|
||||
}
|
||||
|
||||
// MARK: - MpvPlayerDelegate
|
||||
|
||||
func onPropertyChange(name: String, value: Any?) {
|
||||
guard let eventSink = eventSink, let propId = nameToId[name] else { return }
|
||||
eventSink([propId, value as Any])
|
||||
}
|
||||
|
||||
func onEvent(name: String, data: [String: Any]?) {
|
||||
guard let eventSink = eventSink else { return }
|
||||
var event: [String: Any] = ["type": "event", "name": name]
|
||||
if let data = data { event["data"] = data }
|
||||
eventSink(event)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
#ifndef SANITIZE_UTF8_H_
|
||||
#define SANITIZE_UTF8_H_
|
||||
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
#include <simdutf.h>
|
||||
|
||||
// Sanitize a C string that may contain invalid UTF-8 sequences.
|
||||
// Uses simdutf for SIMD-accelerated validation (fast path for valid strings),
|
||||
// then falls back to iterative replacement with U+FFFD on the rare invalid case.
|
||||
// mpv does not guarantee UTF-8 for log messages, error strings, or
|
||||
// system-encoded paths — sending these unsanitized through Flutter's
|
||||
// StandardMessageCodec causes FormatException crashes.
|
||||
static inline std::string SanitizeUtf8(const char* input) {
|
||||
if (!input) return std::string();
|
||||
size_t len = strlen(input);
|
||||
if (len == 0) return std::string();
|
||||
|
||||
// Fast path: SIMD-accelerated validation — almost all strings pass this
|
||||
if (simdutf::validate_utf8(input, len)) {
|
||||
return std::string(input, len);
|
||||
}
|
||||
|
||||
// Slow path: find each invalid position, copy valid prefix, insert U+FFFD,
|
||||
// skip the bad byte, and repeat.
|
||||
std::string result;
|
||||
result.reserve(len);
|
||||
size_t pos = 0;
|
||||
|
||||
while (pos < len) {
|
||||
auto r = simdutf::validate_utf8_with_errors(input + pos, len - pos);
|
||||
// Copy the valid prefix up to the error
|
||||
if (r.count > 0) {
|
||||
result.append(input + pos, r.count);
|
||||
}
|
||||
pos += r.count;
|
||||
if (r.error == simdutf::error_code::SUCCESS) {
|
||||
break; // remaining tail is valid
|
||||
}
|
||||
// Replace the invalid byte with U+FFFD and skip it
|
||||
result.append("\xEF\xBF\xBD");
|
||||
pos++;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
#endif // SANITIZE_UTF8_H_
|
||||
@@ -3,14 +3,14 @@ cmake_minimum_required(VERSION 3.14)
|
||||
project(plezy LANGUAGES CXX)
|
||||
|
||||
# Download and extract mpv-dev (architecture-dependent)
|
||||
set(MPV_VERSION "20260303")
|
||||
set(MPV_GIT_HASH "c55bdc3")
|
||||
set(MPV_VERSION "20251228")
|
||||
set(MPV_GIT_HASH "a58dd8a")
|
||||
|
||||
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "ARM64")
|
||||
# ARM64: use file(DOWNLOAD) + 7z extraction (CMake's built-in libarchive
|
||||
# can't handle LZMA2 on ARM64)
|
||||
set(MPV_FILENAME "mpv-dev-aarch64-${MPV_VERSION}-git-${MPV_GIT_HASH}.7z")
|
||||
set(MPV_URL "https://github.com/shinchiro/mpv-winbuild-cmake/releases/download/${MPV_VERSION}/${MPV_FILENAME}")
|
||||
set(MPV_URL "https://sourceforge.net/projects/mpv-player-windows/files/libmpv/${MPV_FILENAME}/download")
|
||||
set(MPV_DOWNLOAD_DIR "${CMAKE_BINARY_DIR}/mpv-dev-arm64")
|
||||
set(MPV_ARCHIVE "${MPV_DOWNLOAD_DIR}/${MPV_FILENAME}")
|
||||
|
||||
@@ -41,7 +41,7 @@ else()
|
||||
include(FetchContent)
|
||||
FetchContent_Declare(
|
||||
mpv_dev
|
||||
URL https://github.com/shinchiro/mpv-winbuild-cmake/releases/download/${MPV_VERSION}/mpv-dev-x86_64-v3-${MPV_VERSION}-git-${MPV_GIT_HASH}.7z
|
||||
URL https://sourceforge.net/projects/mpv-player-windows/files/libmpv/mpv-dev-x86_64-v3-${MPV_VERSION}-git-${MPV_GIT_HASH}.7z/download
|
||||
DOWNLOAD_EXTRACT_TIMESTAMP TRUE
|
||||
)
|
||||
FetchContent_MakeAvailable(mpv_dev)
|
||||
|
||||
@@ -51,6 +51,7 @@ target_link_libraries(${BINARY_NAME} PRIVATE simdutf)
|
||||
target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}")
|
||||
target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
target_include_directories(${BINARY_NAME} PRIVATE "${MPV_INCLUDE_DIR}")
|
||||
target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}/../shared/cpp")
|
||||
|
||||
# Run the Flutter tool portions of the build. This must not be removed.
|
||||
add_dependencies(${BINARY_NAME} flutter_assemble)
|
||||
|
||||
@@ -2,20 +2,10 @@
|
||||
|
||||
#include <dwmapi.h>
|
||||
|
||||
#include "mpv_core.h"
|
||||
#include "utils.h"
|
||||
|
||||
namespace mpv {
|
||||
|
||||
MpvContainer* MpvContainer::GetInstance() { return instance_.get(); }
|
||||
|
||||
MpvContainer::~MpvContainer() {
|
||||
if (taskbar_) {
|
||||
taskbar_->Release();
|
||||
taskbar_ = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
HWND MpvContainer::Create() {
|
||||
auto window_class = WNDCLASSEX{};
|
||||
::SecureZeroMemory(&window_class, sizeof(window_class));
|
||||
@@ -59,15 +49,6 @@ HWND MpvContainer::Get(HWND flutter_window) {
|
||||
::SetWindowLongPtr(handle_, GWLP_USERDATA,
|
||||
reinterpret_cast<LONG_PTR>(flutter_window));
|
||||
|
||||
// Remove taskbar entry using cached ITaskbarList3.
|
||||
if (!taskbar_) {
|
||||
::CoCreateInstance(CLSID_TaskbarList, 0, CLSCTX_INPROC_SERVER,
|
||||
IID_PPV_ARGS(&taskbar_));
|
||||
}
|
||||
if (taskbar_) {
|
||||
taskbar_->DeleteTab(handle_);
|
||||
}
|
||||
|
||||
::ShowWindow(handle_, SW_SHOWNOACTIVATE);
|
||||
::SetFocus(flutter_window);
|
||||
|
||||
@@ -83,12 +64,13 @@ LRESULT CALLBACK MpvContainer::WindowProc(HWND const window,
|
||||
::PostQuitMessage(0);
|
||||
return 0;
|
||||
}
|
||||
case WM_MOUSEMOVE: {
|
||||
case WM_MOUSEMOVE:
|
||||
case WM_SIZE:
|
||||
case WM_MOVE:
|
||||
case WM_MOVING:
|
||||
case WM_ACTIVATE:
|
||||
case WM_WINDOWPOSCHANGED: {
|
||||
// Redirect focus to Flutter window.
|
||||
auto* core = MpvCore::GetInstance();
|
||||
if (core) {
|
||||
core->SetHitTestBehavior(0);
|
||||
}
|
||||
auto user_data = ::GetWindowLongPtr(window, GWLP_USERDATA);
|
||||
if (user_data) {
|
||||
::SetForegroundWindow(reinterpret_cast<HWND>(user_data));
|
||||
@@ -99,21 +81,6 @@ LRESULT CALLBACK MpvContainer::WindowProc(HWND const window,
|
||||
// Prevent erasing to avoid flicker.
|
||||
return 1;
|
||||
}
|
||||
case WM_SIZE:
|
||||
case WM_MOVE:
|
||||
case WM_MOVING:
|
||||
case WM_ACTIVATE:
|
||||
case WM_WINDOWPOSCHANGED: {
|
||||
auto* core = MpvCore::GetInstance();
|
||||
if (core) {
|
||||
core->SetHitTestBehavior(0);
|
||||
}
|
||||
auto user_data = ::GetWindowLongPtr(window, GWLP_USERDATA);
|
||||
if (user_data) {
|
||||
::SetForegroundWindow(reinterpret_cast<HWND>(user_data));
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -1,16 +1,12 @@
|
||||
#ifndef MPV_CONTAINER_H_
|
||||
#define MPV_CONTAINER_H_
|
||||
|
||||
#include <ShObjIdl.h>
|
||||
#include <Windows.h>
|
||||
|
||||
#include <memory>
|
||||
|
||||
namespace mpv {
|
||||
|
||||
// Forward declaration
|
||||
class MpvCore;
|
||||
|
||||
// Container window that holds the mpv video window behind Flutter.
|
||||
// This is a singleton that creates a hidden window with no taskbar entry.
|
||||
class MpvContainer {
|
||||
@@ -18,7 +14,7 @@ class MpvContainer {
|
||||
static MpvContainer* GetInstance();
|
||||
|
||||
MpvContainer() = default;
|
||||
~MpvContainer();
|
||||
~MpvContainer() = default;
|
||||
|
||||
// Creates the container window.
|
||||
HWND Create();
|
||||
@@ -34,7 +30,6 @@ class MpvContainer {
|
||||
LPARAM lparam) noexcept;
|
||||
|
||||
HWND handle_ = nullptr;
|
||||
ITaskbarList3* taskbar_ = nullptr;
|
||||
|
||||
static constexpr wchar_t kClassName[] = L"MPV_CONTAINER";
|
||||
static constexpr wchar_t kWindowName[] = L"";
|
||||
|
||||
@@ -13,13 +13,8 @@ void MpvCore::SetInstance(std::unique_ptr<MpvCore> instance) {
|
||||
instance_ = std::move(instance);
|
||||
}
|
||||
|
||||
std::optional<int32_t> MpvCore::GetProcId() { return proc_id_; }
|
||||
|
||||
void MpvCore::SetProcId(std::optional<int32_t> proc_id) { proc_id_ = proc_id; }
|
||||
|
||||
MpvCore::MpvCore(HWND flutter_window, HWND flutter_child_window)
|
||||
: flutter_window_(flutter_window),
|
||||
flutter_child_window_(flutter_child_window) {}
|
||||
MpvCore::MpvCore(HWND flutter_window)
|
||||
: flutter_window_(flutter_window) {}
|
||||
|
||||
MpvCore::~MpvCore() {
|
||||
// Close all mpv views.
|
||||
@@ -71,24 +66,6 @@ void MpvCore::DisposeMpvView(HWND mpv_hwnd) {
|
||||
mpv_views_.erase(mpv_hwnd);
|
||||
}
|
||||
|
||||
void MpvCore::SetHitTestBehavior(int32_t hittest_behavior) {
|
||||
LONG ex_style = ::GetWindowLong(flutter_window_, GWL_EXSTYLE);
|
||||
if (hittest_behavior) {
|
||||
ex_style |= (WS_EX_TRANSPARENT | WS_EX_LAYERED);
|
||||
} else {
|
||||
ex_style &= ~(WS_EX_TRANSPARENT | WS_EX_LAYERED);
|
||||
}
|
||||
::SetWindowLong(flutter_window_, GWL_EXSTYLE, ex_style);
|
||||
|
||||
// Force Windows to recalculate window frame after extended style changes.
|
||||
// This ensures the render surface dimensions match the new window state.
|
||||
::SetWindowPos(flutter_window_, nullptr, 0, 0, 0, 0,
|
||||
SWP_FRAMECHANGED | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE);
|
||||
|
||||
// Sync with DWM to ensure render target is updated
|
||||
::DwmFlush();
|
||||
}
|
||||
|
||||
void MpvCore::SetVisible(bool visible) {
|
||||
visible_ = visible;
|
||||
if (container_) {
|
||||
@@ -173,8 +150,6 @@ std::optional<HRESULT> MpvCore::WindowProc(HWND hwnd, UINT message,
|
||||
}
|
||||
break;
|
||||
}
|
||||
case WM_MOVE:
|
||||
case WM_MOVING:
|
||||
case WM_WINDOWPOSCHANGED: {
|
||||
RECT window_rect;
|
||||
::GetWindowRect(flutter_window_, &window_rect);
|
||||
@@ -209,10 +184,6 @@ std::optional<HRESULT> MpvCore::WindowProc(HWND hwnd, UINT message,
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
void MpvCore::RedrawMpvViews() {
|
||||
::RedrawWindow(container_, 0, 0, RDW_INVALIDATE | RDW_ALLCHILDREN);
|
||||
}
|
||||
|
||||
RECT MpvCore::GetGlobalRect(int32_t left, int32_t top, int32_t right,
|
||||
int32_t bottom) {
|
||||
// Expand client area to prevent transparent gaps.
|
||||
@@ -232,6 +203,5 @@ RECT MpvCore::GetGlobalRect(int32_t left, int32_t top, int32_t right,
|
||||
}
|
||||
|
||||
std::unique_ptr<MpvCore> MpvCore::instance_ = nullptr;
|
||||
std::optional<int32_t> MpvCore::proc_id_ = std::nullopt;
|
||||
|
||||
} // namespace mpv
|
||||
|
||||
@@ -19,10 +19,8 @@ class MpvCore {
|
||||
|
||||
static MpvCore* GetInstance();
|
||||
static void SetInstance(std::unique_ptr<MpvCore> instance);
|
||||
static std::optional<int32_t> GetProcId();
|
||||
static void SetProcId(std::optional<int32_t> proc_id);
|
||||
|
||||
MpvCore(HWND flutter_window, HWND flutter_child_window);
|
||||
explicit MpvCore(HWND flutter_window);
|
||||
~MpvCore();
|
||||
|
||||
// Initializes transparency on the Flutter window.
|
||||
@@ -37,9 +35,6 @@ class MpvCore {
|
||||
// Disposes the mpv view.
|
||||
void DisposeMpvView(HWND mpv_hwnd);
|
||||
|
||||
// Sets hit test behavior for mouse passthrough.
|
||||
void SetHitTestBehavior(int32_t hittest_behavior);
|
||||
|
||||
// Shows or hides the mpv view.
|
||||
void SetVisible(bool visible);
|
||||
|
||||
@@ -48,11 +43,9 @@ class MpvCore {
|
||||
LPARAM lparam);
|
||||
|
||||
private:
|
||||
void RedrawMpvViews();
|
||||
RECT GetGlobalRect(int32_t left, int32_t top, int32_t right, int32_t bottom);
|
||||
|
||||
HWND flutter_window_ = nullptr;
|
||||
HWND flutter_child_window_ = nullptr;
|
||||
HWND container_ = nullptr;
|
||||
double device_pixel_ratio_ = 1.0;
|
||||
std::map<HWND, RECT> mpv_views_;
|
||||
@@ -62,7 +55,6 @@ class MpvCore {
|
||||
bool composition_enabled_ = false;
|
||||
|
||||
static std::unique_ptr<MpvCore> instance_;
|
||||
static std::optional<int32_t> proc_id_;
|
||||
};
|
||||
|
||||
} // namespace mpv
|
||||
|
||||
@@ -1,58 +1,6 @@
|
||||
#include "mpv_player.h"
|
||||
|
||||
#include <cstring>
|
||||
#include <fstream>
|
||||
#include <simdutf.h>
|
||||
|
||||
// Sanitize a C string that may contain invalid UTF-8 sequences.
|
||||
// Uses simdutf for SIMD-accelerated validation (fast path for valid strings),
|
||||
// then falls back to iterative replacement with U+FFFD on the rare invalid case.
|
||||
// mpv does not guarantee UTF-8 for log messages, error strings, or
|
||||
// system-encoded paths — sending these unsanitized through Flutter's
|
||||
// StandardMessageCodec causes FormatException crashes.
|
||||
static std::string SanitizeUtf8(const char* input) {
|
||||
if (!input) return std::string();
|
||||
size_t len = strlen(input);
|
||||
if (len == 0) return std::string();
|
||||
|
||||
// Fast path: SIMD-accelerated validation — almost all strings pass this
|
||||
if (simdutf::validate_utf8(input, len)) {
|
||||
return std::string(input, len);
|
||||
}
|
||||
|
||||
// Slow path: find each invalid position, copy valid prefix, insert U+FFFD,
|
||||
// skip the bad byte, and repeat.
|
||||
std::string result;
|
||||
result.reserve(len);
|
||||
size_t pos = 0;
|
||||
|
||||
while (pos < len) {
|
||||
auto r = simdutf::validate_utf8_with_errors(input + pos, len - pos);
|
||||
// Copy the valid prefix up to the error
|
||||
if (r.count > 0) {
|
||||
result.append(input + pos, r.count);
|
||||
}
|
||||
pos += r.count;
|
||||
if (r.error == simdutf::error_code::SUCCESS) {
|
||||
break; // remaining tail is valid
|
||||
}
|
||||
// Replace the invalid byte with U+FFFD and skip it
|
||||
result.append("\xEF\xBF\xBD");
|
||||
pos++;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
static void LogToFile(const char* message) {
|
||||
std::ofstream log("C:\\Users\\admin\\mpv_debug.log", std::ios::app);
|
||||
if (log.is_open()) {
|
||||
log << message << std::endl;
|
||||
log.close();
|
||||
}
|
||||
OutputDebugStringA(message);
|
||||
OutputDebugStringA("\n");
|
||||
}
|
||||
#include "sanitize_utf8.h"
|
||||
|
||||
namespace mpv {
|
||||
|
||||
@@ -61,56 +9,37 @@ MpvPlayer::MpvPlayer() {}
|
||||
MpvPlayer::~MpvPlayer() { Dispose(); }
|
||||
|
||||
bool MpvPlayer::Initialize(HWND container, HWND flutter_window) {
|
||||
LogToFile("MpvPlayer::Initialize called");
|
||||
|
||||
if (mpv_) {
|
||||
LogToFile("MpvPlayer::Initialize - already initialized");
|
||||
return true; // Already initialized.
|
||||
}
|
||||
|
||||
container_ = container;
|
||||
flutter_window_ = flutter_window;
|
||||
char msg[256];
|
||||
snprintf(msg, sizeof(msg), "MpvPlayer::Initialize - container: %p", container);
|
||||
LogToFile(msg);
|
||||
|
||||
// Create mpv instance.
|
||||
LogToFile("MpvPlayer::Initialize - calling mpv_create()");
|
||||
mpv_ = mpv_create();
|
||||
if (!mpv_) {
|
||||
LogToFile("MPV: mpv_create() failed");
|
||||
return false;
|
||||
}
|
||||
LogToFile("MpvPlayer::Initialize - mpv_create() succeeded");
|
||||
|
||||
// Create a child window for mpv to render into.
|
||||
LogToFile("MpvPlayer::Initialize - creating child window");
|
||||
hwnd_ = ::CreateWindowW(L"STATIC", L"", WS_CHILD | WS_VISIBLE, 0, 0, 100, 100,
|
||||
container, nullptr, GetModuleHandle(nullptr),
|
||||
nullptr);
|
||||
if (!hwnd_) {
|
||||
DWORD error = GetLastError();
|
||||
snprintf(msg, sizeof(msg), "MPV: CreateWindowW failed with error %lu", error);
|
||||
LogToFile(msg);
|
||||
mpv_destroy(mpv_);
|
||||
mpv_ = nullptr;
|
||||
return false;
|
||||
}
|
||||
snprintf(msg, sizeof(msg), "MpvPlayer::Initialize - child window created: %p", hwnd_);
|
||||
LogToFile(msg);
|
||||
|
||||
// Set the wid option to embed mpv in our window.
|
||||
int64_t wid = reinterpret_cast<int64_t>(hwnd_);
|
||||
int err = mpv_set_option(mpv_, "wid", MPV_FORMAT_INT64, &wid);
|
||||
if (err < 0) {
|
||||
snprintf(msg, sizeof(msg), "MPV: Failed to set wid option: %d %s", err, mpv_error_string(err));
|
||||
LogToFile(msg);
|
||||
} else {
|
||||
LogToFile("MpvPlayer::Initialize - wid option set successfully");
|
||||
}
|
||||
mpv_set_option(mpv_, "wid", MPV_FORMAT_INT64, &wid);
|
||||
|
||||
// Configure mpv for embedded playback.
|
||||
LogToFile("MpvPlayer::Initialize - setting mpv options");
|
||||
// Use gpu-next + Vulkan to avoid D3D11 driver crashes (GH-653)
|
||||
mpv_set_option_string(mpv_, "vo", "gpu-next");
|
||||
mpv_set_option_string(mpv_, "gpu-api", "vulkan");
|
||||
// hwdec is set from Flutter via setProperty based on user preference
|
||||
mpv_set_option_string(mpv_, "keep-open", "yes");
|
||||
mpv_set_option_string(mpv_, "idle", "yes");
|
||||
@@ -129,12 +58,8 @@ bool MpvPlayer::Initialize(HWND container, HWND flutter_window) {
|
||||
mpv_request_log_messages(mpv_, "warn");
|
||||
|
||||
// Initialize mpv.
|
||||
LogToFile("MpvPlayer::Initialize - calling mpv_initialize()");
|
||||
err = mpv_initialize(mpv_);
|
||||
int err = mpv_initialize(mpv_);
|
||||
if (err < 0) {
|
||||
snprintf(msg, sizeof(msg), "MPV: mpv_initialize() failed with error %d: %s",
|
||||
err, mpv_error_string(err));
|
||||
LogToFile(msg);
|
||||
::DestroyWindow(hwnd_);
|
||||
hwnd_ = nullptr;
|
||||
mpv_destroy(mpv_);
|
||||
@@ -142,14 +67,11 @@ bool MpvPlayer::Initialize(HWND container, HWND flutter_window) {
|
||||
return false;
|
||||
}
|
||||
|
||||
LogToFile("MPV: Initialization successful");
|
||||
|
||||
// Observe video-params/sig-peak for HDR detection
|
||||
mpv_observe_property(mpv_, 0, "video-params/sig-peak", MPV_FORMAT_DOUBLE);
|
||||
|
||||
// Start event loop.
|
||||
StartEventLoop();
|
||||
LogToFile("MpvPlayer::Initialize - event loop started");
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -520,9 +442,6 @@ void MpvPlayer::SendEvent(const std::string& name,
|
||||
|
||||
void MpvPlayer::SetHDREnabled(bool enabled) {
|
||||
hdr_enabled_ = enabled;
|
||||
char msg[128];
|
||||
snprintf(msg, sizeof(msg), "[MpvPlayer] HDR enabled: %s", enabled ? "true" : "false");
|
||||
LogToFile(msg);
|
||||
|
||||
if (mpv_) {
|
||||
mpv_set_property_string(mpv_, "target-colorspace-hint", enabled ? "yes" : "no");
|
||||
@@ -532,21 +451,11 @@ void MpvPlayer::SetHDREnabled(bool enabled) {
|
||||
}
|
||||
|
||||
void MpvPlayer::UpdateHDRMode(double sigPeak) {
|
||||
bool isHDRContent = sigPeak > 1.0;
|
||||
|
||||
char msg[256];
|
||||
snprintf(msg, sizeof(msg),
|
||||
"[MpvPlayer] HDR mode update (hdrEnabled: %s, sigPeak: %.2f, isHDR: %s)",
|
||||
hdr_enabled_ ? "true" : "false",
|
||||
sigPeak,
|
||||
isHDRContent ? "true" : "false");
|
||||
LogToFile(msg);
|
||||
|
||||
// On Windows, mpv handles HDR passthrough automatically when:
|
||||
// - target-colorspace-hint=yes
|
||||
// - Windows HDR is enabled in Display Settings
|
||||
// - Display supports HDR
|
||||
// No explicit DXGI calls needed - mpv's gpu/d3d11 handles it
|
||||
// No explicit DXGI calls needed - mpv's gpu-next/vulkan handles it
|
||||
}
|
||||
|
||||
} // namespace mpv
|
||||
|
||||
@@ -1,27 +1,13 @@
|
||||
#include "mpv_plugin.h"
|
||||
|
||||
#include <fstream>
|
||||
|
||||
#include "mpv_container.h"
|
||||
#include "mpv_core.h"
|
||||
|
||||
static void LogToFile(const char* message) {
|
||||
std::ofstream log("C:\\Users\\admin\\mpv_debug.log", std::ios::app);
|
||||
if (log.is_open()) {
|
||||
log << message << std::endl;
|
||||
log.close();
|
||||
}
|
||||
OutputDebugStringA(message);
|
||||
OutputDebugStringA("\n");
|
||||
}
|
||||
|
||||
void MpvPlayerPluginRegisterWithRegistrar(
|
||||
FlutterDesktopPluginRegistrarRef registrar) {
|
||||
LogToFile("MpvPlayerPlugin: RegisterWithRegistrar called");
|
||||
mpv::MpvPlayerPlugin::RegisterWithRegistrar(
|
||||
flutter::PluginRegistrarManager::GetInstance()
|
||||
->GetRegistrar<flutter::PluginRegistrarWindows>(registrar));
|
||||
LogToFile("MpvPlayerPlugin: RegisterWithRegistrar completed");
|
||||
}
|
||||
|
||||
namespace mpv {
|
||||
@@ -34,22 +20,14 @@ void MpvPlayerPlugin::RegisterWithRegistrar(
|
||||
|
||||
MpvPlayerPlugin::MpvPlayerPlugin(flutter::PluginRegistrarWindows* registrar)
|
||||
: registrar_(registrar) {
|
||||
LogToFile("MpvPlayerPlugin: Constructor called");
|
||||
|
||||
// Create method channel.
|
||||
method_channel_ =
|
||||
std::make_unique<flutter::MethodChannel<flutter::EncodableValue>>(
|
||||
registrar->messenger(), "com.plezy/mpv_player",
|
||||
&flutter::StandardMethodCodec::GetInstance());
|
||||
|
||||
LogToFile("MpvPlayerPlugin: Method channel created");
|
||||
|
||||
method_channel_->SetMethodCallHandler(
|
||||
[this](const auto& call, auto result) {
|
||||
char msg[256];
|
||||
snprintf(msg, sizeof(msg), "MpvPlayerPlugin: Method call received: %s",
|
||||
call.method_name().c_str());
|
||||
LogToFile(msg);
|
||||
HandleMethodCall(call, std::move(result));
|
||||
});
|
||||
|
||||
@@ -100,8 +78,6 @@ void MpvPlayerPlugin::HandleMethodCall(
|
||||
const auto& method = method_call.method_name();
|
||||
|
||||
if (method == "initialize") {
|
||||
LogToFile("MPV Plugin: initialize called");
|
||||
|
||||
// Set up MpvCore for z-order management.
|
||||
if (proc_id_) {
|
||||
registrar_->UnregisterTopLevelWindowProcDelegate(proc_id_.value());
|
||||
@@ -109,15 +85,9 @@ void MpvPlayerPlugin::HandleMethodCall(
|
||||
}
|
||||
|
||||
HWND flutter_window = GetWindow();
|
||||
HWND child_window = GetChildWindow();
|
||||
|
||||
char msg[256];
|
||||
snprintf(msg, sizeof(msg), "MPV Plugin: Flutter window: %p, Child window: %p",
|
||||
flutter_window, child_window);
|
||||
LogToFile(msg);
|
||||
|
||||
MpvCore::SetInstance(
|
||||
std::make_unique<MpvCore>(flutter_window, child_window));
|
||||
std::make_unique<MpvCore>(flutter_window));
|
||||
|
||||
proc_id_ = registrar_->RegisterTopLevelWindowProcDelegate(
|
||||
[](HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam) {
|
||||
@@ -128,27 +98,20 @@ void MpvPlayerPlugin::HandleMethodCall(
|
||||
return std::optional<HRESULT>(std::nullopt);
|
||||
});
|
||||
|
||||
LogToFile("MPV Plugin: Calling EnsureInitialized");
|
||||
MpvCore::GetInstance()->EnsureInitialized();
|
||||
|
||||
// Create player - use the container from MpvCore which was set up by EnsureInitialized
|
||||
player_ = std::make_unique<MpvPlayer>();
|
||||
HWND container = MpvContainer::GetInstance()->handle();
|
||||
|
||||
snprintf(msg, sizeof(msg), "MPV Plugin: Container handle: %p", container);
|
||||
LogToFile(msg);
|
||||
|
||||
if (!container) {
|
||||
LogToFile("MPV Plugin: ERROR - container is null");
|
||||
result->Error("INIT_FAILED", "Failed to create container window");
|
||||
return;
|
||||
}
|
||||
|
||||
LogToFile("MPV Plugin: Initializing player");
|
||||
bool success = player_->Initialize(container, flutter_window);
|
||||
|
||||
if (success) {
|
||||
LogToFile("MPV Plugin: Player initialized successfully");
|
||||
// Set up event callback.
|
||||
player_->SetEventCallback([this](const flutter::EncodableValue& event) {
|
||||
SendEvent(event);
|
||||
@@ -162,7 +125,6 @@ void MpvPlayerPlugin::HandleMethodCall(
|
||||
MpvCore::GetInstance()->SetVisible(false);
|
||||
result->Success(flutter::EncodableValue(true));
|
||||
} else {
|
||||
OutputDebugStringA("MPV Plugin: Player initialization FAILED\n");
|
||||
player_.reset(); // Clear the player so we don't have a half-initialized state
|
||||
result->Error("INIT_FAILED", "Failed to initialize MPV player");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user