Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eff75d2029 | ||
|
|
f9615491b3 | ||
|
|
4252bd88e9 | ||
|
|
00917a0393 | ||
|
|
4cdcd2f2e4 | ||
|
|
27006cfa99 | ||
|
|
bdbd667584 | ||
|
|
4b243d38b9 | ||
|
|
cd31b2e2e6 | ||
|
|
f185ebd554 | ||
|
|
7d679c9d78 | ||
|
|
17184881f3 | ||
|
|
a39a2a25eb | ||
|
|
e0f1695260 | ||
|
|
d0ffd49f69 | ||
|
|
bfb6aa01b9 | ||
|
|
6f273b0aa8 | ||
|
|
3a93ec80ec | ||
|
|
dd0fd1c828 | ||
|
|
ec93062600 | ||
|
|
822333bf34 | ||
|
|
ffc20b26d4 | ||
|
|
3a612df3d3 | ||
|
|
afda61119e | ||
|
|
bb66ab6526 | ||
|
|
ec2b94e367 | ||
|
|
5401b5005f | ||
|
|
d38f7cf78f | ||
|
|
633ce11c88 | ||
|
|
7a3f63683e | ||
|
|
3e6ebcdb6a | ||
|
|
c38c0cf55d | ||
|
|
5d2302b322 | ||
|
|
51a8b971f6 | ||
|
|
3319df4538 | ||
|
|
1e6bd01987 | ||
|
|
e10cc7d273 | ||
|
|
19dea4b31e | ||
|
|
653fada5dc | ||
|
|
65b42bca3f | ||
|
|
5fe5534bae | ||
|
|
f07feaaa52 | ||
|
|
92014404f5 | ||
|
|
e2a7a7ab4b | ||
|
|
cedd448ef2 | ||
|
|
2208d6c637 | ||
|
|
187eeb19d3 | ||
|
|
955c75db60 | ||
|
|
9446f976a4 | ||
|
|
7988c83bec | ||
|
|
ebec3ad20c | ||
|
|
3b18b44cd2 | ||
|
|
cf4fc74d68 | ||
|
|
c75c87f527 | ||
|
|
e71c39271c | ||
|
|
de547884f8 | ||
|
|
4700cc5bd4 | ||
|
|
07d25f5d5f | ||
|
|
1f09c07e96 | ||
|
|
e8769e7059 | ||
|
|
88430ba7b6 | ||
|
|
25a2187bf4 | ||
|
|
fb084d3ea1 | ||
|
|
da7aef4548 | ||
|
|
91c23786f2 | ||
|
|
18a5041334 | ||
|
|
94dbae0af9 | ||
|
|
05c4d6dff3 | ||
|
|
ef2db78310 | ||
|
|
955bc9548c | ||
|
|
ef8026797c | ||
|
|
ed4be7b96d | ||
|
|
fdaff3687d | ||
|
|
f573eda657 | ||
|
|
708a1391e3 | ||
|
|
9e4230597f | ||
|
|
720d0d2604 | ||
|
|
dee12ac336 | ||
|
|
5f9f0964b2 | ||
|
|
bf89925d6a | ||
|
|
aa6e9648bb | ||
|
|
c4b9da0950 | ||
|
|
c7b023222c | ||
|
|
060926b749 | ||
|
|
aa3c83bad1 | ||
|
|
70606c8ac5 | ||
|
|
5010833da9 | ||
|
|
f5901389e0 | ||
|
|
11e1a1464e | ||
|
|
2664caf004 | ||
|
|
8594a7bc52 | ||
|
|
8a7d767e54 | ||
|
|
d09893470f | ||
|
|
a40879849b | ||
|
|
20953152b6 | ||
|
|
876a44b244 | ||
|
|
e9a706fa72 | ||
|
|
8820c0e059 | ||
|
|
45770e1ad6 | ||
|
|
afdec05dbf | ||
|
|
81e036dc4f | ||
|
|
8555254e81 | ||
|
|
1781fc06ae | ||
|
|
810f1e5da5 | ||
|
|
244b291255 | ||
|
|
7fc136f592 | ||
|
|
130e0d6f40 | ||
|
|
8fabf56337 | ||
|
|
b1e218f0ad | ||
|
|
624e8a2991 | ||
|
|
0ac5f49e5e | ||
|
|
de6f8d6cb6 | ||
|
|
b42ee26840 | ||
|
|
50bc245677 | ||
|
|
646832c6b1 | ||
|
|
43242673fb | ||
|
|
87aa7d9d81 | ||
|
|
91d9aad721 | ||
|
|
221902c946 | ||
|
|
8a8c2ecb87 | ||
|
|
f6c6808352 | ||
|
|
036d99f11f | ||
|
|
e78f7cee5e | ||
|
|
f03c84e8dc | ||
|
|
d5a12c404a | ||
|
|
dc74300ef5 | ||
|
|
b2c3fe61b3 | ||
|
|
97e65a811c | ||
|
|
d9d66fe54e | ||
|
|
ed7dae601a | ||
|
|
024af35bf5 | ||
|
|
9bd5732f2b | ||
|
|
117d1b8882 | ||
|
|
f6aad1b8fc | ||
|
|
c602936d2a | ||
|
|
a351ca70ba | ||
|
|
396a5a8453 | ||
|
|
db6d5cadd9 | ||
|
|
5568266c99 | ||
|
|
a605db31f9 | ||
|
|
35ca723c20 | ||
|
|
7057ee93ac | ||
|
|
6cde5b6bd1 | ||
|
|
08564bba20 | ||
|
|
495f2e3640 | ||
|
|
31d2d9dc98 | ||
|
|
68d34f81a0 | ||
|
|
e733a0abc7 | ||
|
|
c800baeb25 | ||
|
|
4080c812d2 |
@@ -0,0 +1,9 @@
|
||||
BasedOnStyle: Google
|
||||
AlignAfterOpenBracket: AlwaysBreak
|
||||
ColumnLimit: 120
|
||||
IndentWidth: 2
|
||||
ContinuationIndentWidth: 4
|
||||
DerivePointerAlignment: false
|
||||
LineEnding: LF
|
||||
PointerAlignment: Left
|
||||
SortIncludes: true
|
||||
@@ -0,0 +1,28 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.{c,cc,cpp,h,hpp,m,mm}]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
[*.dart]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
[*.{kt,kts,java}]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
ij_kotlin_code_style_defaults = KOTLIN_OFFICIAL
|
||||
ktlint_code_style = android_studio
|
||||
ktlint_standard_max-line-length = disabled
|
||||
ktlint_standard_no-wildcard-imports = disabled
|
||||
ktlint_standard_property-naming = disabled
|
||||
|
||||
[*.swift]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
@@ -68,10 +68,21 @@ body:
|
||||
- Windows
|
||||
- macOS
|
||||
- Android TV
|
||||
- tvOS
|
||||
- Linux
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: dropdown
|
||||
id: media-server
|
||||
attributes:
|
||||
label: Media Server
|
||||
description: Are you using Jellyfin or Plex?
|
||||
multiple: true
|
||||
options:
|
||||
- Jellyfin
|
||||
- Plex
|
||||
|
||||
- type: input
|
||||
id: device
|
||||
attributes:
|
||||
|
||||
@@ -54,9 +54,21 @@ body:
|
||||
- Windows
|
||||
- macOS
|
||||
- Android TV
|
||||
- tvOS
|
||||
- Linux
|
||||
- All platforms
|
||||
|
||||
- type: dropdown
|
||||
id: media-server
|
||||
attributes:
|
||||
label: Media Server
|
||||
description: Is this for Jellyfin, Plex, or both?
|
||||
multiple: true
|
||||
options:
|
||||
- Jellyfin
|
||||
- Plex
|
||||
- Both
|
||||
|
||||
- type: textarea
|
||||
id: additional
|
||||
attributes:
|
||||
|
||||
+37
-28
@@ -30,15 +30,14 @@ jobs:
|
||||
with:
|
||||
channel: "stable"
|
||||
cache: true
|
||||
pub-cache: false
|
||||
|
||||
- name: Cache Pub dependencies
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.pub-cache
|
||||
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pub-
|
||||
key: ${{ runner.os }}-${{ runner.arch }}-pub-v2-${{ hashFiles('pubspec.yaml', 'pubspec.lock') }}
|
||||
|
||||
- name: Cache Gradle
|
||||
uses: actions/cache@v4
|
||||
@@ -51,7 +50,7 @@ jobs:
|
||||
${{ runner.os }}-gradle-
|
||||
|
||||
- name: Install dependencies
|
||||
run: flutter pub get
|
||||
run: flutter pub get --enforce-lockfile --no-example
|
||||
|
||||
- name: Configure Android signing
|
||||
run: |
|
||||
@@ -139,15 +138,14 @@ jobs:
|
||||
with:
|
||||
channel: "stable"
|
||||
cache: true
|
||||
pub-cache: false
|
||||
|
||||
- name: Cache Pub dependencies
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.pub-cache
|
||||
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pub-
|
||||
key: ${{ runner.os }}-${{ runner.arch }}-pub-v2-${{ hashFiles('pubspec.yaml', 'pubspec.lock') }}
|
||||
|
||||
- name: Cache CocoaPods
|
||||
uses: actions/cache@v4
|
||||
@@ -161,7 +159,7 @@ jobs:
|
||||
${{ runner.os }}-pods-
|
||||
|
||||
- name: Install dependencies
|
||||
run: flutter pub get
|
||||
run: flutter pub get --enforce-lockfile --no-example
|
||||
|
||||
- name: Build iOS (no codesign)
|
||||
run: flutter build ios --release --no-codesign --dart-define=ENABLE_UPDATE_CHECK=true ${{ env.SENTRY_DART_DEFINE }} ${{ env.GIT_COMMIT_DART_DEFINE }} ${{ env.SENTRY_ENV_DART_DEFINE }} ${{ env.DONATIONS_DART_DEFINE }} --split-debug-info=debug-info/ios
|
||||
@@ -229,15 +227,14 @@ jobs:
|
||||
with:
|
||||
channel: "stable"
|
||||
cache: true
|
||||
pub-cache: false
|
||||
|
||||
- name: Cache Pub dependencies
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.pub-cache
|
||||
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pub-
|
||||
key: ${{ runner.os }}-${{ runner.arch }}-pub-v2-${{ hashFiles('pubspec.yaml', 'pubspec.lock') }}
|
||||
|
||||
- name: Cache CocoaPods
|
||||
uses: actions/cache@v4
|
||||
@@ -251,7 +248,7 @@ jobs:
|
||||
${{ runner.os }}-macos-pods-
|
||||
|
||||
- name: Install dependencies
|
||||
run: flutter pub get
|
||||
run: flutter pub get --enforce-lockfile --no-example
|
||||
|
||||
- name: Build macOS
|
||||
run: flutter build macos --release --dart-define=ENABLE_UPDATE_CHECK=true ${{ env.SENTRY_DART_DEFINE }} ${{ env.GIT_COMMIT_DART_DEFINE }} ${{ env.SENTRY_ENV_DART_DEFINE }} ${{ env.DONATIONS_DART_DEFINE }} --split-debug-info=debug-info/macos
|
||||
@@ -423,18 +420,23 @@ jobs:
|
||||
with:
|
||||
channel: "stable"
|
||||
cache: true
|
||||
pub-cache: false
|
||||
|
||||
- name: Cache Pub dependencies
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~\AppData\Local\Pub\Cache
|
||||
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pub-
|
||||
key: ${{ runner.os }}-${{ runner.arch }}-pub-v2-${{ hashFiles('pubspec.yaml', 'pubspec.lock') }}
|
||||
|
||||
- name: Cache Windows native dependencies
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: build/windows/x64/_deps
|
||||
key: windows-native-x64-${{ hashFiles('windows/CMakeLists.txt') }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: flutter pub get
|
||||
run: flutter pub get --enforce-lockfile --no-example
|
||||
|
||||
- name: Build Windows x64
|
||||
run: flutter build windows --release --dart-define=ENABLE_UPDATE_CHECK=true ${{ env.SENTRY_DART_DEFINE }} ${{ env.GIT_COMMIT_DART_DEFINE }} ${{ env.SENTRY_ENV_DART_DEFINE }} ${{ env.DONATIONS_DART_DEFINE }} --split-debug-info=debug-info/windows-x64
|
||||
@@ -492,7 +494,17 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Cache Windows native dependencies
|
||||
id: windows-native-cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
build/windows/arm64/_deps
|
||||
build/windows/arm64/mpv-dev-arm64
|
||||
key: windows-native-arm64-${{ hashFiles('windows/CMakeLists.txt') }}
|
||||
|
||||
- name: Install 7-Zip
|
||||
if: steps.windows-native-cache.outputs.cache-hit != 'true'
|
||||
run: choco install 7zip -y
|
||||
|
||||
- name: Setup Flutter
|
||||
@@ -500,18 +512,17 @@ jobs:
|
||||
with:
|
||||
channel: "master"
|
||||
cache: true
|
||||
pub-cache: false
|
||||
|
||||
- name: Cache Pub dependencies
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~\AppData\Local\Pub\Cache
|
||||
key: ${{ runner.os }}-arm64-pub-${{ hashFiles('**/pubspec.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-arm64-pub-
|
||||
key: ${{ runner.os }}-${{ runner.arch }}-pub-v2-${{ hashFiles('pubspec.yaml', 'pubspec.lock') }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: flutter pub get
|
||||
run: flutter pub get --no-example
|
||||
|
||||
- name: Build Windows arm64
|
||||
run: flutter build windows --release --dart-define=ENABLE_UPDATE_CHECK=true ${{ env.SENTRY_DART_DEFINE }} ${{ env.GIT_COMMIT_DART_DEFINE }} ${{ env.SENTRY_ENV_DART_DEFINE }} ${{ env.DONATIONS_DART_DEFINE }} --split-debug-info=debug-info/windows-arm64
|
||||
@@ -659,15 +670,14 @@ jobs:
|
||||
with:
|
||||
channel: "stable"
|
||||
cache: true
|
||||
pub-cache: false
|
||||
|
||||
- name: Cache Pub dependencies
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.pub-cache
|
||||
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pub-
|
||||
key: ${{ runner.os }}-${{ runner.arch }}-pub-v2-${{ hashFiles('pubspec.yaml', 'pubspec.lock') }}
|
||||
|
||||
- name: Cache APT packages
|
||||
uses: awalsh128/cache-apt-pkgs-action@latest
|
||||
@@ -695,7 +705,7 @@ jobs:
|
||||
run: sudo gem install fpm
|
||||
|
||||
- name: Install dependencies
|
||||
run: flutter pub get
|
||||
run: flutter pub get --enforce-lockfile --no-example
|
||||
|
||||
- name: Build Linux x64
|
||||
run: flutter build linux --release --dart-define=ENABLE_UPDATE_CHECK=true ${{ env.SENTRY_DART_DEFINE }} ${{ env.GIT_COMMIT_DART_DEFINE }} ${{ env.SENTRY_ENV_DART_DEFINE }} ${{ env.DONATIONS_DART_DEFINE }} --split-debug-info=debug-info/linux-x64
|
||||
@@ -799,15 +809,14 @@ jobs:
|
||||
with:
|
||||
channel: "master"
|
||||
cache: true
|
||||
pub-cache: false
|
||||
|
||||
- name: Cache Pub dependencies
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.pub-cache
|
||||
key: ${{ runner.os }}-arm64-pub-${{ hashFiles('**/pubspec.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-arm64-pub-
|
||||
key: ${{ runner.os }}-${{ runner.arch }}-pub-v2-${{ hashFiles('pubspec.yaml', 'pubspec.lock') }}
|
||||
|
||||
- name: Cache APT packages
|
||||
uses: awalsh128/cache-apt-pkgs-action@latest
|
||||
@@ -835,7 +844,7 @@ jobs:
|
||||
run: sudo gem install fpm
|
||||
|
||||
- name: Install dependencies
|
||||
run: flutter pub get
|
||||
run: flutter pub get --no-example
|
||||
|
||||
- name: Build Linux arm64
|
||||
run: flutter build linux --release --dart-define=ENABLE_UPDATE_CHECK=true ${{ env.SENTRY_DART_DEFINE }} ${{ env.GIT_COMMIT_DART_DEFINE }} ${{ env.SENTRY_ENV_DART_DEFINE }} ${{ env.DONATIONS_DART_DEFINE }} --split-debug-info=debug-info/linux-arm64
|
||||
|
||||
@@ -24,15 +24,14 @@ jobs:
|
||||
with:
|
||||
channel: "stable"
|
||||
cache: true
|
||||
pub-cache: false
|
||||
|
||||
- name: Cache Pub dependencies
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.pub-cache
|
||||
key: ${{ runner.os }}-pub-v2-${{ hashFiles('**/pubspec.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pub-v2-
|
||||
key: ${{ runner.os }}-pub-v3-${{ hashFiles('**/pubspec.yaml', '**/pubspec.lock') }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
@@ -107,15 +106,14 @@ jobs:
|
||||
with:
|
||||
channel: "stable"
|
||||
cache: true
|
||||
pub-cache: false
|
||||
|
||||
- name: Cache Pub dependencies
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.pub-cache
|
||||
key: ${{ runner.os }}-pub-v2-${{ hashFiles('**/pubspec.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pub-v2-
|
||||
key: ${{ runner.os }}-pub-v3-${{ hashFiles('**/pubspec.yaml', '**/pubspec.lock') }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
@@ -130,6 +128,24 @@ jobs:
|
||||
echo "No tests found, skipping test execution"
|
||||
fi
|
||||
|
||||
native-format:
|
||||
name: Native Formatting
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Java
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: "temurin"
|
||||
java-version: "17"
|
||||
|
||||
- name: Verify native formatting
|
||||
run: scripts/format_native.sh --check
|
||||
|
||||
dependency-check:
|
||||
name: Dependency Validation
|
||||
runs-on: ubuntu-latest
|
||||
@@ -144,15 +160,14 @@ jobs:
|
||||
with:
|
||||
channel: "stable"
|
||||
cache: true
|
||||
pub-cache: false
|
||||
|
||||
- name: Cache Pub dependencies
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.pub-cache
|
||||
key: ${{ runner.os }}-pub-v2-${{ hashFiles('**/pubspec.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pub-v2-
|
||||
key: ${{ runner.os }}-pub-v3-${{ hashFiles('**/pubspec.yaml', '**/pubspec.lock') }}
|
||||
|
||||
- name: Verify dependencies
|
||||
run: |
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"indentation" : {
|
||||
"spaces" : 2
|
||||
},
|
||||
"lineLength" : 120,
|
||||
"maximumBlankLines" : 1,
|
||||
"respectsExistingLineBreaks" : true,
|
||||
"rules" : {},
|
||||
"version" : 1
|
||||
}
|
||||
+5
-3
@@ -10,7 +10,8 @@
|
||||
## Development
|
||||
|
||||
- Follow Dart/Flutter conventions
|
||||
- Run `dart format .` to format your code (note: generated files like `*.g.dart` are excluded from CI checks)
|
||||
- Run `dart format .` to format Dart code (note: generated files like `*.g.dart` are excluded from CI checks)
|
||||
- Run `scripts/format_native.sh --fix` to format Kotlin, Swift, C++, C, Objective-C, and native headers
|
||||
- Run `flutter analyze` before submitting to check for issues
|
||||
- Run `flutter test` if tests are available
|
||||
- Test your changes thoroughly
|
||||
@@ -19,8 +20,9 @@
|
||||
|
||||
The project includes automated CI checks that run on all pull requests:
|
||||
|
||||
1. **Code Formatting**: Ensures code follows Dart formatting standards
|
||||
- Run locally: `dart format .` to format all files
|
||||
1. **Code Formatting**: Ensures code follows Dart and native formatting standards
|
||||
- Run locally: `dart format .` to format Dart files
|
||||
- Run locally: `scripts/format_native.sh --fix` to format native files
|
||||
- Note: CI only checks non-generated files (excludes `.g.dart`, `.freezed.dart`)
|
||||
- Generated files are reformatted automatically by build tools
|
||||
|
||||
|
||||
+3
-3
@@ -1,10 +1,10 @@
|
||||
cask "plezy" do
|
||||
version "1.35.1"
|
||||
sha256 "47fbcb070c6d7b8e6df7fd178946cbfa8426d6028541e1b8a9ef85afbeda8d33"
|
||||
version "1.35.2"
|
||||
sha256 "e3a65f5688bd8ac010b0dad2238a24f6f3b4b5a6f5ca2b5127a9e1a817dd73d9"
|
||||
|
||||
url "https://github.com/edde746/plezy/releases/download/#{version}/plezy-macos.dmg"
|
||||
name "Plezy"
|
||||
desc "Modern Plex client built with Flutter"
|
||||
desc "Modern Plex and Jellyfin client built with Flutter"
|
||||
homepage "https://github.com/edde746/plezy"
|
||||
|
||||
livecheck do
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
Plezy
|
||||
</h1>
|
||||
|
||||
A modern Plex client for desktop and mobile. Built with Flutter for native performance and a clean interface.
|
||||
A modern client for Plex and Jellyfin on desktop and mobile. Built with Flutter for native performance and a clean interface.
|
||||
|
||||
<p align="center">
|
||||
<img src="assets/screenshots/macos-home.png" alt="Plezy macOS Home Screen" width="800" />
|
||||
@@ -39,7 +39,7 @@ A modern Plex client for desktop and mobile. Built with Flutter for native perfo
|
||||
|
||||
### <img src="assets/readme_icons/browse.svg" height="20" alt="" align="center" /> Browse & Discover
|
||||
- Libraries, collections, and playlists
|
||||
- Discover hub — On Deck, trending, and personalized recommendations
|
||||
- Discover hub — Continue Watching, Next Up, trending, and recommendations
|
||||
- Cross-server search
|
||||
- Filtering, sorting, and alphabetical jump navigation
|
||||
- Extras — trailers, deleted scenes, behind-the-scenes
|
||||
@@ -49,10 +49,10 @@ A modern Plex client for desktop and mobile. Built with Flutter for native perfo
|
||||
- HDR and Dolby Vision (not Linux)
|
||||
- Full ASS/SSA subtitles with customizable styling
|
||||
- Online subtitle search & download
|
||||
- Audio & subtitle preferences synced with Plex profile
|
||||
- Audio & subtitle preferences synced with your server profile
|
||||
- Progress sync and resume
|
||||
- Auto-play next episode with skip intro / skip credits
|
||||
- Chapter navigation with BIF thumbnail scrub previews
|
||||
- Chapter navigation with thumbnail scrub previews
|
||||
- Playback speed, audio sync offset, sleep timer
|
||||
- Ambient lighting and GLSL shader presets
|
||||
- Picture-in-Picture on Android, iOS, and macOS
|
||||
@@ -60,10 +60,9 @@ A modern Plex client for desktop and mobile. Built with Flutter for native perfo
|
||||
- External player launch (VLC, MX Player, etc.)
|
||||
|
||||
### <img src="assets/readme_icons/live-tv.svg" height="20" alt="" align="center" /> Live TV & DVR
|
||||
- EPG guide grid
|
||||
- Channel tuning with favorites
|
||||
- DVR recording rules and scheduled recordings
|
||||
- Multi-server DVR support
|
||||
- Live TV channel browsing with favorites
|
||||
- Plex DVR support with EPG guide, recording rules, and scheduled recordings
|
||||
- Multi-server Live TV support where available
|
||||
|
||||
### <img src="assets/readme_icons/downloads.svg" height="20" alt="" align="center" /> Downloads & Offline
|
||||
- Download media for offline viewing
|
||||
@@ -76,7 +75,7 @@ A modern Plex client for desktop and mobile. Built with Flutter for native perfo
|
||||
- Real-time play / pause / seek sync
|
||||
|
||||
### <img src="assets/readme_icons/integrations.svg" height="20" alt="" align="center" /> Integrations
|
||||
- Discord Rich Presence
|
||||
- Discord Rich Presence for Plex
|
||||
- Trakt scrobbling
|
||||
- Plezy Remote — control desktop and TV from mobile
|
||||
- Android TV Watch Next row
|
||||
@@ -84,14 +83,14 @@ A modern Plex client for desktop and mobile. Built with Flutter for native perfo
|
||||
### <img src="assets/readme_icons/customization.svg" height="20" alt="" align="center" /> Platform & Customization
|
||||
- Desktop, mobile, and TV — full D-pad, keyboard, and gamepad support
|
||||
- Customizable keyboard shortcuts on desktop
|
||||
- In-app metadata and artwork editing
|
||||
- Plex metadata and artwork editing
|
||||
- Localized in 14 languages
|
||||
|
||||
## Building from Source
|
||||
|
||||
### Prerequisites
|
||||
- Flutter SDK 3.8.1+
|
||||
- A Plex account with server access
|
||||
- A Plex account or Jellyfin server with user credentials
|
||||
|
||||
### Setup
|
||||
|
||||
@@ -114,5 +113,5 @@ dart run build_runner build --delete-conflicting-outputs
|
||||
## Acknowledgments
|
||||
|
||||
- Built with [Flutter](https://flutter.dev)
|
||||
- Designed for [Plex Media Server](https://www.plex.tv)
|
||||
- Supports [Plex Media Server](https://www.plex.tv) and [Jellyfin](https://jellyfin.org)
|
||||
- Playback powered by [mpv](https://mpv.io) via [MPVKit](https://github.com/mpvkit/MPVKit) and [libmpv-android](https://github.com/jarnedemeulemeester/libmpv-android)
|
||||
|
||||
+129
-130
@@ -1,11 +1,11 @@
|
||||
import java.util.Properties
|
||||
import java.io.FileInputStream
|
||||
import java.util.Properties
|
||||
|
||||
plugins {
|
||||
id("com.android.application")
|
||||
id("kotlin-android")
|
||||
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
|
||||
id("dev.flutter.flutter-gradle-plugin")
|
||||
id("com.android.application")
|
||||
id("kotlin-android")
|
||||
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
|
||||
id("dev.flutter.flutter-gradle-plugin")
|
||||
}
|
||||
|
||||
val mpvVersion = "v1.0.7"
|
||||
@@ -13,14 +13,14 @@ val mpvDir = layout.buildDirectory.dir("libmpv").get().asFile
|
||||
val mpvAar = "libmpv-release.aar"
|
||||
|
||||
val downloadLibmpv by tasks.registering {
|
||||
val stamp = File(mpvDir, ".version")
|
||||
outputs.upToDateWhen { stamp.exists() && stamp.readText().trim() == mpvVersion }
|
||||
doLast {
|
||||
mpvDir.mkdirs()
|
||||
val url = "https://github.com/edde746/libmpv-android/releases/download/$mpvVersion/$mpvAar"
|
||||
exec { commandLine("curl", "-sfL", url, "-o", File(mpvDir, mpvAar).absolutePath) }
|
||||
stamp.writeText(mpvVersion)
|
||||
}
|
||||
val stamp = File(mpvDir, ".version")
|
||||
outputs.upToDateWhen { stamp.exists() && stamp.readText().trim() == mpvVersion }
|
||||
doLast {
|
||||
mpvDir.mkdirs()
|
||||
val url = "https://github.com/edde746/libmpv-android/releases/download/$mpvVersion/$mpvAar"
|
||||
exec { commandLine("curl", "-sfL", url, "-o", File(mpvDir, mpvAar).absolutePath) }
|
||||
stamp.writeText(mpvVersion)
|
||||
}
|
||||
}
|
||||
|
||||
val assVersion = "fp-3"
|
||||
@@ -28,165 +28,164 @@ val assDir = layout.buildDirectory.dir("libass").get().asFile
|
||||
val assAars = listOf("lib_ass-release.aar", "lib_ass_kt-release.aar", "lib_ass_media-release.aar")
|
||||
|
||||
val downloadLibass by tasks.registering {
|
||||
val stamp = File(assDir, ".version")
|
||||
outputs.upToDateWhen { stamp.exists() && stamp.readText().trim() == assVersion }
|
||||
doLast {
|
||||
assDir.mkdirs()
|
||||
val baseUrl = "https://github.com/edde746/libass-android/releases/download/$assVersion"
|
||||
assAars.forEach { name ->
|
||||
val dest = File(assDir, name)
|
||||
exec { commandLine("curl", "-sfL", "$baseUrl/$name", "-o", dest.absolutePath) }
|
||||
}
|
||||
stamp.writeText(assVersion)
|
||||
val stamp = File(assDir, ".version")
|
||||
outputs.upToDateWhen { stamp.exists() && stamp.readText().trim() == assVersion }
|
||||
doLast {
|
||||
assDir.mkdirs()
|
||||
val baseUrl = "https://github.com/edde746/libass-android/releases/download/$assVersion"
|
||||
assAars.forEach { name ->
|
||||
val dest = File(assDir, name)
|
||||
exec { commandLine("curl", "-sfL", "$baseUrl/$name", "-o", dest.absolutePath) }
|
||||
}
|
||||
stamp.writeText(assVersion)
|
||||
}
|
||||
}
|
||||
|
||||
val doviVersion = "2.3.1"
|
||||
val doviDir = layout.buildDirectory.dir("libdovi").get().asFile
|
||||
val doviAbis = mapOf(
|
||||
"arm64-v8a" to "aarch64-linux-android",
|
||||
"armeabi-v7a" to "armv7-linux-androideabi",
|
||||
"x86" to "i686-linux-android",
|
||||
"x86_64" to "x86_64-linux-android",
|
||||
"arm64-v8a" to "aarch64-linux-android",
|
||||
"armeabi-v7a" to "armv7-linux-androideabi",
|
||||
"x86" to "i686-linux-android",
|
||||
"x86_64" to "x86_64-linux-android"
|
||||
)
|
||||
|
||||
val downloadLibdovi by tasks.registering {
|
||||
val stamp = File(doviDir, ".version")
|
||||
outputs.upToDateWhen { stamp.exists() && stamp.readText().trim() == doviVersion }
|
||||
doLast {
|
||||
doviDir.mkdirs()
|
||||
val baseUrl = "https://github.com/edde746/libdovi-builds/releases/download/v$doviVersion"
|
||||
doviAbis.forEach { (abi, triple) ->
|
||||
val archive = File(doviDir, "$triple.tar.gz")
|
||||
exec { commandLine("curl", "-sfL", "$baseUrl/libdovi-$triple.tar.gz", "-o", archive.absolutePath) }
|
||||
val outDir = File(doviDir, "$abi/lib")
|
||||
outDir.mkdirs()
|
||||
exec { commandLine("tar", "-xzf", archive.absolutePath, "-C", outDir.absolutePath) }
|
||||
archive.delete()
|
||||
}
|
||||
stamp.writeText(doviVersion)
|
||||
val stamp = File(doviDir, ".version")
|
||||
outputs.upToDateWhen { stamp.exists() && stamp.readText().trim() == doviVersion }
|
||||
doLast {
|
||||
doviDir.mkdirs()
|
||||
val baseUrl = "https://github.com/edde746/libdovi-builds/releases/download/v$doviVersion"
|
||||
doviAbis.forEach { (abi, triple) ->
|
||||
val archive = File(doviDir, "$triple.tar.gz")
|
||||
exec { commandLine("curl", "-sfL", "$baseUrl/libdovi-$triple.tar.gz", "-o", archive.absolutePath) }
|
||||
val outDir = File(doviDir, "$abi/lib")
|
||||
outDir.mkdirs()
|
||||
exec { commandLine("tar", "-xzf", archive.absolutePath, "-C", outDir.absolutePath) }
|
||||
archive.delete()
|
||||
}
|
||||
stamp.writeText(doviVersion)
|
||||
}
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.edde746.plezy"
|
||||
compileSdk = flutter.compileSdkVersion
|
||||
ndkVersion = flutter.ndkVersion
|
||||
namespace = "com.edde746.plezy"
|
||||
compileSdk = flutter.compileSdkVersion
|
||||
ndkVersion = flutter.ndkVersion
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_11
|
||||
targetCompatibility = JavaVersion.VERSION_11
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_11
|
||||
targetCompatibility = JavaVersion.VERSION_11
|
||||
}
|
||||
|
||||
kotlinOptions {
|
||||
jvmTarget = JavaVersion.VERSION_11.toString()
|
||||
}
|
||||
kotlinOptions {
|
||||
jvmTarget = JavaVersion.VERSION_11.toString()
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
applicationId = "com.edde746.plezy"
|
||||
// You can update the following values to match your application needs.
|
||||
// For more information, see: https://flutter.dev/to/review-gradle-config.
|
||||
minSdk = 25 // Fire OS 6.x (API 25); overrides libmpv-android's minSdk=26
|
||||
targetSdk = flutter.targetSdkVersion
|
||||
versionCode = flutter.versionCode
|
||||
versionName = flutter.versionName
|
||||
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
arguments += listOf(
|
||||
"-DDOVI_ENABLE_LIBDOVI=ON",
|
||||
"-DDOVI_LIBDOVI_PREBUILT_ROOT=${doviDir.absolutePath}"
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
if (System.getenv("AMAZON") != null) {
|
||||
versionCode = (flutter.versionCode ?: 0) + 3000
|
||||
ndk {
|
||||
abiFilters += listOf("armeabi-v7a", "arm64-v8a")
|
||||
}
|
||||
}
|
||||
}
|
||||
defaultConfig {
|
||||
applicationId = "com.edde746.plezy"
|
||||
// You can update the following values to match your application needs.
|
||||
// For more information, see: https://flutter.dev/to/review-gradle-config.
|
||||
minSdk = 25 // Fire OS 6.x (API 25); overrides libmpv-android's minSdk=26
|
||||
targetSdk = flutter.targetSdkVersion
|
||||
versionCode = flutter.versionCode
|
||||
versionName = flutter.versionName
|
||||
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
path = file("src/main/cpp/CMakeLists.txt")
|
||||
}
|
||||
cmake {
|
||||
arguments += listOf(
|
||||
"-DDOVI_ENABLE_LIBDOVI=ON",
|
||||
"-DDOVI_LIBDOVI_PREBUILT_ROOT=${doviDir.absolutePath}"
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
create("release") {
|
||||
val keystorePropertiesFile = rootProject.file("key.properties")
|
||||
if (keystorePropertiesFile.exists()) {
|
||||
val keystoreProperties = Properties()
|
||||
keystoreProperties.load(FileInputStream(keystorePropertiesFile))
|
||||
|
||||
keyAlias = keystoreProperties["keyAlias"] as String
|
||||
keyPassword = keystoreProperties["keyPassword"] as String
|
||||
storeFile = file(keystoreProperties["storeFile"] as String)
|
||||
storePassword = keystoreProperties["storePassword"] as String
|
||||
}
|
||||
}
|
||||
if (System.getenv("AMAZON") != null) {
|
||||
versionCode = (flutter.versionCode ?: 0) + 3000
|
||||
ndk {
|
||||
abiFilters += listOf("armeabi-v7a", "arm64-v8a")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
// Only use release signing if key.properties exists (not in CI/CD)
|
||||
val keystorePropertiesFile = rootProject.file("key.properties")
|
||||
if (keystorePropertiesFile.exists()) {
|
||||
signingConfig = signingConfigs.getByName("release")
|
||||
}
|
||||
// If key.properties doesn't exist, it will use debug signing for CI builds
|
||||
ndk {
|
||||
debugSymbolLevel = "FULL"
|
||||
}
|
||||
}
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
path = file("src/main/cpp/CMakeLists.txt")
|
||||
}
|
||||
}
|
||||
|
||||
packaging {
|
||||
jniLibs {
|
||||
// Resolve conflict between libass-android and libmpv native libraries
|
||||
pickFirsts.add("lib/*/libc++_shared.so")
|
||||
}
|
||||
signingConfigs {
|
||||
create("release") {
|
||||
val keystorePropertiesFile = rootProject.file("key.properties")
|
||||
if (keystorePropertiesFile.exists()) {
|
||||
val keystoreProperties = Properties()
|
||||
keystoreProperties.load(FileInputStream(keystorePropertiesFile))
|
||||
|
||||
keyAlias = keystoreProperties["keyAlias"] as String
|
||||
keyPassword = keystoreProperties["keyPassword"] as String
|
||||
storeFile = file(keystoreProperties["storeFile"] as String)
|
||||
storePassword = keystoreProperties["storePassword"] as String
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
// Only use release signing if key.properties exists (not in CI/CD)
|
||||
val keystorePropertiesFile = rootProject.file("key.properties")
|
||||
if (keystorePropertiesFile.exists()) {
|
||||
signingConfig = signingConfigs.getByName("release")
|
||||
}
|
||||
// If key.properties doesn't exist, it will use debug signing for CI builds
|
||||
ndk {
|
||||
debugSymbolLevel = "FULL"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
packaging {
|
||||
jniLibs {
|
||||
// Resolve conflict between libass-android and libmpv native libraries
|
||||
pickFirsts.add("lib/*/libc++_shared.so")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
flutter {
|
||||
source = "../.."
|
||||
source = "../.."
|
||||
}
|
||||
|
||||
// Download libdovi before any CMake/native build task
|
||||
tasks.matching { it.name.contains("CMake") || it.name.contains("externalNative") }.configureEach {
|
||||
dependsOn(downloadLibdovi)
|
||||
dependsOn(downloadLibdovi)
|
||||
}
|
||||
|
||||
// Download libmpv and libass AARs before compilation
|
||||
tasks.matching { it.name.startsWith("pre") && it.name.endsWith("Build") }.configureEach {
|
||||
dependsOn(downloadLibmpv)
|
||||
dependsOn(downloadLibass)
|
||||
dependsOn(downloadLibmpv)
|
||||
dependsOn(downloadLibass)
|
||||
}
|
||||
|
||||
|
||||
dependencies {
|
||||
implementation(files(File(mpvDir, mpvAar)))
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0")
|
||||
implementation(files(File(mpvDir, mpvAar)))
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0")
|
||||
|
||||
// Android TV Watch Next integration
|
||||
implementation("androidx.tvprovider:tvprovider:1.0.0")
|
||||
// Android TV Watch Next integration
|
||||
implementation("androidx.tvprovider:tvprovider:1.0.0")
|
||||
|
||||
// Media3 ExoPlayer for Android
|
||||
implementation("androidx.media3:media3-exoplayer:1.9.2")
|
||||
implementation("androidx.media3:media3-exoplayer-hls:1.9.2")
|
||||
implementation("androidx.media3:media3-ui:1.9.2")
|
||||
implementation("androidx.media3:media3-common:1.9.2")
|
||||
// Media3 ExoPlayer for Android
|
||||
implementation("androidx.media3:media3-exoplayer:1.9.2")
|
||||
implementation("androidx.media3:media3-exoplayer-hls:1.9.2")
|
||||
implementation("androidx.media3:media3-ui:1.9.2")
|
||||
implementation("androidx.media3:media3-common:1.9.2")
|
||||
|
||||
// Cronet for HTTP/2 multiplexing + better connection management
|
||||
implementation("androidx.media3:media3-datasource-cronet:1.9.2")
|
||||
implementation("org.chromium.net:cronet-embedded:143.7445.0")
|
||||
// Cronet for HTTP/2 multiplexing + better connection management
|
||||
implementation("androidx.media3:media3-datasource-cronet:1.9.2")
|
||||
implementation("org.chromium.net:cronet-embedded:143.7445.0")
|
||||
|
||||
// FFmpeg audio decoder for unsupported codecs (ALAC, DTS, TrueHD, etc.)
|
||||
implementation("org.jellyfin.media3:media3-ffmpeg-decoder:1.9.0+1")
|
||||
// FFmpeg audio decoder for unsupported codecs (ALAC, DTS, TrueHD, etc.)
|
||||
implementation("org.jellyfin.media3:media3-ffmpeg-decoder:1.9.0+1")
|
||||
|
||||
// libass-android for ASS/SSA subtitle rendering
|
||||
assAars.forEach { implementation(files(File(assDir, it))) }
|
||||
// libass-android for ASS/SSA subtitle rendering
|
||||
assAars.forEach { implementation(files(File(assDir, it))) }
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
<!-- 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"/>
|
||||
<uses-permission android:name="android.permission.REORDER_TASKS"/>
|
||||
|
||||
<!-- Background download notifications and foreground service -->
|
||||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
#include <jni.h>
|
||||
#include <android/log.h>
|
||||
#include <jni.h>
|
||||
|
||||
#include <cstring>
|
||||
#include <new>
|
||||
#include <vector>
|
||||
|
||||
#define TAG "DoviBridge"
|
||||
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO, TAG, __VA_ARGS__)
|
||||
@@ -12,115 +14,133 @@
|
||||
#endif
|
||||
|
||||
static const char* BRIDGE_VERSION = "1.0.0";
|
||||
static constexpr jint CONVERT_FAILED = -1;
|
||||
static constexpr jint DESTINATION_TOO_SMALL = -2;
|
||||
static constexpr jint MAX_RPU_INPUT_SIZE = 8192;
|
||||
static constexpr size_t MAX_RPU_OUTPUT_SIZE = 16384;
|
||||
|
||||
extern "C" JNIEXPORT jbyteArray JNICALL
|
||||
Java_com_edde746_plezy_exoplayer_DoviBridge_nativeConvertDv7RpuToDv81(
|
||||
JNIEnv *env, jclass, jbyteArray payload, jint mode) {
|
||||
extern "C" JNIEXPORT jint JNICALL Java_com_edde746_plezy_exoplayer_DoviBridge_nativeConvertDv7RpuToDv81(
|
||||
JNIEnv* env, jclass, jbyteArray payload, jint payload_offset, jint payload_length, jbyteArray output,
|
||||
jint output_offset, jint output_capacity, jint mode) {
|
||||
#if !DOVI_REAL_LINKED
|
||||
return nullptr;
|
||||
return CONVERT_FAILED;
|
||||
#else
|
||||
if (payload == nullptr) return nullptr;
|
||||
if (payload == nullptr || output == nullptr) return CONVERT_FAILED;
|
||||
if (payload_offset < 0 || payload_length <= 0 || output_offset < 0 || output_capacity < 0) {
|
||||
return CONVERT_FAILED;
|
||||
}
|
||||
|
||||
jsize len = env->GetArrayLength(payload);
|
||||
if (len <= 0) return nullptr;
|
||||
const jsize payload_array_len = env->GetArrayLength(payload);
|
||||
const jsize output_array_len = env->GetArrayLength(output);
|
||||
if (payload_offset > payload_array_len || payload_length > payload_array_len - payload_offset) {
|
||||
return CONVERT_FAILED;
|
||||
}
|
||||
if (output_offset > output_array_len) return DESTINATION_TOO_SMALL;
|
||||
|
||||
// Valid RPU NALs are typically <2 KiB; reject unreasonable sizes
|
||||
if (len > 8192) {
|
||||
LOGW("RPU payload too large (%d bytes), skipping", len);
|
||||
return nullptr;
|
||||
}
|
||||
const jsize logical_output_len = output_capacity < output_array_len ? output_capacity : output_array_len;
|
||||
if (output_offset > logical_output_len) return DESTINATION_TOO_SMALL;
|
||||
|
||||
// Copy to native heap so libdovi never touches JVM heap memory.
|
||||
// GetByteArrayElements on ART may return a direct heap pointer; any
|
||||
// out-of-bounds access by libdovi would corrupt adjacent JVM objects.
|
||||
auto *buf = new (std::nothrow) uint8_t[static_cast<size_t>(len)];
|
||||
if (buf == nullptr) return nullptr;
|
||||
// Valid RPU NALs are typically <2 KiB; reject unreasonable sizes
|
||||
if (payload_length > MAX_RPU_INPUT_SIZE) {
|
||||
LOGW("RPU payload too large (%d bytes), skipping", payload_length);
|
||||
return CONVERT_FAILED;
|
||||
}
|
||||
|
||||
env->GetByteArrayRegion(payload, 0, len, reinterpret_cast<jbyte *>(buf));
|
||||
if (env->ExceptionCheck()) {
|
||||
delete[] buf;
|
||||
return nullptr;
|
||||
}
|
||||
// Copy to native heap so libdovi never touches JVM heap memory.
|
||||
// Do not use GetPrimitiveArrayCritical here: it can block concurrent GC
|
||||
// compaction during sustained playback. A thread-local scratch buffer avoids
|
||||
// per-frame heap churn while keeping libdovi away from JVM heap memory.
|
||||
thread_local std::vector<uint8_t> scratch;
|
||||
try {
|
||||
scratch.resize(static_cast<size_t>(payload_length));
|
||||
} catch (...) {
|
||||
return CONVERT_FAILED;
|
||||
}
|
||||
|
||||
// Try dovi_parse_unspec62_nalu first (handles escaped NALs), fallback to dovi_parse_rpu
|
||||
DoviRpuOpaque *rpu = dovi_parse_unspec62_nalu(buf, static_cast<size_t>(len));
|
||||
env->GetByteArrayRegion(payload, payload_offset, payload_length, reinterpret_cast<jbyte*>(scratch.data()));
|
||||
if (env->ExceptionCheck()) {
|
||||
return CONVERT_FAILED;
|
||||
}
|
||||
|
||||
// Try dovi_parse_unspec62_nalu first (handles escaped NALs), fallback to dovi_parse_rpu
|
||||
const auto rpu_len = static_cast<size_t>(payload_length);
|
||||
DoviRpuOpaque* rpu = dovi_parse_unspec62_nalu(scratch.data(), rpu_len);
|
||||
|
||||
if (rpu == nullptr) {
|
||||
return CONVERT_FAILED;
|
||||
}
|
||||
|
||||
const char* err = dovi_rpu_get_error(rpu);
|
||||
if (err != nullptr) {
|
||||
// Fallback: try dovi_parse_rpu (raw RPU without NAL framing)
|
||||
dovi_rpu_free(rpu);
|
||||
rpu = dovi_parse_rpu(scratch.data(), rpu_len);
|
||||
if (rpu == nullptr) {
|
||||
delete[] buf;
|
||||
return nullptr;
|
||||
return CONVERT_FAILED;
|
||||
}
|
||||
|
||||
const char *err = dovi_rpu_get_error(rpu);
|
||||
err = dovi_rpu_get_error(rpu);
|
||||
if (err != nullptr) {
|
||||
// Fallback: try dovi_parse_rpu (raw RPU without NAL framing)
|
||||
dovi_rpu_free(rpu);
|
||||
rpu = dovi_parse_rpu(buf, static_cast<size_t>(len));
|
||||
if (rpu == nullptr) {
|
||||
delete[] buf;
|
||||
return nullptr;
|
||||
}
|
||||
err = dovi_rpu_get_error(rpu);
|
||||
if (err != nullptr) {
|
||||
LOGW("RPU parse failed: %s", err);
|
||||
dovi_rpu_free(rpu);
|
||||
delete[] buf;
|
||||
return nullptr;
|
||||
}
|
||||
LOGW("RPU parse failed: %s", err);
|
||||
dovi_rpu_free(rpu);
|
||||
return CONVERT_FAILED;
|
||||
}
|
||||
}
|
||||
|
||||
delete[] buf;
|
||||
// Convert to target profile (mode 2 = P8.1 with no-op curves)
|
||||
int32_t ret = dovi_convert_rpu_with_mode(rpu, static_cast<uint8_t>(mode));
|
||||
if (ret != 0) {
|
||||
err = dovi_rpu_get_error(rpu);
|
||||
LOGW("RPU conversion failed (mode %d): %s", mode, err ? err : "unknown");
|
||||
dovi_rpu_free(rpu);
|
||||
return CONVERT_FAILED;
|
||||
}
|
||||
|
||||
// Convert to target profile (mode 2 = P8.1 with no-op curves)
|
||||
int32_t ret = dovi_convert_rpu_with_mode(rpu, static_cast<uint8_t>(mode));
|
||||
if (ret != 0) {
|
||||
err = dovi_rpu_get_error(rpu);
|
||||
LOGW("RPU conversion failed (mode %d): %s", mode, err ? err : "unknown");
|
||||
dovi_rpu_free(rpu);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// Write back as UNSPEC62 NAL
|
||||
const DoviData *out = dovi_write_unspec62_nalu(rpu);
|
||||
if (out == nullptr || out->data == nullptr || out->len == 0) {
|
||||
err = dovi_rpu_get_error(rpu);
|
||||
LOGW("RPU write failed: %s", err ? err : "unknown");
|
||||
if (out != nullptr) dovi_data_free(out);
|
||||
dovi_rpu_free(rpu);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
if (out->len > 16384) {
|
||||
LOGW("RPU output unexpectedly large (%zu bytes), discarding", out->len);
|
||||
dovi_data_free(out);
|
||||
dovi_rpu_free(rpu);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
jbyteArray result = env->NewByteArray(static_cast<jsize>(out->len));
|
||||
if (result != nullptr) {
|
||||
env->SetByteArrayRegion(result, 0, static_cast<jsize>(out->len),
|
||||
reinterpret_cast<const jbyte *>(out->data));
|
||||
}
|
||||
// Write back as UNSPEC62 NAL
|
||||
const DoviData* out = dovi_write_unspec62_nalu(rpu);
|
||||
if (out == nullptr || out->data == nullptr || out->len == 0) {
|
||||
err = dovi_rpu_get_error(rpu);
|
||||
LOGW("RPU write failed: %s", err ? err : "unknown");
|
||||
if (out != nullptr) dovi_data_free(out);
|
||||
dovi_rpu_free(rpu);
|
||||
return CONVERT_FAILED;
|
||||
}
|
||||
|
||||
if (out->len > MAX_RPU_OUTPUT_SIZE) {
|
||||
LOGW("RPU output unexpectedly large (%zu bytes), discarding", out->len);
|
||||
dovi_data_free(out);
|
||||
dovi_rpu_free(rpu);
|
||||
return CONVERT_FAILED;
|
||||
}
|
||||
|
||||
return result;
|
||||
const auto writable = static_cast<size_t>(logical_output_len - output_offset);
|
||||
if (out->len > writable) {
|
||||
dovi_data_free(out);
|
||||
dovi_rpu_free(rpu);
|
||||
return DESTINATION_TOO_SMALL;
|
||||
}
|
||||
|
||||
env->SetByteArrayRegion(
|
||||
output, output_offset, static_cast<jsize>(out->len), reinterpret_cast<const jbyte*>(out->data));
|
||||
const bool write_failed = env->ExceptionCheck();
|
||||
const auto written = static_cast<jint>(out->len);
|
||||
|
||||
dovi_data_free(out);
|
||||
dovi_rpu_free(rpu);
|
||||
|
||||
return write_failed ? CONVERT_FAILED : written;
|
||||
#endif
|
||||
}
|
||||
|
||||
extern "C" JNIEXPORT jboolean JNICALL
|
||||
Java_com_edde746_plezy_exoplayer_DoviBridge_nativeIsConversionPathReady(
|
||||
JNIEnv *, jclass) {
|
||||
Java_com_edde746_plezy_exoplayer_DoviBridge_nativeIsConversionPathReady(JNIEnv*, jclass) {
|
||||
#if DOVI_REAL_LINKED
|
||||
return JNI_TRUE;
|
||||
return JNI_TRUE;
|
||||
#else
|
||||
return JNI_FALSE;
|
||||
return JNI_FALSE;
|
||||
#endif
|
||||
}
|
||||
|
||||
extern "C" JNIEXPORT jstring JNICALL
|
||||
Java_com_edde746_plezy_exoplayer_DoviBridge_nativeGetBridgeVersion(
|
||||
JNIEnv *env, jclass) {
|
||||
return env->NewStringUTF(BRIDGE_VERSION);
|
||||
Java_com_edde746_plezy_exoplayer_DoviBridge_nativeGetBridgeVersion(JNIEnv* env, jclass) {
|
||||
return env->NewStringUTF(BRIDGE_VERSION);
|
||||
}
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
package com.edde746.plezy
|
||||
|
||||
import android.content.Intent
|
||||
import android.net.Uri
|
||||
import android.os.Build
|
||||
import android.os.Bundle
|
||||
import android.app.ActivityManager
|
||||
import android.app.AppOpsManager
|
||||
import android.app.PictureInPictureParams
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.content.pm.PackageManager
|
||||
import android.content.res.Configuration
|
||||
import android.net.Uri
|
||||
import android.os.Build
|
||||
import android.os.Bundle
|
||||
import android.util.Log
|
||||
import android.util.Rational
|
||||
import android.view.KeyEvent
|
||||
@@ -15,347 +17,444 @@ import android.view.ViewGroup
|
||||
import android.view.inputmethod.InputMethodManager
|
||||
import android.widget.FrameLayout
|
||||
import androidx.core.content.FileProvider
|
||||
import io.flutter.embedding.android.FlutterActivity
|
||||
import io.flutter.embedding.engine.FlutterShellArgs
|
||||
import io.flutter.embedding.android.RenderMode
|
||||
import io.flutter.embedding.android.TransparencyMode
|
||||
import io.flutter.embedding.engine.FlutterEngine
|
||||
import io.flutter.plugin.common.MethodChannel
|
||||
import com.edde746.plezy.exoplayer.ExoPlayerPlugin
|
||||
import com.edde746.plezy.mpv.MpvPlayerPlugin
|
||||
import com.edde746.plezy.shared.ThemeHelper
|
||||
import com.edde746.plezy.watchnext.WatchNextPlugin
|
||||
import io.flutter.embedding.android.FlutterActivity
|
||||
import io.flutter.embedding.android.RenderMode
|
||||
import io.flutter.embedding.android.TransparencyMode
|
||||
import io.flutter.embedding.engine.FlutterEngine
|
||||
import io.flutter.embedding.engine.FlutterShellArgs
|
||||
import io.flutter.plugin.common.MethodChannel
|
||||
import java.io.File
|
||||
|
||||
class MainActivity : FlutterActivity() {
|
||||
|
||||
companion object {
|
||||
private const val TAG = "MainActivity"
|
||||
var usingSkia = false
|
||||
companion object {
|
||||
private const val TAG = "MainActivity"
|
||||
var usingSkia = false
|
||||
}
|
||||
|
||||
private val PIP_CHANNEL = "com.plezy/pip"
|
||||
private val EXTERNAL_PLAYER_CHANNEL = "com.plezy/external_player"
|
||||
private val THEME_CHANNEL = "com.plezy/theme"
|
||||
private val DEVICE_CHANNEL = "com.plezy/device"
|
||||
private val APP_EXIT_CHANNEL = "com.plezy/app_exit"
|
||||
private val APP_FOREGROUND_CHANNEL = "com.plezy/app_foreground"
|
||||
private var watchNextPlugin: WatchNextPlugin? = null
|
||||
|
||||
// Auto PiP state
|
||||
private var autoPipReady = false
|
||||
private var autoPipWidth: Int = 16
|
||||
private var autoPipHeight: Int = 9
|
||||
|
||||
private fun isAndroidTvDevice(): Boolean = getAndroidTvDetection()["isTv"] as Boolean
|
||||
|
||||
private fun getAndroidTvDetection(): Map<String, Any> {
|
||||
val pm = packageManager
|
||||
val uiModeType = resources.configuration.uiMode and Configuration.UI_MODE_TYPE_MASK
|
||||
val isTelevisionUiMode = uiModeType == Configuration.UI_MODE_TYPE_TELEVISION
|
||||
|
||||
@Suppress("DEPRECATION")
|
||||
val hasTelevisionFeature = pm.hasSystemFeature(PackageManager.FEATURE_TELEVISION)
|
||||
val hasLeanback = pm.hasSystemFeature(PackageManager.FEATURE_LEANBACK)
|
||||
val hasFireTvFeature = pm.hasSystemFeature("amazon.hardware.fire_tv")
|
||||
val hasTouchscreen = pm.hasSystemFeature(PackageManager.FEATURE_TOUCHSCREEN)
|
||||
val hasFakeTouch = pm.hasSystemFeature(PackageManager.FEATURE_FAKETOUCH)
|
||||
|
||||
val reasons = mutableListOf<String>()
|
||||
if (isTelevisionUiMode) reasons.add("ui_mode_television")
|
||||
if (hasTelevisionFeature) reasons.add("television_feature")
|
||||
if (hasLeanback) reasons.add("leanback")
|
||||
if (hasFireTvFeature) reasons.add("fire_tv")
|
||||
if (!hasTouchscreen) reasons.add("no_touchscreen")
|
||||
|
||||
return mapOf(
|
||||
"isTv" to reasons.isNotEmpty(),
|
||||
"reasons" to reasons,
|
||||
"isTelevisionUiMode" to isTelevisionUiMode,
|
||||
"hasTelevisionFeature" to hasTelevisionFeature,
|
||||
"hasLeanback" to hasLeanback,
|
||||
"hasFireTvFeature" to hasFireTvFeature,
|
||||
"hasTouchscreen" to hasTouchscreen,
|
||||
"hasFakeTouch" to hasFakeTouch,
|
||||
"manufacturer" to Build.MANUFACTURER,
|
||||
"model" to Build.MODEL
|
||||
)
|
||||
}
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
// Apply persisted theme color to the window background before anything
|
||||
// else renders. This prevents a white flash between the native splash
|
||||
// screen and Flutter's first frame for non-default themes (e.g. OLED).
|
||||
val prefs = getSharedPreferences("plezy_prefs", Context.MODE_PRIVATE)
|
||||
val savedTheme = prefs.getString("splash_theme", null)
|
||||
ThemeHelper.themeColor(savedTheme)?.let { window.decorView.setBackgroundColor(it) }
|
||||
|
||||
super.onCreate(savedInstanceState)
|
||||
|
||||
// Disable the Android splash screen fade-out animation to avoid
|
||||
// a flicker before Flutter draws its first frame.
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
|
||||
splashScreen.setOnExitAnimationListener { splashScreenView -> splashScreenView.remove() }
|
||||
}
|
||||
|
||||
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
|
||||
private var autoPipReady = false
|
||||
private var autoPipWidth: Int = 16
|
||||
private var autoPipHeight: Int = 9
|
||||
|
||||
private fun isAndroidTvDevice(): Boolean {
|
||||
return packageManager.hasSystemFeature("android.software.leanback")
|
||||
// Disable Android's default focus highlight ring that appears when using
|
||||
// D-pad navigation so the Flutter UI can render its own focus state.
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
window.decorView.defaultFocusHighlightEnabled = false
|
||||
}
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
// Apply persisted theme color to the window background before anything
|
||||
// else renders. This prevents a white flash between the native splash
|
||||
// screen and Flutter's first frame for non-default themes (e.g. OLED).
|
||||
val prefs = getSharedPreferences("plezy_prefs", Context.MODE_PRIVATE)
|
||||
val savedTheme = prefs.getString("splash_theme", null)
|
||||
ThemeHelper.themeColor(savedTheme)?.let { window.decorView.setBackgroundColor(it) }
|
||||
|
||||
super.onCreate(savedInstanceState)
|
||||
|
||||
// Disable the Android splash screen fade-out animation to avoid
|
||||
// a flicker before Flutter draws its first frame.
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
|
||||
splashScreen.setOnExitAnimationListener { splashScreenView -> splashScreenView.remove() }
|
||||
}
|
||||
|
||||
// Disable Android's default focus highlight ring that appears when using
|
||||
// D-pad navigation so the Flutter UI can render its own focus state.
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
window.decorView.defaultFocusHighlightEnabled = false
|
||||
}
|
||||
|
||||
// Wrap the content view in a layout that intercepts DPAD key events
|
||||
// before the IME input stage, which can consume DPAD direction events
|
||||
// from virtual remotes before they reach Flutter's key handler.
|
||||
val content = findViewById<ViewGroup>(android.R.id.content)
|
||||
val wrapper = object : FrameLayout(this) {
|
||||
override fun dispatchKeyEventPreIme(event: KeyEvent): Boolean {
|
||||
when (event.keyCode) {
|
||||
KeyEvent.KEYCODE_DPAD_UP,
|
||||
KeyEvent.KEYCODE_DPAD_DOWN,
|
||||
KeyEvent.KEYCODE_DPAD_LEFT,
|
||||
KeyEvent.KEYCODE_DPAD_RIGHT,
|
||||
KeyEvent.KEYCODE_DPAD_CENTER -> {
|
||||
val imm = context.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
|
||||
if (!imm.isAcceptingText) {
|
||||
super.dispatchKeyEvent(event)
|
||||
return true
|
||||
}
|
||||
}
|
||||
}
|
||||
return super.dispatchKeyEventPreIme(event)
|
||||
// Wrap the content view in a layout that intercepts DPAD key events
|
||||
// before the IME input stage, which can consume DPAD direction events
|
||||
// from virtual remotes before they reach Flutter's key handler.
|
||||
val content = findViewById<ViewGroup>(android.R.id.content)
|
||||
val wrapper = object : FrameLayout(this) {
|
||||
override fun dispatchKeyEventPreIme(event: KeyEvent): Boolean {
|
||||
when (event.keyCode) {
|
||||
KeyEvent.KEYCODE_DPAD_UP,
|
||||
KeyEvent.KEYCODE_DPAD_DOWN,
|
||||
KeyEvent.KEYCODE_DPAD_LEFT,
|
||||
KeyEvent.KEYCODE_DPAD_RIGHT,
|
||||
KeyEvent.KEYCODE_DPAD_CENTER -> {
|
||||
val imm = context.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
|
||||
if (!imm.isAcceptingText) {
|
||||
super.dispatchKeyEvent(event)
|
||||
return true
|
||||
}
|
||||
}
|
||||
}
|
||||
while (content.childCount > 0) {
|
||||
val child = content.getChildAt(0)
|
||||
content.removeViewAt(0)
|
||||
wrapper.addView(child)
|
||||
return super.dispatchKeyEventPreIme(event)
|
||||
}
|
||||
}
|
||||
while (content.childCount > 0) {
|
||||
val child = content.getChildAt(0)
|
||||
content.removeViewAt(0)
|
||||
wrapper.addView(child)
|
||||
}
|
||||
content.addView(
|
||||
wrapper,
|
||||
ViewGroup.LayoutParams(
|
||||
ViewGroup.LayoutParams.MATCH_PARENT,
|
||||
ViewGroup.LayoutParams.MATCH_PARENT
|
||||
)
|
||||
)
|
||||
|
||||
// Handle Watch Next deep link from initial launch
|
||||
handleWatchNextIntent(intent)
|
||||
}
|
||||
|
||||
override fun onNewIntent(intent: Intent) {
|
||||
super.onNewIntent(intent)
|
||||
// Handle Watch Next deep link when app is already running
|
||||
handleWatchNextIntent(intent)
|
||||
}
|
||||
|
||||
private fun handleWatchNextIntent(intent: Intent?) {
|
||||
val contentId = WatchNextPlugin.handleIntent(intent)
|
||||
if (contentId != null) {
|
||||
// Notify the plugin to send event to Flutter
|
||||
watchNextPlugin?.notifyDeepLink(contentId)
|
||||
}
|
||||
}
|
||||
|
||||
override fun getFlutterShellArgs(): FlutterShellArgs {
|
||||
val args = super.getFlutterShellArgs()
|
||||
usingSkia = shouldDisableImpeller()
|
||||
if (usingSkia) args.add("--enable-impeller=false")
|
||||
return args
|
||||
}
|
||||
|
||||
private fun shouldDisableImpeller(): Boolean {
|
||||
// Android TV devices — weaker GPUs, less Impeller testing
|
||||
if (isAndroidTvDevice()) return true
|
||||
// Google Tensor SoC (Mali GPU) — Pixel 6+
|
||||
// SOC_MODEL may return marketing name ("Tensor G2") or internal ID ("GS201")
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
|
||||
val soc = Build.SOC_MODEL
|
||||
if (soc.startsWith("Tensor", ignoreCase = true) ||
|
||||
soc.startsWith("GS", ignoreCase = true)
|
||||
) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
// NVIDIA Tegra (Shield TV)
|
||||
if (Build.MANUFACTURER.equals("NVIDIA", ignoreCase = true)) return true
|
||||
// Huawei/HONOR Kirin SoCs use Mali GPUs
|
||||
if (Build.MANUFACTURER.equals("Huawei", ignoreCase = true) ||
|
||||
Build.MANUFACTURER.equals("HONOR", ignoreCase = true)
|
||||
) {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
override fun getRenderMode(): RenderMode = RenderMode.surface
|
||||
|
||||
override fun getTransparencyMode(): TransparencyMode {
|
||||
// Keep Flutter transparent so video/subtitles are visible below.
|
||||
return TransparencyMode.transparent
|
||||
}
|
||||
|
||||
override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
|
||||
super.configureFlutterEngine(flutterEngine)
|
||||
flutterEngine.plugins.add(MpvPlayerPlugin())
|
||||
flutterEngine.plugins.add(ExoPlayerPlugin())
|
||||
|
||||
MethodChannel(flutterEngine.dartExecutor.binaryMessenger, DEVICE_CHANNEL).setMethodCallHandler { call, result ->
|
||||
when (call.method) {
|
||||
"getTvDetection" -> result.success(getAndroidTvDetection())
|
||||
else -> result.notImplemented()
|
||||
}
|
||||
}
|
||||
|
||||
MethodChannel(flutterEngine.dartExecutor.binaryMessenger, APP_EXIT_CHANNEL).setMethodCallHandler { call, result ->
|
||||
when (call.method) {
|
||||
"requestExit" -> {
|
||||
result.success(true)
|
||||
window.decorView.post {
|
||||
finishAndRemoveTask()
|
||||
}
|
||||
}
|
||||
content.addView(wrapper, ViewGroup.LayoutParams(
|
||||
ViewGroup.LayoutParams.MATCH_PARENT,
|
||||
ViewGroup.LayoutParams.MATCH_PARENT))
|
||||
|
||||
// Handle Watch Next deep link from initial launch
|
||||
handleWatchNextIntent(intent)
|
||||
else -> result.notImplemented()
|
||||
}
|
||||
}
|
||||
|
||||
override fun onNewIntent(intent: Intent) {
|
||||
super.onNewIntent(intent)
|
||||
// Handle Watch Next deep link when app is already running
|
||||
handleWatchNextIntent(intent)
|
||||
MethodChannel(flutterEngine.dartExecutor.binaryMessenger, APP_FOREGROUND_CHANNEL).setMethodCallHandler { call, result ->
|
||||
when (call.method) {
|
||||
"requestForeground" -> result.success(requestForeground())
|
||||
else -> result.notImplemented()
|
||||
}
|
||||
}
|
||||
|
||||
private fun handleWatchNextIntent(intent: Intent?) {
|
||||
val contentId = WatchNextPlugin.handleIntent(intent)
|
||||
if (contentId != null) {
|
||||
// Notify the plugin to send event to Flutter
|
||||
watchNextPlugin?.notifyDeepLink(contentId)
|
||||
}
|
||||
}
|
||||
// External player: open local video files with proper content:// URIs
|
||||
MethodChannel(flutterEngine.dartExecutor.binaryMessenger, EXTERNAL_PLAYER_CHANNEL).setMethodCallHandler { call, result ->
|
||||
when (call.method) {
|
||||
"openVideo" -> {
|
||||
val filePath = call.argument<String>("filePath")
|
||||
val packageName = call.argument<String>("package")
|
||||
|
||||
override fun getFlutterShellArgs(): FlutterShellArgs {
|
||||
val args = super.getFlutterShellArgs()
|
||||
usingSkia = shouldDisableImpeller()
|
||||
if (usingSkia) args.add("--enable-impeller=false")
|
||||
return args
|
||||
}
|
||||
if (filePath == null) {
|
||||
result.error("INVALID_ARGUMENT", "filePath is required", null)
|
||||
return@setMethodCallHandler
|
||||
}
|
||||
|
||||
private fun shouldDisableImpeller(): Boolean {
|
||||
// Android TV devices — weaker GPUs, less Impeller testing
|
||||
if (packageManager.hasSystemFeature("android.software.leanback")) return true
|
||||
// Google Tensor SoC (Mali GPU) — Pixel 6+
|
||||
// SOC_MODEL may return marketing name ("Tensor G2") or internal ID ("GS201")
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
|
||||
val soc = Build.SOC_MODEL
|
||||
if (soc.startsWith("Tensor", ignoreCase = true) ||
|
||||
soc.startsWith("GS", ignoreCase = true)) return true
|
||||
}
|
||||
// NVIDIA Tegra (Shield TV)
|
||||
if (Build.MANUFACTURER.equals("NVIDIA", ignoreCase = true)) return true
|
||||
// Huawei/HONOR Kirin SoCs use Mali GPUs
|
||||
if (Build.MANUFACTURER.equals("Huawei", ignoreCase = true) ||
|
||||
Build.MANUFACTURER.equals("HONOR", ignoreCase = true)) return true
|
||||
return false
|
||||
}
|
||||
try {
|
||||
val uri: Uri
|
||||
val grantRead: Boolean
|
||||
|
||||
override fun getRenderMode(): RenderMode = RenderMode.surface
|
||||
|
||||
override fun getTransparencyMode(): TransparencyMode {
|
||||
// Keep Flutter transparent so video/subtitles are visible below.
|
||||
return TransparencyMode.transparent
|
||||
}
|
||||
|
||||
override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
|
||||
super.configureFlutterEngine(flutterEngine)
|
||||
flutterEngine.plugins.add(MpvPlayerPlugin())
|
||||
flutterEngine.plugins.add(ExoPlayerPlugin())
|
||||
|
||||
// External player: open local video files with proper content:// URIs
|
||||
MethodChannel(flutterEngine.dartExecutor.binaryMessenger, EXTERNAL_PLAYER_CHANNEL).setMethodCallHandler { call, result ->
|
||||
when (call.method) {
|
||||
"openVideo" -> {
|
||||
val filePath = call.argument<String>("filePath")
|
||||
val packageName = call.argument<String>("package")
|
||||
|
||||
if (filePath == null) {
|
||||
result.error("INVALID_ARGUMENT", "filePath is required", null)
|
||||
return@setMethodCallHandler
|
||||
}
|
||||
|
||||
try {
|
||||
val uri: Uri
|
||||
val grantRead: Boolean
|
||||
|
||||
if (filePath.startsWith("http://") || filePath.startsWith("https://")) {
|
||||
uri = Uri.parse(filePath)
|
||||
grantRead = false
|
||||
} else if (filePath.startsWith("content://")) {
|
||||
uri = Uri.parse(filePath)
|
||||
grantRead = true
|
||||
} else {
|
||||
val path = if (filePath.startsWith("file://")) filePath.removePrefix("file://") else filePath
|
||||
uri = FileProvider.getUriForFile(this, "com.edde746.plezy.fileprovider", File(path))
|
||||
grantRead = true
|
||||
}
|
||||
|
||||
val intent = Intent(Intent.ACTION_VIEW).apply {
|
||||
setDataAndType(uri, "video/*")
|
||||
addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
||||
if (grantRead) {
|
||||
addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
|
||||
}
|
||||
if (packageName != null) {
|
||||
setPackage(packageName)
|
||||
}
|
||||
}
|
||||
startActivity(intent)
|
||||
result.success(true)
|
||||
} catch (e: android.content.ActivityNotFoundException) {
|
||||
result.error("APP_NOT_FOUND", "No app found for package: $packageName", null)
|
||||
} catch (e: Exception) {
|
||||
result.error("LAUNCH_FAILED", e.message ?: e.javaClass.simpleName, null)
|
||||
}
|
||||
}
|
||||
else -> result.notImplemented()
|
||||
if (filePath.startsWith("http://") || filePath.startsWith("https://")) {
|
||||
uri = Uri.parse(filePath)
|
||||
grantRead = false
|
||||
} else if (filePath.startsWith("content://")) {
|
||||
uri = Uri.parse(filePath)
|
||||
grantRead = true
|
||||
} else {
|
||||
val path = if (filePath.startsWith("file://")) filePath.removePrefix("file://") else filePath
|
||||
uri = FileProvider.getUriForFile(this, "com.edde746.plezy.fileprovider", File(path))
|
||||
grantRead = true
|
||||
}
|
||||
}
|
||||
|
||||
// Splash screen theme: persist user's chosen theme for next launch (API 31+)
|
||||
MethodChannel(flutterEngine.dartExecutor.binaryMessenger, THEME_CHANNEL).setMethodCallHandler { call, result ->
|
||||
when (call.method) {
|
||||
"getRenderer" -> result.success(if (usingSkia) "Skia" else "Impeller")
|
||||
"setSplashTheme" -> {
|
||||
val mode = call.argument<String>("mode")
|
||||
|
||||
// Persist for next cold start & update window background now
|
||||
getSharedPreferences("plezy_prefs", Context.MODE_PRIVATE)
|
||||
.edit().putString("splash_theme", mode).apply()
|
||||
ThemeHelper.themeColor(mode)?.let { window.decorView.setBackgroundColor(it) }
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
|
||||
val themeId = when (mode) {
|
||||
"dark" -> R.style.SplashTheme_Dark
|
||||
"oled" -> R.style.SplashTheme_Oled
|
||||
"light" -> R.style.SplashTheme_Light
|
||||
"system" -> android.content.res.Resources.ID_NULL
|
||||
else -> android.content.res.Resources.ID_NULL
|
||||
}
|
||||
splashScreen.setSplashScreenTheme(themeId)
|
||||
}
|
||||
result.success(true)
|
||||
}
|
||||
else -> result.notImplemented()
|
||||
}
|
||||
}
|
||||
|
||||
// Register Watch Next plugin and keep reference for deep link handling
|
||||
watchNextPlugin = WatchNextPlugin()
|
||||
flutterEngine.plugins.add(watchNextPlugin!!)
|
||||
|
||||
MethodChannel( flutterEngine.dartExecutor.binaryMessenger, PIP_CHANNEL ).setMethodCallHandler { call, result ->
|
||||
when (call.method) {
|
||||
"isSupported" -> {
|
||||
result.success(Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && !isAndroidTvDevice())
|
||||
}
|
||||
"enter" -> {
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {
|
||||
result.success(mapOf("success" to false, "errorCode" to "android_version"))
|
||||
return@setMethodCallHandler
|
||||
}
|
||||
|
||||
if (isAndroidTvDevice()) {
|
||||
result.success(mapOf("success" to false, "errorCode" to "not_supported"))
|
||||
return@setMethodCallHandler
|
||||
}
|
||||
|
||||
if (!isPipPermissionGranted()) {
|
||||
result.success(mapOf("success" to false, "errorCode" to "permission_disabled"))
|
||||
return@setMethodCallHandler
|
||||
}
|
||||
|
||||
try {
|
||||
val width = call.argument<Int>("width") ?: 16
|
||||
val height = call.argument<Int>("height") ?: 9
|
||||
val params = buildPipParams(width, height)
|
||||
val success = enterPictureInPictureMode(params)
|
||||
if (success) {
|
||||
result.success(mapOf("success" to true))
|
||||
} else {
|
||||
result.success(mapOf("success" to false, "errorCode" to "failed"))
|
||||
}
|
||||
} catch (e: IllegalStateException) {
|
||||
result.success(mapOf("success" to false, "errorCode" to "not_supported"))
|
||||
} catch (e: Exception) {
|
||||
result.success(mapOf("success" to false, "errorCode" to "unknown", "errorMessage" to (e.message ?: "Unknown error")))
|
||||
}
|
||||
}
|
||||
"setAutoPipReady" -> {
|
||||
if (isAndroidTvDevice()) {
|
||||
autoPipReady = false
|
||||
result.success(true)
|
||||
return@setMethodCallHandler
|
||||
}
|
||||
|
||||
autoPipReady = call.argument<Boolean>("ready") ?: false
|
||||
autoPipWidth = call.argument<Int>("width") ?: 16
|
||||
autoPipHeight = call.argument<Int>("height") ?: 9
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
|
||||
try {
|
||||
val params = buildPipParams(autoPipWidth, autoPipHeight, autoEnterEnabled = autoPipReady)
|
||||
setPictureInPictureParams(params)
|
||||
} catch (e: Exception) {
|
||||
Log.w(TAG, "Failed to set auto-PiP params", e)
|
||||
}
|
||||
}
|
||||
result.success(true)
|
||||
}
|
||||
else -> result.notImplemented()
|
||||
val intent = Intent(Intent.ACTION_VIEW).apply {
|
||||
setDataAndType(uri, "video/*")
|
||||
addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
||||
if (grantRead) {
|
||||
addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
|
||||
}
|
||||
if (packageName != null) {
|
||||
setPackage(packageName)
|
||||
}
|
||||
}
|
||||
startActivity(intent)
|
||||
result.success(true)
|
||||
} catch (e: android.content.ActivityNotFoundException) {
|
||||
result.error("APP_NOT_FOUND", "No app found for package: $packageName", null)
|
||||
} catch (e: Exception) {
|
||||
result.error("LAUNCH_FAILED", e.message ?: e.javaClass.simpleName, null)
|
||||
}
|
||||
}
|
||||
else -> result.notImplemented()
|
||||
}
|
||||
}
|
||||
|
||||
override fun onPictureInPictureModeChanged(isInPictureInPictureMode: Boolean,newConfig: Configuration) {
|
||||
super.onPictureInPictureModeChanged(isInPictureInPictureMode, newConfig)
|
||||
flutterEngine?.let { engine ->
|
||||
MethodChannel(engine.dartExecutor.binaryMessenger, PIP_CHANNEL).invokeMethod("onPipChanged", isInPictureInPictureMode)
|
||||
engine.plugins.get(ExoPlayerPlugin::class.java)?.let { plugin ->
|
||||
(plugin as? ExoPlayerPlugin)?.onPipModeChanged(isInPictureInPictureMode)
|
||||
// Splash screen theme: persist user's chosen theme for next launch (API 31+)
|
||||
MethodChannel(flutterEngine.dartExecutor.binaryMessenger, THEME_CHANNEL).setMethodCallHandler { call, result ->
|
||||
when (call.method) {
|
||||
"getRenderer" -> result.success(if (usingSkia) "Skia" else "Impeller")
|
||||
"setSplashTheme" -> {
|
||||
val mode = call.argument<String>("mode")
|
||||
|
||||
// Persist for next cold start & update window background now
|
||||
getSharedPreferences("plezy_prefs", Context.MODE_PRIVATE)
|
||||
.edit().putString("splash_theme", mode).apply()
|
||||
ThemeHelper.themeColor(mode)?.let { window.decorView.setBackgroundColor(it) }
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
|
||||
val themeId = when (mode) {
|
||||
"dark" -> R.style.SplashTheme_Dark
|
||||
"oled" -> R.style.SplashTheme_Oled
|
||||
"light" -> R.style.SplashTheme_Light
|
||||
"system" -> android.content.res.Resources.ID_NULL
|
||||
else -> android.content.res.Resources.ID_NULL
|
||||
}
|
||||
splashScreen.setSplashScreenTheme(themeId)
|
||||
}
|
||||
result.success(true)
|
||||
}
|
||||
else -> result.notImplemented()
|
||||
}
|
||||
}
|
||||
|
||||
override fun onUserLeaveHint() {
|
||||
super.onUserLeaveHint()
|
||||
// Auto PiP for API 26-30 (API 31+ uses setAutoEnterEnabled)
|
||||
if (!isAndroidTvDevice() &&
|
||||
Build.VERSION.SDK_INT >= Build.VERSION_CODES.O &&
|
||||
Build.VERSION.SDK_INT < Build.VERSION_CODES.S &&
|
||||
autoPipReady && isPipPermissionGranted()) {
|
||||
// Register Watch Next plugin and keep reference for deep link handling
|
||||
watchNextPlugin = WatchNextPlugin()
|
||||
flutterEngine.plugins.add(watchNextPlugin!!)
|
||||
|
||||
MethodChannel(flutterEngine.dartExecutor.binaryMessenger, PIP_CHANNEL).setMethodCallHandler { call, result ->
|
||||
when (call.method) {
|
||||
"isSupported" -> {
|
||||
result.success(Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && !isAndroidTvDevice())
|
||||
}
|
||||
"enter" -> {
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {
|
||||
result.success(mapOf("success" to false, "errorCode" to "android_version"))
|
||||
return@setMethodCallHandler
|
||||
}
|
||||
|
||||
if (isAndroidTvDevice()) {
|
||||
result.success(mapOf("success" to false, "errorCode" to "not_supported"))
|
||||
return@setMethodCallHandler
|
||||
}
|
||||
|
||||
if (!isPipPermissionGranted()) {
|
||||
result.success(mapOf("success" to false, "errorCode" to "permission_disabled"))
|
||||
return@setMethodCallHandler
|
||||
}
|
||||
|
||||
try {
|
||||
val width = call.argument<Int>("width") ?: 16
|
||||
val height = call.argument<Int>("height") ?: 9
|
||||
val params = buildPipParams(width, height)
|
||||
val success = enterPictureInPictureMode(params)
|
||||
if (success) {
|
||||
result.success(mapOf("success" to true))
|
||||
} else {
|
||||
result.success(mapOf("success" to false, "errorCode" to "failed"))
|
||||
}
|
||||
} catch (e: IllegalStateException) {
|
||||
result.success(mapOf("success" to false, "errorCode" to "not_supported"))
|
||||
} catch (e: Exception) {
|
||||
result.success(mapOf("success" to false, "errorCode" to "unknown", "errorMessage" to (e.message ?: "Unknown error")))
|
||||
}
|
||||
}
|
||||
"setAutoPipReady" -> {
|
||||
if (isAndroidTvDevice()) {
|
||||
autoPipReady = false
|
||||
result.success(true)
|
||||
return@setMethodCallHandler
|
||||
}
|
||||
|
||||
autoPipReady = call.argument<Boolean>("ready") ?: false
|
||||
autoPipWidth = call.argument<Int>("width") ?: 16
|
||||
autoPipHeight = call.argument<Int>("height") ?: 9
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
|
||||
try {
|
||||
// Notify Flutter to prepare video filter before PiP
|
||||
flutterEngine?.dartExecutor?.binaryMessenger?.let { messenger ->
|
||||
MethodChannel(messenger, PIP_CHANNEL).invokeMethod("onAutoPipEntering", null)
|
||||
}
|
||||
val params = buildPipParams(autoPipWidth, autoPipHeight)
|
||||
enterPictureInPictureMode(params)
|
||||
val params = buildPipParams(autoPipWidth, autoPipHeight, autoEnterEnabled = autoPipReady)
|
||||
setPictureInPictureParams(params)
|
||||
} catch (e: Exception) {
|
||||
Log.w(TAG, "Failed to enter auto-PiP", e)
|
||||
Log.w(TAG, "Failed to set auto-PiP params", e)
|
||||
}
|
||||
}
|
||||
result.success(true)
|
||||
}
|
||||
else -> result.notImplemented()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun isPipPermissionGranted(): Boolean {
|
||||
val appOpsManager = getSystemService(Context.APP_OPS_SERVICE) as AppOpsManager
|
||||
return appOpsManager.checkOpNoThrow(
|
||||
AppOpsManager.OPSTR_PICTURE_IN_PICTURE,
|
||||
applicationInfo.uid,
|
||||
packageName
|
||||
) == AppOpsManager.MODE_ALLOWED
|
||||
private fun requestForeground(): Boolean = try {
|
||||
val activityManager = getSystemService(Context.ACTIVITY_SERVICE) as ActivityManager
|
||||
activityManager.moveTaskToFront(taskId, 0)
|
||||
true
|
||||
} catch (e: Exception) {
|
||||
Log.w(TAG, "Failed to move task to foreground", e)
|
||||
try {
|
||||
val launchIntent = packageManager.getLaunchIntentForPackage(packageName)?.apply {
|
||||
addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT)
|
||||
addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP)
|
||||
addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)
|
||||
addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
||||
}
|
||||
if (launchIntent != null) {
|
||||
startActivity(launchIntent)
|
||||
true
|
||||
} else {
|
||||
false
|
||||
}
|
||||
} catch (launchError: Exception) {
|
||||
Log.w(TAG, "Failed to start foreground activity", launchError)
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
private fun buildPipParams(width: Int, height: Int, autoEnterEnabled: Boolean? = null): PictureInPictureParams {
|
||||
val (w, h) = if (width <= 0 || height <= 0) {
|
||||
Pair(16, 9)
|
||||
} else {
|
||||
val ratio = width.toFloat() / height.toFloat()
|
||||
when {
|
||||
ratio < 1f / 2.39f -> Pair(100, 239)
|
||||
ratio > 2.39f -> Pair(239, 100)
|
||||
else -> Pair(width, height)
|
||||
}
|
||||
}
|
||||
val builder = PictureInPictureParams.Builder()
|
||||
.setAspectRatio(Rational(w, h))
|
||||
if (autoEnterEnabled != null && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
|
||||
builder.setAutoEnterEnabled(autoEnterEnabled)
|
||||
}
|
||||
return builder.build()
|
||||
override fun onPictureInPictureModeChanged(isInPictureInPictureMode: Boolean, newConfig: Configuration) {
|
||||
super.onPictureInPictureModeChanged(isInPictureInPictureMode, newConfig)
|
||||
flutterEngine?.let { engine ->
|
||||
MethodChannel(engine.dartExecutor.binaryMessenger, PIP_CHANNEL).invokeMethod("onPipChanged", isInPictureInPictureMode)
|
||||
engine.plugins.get(ExoPlayerPlugin::class.java)?.let { plugin ->
|
||||
(plugin as? ExoPlayerPlugin)?.onPipModeChanged(isInPictureInPictureMode)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun onUserLeaveHint() {
|
||||
super.onUserLeaveHint()
|
||||
// Auto PiP for API 26-30 (API 31+ uses setAutoEnterEnabled)
|
||||
if (!isAndroidTvDevice() &&
|
||||
Build.VERSION.SDK_INT >= Build.VERSION_CODES.O &&
|
||||
Build.VERSION.SDK_INT < Build.VERSION_CODES.S &&
|
||||
autoPipReady &&
|
||||
isPipPermissionGranted()
|
||||
) {
|
||||
try {
|
||||
// Notify Flutter to prepare video filter before PiP
|
||||
flutterEngine?.dartExecutor?.binaryMessenger?.let { messenger ->
|
||||
MethodChannel(messenger, PIP_CHANNEL).invokeMethod("onAutoPipEntering", null)
|
||||
}
|
||||
val params = buildPipParams(autoPipWidth, autoPipHeight)
|
||||
enterPictureInPictureMode(params)
|
||||
} catch (e: Exception) {
|
||||
Log.w(TAG, "Failed to enter auto-PiP", e)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun isPipPermissionGranted(): Boolean {
|
||||
val appOpsManager = getSystemService(Context.APP_OPS_SERVICE) as AppOpsManager
|
||||
return appOpsManager.checkOpNoThrow(
|
||||
AppOpsManager.OPSTR_PICTURE_IN_PICTURE,
|
||||
applicationInfo.uid,
|
||||
packageName
|
||||
) == AppOpsManager.MODE_ALLOWED
|
||||
}
|
||||
|
||||
private fun buildPipParams(width: Int, height: Int, autoEnterEnabled: Boolean? = null): PictureInPictureParams {
|
||||
val (w, h) = if (width <= 0 || height <= 0) {
|
||||
Pair(16, 9)
|
||||
} else {
|
||||
val ratio = width.toFloat() / height.toFloat()
|
||||
when {
|
||||
ratio < 1f / 2.39f -> Pair(100, 239)
|
||||
ratio > 2.39f -> Pair(239, 100)
|
||||
else -> Pair(width, height)
|
||||
}
|
||||
}
|
||||
val builder = PictureInPictureParams.Builder()
|
||||
.setAspectRatio(Rational(w, h))
|
||||
if (autoEnterEnabled != null && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
|
||||
builder.setAutoEnterEnabled(autoEnterEnabled)
|
||||
}
|
||||
return builder.build()
|
||||
}
|
||||
}
|
||||
|
||||
+132
-130
@@ -19,149 +19,151 @@ import androidx.media3.extractor.TrackOutput
|
||||
*/
|
||||
@androidx.media3.common.util.UnstableApi
|
||||
class CuelessSeekExtractorWrapper(
|
||||
private val delegate: Extractor,
|
||||
private val delegate: Extractor
|
||||
) : Extractor {
|
||||
|
||||
companion object {
|
||||
private const val TAG = "CuelessSeek"
|
||||
// MKV Cluster element ID: 0x1F43B675 (4-byte EBML Class-D ID)
|
||||
private val CLUSTER_ID = byteArrayOf(0x1F, 0x43, 0xB6.toByte(), 0x75)
|
||||
private const val SCAN_BUFFER_SIZE = 8192
|
||||
// Max bytes to scan for a Cluster boundary before giving up
|
||||
private const val MAX_SCAN_BYTES = 1024 * 1024 // 1 MB
|
||||
companion object {
|
||||
private const val TAG = "CuelessSeek"
|
||||
|
||||
// MKV Cluster element ID: 0x1F43B675 (4-byte EBML Class-D ID)
|
||||
private val CLUSTER_ID = byteArrayOf(0x1F, 0x43, 0xB6.toByte(), 0x75)
|
||||
private const val SCAN_BUFFER_SIZE = 8192
|
||||
|
||||
// Max bytes to scan for a Cluster boundary before giving up
|
||||
private const val MAX_SCAN_BYTES = 1024 * 1024 // 1 MB
|
||||
}
|
||||
|
||||
private var inputLength: Long = C.LENGTH_UNSET.toLong()
|
||||
private var needsClusterResync = false
|
||||
private var isApproximateSeeking = false
|
||||
private var pendingSeekTimeUs: Long = C.TIME_UNSET
|
||||
|
||||
override fun sniff(input: ExtractorInput): Boolean = delegate.sniff(input)
|
||||
|
||||
override fun init(output: ExtractorOutput) {
|
||||
delegate.init(SeekInterceptingOutput(output))
|
||||
}
|
||||
|
||||
override fun read(input: ExtractorInput, seekPosition: PositionHolder): Int {
|
||||
if (inputLength == C.LENGTH_UNSET.toLong()) {
|
||||
inputLength = input.length
|
||||
}
|
||||
|
||||
private var inputLength: Long = C.LENGTH_UNSET.toLong()
|
||||
private var needsClusterResync = false
|
||||
private var isApproximateSeeking = false
|
||||
private var pendingSeekTimeUs: Long = C.TIME_UNSET
|
||||
|
||||
override fun sniff(input: ExtractorInput): Boolean = delegate.sniff(input)
|
||||
|
||||
override fun init(output: ExtractorOutput) {
|
||||
delegate.init(SeekInterceptingOutput(output))
|
||||
if (needsClusterResync) {
|
||||
needsClusterResync = false
|
||||
return scanForCluster(input, seekPosition)
|
||||
}
|
||||
return delegate.read(input, seekPosition)
|
||||
}
|
||||
|
||||
override fun read(input: ExtractorInput, seekPosition: PositionHolder): Int {
|
||||
if (inputLength == C.LENGTH_UNSET.toLong()) {
|
||||
inputLength = input.length
|
||||
override fun seek(position: Long, timeUs: Long) {
|
||||
if (isApproximateSeeking && position > 0) {
|
||||
needsClusterResync = true
|
||||
pendingSeekTimeUs = timeUs
|
||||
}
|
||||
delegate.seek(position, timeUs)
|
||||
}
|
||||
|
||||
override fun release() = delegate.release()
|
||||
|
||||
/**
|
||||
* Scan forward from the current input position to find the next MKV Cluster
|
||||
* element ID (0x1F43B675). Returns [Extractor.RESULT_SEEK] with the Cluster's
|
||||
* byte position so ExoPlayer repositions the DataSource there.
|
||||
*/
|
||||
private fun scanForCluster(input: ExtractorInput, seekPosition: PositionHolder): Int {
|
||||
val buffer = ByteArray(SCAN_BUFFER_SIZE)
|
||||
var totalScanned = 0L
|
||||
// Carry over last 3 bytes across buffer boundaries to detect split IDs
|
||||
var carry = ByteArray(0)
|
||||
|
||||
while (totalScanned < MAX_SCAN_BYTES) {
|
||||
val toRead = minOf(SCAN_BUFFER_SIZE, (MAX_SCAN_BYTES - totalScanned).toInt())
|
||||
val bytesRead: Int
|
||||
try {
|
||||
bytesRead = input.read(buffer, 0, toRead)
|
||||
} catch (_: Exception) {
|
||||
break
|
||||
}
|
||||
if (bytesRead == C.RESULT_END_OF_INPUT) break
|
||||
|
||||
// Combine carry + new data for scanning
|
||||
val scanData = if (carry.isNotEmpty()) carry + buffer.copyOf(bytesRead) else buffer.copyOf(bytesRead)
|
||||
|
||||
for (i in 0..scanData.size - 4) {
|
||||
if (scanData[i] == CLUSTER_ID[0] &&
|
||||
scanData[i + 1] == CLUSTER_ID[1] &&
|
||||
scanData[i + 2] == CLUSTER_ID[2] &&
|
||||
scanData[i + 3] == CLUSTER_ID[3]
|
||||
) {
|
||||
// Compute the absolute byte position of this Cluster
|
||||
val clusterPosition = input.position - bytesRead - carry.size + i
|
||||
Log.d(TAG, "Found Cluster at byte $clusterPosition (scanned ${totalScanned + i} bytes)")
|
||||
seekPosition.position = clusterPosition
|
||||
delegate.seek(clusterPosition, pendingSeekTimeUs)
|
||||
pendingSeekTimeUs = C.TIME_UNSET
|
||||
return Extractor.RESULT_SEEK
|
||||
}
|
||||
if (needsClusterResync) {
|
||||
needsClusterResync = false
|
||||
return scanForCluster(input, seekPosition)
|
||||
}
|
||||
return delegate.read(input, seekPosition)
|
||||
}
|
||||
|
||||
// Keep last 3 bytes as carry for next iteration
|
||||
carry = if (scanData.size >= 3) scanData.copyOfRange(scanData.size - 3, scanData.size) else scanData.copyOf()
|
||||
totalScanned += bytesRead
|
||||
}
|
||||
|
||||
override fun seek(position: Long, timeUs: Long) {
|
||||
if (isApproximateSeeking && position > 0) {
|
||||
needsClusterResync = true
|
||||
pendingSeekTimeUs = timeUs
|
||||
// Failed to find a Cluster — fall back to position 0
|
||||
Log.w(TAG, "No Cluster found after scanning $totalScanned bytes, resetting to start")
|
||||
seekPosition.position = 0
|
||||
delegate.seek(0, 0)
|
||||
return Extractor.RESULT_SEEK
|
||||
}
|
||||
|
||||
/**
|
||||
* ExtractorOutput wrapper that intercepts [seekMap] calls to replace
|
||||
* [SeekMap.Unseekable] with an approximate proportional SeekMap.
|
||||
*/
|
||||
private inner class SeekInterceptingOutput(
|
||||
private val delegate: ExtractorOutput
|
||||
) : ExtractorOutput {
|
||||
|
||||
override fun track(id: Int, type: Int): TrackOutput = delegate.track(id, type)
|
||||
override fun endTracks() = delegate.endTracks()
|
||||
|
||||
override fun seekMap(seekMap: SeekMap) {
|
||||
if (seekMap is SeekMap.Unseekable) {
|
||||
val durationUs = seekMap.durationUs
|
||||
if (durationUs != C.TIME_UNSET && durationUs > 0) {
|
||||
Log.i(TAG, "Replacing Unseekable with approximate SeekMap (duration=${durationUs / 1_000_000}s)")
|
||||
isApproximateSeeking = true
|
||||
delegate.seekMap(ApproximateSeekMap(durationUs))
|
||||
return
|
||||
}
|
||||
delegate.seek(position, timeUs)
|
||||
}
|
||||
// File has real Cues or unknown duration — pass through
|
||||
isApproximateSeeking = false
|
||||
delegate.seekMap(seekMap)
|
||||
}
|
||||
}
|
||||
|
||||
override fun release() = delegate.release()
|
||||
/**
|
||||
* Approximate SeekMap that estimates byte positions proportionally.
|
||||
* Used when the MKV has no Cues but has a known duration.
|
||||
*/
|
||||
private inner class ApproximateSeekMap(
|
||||
private val durationUs: Long
|
||||
) : SeekMap {
|
||||
|
||||
/**
|
||||
* Scan forward from the current input position to find the next MKV Cluster
|
||||
* element ID (0x1F43B675). Returns [Extractor.RESULT_SEEK] with the Cluster's
|
||||
* byte position so ExoPlayer repositions the DataSource there.
|
||||
*/
|
||||
private fun scanForCluster(input: ExtractorInput, seekPosition: PositionHolder): Int {
|
||||
val buffer = ByteArray(SCAN_BUFFER_SIZE)
|
||||
var totalScanned = 0L
|
||||
// Carry over last 3 bytes across buffer boundaries to detect split IDs
|
||||
var carry = ByteArray(0)
|
||||
override fun isSeekable(): Boolean = true
|
||||
|
||||
while (totalScanned < MAX_SCAN_BYTES) {
|
||||
val toRead = minOf(SCAN_BUFFER_SIZE, (MAX_SCAN_BYTES - totalScanned).toInt())
|
||||
val bytesRead: Int
|
||||
try {
|
||||
bytesRead = input.read(buffer, 0, toRead)
|
||||
} catch (_: Exception) {
|
||||
break
|
||||
}
|
||||
if (bytesRead == C.RESULT_END_OF_INPUT) break
|
||||
override fun getDurationUs(): Long = durationUs
|
||||
|
||||
// Combine carry + new data for scanning
|
||||
val scanData = if (carry.isNotEmpty()) carry + buffer.copyOf(bytesRead) else buffer.copyOf(bytesRead)
|
||||
|
||||
for (i in 0..scanData.size - 4) {
|
||||
if (scanData[i] == CLUSTER_ID[0] &&
|
||||
scanData[i + 1] == CLUSTER_ID[1] &&
|
||||
scanData[i + 2] == CLUSTER_ID[2] &&
|
||||
scanData[i + 3] == CLUSTER_ID[3]
|
||||
) {
|
||||
// Compute the absolute byte position of this Cluster
|
||||
val clusterPosition = input.position - bytesRead - carry.size + i
|
||||
Log.d(TAG, "Found Cluster at byte $clusterPosition (scanned ${totalScanned + i} bytes)")
|
||||
seekPosition.position = clusterPosition
|
||||
delegate.seek(clusterPosition, pendingSeekTimeUs)
|
||||
pendingSeekTimeUs = C.TIME_UNSET
|
||||
return Extractor.RESULT_SEEK
|
||||
}
|
||||
}
|
||||
|
||||
// Keep last 3 bytes as carry for next iteration
|
||||
carry = if (scanData.size >= 3) scanData.copyOfRange(scanData.size - 3, scanData.size) else scanData.copyOf()
|
||||
totalScanned += bytesRead
|
||||
}
|
||||
|
||||
// Failed to find a Cluster — fall back to position 0
|
||||
Log.w(TAG, "No Cluster found after scanning $totalScanned bytes, resetting to start")
|
||||
seekPosition.position = 0
|
||||
delegate.seek(0, 0)
|
||||
return Extractor.RESULT_SEEK
|
||||
}
|
||||
|
||||
/**
|
||||
* ExtractorOutput wrapper that intercepts [seekMap] calls to replace
|
||||
* [SeekMap.Unseekable] with an approximate proportional SeekMap.
|
||||
*/
|
||||
private inner class SeekInterceptingOutput(
|
||||
private val delegate: ExtractorOutput,
|
||||
) : ExtractorOutput {
|
||||
|
||||
override fun track(id: Int, type: Int): TrackOutput = delegate.track(id, type)
|
||||
override fun endTracks() = delegate.endTracks()
|
||||
|
||||
override fun seekMap(seekMap: SeekMap) {
|
||||
if (seekMap is SeekMap.Unseekable) {
|
||||
val durationUs = seekMap.durationUs
|
||||
if (durationUs != C.TIME_UNSET && durationUs > 0) {
|
||||
Log.i(TAG, "Replacing Unseekable with approximate SeekMap (duration=${durationUs / 1_000_000}s)")
|
||||
isApproximateSeeking = true
|
||||
delegate.seekMap(ApproximateSeekMap(durationUs))
|
||||
return
|
||||
}
|
||||
}
|
||||
// File has real Cues or unknown duration — pass through
|
||||
isApproximateSeeking = false
|
||||
delegate.seekMap(seekMap)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Approximate SeekMap that estimates byte positions proportionally.
|
||||
* Used when the MKV has no Cues but has a known duration.
|
||||
*/
|
||||
private inner class ApproximateSeekMap(
|
||||
private val durationUs: Long,
|
||||
) : SeekMap {
|
||||
|
||||
override fun isSeekable(): Boolean = true
|
||||
|
||||
override fun getDurationUs(): Long = durationUs
|
||||
|
||||
override fun getSeekPoints(timeUs: Long): SeekMap.SeekPoints {
|
||||
val length = inputLength
|
||||
if (length == C.LENGTH_UNSET.toLong() || durationUs <= 0) {
|
||||
return SeekMap.SeekPoints(SeekPoint(0, 0))
|
||||
}
|
||||
val clampedTimeUs = timeUs.coerceIn(0, durationUs)
|
||||
val position = (clampedTimeUs.toDouble() / durationUs * length).toLong().coerceIn(0, length)
|
||||
return SeekMap.SeekPoints(SeekPoint(clampedTimeUs, position))
|
||||
}
|
||||
override fun getSeekPoints(timeUs: Long): SeekMap.SeekPoints {
|
||||
val length = inputLength
|
||||
if (length == C.LENGTH_UNSET.toLong() || durationUs <= 0) {
|
||||
return SeekMap.SeekPoints(SeekPoint(0, 0))
|
||||
}
|
||||
val clampedTimeUs = timeUs.coerceIn(0, durationUs)
|
||||
val position = (clampedTimeUs.toDouble() / durationUs * length).toLong().coerceIn(0, length)
|
||||
return SeekMap.SeekPoints(SeekPoint(clampedTimeUs, position))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,78 +8,103 @@ import android.util.Log
|
||||
enum class DvConversionMode { DISABLED, DV81, HEVC_STRIP }
|
||||
|
||||
object DoviBridge {
|
||||
private const val TAG = "DoviBridge"
|
||||
private const val TAG = "DoviBridge"
|
||||
|
||||
private val nativeLoaded: Boolean by lazy {
|
||||
try {
|
||||
System.loadLibrary("dovi_bridge")
|
||||
true
|
||||
} catch (_: UnsatisfiedLinkError) {
|
||||
Log.w(TAG, "Native lib not found")
|
||||
false
|
||||
}
|
||||
const val CONVERT_FAILED = -1
|
||||
const val DESTINATION_TOO_SMALL = -2
|
||||
|
||||
private val nativeLoaded: Boolean by lazy {
|
||||
try {
|
||||
System.loadLibrary("dovi_bridge")
|
||||
true
|
||||
} catch (_: UnsatisfiedLinkError) {
|
||||
Log.w(TAG, "Native lib not found")
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
fun isAvailable(): Boolean = nativeLoaded &&
|
||||
runCatching { nativeIsConversionPathReady() }.getOrDefault(false)
|
||||
private val conversionPathReady: Boolean by lazy {
|
||||
nativeLoaded && runCatching { nativeIsConversionPathReady() }.getOrDefault(false)
|
||||
}
|
||||
|
||||
private fun deviceSupportsDvProfile(profile: Int, minApi: Int = 0): Boolean {
|
||||
try {
|
||||
if (Build.VERSION.SDK_INT < minApi) return false
|
||||
val codecList = MediaCodecList(MediaCodecList.REGULAR_CODECS)
|
||||
return codecList.codecInfos.any { info ->
|
||||
!info.isEncoder && info.supportedTypes.any { type ->
|
||||
type.equals("video/dolby-vision", ignoreCase = true) &&
|
||||
info.getCapabilitiesForType(type).profileLevels.any { it.profile == profile }
|
||||
}
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
Log.w(TAG, "Failed to query DV profile $profile support", e)
|
||||
return false
|
||||
}
|
||||
fun isAvailable(): Boolean = conversionPathReady
|
||||
|
||||
private fun deviceSupportsDvProfile(profile: Int, minApi: Int = 0): Boolean {
|
||||
try {
|
||||
if (Build.VERSION.SDK_INT < minApi) return false
|
||||
val codecList = MediaCodecList(MediaCodecList.REGULAR_CODECS)
|
||||
return codecList.codecInfos.any { info ->
|
||||
!info.isEncoder &&
|
||||
info.supportedTypes.any { type ->
|
||||
type.equals("video/dolby-vision", ignoreCase = true) &&
|
||||
info.getCapabilitiesForType(type).profileLevels.any { it.profile == profile }
|
||||
}
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
Log.w(TAG, "Failed to query DV profile $profile support", e)
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
val deviceSupportsDvProfile7: Boolean by lazy {
|
||||
deviceSupportsDvProfile(MediaCodecInfo.CodecProfileLevel.DolbyVisionProfileDvheDtr)
|
||||
.also { Log.i(TAG, "Device DV Profile 7 support: $it") }
|
||||
val deviceSupportsDvProfile7: Boolean by lazy {
|
||||
deviceSupportsDvProfile(MediaCodecInfo.CodecProfileLevel.DolbyVisionProfileDvheDtr)
|
||||
.also { Log.i(TAG, "Device DV Profile 7 support: $it") }
|
||||
}
|
||||
|
||||
val deviceSupportsDvProfile8: Boolean by lazy {
|
||||
deviceSupportsDvProfile(MediaCodecInfo.CodecProfileLevel.DolbyVisionProfileDvheSt, minApi = 27)
|
||||
.also { Log.i(TAG, "Device DV Profile 8 support: $it") }
|
||||
}
|
||||
|
||||
fun getConversionMode(): DvConversionMode = when {
|
||||
!isAvailable() -> DvConversionMode.DISABLED
|
||||
deviceSupportsDvProfile7 -> DvConversionMode.DISABLED // try native first; ExoPlayerCore retries with conversion on failure
|
||||
deviceSupportsDvProfile8 -> DvConversionMode.DV81
|
||||
else -> DvConversionMode.HEVC_STRIP
|
||||
}
|
||||
|
||||
/** Get the fallback mode when native DV7 decoding fails. */
|
||||
fun getDv7FallbackMode(): DvConversionMode = when {
|
||||
deviceSupportsDvProfile8 -> DvConversionMode.DV81
|
||||
else -> DvConversionMode.HEVC_STRIP
|
||||
}
|
||||
|
||||
fun convertRpuNalu(
|
||||
payload: ByteArray,
|
||||
payloadOffset: Int,
|
||||
payloadLength: Int,
|
||||
output: ByteArray,
|
||||
outputOffset: Int,
|
||||
outputCapacity: Int,
|
||||
mode: Int = 2
|
||||
): Int {
|
||||
if (!conversionPathReady || payloadLength <= 0) return CONVERT_FAILED
|
||||
return runCatching {
|
||||
nativeConvertDv7RpuToDv81(payload, payloadOffset, payloadLength, output, outputOffset, outputCapacity, mode)
|
||||
}
|
||||
.onFailure { Log.w(TAG, "RPU conversion failed: ${it.message}") }
|
||||
.getOrDefault(CONVERT_FAILED)
|
||||
}
|
||||
|
||||
val deviceSupportsDvProfile8: Boolean by lazy {
|
||||
deviceSupportsDvProfile(MediaCodecInfo.CodecProfileLevel.DolbyVisionProfileDvheSt, minApi = 27)
|
||||
.also { Log.i(TAG, "Device DV Profile 8 support: $it") }
|
||||
}
|
||||
fun getVersion(): String? {
|
||||
if (!nativeLoaded) return null
|
||||
return runCatching { nativeGetBridgeVersion() }.getOrNull()
|
||||
}
|
||||
|
||||
fun getConversionMode(): DvConversionMode = when {
|
||||
!isAvailable() -> DvConversionMode.DISABLED
|
||||
deviceSupportsDvProfile7 -> DvConversionMode.DISABLED // try native first; ExoPlayerCore retries with conversion on failure
|
||||
deviceSupportsDvProfile8 -> DvConversionMode.DV81
|
||||
else -> DvConversionMode.HEVC_STRIP
|
||||
}
|
||||
@JvmStatic
|
||||
private external fun nativeConvertDv7RpuToDv81(
|
||||
payload: ByteArray,
|
||||
payloadOffset: Int,
|
||||
payloadLength: Int,
|
||||
output: ByteArray,
|
||||
outputOffset: Int,
|
||||
outputCapacity: Int,
|
||||
mode: Int
|
||||
): Int
|
||||
|
||||
/** Get the fallback mode when native DV7 decoding fails. */
|
||||
fun getDv7FallbackMode(): DvConversionMode = when {
|
||||
deviceSupportsDvProfile8 -> DvConversionMode.DV81
|
||||
else -> DvConversionMode.HEVC_STRIP
|
||||
}
|
||||
@JvmStatic
|
||||
private external fun nativeIsConversionPathReady(): Boolean
|
||||
|
||||
fun convertRpuNalu(payload: ByteArray, mode: Int = 2): ByteArray? {
|
||||
if (!isAvailable() || payload.isEmpty()) return null
|
||||
return runCatching { nativeConvertDv7RpuToDv81(payload, mode) }
|
||||
.onFailure { Log.w(TAG, "RPU conversion failed: ${it.message}") }
|
||||
.getOrNull()
|
||||
}
|
||||
|
||||
fun getVersion(): String? {
|
||||
if (!nativeLoaded) return null
|
||||
return runCatching { nativeGetBridgeVersion() }.getOrNull()
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
private external fun nativeConvertDv7RpuToDv81(payload: ByteArray, mode: Int): ByteArray?
|
||||
|
||||
@JvmStatic
|
||||
private external fun nativeIsConversionPathReady(): Boolean
|
||||
|
||||
@JvmStatic
|
||||
private external fun nativeGetBridgeVersion(): String
|
||||
@JvmStatic
|
||||
private external fun nativeGetBridgeVersion(): String
|
||||
}
|
||||
|
||||
+439
-355
@@ -27,411 +27,495 @@ import androidx.media3.extractor.TrackOutput
|
||||
* All buffers are reused across samples to minimize GC pressure on the hot path.
|
||||
*/
|
||||
class DoviConvertingTrackOutput(
|
||||
private val delegate: TrackOutput,
|
||||
private val dvMode: DvConversionMode = DvConversionMode.HEVC_STRIP,
|
||||
private val delegate: TrackOutput,
|
||||
private val dvMode: DvConversionMode = DvConversionMode.HEVC_STRIP
|
||||
) : TrackOutput {
|
||||
|
||||
companion object {
|
||||
private const val TAG = "DoviConvertTrack"
|
||||
private const val NAL_TYPE_UNSPEC62 = 62
|
||||
private const val NAL_TYPE_UNSPEC63 = 63
|
||||
private const val LIBDOVI_MODE_TO_81 = 2
|
||||
private const val INITIAL_BUFFER_SIZE = 256 * 1024
|
||||
private const val READ_CHUNK = 64 * 1024
|
||||
private val ANNEX_B_START_CODE = byteArrayOf(0, 0, 0, 1)
|
||||
}
|
||||
companion object {
|
||||
private const val TAG = "DoviConvertTrack"
|
||||
private const val NAL_TYPE_UNSPEC62 = 62
|
||||
private const val NAL_TYPE_UNSPEC63 = 63
|
||||
private const val LIBDOVI_MODE_TO_81 = 2
|
||||
private const val INITIAL_BUFFER_SIZE = 256 * 1024
|
||||
private const val MAX_CONVERTED_RPU_SIZE = 16 * 1024
|
||||
private val ANNEX_B_START_CODE = byteArrayOf(0, 0, 0, 1)
|
||||
}
|
||||
|
||||
var conversionActive = false
|
||||
private set
|
||||
var strippedNalCount = 0L
|
||||
private set
|
||||
var convertedRpuCount = 0L
|
||||
private set
|
||||
var conversionActive = false
|
||||
private set
|
||||
var strippedNalCount = 0L
|
||||
private set
|
||||
var convertedRpuCount = 0L
|
||||
private set
|
||||
var rpuConversionFailureCount = 0L
|
||||
private set
|
||||
var rpuOutputTooSmallCount = 0L
|
||||
private set
|
||||
val averageRpuConversionTimeUs: Long
|
||||
get() = if (rpuConversionCallCount > 0) totalRpuConversionTimeUs / rpuConversionCallCount else 0L
|
||||
val averageSampleProcessingTimeUs: Long
|
||||
get() = if (sampleCount > 0) totalSampleProcessingTimeUs / sampleCount else 0L
|
||||
|
||||
// Reusable buffers — grown as needed, never shrunk
|
||||
private var sampleBuf = ByteArray(INITIAL_BUFFER_SIZE)
|
||||
private var sampleLen = 0
|
||||
private var outputBuf = ByteArray(INITIAL_BUFFER_SIZE)
|
||||
private var outputLen = 0
|
||||
private var readBuf = ByteArray(READ_CHUNK)
|
||||
private val outputParsable = ParsableByteArray()
|
||||
private var buffering = false
|
||||
// Reusable buffers — grown as needed, never shrunk
|
||||
private var sampleBuf = ByteArray(INITIAL_BUFFER_SIZE)
|
||||
private var sampleLen = 0
|
||||
private var outputBuf = ByteArray(INITIAL_BUFFER_SIZE)
|
||||
private var outputLen = 0
|
||||
private val outputParsable = ParsableByteArray()
|
||||
private var buffering = false
|
||||
|
||||
// Sample counter for periodic logging
|
||||
private var sampleCount = 0L
|
||||
// Sample counter for periodic logging
|
||||
private var sampleCount = 0L
|
||||
private var rpuConversionCallCount = 0L
|
||||
private var totalRpuConversionTimeUs = 0L
|
||||
private var totalSampleProcessingTimeUs = 0L
|
||||
|
||||
override fun format(format: Format) {
|
||||
if (!conversionActive) {
|
||||
val codecs = format.codecs
|
||||
if (codecs != null && codecs.startsWith("dvhe.07")) {
|
||||
conversionActive = true
|
||||
Log.i(TAG, "DV Profile 7 detected ($codecs), mode=$dvMode")
|
||||
Log.i(TAG, "Original format: mime=${format.sampleMimeType}, codecs=$codecs, " +
|
||||
"initData=${format.initializationData.size} entries " +
|
||||
"(${format.initializationData.mapIndexed { i, d -> "$i:${d.size}B" }.joinToString()})")
|
||||
override fun format(format: Format) {
|
||||
if (!conversionActive) {
|
||||
val codecs = format.codecs
|
||||
if (codecs != null && codecs.startsWith("dvhe.07")) {
|
||||
conversionActive = true
|
||||
Log.i(TAG, "DV Profile 7 detected ($codecs), mode=$dvMode")
|
||||
Log.i(
|
||||
TAG,
|
||||
"Original format: mime=${format.sampleMimeType}, codecs=$codecs, " +
|
||||
"initData=${format.initializationData.size} entries " +
|
||||
"(${format.initializationData.mapIndexed { i, d -> "$i:${d.size}B" }.joinToString()})"
|
||||
)
|
||||
|
||||
val newFormat = when (dvMode) {
|
||||
DvConversionMode.DV81 -> {
|
||||
// Parse DV level from codec string: "dvhe.07.06" → 6
|
||||
val level = codecs.split('.').getOrNull(2)?.toIntOrNull() ?: 6
|
||||
val newCodecs = "dvhe.08.%02d".format(level)
|
||||
val dvConfigRecord = buildDv81ConfigRecord(level)
|
||||
Log.i(TAG, "DV81: rewriting to $newCodecs, config=${dvConfigRecord.size}B")
|
||||
val newFormat = when (dvMode) {
|
||||
DvConversionMode.DV81 -> {
|
||||
// Parse DV level from codec string: "dvhe.07.06" → 6
|
||||
val level = codecs.split('.').getOrNull(2)?.toIntOrNull() ?: 6
|
||||
val newCodecs = "dvhe.08.%02d".format(level)
|
||||
val dvConfigRecord = buildDv81ConfigRecord(level)
|
||||
Log.i(TAG, "DV81: rewriting to $newCodecs, config=${dvConfigRecord.size}B")
|
||||
|
||||
format.buildUpon()
|
||||
.setSampleMimeType(MimeTypes.VIDEO_DOLBY_VISION)
|
||||
.setCodecs(newCodecs)
|
||||
.setInitializationData(
|
||||
if (format.initializationData.isNotEmpty())
|
||||
listOf(format.initializationData[0], dvConfigRecord)
|
||||
else
|
||||
listOf(ByteArray(0), dvConfigRecord)
|
||||
)
|
||||
.build()
|
||||
}
|
||||
else -> {
|
||||
// HEVC_STRIP: present as plain HEVC
|
||||
Log.i(TAG, "HEVC_STRIP: rewriting to video/hevc")
|
||||
format.buildUpon()
|
||||
.setSampleMimeType(MimeTypes.VIDEO_H265)
|
||||
.setCodecs(null)
|
||||
.setInitializationData(
|
||||
if (format.initializationData.isNotEmpty())
|
||||
listOf(format.initializationData[0])
|
||||
else
|
||||
emptyList()
|
||||
)
|
||||
.build()
|
||||
}
|
||||
format.buildUpon()
|
||||
.setSampleMimeType(MimeTypes.VIDEO_DOLBY_VISION)
|
||||
.setCodecs(newCodecs)
|
||||
.setInitializationData(
|
||||
if (format.initializationData.isNotEmpty()) {
|
||||
listOf(format.initializationData[0], dvConfigRecord)
|
||||
} else {
|
||||
listOf(ByteArray(0), dvConfigRecord)
|
||||
}
|
||||
|
||||
Log.i(TAG, "Rewritten format: mime=${newFormat.sampleMimeType}, " +
|
||||
"codecs=${newFormat.codecs}, initData=${newFormat.initializationData.size} entries")
|
||||
delegate.format(newFormat)
|
||||
return
|
||||
}
|
||||
)
|
||||
.build()
|
||||
}
|
||||
else -> {
|
||||
// HEVC_STRIP: present as plain HEVC
|
||||
Log.i(TAG, "HEVC_STRIP: rewriting to video/hevc")
|
||||
format.buildUpon()
|
||||
.setSampleMimeType(MimeTypes.VIDEO_H265)
|
||||
.setCodecs(null)
|
||||
.setInitializationData(
|
||||
if (format.initializationData.isNotEmpty()) {
|
||||
listOf(format.initializationData[0])
|
||||
} else {
|
||||
emptyList()
|
||||
}
|
||||
)
|
||||
.build()
|
||||
}
|
||||
}
|
||||
delegate.format(format)
|
||||
|
||||
Log.i(
|
||||
TAG,
|
||||
"Rewritten format: mime=${newFormat.sampleMimeType}, " +
|
||||
"codecs=${newFormat.codecs}, initData=${newFormat.initializationData.size} entries"
|
||||
)
|
||||
delegate.format(newFormat)
|
||||
return
|
||||
}
|
||||
}
|
||||
delegate.format(format)
|
||||
}
|
||||
|
||||
override fun sampleData(
|
||||
input: DataReader,
|
||||
length: Int,
|
||||
allowEndOfInput: Boolean,
|
||||
sampleDataPart: Int
|
||||
): Int {
|
||||
if (!conversionActive) {
|
||||
return delegate.sampleData(input, length, allowEndOfInput, sampleDataPart)
|
||||
}
|
||||
|
||||
override fun sampleData(
|
||||
input: DataReader, length: Int, allowEndOfInput: Boolean, sampleDataPart: Int
|
||||
): Int {
|
||||
if (!conversionActive) {
|
||||
return delegate.sampleData(input, length, allowEndOfInput, sampleDataPart)
|
||||
}
|
||||
buffering = true
|
||||
ensureSampleCapacity(sampleLen + length)
|
||||
val bytesRead = input.read(sampleBuf, sampleLen, length)
|
||||
if (bytesRead > 0) {
|
||||
sampleLen += bytesRead
|
||||
}
|
||||
return bytesRead
|
||||
}
|
||||
|
||||
buffering = true
|
||||
if (readBuf.size < length) readBuf = ByteArray(length)
|
||||
val bytesRead = input.read(readBuf, 0, length)
|
||||
if (bytesRead > 0) {
|
||||
ensureSampleCapacity(sampleLen + bytesRead)
|
||||
System.arraycopy(readBuf, 0, sampleBuf, sampleLen, bytesRead)
|
||||
sampleLen += bytesRead
|
||||
}
|
||||
return bytesRead
|
||||
override fun sampleData(data: ParsableByteArray, length: Int, sampleDataPart: Int) {
|
||||
if (!conversionActive) {
|
||||
delegate.sampleData(data, length, sampleDataPart)
|
||||
return
|
||||
}
|
||||
|
||||
override fun sampleData(data: ParsableByteArray, length: Int, sampleDataPart: Int) {
|
||||
if (!conversionActive) {
|
||||
delegate.sampleData(data, length, sampleDataPart)
|
||||
return
|
||||
}
|
||||
buffering = true
|
||||
ensureSampleCapacity(sampleLen + length)
|
||||
data.readBytes(sampleBuf, sampleLen, length)
|
||||
sampleLen += length
|
||||
}
|
||||
|
||||
buffering = true
|
||||
ensureSampleCapacity(sampleLen + length)
|
||||
data.readBytes(sampleBuf, sampleLen, length)
|
||||
sampleLen += length
|
||||
override fun sampleMetadata(
|
||||
timeUs: Long,
|
||||
flags: Int,
|
||||
size: Int,
|
||||
offset: Int,
|
||||
cryptoData: TrackOutput.CryptoData?
|
||||
) {
|
||||
if (!conversionActive || !buffering) {
|
||||
delegate.sampleMetadata(timeUs, flags, size, offset, cryptoData)
|
||||
return
|
||||
}
|
||||
|
||||
override fun sampleMetadata(
|
||||
timeUs: Long, flags: Int, size: Int, offset: Int, cryptoData: TrackOutput.CryptoData?
|
||||
) {
|
||||
if (!conversionActive || !buffering) {
|
||||
delegate.sampleMetadata(timeUs, flags, size, offset, cryptoData)
|
||||
return
|
||||
}
|
||||
buffering = false
|
||||
val srcLen = sampleLen
|
||||
sampleLen = 0
|
||||
|
||||
buffering = false
|
||||
val srcLen = sampleLen
|
||||
sampleLen = 0
|
||||
val outLen: Int
|
||||
val outBuf: ByteArray
|
||||
val processStartNs = System.nanoTime()
|
||||
val success = try {
|
||||
processNalUnits(srcLen)
|
||||
true
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "NAL processing failed, passing raw sample", e)
|
||||
false
|
||||
}
|
||||
if (success) {
|
||||
outLen = outputLen
|
||||
outBuf = outputBuf
|
||||
} else {
|
||||
outLen = srcLen
|
||||
outBuf = sampleBuf
|
||||
}
|
||||
if (success) {
|
||||
recordSampleProcessing((System.nanoTime() - processStartNs) / 1_000L)
|
||||
}
|
||||
|
||||
val outLen: Int
|
||||
val outBuf: ByteArray
|
||||
val success = try {
|
||||
processNalUnits(srcLen)
|
||||
true
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "NAL processing failed, passing raw sample", e)
|
||||
false
|
||||
// Skip empty samples (all NALs were DV layers) — don't confuse the decoder
|
||||
if (outLen == 0) return
|
||||
|
||||
outputParsable.reset(outBuf, outLen)
|
||||
delegate.sampleData(outputParsable, outLen, TrackOutput.SAMPLE_DATA_PART_MAIN)
|
||||
delegate.sampleMetadata(timeUs, flags, outLen, 0, cryptoData)
|
||||
}
|
||||
|
||||
/**
|
||||
* Process NAL units in sampleBuf[0..dataLen). Auto-detects format:
|
||||
* - Annex B (00 00 00 01 / 00 00 01 start codes) — used by MatroskaExtractor
|
||||
* - Length-prefixed (4-byte big-endian length) — used by Mp4Extractor
|
||||
*
|
||||
* Result is written to outputBuf[0..outputLen).
|
||||
*/
|
||||
private fun processNalUnits(dataLen: Int) {
|
||||
outputLen = 0
|
||||
if (dataLen < 4) {
|
||||
ensureOutputCapacity(dataLen)
|
||||
System.arraycopy(sampleBuf, 0, outputBuf, 0, dataLen)
|
||||
outputLen = dataLen
|
||||
return
|
||||
}
|
||||
|
||||
// Auto-detect: Annex B starts with 00 00 00 01 or 00 00 01
|
||||
val isAnnexB = (
|
||||
dataLen >= 4 &&
|
||||
sampleBuf[0] == 0.toByte() &&
|
||||
sampleBuf[1] == 0.toByte() &&
|
||||
sampleBuf[2] == 0.toByte() &&
|
||||
sampleBuf[3] == 1.toByte()
|
||||
) ||
|
||||
(
|
||||
dataLen >= 3 &&
|
||||
sampleBuf[0] == 0.toByte() &&
|
||||
sampleBuf[1] == 0.toByte() &&
|
||||
sampleBuf[2] == 1.toByte()
|
||||
)
|
||||
|
||||
if (sampleCount == 0L) {
|
||||
Log.d(
|
||||
TAG,
|
||||
"NAL format detected: ${if (isAnnexB) "Annex B" else "length-prefixed"}, " +
|
||||
"first bytes: ${sampleBuf.take(8).joinToString(" ") { "%02X".format(it) }}"
|
||||
)
|
||||
}
|
||||
|
||||
if (isAnnexB) processAnnexBNals(dataLen) else processLengthPrefixedNals(dataLen)
|
||||
}
|
||||
|
||||
/** Process Annex B formatted NAL units (MKV path). Scans inline, no list allocation. */
|
||||
private fun processAnnexBNals(dataLen: Int) {
|
||||
ensureOutputCapacity(dataLen)
|
||||
var kept = 0
|
||||
var stripped = 0
|
||||
|
||||
// Find first start code
|
||||
var scEnd = -1
|
||||
var i = 0
|
||||
while (i < dataLen - 2) {
|
||||
if (sampleBuf[i] == 0.toByte() && sampleBuf[i + 1] == 0.toByte()) {
|
||||
if (i + 3 < dataLen && sampleBuf[i + 2] == 0.toByte() && sampleBuf[i + 3] == 1.toByte()) {
|
||||
scEnd = i + 4
|
||||
break
|
||||
} else if (sampleBuf[i + 2] == 1.toByte()) {
|
||||
scEnd = i + 3
|
||||
break
|
||||
}
|
||||
if (success) {
|
||||
outLen = outputLen
|
||||
outBuf = outputBuf
|
||||
}
|
||||
i++
|
||||
}
|
||||
|
||||
if (scEnd < 0) {
|
||||
// No start codes found — pass through
|
||||
System.arraycopy(sampleBuf, 0, outputBuf, 0, dataLen)
|
||||
outputLen = dataLen
|
||||
sampleCount++
|
||||
return
|
||||
}
|
||||
|
||||
var nalStart = scEnd
|
||||
|
||||
while (nalStart < dataLen) {
|
||||
// Find next start code to determine end of current NAL
|
||||
var nalEnd = dataLen
|
||||
i = nalStart
|
||||
while (i < dataLen - 2) {
|
||||
if (sampleBuf[i] == 0.toByte() && sampleBuf[i + 1] == 0.toByte()) {
|
||||
if (i + 3 < dataLen && sampleBuf[i + 2] == 0.toByte() && sampleBuf[i + 3] == 1.toByte()) {
|
||||
nalEnd = i
|
||||
break
|
||||
} else if (sampleBuf[i + 2] == 1.toByte()) {
|
||||
nalEnd = i
|
||||
break
|
||||
}
|
||||
}
|
||||
i++
|
||||
}
|
||||
|
||||
val nalLen = nalEnd - nalStart
|
||||
if (nalLen > 0) {
|
||||
val action = processNalInline(nalStart, nalLen)
|
||||
if (action == NalAction.KEEP) {
|
||||
ensureOutputCapacity(outputLen + 4 + nalLen)
|
||||
System.arraycopy(ANNEX_B_START_CODE, 0, outputBuf, outputLen, 4)
|
||||
outputLen += 4
|
||||
System.arraycopy(sampleBuf, nalStart, outputBuf, outputLen, nalLen)
|
||||
normalizeLayerId(outputBuf, outputLen)
|
||||
outputLen += nalLen
|
||||
kept++
|
||||
} else if (action == NalAction.CONVERT) {
|
||||
val convertedLen = convertRpuIntoOutput(nalStart, nalLen, outputLen + 4)
|
||||
if (convertedLen >= 0) {
|
||||
System.arraycopy(ANNEX_B_START_CODE, 0, outputBuf, outputLen, 4)
|
||||
outputLen += 4
|
||||
normalizeLayerId(outputBuf, outputLen)
|
||||
outputLen += convertedLen
|
||||
convertedRpuCount++
|
||||
kept++
|
||||
} else {
|
||||
strippedNalCount++
|
||||
stripped++
|
||||
}
|
||||
} else {
|
||||
outLen = srcLen
|
||||
outBuf = sampleBuf
|
||||
strippedNalCount++
|
||||
stripped++
|
||||
}
|
||||
}
|
||||
|
||||
// Skip empty samples (all NALs were DV layers) — don't confuse the decoder
|
||||
if (outLen == 0) return
|
||||
|
||||
outputParsable.reset(outBuf, outLen)
|
||||
delegate.sampleData(outputParsable, outLen, TrackOutput.SAMPLE_DATA_PART_MAIN)
|
||||
delegate.sampleMetadata(timeUs, flags, outLen, 0, cryptoData)
|
||||
// Advance past the next start code
|
||||
if (nalEnd >= dataLen) break
|
||||
nalStart = if (nalEnd + 3 < dataLen && sampleBuf[nalEnd + 2] == 0.toByte() && sampleBuf[nalEnd + 3] == 1.toByte()) {
|
||||
nalEnd + 4
|
||||
} else {
|
||||
nalEnd + 3
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Process NAL units in sampleBuf[0..dataLen). Auto-detects format:
|
||||
* - Annex B (00 00 00 01 / 00 00 01 start codes) — used by MatroskaExtractor
|
||||
* - Length-prefixed (4-byte big-endian length) — used by Mp4Extractor
|
||||
*
|
||||
* Result is written to outputBuf[0..outputLen).
|
||||
*/
|
||||
private fun processNalUnits(dataLen: Int) {
|
||||
outputLen = 0
|
||||
if (dataLen < 4) {
|
||||
ensureOutputCapacity(dataLen)
|
||||
System.arraycopy(sampleBuf, 0, outputBuf, 0, dataLen)
|
||||
outputLen = dataLen
|
||||
return
|
||||
sampleCount++
|
||||
if (sampleCount <= 3 || (sampleCount % 500 == 0L)) {
|
||||
Log.d(
|
||||
TAG,
|
||||
"Sample #$sampleCount (AnnexB): ${dataLen}B -> ${outputLen}B, " +
|
||||
"kept=$kept stripped=$stripped NALs"
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
/** Process length-prefixed NAL units (MP4 path). */
|
||||
private fun processLengthPrefixedNals(dataLen: Int) {
|
||||
ensureOutputCapacity(dataLen)
|
||||
var pos = 0
|
||||
var kept = 0
|
||||
var stripped = 0
|
||||
|
||||
while (pos + 4 <= dataLen) {
|
||||
val nalLen = ((sampleBuf[pos].toInt() and 0xFF) shl 24) or
|
||||
((sampleBuf[pos + 1].toInt() and 0xFF) shl 16) or
|
||||
((sampleBuf[pos + 2].toInt() and 0xFF) shl 8) or
|
||||
(sampleBuf[pos + 3].toInt() and 0xFF)
|
||||
|
||||
if (nalLen <= 0 || pos + 4 + nalLen > dataLen) {
|
||||
if (sampleCount < 5) {
|
||||
Log.w(TAG, "Bad NAL length $nalLen at pos $pos (data.size=$dataLen)")
|
||||
}
|
||||
break
|
||||
}
|
||||
|
||||
// Auto-detect: Annex B starts with 00 00 00 01 or 00 00 01
|
||||
val isAnnexB = (dataLen >= 4 && sampleBuf[0] == 0.toByte() && sampleBuf[1] == 0.toByte() &&
|
||||
sampleBuf[2] == 0.toByte() && sampleBuf[3] == 1.toByte()) ||
|
||||
(dataLen >= 3 && sampleBuf[0] == 0.toByte() && sampleBuf[1] == 0.toByte() &&
|
||||
sampleBuf[2] == 1.toByte())
|
||||
|
||||
if (sampleCount == 0L) {
|
||||
Log.d(TAG, "NAL format detected: ${if (isAnnexB) "Annex B" else "length-prefixed"}, " +
|
||||
"first bytes: ${sampleBuf.take(8).joinToString(" ") { "%02X".format(it) }}")
|
||||
val nalStart = pos + 4
|
||||
val action = processNalInline(nalStart, nalLen)
|
||||
if (action == NalAction.KEEP) {
|
||||
ensureOutputCapacity(outputLen + 4 + nalLen)
|
||||
writeInt32BE(outputBuf, outputLen, nalLen)
|
||||
outputLen += 4
|
||||
System.arraycopy(sampleBuf, nalStart, outputBuf, outputLen, nalLen)
|
||||
normalizeLayerId(outputBuf, outputLen)
|
||||
outputLen += nalLen
|
||||
kept++
|
||||
} else if (action == NalAction.CONVERT) {
|
||||
val convertedLen = convertRpuIntoOutput(nalStart, nalLen, outputLen + 4)
|
||||
if (convertedLen >= 0) {
|
||||
writeInt32BE(outputBuf, outputLen, convertedLen)
|
||||
outputLen += 4
|
||||
normalizeLayerId(outputBuf, outputLen)
|
||||
outputLen += convertedLen
|
||||
convertedRpuCount++
|
||||
kept++
|
||||
} else {
|
||||
strippedNalCount++
|
||||
stripped++
|
||||
}
|
||||
} else {
|
||||
strippedNalCount++
|
||||
stripped++
|
||||
}
|
||||
|
||||
if (isAnnexB) processAnnexBNals(dataLen) else processLengthPrefixedNals(dataLen)
|
||||
pos += 4 + nalLen
|
||||
}
|
||||
|
||||
/** Process Annex B formatted NAL units (MKV path). Scans inline, no list allocation. */
|
||||
private fun processAnnexBNals(dataLen: Int) {
|
||||
ensureOutputCapacity(dataLen)
|
||||
var kept = 0
|
||||
var stripped = 0
|
||||
|
||||
// Find first start code
|
||||
var scEnd = -1
|
||||
var i = 0
|
||||
while (i < dataLen - 2) {
|
||||
if (sampleBuf[i] == 0.toByte() && sampleBuf[i + 1] == 0.toByte()) {
|
||||
if (i + 3 < dataLen && sampleBuf[i + 2] == 0.toByte() && sampleBuf[i + 3] == 1.toByte()) {
|
||||
scEnd = i + 4
|
||||
break
|
||||
} else if (sampleBuf[i + 2] == 1.toByte()) {
|
||||
scEnd = i + 3
|
||||
break
|
||||
}
|
||||
}
|
||||
i++
|
||||
}
|
||||
|
||||
if (scEnd < 0) {
|
||||
// No start codes found — pass through
|
||||
System.arraycopy(sampleBuf, 0, outputBuf, 0, dataLen)
|
||||
outputLen = dataLen
|
||||
sampleCount++
|
||||
return
|
||||
}
|
||||
|
||||
var nalStart = scEnd
|
||||
|
||||
while (nalStart < dataLen) {
|
||||
// Find next start code to determine end of current NAL
|
||||
var nalEnd = dataLen
|
||||
i = nalStart
|
||||
while (i < dataLen - 2) {
|
||||
if (sampleBuf[i] == 0.toByte() && sampleBuf[i + 1] == 0.toByte()) {
|
||||
if (i + 3 < dataLen && sampleBuf[i + 2] == 0.toByte() && sampleBuf[i + 3] == 1.toByte()) {
|
||||
nalEnd = i
|
||||
break
|
||||
} else if (sampleBuf[i + 2] == 1.toByte()) {
|
||||
nalEnd = i
|
||||
break
|
||||
}
|
||||
}
|
||||
i++
|
||||
}
|
||||
|
||||
val nalLen = nalEnd - nalStart
|
||||
if (nalLen > 0) {
|
||||
val action = processNalInline(nalStart, nalLen)
|
||||
if (action == NalAction.KEEP) {
|
||||
ensureOutputCapacity(outputLen + 4 + nalLen)
|
||||
System.arraycopy(ANNEX_B_START_CODE, 0, outputBuf, outputLen, 4)
|
||||
outputLen += 4
|
||||
System.arraycopy(sampleBuf, nalStart, outputBuf, outputLen, nalLen)
|
||||
normalizeLayerId(outputBuf, outputLen)
|
||||
outputLen += nalLen
|
||||
kept++
|
||||
} else if (action == NalAction.CONVERT) {
|
||||
val converted = DoviBridge.convertRpuNalu(
|
||||
sampleBuf.copyOfRange(nalStart, nalStart + nalLen), LIBDOVI_MODE_TO_81
|
||||
)
|
||||
if (converted != null) {
|
||||
normalizeLayerId(converted, 0)
|
||||
ensureOutputCapacity(outputLen + 4 + converted.size)
|
||||
System.arraycopy(ANNEX_B_START_CODE, 0, outputBuf, outputLen, 4)
|
||||
outputLen += 4
|
||||
System.arraycopy(converted, 0, outputBuf, outputLen, converted.size)
|
||||
outputLen += converted.size
|
||||
convertedRpuCount++
|
||||
kept++
|
||||
} else {
|
||||
strippedNalCount++
|
||||
stripped++
|
||||
}
|
||||
} else {
|
||||
strippedNalCount++
|
||||
stripped++
|
||||
}
|
||||
}
|
||||
|
||||
// Advance past the next start code
|
||||
if (nalEnd >= dataLen) break
|
||||
nalStart = if (nalEnd + 3 < dataLen && sampleBuf[nalEnd + 2] == 0.toByte() && sampleBuf[nalEnd + 3] == 1.toByte()) {
|
||||
nalEnd + 4
|
||||
} else {
|
||||
nalEnd + 3
|
||||
}
|
||||
}
|
||||
|
||||
sampleCount++
|
||||
if (sampleCount <= 3 || (sampleCount % 500 == 0L)) {
|
||||
Log.d(TAG, "Sample #$sampleCount (AnnexB): ${dataLen}B -> ${outputLen}B, " +
|
||||
"kept=$kept stripped=$stripped NALs")
|
||||
}
|
||||
sampleCount++
|
||||
if (sampleCount <= 3 || (sampleCount % 500 == 0L)) {
|
||||
Log.d(
|
||||
TAG,
|
||||
"Sample #$sampleCount (LenPrefix): ${dataLen}B -> ${outputLen}B, " +
|
||||
"kept=$kept stripped=$stripped NALs"
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
/** Process length-prefixed NAL units (MP4 path). */
|
||||
private fun processLengthPrefixedNals(dataLen: Int) {
|
||||
ensureOutputCapacity(dataLen)
|
||||
var pos = 0
|
||||
var kept = 0
|
||||
var stripped = 0
|
||||
private enum class NalAction { KEEP, STRIP, CONVERT }
|
||||
|
||||
while (pos + 4 <= dataLen) {
|
||||
val nalLen = ((sampleBuf[pos].toInt() and 0xFF) shl 24) or
|
||||
((sampleBuf[pos + 1].toInt() and 0xFF) shl 16) or
|
||||
((sampleBuf[pos + 2].toInt() and 0xFF) shl 8) or
|
||||
(sampleBuf[pos + 3].toInt() and 0xFF)
|
||||
private fun convertRpuIntoOutput(nalStart: Int, nalLen: Int, outputOffset: Int): Int {
|
||||
ensureOutputCapacity(outputOffset + MAX_CONVERTED_RPU_SIZE)
|
||||
|
||||
if (nalLen <= 0 || pos + 4 + nalLen > dataLen) {
|
||||
if (sampleCount < 5) {
|
||||
Log.w(TAG, "Bad NAL length $nalLen at pos $pos (data.size=$dataLen)")
|
||||
}
|
||||
break
|
||||
}
|
||||
var retriedAfterResize = false
|
||||
while (true) {
|
||||
val startNs = System.nanoTime()
|
||||
val written = DoviBridge.convertRpuNalu(
|
||||
payload = sampleBuf,
|
||||
payloadOffset = nalStart,
|
||||
payloadLength = nalLen,
|
||||
output = outputBuf,
|
||||
outputOffset = outputOffset,
|
||||
outputCapacity = outputBuf.size,
|
||||
mode = LIBDOVI_MODE_TO_81
|
||||
)
|
||||
totalRpuConversionTimeUs += (System.nanoTime() - startNs) / 1_000L
|
||||
rpuConversionCallCount++
|
||||
|
||||
val nalStart = pos + 4
|
||||
val action = processNalInline(nalStart, nalLen)
|
||||
if (action == NalAction.KEEP) {
|
||||
ensureOutputCapacity(outputLen + 4 + nalLen)
|
||||
writeInt32BE(outputBuf, outputLen, nalLen)
|
||||
outputLen += 4
|
||||
System.arraycopy(sampleBuf, nalStart, outputBuf, outputLen, nalLen)
|
||||
normalizeLayerId(outputBuf, outputLen)
|
||||
outputLen += nalLen
|
||||
kept++
|
||||
} else if (action == NalAction.CONVERT) {
|
||||
val converted = DoviBridge.convertRpuNalu(
|
||||
sampleBuf.copyOfRange(nalStart, nalStart + nalLen), LIBDOVI_MODE_TO_81
|
||||
)
|
||||
if (converted != null) {
|
||||
normalizeLayerId(converted, 0)
|
||||
ensureOutputCapacity(outputLen + 4 + converted.size)
|
||||
writeInt32BE(outputBuf, outputLen, converted.size)
|
||||
outputLen += 4
|
||||
System.arraycopy(converted, 0, outputBuf, outputLen, converted.size)
|
||||
outputLen += converted.size
|
||||
convertedRpuCount++
|
||||
kept++
|
||||
} else {
|
||||
strippedNalCount++
|
||||
stripped++
|
||||
}
|
||||
} else {
|
||||
strippedNalCount++
|
||||
stripped++
|
||||
}
|
||||
if (written >= 0) return written
|
||||
|
||||
pos += 4 + nalLen
|
||||
if (written == DoviBridge.DESTINATION_TOO_SMALL) {
|
||||
rpuOutputTooSmallCount++
|
||||
if (!retriedAfterResize) {
|
||||
val doubled = if (outputBuf.size <= Int.MAX_VALUE / 2) outputBuf.size * 2 else Int.MAX_VALUE
|
||||
ensureOutputCapacity(maxOf(doubled, outputOffset + MAX_CONVERTED_RPU_SIZE))
|
||||
retriedAfterResize = true
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
sampleCount++
|
||||
if (sampleCount <= 3 || (sampleCount % 500 == 0L)) {
|
||||
Log.d(TAG, "Sample #$sampleCount (LenPrefix): ${dataLen}B -> ${outputLen}B, " +
|
||||
"kept=$kept stripped=$stripped NALs")
|
||||
}
|
||||
rpuConversionFailureCount++
|
||||
return written
|
||||
}
|
||||
}
|
||||
|
||||
private enum class NalAction { KEEP, STRIP, CONVERT }
|
||||
|
||||
/** Classify a NAL at sampleBuf[offset..offset+len) without copying. */
|
||||
private fun processNalInline(offset: Int, len: Int): NalAction {
|
||||
if (len < 2) return NalAction.KEEP
|
||||
val nalType = (sampleBuf[offset].toInt() ushr 1) and 0x3F
|
||||
val nuhLayerId = ((sampleBuf[offset].toInt() and 1) shl 5) or
|
||||
((sampleBuf[offset + 1].toInt() ushr 3) and 0x1F)
|
||||
return when {
|
||||
nalType == NAL_TYPE_UNSPEC62 && dvMode == DvConversionMode.DV81 -> NalAction.CONVERT
|
||||
nalType == NAL_TYPE_UNSPEC62 || nalType == NAL_TYPE_UNSPEC63 || nuhLayerId > 0 -> NalAction.STRIP
|
||||
else -> NalAction.KEEP
|
||||
}
|
||||
private fun recordSampleProcessing(elapsedUs: Long) {
|
||||
totalSampleProcessingTimeUs += elapsedUs
|
||||
if (sampleCount <= 3 || (sampleCount > 0 && sampleCount % 500 == 0L)) {
|
||||
Log.d(
|
||||
TAG,
|
||||
"Perf: avgSample=${averageSampleProcessingTimeUs}us, " +
|
||||
"avgRpu=${averageRpuConversionTimeUs}us, converted=$convertedRpuCount, " +
|
||||
"rpuFailures=$rpuConversionFailureCount, rpuTooSmall=$rpuOutputTooSmallCount"
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
private fun normalizeLayerId(data: ByteArray, offset: Int) {
|
||||
if (data.size - offset >= 2) {
|
||||
data[offset] = (data[offset].toInt() and 0xFE).toByte()
|
||||
data[offset + 1] = (data[offset + 1].toInt() and 0x07).toByte()
|
||||
}
|
||||
/** Classify a NAL at sampleBuf[offset..offset+len) without copying. */
|
||||
private fun processNalInline(offset: Int, len: Int): NalAction {
|
||||
if (len < 2) return NalAction.KEEP
|
||||
val nalType = (sampleBuf[offset].toInt() ushr 1) and 0x3F
|
||||
val nuhLayerId = ((sampleBuf[offset].toInt() and 1) shl 5) or
|
||||
((sampleBuf[offset + 1].toInt() ushr 3) and 0x1F)
|
||||
return when {
|
||||
nalType == NAL_TYPE_UNSPEC62 && dvMode == DvConversionMode.DV81 -> NalAction.CONVERT
|
||||
nalType == NAL_TYPE_UNSPEC62 || nalType == NAL_TYPE_UNSPEC63 || nuhLayerId > 0 -> NalAction.STRIP
|
||||
else -> NalAction.KEEP
|
||||
}
|
||||
}
|
||||
|
||||
private fun writeInt32BE(buf: ByteArray, offset: Int, value: Int) {
|
||||
buf[offset] = ((value ushr 24) and 0xFF).toByte()
|
||||
buf[offset + 1] = ((value ushr 16) and 0xFF).toByte()
|
||||
buf[offset + 2] = ((value ushr 8) and 0xFF).toByte()
|
||||
buf[offset + 3] = (value and 0xFF).toByte()
|
||||
private fun normalizeLayerId(data: ByteArray, offset: Int) {
|
||||
if (data.size - offset >= 2) {
|
||||
data[offset] = (data[offset].toInt() and 0xFE).toByte()
|
||||
data[offset + 1] = (data[offset + 1].toInt() and 0x07).toByte()
|
||||
}
|
||||
}
|
||||
|
||||
private fun ensureSampleCapacity(needed: Int) {
|
||||
if (sampleBuf.size < needed) {
|
||||
sampleBuf = sampleBuf.copyOf(maxOf(needed, sampleBuf.size * 2))
|
||||
}
|
||||
}
|
||||
private fun writeInt32BE(buf: ByteArray, offset: Int, value: Int) {
|
||||
buf[offset] = ((value ushr 24) and 0xFF).toByte()
|
||||
buf[offset + 1] = ((value ushr 16) and 0xFF).toByte()
|
||||
buf[offset + 2] = ((value ushr 8) and 0xFF).toByte()
|
||||
buf[offset + 3] = (value and 0xFF).toByte()
|
||||
}
|
||||
|
||||
private fun ensureOutputCapacity(needed: Int) {
|
||||
if (outputBuf.size < needed) {
|
||||
outputBuf = outputBuf.copyOf(maxOf(needed, outputBuf.size * 2))
|
||||
}
|
||||
private fun ensureSampleCapacity(needed: Int) {
|
||||
if (sampleBuf.size < needed) {
|
||||
sampleBuf = sampleBuf.copyOf(maxOf(needed, sampleBuf.size * 2))
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Build a 24-byte DOVIDecoderConfigurationRecord for DV Profile 8.1.
|
||||
*
|
||||
* Binary layout (from Dolby Vision spec):
|
||||
* byte[0]: dv_version_major = 1
|
||||
* byte[1]: dv_version_minor = 0
|
||||
* byte[2]: dv_profile (7 bits) | dv_level MSB (1 bit)
|
||||
* byte[3]: dv_level low 5 bits (5 bits) | rpu_present (1) | el_present (1) | bl_present (1)
|
||||
* byte[4]: bl_compatibility_id (4 bits) | md_compression (2 bits) | reserved (2 bits)
|
||||
* byte[5-23]: reserved (zeros)
|
||||
*/
|
||||
private fun buildDv81ConfigRecord(level: Int): ByteArray {
|
||||
val record = ByteArray(24)
|
||||
record[0] = 0x01 // dv_version_major = 1
|
||||
record[1] = 0x00 // dv_version_minor = 0
|
||||
record[2] = ((8 shl 1) or ((level ushr 5) and 0x01)).toByte() // profile=8 | level MSB
|
||||
record[3] = (((level and 0x1F) shl 3) or 0x05).toByte() // level low 5 | rpu=1 el=0 bl=1
|
||||
record[4] = (1 shl 4).toByte() // bl_compatibility_id=1 (HDR10)
|
||||
// bytes 5-23 remain 0 (reserved)
|
||||
return record
|
||||
private fun ensureOutputCapacity(needed: Int) {
|
||||
if (outputBuf.size < needed) {
|
||||
outputBuf = outputBuf.copyOf(maxOf(needed, outputBuf.size * 2))
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Build a 24-byte DOVIDecoderConfigurationRecord for DV Profile 8.1.
|
||||
*
|
||||
* Binary layout (from Dolby Vision spec):
|
||||
* byte[0]: dv_version_major = 1
|
||||
* byte[1]: dv_version_minor = 0
|
||||
* byte[2]: dv_profile (7 bits) | dv_level MSB (1 bit)
|
||||
* byte[3]: dv_level low 5 bits (5 bits) | rpu_present (1) | el_present (1) | bl_present (1)
|
||||
* byte[4]: bl_compatibility_id (4 bits) | md_compression (2 bits) | reserved (2 bits)
|
||||
* byte[5-23]: reserved (zeros)
|
||||
*/
|
||||
private fun buildDv81ConfigRecord(level: Int): ByteArray {
|
||||
val record = ByteArray(24)
|
||||
record[0] = 0x01 // dv_version_major = 1
|
||||
record[1] = 0x00 // dv_version_minor = 0
|
||||
record[2] = ((8 shl 1) or ((level ushr 5) and 0x01)).toByte() // profile=8 | level MSB
|
||||
record[3] = (((level and 0x1F) shl 3) or 0x05).toByte() // level low 5 | rpu=1 el=0 bl=1
|
||||
record[4] = (1 shl 4).toByte() // bl_compatibility_id=1 (HDR10)
|
||||
// bytes 5-23 remain 0 (reserved)
|
||||
return record
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,22 +14,22 @@ import androidx.media3.extractor.TrackOutput
|
||||
* Shared by DoviExtractorWrapper for both MP4 and MKV containers.
|
||||
*/
|
||||
class DoviExtractorOutputWrapper(
|
||||
private val delegate: ExtractorOutput,
|
||||
private val dvMode: DvConversionMode,
|
||||
private val onVideoTrackWrapped: (DoviConvertingTrackOutput) -> Unit,
|
||||
private val delegate: ExtractorOutput,
|
||||
private val dvMode: DvConversionMode,
|
||||
private val onVideoTrackWrapped: (DoviConvertingTrackOutput) -> Unit
|
||||
) : ExtractorOutput {
|
||||
override fun track(id: Int, type: Int): TrackOutput {
|
||||
val original = delegate.track(id, type)
|
||||
if (type == C.TRACK_TYPE_VIDEO) {
|
||||
val wrapper = DoviConvertingTrackOutput(original, dvMode)
|
||||
onVideoTrackWrapped(wrapper)
|
||||
return wrapper
|
||||
}
|
||||
return original
|
||||
override fun track(id: Int, type: Int): TrackOutput {
|
||||
val original = delegate.track(id, type)
|
||||
if (type == C.TRACK_TYPE_VIDEO) {
|
||||
val wrapper = DoviConvertingTrackOutput(original, dvMode)
|
||||
onVideoTrackWrapped(wrapper)
|
||||
return wrapper
|
||||
}
|
||||
return original
|
||||
}
|
||||
|
||||
override fun endTracks() = delegate.endTracks()
|
||||
override fun seekMap(seekMap: SeekMap) = delegate.seekMap(seekMap)
|
||||
override fun endTracks() = delegate.endTracks()
|
||||
override fun seekMap(seekMap: SeekMap) = delegate.seekMap(seekMap)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,23 +38,22 @@ class DoviExtractorOutputWrapper(
|
||||
* DV Profile 7 → 8.1 conversion via inline NAL processing.
|
||||
*/
|
||||
class DoviExtractorWrapper(
|
||||
private val delegate: Extractor,
|
||||
private val dvMode: DvConversionMode = DvConversionMode.HEVC_STRIP,
|
||||
private val delegate: Extractor,
|
||||
private val dvMode: DvConversionMode = DvConversionMode.HEVC_STRIP
|
||||
) : Extractor {
|
||||
|
||||
@Volatile var doviTrackOutput: DoviConvertingTrackOutput? = null
|
||||
private set
|
||||
@Volatile var doviTrackOutput: DoviConvertingTrackOutput? = null
|
||||
private set
|
||||
|
||||
override fun sniff(input: ExtractorInput): Boolean = delegate.sniff(input)
|
||||
override fun sniff(input: ExtractorInput): Boolean = delegate.sniff(input)
|
||||
|
||||
override fun init(output: ExtractorOutput) {
|
||||
delegate.init(DoviExtractorOutputWrapper(output, dvMode) { doviTrackOutput = it })
|
||||
}
|
||||
override fun init(output: ExtractorOutput) {
|
||||
delegate.init(DoviExtractorOutputWrapper(output, dvMode) { doviTrackOutput = it })
|
||||
}
|
||||
|
||||
override fun read(input: ExtractorInput, seekPosition: PositionHolder): Int =
|
||||
delegate.read(input, seekPosition)
|
||||
override fun read(input: ExtractorInput, seekPosition: PositionHolder): Int = delegate.read(input, seekPosition)
|
||||
|
||||
override fun seek(position: Long, timeUs: Long) = delegate.seek(position, timeUs)
|
||||
override fun seek(position: Long, timeUs: Long) = delegate.seek(position, timeUs)
|
||||
|
||||
override fun release() = delegate.release()
|
||||
override fun release() = delegate.release()
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+233
-239
@@ -8,6 +8,7 @@ import androidx.media3.common.PlaybackParameters
|
||||
import androidx.media3.common.util.Clock
|
||||
import androidx.media3.common.util.UnstableApi
|
||||
import androidx.media3.exoplayer.DefaultRenderersFactory
|
||||
import androidx.media3.exoplayer.Renderer
|
||||
import androidx.media3.exoplayer.analytics.PlayerId
|
||||
import androidx.media3.exoplayer.audio.AudioOutput
|
||||
import androidx.media3.exoplayer.audio.AudioOutputProvider
|
||||
@@ -16,7 +17,6 @@ import androidx.media3.exoplayer.audio.AudioTrackAudioOutputProvider
|
||||
import androidx.media3.exoplayer.audio.DefaultAudioSink
|
||||
import androidx.media3.exoplayer.audio.DefaultAudioTrackBufferSizeProvider
|
||||
import androidx.media3.exoplayer.audio.ForwardingAudioSink
|
||||
import androidx.media3.exoplayer.Renderer
|
||||
import java.nio.ByteBuffer
|
||||
import java.util.concurrent.atomic.AtomicLong
|
||||
import kotlin.math.abs
|
||||
@@ -24,38 +24,38 @@ import kotlin.math.abs
|
||||
@OptIn(UnstableApi::class)
|
||||
class PlezyRenderersFactory(context: Context) : DefaultRenderersFactory(context) {
|
||||
|
||||
/** Audio delay in microseconds. Shared with PositionFixAudioSink for live updates. */
|
||||
val audioDelayUs = AtomicLong(0L)
|
||||
/** Audio delay in microseconds. Shared with PositionFixAudioSink for live updates. */
|
||||
val audioDelayUs = AtomicLong(0L)
|
||||
|
||||
override fun buildAudioSink(
|
||||
context: Context,
|
||||
enableFloatOutput: Boolean,
|
||||
enableAudioOutputPlaybackParams: Boolean
|
||||
): AudioSink {
|
||||
AudioTrackAudioOutputProvider.failOnSpuriousAudioTimestamp = false
|
||||
override fun buildAudioSink(
|
||||
context: Context,
|
||||
enableFloatOutput: Boolean,
|
||||
enableAudioOutputPlaybackParams: Boolean
|
||||
): AudioSink {
|
||||
AudioTrackAudioOutputProvider.failOnSpuriousAudioTimestamp = false
|
||||
|
||||
val bufferSizeProvider = DefaultAudioTrackBufferSizeProvider.Builder()
|
||||
.setMinPcmBufferDurationUs(500_000)
|
||||
.setMaxPcmBufferDurationUs(1_000_000)
|
||||
.setPcmBufferMultiplicationFactor(4)
|
||||
.build()
|
||||
val bufferSizeProvider = DefaultAudioTrackBufferSizeProvider.Builder()
|
||||
.setMinPcmBufferDurationUs(500_000)
|
||||
.setMaxPcmBufferDurationUs(1_000_000)
|
||||
.setPcmBufferMultiplicationFactor(4)
|
||||
.build()
|
||||
|
||||
val realProvider = AudioTrackAudioOutputProvider.Builder(context)
|
||||
.setAudioTrackBufferSizeProvider(bufferSizeProvider)
|
||||
.build()
|
||||
val realProvider = AudioTrackAudioOutputProvider.Builder(context)
|
||||
.setAudioTrackBufferSizeProvider(bufferSizeProvider)
|
||||
.build()
|
||||
|
||||
// Shared position: RawPositionAudioOutput writes the raw AudioTrack position,
|
||||
// PositionFixAudioSink reads it to bypass DefaultAudioSink's writtenDuration clamp.
|
||||
val rawPositionUs = AtomicLong(Long.MIN_VALUE)
|
||||
// Shared position: RawPositionAudioOutput writes the raw AudioTrack position,
|
||||
// PositionFixAudioSink reads it to bypass DefaultAudioSink's writtenDuration clamp.
|
||||
val rawPositionUs = AtomicLong(Long.MIN_VALUE)
|
||||
|
||||
val defaultSink = DefaultAudioSink.Builder(context)
|
||||
.setEnableFloatOutput(enableFloatOutput)
|
||||
.setEnableAudioOutputPlaybackParameters(enableAudioOutputPlaybackParams)
|
||||
.setAudioOutputProvider(RawPositionOutputProvider(realProvider, rawPositionUs))
|
||||
.build()
|
||||
val defaultSink = DefaultAudioSink.Builder(context)
|
||||
.setEnableFloatOutput(enableFloatOutput)
|
||||
.setEnableAudioOutputPlaybackParameters(enableAudioOutputPlaybackParams)
|
||||
.setAudioOutputProvider(RawPositionOutputProvider(realProvider, rawPositionUs))
|
||||
.build()
|
||||
|
||||
return PositionFixAudioSink(defaultSink, rawPositionUs, audioDelayUs)
|
||||
}
|
||||
return PositionFixAudioSink(defaultSink, rawPositionUs, audioDelayUs)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -81,130 +81,132 @@ class PlezyRenderersFactory(context: Context) : DefaultRenderersFactory(context)
|
||||
*/
|
||||
@OptIn(UnstableApi::class)
|
||||
private class PositionFixAudioSink(
|
||||
sink: AudioSink,
|
||||
private val rawPositionUs: AtomicLong,
|
||||
private val audioDelayUs: AtomicLong
|
||||
sink: AudioSink,
|
||||
private val rawPositionUs: AtomicLong,
|
||||
private val audioDelayUs: AtomicLong
|
||||
) : ForwardingAudioSink(sink) {
|
||||
|
||||
private var startMediaTimeUs = Long.MIN_VALUE
|
||||
private var suppressedErrorCount = 0
|
||||
private var startMediaTimeUs = Long.MIN_VALUE
|
||||
private var suppressedErrorCount = 0
|
||||
|
||||
// Speed tracking for position bypass
|
||||
private var currentSpeed = 1.0f
|
||||
private var refMediaTimeUs = Long.MIN_VALUE
|
||||
private var refRawPositionUs = 0L
|
||||
// Speed tracking for position bypass
|
||||
private var currentSpeed = 1.0f
|
||||
private var refMediaTimeUs = Long.MIN_VALUE
|
||||
private var refRawPositionUs = 0L
|
||||
|
||||
// Transient counter-offset: after seek/flush, ramp offset from 0 to full
|
||||
// over recoveryDurationUs to prevent video frame drops.
|
||||
private var recoveryDurationUs = 0L
|
||||
// Transient counter-offset: after seek/flush, ramp offset from 0 to full
|
||||
// over recoveryDurationUs to prevent video frame drops.
|
||||
private var recoveryDurationUs = 0L
|
||||
|
||||
override fun handleBuffer(
|
||||
buffer: ByteBuffer,
|
||||
presentationTimeUs: Long,
|
||||
encodedAccessUnitCount: Int
|
||||
): Boolean {
|
||||
if (startMediaTimeUs == Long.MIN_VALUE) {
|
||||
startMediaTimeUs = presentationTimeUs
|
||||
refMediaTimeUs = presentationTimeUs
|
||||
refRawPositionUs = 0
|
||||
val delayUs = audioDelayUs.get()
|
||||
recoveryDurationUs = if (delayUs == 0L) 0L else maxOf(200_000L, 2L * abs(delayUs))
|
||||
override fun handleBuffer(
|
||||
buffer: ByteBuffer,
|
||||
presentationTimeUs: Long,
|
||||
encodedAccessUnitCount: Int
|
||||
): Boolean {
|
||||
if (startMediaTimeUs == Long.MIN_VALUE) {
|
||||
startMediaTimeUs = presentationTimeUs
|
||||
refMediaTimeUs = presentationTimeUs
|
||||
refRawPositionUs = 0
|
||||
val delayUs = audioDelayUs.get()
|
||||
recoveryDurationUs = if (delayUs == 0L) 0L else maxOf(200_000L, 2L * abs(delayUs))
|
||||
}
|
||||
return super.handleBuffer(buffer, presentationTimeUs, encodedAccessUnitCount)
|
||||
}
|
||||
|
||||
override fun setPlaybackParameters(playbackParameters: PlaybackParameters) {
|
||||
// Capture reference point before speed changes
|
||||
val rawPos = rawPositionUs.get()
|
||||
if (rawPos > 0 && refMediaTimeUs != Long.MIN_VALUE) {
|
||||
refMediaTimeUs = refMediaTimeUs + ((rawPos - refRawPositionUs) * currentSpeed).toLong()
|
||||
refRawPositionUs = rawPos
|
||||
}
|
||||
currentSpeed = playbackParameters.speed
|
||||
super.setPlaybackParameters(playbackParameters)
|
||||
}
|
||||
|
||||
override fun getCurrentPositionUs(sourceEnded: Boolean): Long {
|
||||
val delegatePos = super.getCurrentPositionUs(sourceEnded)
|
||||
if (delegatePos == Long.MIN_VALUE || refMediaTimeUs == Long.MIN_VALUE) {
|
||||
return delegatePos
|
||||
}
|
||||
|
||||
val rawPos = rawPositionUs.get()
|
||||
val basePos = if (rawPos <= 0) {
|
||||
delegatePos
|
||||
} else {
|
||||
val expectedPos = refMediaTimeUs + ((rawPos - refRawPositionUs) * currentSpeed).toLong()
|
||||
if (expectedPos > delegatePos + 30_000) expectedPos else delegatePos
|
||||
}
|
||||
|
||||
// Audio delay with transient counter-offset to prevent frame drops after seeks.
|
||||
// After flush, offset ramps linearly from 0 to full over recoveryDurationUs.
|
||||
val delayUs = audioDelayUs.get()
|
||||
if (delayUs == 0L) return basePos
|
||||
|
||||
val elapsedUs = basePos - startMediaTimeUs
|
||||
val netOffsetUs = if (recoveryDurationUs <= 0L || elapsedUs >= recoveryDurationUs) {
|
||||
delayUs
|
||||
} else {
|
||||
(delayUs * elapsedUs) / recoveryDurationUs
|
||||
}
|
||||
return basePos + netOffsetUs
|
||||
}
|
||||
|
||||
// --- Suppress timestamp discontinuity errors ---
|
||||
|
||||
override fun setListener(listener: AudioSink.Listener) {
|
||||
super.setListener(
|
||||
@OptIn(UnstableApi::class) object : AudioSink.Listener {
|
||||
override fun onPositionDiscontinuity() = listener.onPositionDiscontinuity()
|
||||
override fun onPositionAdvancing(playoutStartSystemTimeUs: Long) = listener.onPositionAdvancing(playoutStartSystemTimeUs)
|
||||
override fun onUnderrun(bufferSize: Int, bufferSizeMs: Long, elapsedSinceLastFeedMs: Long) = listener.onUnderrun(bufferSize, bufferSizeMs, elapsedSinceLastFeedMs)
|
||||
override fun onSkipSilenceEnabledChanged(skipSilenceEnabled: Boolean) = listener.onSkipSilenceEnabledChanged(skipSilenceEnabled)
|
||||
override fun onOffloadBufferEmptying() = listener.onOffloadBufferEmptying()
|
||||
override fun onOffloadBufferFull() = listener.onOffloadBufferFull()
|
||||
override fun onAudioCapabilitiesChanged() = listener.onAudioCapabilitiesChanged()
|
||||
override fun onAudioTrackInitialized(audioTrackConfig: AudioSink.AudioTrackConfig) = listener.onAudioTrackInitialized(audioTrackConfig)
|
||||
override fun onAudioTrackReleased(audioTrackConfig: AudioSink.AudioTrackConfig) = listener.onAudioTrackReleased(audioTrackConfig)
|
||||
override fun onSilenceSkipped() = listener.onSilenceSkipped()
|
||||
override fun onAudioSessionIdChanged(audioSessionId: Int) = listener.onAudioSessionIdChanged(audioSessionId)
|
||||
|
||||
override fun onAudioSinkError(audioSinkError: Exception) {
|
||||
if (isTimestampDiscontinuity(audioSinkError)) {
|
||||
suppressedErrorCount++
|
||||
return
|
||||
}
|
||||
listener.onAudioSinkError(audioSinkError)
|
||||
}
|
||||
return super.handleBuffer(buffer, presentationTimeUs, encodedAccessUnitCount)
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
override fun setPlaybackParameters(playbackParameters: PlaybackParameters) {
|
||||
// Capture reference point before speed changes
|
||||
val rawPos = rawPositionUs.get()
|
||||
if (rawPos > 0 && refMediaTimeUs != Long.MIN_VALUE) {
|
||||
refMediaTimeUs = refMediaTimeUs + ((rawPos - refRawPositionUs) * currentSpeed).toLong()
|
||||
refRawPositionUs = rawPos
|
||||
}
|
||||
currentSpeed = playbackParameters.speed
|
||||
super.setPlaybackParameters(playbackParameters)
|
||||
}
|
||||
override fun flush() {
|
||||
startMediaTimeUs = Long.MIN_VALUE
|
||||
refMediaTimeUs = Long.MIN_VALUE
|
||||
refRawPositionUs = 0
|
||||
recoveryDurationUs = 0L
|
||||
rawPositionUs.set(Long.MIN_VALUE)
|
||||
super.flush()
|
||||
}
|
||||
|
||||
override fun getCurrentPositionUs(sourceEnded: Boolean): Long {
|
||||
val delegatePos = super.getCurrentPositionUs(sourceEnded)
|
||||
if (delegatePos == Long.MIN_VALUE || refMediaTimeUs == Long.MIN_VALUE) {
|
||||
return delegatePos
|
||||
}
|
||||
override fun reset() {
|
||||
startMediaTimeUs = Long.MIN_VALUE
|
||||
refMediaTimeUs = Long.MIN_VALUE
|
||||
refRawPositionUs = 0
|
||||
recoveryDurationUs = 0L
|
||||
currentSpeed = 1.0f
|
||||
rawPositionUs.set(Long.MIN_VALUE)
|
||||
suppressedErrorCount = 0
|
||||
super.reset()
|
||||
}
|
||||
|
||||
val rawPos = rawPositionUs.get()
|
||||
val basePos = if (rawPos <= 0) {
|
||||
delegatePos
|
||||
} else {
|
||||
val expectedPos = refMediaTimeUs + ((rawPos - refRawPositionUs) * currentSpeed).toLong()
|
||||
if (expectedPos > delegatePos + 30_000) expectedPos else delegatePos
|
||||
}
|
||||
|
||||
// Audio delay with transient counter-offset to prevent frame drops after seeks.
|
||||
// After flush, offset ramps linearly from 0 to full over recoveryDurationUs.
|
||||
val delayUs = audioDelayUs.get()
|
||||
if (delayUs == 0L) return basePos
|
||||
|
||||
val elapsedUs = basePos - startMediaTimeUs
|
||||
val netOffsetUs = if (recoveryDurationUs <= 0L || elapsedUs >= recoveryDurationUs) {
|
||||
delayUs
|
||||
} else {
|
||||
(delayUs * elapsedUs) / recoveryDurationUs
|
||||
}
|
||||
return basePos + netOffsetUs
|
||||
}
|
||||
|
||||
// --- Suppress timestamp discontinuity errors ---
|
||||
|
||||
override fun setListener(listener: AudioSink.Listener) {
|
||||
super.setListener(@OptIn(UnstableApi::class) object : AudioSink.Listener {
|
||||
override fun onPositionDiscontinuity() = listener.onPositionDiscontinuity()
|
||||
override fun onPositionAdvancing(playoutStartSystemTimeUs: Long) = listener.onPositionAdvancing(playoutStartSystemTimeUs)
|
||||
override fun onUnderrun(bufferSize: Int, bufferSizeMs: Long, elapsedSinceLastFeedMs: Long) = listener.onUnderrun(bufferSize, bufferSizeMs, elapsedSinceLastFeedMs)
|
||||
override fun onSkipSilenceEnabledChanged(skipSilenceEnabled: Boolean) = listener.onSkipSilenceEnabledChanged(skipSilenceEnabled)
|
||||
override fun onOffloadBufferEmptying() = listener.onOffloadBufferEmptying()
|
||||
override fun onOffloadBufferFull() = listener.onOffloadBufferFull()
|
||||
override fun onAudioCapabilitiesChanged() = listener.onAudioCapabilitiesChanged()
|
||||
override fun onAudioTrackInitialized(audioTrackConfig: AudioSink.AudioTrackConfig) = listener.onAudioTrackInitialized(audioTrackConfig)
|
||||
override fun onAudioTrackReleased(audioTrackConfig: AudioSink.AudioTrackConfig) = listener.onAudioTrackReleased(audioTrackConfig)
|
||||
override fun onSilenceSkipped() = listener.onSilenceSkipped()
|
||||
override fun onAudioSessionIdChanged(audioSessionId: Int) = listener.onAudioSessionIdChanged(audioSessionId)
|
||||
|
||||
override fun onAudioSinkError(audioSinkError: Exception) {
|
||||
if (isTimestampDiscontinuity(audioSinkError)) {
|
||||
suppressedErrorCount++
|
||||
return
|
||||
}
|
||||
listener.onAudioSinkError(audioSinkError)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
override fun flush() {
|
||||
startMediaTimeUs = Long.MIN_VALUE
|
||||
refMediaTimeUs = Long.MIN_VALUE
|
||||
refRawPositionUs = 0
|
||||
recoveryDurationUs = 0L
|
||||
rawPositionUs.set(Long.MIN_VALUE)
|
||||
super.flush()
|
||||
}
|
||||
|
||||
override fun reset() {
|
||||
startMediaTimeUs = Long.MIN_VALUE
|
||||
refMediaTimeUs = Long.MIN_VALUE
|
||||
refRawPositionUs = 0
|
||||
recoveryDurationUs = 0L
|
||||
currentSpeed = 1.0f
|
||||
rawPositionUs.set(Long.MIN_VALUE)
|
||||
suppressedErrorCount = 0
|
||||
super.reset()
|
||||
}
|
||||
|
||||
private fun isTimestampDiscontinuity(e: Exception): Boolean {
|
||||
val name = e.javaClass.simpleName
|
||||
val msg = e.message ?: ""
|
||||
return name == "InvalidAudioTrackTimestampException" ||
|
||||
name == "UnexpectedDiscontinuityException" ||
|
||||
msg.contains("timestamp discontinuity", ignoreCase = true)
|
||||
}
|
||||
private fun isTimestampDiscontinuity(e: Exception): Boolean {
|
||||
val name = e.javaClass.simpleName
|
||||
val msg = e.message ?: ""
|
||||
return name == "InvalidAudioTrackTimestampException" ||
|
||||
name == "UnexpectedDiscontinuityException" ||
|
||||
msg.contains("timestamp discontinuity", ignoreCase = true)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -215,12 +217,12 @@ private class PositionFixAudioSink(
|
||||
*/
|
||||
@OptIn(UnstableApi::class)
|
||||
internal class SubtitleDelayRenderer(
|
||||
private val delegate: Renderer,
|
||||
private val delayUs: AtomicLong
|
||||
private val delegate: Renderer,
|
||||
private val delayUs: AtomicLong
|
||||
) : Renderer by delegate {
|
||||
override fun render(positionUs: Long, elapsedRealtimeUs: Long) {
|
||||
delegate.render(positionUs - delayUs.get(), elapsedRealtimeUs)
|
||||
}
|
||||
override fun render(positionUs: Long, elapsedRealtimeUs: Long) {
|
||||
delegate.render(positionUs - delayUs.get(), elapsedRealtimeUs)
|
||||
}
|
||||
}
|
||||
|
||||
// --- AudioOutput wrapping: shares raw position with PositionFixAudioSink ---
|
||||
@@ -232,117 +234,109 @@ internal class SubtitleDelayRenderer(
|
||||
|
||||
@OptIn(UnstableApi::class)
|
||||
private class RawPositionOutputProvider(
|
||||
private val delegate: AudioOutputProvider,
|
||||
private val rawPositionUs: AtomicLong
|
||||
private val delegate: AudioOutputProvider,
|
||||
private val rawPositionUs: AtomicLong
|
||||
) : AudioOutputProvider {
|
||||
|
||||
private var cachedOutput: RawPositionAudioOutput? = null
|
||||
private var cachedConfig: AudioOutputProvider.OutputConfig? = null
|
||||
private var cachedOutput: RawPositionAudioOutput? = null
|
||||
private var cachedConfig: AudioOutputProvider.OutputConfig? = null
|
||||
|
||||
override fun getFormatSupport(config: AudioOutputProvider.FormatConfig) =
|
||||
delegate.getFormatSupport(config)
|
||||
override fun getFormatSupport(config: AudioOutputProvider.FormatConfig) = delegate.getFormatSupport(config)
|
||||
|
||||
override fun getOutputConfig(config: AudioOutputProvider.FormatConfig) =
|
||||
delegate.getOutputConfig(config)
|
||||
override fun getOutputConfig(config: AudioOutputProvider.FormatConfig) = delegate.getOutputConfig(config)
|
||||
|
||||
override fun getAudioOutput(config: AudioOutputProvider.OutputConfig): AudioOutput {
|
||||
val cached = cachedOutput
|
||||
if (cached != null && cachedConfig == config) {
|
||||
cachedOutput = null
|
||||
return cached
|
||||
}
|
||||
cached?.forceRelease()
|
||||
cachedOutput = null
|
||||
|
||||
val realOutput = delegate.getAudioOutput(config)
|
||||
cachedConfig = config
|
||||
return RawPositionAudioOutput(realOutput, rawPositionUs, this)
|
||||
override fun getAudioOutput(config: AudioOutputProvider.OutputConfig): AudioOutput {
|
||||
val cached = cachedOutput
|
||||
if (cached != null && cachedConfig == config) {
|
||||
cachedOutput = null
|
||||
return cached
|
||||
}
|
||||
cached?.forceRelease()
|
||||
cachedOutput = null
|
||||
|
||||
fun returnToCache(output: RawPositionAudioOutput) {
|
||||
val existing = cachedOutput
|
||||
if (existing != null && existing !== output) {
|
||||
existing.forceRelease()
|
||||
}
|
||||
cachedOutput = output
|
||||
val realOutput = delegate.getAudioOutput(config)
|
||||
cachedConfig = config
|
||||
return RawPositionAudioOutput(realOutput, rawPositionUs, this)
|
||||
}
|
||||
|
||||
fun returnToCache(output: RawPositionAudioOutput) {
|
||||
val existing = cachedOutput
|
||||
if (existing != null && existing !== output) {
|
||||
existing.forceRelease()
|
||||
}
|
||||
cachedOutput = output
|
||||
}
|
||||
|
||||
override fun addListener(listener: AudioOutputProvider.Listener) =
|
||||
delegate.addListener(listener)
|
||||
override fun addListener(listener: AudioOutputProvider.Listener) = delegate.addListener(listener)
|
||||
|
||||
override fun removeListener(listener: AudioOutputProvider.Listener) =
|
||||
delegate.removeListener(listener)
|
||||
override fun removeListener(listener: AudioOutputProvider.Listener) = delegate.removeListener(listener)
|
||||
|
||||
override fun setClock(clock: Clock) = delegate.setClock(clock)
|
||||
override fun setClock(clock: Clock) = delegate.setClock(clock)
|
||||
|
||||
override fun release() {
|
||||
cachedOutput?.forceRelease()
|
||||
cachedOutput = null
|
||||
cachedConfig = null
|
||||
delegate.release()
|
||||
}
|
||||
override fun release() {
|
||||
cachedOutput?.forceRelease()
|
||||
cachedOutput = null
|
||||
cachedConfig = null
|
||||
delegate.release()
|
||||
}
|
||||
}
|
||||
|
||||
@OptIn(UnstableApi::class)
|
||||
private class RawPositionAudioOutput(
|
||||
private val delegate: AudioOutput,
|
||||
private val rawPositionUs: AtomicLong,
|
||||
private val provider: RawPositionOutputProvider
|
||||
private val delegate: AudioOutput,
|
||||
private val rawPositionUs: AtomicLong,
|
||||
private val provider: RawPositionOutputProvider
|
||||
) : AudioOutput {
|
||||
|
||||
override fun getPositionUs(): Long {
|
||||
val pos = delegate.getPositionUs()
|
||||
rawPositionUs.set(pos)
|
||||
return pos
|
||||
override fun getPositionUs(): Long {
|
||||
val pos = delegate.getPositionUs()
|
||||
rawPositionUs.set(pos)
|
||||
return pos
|
||||
}
|
||||
|
||||
override fun play() = delegate.play()
|
||||
override fun pause() = delegate.pause()
|
||||
|
||||
@Throws(AudioOutput.WriteException::class)
|
||||
override fun write(buffer: ByteBuffer, size: Int, presentationTimeUs: Long) = delegate.write(buffer, size, presentationTimeUs)
|
||||
|
||||
override fun flush() {
|
||||
rawPositionUs.set(Long.MIN_VALUE)
|
||||
delegate.flush()
|
||||
}
|
||||
|
||||
override fun stop() = delegate.stop()
|
||||
|
||||
override fun release() {
|
||||
rawPositionUs.set(Long.MIN_VALUE)
|
||||
if (Build.VERSION.SDK_INT >= 25) {
|
||||
delegate.stop()
|
||||
delegate.flush()
|
||||
provider.returnToCache(this)
|
||||
} else {
|
||||
delegate.release()
|
||||
}
|
||||
}
|
||||
|
||||
override fun play() = delegate.play()
|
||||
override fun pause() = delegate.pause()
|
||||
fun forceRelease() {
|
||||
rawPositionUs.set(Long.MIN_VALUE)
|
||||
delegate.release()
|
||||
}
|
||||
|
||||
@Throws(AudioOutput.WriteException::class)
|
||||
override fun write(buffer: ByteBuffer, size: Int, presentationTimeUs: Long) =
|
||||
delegate.write(buffer, size, presentationTimeUs)
|
||||
|
||||
override fun flush() {
|
||||
rawPositionUs.set(Long.MIN_VALUE)
|
||||
delegate.flush()
|
||||
}
|
||||
|
||||
override fun stop() = delegate.stop()
|
||||
|
||||
override fun release() {
|
||||
rawPositionUs.set(Long.MIN_VALUE)
|
||||
if (Build.VERSION.SDK_INT >= 25) {
|
||||
delegate.stop()
|
||||
delegate.flush()
|
||||
provider.returnToCache(this)
|
||||
} else {
|
||||
delegate.release()
|
||||
}
|
||||
}
|
||||
|
||||
fun forceRelease() {
|
||||
rawPositionUs.set(Long.MIN_VALUE)
|
||||
delegate.release()
|
||||
}
|
||||
|
||||
override fun setVolume(volume: Float) = delegate.setVolume(volume)
|
||||
override fun isOffloadedPlayback() = delegate.isOffloadedPlayback()
|
||||
override fun getAudioSessionId() = delegate.getAudioSessionId()
|
||||
override fun getSampleRate() = delegate.getSampleRate()
|
||||
override fun getBufferSizeInFrames() = delegate.getBufferSizeInFrames()
|
||||
override fun getPlaybackParameters() = delegate.getPlaybackParameters()
|
||||
override fun isStalled() = delegate.isStalled()
|
||||
override fun addListener(listener: AudioOutput.Listener) = delegate.addListener(listener)
|
||||
override fun removeListener(listener: AudioOutput.Listener) = delegate.removeListener(listener)
|
||||
override fun setPlaybackParameters(playbackParameters: PlaybackParameters) =
|
||||
delegate.setPlaybackParameters(playbackParameters)
|
||||
override fun setOffloadDelayPadding(delayInFrames: Int, paddingInFrames: Int) =
|
||||
delegate.setOffloadDelayPadding(delayInFrames, paddingInFrames)
|
||||
override fun setOffloadEndOfStream() = delegate.setOffloadEndOfStream()
|
||||
override fun setPlayerId(playerId: PlayerId) = delegate.setPlayerId(playerId)
|
||||
override fun attachAuxEffect(effectId: Int) = delegate.attachAuxEffect(effectId)
|
||||
override fun setAuxEffectSendLevel(level: Float) = delegate.setAuxEffectSendLevel(level)
|
||||
override fun setPreferredDevice(preferredDevice: AudioDeviceInfo?) =
|
||||
delegate.setPreferredDevice(preferredDevice)
|
||||
override fun setVolume(volume: Float) = delegate.setVolume(volume)
|
||||
override fun isOffloadedPlayback() = delegate.isOffloadedPlayback()
|
||||
override fun getAudioSessionId() = delegate.getAudioSessionId()
|
||||
override fun getSampleRate() = delegate.getSampleRate()
|
||||
override fun getBufferSizeInFrames() = delegate.getBufferSizeInFrames()
|
||||
override fun getPlaybackParameters() = delegate.getPlaybackParameters()
|
||||
override fun isStalled() = delegate.isStalled()
|
||||
override fun addListener(listener: AudioOutput.Listener) = delegate.addListener(listener)
|
||||
override fun removeListener(listener: AudioOutput.Listener) = delegate.removeListener(listener)
|
||||
override fun setPlaybackParameters(playbackParameters: PlaybackParameters) = delegate.setPlaybackParameters(playbackParameters)
|
||||
override fun setOffloadDelayPadding(delayInFrames: Int, paddingInFrames: Int) = delegate.setOffloadDelayPadding(delayInFrames, paddingInFrames)
|
||||
override fun setOffloadEndOfStream() = delegate.setOffloadEndOfStream()
|
||||
override fun setPlayerId(playerId: PlayerId) = delegate.setPlayerId(playerId)
|
||||
override fun attachAuxEffect(effectId: Int) = delegate.attachAuxEffect(effectId)
|
||||
override fun setAuxEffectSendLevel(level: Float) = delegate.setAuxEffectSendLevel(level)
|
||||
override fun setPreferredDevice(preferredDevice: AudioDeviceInfo?) = delegate.setPreferredDevice(preferredDevice)
|
||||
}
|
||||
|
||||
+95
-88
@@ -16,108 +16,115 @@ import java.util.zip.Inflater
|
||||
* All buffers are reused across samples to minimize GC pressure on the hot path.
|
||||
*/
|
||||
class ZlibInflatingTrackOutput(
|
||||
private val delegate: TrackOutput,
|
||||
private val delegate: TrackOutput
|
||||
) : TrackOutput {
|
||||
|
||||
companion object {
|
||||
private const val TAG = "ZlibTrackOutput"
|
||||
private const val INITIAL_BUFFER_SIZE = 256 * 1024
|
||||
private const val INFLATE_CHUNK = 64 * 1024
|
||||
companion object {
|
||||
private const val TAG = "ZlibTrackOutput"
|
||||
private const val INITIAL_BUFFER_SIZE = 256 * 1024
|
||||
private const val INFLATE_CHUNK = 64 * 1024
|
||||
}
|
||||
|
||||
var active = false
|
||||
|
||||
private val inflater = Inflater()
|
||||
|
||||
// Reusable buffers — grown as needed, never shrunk
|
||||
private var compressedBuf = ByteArray(INITIAL_BUFFER_SIZE)
|
||||
private var compressedLen = 0
|
||||
private var inflateBuf = ByteArray(INITIAL_BUFFER_SIZE)
|
||||
private var readBuf = ByteArray(INFLATE_CHUNK)
|
||||
private val outputParsable = ParsableByteArray()
|
||||
private var buffering = false
|
||||
|
||||
override fun format(format: Format) = delegate.format(format)
|
||||
|
||||
override fun sampleData(
|
||||
input: DataReader,
|
||||
length: Int,
|
||||
allowEndOfInput: Boolean,
|
||||
sampleDataPart: Int
|
||||
): Int {
|
||||
if (!active) return delegate.sampleData(input, length, allowEndOfInput, sampleDataPart)
|
||||
|
||||
buffering = true
|
||||
if (readBuf.size < length) readBuf = ByteArray(length)
|
||||
val bytesRead = input.read(readBuf, 0, length)
|
||||
if (bytesRead > 0) appendCompressed(readBuf, 0, bytesRead)
|
||||
return bytesRead
|
||||
}
|
||||
|
||||
override fun sampleData(data: ParsableByteArray, length: Int, sampleDataPart: Int) {
|
||||
if (!active) {
|
||||
delegate.sampleData(data, length, sampleDataPart)
|
||||
return
|
||||
}
|
||||
|
||||
var active = false
|
||||
buffering = true
|
||||
ensureCompressedCapacity(compressedLen + length)
|
||||
data.readBytes(compressedBuf, compressedLen, length)
|
||||
compressedLen += length
|
||||
}
|
||||
|
||||
private val inflater = Inflater()
|
||||
|
||||
// Reusable buffers — grown as needed, never shrunk
|
||||
private var compressedBuf = ByteArray(INITIAL_BUFFER_SIZE)
|
||||
private var compressedLen = 0
|
||||
private var inflateBuf = ByteArray(INITIAL_BUFFER_SIZE)
|
||||
private var readBuf = ByteArray(INFLATE_CHUNK)
|
||||
private val outputParsable = ParsableByteArray()
|
||||
private var buffering = false
|
||||
|
||||
override fun format(format: Format) = delegate.format(format)
|
||||
|
||||
override fun sampleData(
|
||||
input: DataReader, length: Int, allowEndOfInput: Boolean, sampleDataPart: Int
|
||||
): Int {
|
||||
if (!active) return delegate.sampleData(input, length, allowEndOfInput, sampleDataPart)
|
||||
|
||||
buffering = true
|
||||
if (readBuf.size < length) readBuf = ByteArray(length)
|
||||
val bytesRead = input.read(readBuf, 0, length)
|
||||
if (bytesRead > 0) appendCompressed(readBuf, 0, bytesRead)
|
||||
return bytesRead
|
||||
override fun sampleMetadata(
|
||||
timeUs: Long,
|
||||
flags: Int,
|
||||
size: Int,
|
||||
offset: Int,
|
||||
cryptoData: TrackOutput.CryptoData?
|
||||
) {
|
||||
if (!active || !buffering) {
|
||||
delegate.sampleMetadata(timeUs, flags, size, offset, cryptoData)
|
||||
return
|
||||
}
|
||||
|
||||
override fun sampleData(data: ParsableByteArray, length: Int, sampleDataPart: Int) {
|
||||
if (!active) {
|
||||
delegate.sampleData(data, length, sampleDataPart)
|
||||
return
|
||||
}
|
||||
buffering = false
|
||||
val srcLen = compressedLen
|
||||
compressedLen = 0
|
||||
|
||||
buffering = true
|
||||
ensureCompressedCapacity(compressedLen + length)
|
||||
data.readBytes(compressedBuf, compressedLen, length)
|
||||
compressedLen += length
|
||||
val inflatedLen = try {
|
||||
inflater.reset()
|
||||
inflater.setInput(compressedBuf, 0, srcLen)
|
||||
var written = 0
|
||||
while (!inflater.finished()) {
|
||||
if (written == inflateBuf.size) growInflateBuf()
|
||||
val count = inflater.inflate(inflateBuf, written, inflateBuf.size - written)
|
||||
if (count == 0 && !inflater.finished()) break
|
||||
written += count
|
||||
}
|
||||
written
|
||||
} catch (e: DataFormatException) {
|
||||
Log.e(TAG, "Zlib inflate failed (${srcLen}B), passing raw", e)
|
||||
// Fall back to raw compressed data
|
||||
ensureInflateCapacity(srcLen)
|
||||
System.arraycopy(compressedBuf, 0, inflateBuf, 0, srcLen)
|
||||
srcLen
|
||||
}
|
||||
|
||||
override fun sampleMetadata(
|
||||
timeUs: Long, flags: Int, size: Int, offset: Int, cryptoData: TrackOutput.CryptoData?
|
||||
) {
|
||||
if (!active || !buffering) {
|
||||
delegate.sampleMetadata(timeUs, flags, size, offset, cryptoData)
|
||||
return
|
||||
}
|
||||
outputParsable.reset(inflateBuf, inflatedLen)
|
||||
delegate.sampleData(outputParsable, inflatedLen, TrackOutput.SAMPLE_DATA_PART_MAIN)
|
||||
delegate.sampleMetadata(timeUs, flags, inflatedLen, 0, cryptoData)
|
||||
}
|
||||
|
||||
buffering = false
|
||||
val srcLen = compressedLen
|
||||
compressedLen = 0
|
||||
private fun appendCompressed(src: ByteArray, offset: Int, length: Int) {
|
||||
ensureCompressedCapacity(compressedLen + length)
|
||||
System.arraycopy(src, offset, compressedBuf, compressedLen, length)
|
||||
compressedLen += length
|
||||
}
|
||||
|
||||
val inflatedLen = try {
|
||||
inflater.reset()
|
||||
inflater.setInput(compressedBuf, 0, srcLen)
|
||||
var written = 0
|
||||
while (!inflater.finished()) {
|
||||
if (written == inflateBuf.size) growInflateBuf()
|
||||
val count = inflater.inflate(inflateBuf, written, inflateBuf.size - written)
|
||||
if (count == 0 && !inflater.finished()) break
|
||||
written += count
|
||||
}
|
||||
written
|
||||
} catch (e: DataFormatException) {
|
||||
Log.e(TAG, "Zlib inflate failed (${srcLen}B), passing raw", e)
|
||||
// Fall back to raw compressed data
|
||||
ensureInflateCapacity(srcLen)
|
||||
System.arraycopy(compressedBuf, 0, inflateBuf, 0, srcLen)
|
||||
srcLen
|
||||
}
|
||||
|
||||
outputParsable.reset(inflateBuf, inflatedLen)
|
||||
delegate.sampleData(outputParsable, inflatedLen, TrackOutput.SAMPLE_DATA_PART_MAIN)
|
||||
delegate.sampleMetadata(timeUs, flags, inflatedLen, 0, cryptoData)
|
||||
private fun ensureCompressedCapacity(needed: Int) {
|
||||
if (compressedBuf.size < needed) {
|
||||
compressedBuf = compressedBuf.copyOf(maxOf(needed, compressedBuf.size * 2))
|
||||
}
|
||||
}
|
||||
|
||||
private fun appendCompressed(src: ByteArray, offset: Int, length: Int) {
|
||||
ensureCompressedCapacity(compressedLen + length)
|
||||
System.arraycopy(src, offset, compressedBuf, compressedLen, length)
|
||||
compressedLen += length
|
||||
private fun ensureInflateCapacity(needed: Int) {
|
||||
if (inflateBuf.size < needed) {
|
||||
inflateBuf = ByteArray(maxOf(needed, inflateBuf.size * 2))
|
||||
}
|
||||
}
|
||||
|
||||
private fun ensureCompressedCapacity(needed: Int) {
|
||||
if (compressedBuf.size < needed) {
|
||||
compressedBuf = compressedBuf.copyOf(maxOf(needed, compressedBuf.size * 2))
|
||||
}
|
||||
}
|
||||
|
||||
private fun ensureInflateCapacity(needed: Int) {
|
||||
if (inflateBuf.size < needed) {
|
||||
inflateBuf = ByteArray(maxOf(needed, inflateBuf.size * 2))
|
||||
}
|
||||
}
|
||||
|
||||
private fun growInflateBuf() {
|
||||
inflateBuf = inflateBuf.copyOf(inflateBuf.size * 2)
|
||||
}
|
||||
private fun growInflateBuf() {
|
||||
inflateBuf = inflateBuf.copyOf(inflateBuf.size * 2)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,9 +6,9 @@ import androidx.media3.extractor.ExtractorOutput
|
||||
import androidx.media3.extractor.SeekMap
|
||||
import androidx.media3.extractor.TrackOutput
|
||||
import androidx.media3.extractor.mkv.MatroskaExtractor
|
||||
import androidx.media3.extractor.text.SubtitleParser
|
||||
import io.github.peerless2012.ass.media.AssHandler
|
||||
import io.github.peerless2012.ass.media.extractor.AssMatroskaExtractor
|
||||
import androidx.media3.extractor.text.SubtitleParser
|
||||
|
||||
/**
|
||||
* Extends AssMatroskaExtractor to add support for MKV ContentCompAlgo 0 (zlib).
|
||||
@@ -20,97 +20,97 @@ import androidx.media3.extractor.text.SubtitleParser
|
||||
* - Skips ContentCompSettings for zlib tracks (not applicable)
|
||||
*/
|
||||
class ZlibMatroskaExtractor(
|
||||
subtitleParserFactory: SubtitleParser.Factory,
|
||||
assHandler: AssHandler,
|
||||
subtitleParserFactory: SubtitleParser.Factory,
|
||||
assHandler: AssHandler
|
||||
) : AssMatroskaExtractor(subtitleParserFactory, assHandler) {
|
||||
|
||||
companion object {
|
||||
private const val TAG = "ZlibMkvExtractor"
|
||||
companion object {
|
||||
private const val TAG = "ZlibMkvExtractor"
|
||||
|
||||
// Matroska EBML element IDs
|
||||
private const val ID_SEGMENT = 0x18538067
|
||||
private const val ID_TRACK_ENTRY = 0xAE
|
||||
private const val ID_CONTENT_COMPRESSION_ALGORITHM = 0x4254
|
||||
private const val ID_CONTENT_COMPRESSION_SETTINGS = 0x4255
|
||||
// Matroska EBML element IDs
|
||||
private const val ID_SEGMENT = 0x18538067
|
||||
private const val ID_TRACK_ENTRY = 0xAE
|
||||
private const val ID_CONTENT_COMPRESSION_ALGORITHM = 0x4254
|
||||
private const val ID_CONTENT_COMPRESSION_SETTINGS = 0x4255
|
||||
|
||||
private val extractorOutputField by lazy {
|
||||
MatroskaExtractor::class.java.getDeclaredField("extractorOutput").apply {
|
||||
isAccessible = true
|
||||
}
|
||||
}
|
||||
private val extractorOutputField by lazy {
|
||||
MatroskaExtractor::class.java.getDeclaredField("extractorOutput").apply {
|
||||
isAccessible = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private var zlibOutput: ZlibExtractorOutputWrapper? = null
|
||||
private var currentTrackUsesZlib = false
|
||||
|
||||
override fun startMasterElement(id: Int, contentPosition: Long, contentSize: Long) {
|
||||
super.startMasterElement(id, contentPosition, contentSize)
|
||||
|
||||
// After super installs AssSubtitleExtractorOutput, wrap it with our zlib layer
|
||||
if (id == ID_SEGMENT && zlibOutput == null) {
|
||||
val currentOutput = extractorOutputField.get(this) as ExtractorOutput
|
||||
val wrapper = ZlibExtractorOutputWrapper(currentOutput)
|
||||
zlibOutput = wrapper
|
||||
extractorOutputField.set(this, wrapper)
|
||||
Log.d(TAG, "Installed zlib ExtractorOutput wrapper")
|
||||
}
|
||||
}
|
||||
|
||||
override fun integerElement(id: Int, value: Long) {
|
||||
if (id == ID_CONTENT_COMPRESSION_ALGORITHM && value == 0L) {
|
||||
currentTrackUsesZlib = true
|
||||
Log.i(TAG, "Track uses ContentCompAlgo 0 (zlib), will inflate samples")
|
||||
// Tell parent it's header stripping (algo 3) to avoid ParserException
|
||||
super.integerElement(id, 3)
|
||||
return
|
||||
}
|
||||
super.integerElement(id, value)
|
||||
}
|
||||
|
||||
override fun binaryElement(id: Int, contentSize: Int, input: ExtractorInput) {
|
||||
if (id == ID_CONTENT_COMPRESSION_SETTINGS && currentTrackUsesZlib) {
|
||||
// Skip ContentCompSettings for zlib tracks — parent would store these as
|
||||
// sampleStrippedBytes and prepend them to every sample, corrupting output.
|
||||
input.skipFully(contentSize)
|
||||
return
|
||||
}
|
||||
super.binaryElement(id, contentSize, input)
|
||||
}
|
||||
|
||||
override fun endMasterElement(id: Int) {
|
||||
val wasZlib = currentTrackUsesZlib
|
||||
super.endMasterElement(id)
|
||||
|
||||
if (id == ID_TRACK_ENTRY && wasZlib) {
|
||||
zlibOutput?.activateLast()
|
||||
currentTrackUsesZlib = false
|
||||
Log.i(TAG, "Activated zlib inflation for track")
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ExtractorOutput wrapper that wraps all TrackOutputs with ZlibInflatingTrackOutput.
|
||||
* Tracks are created inactive; activateLast() enables inflation for the most recently
|
||||
* created track (called when we know a track uses zlib compression).
|
||||
*/
|
||||
private class ZlibExtractorOutputWrapper(
|
||||
private val delegate: ExtractorOutput
|
||||
) : ExtractorOutput {
|
||||
|
||||
private var lastCreatedWrapper: ZlibInflatingTrackOutput? = null
|
||||
|
||||
override fun track(id: Int, type: Int): TrackOutput {
|
||||
val original = delegate.track(id, type)
|
||||
val wrapper = ZlibInflatingTrackOutput(original)
|
||||
lastCreatedWrapper = wrapper
|
||||
return wrapper
|
||||
}
|
||||
|
||||
private var zlibOutput: ZlibExtractorOutputWrapper? = null
|
||||
private var currentTrackUsesZlib = false
|
||||
|
||||
override fun startMasterElement(id: Int, contentPosition: Long, contentSize: Long) {
|
||||
super.startMasterElement(id, contentPosition, contentSize)
|
||||
|
||||
// After super installs AssSubtitleExtractorOutput, wrap it with our zlib layer
|
||||
if (id == ID_SEGMENT && zlibOutput == null) {
|
||||
val currentOutput = extractorOutputField.get(this) as ExtractorOutput
|
||||
val wrapper = ZlibExtractorOutputWrapper(currentOutput)
|
||||
zlibOutput = wrapper
|
||||
extractorOutputField.set(this, wrapper)
|
||||
Log.d(TAG, "Installed zlib ExtractorOutput wrapper")
|
||||
}
|
||||
fun activateLast() {
|
||||
lastCreatedWrapper?.active = true
|
||||
}
|
||||
|
||||
override fun integerElement(id: Int, value: Long) {
|
||||
if (id == ID_CONTENT_COMPRESSION_ALGORITHM && value == 0L) {
|
||||
currentTrackUsesZlib = true
|
||||
Log.i(TAG, "Track uses ContentCompAlgo 0 (zlib), will inflate samples")
|
||||
// Tell parent it's header stripping (algo 3) to avoid ParserException
|
||||
super.integerElement(id, 3)
|
||||
return
|
||||
}
|
||||
super.integerElement(id, value)
|
||||
}
|
||||
|
||||
override fun binaryElement(id: Int, contentSize: Int, input: ExtractorInput) {
|
||||
if (id == ID_CONTENT_COMPRESSION_SETTINGS && currentTrackUsesZlib) {
|
||||
// Skip ContentCompSettings for zlib tracks — parent would store these as
|
||||
// sampleStrippedBytes and prepend them to every sample, corrupting output.
|
||||
input.skipFully(contentSize)
|
||||
return
|
||||
}
|
||||
super.binaryElement(id, contentSize, input)
|
||||
}
|
||||
|
||||
override fun endMasterElement(id: Int) {
|
||||
val wasZlib = currentTrackUsesZlib
|
||||
super.endMasterElement(id)
|
||||
|
||||
if (id == ID_TRACK_ENTRY && wasZlib) {
|
||||
zlibOutput?.activateLast()
|
||||
currentTrackUsesZlib = false
|
||||
Log.i(TAG, "Activated zlib inflation for track")
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ExtractorOutput wrapper that wraps all TrackOutputs with ZlibInflatingTrackOutput.
|
||||
* Tracks are created inactive; activateLast() enables inflation for the most recently
|
||||
* created track (called when we know a track uses zlib compression).
|
||||
*/
|
||||
private class ZlibExtractorOutputWrapper(
|
||||
private val delegate: ExtractorOutput,
|
||||
) : ExtractorOutput {
|
||||
|
||||
private var lastCreatedWrapper: ZlibInflatingTrackOutput? = null
|
||||
|
||||
override fun track(id: Int, type: Int): TrackOutput {
|
||||
val original = delegate.track(id, type)
|
||||
val wrapper = ZlibInflatingTrackOutput(original)
|
||||
lastCreatedWrapper = wrapper
|
||||
return wrapper
|
||||
}
|
||||
|
||||
fun activateLast() {
|
||||
lastCreatedWrapper?.active = true
|
||||
}
|
||||
|
||||
override fun endTracks() = delegate.endTracks()
|
||||
override fun seekMap(seekMap: SeekMap) = delegate.seekMap(seekMap)
|
||||
}
|
||||
override fun endTracks() = delegate.endTracks()
|
||||
override fun seekMap(seekMap: SeekMap) = delegate.seekMap(seekMap)
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -10,365 +10,376 @@ import io.flutter.plugin.common.EventChannel
|
||||
import io.flutter.plugin.common.MethodCall
|
||||
import io.flutter.plugin.common.MethodChannel
|
||||
|
||||
class MpvPlayerPlugin : FlutterPlugin, MethodChannel.MethodCallHandler,
|
||||
EventChannel.StreamHandler, ActivityAware, com.edde746.plezy.shared.PlayerDelegate {
|
||||
class MpvPlayerPlugin :
|
||||
FlutterPlugin,
|
||||
MethodChannel.MethodCallHandler,
|
||||
EventChannel.StreamHandler,
|
||||
ActivityAware,
|
||||
com.edde746.plezy.shared.PlayerDelegate {
|
||||
|
||||
companion object {
|
||||
private const val TAG = "MpvPlayerPlugin"
|
||||
private const val METHOD_CHANNEL = "com.plezy/mpv_player"
|
||||
private const val EVENT_CHANNEL = "com.plezy/mpv_player/events"
|
||||
companion object {
|
||||
private const val TAG = "MpvPlayerPlugin"
|
||||
private const val METHOD_CHANNEL = "com.plezy/mpv_player"
|
||||
private const val EVENT_CHANNEL = "com.plezy/mpv_player/events"
|
||||
}
|
||||
|
||||
private lateinit var methodChannel: MethodChannel
|
||||
private lateinit var eventChannel: EventChannel
|
||||
private var eventSink: EventChannel.EventSink? = null
|
||||
private var playerCore: MpvPlayerCore? = null
|
||||
private var activity: Activity? = null
|
||||
private var activityBinding: ActivityPluginBinding? = null
|
||||
private val nameToId = mutableMapOf<String, Int>()
|
||||
private var sessionGeneration = 0
|
||||
|
||||
// Pending `MethodChannel.Result`s for an init that is currently in flight.
|
||||
// Concurrent `invoke('initialize')` calls share the same outcome instead
|
||||
// of each tearing down the in-flight core and starting their own — which
|
||||
// was the root cause of #930.
|
||||
private val pendingInitResults = mutableListOf<MethodChannel.Result>()
|
||||
|
||||
@Volatile private var isInitializing = false
|
||||
|
||||
// FlutterPlugin
|
||||
|
||||
override fun onAttachedToEngine(binding: FlutterPlugin.FlutterPluginBinding) {
|
||||
methodChannel = MethodChannel(binding.binaryMessenger, METHOD_CHANNEL)
|
||||
methodChannel.setMethodCallHandler(this)
|
||||
|
||||
eventChannel = EventChannel(binding.binaryMessenger, EVENT_CHANNEL)
|
||||
eventChannel.setStreamHandler(this)
|
||||
|
||||
Log.d(TAG, "Attached to engine")
|
||||
}
|
||||
|
||||
override fun onDetachedFromEngine(binding: FlutterPlugin.FlutterPluginBinding) {
|
||||
methodChannel.setMethodCallHandler(null)
|
||||
eventChannel.setStreamHandler(null)
|
||||
Log.d(TAG, "Detached from engine")
|
||||
}
|
||||
|
||||
// ActivityAware
|
||||
|
||||
override fun onAttachedToActivity(binding: ActivityPluginBinding) {
|
||||
activity = binding.activity
|
||||
activityBinding = binding
|
||||
Log.d(TAG, "Attached to activity")
|
||||
}
|
||||
|
||||
override fun onDetachedFromActivity() {
|
||||
++sessionGeneration
|
||||
playerCore?.dispose()
|
||||
playerCore = null
|
||||
// Any in-flight init callback would never fire (its scope is cancelled
|
||||
// by dispose), so close out queued callers explicitly.
|
||||
completePendingInits(success = false)
|
||||
activity = null
|
||||
activityBinding = null
|
||||
Log.d(TAG, "Detached from activity")
|
||||
}
|
||||
|
||||
override fun onReattachedToActivityForConfigChanges(binding: ActivityPluginBinding) {
|
||||
activity = binding.activity
|
||||
activityBinding = binding
|
||||
Log.d(TAG, "Reattached to activity for config changes")
|
||||
}
|
||||
|
||||
override fun onDetachedFromActivityForConfigChanges() {
|
||||
activity = null
|
||||
activityBinding = null
|
||||
Log.d(TAG, "Detached from activity for config changes")
|
||||
}
|
||||
|
||||
// EventChannel.StreamHandler
|
||||
|
||||
override fun onListen(arguments: Any?, events: EventChannel.EventSink?) {
|
||||
eventSink = events
|
||||
Log.d(TAG, "Event stream connected")
|
||||
}
|
||||
|
||||
override fun onCancel(arguments: Any?) {
|
||||
eventSink = null
|
||||
Log.d(TAG, "Event stream disconnected")
|
||||
}
|
||||
|
||||
// MethodChannel.MethodCallHandler
|
||||
|
||||
override fun onMethodCall(call: MethodCall, result: MethodChannel.Result) {
|
||||
when (call.method) {
|
||||
"initialize" -> handleInitialize(result)
|
||||
"dispose" -> handleDispose(result)
|
||||
"setProperty" -> handleSetProperty(call, result)
|
||||
"getProperty" -> handleGetProperty(call, result)
|
||||
"observeProperty" -> handleObserveProperty(call, result)
|
||||
"command" -> handleCommand(call, result)
|
||||
"setVisible" -> handleSetVisible(call, result)
|
||||
"updateFrame" -> handleUpdateFrame(result)
|
||||
"setVideoFrameRate" -> handleSetVideoFrameRate(call, result)
|
||||
"clearVideoFrameRate" -> handleClearVideoFrameRate(result)
|
||||
"requestAudioFocus" -> handleRequestAudioFocus(result)
|
||||
"abandonAudioFocus" -> handleAbandonAudioFocus(result)
|
||||
"openContentFd" -> handleOpenContentFd(call, result)
|
||||
"isInitialized" -> result.success(playerCore?.isInitialized ?: false)
|
||||
"setLogLevel" -> result.success(null)
|
||||
else -> result.notImplemented()
|
||||
}
|
||||
}
|
||||
|
||||
private fun handleInitialize(result: MethodChannel.Result) {
|
||||
val currentActivity = activity
|
||||
if (currentActivity == null) {
|
||||
result.error("NO_ACTIVITY", "Activity not available", null)
|
||||
return
|
||||
}
|
||||
|
||||
private lateinit var methodChannel: MethodChannel
|
||||
private lateinit var eventChannel: EventChannel
|
||||
private var eventSink: EventChannel.EventSink? = null
|
||||
private var playerCore: MpvPlayerCore? = null
|
||||
private var activity: Activity? = null
|
||||
private var activityBinding: ActivityPluginBinding? = null
|
||||
private val nameToId = mutableMapOf<String, Int>()
|
||||
private var sessionGeneration = 0
|
||||
|
||||
// Pending `MethodChannel.Result`s for an init that is currently in flight.
|
||||
// Concurrent `invoke('initialize')` calls share the same outcome instead
|
||||
// of each tearing down the in-flight core and starting their own — which
|
||||
// was the root cause of #930.
|
||||
private val pendingInitResults = mutableListOf<MethodChannel.Result>()
|
||||
@Volatile private var isInitializing = false
|
||||
|
||||
// FlutterPlugin
|
||||
|
||||
override fun onAttachedToEngine(binding: FlutterPlugin.FlutterPluginBinding) {
|
||||
methodChannel = MethodChannel(binding.binaryMessenger, METHOD_CHANNEL)
|
||||
methodChannel.setMethodCallHandler(this)
|
||||
|
||||
eventChannel = EventChannel(binding.binaryMessenger, EVENT_CHANNEL)
|
||||
eventChannel.setStreamHandler(this)
|
||||
|
||||
Log.d(TAG, "Attached to engine")
|
||||
if (playerCore?.isInitialized == true) {
|
||||
Log.d(TAG, "Already initialized")
|
||||
result.success(true)
|
||||
return
|
||||
}
|
||||
|
||||
override fun onDetachedFromEngine(binding: FlutterPlugin.FlutterPluginBinding) {
|
||||
methodChannel.setMethodCallHandler(null)
|
||||
eventChannel.setStreamHandler(null)
|
||||
Log.d(TAG, "Detached from engine")
|
||||
// Coalesce concurrent inits: the second caller waits for the first
|
||||
// call's outcome instead of disposing the in-flight core. The Dart
|
||||
// side memoizes too, but this is defense in depth for any direct
|
||||
// `invoke('initialize')` that bypasses _ensureInitialized.
|
||||
synchronized(pendingInitResults) {
|
||||
pendingInitResults += result
|
||||
if (isInitializing) {
|
||||
Log.d(TAG, "Init already in flight, queuing caller")
|
||||
return
|
||||
}
|
||||
isInitializing = true
|
||||
}
|
||||
|
||||
// ActivityAware
|
||||
|
||||
override fun onAttachedToActivity(binding: ActivityPluginBinding) {
|
||||
activity = binding.activity
|
||||
activityBinding = binding
|
||||
Log.d(TAG, "Attached to activity")
|
||||
}
|
||||
|
||||
override fun onDetachedFromActivity() {
|
||||
++sessionGeneration
|
||||
playerCore?.dispose()
|
||||
playerCore = null
|
||||
// Any in-flight init callback would never fire (its scope is cancelled
|
||||
// by dispose), so close out queued callers explicitly.
|
||||
completePendingInits(success = false)
|
||||
activity = null
|
||||
activityBinding = null
|
||||
Log.d(TAG, "Detached from activity")
|
||||
}
|
||||
|
||||
override fun onReattachedToActivityForConfigChanges(binding: ActivityPluginBinding) {
|
||||
activity = binding.activity
|
||||
activityBinding = binding
|
||||
Log.d(TAG, "Reattached to activity for config changes")
|
||||
}
|
||||
|
||||
override fun onDetachedFromActivityForConfigChanges() {
|
||||
activity = null
|
||||
activityBinding = null
|
||||
Log.d(TAG, "Detached from activity for config changes")
|
||||
}
|
||||
|
||||
// EventChannel.StreamHandler
|
||||
|
||||
override fun onListen(arguments: Any?, events: EventChannel.EventSink?) {
|
||||
eventSink = events
|
||||
Log.d(TAG, "Event stream connected")
|
||||
}
|
||||
|
||||
override fun onCancel(arguments: Any?) {
|
||||
eventSink = null
|
||||
Log.d(TAG, "Event stream disconnected")
|
||||
}
|
||||
|
||||
// MethodChannel.MethodCallHandler
|
||||
|
||||
override fun onMethodCall(call: MethodCall, result: MethodChannel.Result) {
|
||||
when (call.method) {
|
||||
"initialize" -> handleInitialize(result)
|
||||
"dispose" -> handleDispose(result)
|
||||
"setProperty" -> handleSetProperty(call, result)
|
||||
"getProperty" -> handleGetProperty(call, result)
|
||||
"observeProperty" -> handleObserveProperty(call, result)
|
||||
"command" -> handleCommand(call, result)
|
||||
"setVisible" -> handleSetVisible(call, result)
|
||||
"updateFrame" -> handleUpdateFrame(result)
|
||||
"setVideoFrameRate" -> handleSetVideoFrameRate(call, result)
|
||||
"clearVideoFrameRate" -> handleClearVideoFrameRate(result)
|
||||
"requestAudioFocus" -> handleRequestAudioFocus(result)
|
||||
"abandonAudioFocus" -> handleAbandonAudioFocus(result)
|
||||
"openContentFd" -> handleOpenContentFd(call, result)
|
||||
"isInitialized" -> result.success(playerCore?.isInitialized ?: false)
|
||||
"setLogLevel" -> result.success(null)
|
||||
else -> result.notImplemented()
|
||||
}
|
||||
}
|
||||
|
||||
private fun handleInitialize(result: MethodChannel.Result) {
|
||||
val currentActivity = activity
|
||||
if (currentActivity == null) {
|
||||
result.error("NO_ACTIVITY", "Activity not available", null)
|
||||
return
|
||||
currentActivity.runOnUiThread {
|
||||
val gen: Int
|
||||
val core: MpvPlayerCore
|
||||
try {
|
||||
// Caller invariant: dispose() was already called explicitly,
|
||||
// OR `playerCore?.isInitialized == true` and we early-exited
|
||||
// above. We never tear down a core that's mid-initialization.
|
||||
if (playerCore != null && playerCore?.isInitialized != true) {
|
||||
Log.w(TAG, "Discarding stale uninitialized core before re-init")
|
||||
playerCore?.dispose()
|
||||
playerCore = null
|
||||
}
|
||||
|
||||
if (playerCore?.isInitialized == true) {
|
||||
Log.d(TAG, "Already initialized")
|
||||
result.success(true)
|
||||
return
|
||||
gen = ++sessionGeneration
|
||||
core = MpvPlayerCore(currentActivity).apply {
|
||||
delegate = this@MpvPlayerPlugin
|
||||
}
|
||||
playerCore = core
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "Failed to initialize: ${e.message}", e)
|
||||
completePendingInits(success = false, errorMessage = e.message)
|
||||
return@runOnUiThread
|
||||
}
|
||||
|
||||
// Coalesce concurrent inits: the second caller waits for the first
|
||||
// call's outcome instead of disposing the in-flight core. The Dart
|
||||
// side memoizes too, but this is defense in depth for any direct
|
||||
// `invoke('initialize')` that bypasses _ensureInitialized.
|
||||
synchronized(pendingInitResults) {
|
||||
pendingInitResults += result
|
||||
if (isInitializing) {
|
||||
Log.d(TAG, "Init already in flight, queuing caller")
|
||||
return
|
||||
}
|
||||
isInitializing = true
|
||||
}
|
||||
|
||||
currentActivity.runOnUiThread {
|
||||
val gen: Int
|
||||
val core: MpvPlayerCore
|
||||
try {
|
||||
// Caller invariant: dispose() was already called explicitly,
|
||||
// OR `playerCore?.isInitialized == true` and we early-exited
|
||||
// above. We never tear down a core that's mid-initialization.
|
||||
if (playerCore != null && playerCore?.isInitialized != true) {
|
||||
Log.w(TAG, "Discarding stale uninitialized core before re-init")
|
||||
playerCore?.dispose()
|
||||
playerCore = null
|
||||
}
|
||||
|
||||
gen = ++sessionGeneration
|
||||
core = MpvPlayerCore(currentActivity).apply {
|
||||
delegate = this@MpvPlayerPlugin
|
||||
}
|
||||
playerCore = core
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "Failed to initialize: ${e.message}", e)
|
||||
completePendingInits(success = false, errorMessage = e.message)
|
||||
return@runOnUiThread
|
||||
}
|
||||
|
||||
core.initialize { success ->
|
||||
val stale = gen != sessionGeneration || playerCore !== core
|
||||
if (stale) {
|
||||
Log.d(TAG, "Stale init callback (gen=$gen, current=$sessionGeneration)")
|
||||
} else {
|
||||
// Start hidden - now safe because setVisible operates on the container,
|
||||
// not the SurfaceView directly (matching ExoPlayer's approach)
|
||||
core.setVisible(false)
|
||||
Log.d(TAG, "Initialized: $success")
|
||||
}
|
||||
completePendingInits(success = !stale && success)
|
||||
}
|
||||
core.initialize { success ->
|
||||
val stale = gen != sessionGeneration || playerCore !== core
|
||||
if (stale) {
|
||||
Log.d(TAG, "Stale init callback (gen=$gen, current=$sessionGeneration)")
|
||||
} else {
|
||||
// Start hidden - now safe because setVisible operates on the container,
|
||||
// not the SurfaceView directly (matching ExoPlayer's approach)
|
||||
core.setVisible(false)
|
||||
Log.d(TAG, "Initialized: $success")
|
||||
}
|
||||
completePendingInits(success = !stale && success)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun completePendingInits(success: Boolean, errorMessage: String? = null) {
|
||||
val pending = synchronized(pendingInitResults) {
|
||||
isInitializing = false
|
||||
val copy = pendingInitResults.toList()
|
||||
pendingInitResults.clear()
|
||||
copy
|
||||
}
|
||||
for (r in pending) {
|
||||
if (errorMessage != null) {
|
||||
r.error("INIT_FAILED", errorMessage, null)
|
||||
} else {
|
||||
r.success(success)
|
||||
}
|
||||
}
|
||||
private fun completePendingInits(success: Boolean, errorMessage: String? = null) {
|
||||
val pending = synchronized(pendingInitResults) {
|
||||
isInitializing = false
|
||||
val copy = pendingInitResults.toList()
|
||||
pendingInitResults.clear()
|
||||
copy
|
||||
}
|
||||
|
||||
private fun handleDispose(result: MethodChannel.Result) {
|
||||
activity?.runOnUiThread {
|
||||
val core = playerCore
|
||||
++sessionGeneration
|
||||
playerCore = null
|
||||
|
||||
// Any in-flight init callback is cancelled with the scope, so
|
||||
// close out queued callers here instead of leaking them.
|
||||
completePendingInits(success = false)
|
||||
|
||||
core?.dispose {
|
||||
Log.d(TAG, "Disposed")
|
||||
result.success(null)
|
||||
} ?: result.success(null)
|
||||
} ?: result.success(null)
|
||||
for (r in pending) {
|
||||
if (errorMessage != null) {
|
||||
r.error("INIT_FAILED", errorMessage, null)
|
||||
} else {
|
||||
r.success(success)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun handleSetProperty(call: MethodCall, result: MethodChannel.Result) {
|
||||
val name = call.argument<String>("name")
|
||||
val value = call.argument<String>("value")
|
||||
private fun handleDispose(result: MethodChannel.Result) {
|
||||
activity?.runOnUiThread {
|
||||
val core = playerCore
|
||||
++sessionGeneration
|
||||
playerCore = null
|
||||
|
||||
if (name == null || value == null) {
|
||||
result.error("INVALID_ARGS", "Missing 'name' or 'value'", null)
|
||||
return
|
||||
}
|
||||
// Any in-flight init callback is cancelled with the scope, so
|
||||
// close out queued callers here instead of leaking them.
|
||||
completePendingInits(success = false)
|
||||
|
||||
playerCore?.setProperty(name, value)
|
||||
core?.dispose {
|
||||
Log.d(TAG, "Disposed")
|
||||
result.success(null)
|
||||
} ?: result.success(null)
|
||||
} ?: result.success(null)
|
||||
}
|
||||
|
||||
private fun handleSetProperty(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
|
||||
}
|
||||
|
||||
private fun handleGetProperty(call: MethodCall, result: MethodChannel.Result) {
|
||||
val name = call.argument<String>("name")
|
||||
playerCore?.setProperty(name, value)
|
||||
result.success(null)
|
||||
}
|
||||
|
||||
if (name == null) {
|
||||
result.error("INVALID_ARGS", "Missing 'name'", null)
|
||||
return
|
||||
private fun handleGetProperty(call: MethodCall, result: MethodChannel.Result) {
|
||||
val name = call.argument<String>("name")
|
||||
|
||||
if (name == null) {
|
||||
result.error("INVALID_ARGS", "Missing 'name'", null)
|
||||
return
|
||||
}
|
||||
|
||||
val value = playerCore?.getProperty(name)
|
||||
result.success(value)
|
||||
}
|
||||
|
||||
private fun handleObserveProperty(call: MethodCall, result: MethodChannel.Result) {
|
||||
val name = call.argument<String>("name")
|
||||
val format = call.argument<String>("format")
|
||||
val id = call.argument<Int>("id")
|
||||
|
||||
if (name == null || format == null || id == null) {
|
||||
result.error("INVALID_ARGS", "Missing 'name', 'format', or 'id'", null)
|
||||
return
|
||||
}
|
||||
|
||||
nameToId[name] = id
|
||||
playerCore?.observeProperty(name, format)
|
||||
result.success(null)
|
||||
}
|
||||
|
||||
private fun handleCommand(call: MethodCall, result: MethodChannel.Result) {
|
||||
val args = call.argument<List<String>>("args")
|
||||
|
||||
if (args == null) {
|
||||
result.error("INVALID_ARGS", "Missing 'args'", null)
|
||||
return
|
||||
}
|
||||
|
||||
val core = playerCore
|
||||
if (core == null) {
|
||||
result.success(null)
|
||||
return
|
||||
}
|
||||
core.command(args.toTypedArray()) {
|
||||
result.success(null)
|
||||
}
|
||||
}
|
||||
|
||||
private fun handleSetVisible(call: MethodCall, result: MethodChannel.Result) {
|
||||
val visible = call.argument<Boolean>("visible")
|
||||
|
||||
if (visible == null) {
|
||||
result.error("INVALID_ARGS", "Missing 'visible'", null)
|
||||
return
|
||||
}
|
||||
|
||||
playerCore?.setVisible(visible)
|
||||
result.success(null)
|
||||
}
|
||||
|
||||
private fun handleUpdateFrame(result: MethodChannel.Result) {
|
||||
playerCore?.updateFrame()
|
||||
result.success(null)
|
||||
}
|
||||
|
||||
private fun handleSetVideoFrameRate(call: MethodCall, result: MethodChannel.Result) {
|
||||
val fps = call.argument<Double>("fps")?.toFloat() ?: 0f
|
||||
val duration = call.argument<Number>("duration")?.toLong() ?: 0L
|
||||
val extraDelayMs = call.argument<Number>("extraDelayMs")?.toLong() ?: 0L
|
||||
|
||||
Log.d(TAG, "setVideoFrameRate: fps=$fps, duration=$duration, extraDelayMs=$extraDelayMs")
|
||||
val core = playerCore
|
||||
if (core == null) {
|
||||
result.success(false)
|
||||
return
|
||||
}
|
||||
core.setVideoFrameRate(fps, duration, extraDelayMs) { switched ->
|
||||
result.success(switched)
|
||||
}
|
||||
}
|
||||
|
||||
private fun handleClearVideoFrameRate(result: MethodChannel.Result) {
|
||||
Log.d(TAG, "clearVideoFrameRate")
|
||||
playerCore?.clearVideoFrameRate()
|
||||
result.success(null)
|
||||
}
|
||||
|
||||
private fun handleRequestAudioFocus(result: MethodChannel.Result) {
|
||||
Log.d(TAG, "requestAudioFocus")
|
||||
val granted = playerCore?.requestAudioFocus() ?: false
|
||||
result.success(granted)
|
||||
}
|
||||
|
||||
private fun handleAbandonAudioFocus(result: MethodChannel.Result) {
|
||||
Log.d(TAG, "abandonAudioFocus")
|
||||
playerCore?.abandonAudioFocus()
|
||||
result.success(null)
|
||||
}
|
||||
|
||||
private fun handleOpenContentFd(call: MethodCall, result: MethodChannel.Result) {
|
||||
val uriString = call.argument<String>("uri")
|
||||
if (uriString == null) {
|
||||
result.error("INVALID_ARGS", "Missing 'uri'", null)
|
||||
return
|
||||
}
|
||||
|
||||
val contentResolver = activity?.contentResolver
|
||||
if (contentResolver == null) {
|
||||
result.error("NO_ACTIVITY", "Activity not available", null)
|
||||
return
|
||||
}
|
||||
|
||||
// Open file descriptor off UI thread to prevent ANR on slow storage
|
||||
Thread {
|
||||
try {
|
||||
val uri = Uri.parse(uriString)
|
||||
val pfd = contentResolver.openFileDescriptor(uri, "r")
|
||||
if (pfd == null) {
|
||||
activity?.runOnUiThread {
|
||||
result.error("OPEN_FAILED", "Failed to open file descriptor for $uriString", null)
|
||||
}
|
||||
return@Thread
|
||||
}
|
||||
|
||||
val value = playerCore?.getProperty(name)
|
||||
result.success(value)
|
||||
}
|
||||
val fd = pfd.detachFd()
|
||||
Log.d(TAG, "Opened content FD $fd for $uriString")
|
||||
activity?.runOnUiThread { result.success(fd) }
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "Failed to open content FD: ${e.message}", e)
|
||||
activity?.runOnUiThread { result.error("OPEN_FAILED", e.message, null) }
|
||||
}
|
||||
}.start()
|
||||
}
|
||||
|
||||
private fun handleObserveProperty(call: MethodCall, result: MethodChannel.Result) {
|
||||
val name = call.argument<String>("name")
|
||||
val format = call.argument<String>("format")
|
||||
val id = call.argument<Int>("id")
|
||||
// PlayerDelegate
|
||||
|
||||
if (name == null || format == null || id == null) {
|
||||
result.error("INVALID_ARGS", "Missing 'name', 'format', or 'id'", null)
|
||||
return
|
||||
}
|
||||
override fun onPropertyChange(name: String, value: Any?) {
|
||||
val propId = nameToId[name] ?: return
|
||||
eventSink?.success(listOf(propId, value))
|
||||
}
|
||||
|
||||
nameToId[name] = id
|
||||
playerCore?.observeProperty(name, format)
|
||||
result.success(null)
|
||||
}
|
||||
|
||||
private fun handleCommand(call: MethodCall, result: MethodChannel.Result) {
|
||||
val args = call.argument<List<String>>("args")
|
||||
|
||||
if (args == null) {
|
||||
result.error("INVALID_ARGS", "Missing 'args'", null)
|
||||
return
|
||||
}
|
||||
|
||||
playerCore?.command(args.toTypedArray())
|
||||
result.success(null)
|
||||
}
|
||||
|
||||
private fun handleSetVisible(call: MethodCall, result: MethodChannel.Result) {
|
||||
val visible = call.argument<Boolean>("visible")
|
||||
|
||||
if (visible == null) {
|
||||
result.error("INVALID_ARGS", "Missing 'visible'", null)
|
||||
return
|
||||
}
|
||||
|
||||
playerCore?.setVisible(visible)
|
||||
result.success(null)
|
||||
}
|
||||
|
||||
private fun handleUpdateFrame(result: MethodChannel.Result) {
|
||||
playerCore?.updateFrame()
|
||||
result.success(null)
|
||||
}
|
||||
|
||||
private fun handleSetVideoFrameRate(call: MethodCall, result: MethodChannel.Result) {
|
||||
val fps = call.argument<Double>("fps")?.toFloat() ?: 0f
|
||||
val duration = call.argument<Number>("duration")?.toLong() ?: 0L
|
||||
val extraDelayMs = call.argument<Number>("extraDelayMs")?.toLong() ?: 0L
|
||||
|
||||
Log.d(TAG, "setVideoFrameRate: fps=$fps, duration=$duration, extraDelayMs=$extraDelayMs")
|
||||
val core = playerCore
|
||||
if (core == null) {
|
||||
result.success(false)
|
||||
return
|
||||
}
|
||||
core.setVideoFrameRate(fps, duration, extraDelayMs) { switched ->
|
||||
result.success(switched)
|
||||
}
|
||||
}
|
||||
|
||||
private fun handleClearVideoFrameRate(result: MethodChannel.Result) {
|
||||
Log.d(TAG, "clearVideoFrameRate")
|
||||
playerCore?.clearVideoFrameRate()
|
||||
result.success(null)
|
||||
}
|
||||
|
||||
private fun handleRequestAudioFocus(result: MethodChannel.Result) {
|
||||
Log.d(TAG, "requestAudioFocus")
|
||||
val granted = playerCore?.requestAudioFocus() ?: false
|
||||
result.success(granted)
|
||||
}
|
||||
|
||||
private fun handleAbandonAudioFocus(result: MethodChannel.Result) {
|
||||
Log.d(TAG, "abandonAudioFocus")
|
||||
playerCore?.abandonAudioFocus()
|
||||
result.success(null)
|
||||
}
|
||||
|
||||
private fun handleOpenContentFd(call: MethodCall, result: MethodChannel.Result) {
|
||||
val uriString = call.argument<String>("uri")
|
||||
if (uriString == null) {
|
||||
result.error("INVALID_ARGS", "Missing 'uri'", null)
|
||||
return
|
||||
}
|
||||
|
||||
val contentResolver = activity?.contentResolver
|
||||
if (contentResolver == null) {
|
||||
result.error("NO_ACTIVITY", "Activity not available", null)
|
||||
return
|
||||
}
|
||||
|
||||
// Open file descriptor off UI thread to prevent ANR on slow storage
|
||||
Thread {
|
||||
try {
|
||||
val uri = Uri.parse(uriString)
|
||||
val pfd = contentResolver.openFileDescriptor(uri, "r")
|
||||
if (pfd == null) {
|
||||
activity?.runOnUiThread {
|
||||
result.error("OPEN_FAILED", "Failed to open file descriptor for $uriString", null)
|
||||
}
|
||||
return@Thread
|
||||
}
|
||||
|
||||
val fd = pfd.detachFd()
|
||||
Log.d(TAG, "Opened content FD $fd for $uriString")
|
||||
activity?.runOnUiThread { result.success(fd) }
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "Failed to open content FD: ${e.message}", e)
|
||||
activity?.runOnUiThread { result.error("OPEN_FAILED", e.message, null) }
|
||||
}
|
||||
}.start()
|
||||
}
|
||||
|
||||
// PlayerDelegate
|
||||
|
||||
override fun onPropertyChange(name: String, value: Any?) {
|
||||
val propId = nameToId[name] ?: return
|
||||
eventSink?.success(listOf(propId, value))
|
||||
}
|
||||
|
||||
override fun onEvent(name: String, data: Map<String, Any>?) {
|
||||
val event = mutableMapOf<String, Any>(
|
||||
"type" to "event",
|
||||
"name" to name
|
||||
)
|
||||
data?.let { event["data"] = it }
|
||||
eventSink?.success(event)
|
||||
}
|
||||
override fun onEvent(name: String, data: Map<String, Any>?) {
|
||||
val event = mutableMapOf<String, Any>(
|
||||
"type" to "event",
|
||||
"name" to name
|
||||
)
|
||||
data?.let { event["data"] = it }
|
||||
eventSink?.success(event)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,97 +9,97 @@ import android.os.Handler
|
||||
import android.util.Log
|
||||
|
||||
class AudioFocusManager(
|
||||
context: Context,
|
||||
private val handler: Handler,
|
||||
private val onPause: () -> Unit,
|
||||
private val onResume: () -> Unit,
|
||||
private val isPaused: () -> Boolean,
|
||||
private val log: (String) -> Unit = { Log.d(TAG, it) }
|
||||
context: Context,
|
||||
private val handler: Handler,
|
||||
private val onPause: () -> Unit,
|
||||
private val onResume: () -> Unit,
|
||||
private val isPaused: () -> Boolean,
|
||||
private val log: (String) -> Unit = { Log.d(TAG, it) }
|
||||
) {
|
||||
companion object {
|
||||
private const val TAG = "AudioFocusManager"
|
||||
}
|
||||
companion object {
|
||||
private const val TAG = "AudioFocusManager"
|
||||
}
|
||||
|
||||
private val audioManager = context.getSystemService(Context.AUDIO_SERVICE) as AudioManager
|
||||
private var audioFocusRequest: AudioFocusRequest? = null
|
||||
private var hasAudioFocus: Boolean = false
|
||||
var wasPlayingBeforeFocusLoss: Boolean = false
|
||||
private set
|
||||
private val audioManager = context.getSystemService(Context.AUDIO_SERVICE) as AudioManager
|
||||
private var audioFocusRequest: AudioFocusRequest? = null
|
||||
private var hasAudioFocus: Boolean = false
|
||||
var wasPlayingBeforeFocusLoss: Boolean = false
|
||||
private set
|
||||
|
||||
private val audioFocusChangeListener = AudioManager.OnAudioFocusChangeListener { focusChange ->
|
||||
when (focusChange) {
|
||||
AudioManager.AUDIOFOCUS_GAIN -> {
|
||||
log("Focus gained")
|
||||
hasAudioFocus = true
|
||||
if (wasPlayingBeforeFocusLoss) {
|
||||
onResume()
|
||||
wasPlayingBeforeFocusLoss = false
|
||||
}
|
||||
}
|
||||
AudioManager.AUDIOFOCUS_LOSS -> {
|
||||
log("Focus lost permanently")
|
||||
hasAudioFocus = false
|
||||
wasPlayingBeforeFocusLoss = !isPaused()
|
||||
onPause()
|
||||
}
|
||||
AudioManager.AUDIOFOCUS_LOSS_TRANSIENT -> {
|
||||
log("Focus lost transiently")
|
||||
hasAudioFocus = false
|
||||
wasPlayingBeforeFocusLoss = !isPaused()
|
||||
onPause()
|
||||
}
|
||||
AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK -> {
|
||||
log("Focus lost transiently (can duck)")
|
||||
}
|
||||
private val audioFocusChangeListener = AudioManager.OnAudioFocusChangeListener { focusChange ->
|
||||
when (focusChange) {
|
||||
AudioManager.AUDIOFOCUS_GAIN -> {
|
||||
log("Focus gained")
|
||||
hasAudioFocus = true
|
||||
if (wasPlayingBeforeFocusLoss) {
|
||||
onResume()
|
||||
wasPlayingBeforeFocusLoss = false
|
||||
}
|
||||
}
|
||||
|
||||
fun requestAudioFocus(): Boolean {
|
||||
Log.d(TAG, "Requesting audio focus")
|
||||
|
||||
val result = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
val focusRequest = AudioFocusRequest.Builder(AudioManager.AUDIOFOCUS_GAIN)
|
||||
.setAudioAttributes(
|
||||
AudioAttributes.Builder()
|
||||
.setUsage(AudioAttributes.USAGE_MEDIA)
|
||||
.setContentType(AudioAttributes.CONTENT_TYPE_MOVIE)
|
||||
.build()
|
||||
)
|
||||
.setOnAudioFocusChangeListener(audioFocusChangeListener, handler)
|
||||
.build()
|
||||
|
||||
audioFocusRequest = focusRequest
|
||||
audioManager.requestAudioFocus(focusRequest)
|
||||
} else {
|
||||
@Suppress("DEPRECATION")
|
||||
audioManager.requestAudioFocus(
|
||||
audioFocusChangeListener,
|
||||
AudioManager.STREAM_MUSIC,
|
||||
AudioManager.AUDIOFOCUS_GAIN
|
||||
)
|
||||
}
|
||||
|
||||
hasAudioFocus = (result == AudioManager.AUDIOFOCUS_REQUEST_GRANTED)
|
||||
Log.d(TAG, "Audio focus request result: $result, granted: $hasAudioFocus")
|
||||
return hasAudioFocus
|
||||
}
|
||||
|
||||
fun abandonAudioFocus() {
|
||||
Log.d(TAG, "Abandoning audio focus")
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
audioFocusRequest?.let { audioManager.abandonAudioFocusRequest(it) }
|
||||
audioFocusRequest = null
|
||||
} else {
|
||||
@Suppress("DEPRECATION")
|
||||
audioManager.abandonAudioFocus(audioFocusChangeListener)
|
||||
}
|
||||
|
||||
}
|
||||
AudioManager.AUDIOFOCUS_LOSS -> {
|
||||
log("Focus lost permanently")
|
||||
hasAudioFocus = false
|
||||
wasPlayingBeforeFocusLoss = false
|
||||
wasPlayingBeforeFocusLoss = !isPaused()
|
||||
onPause()
|
||||
}
|
||||
AudioManager.AUDIOFOCUS_LOSS_TRANSIENT -> {
|
||||
log("Focus lost transiently")
|
||||
hasAudioFocus = false
|
||||
wasPlayingBeforeFocusLoss = !isPaused()
|
||||
onPause()
|
||||
}
|
||||
AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK -> {
|
||||
log("Focus lost transiently (can duck)")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun requestAudioFocus(): Boolean {
|
||||
Log.d(TAG, "Requesting audio focus")
|
||||
|
||||
val result = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
val focusRequest = AudioFocusRequest.Builder(AudioManager.AUDIOFOCUS_GAIN)
|
||||
.setAudioAttributes(
|
||||
AudioAttributes.Builder()
|
||||
.setUsage(AudioAttributes.USAGE_MEDIA)
|
||||
.setContentType(AudioAttributes.CONTENT_TYPE_MOVIE)
|
||||
.build()
|
||||
)
|
||||
.setOnAudioFocusChangeListener(audioFocusChangeListener, handler)
|
||||
.build()
|
||||
|
||||
audioFocusRequest = focusRequest
|
||||
audioManager.requestAudioFocus(focusRequest)
|
||||
} else {
|
||||
@Suppress("DEPRECATION")
|
||||
audioManager.requestAudioFocus(
|
||||
audioFocusChangeListener,
|
||||
AudioManager.STREAM_MUSIC,
|
||||
AudioManager.AUDIOFOCUS_GAIN
|
||||
)
|
||||
}
|
||||
|
||||
fun release() {
|
||||
abandonAudioFocus()
|
||||
hasAudioFocus = (result == AudioManager.AUDIOFOCUS_REQUEST_GRANTED)
|
||||
Log.d(TAG, "Audio focus request result: $result, granted: $hasAudioFocus")
|
||||
return hasAudioFocus
|
||||
}
|
||||
|
||||
fun abandonAudioFocus() {
|
||||
Log.d(TAG, "Abandoning audio focus")
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
audioFocusRequest?.let { audioManager.abandonAudioFocusRequest(it) }
|
||||
audioFocusRequest = null
|
||||
} else {
|
||||
@Suppress("DEPRECATION")
|
||||
audioManager.abandonAudioFocus(audioFocusChangeListener)
|
||||
}
|
||||
|
||||
hasAudioFocus = false
|
||||
wasPlayingBeforeFocusLoss = false
|
||||
}
|
||||
|
||||
fun release() {
|
||||
abandonAudioFocus()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,84 +9,84 @@ import android.view.ViewGroup
|
||||
|
||||
object FlutterOverlayHelper {
|
||||
|
||||
/**
|
||||
* Find the top-level container holding the Flutter render surface. Returns the
|
||||
* direct child of [contentView] that contains a FlutterSurfaceView/FlutterTextureView
|
||||
* at any depth — `bringChildToFront` only works for direct children, so this is the
|
||||
* node to pass to [configureFlutterZOrder].
|
||||
*
|
||||
* Searches any depth because an app may wrap Flutter (e.g. for key-event dispatch)
|
||||
* and push it below the direct-child level.
|
||||
*/
|
||||
fun findFlutterContainer(contentView: ViewGroup, excludeView: View? = null): ViewGroup? {
|
||||
for (i in contentView.childCount - 1 downTo 0) {
|
||||
val child = contentView.getChildAt(i)
|
||||
if (child === excludeView || child !is ViewGroup) continue
|
||||
if (findRenderSurface(child) != null) return child
|
||||
}
|
||||
return null
|
||||
/**
|
||||
* Find the top-level container holding the Flutter render surface. Returns the
|
||||
* direct child of [contentView] that contains a FlutterSurfaceView/FlutterTextureView
|
||||
* at any depth — `bringChildToFront` only works for direct children, so this is the
|
||||
* node to pass to [configureFlutterZOrder].
|
||||
*
|
||||
* Searches any depth because an app may wrap Flutter (e.g. for key-event dispatch)
|
||||
* and push it below the direct-child level.
|
||||
*/
|
||||
fun findFlutterContainer(contentView: ViewGroup, excludeView: View? = null): ViewGroup? {
|
||||
for (i in contentView.childCount - 1 downTo 0) {
|
||||
val child = contentView.getChildAt(i)
|
||||
if (child === excludeView || child !is ViewGroup) continue
|
||||
if (findRenderSurface(child) != null) return child
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
private fun findRenderSurface(root: ViewGroup): View? {
|
||||
for (i in 0 until root.childCount) {
|
||||
val child = root.getChildAt(i)
|
||||
if (child is SurfaceView || child is TextureView) return child
|
||||
if (child is ViewGroup) findRenderSurface(child)?.let { return it }
|
||||
}
|
||||
return null
|
||||
private fun findRenderSurface(root: ViewGroup): View? {
|
||||
for (i in 0 until root.childCount) {
|
||||
val child = root.getChildAt(i)
|
||||
if (child is SurfaceView || child is TextureView) return child
|
||||
if (child is ViewGroup) findRenderSurface(child)?.let { return it }
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
/**
|
||||
* Apply [SurfaceView.setCompositionOrder] on API 36+; no-op on older APIs where
|
||||
* the legacy [SurfaceView.setZOrderOnTop]/[SurfaceView.setZOrderMediaOverlay]
|
||||
* bucket settings govern Z-order instead.
|
||||
*
|
||||
* The value maps directly to the SurfaceView's `mSubLayer`. Per AOSP semantics:
|
||||
* `mSubLayer >= 0` (non-negative `order`) is composited above the parent window
|
||||
* and skips the hole-punch in `draw()`; `mSubLayer < 0` (negative `order`) is
|
||||
* behind the parent window and the SurfaceView is made visible by punching a
|
||||
* transparent hole in the parent canvas. Valid range is `[-2, 2]`. Picking the
|
||||
* right sign matters: any view that draws on the parent canvas (e.g. Media3's
|
||||
* `CanvasSubtitleOutput` for SRT/VTT/SDH) is hidden by SurfaceViews with
|
||||
* non-negative orders that sit on top of the same area.
|
||||
*/
|
||||
fun applyCompositionOrder(view: SurfaceView, order: Int) {
|
||||
if (Build.VERSION.SDK_INT >= 36) view.compositionOrder = order
|
||||
}
|
||||
/**
|
||||
* Apply [SurfaceView.setCompositionOrder] on API 36+; no-op on older APIs where
|
||||
* the legacy [SurfaceView.setZOrderOnTop]/[SurfaceView.setZOrderMediaOverlay]
|
||||
* bucket settings govern Z-order instead.
|
||||
*
|
||||
* The value maps directly to the SurfaceView's `mSubLayer`. Per AOSP semantics:
|
||||
* `mSubLayer >= 0` (non-negative `order`) is composited above the parent window
|
||||
* and skips the hole-punch in `draw()`; `mSubLayer < 0` (negative `order`) is
|
||||
* behind the parent window and the SurfaceView is made visible by punching a
|
||||
* transparent hole in the parent canvas. Valid range is `[-2, 2]`. Picking the
|
||||
* right sign matters: any view that draws on the parent canvas (e.g. Media3's
|
||||
* `CanvasSubtitleOutput` for SRT/VTT/SDH) is hidden by SurfaceViews with
|
||||
* non-negative orders that sit on top of the same area.
|
||||
*/
|
||||
fun applyCompositionOrder(view: SurfaceView, order: Int) {
|
||||
if (Build.VERSION.SDK_INT >= 36) view.compositionOrder = order
|
||||
}
|
||||
|
||||
/**
|
||||
* Configure z-ordering so the Flutter UI renders above the video/subtitle surfaces.
|
||||
*
|
||||
* On API 36+ the value is applied via [SurfaceView.setCompositionOrder] and maps
|
||||
* directly to `mSubLayer` (see [applyCompositionOrder] for the sign semantics).
|
||||
* On pre-36 SurfaceView builds the value is mapped to the legacy on-top bucket
|
||||
* when positive. On TextureView builds the value is unused (view hierarchy order
|
||||
* handles it).
|
||||
*
|
||||
* Pass a non-negative value (e.g. `1`) so Flutter renders above the parent canvas
|
||||
* and lets the legacy transparent-mode `setZOrderOnTop(true)` semantics carry over.
|
||||
*/
|
||||
fun configureFlutterZOrder(contentView: ViewGroup, container: ViewGroup, compositionOrder: Int) {
|
||||
contentView.bringChildToFront(container)
|
||||
when (val surface = findRenderSurface(container)) {
|
||||
is SurfaceView -> {
|
||||
if (Build.VERSION.SDK_INT >= 36) {
|
||||
// Clear legacy bucket hints so compositionOrder is authoritative.
|
||||
// Flutter's FlutterSurfaceView sets setZOrderOnTop(true) in its
|
||||
// transparent-mode constructor, which otherwise pins it to z=1.
|
||||
surface.setZOrderOnTop(false)
|
||||
surface.setZOrderMediaOverlay(false)
|
||||
surface.compositionOrder = compositionOrder
|
||||
} else {
|
||||
// Pre-36 has 3 coarse sublayer buckets. Put Flutter in the on-top
|
||||
// bucket so it renders above the video (default) and libass subtitle
|
||||
// (media overlay) SurfaceViews. NB: setZOrderMediaOverlay overwrites
|
||||
// mSubLayer internally, so don't call it here or it cancels setZOrderOnTop.
|
||||
surface.setZOrderOnTop(compositionOrder > 0)
|
||||
}
|
||||
surface.holder.setFormat(PixelFormat.TRANSLUCENT)
|
||||
}
|
||||
is TextureView -> surface.isOpaque = false
|
||||
/**
|
||||
* Configure z-ordering so the Flutter UI renders above the video/subtitle surfaces.
|
||||
*
|
||||
* On API 36+ the value is applied via [SurfaceView.setCompositionOrder] and maps
|
||||
* directly to `mSubLayer` (see [applyCompositionOrder] for the sign semantics).
|
||||
* On pre-36 SurfaceView builds the value is mapped to the legacy on-top bucket
|
||||
* when positive. On TextureView builds the value is unused (view hierarchy order
|
||||
* handles it).
|
||||
*
|
||||
* Pass a non-negative value (e.g. `1`) so Flutter renders above the parent canvas
|
||||
* and lets the legacy transparent-mode `setZOrderOnTop(true)` semantics carry over.
|
||||
*/
|
||||
fun configureFlutterZOrder(contentView: ViewGroup, container: ViewGroup, compositionOrder: Int) {
|
||||
contentView.bringChildToFront(container)
|
||||
when (val surface = findRenderSurface(container)) {
|
||||
is SurfaceView -> {
|
||||
if (Build.VERSION.SDK_INT >= 36) {
|
||||
// Clear legacy bucket hints so compositionOrder is authoritative.
|
||||
// Flutter's FlutterSurfaceView sets setZOrderOnTop(true) in its
|
||||
// transparent-mode constructor, which otherwise pins it to z=1.
|
||||
surface.setZOrderOnTop(false)
|
||||
surface.setZOrderMediaOverlay(false)
|
||||
surface.compositionOrder = compositionOrder
|
||||
} else {
|
||||
// Pre-36 has 3 coarse sublayer buckets. Put Flutter in the on-top
|
||||
// bucket so it renders above the video (default) and libass subtitle
|
||||
// (media overlay) SurfaceViews. NB: setZOrderMediaOverlay overwrites
|
||||
// mSubLayer internally, so don't call it here or it cancels setZOrderOnTop.
|
||||
surface.setZOrderOnTop(compositionOrder > 0)
|
||||
}
|
||||
surface.holder.setFormat(PixelFormat.TRANSLUCENT)
|
||||
}
|
||||
is TextureView -> surface.isOpaque = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,267 +13,280 @@ import java.math.BigDecimal
|
||||
import java.math.RoundingMode
|
||||
|
||||
class FrameRateManager(
|
||||
private val activity: Activity,
|
||||
private val handler: Handler,
|
||||
private val log: (String) -> Unit = { Log.d(TAG, it) }
|
||||
private val activity: Activity,
|
||||
private val handler: Handler,
|
||||
private val log: (String) -> Unit = { Log.d(TAG, it) }
|
||||
) {
|
||||
companion object {
|
||||
private const val TAG = "FrameRateManager"
|
||||
private const val SHORT_VIDEO_LENGTH_MS = 300000L // 5 minutes
|
||||
private const val DISPLAY_SETTLE_MS = 2000L
|
||||
private const val WATCHDOG_MARGIN_MS = 3000L
|
||||
companion object {
|
||||
private const val TAG = "FrameRateManager"
|
||||
private const val SHORT_VIDEO_LENGTH_MS = 300000L // 5 minutes
|
||||
private const val DISPLAY_SETTLE_MS = 2000L
|
||||
private const val WATCHDOG_MARGIN_MS = 3000L
|
||||
}
|
||||
|
||||
private var currentVideoFps: Float = 0f
|
||||
private var displayListener: DisplayManager.DisplayListener? = null
|
||||
private var pendingSettleRunnable: Runnable? = null
|
||||
private var watchdogRunnable: Runnable? = null
|
||||
private var pendingCompletion: ((switched: Boolean) -> Unit)? = null
|
||||
|
||||
private fun getDisplayManager(): DisplayManager = activity.getSystemService(Context.DISPLAY_SERVICE) as DisplayManager
|
||||
|
||||
// / Request a display frame-rate switch. Invokes [onComplete] once, either:
|
||||
// / - immediately with `switched=false` when no switch is needed (invalid
|
||||
// / fps, no matching mode, seamless fallback); or
|
||||
// / - after the real DisplayListener event + [DISPLAY_SETTLE_MS] + the
|
||||
// / caller's [extraDelayMs], with `switched=true`; or
|
||||
// / - via a watchdog with `switched=true` if the real event never arrives,
|
||||
// / so the caller doesn't hang.
|
||||
// /
|
||||
// / The caller is responsible for pausing playback before calling and
|
||||
// / resuming it after [onComplete] fires.
|
||||
fun setVideoFrameRate(
|
||||
fps: Float,
|
||||
videoDurationMs: Long,
|
||||
surface: Surface?,
|
||||
extraDelayMs: Long,
|
||||
onComplete: (switched: Boolean) -> Unit
|
||||
) {
|
||||
currentVideoFps = fps
|
||||
if (fps <= 0f) {
|
||||
Log.d(TAG, "setVideoFrameRate: Invalid fps ($fps), skipping")
|
||||
onComplete(false)
|
||||
return
|
||||
}
|
||||
|
||||
private var currentVideoFps: Float = 0f
|
||||
private var displayListener: DisplayManager.DisplayListener? = null
|
||||
private var pendingSettleRunnable: Runnable? = null
|
||||
private var watchdogRunnable: Runnable? = null
|
||||
private var pendingCompletion: ((switched: Boolean) -> Unit)? = null
|
||||
log("fps=$fps, duration=${videoDurationMs}ms, extraDelayMs=$extraDelayMs, API=${Build.VERSION.SDK_INT}")
|
||||
|
||||
private fun getDisplayManager(): DisplayManager {
|
||||
return activity.getSystemService(Context.DISPLAY_SERVICE) as DisplayManager
|
||||
when {
|
||||
Build.VERSION.SDK_INT >= Build.VERSION_CODES.S -> {
|
||||
if (surface == null) {
|
||||
Log.d(TAG, "setVideoFrameRate: Surface not available")
|
||||
onComplete(false)
|
||||
return
|
||||
}
|
||||
setFrameRateS(fps, surface, videoDurationMs, extraDelayMs, onComplete)
|
||||
}
|
||||
// API R's Surface.setFrameRate() only supports seamless switching (no
|
||||
// CHANGE_FRAME_RATE_ALWAYS), so 60→24Hz won't switch. Fall through to
|
||||
// preferredDisplayModeId which directly sets the display mode.
|
||||
Build.VERSION.SDK_INT >= Build.VERSION_CODES.M -> setFrameRateM(fps, extraDelayMs, onComplete)
|
||||
else -> onComplete(false)
|
||||
}
|
||||
}
|
||||
|
||||
fun clearVideoFrameRate() {
|
||||
Log.d(TAG, "clearVideoFrameRate")
|
||||
currentVideoFps = 0f
|
||||
// Resolve any pending setVideoFrameRate future as "not switched" so
|
||||
// the Dart caller's await doesn't hang on player dispose.
|
||||
firePendingCompletion("clear", switched = false)
|
||||
// Restore default display mode on API M (preferredDisplayModeId persists)
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
||||
activity.window?.attributes?.let { attrs ->
|
||||
attrs.preferredDisplayModeId = 0
|
||||
activity.window?.attributes = attrs
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Release pending callbacks/listener without restoring the display mode.
|
||||
// Used by player-core dispose paths so a backend handoff (e.g. ExoPlayer→MPV
|
||||
// audio fallback) doesn't clobber the just-applied refresh-rate switch —
|
||||
// window-scoped preferredDisplayModeId persists across the SurfaceView swap,
|
||||
// letting MPV inherit the rate without a second HDMI renegotiation.
|
||||
fun releasePending() {
|
||||
Log.d(TAG, "releasePending")
|
||||
currentVideoFps = 0f
|
||||
firePendingCompletion("release", switched = false)
|
||||
}
|
||||
|
||||
private fun cancelPendingCallbacks() {
|
||||
pendingSettleRunnable?.let { handler.removeCallbacks(it) }
|
||||
watchdogRunnable?.let { handler.removeCallbacks(it) }
|
||||
pendingSettleRunnable = null
|
||||
watchdogRunnable = null
|
||||
}
|
||||
|
||||
private fun firePendingCompletion(reason: String, switched: Boolean) {
|
||||
cancelPendingCallbacks()
|
||||
displayListener?.let {
|
||||
getDisplayManager().unregisterDisplayListener(it)
|
||||
displayListener = null
|
||||
}
|
||||
val cb = pendingCompletion ?: return
|
||||
pendingCompletion = null
|
||||
Log.d(TAG, "FrameRateManager complete ($reason, switched=$switched)")
|
||||
cb(switched)
|
||||
}
|
||||
|
||||
private fun registerDisplayListener(extraDelayMs: Long, onComplete: (switched: Boolean) -> Unit) {
|
||||
// Resolve any previous pending op before starting a new one.
|
||||
firePendingCompletion("superseded", switched = false)
|
||||
pendingCompletion = onComplete
|
||||
|
||||
displayListener = object : DisplayManager.DisplayListener {
|
||||
override fun onDisplayAdded(displayId: Int) = Unit
|
||||
override fun onDisplayRemoved(displayId: Int) = Unit
|
||||
override fun onDisplayChanged(displayId: Int) {
|
||||
// Unregister immediately so a chatty display (e.g. several
|
||||
// onDisplayChanged events during HDMI renegotiation) doesn't
|
||||
// queue multiple settle callbacks.
|
||||
getDisplayManager().unregisterDisplayListener(this)
|
||||
displayListener = null
|
||||
|
||||
val settle = Runnable { firePendingCompletion("display settled", switched = true) }
|
||||
pendingSettleRunnable = settle
|
||||
handler.postDelayed(settle, DISPLAY_SETTLE_MS + extraDelayMs)
|
||||
}
|
||||
}
|
||||
getDisplayManager().registerDisplayListener(displayListener, handler)
|
||||
|
||||
// Watchdog: if the TV never signals a display change (silently ignoring
|
||||
// the mode request), still complete after a bounded wait so the caller
|
||||
// doesn't hang.
|
||||
val watchdog = Runnable { firePendingCompletion("watchdog", switched = true) }
|
||||
watchdogRunnable = watchdog
|
||||
handler.postDelayed(watchdog, DISPLAY_SETTLE_MS + extraDelayMs + WATCHDOG_MARGIN_MS)
|
||||
}
|
||||
|
||||
private fun currentRateMatchesFps(fps: Float): Boolean {
|
||||
val current = activity.display?.mode?.refreshRate ?: return false
|
||||
if (current <= 0f) return false
|
||||
// Treat "equal within a frame" and "clean multiple" as a match —
|
||||
// same tolerance the API M matcher uses below.
|
||||
if (kotlin.math.abs(current - fps) < 0.1f) return true
|
||||
val mod = current % fps
|
||||
return mod < 0.1f || (fps - mod) < 0.1f
|
||||
}
|
||||
|
||||
@RequiresApi(Build.VERSION_CODES.S)
|
||||
private fun setFrameRateS(
|
||||
fps: Float,
|
||||
surface: Surface,
|
||||
videoDurationMs: Long,
|
||||
extraDelayMs: Long,
|
||||
onComplete: (switched: Boolean) -> Unit
|
||||
) {
|
||||
Log.d(TAG, "setFrameRateS: fps=$fps, duration=${videoDurationMs}ms")
|
||||
|
||||
// If the current display rate already satisfies the video fps, issue
|
||||
// the hint for book-keeping but skip the listener — otherwise we'd
|
||||
// wait for an onDisplayChanged event that never fires and end up
|
||||
// burning the watchdog timeout for no reason.
|
||||
if (currentRateMatchesFps(fps)) {
|
||||
Log.d(TAG, "Current display rate already matches ${fps}fps, no switch needed")
|
||||
surface.setFrameRate(
|
||||
fps,
|
||||
Surface.FRAME_RATE_COMPATIBILITY_FIXED_SOURCE,
|
||||
Surface.CHANGE_FRAME_RATE_ONLY_IF_SEAMLESS
|
||||
)
|
||||
onComplete(false)
|
||||
return
|
||||
}
|
||||
|
||||
/// Request a display frame-rate switch. Invokes [onComplete] once, either:
|
||||
/// - immediately with `switched=false` when no switch is needed (invalid
|
||||
/// fps, no matching mode, seamless fallback); or
|
||||
/// - after the real DisplayListener event + [DISPLAY_SETTLE_MS] + the
|
||||
/// caller's [extraDelayMs], with `switched=true`; or
|
||||
/// - via a watchdog with `switched=true` if the real event never arrives,
|
||||
/// so the caller doesn't hang.
|
||||
///
|
||||
/// The caller is responsible for pausing playback before calling and
|
||||
/// resuming it after [onComplete] fires.
|
||||
fun setVideoFrameRate(
|
||||
fps: Float,
|
||||
videoDurationMs: Long,
|
||||
surface: Surface?,
|
||||
extraDelayMs: Long,
|
||||
onComplete: (switched: Boolean) -> Unit,
|
||||
) {
|
||||
currentVideoFps = fps
|
||||
if (fps <= 0f) {
|
||||
Log.d(TAG, "setVideoFrameRate: Invalid fps ($fps), skipping")
|
||||
onComplete(false)
|
||||
return
|
||||
}
|
||||
|
||||
log("fps=$fps, duration=${videoDurationMs}ms, extraDelayMs=${extraDelayMs}, API=${Build.VERSION.SDK_INT}")
|
||||
|
||||
when {
|
||||
Build.VERSION.SDK_INT >= Build.VERSION_CODES.S -> {
|
||||
if (surface == null) {
|
||||
Log.d(TAG, "setVideoFrameRate: Surface not available")
|
||||
onComplete(false)
|
||||
return
|
||||
}
|
||||
setFrameRateS(fps, surface, videoDurationMs, extraDelayMs, onComplete)
|
||||
}
|
||||
// API R's Surface.setFrameRate() only supports seamless switching (no
|
||||
// CHANGE_FRAME_RATE_ALWAYS), so 60→24Hz won't switch. Fall through to
|
||||
// preferredDisplayModeId which directly sets the display mode.
|
||||
Build.VERSION.SDK_INT >= Build.VERSION_CODES.M -> setFrameRateM(fps, extraDelayMs, onComplete)
|
||||
else -> onComplete(false)
|
||||
}
|
||||
if (videoDurationMs < SHORT_VIDEO_LENGTH_MS) {
|
||||
Log.d(TAG, "Short video, using seamless-only switching")
|
||||
surface.setFrameRate(
|
||||
fps,
|
||||
Surface.FRAME_RATE_COMPATIBILITY_FIXED_SOURCE,
|
||||
Surface.CHANGE_FRAME_RATE_ONLY_IF_SEAMLESS
|
||||
)
|
||||
onComplete(false)
|
||||
return
|
||||
}
|
||||
|
||||
fun clearVideoFrameRate() {
|
||||
Log.d(TAG, "clearVideoFrameRate")
|
||||
currentVideoFps = 0f
|
||||
// Resolve any pending setVideoFrameRate future as "not switched" so
|
||||
// the Dart caller's await doesn't hang on player dispose.
|
||||
firePendingCompletion("clear", switched = false)
|
||||
// Restore default display mode on API M (preferredDisplayModeId persists)
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
||||
activity.window?.attributes?.let { attrs ->
|
||||
attrs.preferredDisplayModeId = 0
|
||||
activity.window?.attributes = attrs
|
||||
}
|
||||
var seamless = false
|
||||
activity.display?.mode?.alternativeRefreshRates?.let { refreshRates ->
|
||||
for (rate in refreshRates) {
|
||||
if (fps.toString().startsWith(rate.toString()) ||
|
||||
rate.toString().startsWith(fps.toString()) ||
|
||||
rate % fps == 0f
|
||||
) {
|
||||
seamless = true
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun cancelPendingCallbacks() {
|
||||
pendingSettleRunnable?.let { handler.removeCallbacks(it) }
|
||||
watchdogRunnable?.let { handler.removeCallbacks(it) }
|
||||
pendingSettleRunnable = null
|
||||
watchdogRunnable = null
|
||||
}
|
||||
|
||||
private fun firePendingCompletion(reason: String, switched: Boolean) {
|
||||
cancelPendingCallbacks()
|
||||
displayListener?.let {
|
||||
getDisplayManager().unregisterDisplayListener(it)
|
||||
displayListener = null
|
||||
}
|
||||
val cb = pendingCompletion ?: return
|
||||
pendingCompletion = null
|
||||
Log.d(TAG, "FrameRateManager complete ($reason, switched=$switched)")
|
||||
cb(switched)
|
||||
}
|
||||
|
||||
private fun registerDisplayListener(extraDelayMs: Long, onComplete: (switched: Boolean) -> Unit) {
|
||||
// Resolve any previous pending op before starting a new one.
|
||||
firePendingCompletion("superseded", switched = false)
|
||||
pendingCompletion = onComplete
|
||||
|
||||
displayListener = object : DisplayManager.DisplayListener {
|
||||
override fun onDisplayAdded(displayId: Int) = Unit
|
||||
override fun onDisplayRemoved(displayId: Int) = Unit
|
||||
override fun onDisplayChanged(displayId: Int) {
|
||||
// Unregister immediately so a chatty display (e.g. several
|
||||
// onDisplayChanged events during HDMI renegotiation) doesn't
|
||||
// queue multiple settle callbacks.
|
||||
getDisplayManager().unregisterDisplayListener(this)
|
||||
displayListener = null
|
||||
|
||||
val settle = Runnable { firePendingCompletion("display settled", switched = true) }
|
||||
pendingSettleRunnable = settle
|
||||
handler.postDelayed(settle, DISPLAY_SETTLE_MS + extraDelayMs)
|
||||
}
|
||||
}
|
||||
getDisplayManager().registerDisplayListener(displayListener, handler)
|
||||
|
||||
// Watchdog: if the TV never signals a display change (silently ignoring
|
||||
// the mode request), still complete after a bounded wait so the caller
|
||||
// doesn't hang.
|
||||
val watchdog = Runnable { firePendingCompletion("watchdog", switched = true) }
|
||||
watchdogRunnable = watchdog
|
||||
handler.postDelayed(watchdog, DISPLAY_SETTLE_MS + extraDelayMs + WATCHDOG_MARGIN_MS)
|
||||
}
|
||||
|
||||
private fun currentRateMatchesFps(fps: Float): Boolean {
|
||||
val current = activity.display?.mode?.refreshRate ?: return false
|
||||
if (current <= 0f) return false
|
||||
// Treat "equal within a frame" and "clean multiple" as a match —
|
||||
// same tolerance the API M matcher uses below.
|
||||
if (kotlin.math.abs(current - fps) < 0.1f) return true
|
||||
val mod = current % fps
|
||||
return mod < 0.1f || (fps - mod) < 0.1f
|
||||
}
|
||||
|
||||
@RequiresApi(Build.VERSION_CODES.S)
|
||||
private fun setFrameRateS(
|
||||
fps: Float,
|
||||
surface: Surface,
|
||||
videoDurationMs: Long,
|
||||
extraDelayMs: Long,
|
||||
onComplete: (switched: Boolean) -> Unit,
|
||||
) {
|
||||
Log.d(TAG, "setFrameRateS: fps=$fps, duration=${videoDurationMs}ms")
|
||||
|
||||
// If the current display rate already satisfies the video fps, issue
|
||||
// the hint for book-keeping but skip the listener — otherwise we'd
|
||||
// wait for an onDisplayChanged event that never fires and end up
|
||||
// burning the watchdog timeout for no reason.
|
||||
if (currentRateMatchesFps(fps)) {
|
||||
Log.d(TAG, "Current display rate already matches ${fps}fps, no switch needed")
|
||||
surface.setFrameRate(
|
||||
fps,
|
||||
Surface.FRAME_RATE_COMPATIBILITY_FIXED_SOURCE,
|
||||
Surface.CHANGE_FRAME_RATE_ONLY_IF_SEAMLESS
|
||||
)
|
||||
onComplete(false)
|
||||
return
|
||||
}
|
||||
|
||||
if (videoDurationMs < SHORT_VIDEO_LENGTH_MS) {
|
||||
Log.d(TAG, "Short video, using seamless-only switching")
|
||||
surface.setFrameRate(
|
||||
fps,
|
||||
Surface.FRAME_RATE_COMPATIBILITY_FIXED_SOURCE,
|
||||
Surface.CHANGE_FRAME_RATE_ONLY_IF_SEAMLESS
|
||||
)
|
||||
onComplete(false)
|
||||
return
|
||||
}
|
||||
|
||||
var seamless = false
|
||||
activity.display?.mode?.alternativeRefreshRates?.let { refreshRates ->
|
||||
for (rate in refreshRates) {
|
||||
if (fps.toString().startsWith(rate.toString()) ||
|
||||
rate.toString().startsWith(fps.toString()) ||
|
||||
rate % fps == 0f) {
|
||||
seamless = true
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (seamless) {
|
||||
log("Seamless switch available for ${fps}fps")
|
||||
surface.setFrameRate(
|
||||
fps,
|
||||
Surface.FRAME_RATE_COMPATIBILITY_FIXED_SOURCE,
|
||||
Surface.CHANGE_FRAME_RATE_ALWAYS
|
||||
)
|
||||
registerDisplayListener(extraDelayMs, onComplete)
|
||||
} else {
|
||||
val userPreference = getDisplayManager().matchContentFrameRateUserPreference
|
||||
if (userPreference == DisplayManager.MATCH_CONTENT_FRAMERATE_ALWAYS) {
|
||||
Log.d(TAG, "User preference allows non-seamless switch")
|
||||
surface.setFrameRate(
|
||||
fps,
|
||||
Surface.FRAME_RATE_COMPATIBILITY_FIXED_SOURCE,
|
||||
Surface.CHANGE_FRAME_RATE_ALWAYS
|
||||
)
|
||||
registerDisplayListener(extraDelayMs, onComplete)
|
||||
} else {
|
||||
Log.d(TAG, "Non-seamless switch not allowed, using seamless-only")
|
||||
surface.setFrameRate(
|
||||
fps,
|
||||
Surface.FRAME_RATE_COMPATIBILITY_FIXED_SOURCE,
|
||||
Surface.CHANGE_FRAME_RATE_ONLY_IF_SEAMLESS
|
||||
)
|
||||
onComplete(false)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@RequiresApi(Build.VERSION_CODES.M)
|
||||
private fun setFrameRateM(fps: Float, extraDelayMs: Long, onComplete: (switched: Boolean) -> Unit) {
|
||||
Log.d(TAG, "setFrameRateM: fps=$fps")
|
||||
val wm = activity.getSystemService(Context.WINDOW_SERVICE) as WindowManager
|
||||
@Suppress("DEPRECATION")
|
||||
val display = wm.defaultDisplay
|
||||
if (display == null) {
|
||||
onComplete(false)
|
||||
return
|
||||
}
|
||||
|
||||
val supportedModes = display.supportedModes
|
||||
if (supportedModes == null) {
|
||||
onComplete(false)
|
||||
return
|
||||
}
|
||||
val currentMode = display.mode
|
||||
var modeToUse = currentMode
|
||||
|
||||
for (mode in supportedModes) {
|
||||
if (mode.physicalHeight != currentMode.physicalHeight ||
|
||||
mode.physicalWidth != currentMode.physicalWidth) {
|
||||
continue
|
||||
}
|
||||
|
||||
if (BigDecimal(fps.toString()).setScale(1, RoundingMode.FLOOR) ==
|
||||
BigDecimal(mode.refreshRate.toString()).setScale(1, RoundingMode.FLOOR)) {
|
||||
modeToUse = mode
|
||||
break
|
||||
} else if ((mode.refreshRate % fps).let { it < 0.1f || (fps - it) < 0.1f }) {
|
||||
modeToUse = mode
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
if (modeToUse == currentMode) {
|
||||
onComplete(false)
|
||||
return
|
||||
}
|
||||
|
||||
Log.d(TAG, "Switching to mode ${modeToUse.modeId} (${modeToUse.refreshRate}Hz)")
|
||||
activity.window?.attributes?.let { attrs ->
|
||||
attrs.preferredDisplayModeId = modeToUse.modeId
|
||||
activity.window?.attributes = attrs
|
||||
}
|
||||
if (seamless) {
|
||||
log("Seamless switch available for ${fps}fps")
|
||||
surface.setFrameRate(
|
||||
fps,
|
||||
Surface.FRAME_RATE_COMPATIBILITY_FIXED_SOURCE,
|
||||
Surface.CHANGE_FRAME_RATE_ALWAYS
|
||||
)
|
||||
registerDisplayListener(extraDelayMs, onComplete)
|
||||
} else {
|
||||
val userPreference = getDisplayManager().matchContentFrameRateUserPreference
|
||||
if (userPreference == DisplayManager.MATCH_CONTENT_FRAMERATE_ALWAYS) {
|
||||
Log.d(TAG, "User preference allows non-seamless switch")
|
||||
surface.setFrameRate(
|
||||
fps,
|
||||
Surface.FRAME_RATE_COMPATIBILITY_FIXED_SOURCE,
|
||||
Surface.CHANGE_FRAME_RATE_ALWAYS
|
||||
)
|
||||
registerDisplayListener(extraDelayMs, onComplete)
|
||||
} else {
|
||||
Log.d(TAG, "Non-seamless switch not allowed, using seamless-only")
|
||||
surface.setFrameRate(
|
||||
fps,
|
||||
Surface.FRAME_RATE_COMPATIBILITY_FIXED_SOURCE,
|
||||
Surface.CHANGE_FRAME_RATE_ONLY_IF_SEAMLESS
|
||||
)
|
||||
onComplete(false)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@RequiresApi(Build.VERSION_CODES.M)
|
||||
private fun setFrameRateM(fps: Float, extraDelayMs: Long, onComplete: (switched: Boolean) -> Unit) {
|
||||
Log.d(TAG, "setFrameRateM: fps=$fps")
|
||||
val wm = activity.getSystemService(Context.WINDOW_SERVICE) as WindowManager
|
||||
|
||||
@Suppress("DEPRECATION")
|
||||
val display = wm.defaultDisplay
|
||||
if (display == null) {
|
||||
onComplete(false)
|
||||
return
|
||||
}
|
||||
|
||||
val supportedModes = display.supportedModes
|
||||
if (supportedModes == null) {
|
||||
onComplete(false)
|
||||
return
|
||||
}
|
||||
val currentMode = display.mode
|
||||
var modeToUse = currentMode
|
||||
|
||||
for (mode in supportedModes) {
|
||||
if (mode.physicalHeight != currentMode.physicalHeight ||
|
||||
mode.physicalWidth != currentMode.physicalWidth
|
||||
) {
|
||||
continue
|
||||
}
|
||||
|
||||
if (BigDecimal(fps.toString()).setScale(1, RoundingMode.FLOOR) ==
|
||||
BigDecimal(mode.refreshRate.toString()).setScale(1, RoundingMode.FLOOR)
|
||||
) {
|
||||
modeToUse = mode
|
||||
break
|
||||
} else if ((mode.refreshRate % fps).let { it < 0.1f || (fps - it) < 0.1f }) {
|
||||
modeToUse = mode
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
if (modeToUse == currentMode) {
|
||||
onComplete(false)
|
||||
return
|
||||
}
|
||||
|
||||
Log.d(TAG, "Switching to mode ${modeToUse.modeId} (${modeToUse.refreshRate}Hz)")
|
||||
activity.window?.attributes?.let { attrs ->
|
||||
attrs.preferredDisplayModeId = modeToUse.modeId
|
||||
activity.window?.attributes = attrs
|
||||
}
|
||||
registerDisplayListener(extraDelayMs, onComplete)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.edde746.plezy.shared
|
||||
|
||||
interface PlayerDelegate {
|
||||
fun onPropertyChange(name: String, value: Any?)
|
||||
fun onEvent(name: String, data: Map<String, Any>?)
|
||||
fun onPropertyChange(name: String, value: Any?)
|
||||
fun onEvent(name: String, data: Map<String, Any>?)
|
||||
}
|
||||
|
||||
@@ -3,10 +3,10 @@ package com.edde746.plezy.shared
|
||||
import android.graphics.Color
|
||||
|
||||
object ThemeHelper {
|
||||
fun themeColor(mode: String?): Int? = when (mode) {
|
||||
"oled" -> Color.BLACK
|
||||
"dark" -> Color.parseColor("#0E0F12")
|
||||
"light" -> Color.parseColor("#F7F7F8")
|
||||
else -> null
|
||||
}
|
||||
fun themeColor(mode: String?): Int? = when (mode) {
|
||||
"oled" -> Color.BLACK
|
||||
"dark" -> Color.parseColor("#0E0F12")
|
||||
"light" -> Color.parseColor("#F7F7F8")
|
||||
else -> null
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,167 +16,169 @@ import java.util.concurrent.Executors
|
||||
* Flutter plugin for Android TV Watch Next integration.
|
||||
* Syncs Plex "On Deck" content to the Android TV launcher's Watch Next row.
|
||||
*/
|
||||
class WatchNextPlugin : FlutterPlugin, MethodChannel.MethodCallHandler {
|
||||
class WatchNextPlugin :
|
||||
FlutterPlugin,
|
||||
MethodChannel.MethodCallHandler {
|
||||
|
||||
companion object {
|
||||
private const val TAG = "WatchNextPlugin"
|
||||
private const val METHOD_CHANNEL = "com.plezy/watch_next"
|
||||
companion object {
|
||||
private const val TAG = "WatchNextPlugin"
|
||||
private const val METHOD_CHANNEL = "com.plezy/watch_next"
|
||||
|
||||
private var pendingDeepLink: String? = null
|
||||
|
||||
/**
|
||||
* Parse a Watch Next deep link intent.
|
||||
* Returns the content ID if this was a Watch Next intent, null otherwise.
|
||||
*/
|
||||
fun handleIntent(intent: Intent?): String? {
|
||||
val data = intent?.data ?: return null
|
||||
if (data.scheme == "plezy" && data.authority == "play") {
|
||||
return data.getQueryParameter("content_id")
|
||||
}
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
private lateinit var methodChannel: MethodChannel
|
||||
private var applicationContext: Context? = null
|
||||
private var watchNextProvider: WatchNextProvider? = null
|
||||
private val ioExecutor by lazy { Executors.newSingleThreadExecutor() }
|
||||
private val mainHandler = Handler(Looper.getMainLooper())
|
||||
|
||||
override fun onAttachedToEngine(binding: FlutterPlugin.FlutterPluginBinding) {
|
||||
applicationContext = binding.applicationContext
|
||||
watchNextProvider = WatchNextProvider(binding.applicationContext)
|
||||
methodChannel = MethodChannel(binding.binaryMessenger, METHOD_CHANNEL)
|
||||
methodChannel.setMethodCallHandler(this)
|
||||
}
|
||||
|
||||
override fun onDetachedFromEngine(binding: FlutterPlugin.FlutterPluginBinding) {
|
||||
methodChannel.setMethodCallHandler(null)
|
||||
applicationContext = null
|
||||
watchNextProvider = null
|
||||
ioExecutor.shutdown()
|
||||
}
|
||||
|
||||
override fun onMethodCall(call: MethodCall, result: MethodChannel.Result) {
|
||||
when (call.method) {
|
||||
"isSupported" -> handleIsSupported(result)
|
||||
"sync" -> handleSync(call, result)
|
||||
"clear" -> handleClear(result)
|
||||
"remove" -> handleRemove(call, result)
|
||||
"getInitialDeepLink" -> handleGetInitialDeepLink(result)
|
||||
else -> result.notImplemented()
|
||||
}
|
||||
}
|
||||
|
||||
private fun handleIsSupported(result: MethodChannel.Result) {
|
||||
val context = applicationContext
|
||||
if (context == null) {
|
||||
result.success(false)
|
||||
return
|
||||
}
|
||||
result.success(context.packageManager.hasSystemFeature(PackageManager.FEATURE_LEANBACK))
|
||||
}
|
||||
|
||||
private fun handleSync(call: MethodCall, result: MethodChannel.Result) {
|
||||
val provider = watchNextProvider
|
||||
if (provider == null) {
|
||||
result.error("NOT_INITIALIZED", "WatchNextProvider not initialized", null)
|
||||
return
|
||||
}
|
||||
|
||||
val itemsData = call.argument<List<Map<String, Any?>>>("items")
|
||||
if (itemsData == null) {
|
||||
result.error("INVALID_ARGS", "Missing 'items' argument", null)
|
||||
return
|
||||
}
|
||||
|
||||
val items = itemsData.mapNotNull { parseWatchNextItem(it) }
|
||||
executeOnIo(result) { provider.syncWatchNextPrograms(items) }
|
||||
}
|
||||
|
||||
private fun handleClear(result: MethodChannel.Result) {
|
||||
val provider = watchNextProvider
|
||||
if (provider == null) {
|
||||
result.error("NOT_INITIALIZED", "WatchNextProvider not initialized", null)
|
||||
return
|
||||
}
|
||||
executeOnIo(result) { provider.clearAll() }
|
||||
}
|
||||
|
||||
private fun handleRemove(call: MethodCall, result: MethodChannel.Result) {
|
||||
val provider = watchNextProvider
|
||||
if (provider == null) {
|
||||
result.error("NOT_INITIALIZED", "WatchNextProvider not initialized", null)
|
||||
return
|
||||
}
|
||||
|
||||
val contentId = call.argument<String>("contentId")
|
||||
if (contentId == null) {
|
||||
result.error("INVALID_ARGS", "Missing 'contentId' argument", null)
|
||||
return
|
||||
}
|
||||
executeOnIo(result) { provider.removeItem(contentId) }
|
||||
}
|
||||
|
||||
private fun executeOnIo(result: MethodChannel.Result, block: () -> Any?) {
|
||||
try {
|
||||
ioExecutor.execute {
|
||||
try {
|
||||
val value = block()
|
||||
mainHandler.post { result.success(value) }
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "IO operation failed: ${e.message}", e)
|
||||
mainHandler.post { result.error("IO_ERROR", e.message, null) }
|
||||
}
|
||||
}
|
||||
} catch (e: java.util.concurrent.RejectedExecutionException) {
|
||||
result.error("SHUTDOWN", "Plugin is shutting down", null)
|
||||
}
|
||||
}
|
||||
|
||||
private fun handleGetInitialDeepLink(result: MethodChannel.Result) {
|
||||
val contentId = pendingDeepLink
|
||||
pendingDeepLink = null
|
||||
result.success(contentId)
|
||||
}
|
||||
|
||||
private fun parseWatchNextItem(data: Map<String, Any?>): WatchNextProvider.WatchNextItem? {
|
||||
val contentId = data["contentId"] as? String ?: return null
|
||||
val title = data["title"] as? String ?: return null
|
||||
|
||||
val typeString = data["type"] as? String ?: "movie"
|
||||
val type = when (typeString.lowercase()) {
|
||||
"episode" -> TvContractCompat.WatchNextPrograms.TYPE_TV_EPISODE
|
||||
"movie" -> TvContractCompat.WatchNextPrograms.TYPE_MOVIE
|
||||
else -> TvContractCompat.WatchNextPrograms.TYPE_MOVIE
|
||||
}
|
||||
|
||||
return WatchNextProvider.WatchNextItem(
|
||||
contentId = contentId,
|
||||
title = title,
|
||||
episodeTitle = data["episodeTitle"] as? String,
|
||||
description = data["description"] as? String,
|
||||
posterUri = data["posterUri"] as? String,
|
||||
type = type,
|
||||
duration = (data["duration"] as? Number)?.toLong() ?: 0L,
|
||||
lastPlaybackPosition = (data["lastPlaybackPosition"] as? Number)?.toLong() ?: 0L,
|
||||
lastEngagementTime = (data["lastEngagementTime"] as? Number)?.toLong() ?: System.currentTimeMillis(),
|
||||
seriesTitle = data["seriesTitle"] as? String,
|
||||
seasonNumber = (data["seasonNumber"] as? Number)?.toInt(),
|
||||
episodeNumber = (data["episodeNumber"] as? Number)?.toInt()
|
||||
)
|
||||
}
|
||||
private var pendingDeepLink: String? = null
|
||||
|
||||
/**
|
||||
* Store a deep link content ID for delivery to Flutter.
|
||||
* Called from MainActivity on intent receipt.
|
||||
* Parse a Watch Next deep link intent.
|
||||
* Returns the content ID if this was a Watch Next intent, null otherwise.
|
||||
*/
|
||||
fun notifyDeepLink(contentId: String) {
|
||||
pendingDeepLink = contentId
|
||||
try {
|
||||
methodChannel.invokeMethod("onWatchNextTap", mapOf("contentId" to contentId))
|
||||
} catch (e: Exception) {
|
||||
Log.d(TAG, "Method channel not ready, stored as pending deep link")
|
||||
}
|
||||
fun handleIntent(intent: Intent?): String? {
|
||||
val data = intent?.data ?: return null
|
||||
if (data.scheme == "plezy" && data.authority == "play") {
|
||||
return data.getQueryParameter("content_id")
|
||||
}
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
private lateinit var methodChannel: MethodChannel
|
||||
private var applicationContext: Context? = null
|
||||
private var watchNextProvider: WatchNextProvider? = null
|
||||
private val ioExecutor by lazy { Executors.newSingleThreadExecutor() }
|
||||
private val mainHandler = Handler(Looper.getMainLooper())
|
||||
|
||||
override fun onAttachedToEngine(binding: FlutterPlugin.FlutterPluginBinding) {
|
||||
applicationContext = binding.applicationContext
|
||||
watchNextProvider = WatchNextProvider(binding.applicationContext)
|
||||
methodChannel = MethodChannel(binding.binaryMessenger, METHOD_CHANNEL)
|
||||
methodChannel.setMethodCallHandler(this)
|
||||
}
|
||||
|
||||
override fun onDetachedFromEngine(binding: FlutterPlugin.FlutterPluginBinding) {
|
||||
methodChannel.setMethodCallHandler(null)
|
||||
applicationContext = null
|
||||
watchNextProvider = null
|
||||
ioExecutor.shutdown()
|
||||
}
|
||||
|
||||
override fun onMethodCall(call: MethodCall, result: MethodChannel.Result) {
|
||||
when (call.method) {
|
||||
"isSupported" -> handleIsSupported(result)
|
||||
"sync" -> handleSync(call, result)
|
||||
"clear" -> handleClear(result)
|
||||
"remove" -> handleRemove(call, result)
|
||||
"getInitialDeepLink" -> handleGetInitialDeepLink(result)
|
||||
else -> result.notImplemented()
|
||||
}
|
||||
}
|
||||
|
||||
private fun handleIsSupported(result: MethodChannel.Result) {
|
||||
val context = applicationContext
|
||||
if (context == null) {
|
||||
result.success(false)
|
||||
return
|
||||
}
|
||||
result.success(context.packageManager.hasSystemFeature(PackageManager.FEATURE_LEANBACK))
|
||||
}
|
||||
|
||||
private fun handleSync(call: MethodCall, result: MethodChannel.Result) {
|
||||
val provider = watchNextProvider
|
||||
if (provider == null) {
|
||||
result.error("NOT_INITIALIZED", "WatchNextProvider not initialized", null)
|
||||
return
|
||||
}
|
||||
|
||||
val itemsData = call.argument<List<Map<String, Any?>>>("items")
|
||||
if (itemsData == null) {
|
||||
result.error("INVALID_ARGS", "Missing 'items' argument", null)
|
||||
return
|
||||
}
|
||||
|
||||
val items = itemsData.mapNotNull { parseWatchNextItem(it) }
|
||||
executeOnIo(result) { provider.syncWatchNextPrograms(items) }
|
||||
}
|
||||
|
||||
private fun handleClear(result: MethodChannel.Result) {
|
||||
val provider = watchNextProvider
|
||||
if (provider == null) {
|
||||
result.error("NOT_INITIALIZED", "WatchNextProvider not initialized", null)
|
||||
return
|
||||
}
|
||||
executeOnIo(result) { provider.clearAll() }
|
||||
}
|
||||
|
||||
private fun handleRemove(call: MethodCall, result: MethodChannel.Result) {
|
||||
val provider = watchNextProvider
|
||||
if (provider == null) {
|
||||
result.error("NOT_INITIALIZED", "WatchNextProvider not initialized", null)
|
||||
return
|
||||
}
|
||||
|
||||
val contentId = call.argument<String>("contentId")
|
||||
if (contentId == null) {
|
||||
result.error("INVALID_ARGS", "Missing 'contentId' argument", null)
|
||||
return
|
||||
}
|
||||
executeOnIo(result) { provider.removeItem(contentId) }
|
||||
}
|
||||
|
||||
private fun executeOnIo(result: MethodChannel.Result, block: () -> Any?) {
|
||||
try {
|
||||
ioExecutor.execute {
|
||||
try {
|
||||
val value = block()
|
||||
mainHandler.post { result.success(value) }
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "IO operation failed: ${e.message}", e)
|
||||
mainHandler.post { result.error("IO_ERROR", e.message, null) }
|
||||
}
|
||||
}
|
||||
} catch (e: java.util.concurrent.RejectedExecutionException) {
|
||||
result.error("SHUTDOWN", "Plugin is shutting down", null)
|
||||
}
|
||||
}
|
||||
|
||||
private fun handleGetInitialDeepLink(result: MethodChannel.Result) {
|
||||
val contentId = pendingDeepLink
|
||||
pendingDeepLink = null
|
||||
result.success(contentId)
|
||||
}
|
||||
|
||||
private fun parseWatchNextItem(data: Map<String, Any?>): WatchNextProvider.WatchNextItem? {
|
||||
val contentId = data["contentId"] as? String ?: return null
|
||||
val title = data["title"] as? String ?: return null
|
||||
|
||||
val typeString = data["type"] as? String ?: "movie"
|
||||
val type = when (typeString.lowercase()) {
|
||||
"episode" -> TvContractCompat.WatchNextPrograms.TYPE_TV_EPISODE
|
||||
"movie" -> TvContractCompat.WatchNextPrograms.TYPE_MOVIE
|
||||
else -> TvContractCompat.WatchNextPrograms.TYPE_MOVIE
|
||||
}
|
||||
|
||||
return WatchNextProvider.WatchNextItem(
|
||||
contentId = contentId,
|
||||
title = title,
|
||||
episodeTitle = data["episodeTitle"] as? String,
|
||||
description = data["description"] as? String,
|
||||
posterUri = data["posterUri"] as? String,
|
||||
type = type,
|
||||
duration = (data["duration"] as? Number)?.toLong() ?: 0L,
|
||||
lastPlaybackPosition = (data["lastPlaybackPosition"] as? Number)?.toLong() ?: 0L,
|
||||
lastEngagementTime = (data["lastEngagementTime"] as? Number)?.toLong() ?: System.currentTimeMillis(),
|
||||
seriesTitle = data["seriesTitle"] as? String,
|
||||
seasonNumber = (data["seasonNumber"] as? Number)?.toInt(),
|
||||
episodeNumber = (data["episodeNumber"] as? Number)?.toInt()
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a deep link content ID for delivery to Flutter.
|
||||
* Called from MainActivity on intent receipt.
|
||||
*/
|
||||
fun notifyDeepLink(contentId: String) {
|
||||
pendingDeepLink = contentId
|
||||
try {
|
||||
methodChannel.invokeMethod("onWatchNextTap", mapOf("contentId" to contentId))
|
||||
} catch (e: Exception) {
|
||||
Log.d(TAG, "Method channel not ready, stored as pending deep link")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,154 +14,151 @@ import androidx.tvprovider.media.tv.WatchNextProgram
|
||||
*/
|
||||
class WatchNextProvider(private val context: Context) {
|
||||
|
||||
companion object {
|
||||
private const val TAG = "WatchNextProvider"
|
||||
}
|
||||
companion object {
|
||||
private const val TAG = "WatchNextProvider"
|
||||
}
|
||||
|
||||
data class WatchNextItem(
|
||||
val contentId: String,
|
||||
val title: String,
|
||||
val episodeTitle: String?,
|
||||
val description: String?,
|
||||
val posterUri: String?,
|
||||
val type: Int,
|
||||
val duration: Long,
|
||||
val lastPlaybackPosition: Long,
|
||||
val lastEngagementTime: Long,
|
||||
val seriesTitle: String?,
|
||||
val seasonNumber: Int?,
|
||||
val episodeNumber: Int?
|
||||
data class WatchNextItem(
|
||||
val contentId: String,
|
||||
val title: String,
|
||||
val episodeTitle: String?,
|
||||
val description: String?,
|
||||
val posterUri: String?,
|
||||
val type: Int,
|
||||
val duration: Long,
|
||||
val lastPlaybackPosition: Long,
|
||||
val lastEngagementTime: Long,
|
||||
val seriesTitle: String?,
|
||||
val seasonNumber: Int?,
|
||||
val episodeNumber: Int?
|
||||
)
|
||||
|
||||
/**
|
||||
* Sync items to Watch Next row.
|
||||
* Uses applyBatch to delete + insert in a single transaction so the
|
||||
* launcher receives one content-change notification with the full set.
|
||||
*/
|
||||
fun syncWatchNextPrograms(items: List<WatchNextItem>): Boolean = try {
|
||||
val ops = ArrayList<ContentProviderOperation>()
|
||||
|
||||
ops.add(
|
||||
ContentProviderOperation.newDelete(
|
||||
TvContractCompat.WatchNextPrograms.CONTENT_URI
|
||||
).build()
|
||||
)
|
||||
|
||||
/**
|
||||
* Sync items to Watch Next row.
|
||||
* Uses applyBatch to delete + insert in a single transaction so the
|
||||
* launcher receives one content-change notification with the full set.
|
||||
*/
|
||||
fun syncWatchNextPrograms(items: List<WatchNextItem>): Boolean {
|
||||
return try {
|
||||
val ops = ArrayList<ContentProviderOperation>()
|
||||
for (item in items) {
|
||||
val program = buildProgram(item)
|
||||
ops.add(
|
||||
ContentProviderOperation.newInsert(
|
||||
TvContractCompat.WatchNextPrograms.CONTENT_URI
|
||||
).withValues(program.toContentValues()).build()
|
||||
)
|
||||
}
|
||||
|
||||
ops.add(
|
||||
ContentProviderOperation.newDelete(
|
||||
TvContractCompat.WatchNextPrograms.CONTENT_URI
|
||||
).build()
|
||||
context.contentResolver.applyBatch(TvContractCompat.AUTHORITY, ops)
|
||||
Log.d(TAG, "Synced ${items.size} Watch Next entries")
|
||||
true
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "Failed to sync Watch Next programs", e)
|
||||
false
|
||||
}
|
||||
|
||||
fun clearAll(): Boolean = try {
|
||||
context.contentResolver.delete(
|
||||
TvContractCompat.WatchNextPrograms.CONTENT_URI,
|
||||
null,
|
||||
null
|
||||
)
|
||||
true
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "Failed to clear Watch Next entries", e)
|
||||
false
|
||||
}
|
||||
|
||||
fun removeItem(contentId: String): Boolean {
|
||||
return try {
|
||||
val cursor = context.contentResolver.query(
|
||||
TvContractCompat.WatchNextPrograms.CONTENT_URI,
|
||||
arrayOf(
|
||||
TvContractCompat.WatchNextPrograms._ID,
|
||||
TvContractCompat.WatchNextPrograms.COLUMN_INTERNAL_PROVIDER_ID
|
||||
),
|
||||
null,
|
||||
null,
|
||||
null
|
||||
)
|
||||
|
||||
cursor?.use {
|
||||
val idIndex = it.getColumnIndex(TvContractCompat.WatchNextPrograms._ID)
|
||||
val providerIdIndex = it.getColumnIndex(TvContractCompat.WatchNextPrograms.COLUMN_INTERNAL_PROVIDER_ID)
|
||||
|
||||
if (idIndex < 0 || providerIdIndex < 0) return false
|
||||
|
||||
while (it.moveToNext()) {
|
||||
if (it.getString(providerIdIndex) == contentId) {
|
||||
val id = it.getLong(idIndex)
|
||||
val deleteUri = ContentUris.withAppendedId(
|
||||
TvContractCompat.WatchNextPrograms.CONTENT_URI,
|
||||
id
|
||||
)
|
||||
|
||||
for (item in items) {
|
||||
val program = buildProgram(item)
|
||||
ops.add(
|
||||
ContentProviderOperation.newInsert(
|
||||
TvContractCompat.WatchNextPrograms.CONTENT_URI
|
||||
).withValues(program.toContentValues()).build()
|
||||
)
|
||||
}
|
||||
|
||||
context.contentResolver.applyBatch(TvContractCompat.AUTHORITY, ops)
|
||||
Log.d(TAG, "Synced ${items.size} Watch Next entries")
|
||||
true
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "Failed to sync Watch Next programs", e)
|
||||
false
|
||||
context.contentResolver.delete(deleteUri, null, null)
|
||||
return true
|
||||
}
|
||||
}
|
||||
}
|
||||
false
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "Failed to remove Watch Next item: $contentId", e)
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
private fun buildProgram(item: WatchNextItem): WatchNextProgram {
|
||||
val watchNextType = if (item.lastPlaybackPosition > 0) {
|
||||
TvContractCompat.WatchNextPrograms.WATCH_NEXT_TYPE_CONTINUE
|
||||
} else {
|
||||
TvContractCompat.WatchNextPrograms.WATCH_NEXT_TYPE_NEXT
|
||||
}
|
||||
|
||||
fun clearAll(): Boolean {
|
||||
return try {
|
||||
context.contentResolver.delete(
|
||||
TvContractCompat.WatchNextPrograms.CONTENT_URI,
|
||||
null,
|
||||
null
|
||||
)
|
||||
true
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "Failed to clear Watch Next entries", e)
|
||||
false
|
||||
}
|
||||
val builder = WatchNextProgram.Builder()
|
||||
.setType(item.type)
|
||||
.setWatchNextType(watchNextType)
|
||||
.setTitle(item.title)
|
||||
.setInternalProviderId(item.contentId)
|
||||
.setLastEngagementTimeUtcMillis(item.lastEngagementTime)
|
||||
|
||||
item.description?.let { builder.setDescription(it) }
|
||||
|
||||
item.posterUri?.let { uri ->
|
||||
try {
|
||||
builder.setPosterArtUri(Uri.parse(uri))
|
||||
builder.setPosterArtAspectRatio(TvContractCompat.PreviewPrograms.ASPECT_RATIO_16_9)
|
||||
} catch (e: Exception) {
|
||||
Log.w(TAG, "Failed to parse poster URI: $uri", e)
|
||||
}
|
||||
}
|
||||
|
||||
fun removeItem(contentId: String): Boolean {
|
||||
return try {
|
||||
val cursor = context.contentResolver.query(
|
||||
TvContractCompat.WatchNextPrograms.CONTENT_URI,
|
||||
arrayOf(
|
||||
TvContractCompat.WatchNextPrograms._ID,
|
||||
TvContractCompat.WatchNextPrograms.COLUMN_INTERNAL_PROVIDER_ID
|
||||
),
|
||||
null,
|
||||
null,
|
||||
null
|
||||
)
|
||||
|
||||
cursor?.use {
|
||||
val idIndex = it.getColumnIndex(TvContractCompat.WatchNextPrograms._ID)
|
||||
val providerIdIndex = it.getColumnIndex(TvContractCompat.WatchNextPrograms.COLUMN_INTERNAL_PROVIDER_ID)
|
||||
|
||||
if (idIndex < 0 || providerIdIndex < 0) return false
|
||||
|
||||
while (it.moveToNext()) {
|
||||
if (it.getString(providerIdIndex) == contentId) {
|
||||
val id = it.getLong(idIndex)
|
||||
val deleteUri = ContentUris.withAppendedId(
|
||||
TvContractCompat.WatchNextPrograms.CONTENT_URI,
|
||||
id
|
||||
)
|
||||
context.contentResolver.delete(deleteUri, null, null)
|
||||
return true
|
||||
}
|
||||
}
|
||||
}
|
||||
false
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "Failed to remove Watch Next item: $contentId", e)
|
||||
false
|
||||
}
|
||||
if (item.duration > 0) {
|
||||
builder.setDurationMillis(item.duration.toInt())
|
||||
if (item.lastPlaybackPosition > 0) {
|
||||
builder.setLastPlaybackPositionMillis(item.lastPlaybackPosition.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
private fun buildProgram(item: WatchNextItem): WatchNextProgram {
|
||||
val watchNextType = if (item.lastPlaybackPosition > 0)
|
||||
TvContractCompat.WatchNextPrograms.WATCH_NEXT_TYPE_CONTINUE
|
||||
else
|
||||
TvContractCompat.WatchNextPrograms.WATCH_NEXT_TYPE_NEXT
|
||||
|
||||
val builder = WatchNextProgram.Builder()
|
||||
.setType(item.type)
|
||||
.setWatchNextType(watchNextType)
|
||||
.setTitle(item.title)
|
||||
.setInternalProviderId(item.contentId)
|
||||
.setLastEngagementTimeUtcMillis(item.lastEngagementTime)
|
||||
|
||||
item.description?.let { builder.setDescription(it) }
|
||||
|
||||
item.posterUri?.let { uri ->
|
||||
try {
|
||||
builder.setPosterArtUri(Uri.parse(uri))
|
||||
builder.setPosterArtAspectRatio(TvContractCompat.PreviewPrograms.ASPECT_RATIO_16_9)
|
||||
} catch (e: Exception) {
|
||||
Log.w(TAG, "Failed to parse poster URI: $uri", e)
|
||||
}
|
||||
}
|
||||
|
||||
if (item.duration > 0) {
|
||||
builder.setDurationMillis(item.duration.toInt())
|
||||
if (item.lastPlaybackPosition > 0) {
|
||||
builder.setLastPlaybackPositionMillis(item.lastPlaybackPosition.toInt())
|
||||
}
|
||||
}
|
||||
|
||||
if (item.type == TvContractCompat.WatchNextPrograms.TYPE_TV_EPISODE) {
|
||||
item.episodeTitle?.let { builder.setEpisodeTitle(it) }
|
||||
item.seasonNumber?.let { builder.setSeasonNumber(it) }
|
||||
item.episodeNumber?.let { builder.setEpisodeNumber(it) }
|
||||
}
|
||||
|
||||
val intentUri = Uri.Builder()
|
||||
.scheme("plezy")
|
||||
.authority("play")
|
||||
.appendQueryParameter("content_id", item.contentId)
|
||||
.build()
|
||||
builder.setIntentUri(intentUri)
|
||||
|
||||
return builder.build()
|
||||
if (item.type == TvContractCompat.WatchNextPrograms.TYPE_TV_EPISODE) {
|
||||
item.episodeTitle?.let { builder.setEpisodeTitle(it) }
|
||||
item.seasonNumber?.let { builder.setSeasonNumber(it) }
|
||||
item.episodeNumber?.let { builder.setEpisodeNumber(it) }
|
||||
}
|
||||
|
||||
val intentUri = Uri.Builder()
|
||||
.scheme("plezy")
|
||||
.authority("play")
|
||||
.appendQueryParameter("content_id", item.contentId)
|
||||
.build()
|
||||
builder.setIntentUri(intentUri)
|
||||
|
||||
return builder.build()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ platform :android do
|
||||
git_commit = `git rev-parse --short HEAD`.strip
|
||||
|
||||
# Build the Flutter app
|
||||
sh("cd #{ENV['PWD']}/.. && flutter build appbundle --dart-define=ENABLE_IN_APP_REVIEW=true --dart-define=ENABLE_SENTRY=true --dart-define=GIT_COMMIT=#{git_commit} --dart-define=SENTRY_ENVIRONMENT=play-store --obfuscate --split-debug-info=debug-info/android-aab")
|
||||
sh("cd #{ENV['PWD']}/.. && flutter build appbundle --dart-define=ENABLE_SENTRY=true --dart-define=GIT_COMMIT=#{git_commit} --dart-define=SENTRY_ENVIRONMENT=play-store --obfuscate --split-debug-info=debug-info/android-aab")
|
||||
sh("cd #{ENV['PWD']}/.. && ./scripts/upload-symbols.sh android-aab")
|
||||
|
||||
upload_to_play_store(
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
<svg viewBox="0 0 72 72" xmlns="http://www.w3.org/2000/svg" fill="currentColor">
|
||||
<path d="M24.2116 49.1581C22.6599 46.0424 32.8378 27.5879 35.9999 27.5879C39.1666 27.5895 49.3228 46.0764 47.7882 49.1581C46.2536 52.2398 25.7632 52.2738 24.2116 49.1581Z"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.481861 64.9951C-4.19479 55.6047 26.4765 0 36 0C45.5328 0 76.153 55.713 71.5274 64.9951C66.9018 74.2773 5.15852 74.3856 0.481861 64.9951ZM12.7358 56.847C15.8005 62.9995 56.2536 62.9314 59.2843 56.847C62.3149 50.761 42.2515 14.2605 36.0093 14.2605C29.767 14.2605 9.67118 50.6944 12.7358 56.847Z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 614 B |
@@ -0,0 +1,3 @@
|
||||
<svg viewBox="636.71 89.58 269.72 269.72" xmlns="http://www.w3.org/2000/svg" fill="currentColor">
|
||||
<path d="M774.47 359.3H677.74L768.67 224.5L677.74 89.58H774.47L865.4 224.5L774.47 359.3Z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 199 B |
+4
-17
@@ -11,9 +11,7 @@ PODS:
|
||||
- file_picker (0.0.1):
|
||||
- Flutter
|
||||
- Flutter (1.0.0)
|
||||
- in_app_review (2.0.0):
|
||||
- Flutter
|
||||
- os_media_controls (0.0.1):
|
||||
- os_media_controls (0.2.1):
|
||||
- Flutter
|
||||
- package_info_plus (0.4.5):
|
||||
- Flutter
|
||||
@@ -25,9 +23,6 @@ PODS:
|
||||
- shared_preferences_foundation (0.0.1):
|
||||
- Flutter
|
||||
- FlutterMacOS
|
||||
- sqflite_darwin (0.0.4):
|
||||
- Flutter
|
||||
- FlutterMacOS
|
||||
- sqlite3 (3.52.0):
|
||||
- sqlite3/common (= 3.52.0)
|
||||
- sqlite3/common (3.52.0)
|
||||
@@ -67,12 +62,10 @@ DEPENDENCIES:
|
||||
- device_info_plus (from `.symlinks/plugins/device_info_plus/ios`)
|
||||
- file_picker (from `.symlinks/plugins/file_picker/ios`)
|
||||
- Flutter (from `Flutter`)
|
||||
- in_app_review (from `.symlinks/plugins/in_app_review/ios`)
|
||||
- os_media_controls (from `.symlinks/plugins/os_media_controls/ios`)
|
||||
- package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
|
||||
- sentry_flutter (from `.symlinks/plugins/sentry_flutter/ios`)
|
||||
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
|
||||
- sqflite_darwin (from `.symlinks/plugins/sqflite_darwin/darwin`)
|
||||
- sqlite3_flutter_libs (from `.symlinks/plugins/sqlite3_flutter_libs/darwin`)
|
||||
- universal_gamepad (from `.symlinks/plugins/universal_gamepad/ios`)
|
||||
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
|
||||
@@ -96,8 +89,6 @@ EXTERNAL SOURCES:
|
||||
:path: ".symlinks/plugins/file_picker/ios"
|
||||
Flutter:
|
||||
:path: Flutter
|
||||
in_app_review:
|
||||
:path: ".symlinks/plugins/in_app_review/ios"
|
||||
os_media_controls:
|
||||
:path: ".symlinks/plugins/os_media_controls/ios"
|
||||
package_info_plus:
|
||||
@@ -106,8 +97,6 @@ EXTERNAL SOURCES:
|
||||
:path: ".symlinks/plugins/sentry_flutter/ios"
|
||||
shared_preferences_foundation:
|
||||
:path: ".symlinks/plugins/shared_preferences_foundation/darwin"
|
||||
sqflite_darwin:
|
||||
:path: ".symlinks/plugins/sqflite_darwin/darwin"
|
||||
sqlite3_flutter_libs:
|
||||
:path: ".symlinks/plugins/sqlite3_flutter_libs/darwin"
|
||||
universal_gamepad:
|
||||
@@ -124,18 +113,16 @@ SPEC CHECKSUMS:
|
||||
device_info_plus: 21fcca2080fbcd348be798aa36c3e5ed849eefbe
|
||||
file_picker: 8fc6fe5e42585a217d44d22f79ec046cb8d81140
|
||||
Flutter: cabc95a1d2626b1b06e7179b784ebcf0c0cde467
|
||||
in_app_review: 7dd1ea365263f834b8464673f9df72c80c17c937
|
||||
os_media_controls: 86dceab6245a5325af90fc0fdebe243c42d789b4
|
||||
os_media_controls: 3b06fe2dc0977dfa94f9c1dd73df7a55022d202f
|
||||
package_info_plus: af8e2ca6888548050f16fa2f1938db7b5a5df499
|
||||
Sentry: d587a8fe91ca13503ecd69a1905f3e8a0fcf61be
|
||||
sentry_flutter: 31101687061fb85211ebab09ce6eb8db4e9ba74f
|
||||
shared_preferences_foundation: 7036424c3d8ec98dfe75ff1667cb0cd531ec82bb
|
||||
sqflite_darwin: 20b2a3a3b70e43edae938624ce550a3cbf66a3d0
|
||||
sqlite3: a51c07cf16e023d6c48abd5e5791a61a47354921
|
||||
sqlite3_flutter_libs: b3e120efe9a82017e5552a620f696589ed4f62ab
|
||||
universal_gamepad: e10172778a8a399cce234494968f38724974919e
|
||||
universal_gamepad: 838bbb70d37d8c7c719038aa397214f2c4c4f866
|
||||
url_launcher_ios: 7a95fa5b60cc718a708b8f2966718e93db0cef1b
|
||||
wakelock_plus: e29112ab3ef0b318e58cfa5c32326458be66b556
|
||||
wakelock_plus: 5aaa6a7ccaf4749a96a7d8ff0721d68061ad62cf
|
||||
|
||||
PODFILE CHECKSUM: 16bb7f67e16d8aaa2bfb97666803fbfb291b6559
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
|
||||
B1D51A6A2F00110000000001 /* MpvPlayerCoreBase.swift in Sources */ = {isa = PBXBuildFile; fileRef = B1D51A6A2F00110000000002 /* MpvPlayerCoreBase.swift */; };
|
||||
B1D51A6A2F00110000000005 /* MpvPlayerPluginShared.swift in Sources */ = {isa = PBXBuildFile; fileRef = B1D51A6A2F00110000000006 /* MpvPlayerPluginShared.swift */; };
|
||||
B1D51A6A2F00110000000008 /* ExternalDisplayManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = B1D51A6A2F00110000000007 /* ExternalDisplayManager.swift */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXContainerItemProxy section */
|
||||
@@ -73,6 +74,7 @@
|
||||
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
B1D51A6A2F00110000000002 /* MpvPlayerCoreBase.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = MpvPlayerCoreBase.swift; path = ../shared/apple/MpvPlayer/MpvPlayerCoreBase.swift; sourceTree = SOURCE_ROOT; };
|
||||
B1D51A6A2F00110000000006 /* MpvPlayerPluginShared.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = MpvPlayerPluginShared.swift; path = ../shared/apple/MpvPlayer/MpvPlayerPluginShared.swift; sourceTree = SOURCE_ROOT; };
|
||||
B1D51A6A2F00110000000007 /* ExternalDisplayManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExternalDisplayManager.swift; sourceTree = "<group>"; };
|
||||
BB346A1D0705AB171F80B11B /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
DE48FF2E074644167608B23D /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
|
||||
F3553CDE70191F0FC81A782E /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
|
||||
@@ -121,6 +123,7 @@
|
||||
children = (
|
||||
B1D51A6A2F00110000000002 /* MpvPlayerCoreBase.swift */,
|
||||
B1D51A6A2F00110000000006 /* MpvPlayerPluginShared.swift */,
|
||||
B1D51A6A2F00110000000007 /* ExternalDisplayManager.swift */,
|
||||
6A8A46222EDB370C0057B88C /* MpvPlayerCore.swift */,
|
||||
6A8A46232EDB370C0057B88C /* MpvPlayerPlugin.swift */,
|
||||
92F969587D0E464D999910F4 /* MpvPipController.swift */,
|
||||
@@ -406,6 +409,7 @@
|
||||
files = (
|
||||
B1D51A6A2F00110000000001 /* MpvPlayerCoreBase.swift in Sources */,
|
||||
B1D51A6A2F00110000000005 /* MpvPlayerPluginShared.swift in Sources */,
|
||||
B1D51A6A2F00110000000008 /* ExternalDisplayManager.swift in Sources */,
|
||||
6A8A46252EDB370C0057B88C /* MpvPlayerPlugin.swift in Sources */,
|
||||
6A8A46262EDB370C0057B88C /* MpvPlayerCore.swift in Sources */,
|
||||
92F969587D0E464D999910F5 /* MpvPipController.swift in Sources */,
|
||||
@@ -777,7 +781,7 @@
|
||||
repositoryURL = "https://github.com/edde746/MPVKit";
|
||||
requirement = {
|
||||
kind = revision;
|
||||
revision = 29803ccbfa631997d496f34c2c1ed191cc8fd2c3;
|
||||
revision = 86dcf97f04e572abb5641e74780251a1d5634ff3;
|
||||
};
|
||||
};
|
||||
/* End XCRemoteSwiftPackageReference section */
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/edde746/MPVKit",
|
||||
"state" : {
|
||||
"revision" : "29803ccbfa631997d496f34c2c1ed191cc8fd2c3"
|
||||
"revision" : "86dcf97f04e572abb5641e74780251a1d5634ff3"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/edde746/MPVKit",
|
||||
"state" : {
|
||||
"revision" : "29803ccbfa631997d496f34c2c1ed191cc8fd2c3"
|
||||
"revision" : "86dcf97f04e572abb5641e74780251a1d5634ff3"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
+24
-6
@@ -33,12 +33,8 @@
|
||||
<key>NSAllowsArbitraryLoads</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<key>NSBonjourServices</key>
|
||||
<array>
|
||||
<string>_plexmediasvr._tcp</string>
|
||||
</array>
|
||||
<key>NSLocalNetworkUsageDescription</key>
|
||||
<string>This app needs to connect to your Plex Media Server on your local network.</string>
|
||||
<string>This app needs to connect to your media servers on your local network.</string>
|
||||
<key>NSCameraUsageDescription</key>
|
||||
<string>Camera is used to scan QR codes for Companion Remote pairing.</string>
|
||||
<key>UIApplicationSupportsIndirectInputEvents</key>
|
||||
@@ -70,7 +66,7 @@
|
||||
<key>UIApplicationSceneManifest</key>
|
||||
<dict>
|
||||
<key>UIApplicationSupportsMultipleScenes</key>
|
||||
<false/>
|
||||
<true/>
|
||||
<key>UISceneConfigurations</key>
|
||||
<dict>
|
||||
<key>UIWindowSceneSessionRoleApplication</key>
|
||||
@@ -86,6 +82,28 @@
|
||||
<string>Main</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>UIWindowSceneSessionRoleExternalDisplay</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>UISceneClassName</key>
|
||||
<string>UIWindowScene</string>
|
||||
<key>UISceneDelegateClassName</key>
|
||||
<string>$(PRODUCT_MODULE_NAME).ExternalDisplaySceneDelegate</string>
|
||||
<key>UISceneConfigurationName</key>
|
||||
<string>external-display</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>UIWindowSceneSessionRoleExternalDisplayNonInteractive</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>UISceneClassName</key>
|
||||
<string>UIWindowScene</string>
|
||||
<key>UISceneDelegateClassName</key>
|
||||
<string>$(PRODUCT_MODULE_NAME).ExternalDisplaySceneDelegate</string>
|
||||
<key>UISceneConfigurationName</key>
|
||||
<string>external-display</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
|
||||
@@ -0,0 +1,172 @@
|
||||
import UIKit
|
||||
|
||||
final class ExternalDisplayManager {
|
||||
static let shared = ExternalDisplayManager()
|
||||
|
||||
private weak var activeCore: MpvPlayerCore?
|
||||
private var externalScene: UIWindowScene?
|
||||
private var externalWindow: UIWindow?
|
||||
private var externalRootViewController: UIViewController?
|
||||
|
||||
private init() {}
|
||||
|
||||
static func isExternalDisplayRole(_ role: UISceneSession.Role) -> Bool {
|
||||
role.rawValue == "UIWindowSceneSessionRoleExternalDisplay"
|
||||
|| role.rawValue == "UIWindowSceneSessionRoleExternalDisplayNonInteractive"
|
||||
}
|
||||
|
||||
static var hasActiveApplicationScene: Bool {
|
||||
applicationWindowScenes.contains { $0.activationState == .foregroundActive }
|
||||
}
|
||||
|
||||
static func mainApplicationWindow() -> UIWindow? {
|
||||
let scenes = applicationWindowScenes.sorted {
|
||||
scenePriority($0.activationState) < scenePriority($1.activationState)
|
||||
}
|
||||
|
||||
for scene in scenes {
|
||||
if let window = scene.windows.first(where: { $0.isKeyWindow }) {
|
||||
return window
|
||||
}
|
||||
}
|
||||
|
||||
for scene in scenes {
|
||||
if let window = scene.windows.first(where: { !$0.isHidden }) {
|
||||
return window
|
||||
}
|
||||
}
|
||||
|
||||
return scenes.first?.windows.first
|
||||
}
|
||||
|
||||
private static var applicationWindowScenes: [UIWindowScene] {
|
||||
UIApplication.shared.connectedScenes.compactMap { scene in
|
||||
guard let windowScene = scene as? UIWindowScene,
|
||||
!isExternalDisplayRole(windowScene.session.role)
|
||||
else { return nil }
|
||||
return windowScene
|
||||
}
|
||||
}
|
||||
|
||||
private static func scenePriority(_ state: UIScene.ActivationState) -> Int {
|
||||
switch state {
|
||||
case .foregroundActive:
|
||||
return 0
|
||||
case .foregroundInactive:
|
||||
return 1
|
||||
case .background:
|
||||
return 2
|
||||
case .unattached:
|
||||
return 3
|
||||
@unknown default:
|
||||
return 4
|
||||
}
|
||||
}
|
||||
|
||||
var videoSuperview: UIView? {
|
||||
externalRootViewController?.view
|
||||
}
|
||||
|
||||
func attach(core: MpvPlayerCore) {
|
||||
activeCore = core
|
||||
discoverExistingExternalScene()
|
||||
activeCore?.externalDisplayDidChange()
|
||||
}
|
||||
|
||||
func detach(core: MpvPlayerCore) {
|
||||
if activeCore === core {
|
||||
activeCore = nil
|
||||
}
|
||||
}
|
||||
|
||||
@discardableResult
|
||||
func connect(scene: UIWindowScene) -> UIWindow? {
|
||||
guard Self.isExternalDisplayRole(scene.session.role) else { return nil }
|
||||
|
||||
externalScene = scene
|
||||
let window = ensureWindow(for: scene)
|
||||
activeCore?.externalDisplayDidChange()
|
||||
print("[ExternalDisplayManager] External display connected")
|
||||
return window
|
||||
}
|
||||
|
||||
func disconnect(scene: UIScene) {
|
||||
guard scene === externalScene else { return }
|
||||
|
||||
externalWindow?.isHidden = true
|
||||
externalWindow = nil
|
||||
externalRootViewController = nil
|
||||
externalScene = nil
|
||||
activeCore?.externalDisplayDidChange()
|
||||
print("[ExternalDisplayManager] External display disconnected")
|
||||
}
|
||||
|
||||
func update(scene: UIWindowScene) {
|
||||
guard scene === externalScene else { return }
|
||||
externalRootViewController?.view.frame = scene.coordinateSpace.bounds
|
||||
activeCore?.externalDisplayDidChange()
|
||||
}
|
||||
|
||||
private func discoverExistingExternalScene() {
|
||||
guard externalScene == nil else { return }
|
||||
|
||||
for scene in UIApplication.shared.connectedScenes {
|
||||
guard let windowScene = scene as? UIWindowScene,
|
||||
Self.isExternalDisplayRole(windowScene.session.role)
|
||||
else { continue }
|
||||
_ = connect(scene: windowScene)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
private func ensureWindow(for scene: UIWindowScene) -> UIWindow {
|
||||
if let existing = externalWindow, existing.windowScene === scene {
|
||||
return existing
|
||||
}
|
||||
|
||||
externalWindow?.isHidden = true
|
||||
|
||||
let rootViewController = UIViewController()
|
||||
rootViewController.view.frame = scene.coordinateSpace.bounds
|
||||
rootViewController.view.backgroundColor = .black
|
||||
|
||||
let window = UIWindow(windowScene: scene)
|
||||
window.rootViewController = rootViewController
|
||||
window.backgroundColor = .black
|
||||
window.isHidden = false
|
||||
|
||||
externalRootViewController = rootViewController
|
||||
externalWindow = window
|
||||
return window
|
||||
}
|
||||
}
|
||||
|
||||
class ExternalDisplaySceneDelegate: UIResponder, UIWindowSceneDelegate {
|
||||
var window: UIWindow?
|
||||
|
||||
func scene(
|
||||
_ scene: UIScene,
|
||||
willConnectTo session: UISceneSession,
|
||||
options connectionOptions: UIScene.ConnectionOptions
|
||||
) {
|
||||
guard let windowScene = scene as? UIWindowScene,
|
||||
ExternalDisplayManager.isExternalDisplayRole(session.role)
|
||||
else { return }
|
||||
|
||||
window = ExternalDisplayManager.shared.connect(scene: windowScene)
|
||||
}
|
||||
|
||||
func sceneDidDisconnect(_ scene: UIScene) {
|
||||
ExternalDisplayManager.shared.disconnect(scene: scene)
|
||||
window = nil
|
||||
}
|
||||
|
||||
func windowScene(
|
||||
_ windowScene: UIWindowScene,
|
||||
didUpdate previousCoordinateSpace: UICoordinateSpace,
|
||||
interfaceOrientation previousInterfaceOrientation: UIInterfaceOrientation,
|
||||
traitCollection previousTraitCollection: UITraitCollection
|
||||
) {
|
||||
ExternalDisplayManager.shared.update(scene: windowScene)
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,13 @@
|
||||
import AVFoundation
|
||||
import AVKit
|
||||
import UIKit
|
||||
|
||||
#if os(tvOS)
|
||||
// tvOS stub: AVPictureInPictureController has different constraints on tvOS
|
||||
// and is not supported by the Plezy flow. Provide a no-op shell so callers
|
||||
// in MpvPlayerPlugin compile unchanged; isSupported reports false so PiP is
|
||||
// never attempted at runtime.
|
||||
protocol MpvPipDelegate: AnyObject {
|
||||
// tvOS stub: AVPictureInPictureController has different constraints on tvOS
|
||||
// and is not supported by the Plezy flow. Provide a no-op shell so callers
|
||||
// in MpvPlayerPlugin compile unchanged; isSupported reports false so PiP is
|
||||
// never attempted at runtime.
|
||||
protocol MpvPipDelegate: AnyObject {
|
||||
func pipWillStart()
|
||||
func pipDidStart()
|
||||
func pipDidStop(restored: Bool)
|
||||
@@ -15,35 +16,29 @@ protocol MpvPipDelegate: AnyObject {
|
||||
func pipSkip(byInterval seconds: Double)
|
||||
var isPipPlaying: Bool { get }
|
||||
var pipDuration: Double { get }
|
||||
}
|
||||
}
|
||||
|
||||
class MpvPipController: NSObject {
|
||||
class MpvPipController: NSObject {
|
||||
static var isSupported: Bool { false }
|
||||
weak var delegate: MpvPipDelegate?
|
||||
var isPipActive: Bool { false }
|
||||
var autoStartEnabled: Bool { false }
|
||||
var layerPointer: UnsafeMutableRawPointer {
|
||||
// Return a dummy non-null pointer — layerPointer is handed to mpv for
|
||||
// rendering into PiP, which never activates on tvOS.
|
||||
UnsafeMutableRawPointer(bitPattern: 0x1)!
|
||||
}
|
||||
init(sampleBufferDisplayLayer: AVSampleBufferDisplayLayer) { super.init() }
|
||||
func setup(with layer: CALayer, containerView: UIView) {}
|
||||
func setAutoStart(_ enabled: Bool) {}
|
||||
func warmLayer(currentTime: Double, isPlaying: Bool) {}
|
||||
func pushBlankFrame(width: Int32 = 1920, height: Int32 = 1080) {}
|
||||
func startPip(waitForFrame: Bool = true, completion: @escaping (Bool) -> Void) {
|
||||
completion(false)
|
||||
completion(false)
|
||||
}
|
||||
func stopPip() {}
|
||||
func invalidatePlaybackState() {}
|
||||
func flushLayer() {}
|
||||
func syncTimebase(currentTime: Double, isPlaying: Bool) {}
|
||||
func teardown() {}
|
||||
}
|
||||
}
|
||||
#else
|
||||
|
||||
/// Delegate to notify the plugin of PiP lifecycle events
|
||||
protocol MpvPipDelegate: AnyObject {
|
||||
/// Delegate to notify the plugin of PiP lifecycle events
|
||||
protocol MpvPipDelegate: AnyObject {
|
||||
/// Called when PiP is about to start (system or app-initiated)
|
||||
func pipWillStart()
|
||||
func pipDidStart()
|
||||
@@ -58,355 +53,266 @@ protocol MpvPipDelegate: AnyObject {
|
||||
var isPipPlaying: Bool { get }
|
||||
/// Get total duration in seconds
|
||||
var pipDuration: Double { get }
|
||||
}
|
||||
}
|
||||
|
||||
/// Encapsulates all iOS Picture-in-Picture logic using AVSampleBufferDisplayLayer.
|
||||
/// Requires iOS 15+ for the ContentSource API; on older versions, `setup()` is a no-op.
|
||||
class MpvPipController: NSObject {
|
||||
/// Encapsulates all iOS Picture-in-Picture logic using AVSampleBufferDisplayLayer.
|
||||
/// Requires iOS 15+ for the ContentSource API; on older versions, `setup()` is a no-op.
|
||||
class MpvPipController: NSObject {
|
||||
|
||||
// MARK: - Properties
|
||||
|
||||
private var pipController: AVPictureInPictureController?
|
||||
private let sampleBufferLayer = AVSampleBufferDisplayLayer()
|
||||
private var containerView: UIView?
|
||||
private weak var sampleBufferLayer: AVSampleBufferDisplayLayer?
|
||||
weak var delegate: MpvPipDelegate?
|
||||
|
||||
/// Pointer to the sample buffer layer for passing to mpv as `wid`
|
||||
var layerPointer: UnsafeMutableRawPointer {
|
||||
Unmanaged.passUnretained(sampleBufferLayer).toOpaque()
|
||||
}
|
||||
|
||||
// MARK: - Initialization
|
||||
|
||||
override init() {
|
||||
super.init()
|
||||
setup()
|
||||
init(sampleBufferDisplayLayer: AVSampleBufferDisplayLayer) {
|
||||
self.sampleBufferLayer = sampleBufferDisplayLayer
|
||||
super.init()
|
||||
setup()
|
||||
}
|
||||
|
||||
private func setup() {
|
||||
guard #available(iOS 15.0, *) else { return }
|
||||
guard #available(iOS 15.0, *) else { return }
|
||||
|
||||
do {
|
||||
try AVAudioSession.sharedInstance().setCategory(.playback, mode: .moviePlayback)
|
||||
try AVAudioSession.sharedInstance().setActive(true)
|
||||
} catch {
|
||||
print("[MpvPipController] Failed to configure audio session: \(error)")
|
||||
}
|
||||
do {
|
||||
try AVAudioSession.sharedInstance().setCategory(.playback, mode: .moviePlayback)
|
||||
try AVAudioSession.sharedInstance().setActive(true)
|
||||
} catch {
|
||||
print("[MpvPipController] Failed to configure audio session: \(error)")
|
||||
}
|
||||
|
||||
// The sample buffer layer must be in a visible view hierarchy for
|
||||
// isPictureInPicturePossible to become true.
|
||||
if let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene,
|
||||
let window = windowScene.windows.first(where: { $0.isKeyWindow }) {
|
||||
let view = UIView(frame: window.bounds)
|
||||
view.clipsToBounds = true
|
||||
view.isUserInteractionEnabled = false
|
||||
sampleBufferLayer.frame = view.bounds
|
||||
view.layer.addSublayer(sampleBufferLayer)
|
||||
window.addSubview(view)
|
||||
containerView = view
|
||||
}
|
||||
|
||||
createPipController()
|
||||
createPipController()
|
||||
}
|
||||
|
||||
/// Helper that conforms to the iOS 15+ delegate protocols
|
||||
private var delegateHelper: AnyObject?
|
||||
|
||||
private func createPipController() {
|
||||
guard #available(iOS 15.0, *) else { return }
|
||||
let helper = PipDelegateHelper(controller: self)
|
||||
let contentSource = AVPictureInPictureController.ContentSource(
|
||||
sampleBufferDisplayLayer: sampleBufferLayer,
|
||||
playbackDelegate: helper
|
||||
)
|
||||
self.delegateHelper = helper
|
||||
pipController = AVPictureInPictureController(contentSource: contentSource)
|
||||
pipController?.delegate = helper
|
||||
if #available(iOS 14.2, *) {
|
||||
pipController?.canStartPictureInPictureAutomaticallyFromInline = false
|
||||
}
|
||||
guard #available(iOS 15.0, *), let sampleBufferLayer else { return }
|
||||
let helper = PipDelegateHelper(controller: self)
|
||||
let contentSource = AVPictureInPictureController.ContentSource(
|
||||
sampleBufferDisplayLayer: sampleBufferLayer,
|
||||
playbackDelegate: helper
|
||||
)
|
||||
self.delegateHelper = helper
|
||||
pipController = AVPictureInPictureController(contentSource: contentSource)
|
||||
pipController?.delegate = helper
|
||||
if #available(iOS 14.2, *) {
|
||||
pipController?.canStartPictureInPictureAutomaticallyFromInline = false
|
||||
}
|
||||
}
|
||||
|
||||
/// Enable/disable system auto-PiP (starts PiP automatically on background transition)
|
||||
func setAutoStart(_ enabled: Bool) {
|
||||
guard #available(iOS 14.2, *) else { return }
|
||||
pipController?.canStartPictureInPictureAutomaticallyFromInline = enabled
|
||||
}
|
||||
|
||||
/// Push a black frame to the sample buffer layer so PiP has content
|
||||
/// to display immediately (before vo_pip decodes the first real frame).
|
||||
func pushBlankFrame(width: Int32 = 1920, height: Int32 = 1080) {
|
||||
var pixelBuffer: CVPixelBuffer?
|
||||
let attrs: [String: Any] = [
|
||||
kCVPixelBufferIOSurfacePropertiesKey as String: [:],
|
||||
]
|
||||
let status = CVPixelBufferCreate(
|
||||
kCFAllocatorDefault, Int(width), Int(height),
|
||||
kCVPixelFormatType_32BGRA, attrs as CFDictionary, &pixelBuffer
|
||||
)
|
||||
guard status == kCVReturnSuccess, let pb = pixelBuffer else { return }
|
||||
|
||||
// Fill with black
|
||||
CVPixelBufferLockBaseAddress(pb, [])
|
||||
if let base = CVPixelBufferGetBaseAddress(pb) {
|
||||
memset(base, 0, CVPixelBufferGetDataSize(pb))
|
||||
}
|
||||
CVPixelBufferUnlockBaseAddress(pb, [])
|
||||
|
||||
// Use current timebase time for PTS (if available) so the frame isn't stale
|
||||
let pts: CMTime
|
||||
if let tb = sampleBufferLayer.controlTimebase {
|
||||
pts = CMTimebaseGetTime(tb)
|
||||
} else {
|
||||
pts = CMTime(value: 0, timescale: 30)
|
||||
}
|
||||
|
||||
var timing = CMSampleTimingInfo(
|
||||
duration: CMTime(value: 1, timescale: 30),
|
||||
presentationTimeStamp: pts,
|
||||
decodeTimeStamp: .invalid
|
||||
)
|
||||
|
||||
// Create format description and sample buffer
|
||||
var formatDesc: CMVideoFormatDescription?
|
||||
CMVideoFormatDescriptionCreateForImageBuffer(
|
||||
allocator: kCFAllocatorDefault,
|
||||
imageBuffer: pb,
|
||||
formatDescriptionOut: &formatDesc
|
||||
)
|
||||
guard let fmt = formatDesc else { return }
|
||||
|
||||
var sampleBuffer: CMSampleBuffer?
|
||||
CMSampleBufferCreateReadyWithImageBuffer(
|
||||
allocator: kCFAllocatorDefault,
|
||||
imageBuffer: pb,
|
||||
formatDescription: fmt,
|
||||
sampleTiming: &timing,
|
||||
sampleBufferOut: &sampleBuffer
|
||||
)
|
||||
guard let sb = sampleBuffer else { return }
|
||||
|
||||
// Set DisplayImmediately so it shows regardless of timebase timing
|
||||
if let attachments = CMSampleBufferGetSampleAttachmentsArray(sb, createIfNecessary: true) as? [NSMutableDictionary],
|
||||
let dict = attachments.first {
|
||||
dict[kCMSampleAttachmentKey_DisplayImmediately] = true
|
||||
}
|
||||
|
||||
sampleBufferLayer.enqueue(sb)
|
||||
guard #available(iOS 14.2, *) else { return }
|
||||
pipController?.canStartPictureInPictureAutomaticallyFromInline = enabled
|
||||
}
|
||||
|
||||
/// Sync the layer's controlTimebase with the actual playback position.
|
||||
/// This makes the PiP progress bar show the correct time.
|
||||
func syncTimebase(currentTime: Double, isPlaying: Bool) {
|
||||
guard let timebase = sampleBufferLayer.controlTimebase else { return }
|
||||
let cmTime = CMTime(seconds: currentTime, preferredTimescale: 1000)
|
||||
CMTimebaseSetTime(timebase, time: cmTime)
|
||||
CMTimebaseSetRate(timebase, rate: isPlaying ? 1.0 : 0.0)
|
||||
guard let timebase = sampleBufferLayer?.controlTimebase else { return }
|
||||
let cmTime = CMTime(seconds: currentTime, preferredTimescale: 1000)
|
||||
CMTimebaseSetTime(timebase, time: cmTime)
|
||||
CMTimebaseSetRate(timebase, rate: isPlaying ? 1.0 : 0.0)
|
||||
}
|
||||
|
||||
/// Ensure the layer has a timebase and blank frame so the system considers
|
||||
/// PiP possible (required for canStartPictureInPictureAutomaticallyFromInline).
|
||||
/// Ensure the layer has a timebase so the PiP progress UI can follow mpv.
|
||||
func warmLayer(currentTime: Double, isPlaying: Bool) {
|
||||
if sampleBufferLayer.controlTimebase == nil {
|
||||
var timebase: CMTimebase?
|
||||
CMTimebaseCreateWithSourceClock(
|
||||
allocator: kCFAllocatorDefault,
|
||||
sourceClock: CMClockGetHostTimeClock(),
|
||||
timebaseOut: &timebase
|
||||
)
|
||||
if let tb = timebase {
|
||||
sampleBufferLayer.controlTimebase = tb
|
||||
}
|
||||
guard let sampleBufferLayer else { return }
|
||||
if sampleBufferLayer.controlTimebase == nil {
|
||||
var timebase: CMTimebase?
|
||||
CMTimebaseCreateWithSourceClock(
|
||||
allocator: kCFAllocatorDefault,
|
||||
sourceClock: CMClockGetHostTimeClock(),
|
||||
timebaseOut: &timebase
|
||||
)
|
||||
if let tb = timebase {
|
||||
sampleBufferLayer.controlTimebase = tb
|
||||
}
|
||||
syncTimebase(currentTime: currentTime, isPlaying: isPlaying)
|
||||
pushBlankFrame()
|
||||
}
|
||||
syncTimebase(currentTime: currentTime, isPlaying: isPlaying)
|
||||
}
|
||||
|
||||
// MARK: - Public API
|
||||
|
||||
static var isSupported: Bool {
|
||||
guard #available(iOS 15.0, *) else { return false }
|
||||
return AVPictureInPictureController.isPictureInPictureSupported()
|
||||
guard #available(iOS 15.0, *) else { return false }
|
||||
return AVPictureInPictureController.isPictureInPictureSupported()
|
||||
}
|
||||
|
||||
/// Start PiP. When `waitForFrame` is false (auto-PiP), skips the frame
|
||||
/// readiness check since the scene is about to deactivate.
|
||||
func startPip(waitForFrame: Bool = true, completion: @escaping (Bool) -> Void) {
|
||||
guard let pipController = pipController else {
|
||||
completion(false)
|
||||
return
|
||||
guard let pipController = pipController else {
|
||||
completion(false)
|
||||
return
|
||||
}
|
||||
|
||||
var attempts = 0
|
||||
func tryStart() {
|
||||
let possible = pipController.isPictureInPicturePossible
|
||||
let hasTimebase = self.sampleBufferLayer?.controlTimebase != nil
|
||||
|
||||
let hasFrame: Bool
|
||||
if !waitForFrame {
|
||||
hasFrame = true // Skip frame check for auto-PiP
|
||||
} else if #available(iOS 17.4, *) {
|
||||
hasFrame = self.sampleBufferLayer?.isReadyForDisplay ?? false
|
||||
} else {
|
||||
hasFrame = true
|
||||
}
|
||||
|
||||
var attempts = 0
|
||||
func tryStart() {
|
||||
let possible = pipController.isPictureInPicturePossible
|
||||
let hasTimebase = sampleBufferLayer.controlTimebase != nil
|
||||
|
||||
let hasFrame: Bool
|
||||
if !waitForFrame {
|
||||
hasFrame = true // Skip frame check for auto-PiP
|
||||
} else if #available(iOS 17.4, *) {
|
||||
hasFrame = sampleBufferLayer.isReadyForDisplay
|
||||
} else {
|
||||
hasFrame = true
|
||||
}
|
||||
|
||||
if possible && hasTimebase && hasFrame {
|
||||
print("[MpvPipController] vo_pip ready after \(attempts) retries, starting PiP")
|
||||
pipController.startPictureInPicture()
|
||||
completion(true)
|
||||
} else if attempts < 40 {
|
||||
attempts += 1
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.05) { tryStart() }
|
||||
} else {
|
||||
print("[MpvPipController] PiP not ready after \(attempts) retries (possible=\(possible), timebase=\(hasTimebase))")
|
||||
completion(false)
|
||||
}
|
||||
if possible && hasTimebase && hasFrame {
|
||||
print("[MpvPipController] vo_avfoundation ready after \(attempts) retries, starting PiP")
|
||||
pipController.startPictureInPicture()
|
||||
completion(true)
|
||||
} else if attempts < 40 {
|
||||
attempts += 1
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.05) { tryStart() }
|
||||
} else {
|
||||
print(
|
||||
"[MpvPipController] PiP not ready after \(attempts) retries (possible=\(possible), timebase=\(hasTimebase))"
|
||||
)
|
||||
completion(false)
|
||||
}
|
||||
tryStart()
|
||||
}
|
||||
tryStart()
|
||||
}
|
||||
|
||||
func stopPip() {
|
||||
pipController?.stopPictureInPicture()
|
||||
pipController?.stopPictureInPicture()
|
||||
}
|
||||
|
||||
/// Invalidate the playback state so PiP updates its UI (play/pause button)
|
||||
func invalidatePlaybackState() {
|
||||
pipController?.invalidatePlaybackState()
|
||||
pipController?.invalidatePlaybackState()
|
||||
}
|
||||
|
||||
/// Fully tear down PiP — removes the container view from the window and
|
||||
/// destroys the AVPictureInPictureController so the system can no longer
|
||||
/// trigger auto-PiP after the player is disposed.
|
||||
/// Fully tear down PiP without touching the shared inline display layer.
|
||||
func teardown() {
|
||||
pipController?.stopPictureInPicture()
|
||||
if #available(iOS 14.2, *) {
|
||||
pipController?.canStartPictureInPictureAutomaticallyFromInline = false
|
||||
}
|
||||
pipController = nil
|
||||
delegateHelper = nil
|
||||
sampleBufferLayer.flushAndRemoveImage()
|
||||
sampleBufferLayer.controlTimebase = nil
|
||||
sampleBufferLayer.removeFromSuperlayer()
|
||||
containerView?.removeFromSuperview()
|
||||
containerView = nil
|
||||
pipController?.stopPictureInPicture()
|
||||
if #available(iOS 14.2, *) {
|
||||
pipController?.canStartPictureInPictureAutomaticallyFromInline = false
|
||||
}
|
||||
pipController = nil
|
||||
delegateHelper = nil
|
||||
}
|
||||
|
||||
/// Flush enqueued sample buffers from the layer to free video frame memory
|
||||
func flushLayer() {
|
||||
sampleBufferLayer.flushAndRemoveImage()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - PiP Delegate Helper (iOS 15+)
|
||||
// MARK: - PiP Delegate Helper (iOS 15+)
|
||||
|
||||
/// Separate class conforming to AVPictureInPictureControllerDelegate and
|
||||
/// AVPictureInPictureSampleBufferPlaybackDelegate since these require iOS 15+
|
||||
/// availability for the ContentSource-based delegate methods.
|
||||
@available(iOS 15.0, *)
|
||||
private class PipDelegateHelper: NSObject, AVPictureInPictureControllerDelegate,
|
||||
/// Separate class conforming to AVPictureInPictureControllerDelegate and
|
||||
/// AVPictureInPictureSampleBufferPlaybackDelegate since these require iOS 15+
|
||||
/// availability for the ContentSource-based delegate methods.
|
||||
@available(iOS 15.0, *)
|
||||
private class PipDelegateHelper: NSObject, AVPictureInPictureControllerDelegate,
|
||||
AVPictureInPictureSampleBufferPlaybackDelegate
|
||||
{
|
||||
{
|
||||
weak var controller: MpvPipController?
|
||||
private var isRestoring = false
|
||||
|
||||
init(controller: MpvPipController) {
|
||||
self.controller = controller
|
||||
super.init()
|
||||
self.controller = controller
|
||||
super.init()
|
||||
}
|
||||
|
||||
// MARK: - AVPictureInPictureControllerDelegate
|
||||
|
||||
func pictureInPictureControllerWillStartPictureInPicture(
|
||||
_ pictureInPictureController: AVPictureInPictureController
|
||||
_ pictureInPictureController: AVPictureInPictureController
|
||||
) {
|
||||
print("[MpvPipController] PiP will start")
|
||||
controller?.delegate?.pipWillStart()
|
||||
print("[MpvPipController] PiP will start")
|
||||
controller?.delegate?.pipWillStart()
|
||||
}
|
||||
|
||||
func pictureInPictureControllerDidStartPictureInPicture(
|
||||
_ pictureInPictureController: AVPictureInPictureController
|
||||
_ pictureInPictureController: AVPictureInPictureController
|
||||
) {
|
||||
print("[MpvPipController] PiP did start")
|
||||
controller?.delegate?.pipDidStart()
|
||||
print("[MpvPipController] PiP did start")
|
||||
controller?.delegate?.pipDidStart()
|
||||
}
|
||||
|
||||
func pictureInPictureControllerDidStopPictureInPicture(
|
||||
_ pictureInPictureController: AVPictureInPictureController
|
||||
_ pictureInPictureController: AVPictureInPictureController
|
||||
) {
|
||||
let restored = isRestoring
|
||||
isRestoring = false
|
||||
print("[MpvPipController] PiP did stop (restored: \(restored))")
|
||||
controller?.delegate?.pipDidStop(restored: restored)
|
||||
let restored = isRestoring
|
||||
isRestoring = false
|
||||
print("[MpvPipController] PiP did stop (restored: \(restored))")
|
||||
controller?.delegate?.pipDidStop(restored: restored)
|
||||
}
|
||||
|
||||
func pictureInPictureController(
|
||||
_ pictureInPictureController: AVPictureInPictureController,
|
||||
failedToStartPictureInPictureWithError error: Error
|
||||
_ pictureInPictureController: AVPictureInPictureController,
|
||||
failedToStartPictureInPictureWithError error: Error
|
||||
) {
|
||||
print("[MpvPipController] PiP failed to start: \(error)")
|
||||
controller?.delegate?.pipDidFailToStart(error: error)
|
||||
print("[MpvPipController] PiP failed to start: \(error)")
|
||||
controller?.delegate?.pipDidFailToStart(error: error)
|
||||
}
|
||||
|
||||
func pictureInPictureController(
|
||||
_ pictureInPictureController: AVPictureInPictureController,
|
||||
restoreUserInterfaceForPictureInPictureStopWithCompletionHandler completionHandler: @escaping (Bool) -> Void
|
||||
_ pictureInPictureController: AVPictureInPictureController,
|
||||
restoreUserInterfaceForPictureInPictureStopWithCompletionHandler completionHandler:
|
||||
@escaping (Bool) -> Void
|
||||
) {
|
||||
print("[MpvPipController] PiP restore user interface")
|
||||
isRestoring = true
|
||||
completionHandler(true)
|
||||
print("[MpvPipController] PiP restore user interface")
|
||||
isRestoring = true
|
||||
completionHandler(true)
|
||||
}
|
||||
|
||||
func pictureInPictureControllerWillStopPictureInPicture(
|
||||
_ pictureInPictureController: AVPictureInPictureController
|
||||
_ pictureInPictureController: AVPictureInPictureController
|
||||
) {
|
||||
print("[MpvPipController] PiP will stop")
|
||||
print("[MpvPipController] PiP will stop")
|
||||
}
|
||||
|
||||
// MARK: - AVPictureInPictureSampleBufferPlaybackDelegate
|
||||
|
||||
func pictureInPictureController(
|
||||
_ pictureInPictureController: AVPictureInPictureController,
|
||||
setPlaying playing: Bool
|
||||
_ pictureInPictureController: AVPictureInPictureController,
|
||||
setPlaying playing: Bool
|
||||
) {
|
||||
print("[MpvPipController] PiP setPlaying: \(playing)")
|
||||
controller?.delegate?.pipSetPlaying(playing)
|
||||
print("[MpvPipController] PiP setPlaying: \(playing)")
|
||||
controller?.delegate?.pipSetPlaying(playing)
|
||||
}
|
||||
|
||||
func pictureInPictureControllerTimeRangeForPlayback(
|
||||
_ pictureInPictureController: AVPictureInPictureController
|
||||
_ pictureInPictureController: AVPictureInPictureController
|
||||
) -> CMTimeRange {
|
||||
let duration = controller?.delegate?.pipDuration ?? 0
|
||||
if duration > 0 {
|
||||
return CMTimeRange(
|
||||
start: .zero,
|
||||
duration: CMTime(seconds: duration, preferredTimescale: 1000)
|
||||
)
|
||||
}
|
||||
return CMTimeRange(start: .zero, duration: CMTime(seconds: 1, preferredTimescale: 1))
|
||||
let duration = controller?.delegate?.pipDuration ?? 0
|
||||
if duration > 0 {
|
||||
return CMTimeRange(
|
||||
start: .zero,
|
||||
duration: CMTime(seconds: duration, preferredTimescale: 1000)
|
||||
)
|
||||
}
|
||||
return CMTimeRange(start: .zero, duration: CMTime(seconds: 1, preferredTimescale: 1))
|
||||
}
|
||||
|
||||
func pictureInPictureControllerIsPlaybackPaused(
|
||||
_ pictureInPictureController: AVPictureInPictureController
|
||||
_ pictureInPictureController: AVPictureInPictureController
|
||||
) -> Bool {
|
||||
return !(controller?.delegate?.isPipPlaying ?? false)
|
||||
return !(controller?.delegate?.isPipPlaying ?? false)
|
||||
}
|
||||
|
||||
func pictureInPictureController(
|
||||
_ pictureInPictureController: AVPictureInPictureController,
|
||||
didTransitionToRenderSize newRenderSize: CMVideoDimensions
|
||||
_ pictureInPictureController: AVPictureInPictureController,
|
||||
didTransitionToRenderSize newRenderSize: CMVideoDimensions
|
||||
) {}
|
||||
|
||||
func pictureInPictureController(
|
||||
_ pictureInPictureController: AVPictureInPictureController,
|
||||
skipByInterval skipInterval: CMTime,
|
||||
completion completionHandler: @escaping () -> Void
|
||||
_ pictureInPictureController: AVPictureInPictureController,
|
||||
skipByInterval skipInterval: CMTime,
|
||||
completion completionHandler: @escaping () -> Void
|
||||
) {
|
||||
let seconds = CMTimeGetSeconds(skipInterval)
|
||||
print("[MpvPipController] PiP skip by \(seconds)s")
|
||||
controller?.delegate?.pipSkip(byInterval: seconds)
|
||||
completionHandler()
|
||||
let seconds = CMTimeGetSeconds(skipInterval)
|
||||
print("[MpvPipController] PiP skip by \(seconds)s")
|
||||
controller?.delegate?.pipSkip(byInterval: seconds)
|
||||
completionHandler()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !os(tvOS)
|
||||
|
||||
@@ -1,198 +1,262 @@
|
||||
import Libmpv
|
||||
import AVFoundation
|
||||
import QuartzCore
|
||||
import UIKit
|
||||
|
||||
/// Core MPV player using Metal rendering for iOS.
|
||||
/// Core MPV player using AVFoundation sample-buffer rendering for iOS/tvOS.
|
||||
class MpvPlayerCore: MpvPlayerCoreBase {
|
||||
|
||||
private var containerView: UIView?
|
||||
private weak var window: UIWindow?
|
||||
private var containerView: UIView?
|
||||
private weak var window: UIWindow?
|
||||
private var mainBlankView: UIView?
|
||||
private var isVisible = false
|
||||
|
||||
var isPipStarting = false
|
||||
var isPipStarting = false
|
||||
|
||||
func initialize(in window: UIWindow) -> Bool {
|
||||
guard !isInitialized else {
|
||||
print("[MpvPlayerCore] Already initialized")
|
||||
return true
|
||||
func initialize(in window: UIWindow) -> Bool {
|
||||
guard !isInitialized else {
|
||||
print("[MpvPlayerCore] Already initialized")
|
||||
return true
|
||||
}
|
||||
|
||||
self.window = window
|
||||
|
||||
let container = UIView(frame: window.bounds)
|
||||
container.backgroundColor = .black
|
||||
container.isUserInteractionEnabled = false
|
||||
|
||||
let layer = MpvVideoLayer()
|
||||
layer.frame = container.bounds
|
||||
layer.contentsScale = window.screen.nativeScale
|
||||
layer.isOpaque = true
|
||||
layer.backgroundColor = UIColor.black.cgColor
|
||||
layer.videoGravity = .resizeAspect
|
||||
|
||||
container.layer.addSublayer(layer)
|
||||
containerView = container
|
||||
videoLayer = layer
|
||||
|
||||
window.insertSubview(container, at: 0)
|
||||
|
||||
guard setupMpv() else {
|
||||
print("[MpvPlayerCore] Failed to setup MPV")
|
||||
layer.removeFromSuperlayer()
|
||||
container.removeFromSuperview()
|
||||
videoLayer = nil
|
||||
containerView = nil
|
||||
return false
|
||||
}
|
||||
|
||||
setupNotifications()
|
||||
#if os(iOS)
|
||||
ExternalDisplayManager.shared.attach(core: self)
|
||||
#endif
|
||||
|
||||
isInitialized = true
|
||||
print("[MpvPlayerCore] Initialized successfully with MPV")
|
||||
return true
|
||||
}
|
||||
|
||||
var sampleBufferDisplayLayer: MpvVideoLayer? { videoLayer }
|
||||
|
||||
func setVisible(_ visible: Bool) {
|
||||
guard containerView != nil else { return }
|
||||
|
||||
isVisible = visible
|
||||
if visible { refreshExternalDisplayAttachment() }
|
||||
setContainerHidden(!visible)
|
||||
if !visible { mainBlankView?.isHidden = true }
|
||||
}
|
||||
|
||||
func updateFrame(_ frame: CGRect? = nil) {
|
||||
guard let videoLayer, let containerView else { return }
|
||||
|
||||
withoutLayerAnimations {
|
||||
if let frame {
|
||||
containerView.frame = frame
|
||||
videoLayer.frame = containerView.bounds
|
||||
} else if let superview = containerView.superview {
|
||||
containerView.frame = superview.bounds
|
||||
videoLayer.frame = containerView.bounds
|
||||
} else if let window {
|
||||
containerView.frame = window.bounds
|
||||
videoLayer.frame = containerView.bounds
|
||||
}
|
||||
|
||||
mainBlankView?.frame = window?.bounds ?? .zero
|
||||
|
||||
let screen = containerView.window?.screen ?? window?.screen ?? UIScreen.main
|
||||
let scale = screen.nativeScale > 0 ? screen.nativeScale : screen.scale
|
||||
videoLayer.contentsScale = scale
|
||||
}
|
||||
}
|
||||
|
||||
func externalDisplayDidChange() {
|
||||
refreshExternalDisplayAttachment()
|
||||
}
|
||||
|
||||
private func refreshExternalDisplayAttachment() {
|
||||
guard let containerView else { return }
|
||||
|
||||
let externalSuperview = externalVideoSuperview
|
||||
|
||||
if let externalSuperview {
|
||||
moveContainerView(to: externalSuperview)
|
||||
setMainBlankViewVisible(true)
|
||||
} else if isVisible, let window {
|
||||
moveContainerView(to: window)
|
||||
setMainBlankViewVisible(false)
|
||||
} else {
|
||||
setMainBlankViewVisible(false)
|
||||
}
|
||||
|
||||
setContainerHidden(!isVisible)
|
||||
updateFrame()
|
||||
}
|
||||
|
||||
private var externalVideoSuperview: UIView? {
|
||||
#if os(iOS)
|
||||
isVisible && !isPipActive && !isPipStarting
|
||||
? ExternalDisplayManager.shared.videoSuperview
|
||||
: nil
|
||||
#else
|
||||
nil
|
||||
#endif
|
||||
}
|
||||
|
||||
private func moveContainerView(to superview: UIView) {
|
||||
guard let containerView else { return }
|
||||
|
||||
withoutLayerAnimations {
|
||||
if containerView.superview !== superview {
|
||||
containerView.removeFromSuperview()
|
||||
superview.insertSubview(containerView, at: 0)
|
||||
} else if superview.subviews.first !== containerView {
|
||||
superview.insertSubview(containerView, at: 0)
|
||||
}
|
||||
|
||||
containerView.frame = superview.bounds
|
||||
containerView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
|
||||
}
|
||||
}
|
||||
|
||||
private func setMainBlankViewVisible(_ visible: Bool) {
|
||||
guard visible, let window else {
|
||||
mainBlankView?.removeFromSuperview()
|
||||
mainBlankView = nil
|
||||
return
|
||||
}
|
||||
|
||||
let blankView = mainBlankView ?? UIView(frame: window.bounds)
|
||||
withoutLayerAnimations {
|
||||
blankView.backgroundColor = .black
|
||||
blankView.isUserInteractionEnabled = false
|
||||
blankView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
|
||||
blankView.frame = window.bounds
|
||||
|
||||
if blankView.superview !== window {
|
||||
blankView.removeFromSuperview()
|
||||
window.insertSubview(blankView, at: 0)
|
||||
} else if window.subviews.first !== blankView {
|
||||
window.insertSubview(blankView, at: 0)
|
||||
}
|
||||
|
||||
blankView.isHidden = false
|
||||
}
|
||||
mainBlankView = blankView
|
||||
}
|
||||
|
||||
private func setContainerHidden(_ hidden: Bool) {
|
||||
withoutLayerAnimations {
|
||||
containerView?.isHidden = hidden
|
||||
}
|
||||
}
|
||||
|
||||
private func withoutLayerAnimations(_ updates: () -> Void) {
|
||||
CATransaction.begin()
|
||||
CATransaction.setDisableActions(true)
|
||||
updates()
|
||||
CATransaction.commit()
|
||||
}
|
||||
|
||||
/// Nudge mpv to present the current paused frame after leaving PiP.
|
||||
func forceDraw() {
|
||||
command(["seek", "0", "relative+exact"])
|
||||
}
|
||||
|
||||
override func updateEDRMode(sigPeak: Double) {
|
||||
guard let videoLayer else { return }
|
||||
|
||||
let hdrEnabled = self.hdrEnabled
|
||||
var edrHeadroom: CGFloat = 1.0
|
||||
#if os(iOS)
|
||||
if #available(iOS 17.0, *) {
|
||||
edrHeadroom = containerView?.window?.screen.potentialEDRHeadroom ?? 1.0
|
||||
withoutLayerAnimations {
|
||||
videoLayer.wantsExtendedDynamicRangeContent =
|
||||
hdrEnabled && sigPeak > 1.0 && edrHeadroom > 1.0
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
self.window = window
|
||||
let shouldEnableEDR = hdrEnabled && sigPeak > 1.0 && edrHeadroom > 1.0
|
||||
print(
|
||||
"[MpvPlayerCore] EDR mode: \(shouldEnableEDR) (hdrEnabled: \(hdrEnabled), sigPeak: \(sigPeak), headroom: \(edrHeadroom))"
|
||||
)
|
||||
}
|
||||
|
||||
let container = UIView(frame: window.bounds)
|
||||
container.backgroundColor = .clear
|
||||
container.isUserInteractionEnabled = false
|
||||
func dispose() {
|
||||
NotificationCenter.default.removeObserver(self)
|
||||
#if os(iOS)
|
||||
ExternalDisplayManager.shared.detach(core: self)
|
||||
#endif
|
||||
disposeSharedState(destroySynchronously: false)
|
||||
|
||||
let layer = MpvMetalLayer()
|
||||
layer.frame = container.bounds
|
||||
layer.contentsScale = UIScreen.main.nativeScale
|
||||
layer.framebufferOnly = true
|
||||
layer.backgroundColor = UIColor.black.cgColor
|
||||
videoLayer?.removeFromSuperlayer()
|
||||
videoLayer = nil
|
||||
containerView?.removeFromSuperview()
|
||||
containerView = nil
|
||||
mainBlankView?.removeFromSuperview()
|
||||
mainBlankView = nil
|
||||
isInitialized = false
|
||||
print("[MpvPlayerCore] Disposed")
|
||||
}
|
||||
|
||||
container.layer.addSublayer(layer)
|
||||
containerView = container
|
||||
metalLayer = layer
|
||||
deinit {
|
||||
dispose()
|
||||
}
|
||||
|
||||
window.insertSubview(container, at: 0)
|
||||
private func setupNotifications() {
|
||||
NotificationCenter.default.addObserver(
|
||||
self,
|
||||
selector: #selector(enterBackground),
|
||||
name: UIApplication.didEnterBackgroundNotification,
|
||||
object: nil
|
||||
)
|
||||
NotificationCenter.default.addObserver(
|
||||
self,
|
||||
selector: #selector(enterForeground),
|
||||
name: UIApplication.willEnterForegroundNotification,
|
||||
object: nil
|
||||
)
|
||||
}
|
||||
|
||||
guard setupMpv() else {
|
||||
print("[MpvPlayerCore] Failed to setup MPV")
|
||||
layer.removeFromSuperlayer()
|
||||
container.removeFromSuperview()
|
||||
metalLayer = nil
|
||||
containerView = nil
|
||||
return false
|
||||
}
|
||||
|
||||
setupNotifications()
|
||||
|
||||
isInitialized = true
|
||||
print("[MpvPlayerCore] Initialized successfully with MPV")
|
||||
return true
|
||||
@objc private func enterBackground() {
|
||||
if isPipActive || isPipStarting {
|
||||
print("[MpvPlayerCore] Entering background - PiP active/starting, keeping video")
|
||||
return
|
||||
}
|
||||
|
||||
func switchToPipVO(layerPtr: UnsafeMutableRawPointer) -> Bool {
|
||||
guard let mpv else { return false }
|
||||
print("[MpvPlayerCore] Entering background - disabling video")
|
||||
setProperty("vid", value: "no")
|
||||
}
|
||||
|
||||
print("[MpvPlayerCore] Switching to pip VO for PiP")
|
||||
|
||||
metalLayer?.removeFromSuperlayer()
|
||||
|
||||
mpv_set_property_string(mpv, "vid", "no")
|
||||
|
||||
var pointer = Int64(Int(bitPattern: layerPtr))
|
||||
mpv_set_property(mpv, "wid", MPV_FORMAT_INT64, &pointer)
|
||||
|
||||
mpv_set_property_string(mpv, "vo", "pip")
|
||||
mpv_set_property_string(mpv, "vid", "auto")
|
||||
|
||||
print("[MpvPlayerCore] Switched to pip VO successfully")
|
||||
return true
|
||||
@objc private func enterForeground() {
|
||||
if isPipActive {
|
||||
print("[MpvPlayerCore] Entering foreground - PiP active, skipping vid restore")
|
||||
return
|
||||
}
|
||||
|
||||
func switchToGpuNextVO() -> Bool {
|
||||
guard let mpv, let metalLayer else { return false }
|
||||
|
||||
print("[MpvPlayerCore] Switching back to gpu-next VO")
|
||||
|
||||
mpv_set_property_string(mpv, "vid", "no")
|
||||
|
||||
var layer = metalLayer
|
||||
mpv_set_property(mpv, "wid", MPV_FORMAT_INT64, &layer)
|
||||
|
||||
applyGpuNextOptions()
|
||||
mpv_set_property_string(mpv, "vid", "auto")
|
||||
|
||||
if metalLayer.superlayer == nil, let containerView {
|
||||
containerView.layer.addSublayer(metalLayer)
|
||||
}
|
||||
|
||||
print("[MpvPlayerCore] Switched back to gpu-next VO successfully")
|
||||
return true
|
||||
}
|
||||
|
||||
func setVisible(_ visible: Bool) {
|
||||
guard let containerView else { return }
|
||||
|
||||
if visible {
|
||||
containerView.removeFromSuperview()
|
||||
window?.insertSubview(containerView, at: 0)
|
||||
}
|
||||
|
||||
containerView.isHidden = !visible
|
||||
}
|
||||
|
||||
func updateFrame(_ frame: CGRect? = nil) {
|
||||
guard let metalLayer, let containerView else { return }
|
||||
|
||||
if let frame {
|
||||
containerView.frame = frame
|
||||
metalLayer.frame = containerView.bounds
|
||||
} else if let window {
|
||||
containerView.frame = window.bounds
|
||||
metalLayer.frame = containerView.bounds
|
||||
}
|
||||
|
||||
let scale = UIScreen.main.nativeScale
|
||||
metalLayer.drawableSize = CGSize(
|
||||
width: metalLayer.frame.width * scale,
|
||||
height: metalLayer.frame.height * scale
|
||||
)
|
||||
}
|
||||
|
||||
/// Nudge mpv to present the current paused frame after switching back from PiP.
|
||||
func forceDraw() {
|
||||
command(["seek", "0", "relative+exact"])
|
||||
}
|
||||
|
||||
override func updateEDRMode(sigPeak: Double) {
|
||||
guard let metalLayer else { return }
|
||||
|
||||
var edrHeadroom: CGFloat = 1.0
|
||||
#if os(iOS)
|
||||
if #available(iOS 16.0, *) {
|
||||
edrHeadroom = containerView?.window?.screen.potentialEDRHeadroom ?? 1.0
|
||||
metalLayer.wantsExtendedDynamicRangeContent =
|
||||
hdrEnabled && sigPeak > 1.0 && edrHeadroom > 1.0
|
||||
}
|
||||
#endif
|
||||
|
||||
let shouldEnableEDR = hdrEnabled && sigPeak > 1.0 && edrHeadroom > 1.0
|
||||
print(
|
||||
"[MpvPlayerCore] EDR mode: \(shouldEnableEDR) (hdrEnabled: \(hdrEnabled), sigPeak: \(sigPeak), headroom: \(edrHeadroom))"
|
||||
)
|
||||
}
|
||||
|
||||
func dispose() {
|
||||
NotificationCenter.default.removeObserver(self)
|
||||
disposeSharedState(destroySynchronously: false)
|
||||
|
||||
metalLayer?.removeFromSuperlayer()
|
||||
metalLayer = nil
|
||||
containerView?.removeFromSuperview()
|
||||
containerView = nil
|
||||
isInitialized = false
|
||||
print("[MpvPlayerCore] Disposed")
|
||||
}
|
||||
|
||||
deinit {
|
||||
dispose()
|
||||
}
|
||||
|
||||
private func setupNotifications() {
|
||||
NotificationCenter.default.addObserver(
|
||||
self,
|
||||
selector: #selector(enterBackground),
|
||||
name: UIApplication.didEnterBackgroundNotification,
|
||||
object: nil
|
||||
)
|
||||
NotificationCenter.default.addObserver(
|
||||
self,
|
||||
selector: #selector(enterForeground),
|
||||
name: UIApplication.willEnterForegroundNotification,
|
||||
object: nil
|
||||
)
|
||||
}
|
||||
|
||||
@objc private func enterBackground() {
|
||||
if isPipActive || isPipStarting {
|
||||
print("[MpvPlayerCore] Entering background - PiP active/starting, keeping video")
|
||||
return
|
||||
}
|
||||
|
||||
print("[MpvPlayerCore] Entering background - disabling video")
|
||||
if mpv != nil {
|
||||
mpv_set_option_string(mpv, "vid", "no")
|
||||
}
|
||||
}
|
||||
|
||||
@objc private func enterForeground() {
|
||||
if isPipActive {
|
||||
print("[MpvPlayerCore] Entering foreground - PiP active, skipping vid restore")
|
||||
return
|
||||
}
|
||||
|
||||
print("[MpvPlayerCore] Entering foreground - enabling video")
|
||||
if mpv != nil {
|
||||
mpv_set_option_string(mpv, "vid", "auto")
|
||||
}
|
||||
}
|
||||
print("[MpvPlayerCore] Entering foreground - enabling video")
|
||||
setProperty("vid", value: "auto")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,392 +5,443 @@ import AVKit
|
||||
/// Flutter plugin that bridges MPV player to Dart via method and event channels
|
||||
class MpvPlayerPlugin: NSObject, FlutterPlugin, FlutterStreamHandler, MpvPluginShared {
|
||||
|
||||
// MARK: - Properties
|
||||
// MARK: - Properties
|
||||
|
||||
private var playerCore: MpvPlayerCore?
|
||||
var eventSink: FlutterEventSink?
|
||||
private weak var registrar: FlutterPluginRegistrar?
|
||||
var nameToId: [String: Int] = [:]
|
||||
private var playerCore: MpvPlayerCore?
|
||||
var eventSink: FlutterEventSink?
|
||||
private weak var registrar: FlutterPluginRegistrar?
|
||||
var nameToId: [String: Int] = [:]
|
||||
|
||||
// MpvPluginShared conformance
|
||||
var coreBase: MpvPlayerCoreBase? { playerCore }
|
||||
func setPlayerVisible(_ visible: Bool) { playerCore?.setVisible(visible) }
|
||||
func updatePlayerFrame() { playerCore?.updateFrame() }
|
||||
// MpvPluginShared conformance
|
||||
var coreBase: MpvPlayerCoreBase? { playerCore }
|
||||
func setPlayerVisible(_ visible: Bool) { playerCore?.setVisible(visible) }
|
||||
func updatePlayerFrame() { playerCore?.updateFrame() }
|
||||
|
||||
// PiP
|
||||
private var pipController: MpvPipController?
|
||||
private var pipChannel: FlutterMethodChannel?
|
||||
private var autoPipEnabled = false
|
||||
private var isManualPipRequest = false
|
||||
private var pipTimebaseSyncTimer: Timer?
|
||||
private var pendingInlineRestoreAfterPip = false
|
||||
private var sceneActivationObserverRegistered = false
|
||||
// PiP
|
||||
private var pipController: MpvPipController?
|
||||
private var pipChannel: FlutterMethodChannel?
|
||||
private var autoPipEnabled = false
|
||||
private var isManualPipRequest = false
|
||||
private var pipTimebaseSyncTimer: Timer?
|
||||
private var pendingInlineRestoreAfterPip = false
|
||||
private var sceneActivationObserverRegistered = false
|
||||
|
||||
// MARK: - FlutterPlugin Registration
|
||||
// MARK: - FlutterPlugin Registration
|
||||
|
||||
static func register(with registrar: FlutterPluginRegistrar) {
|
||||
let methodChannel = FlutterMethodChannel(
|
||||
name: "com.plezy/mpv_player",
|
||||
binaryMessenger: registrar.messenger()
|
||||
)
|
||||
let eventChannel = FlutterEventChannel(
|
||||
name: "com.plezy/mpv_player/events",
|
||||
binaryMessenger: registrar.messenger()
|
||||
)
|
||||
let pipChannel = FlutterMethodChannel(
|
||||
name: "com.plezy/pip",
|
||||
binaryMessenger: registrar.messenger()
|
||||
)
|
||||
static func register(with registrar: FlutterPluginRegistrar) {
|
||||
let methodChannel = FlutterMethodChannel(
|
||||
name: "com.plezy/mpv_player",
|
||||
binaryMessenger: registrar.messenger()
|
||||
)
|
||||
let eventChannel = FlutterEventChannel(
|
||||
name: "com.plezy/mpv_player/events",
|
||||
binaryMessenger: registrar.messenger()
|
||||
)
|
||||
let pipChannel = FlutterMethodChannel(
|
||||
name: "com.plezy/pip",
|
||||
binaryMessenger: registrar.messenger()
|
||||
)
|
||||
|
||||
let instance = MpvPlayerPlugin()
|
||||
instance.registrar = registrar
|
||||
instance.pipChannel = pipChannel
|
||||
let instance = MpvPlayerPlugin()
|
||||
instance.registrar = registrar
|
||||
instance.pipChannel = pipChannel
|
||||
|
||||
registrar.addMethodCallDelegate(instance, channel: methodChannel)
|
||||
eventChannel.setStreamHandler(instance)
|
||||
pipChannel.setMethodCallHandler(instance.handlePipCall)
|
||||
registrar.addMethodCallDelegate(instance, channel: methodChannel)
|
||||
eventChannel.setStreamHandler(instance)
|
||||
pipChannel.setMethodCallHandler(instance.handlePipCall)
|
||||
}
|
||||
|
||||
// MARK: - FlutterStreamHandler
|
||||
|
||||
func onListen(withArguments arguments: Any?, eventSink events: @escaping FlutterEventSink)
|
||||
-> FlutterError?
|
||||
{
|
||||
self.eventSink = events
|
||||
return nil
|
||||
}
|
||||
|
||||
func onCancel(withArguments arguments: Any?) -> FlutterError? {
|
||||
self.eventSink = nil
|
||||
return nil
|
||||
}
|
||||
|
||||
// MARK: - FlutterPlugin Method Handler
|
||||
|
||||
func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||
switch call.method {
|
||||
case "initialize":
|
||||
handleInitialize(result: result)
|
||||
case "dispose":
|
||||
handleDispose(result: result)
|
||||
case "setProperty":
|
||||
handleSetProperty(call: call, result: result)
|
||||
case "getProperty":
|
||||
handleGetProperty(call: call, result: result)
|
||||
case "observeProperty":
|
||||
handleObserveProperty(call: call, result: result)
|
||||
case "command":
|
||||
handleCommand(call: call, result: result)
|
||||
case "setVisible":
|
||||
handleSetVisible(call: call, result: result)
|
||||
case "isInitialized":
|
||||
result(playerCore?.isInitialized ?? false)
|
||||
case "updateFrame":
|
||||
handleUpdateFrame(result: result)
|
||||
case "setLogLevel":
|
||||
handleSetLogLevel(call: call, result: result)
|
||||
default:
|
||||
result(FlutterMethodNotImplemented)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - FlutterStreamHandler
|
||||
// MARK: - PiP
|
||||
|
||||
func onListen(withArguments arguments: Any?, eventSink events: @escaping FlutterEventSink) -> FlutterError? {
|
||||
self.eventSink = events
|
||||
return nil
|
||||
private func ensurePipController() -> MpvPipController? {
|
||||
if let existing = pipController { return existing }
|
||||
guard let layer = playerCore?.sampleBufferDisplayLayer else { return nil }
|
||||
let controller = MpvPipController(sampleBufferDisplayLayer: layer)
|
||||
controller.delegate = self
|
||||
pipController = controller
|
||||
return controller
|
||||
}
|
||||
|
||||
private func registerSceneActivationObserver() {
|
||||
guard !sceneActivationObserverRegistered else { return }
|
||||
NotificationCenter.default.addObserver(
|
||||
self,
|
||||
selector: #selector(sceneDidActivate),
|
||||
name: UIScene.didActivateNotification,
|
||||
object: nil
|
||||
)
|
||||
sceneActivationObserverRegistered = true
|
||||
}
|
||||
|
||||
private func unregisterSceneActivationObserver() {
|
||||
guard sceneActivationObserverRegistered else { return }
|
||||
NotificationCenter.default.removeObserver(
|
||||
self, name: UIScene.didActivateNotification, object: nil)
|
||||
sceneActivationObserverRegistered = false
|
||||
}
|
||||
|
||||
private var isSceneActive: Bool {
|
||||
#if os(iOS)
|
||||
ExternalDisplayManager.hasActiveApplicationScene
|
||||
#else
|
||||
UIApplication.shared.connectedScenes.contains { $0.activationState == .foregroundActive }
|
||||
#endif
|
||||
}
|
||||
|
||||
private func restoreInlinePlayerAfterPip() {
|
||||
guard pendingInlineRestoreAfterPip,
|
||||
let playerCore = playerCore,
|
||||
!playerCore.isPipActive,
|
||||
!playerCore.isPipStarting
|
||||
else { return }
|
||||
|
||||
print("[MpvPlayerPlugin] Restoring inline player after PiP")
|
||||
playerCore.setVisible(true)
|
||||
playerCore.updateFrame()
|
||||
if playerCore.isPaused {
|
||||
playerCore.forceDraw()
|
||||
}
|
||||
pendingInlineRestoreAfterPip = false
|
||||
}
|
||||
|
||||
func onCancel(withArguments arguments: Any?) -> FlutterError? {
|
||||
self.eventSink = nil
|
||||
return nil
|
||||
}
|
||||
|
||||
// MARK: - FlutterPlugin Method Handler
|
||||
|
||||
func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||
switch call.method {
|
||||
case "initialize":
|
||||
handleInitialize(result: result)
|
||||
case "dispose":
|
||||
handleDispose(result: result)
|
||||
case "setProperty":
|
||||
handleSetProperty(call: call, result: result)
|
||||
case "getProperty":
|
||||
handleGetProperty(call: call, result: result)
|
||||
case "observeProperty":
|
||||
handleObserveProperty(call: call, result: result)
|
||||
case "command":
|
||||
handleCommand(call: call, result: result)
|
||||
case "setVisible":
|
||||
handleSetVisible(call: call, result: result)
|
||||
case "isInitialized":
|
||||
result(playerCore?.isInitialized ?? false)
|
||||
case "updateFrame":
|
||||
handleUpdateFrame(result: result)
|
||||
case "setLogLevel":
|
||||
handleSetLogLevel(call: call, result: result)
|
||||
default:
|
||||
result(FlutterMethodNotImplemented)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - PiP
|
||||
|
||||
private func ensurePipController() -> MpvPipController {
|
||||
if let existing = pipController { return existing }
|
||||
let controller = MpvPipController()
|
||||
controller.delegate = self
|
||||
pipController = controller
|
||||
return controller
|
||||
}
|
||||
|
||||
private func registerSceneActivationObserver() {
|
||||
guard !sceneActivationObserverRegistered else { return }
|
||||
NotificationCenter.default.addObserver(
|
||||
self,
|
||||
selector: #selector(sceneDidActivate),
|
||||
name: UIScene.didActivateNotification,
|
||||
object: nil
|
||||
)
|
||||
sceneActivationObserverRegistered = true
|
||||
}
|
||||
|
||||
private func unregisterSceneActivationObserver() {
|
||||
guard sceneActivationObserverRegistered else { return }
|
||||
NotificationCenter.default.removeObserver(self, name: UIScene.didActivateNotification, object: nil)
|
||||
sceneActivationObserverRegistered = false
|
||||
}
|
||||
|
||||
private var isSceneActive: Bool {
|
||||
UIApplication.shared.connectedScenes.contains { $0.activationState == .foregroundActive }
|
||||
}
|
||||
|
||||
private func restoreInlinePlayerAfterPip() {
|
||||
guard pendingInlineRestoreAfterPip,
|
||||
let playerCore = playerCore,
|
||||
!playerCore.isPipActive,
|
||||
!playerCore.isPipStarting else { return }
|
||||
|
||||
print("[MpvPlayerPlugin] Restoring inline player after PiP")
|
||||
playerCore.setVisible(true)
|
||||
playerCore.updateFrame()
|
||||
if playerCore.isPaused {
|
||||
playerCore.forceDraw()
|
||||
}
|
||||
pendingInlineRestoreAfterPip = false
|
||||
}
|
||||
|
||||
private func handlePipCall(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||
DispatchQueue.main.async { [weak self] in
|
||||
guard let self = self else { result(nil); return }
|
||||
switch call.method {
|
||||
case "isSupported":
|
||||
result(MpvPipController.isSupported)
|
||||
case "enter":
|
||||
self.enterPip(manual: true, result: result)
|
||||
case "setAutoPipReady":
|
||||
if let args = call.arguments as? [String: Any], let ready = args["ready"] as? Bool {
|
||||
self.autoPipEnabled = ready
|
||||
if ready {
|
||||
let pip = self.ensurePipController()
|
||||
pip.setAutoStart(true)
|
||||
// Warm the layer so the system considers PiP possible
|
||||
if let pc = self.playerCore {
|
||||
pip.warmLayer(currentTime: pc.timePos, isPlaying: !pc.isPaused)
|
||||
}
|
||||
} else {
|
||||
self.pipController?.setAutoStart(false)
|
||||
}
|
||||
}
|
||||
result(nil)
|
||||
default:
|
||||
result(FlutterMethodNotImplemented)
|
||||
private func handlePipCall(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||
DispatchQueue.main.async { [weak self] in
|
||||
guard let self = self else { result(nil); return }
|
||||
switch call.method {
|
||||
case "isSupported":
|
||||
result(MpvPipController.isSupported)
|
||||
case "enter":
|
||||
self.enterPip(manual: true, result: result)
|
||||
case "setAutoPipReady":
|
||||
if let args = call.arguments as? [String: Any], let ready = args["ready"] as? Bool {
|
||||
self.autoPipEnabled = ready
|
||||
if ready {
|
||||
guard let pip = self.ensurePipController() else {
|
||||
result(nil)
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Switch to PiP VO and prepare the sample buffer layer for PiP display.
|
||||
/// Returns the MpvPipController on success, nil on failure.
|
||||
@discardableResult
|
||||
private func switchToPipAndPrepare() -> MpvPipController? {
|
||||
guard let playerCore = playerCore else { return nil }
|
||||
let pip = ensurePipController()
|
||||
guard playerCore.switchToPipVO(layerPtr: pip.layerPointer) else { return nil }
|
||||
pendingInlineRestoreAfterPip = false
|
||||
playerCore.isPipStarting = true
|
||||
pip.pushBlankFrame()
|
||||
pip.syncTimebase(currentTime: playerCore.timePos, isPlaying: !playerCore.isPaused)
|
||||
pip.invalidatePlaybackState()
|
||||
return pip
|
||||
}
|
||||
|
||||
/// Manual PiP entry (button press). Auto-PiP is handled by the system via
|
||||
/// canStartPictureInPictureAutomaticallyFromInline + pipWillStart delegate.
|
||||
private func enterPip(manual: Bool, result: FlutterResult? = nil) {
|
||||
guard MpvPipController.isSupported else {
|
||||
result?(["success": false, "errorCode": "ios_version", "errorMessage": "Requires iOS 15.0+"])
|
||||
return
|
||||
}
|
||||
guard playerCore != nil else {
|
||||
result?(["success": false, "errorCode": "failed", "errorMessage": "Player not initialized"])
|
||||
return
|
||||
}
|
||||
guard let pip = switchToPipAndPrepare() else {
|
||||
result?(["success": false, "errorCode": "vo_switch_failed", "errorMessage": "Failed to switch VO"])
|
||||
return
|
||||
}
|
||||
|
||||
isManualPipRequest = manual
|
||||
pip.startPip(waitForFrame: manual) { [weak self] started in
|
||||
if started {
|
||||
result?(["success": true])
|
||||
} else {
|
||||
self?.cleanupPip(notify: false)
|
||||
result?(["success": false, "errorCode": "failed", "errorMessage": "PiP failed to start"])
|
||||
pip.setAutoStart(true)
|
||||
// Warm the layer so the system considers PiP possible
|
||||
if let pc = self.playerCore {
|
||||
pip.warmLayer(currentTime: pc.timePos, isPlaying: !pc.isPaused)
|
||||
}
|
||||
} else {
|
||||
self.pipController?.setAutoStart(false)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Unified cleanup for all PiP exit paths
|
||||
private func cleanupPip(notify: Bool, pause: Bool = false) {
|
||||
playerCore?.isPipStarting = false
|
||||
playerCore?.isPipActive = false
|
||||
isManualPipRequest = false
|
||||
stopPipTimebaseSync()
|
||||
pipController?.flushLayer()
|
||||
let restoredInlineVO = playerCore?.switchToGpuNextVO() ?? false
|
||||
if pause { playerCore?.setProperty("pause", value: "yes") }
|
||||
pendingInlineRestoreAfterPip = restoredInlineVO
|
||||
if pendingInlineRestoreAfterPip {
|
||||
if isSceneActive {
|
||||
restoreInlinePlayerAfterPip()
|
||||
} else {
|
||||
print("[MpvPlayerPlugin] Deferring inline restore until scene activation")
|
||||
}
|
||||
}
|
||||
if notify { pipChannel?.invokeMethod("onPipChanged", arguments: false) }
|
||||
}
|
||||
|
||||
/// Scene became active — restore inline playback if needed and re-warm the
|
||||
/// sample-buffer layer so future auto-PiP remains possible.
|
||||
@objc private func sceneDidActivate() {
|
||||
restoreInlinePlayerAfterPip()
|
||||
if autoPipEnabled, let pip = pipController, let pc = playerCore, !pc.isPipActive {
|
||||
pip.warmLayer(currentTime: pc.timePos, isPlaying: !pc.isPaused)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - Timebase Sync
|
||||
|
||||
private func syncPipTimebase() {
|
||||
guard let playerCore = playerCore, let pipController = pipController else { return }
|
||||
pipController.syncTimebase(
|
||||
currentTime: playerCore.timePos,
|
||||
isPlaying: !playerCore.isPaused
|
||||
)
|
||||
}
|
||||
|
||||
private func startPipTimebaseSync() {
|
||||
stopPipTimebaseSync()
|
||||
pipTimebaseSyncTimer = Timer.scheduledTimer(withTimeInterval: 5.0, repeats: true) { [weak self] _ in
|
||||
self?.syncPipTimebase()
|
||||
}
|
||||
}
|
||||
|
||||
private func stopPipTimebaseSync() {
|
||||
pipTimebaseSyncTimer?.invalidate()
|
||||
pipTimebaseSyncTimer = nil
|
||||
}
|
||||
|
||||
// MARK: - Platform-Specific Method Handlers
|
||||
|
||||
private func handleInitialize(result: @escaping FlutterResult) {
|
||||
DispatchQueue.main.async { [weak self] in
|
||||
guard let self = self else {
|
||||
result(FlutterError(code: "ERROR", message: "Plugin deallocated", details: nil))
|
||||
return
|
||||
}
|
||||
|
||||
if self.playerCore?.isInitialized == true {
|
||||
self.registerSceneActivationObserver()
|
||||
result(true)
|
||||
return
|
||||
}
|
||||
|
||||
guard let window = self.findKeyWindow() else {
|
||||
result(FlutterError(code: "NO_WINDOW", message: "Could not find key window", details: nil))
|
||||
return
|
||||
}
|
||||
|
||||
let core = MpvPlayerCore()
|
||||
core.delegate = self
|
||||
|
||||
guard core.initialize(in: window) else {
|
||||
result(FlutterError(code: "MPV_INIT_FAILED", message: "Failed to initialize MPV", details: nil))
|
||||
return
|
||||
}
|
||||
|
||||
self.playerCore = core
|
||||
self.registerSceneActivationObserver()
|
||||
core.setVisible(false)
|
||||
result(true)
|
||||
}
|
||||
}
|
||||
|
||||
private func handleDispose(result: @escaping FlutterResult) {
|
||||
DispatchQueue.main.async { [weak self] in
|
||||
guard let self = self else { result(nil); return }
|
||||
self.pipController?.teardown()
|
||||
self.pipController = nil
|
||||
self.autoPipEnabled = false
|
||||
self.pendingInlineRestoreAfterPip = false
|
||||
self.unregisterSceneActivationObserver()
|
||||
self.stopPipTimebaseSync()
|
||||
self.playerCore?.dispose()
|
||||
self.playerCore = nil
|
||||
result(nil)
|
||||
}
|
||||
}
|
||||
|
||||
private func handleSetProperty(call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||
guard let args = call.arguments as? [String: Any],
|
||||
let name = args["name"] as? String,
|
||||
let value = args["value"] as? String else {
|
||||
result(FlutterError(code: "INVALID_ARGS", message: "Missing 'name' or 'value' argument", details: nil))
|
||||
return
|
||||
}
|
||||
|
||||
playerCore?.setProperty(name, value: value)
|
||||
|
||||
if name == "pause" {
|
||||
pipController?.invalidatePlaybackState()
|
||||
if playerCore?.isPipActive == true { syncPipTimebase() }
|
||||
}
|
||||
|
||||
result(nil)
|
||||
default:
|
||||
result(FlutterMethodNotImplemented)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Prepare the shared AVFoundation display layer for PiP display.
|
||||
/// Returns the MpvPipController on success, nil on failure.
|
||||
@discardableResult
|
||||
private func preparePip() -> MpvPipController? {
|
||||
guard let playerCore = playerCore else { return nil }
|
||||
guard let pip = ensurePipController() else { return nil }
|
||||
pendingInlineRestoreAfterPip = false
|
||||
playerCore.isPipStarting = true
|
||||
pip.syncTimebase(currentTime: playerCore.timePos, isPlaying: !playerCore.isPaused)
|
||||
pip.invalidatePlaybackState()
|
||||
return pip
|
||||
}
|
||||
|
||||
/// Manual PiP entry (button press). Auto-PiP is handled by the system via
|
||||
/// canStartPictureInPictureAutomaticallyFromInline + pipWillStart delegate.
|
||||
private func enterPip(manual: Bool, result: FlutterResult? = nil) {
|
||||
guard MpvPipController.isSupported else {
|
||||
result?([
|
||||
"success": false, "errorCode": "ios_version", "errorMessage": "Requires iOS 15.0+",
|
||||
])
|
||||
return
|
||||
}
|
||||
guard playerCore != nil else {
|
||||
result?([
|
||||
"success": false, "errorCode": "failed", "errorMessage": "Player not initialized",
|
||||
])
|
||||
return
|
||||
}
|
||||
guard let pip = preparePip() else {
|
||||
result?([
|
||||
"success": false, "errorCode": "pip_prepare_failed",
|
||||
"errorMessage": "Failed to prepare PiP",
|
||||
])
|
||||
return
|
||||
}
|
||||
|
||||
// MARK: - Helpers
|
||||
isManualPipRequest = manual
|
||||
pip.startPip(waitForFrame: manual) { [weak self] started in
|
||||
if started {
|
||||
result?(["success": true])
|
||||
} else {
|
||||
self?.cleanupPip(notify: false)
|
||||
result?([
|
||||
"success": false, "errorCode": "failed", "errorMessage": "PiP failed to start",
|
||||
])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private func findKeyWindow() -> UIWindow? {
|
||||
guard let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene,
|
||||
let window = windowScene.windows.first(where: { $0.isKeyWindow }) else {
|
||||
return nil
|
||||
/// Unified cleanup for all PiP exit paths
|
||||
private func cleanupPip(notify: Bool, pause: Bool = false) {
|
||||
playerCore?.isPipStarting = false
|
||||
playerCore?.isPipActive = false
|
||||
isManualPipRequest = false
|
||||
stopPipTimebaseSync()
|
||||
if pause {
|
||||
playerCore?.setPropertyAsync("pause", value: "yes") { [weak self] _ in
|
||||
self?.pipController?.invalidatePlaybackState()
|
||||
self?.syncPipTimebase()
|
||||
}
|
||||
}
|
||||
pendingInlineRestoreAfterPip = true
|
||||
if pendingInlineRestoreAfterPip {
|
||||
if isSceneActive {
|
||||
restoreInlinePlayerAfterPip()
|
||||
} else {
|
||||
print("[MpvPlayerPlugin] Deferring inline restore until scene activation")
|
||||
}
|
||||
}
|
||||
if notify { pipChannel?.invokeMethod("onPipChanged", arguments: false) }
|
||||
}
|
||||
|
||||
/// Scene became active — restore inline playback if needed and re-warm the
|
||||
/// sample-buffer layer so future auto-PiP remains possible.
|
||||
@objc private func sceneDidActivate() {
|
||||
restoreInlinePlayerAfterPip()
|
||||
if autoPipEnabled, let pip = pipController, let pc = playerCore, !pc.isPipActive {
|
||||
pip.warmLayer(currentTime: pc.timePos, isPlaying: !pc.isPaused)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - Timebase Sync
|
||||
|
||||
private func syncPipTimebase() {
|
||||
guard let playerCore = playerCore, let pipController = pipController else { return }
|
||||
pipController.syncTimebase(
|
||||
currentTime: playerCore.timePos,
|
||||
isPlaying: !playerCore.isPaused
|
||||
)
|
||||
}
|
||||
|
||||
private func startPipTimebaseSync() {
|
||||
stopPipTimebaseSync()
|
||||
pipTimebaseSyncTimer = Timer.scheduledTimer(withTimeInterval: 5.0, repeats: true) {
|
||||
[weak self] _ in
|
||||
self?.syncPipTimebase()
|
||||
}
|
||||
}
|
||||
|
||||
private func stopPipTimebaseSync() {
|
||||
pipTimebaseSyncTimer?.invalidate()
|
||||
pipTimebaseSyncTimer = nil
|
||||
}
|
||||
|
||||
// MARK: - Platform-Specific Method Handlers
|
||||
|
||||
private func handleInitialize(result: @escaping FlutterResult) {
|
||||
DispatchQueue.main.async { [weak self] in
|
||||
guard let self = self else {
|
||||
result(FlutterError(code: "ERROR", message: "Plugin deallocated", details: nil))
|
||||
return
|
||||
}
|
||||
|
||||
if self.playerCore?.isInitialized == true {
|
||||
self.registerSceneActivationObserver()
|
||||
result(true)
|
||||
return
|
||||
}
|
||||
|
||||
guard let window = self.findKeyWindow() else {
|
||||
result(
|
||||
FlutterError(
|
||||
code: "NO_WINDOW", message: "Could not find key window", details: nil))
|
||||
return
|
||||
}
|
||||
|
||||
let core = MpvPlayerCore()
|
||||
core.delegate = self
|
||||
|
||||
guard core.initialize(in: window) else {
|
||||
result(
|
||||
FlutterError(
|
||||
code: "MPV_INIT_FAILED", message: "Failed to initialize MPV", details: nil))
|
||||
return
|
||||
}
|
||||
|
||||
self.playerCore = core
|
||||
self.registerSceneActivationObserver()
|
||||
core.setVisible(false)
|
||||
result(true)
|
||||
}
|
||||
}
|
||||
|
||||
private func handleDispose(result: @escaping FlutterResult) {
|
||||
DispatchQueue.main.async { [weak self] in
|
||||
guard let self = self else { result(nil); return }
|
||||
self.pipController?.teardown()
|
||||
self.pipController = nil
|
||||
self.autoPipEnabled = false
|
||||
self.pendingInlineRestoreAfterPip = false
|
||||
self.unregisterSceneActivationObserver()
|
||||
self.stopPipTimebaseSync()
|
||||
self.playerCore?.dispose()
|
||||
self.playerCore = nil
|
||||
result(nil)
|
||||
}
|
||||
}
|
||||
|
||||
private func handleSetProperty(call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||
guard let args = call.arguments as? [String: Any],
|
||||
let name = args["name"] as? String,
|
||||
let value = args["value"] as? String
|
||||
else {
|
||||
result(
|
||||
FlutterError(
|
||||
code: "INVALID_ARGS", message: "Missing 'name' or 'value' argument",
|
||||
details: nil))
|
||||
return
|
||||
}
|
||||
|
||||
guard let core = playerCore else {
|
||||
result(nil)
|
||||
return
|
||||
}
|
||||
|
||||
core.setPropertyAsync(name, value: value) { [weak self] _ in
|
||||
if name == "pause" {
|
||||
self?.pipController?.invalidatePlaybackState()
|
||||
if core.isPipActive == true { self?.syncPipTimebase() }
|
||||
}
|
||||
result(nil)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - Helpers
|
||||
|
||||
private func findKeyWindow() -> UIWindow? {
|
||||
#if os(iOS)
|
||||
return ExternalDisplayManager.mainApplicationWindow()
|
||||
#else
|
||||
let scenes = UIApplication.shared.connectedScenes.compactMap { $0 as? UIWindowScene }
|
||||
|
||||
for scene in scenes {
|
||||
if let window = scene.windows.first(where: { $0.isKeyWindow }) {
|
||||
return window
|
||||
}
|
||||
return window
|
||||
}
|
||||
}
|
||||
|
||||
for scene in scenes {
|
||||
if let window = scene.windows.first(where: { !$0.isHidden }) {
|
||||
return window
|
||||
}
|
||||
}
|
||||
|
||||
return scenes.first?.windows.first
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - MpvPipDelegate
|
||||
|
||||
extension MpvPlayerPlugin: MpvPipDelegate {
|
||||
|
||||
func pipWillStart() {
|
||||
// If PiP was system-initiated (not via our enterPip), switch VO now
|
||||
guard let playerCore = playerCore, !playerCore.isPipStarting else { return }
|
||||
print("[MpvPlayerPlugin] System-initiated PiP detected, switching VO")
|
||||
if switchToPipAndPrepare() == nil {
|
||||
print("[MpvPlayerPlugin] VO switch failed for system-initiated PiP")
|
||||
pipController?.stopPip()
|
||||
}
|
||||
func pipWillStart() {
|
||||
// If PiP was system-initiated (not via our enterPip), prepare the shared layer now.
|
||||
guard let playerCore = playerCore, !playerCore.isPipStarting else { return }
|
||||
print("[MpvPlayerPlugin] System-initiated PiP detected, preparing shared layer")
|
||||
if preparePip() == nil {
|
||||
print("[MpvPlayerPlugin] PiP preparation failed for system-initiated PiP")
|
||||
pipController?.stopPip()
|
||||
}
|
||||
}
|
||||
|
||||
func pipDidStart() {
|
||||
playerCore?.isPipStarting = false
|
||||
playerCore?.isPipActive = true
|
||||
pendingInlineRestoreAfterPip = false
|
||||
pipChannel?.invokeMethod("onPipChanged", arguments: true)
|
||||
syncPipTimebase()
|
||||
startPipTimebaseSync()
|
||||
func pipDidStart() {
|
||||
playerCore?.isPipStarting = false
|
||||
playerCore?.isPipActive = true
|
||||
pendingInlineRestoreAfterPip = false
|
||||
pipChannel?.invokeMethod("onPipChanged", arguments: true)
|
||||
syncPipTimebase()
|
||||
startPipTimebaseSync()
|
||||
|
||||
if isManualPipRequest {
|
||||
isManualPipRequest = false
|
||||
UIControl().sendAction(#selector(URLSessionTask.suspend), to: UIApplication.shared, for: nil)
|
||||
}
|
||||
if isManualPipRequest {
|
||||
isManualPipRequest = false
|
||||
UIControl().sendAction(
|
||||
#selector(URLSessionTask.suspend), to: UIApplication.shared, for: nil)
|
||||
}
|
||||
}
|
||||
|
||||
func pipDidStop(restored: Bool) {
|
||||
cleanupPip(notify: true, pause: !restored)
|
||||
func pipDidStop(restored: Bool) {
|
||||
cleanupPip(notify: true, pause: !restored)
|
||||
}
|
||||
|
||||
func pipDidFailToStart(error: Error?) {
|
||||
cleanupPip(notify: true)
|
||||
}
|
||||
|
||||
func pipSetPlaying(_ playing: Bool) {
|
||||
playerCore?.setPropertyAsync("pause", value: playing ? "no" : "yes") { [weak self] _ in
|
||||
self?.pipController?.invalidatePlaybackState()
|
||||
self?.syncPipTimebase()
|
||||
}
|
||||
}
|
||||
|
||||
func pipDidFailToStart(error: Error?) {
|
||||
cleanupPip(notify: true)
|
||||
func pipSkip(byInterval seconds: Double) {
|
||||
guard let playerCore = playerCore else { return }
|
||||
let newTime = max(0, playerCore.timePos + seconds)
|
||||
playerCore.command(["seek", String(newTime), "absolute"])
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) { [weak self] in
|
||||
self?.syncPipTimebase()
|
||||
self?.pipController?.invalidatePlaybackState()
|
||||
}
|
||||
}
|
||||
|
||||
func pipSetPlaying(_ playing: Bool) {
|
||||
playerCore?.setProperty("pause", value: playing ? "no" : "yes")
|
||||
pipController?.invalidatePlaybackState()
|
||||
syncPipTimebase()
|
||||
}
|
||||
|
||||
func pipSkip(byInterval seconds: Double) {
|
||||
guard let playerCore = playerCore else { return }
|
||||
let newTime = max(0, playerCore.timePos + seconds)
|
||||
playerCore.command(["seek", String(newTime), "absolute"])
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) { [weak self] in
|
||||
self?.syncPipTimebase()
|
||||
self?.pipController?.invalidatePlaybackState()
|
||||
}
|
||||
}
|
||||
|
||||
var isPipPlaying: Bool { !(playerCore?.isPaused ?? true) }
|
||||
var pipDuration: Double { playerCore?.duration ?? 0 }
|
||||
var isPipPlaying: Bool { !(playerCore?.isPaused ?? true) }
|
||||
var pipDuration: Double { playerCore?.duration ?? 0 }
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ platform :ios do
|
||||
git_commit = `git rev-parse --short HEAD`.strip
|
||||
|
||||
# Build the Flutter app
|
||||
sh("cd #{ENV['PWD']}/.. && flutter build ipa --dart-define=ENABLE_IN_APP_REVIEW=true --dart-define=ENABLE_SENTRY=true --dart-define=GIT_COMMIT=#{git_commit} --dart-define=SENTRY_ENVIRONMENT=app-store --split-debug-info=debug-info/ios")
|
||||
sh("cd #{ENV['PWD']}/.. && flutter build ipa --dart-define=ENABLE_SENTRY=true --dart-define=GIT_COMMIT=#{git_commit} --dart-define=SENTRY_ENVIRONMENT=app-store --split-debug-info=debug-info/ios")
|
||||
|
||||
# Upload debug symbols
|
||||
sh("cd #{ENV['PWD']}/.. && ./scripts/upload-symbols.sh ios")
|
||||
|
||||
@@ -0,0 +1,328 @@
|
||||
import '../media/media_backend.dart';
|
||||
import '../models/plex/plex_home_user.dart';
|
||||
import '../services/plex_auth_service.dart';
|
||||
|
||||
/// Identifier of a backend kind a [Connection] points at. Lighter-weight than
|
||||
/// [MediaBackend] for places that only care about persistence/auth shape
|
||||
/// (e.g. database column values).
|
||||
enum ConnectionKind {
|
||||
plex,
|
||||
jellyfin;
|
||||
|
||||
String get id => switch (this) {
|
||||
ConnectionKind.plex => 'plex',
|
||||
ConnectionKind.jellyfin => 'jellyfin',
|
||||
};
|
||||
|
||||
static ConnectionKind fromId(String id) => switch (id) {
|
||||
'plex' => ConnectionKind.plex,
|
||||
'jellyfin' => ConnectionKind.jellyfin,
|
||||
_ => throw ArgumentError('Unknown ConnectionKind id: $id'),
|
||||
};
|
||||
|
||||
MediaBackend get backend => switch (this) {
|
||||
ConnectionKind.plex => MediaBackend.plex,
|
||||
ConnectionKind.jellyfin => MediaBackend.jellyfin,
|
||||
};
|
||||
}
|
||||
|
||||
/// Health snapshot for a connection. Updated by the orchestrator each time a
|
||||
/// session is established or refreshed.
|
||||
enum ConnectionStatus { unknown, online, offline, authError, disabled }
|
||||
|
||||
/// A media server connection — a unit of authentication the user added.
|
||||
///
|
||||
/// A `PlexAccountConnection` carries one Plex account + its discovered servers + an
|
||||
/// optional active Home profile. A `JellyfinConnection` is a single server +
|
||||
/// user. Most users only ever add one connection.
|
||||
sealed class Connection {
|
||||
String get id;
|
||||
ConnectionKind get kind;
|
||||
String get displayName;
|
||||
ConnectionStatus get status;
|
||||
DateTime get createdAt;
|
||||
DateTime? get lastAuthenticatedAt;
|
||||
|
||||
/// Backend kind as a [MediaBackend] — for UI that branches on backend
|
||||
/// (badges, etc.). Just a passthrough to [kind.backend].
|
||||
MediaBackend get backend => kind.backend;
|
||||
|
||||
/// Primary label shown in connection-list UIs. Plex shows the active
|
||||
/// profile/account name; Jellyfin shows the server name.
|
||||
String get displayLabel;
|
||||
|
||||
/// Secondary line shown beneath [displayLabel] in connection-list UIs.
|
||||
/// Plex: server count; Jellyfin: `userName · baseUrl`. May be null when
|
||||
/// no useful subtitle exists.
|
||||
String? get displaySubtitle;
|
||||
|
||||
/// Backend-specific config payload, persisted as JSON. Each subclass
|
||||
/// defines the schema.
|
||||
Map<String, Object?> toConfigJson();
|
||||
}
|
||||
|
||||
/// A Plex account connection.
|
||||
///
|
||||
/// Fields here mirror what [PlexAuthService] gathers during PIN OAuth: an
|
||||
/// account token (long-lived), the per-device client identifier (so plex.tv
|
||||
/// doesn't see a "new device" each launch), and the optional Home user the
|
||||
/// user has switched into.
|
||||
class PlexAccountConnection extends Connection {
|
||||
@override
|
||||
final String id;
|
||||
|
||||
@override
|
||||
final ConnectionStatus status;
|
||||
|
||||
@override
|
||||
final DateTime createdAt;
|
||||
|
||||
@override
|
||||
final DateTime? lastAuthenticatedAt;
|
||||
|
||||
/// plex.tv account access token.
|
||||
final String accountToken;
|
||||
|
||||
/// Per-device client identifier. Stable across launches.
|
||||
final String clientIdentifier;
|
||||
|
||||
/// Display name shown for this connection (typically the Plex account email
|
||||
/// or username, fallback "Plex").
|
||||
final String accountLabel;
|
||||
|
||||
/// Active Home user, or `null` for the main account.
|
||||
final PlexHomeUser? activeProfile;
|
||||
|
||||
/// Servers discovered for this account (cached). Populated by the auth
|
||||
/// flow and refreshed periodically.
|
||||
final List<PlexServer> servers;
|
||||
|
||||
PlexAccountConnection({
|
||||
required this.id,
|
||||
required this.accountToken,
|
||||
required this.clientIdentifier,
|
||||
required this.accountLabel,
|
||||
this.activeProfile,
|
||||
this.servers = const [],
|
||||
this.status = ConnectionStatus.unknown,
|
||||
required this.createdAt,
|
||||
this.lastAuthenticatedAt,
|
||||
});
|
||||
|
||||
@override
|
||||
ConnectionKind get kind => ConnectionKind.plex;
|
||||
|
||||
@override
|
||||
String get displayName => activeProfile != null && activeProfile!.title.isNotEmpty
|
||||
? '${activeProfile!.title} · $accountLabel'
|
||||
: accountLabel;
|
||||
|
||||
@override
|
||||
String get displayLabel => displayName;
|
||||
|
||||
@override
|
||||
String? get displaySubtitle => servers.length == 1 ? '1 Plex server' : '${servers.length} Plex servers';
|
||||
|
||||
PlexAccountConnection copyWith({
|
||||
String? id,
|
||||
String? accountToken,
|
||||
String? clientIdentifier,
|
||||
String? accountLabel,
|
||||
PlexHomeUser? activeProfile,
|
||||
bool clearActiveProfile = false,
|
||||
List<PlexServer>? servers,
|
||||
ConnectionStatus? status,
|
||||
DateTime? createdAt,
|
||||
DateTime? lastAuthenticatedAt,
|
||||
}) {
|
||||
return PlexAccountConnection(
|
||||
id: id ?? this.id,
|
||||
accountToken: accountToken ?? this.accountToken,
|
||||
clientIdentifier: clientIdentifier ?? this.clientIdentifier,
|
||||
accountLabel: accountLabel ?? this.accountLabel,
|
||||
activeProfile: clearActiveProfile ? null : (activeProfile ?? this.activeProfile),
|
||||
servers: servers ?? this.servers,
|
||||
status: status ?? this.status,
|
||||
createdAt: createdAt ?? this.createdAt,
|
||||
lastAuthenticatedAt: lastAuthenticatedAt ?? this.lastAuthenticatedAt,
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
Map<String, Object?> toConfigJson() {
|
||||
return {
|
||||
'accountToken': accountToken,
|
||||
'clientIdentifier': clientIdentifier,
|
||||
'accountLabel': accountLabel,
|
||||
'activeProfile': activeProfile?.toJson(),
|
||||
'servers': servers.map((s) => s.toJson()).toList(),
|
||||
};
|
||||
}
|
||||
|
||||
factory PlexAccountConnection.fromConfigJson({
|
||||
required String id,
|
||||
required Map<String, Object?> json,
|
||||
required ConnectionStatus status,
|
||||
required DateTime createdAt,
|
||||
DateTime? lastAuthenticatedAt,
|
||||
}) {
|
||||
final profileJson = json['activeProfile'];
|
||||
final activeProfile = profileJson is Map<String, dynamic> ? PlexHomeUser.fromJson(profileJson) : null;
|
||||
final serversJson = json['servers'];
|
||||
final servers = serversJson is List
|
||||
? serversJson.whereType<Map<String, dynamic>>().map(PlexServer.fromJson).toList()
|
||||
: <PlexServer>[];
|
||||
return PlexAccountConnection(
|
||||
id: id,
|
||||
accountToken: json['accountToken'] as String? ?? '',
|
||||
clientIdentifier: json['clientIdentifier'] as String? ?? '',
|
||||
accountLabel: json['accountLabel'] as String? ?? 'Plex',
|
||||
activeProfile: activeProfile,
|
||||
servers: servers,
|
||||
status: status,
|
||||
createdAt: createdAt,
|
||||
lastAuthenticatedAt: lastAuthenticatedAt,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// A single-server Jellyfin connection.
|
||||
class JellyfinConnection extends Connection {
|
||||
@override
|
||||
final String id;
|
||||
|
||||
@override
|
||||
final ConnectionStatus status;
|
||||
|
||||
@override
|
||||
final DateTime createdAt;
|
||||
|
||||
@override
|
||||
final DateTime? lastAuthenticatedAt;
|
||||
|
||||
/// Server base URL, no trailing slash. e.g. `https://jellyfin.home.lan`.
|
||||
final String baseUrl;
|
||||
|
||||
/// Server's reported name (System/Info).
|
||||
final String serverName;
|
||||
|
||||
/// Server's machine identifier (System/Info `Id`).
|
||||
final String serverMachineId;
|
||||
|
||||
/// Authenticated Jellyfin user id (UUID).
|
||||
final String userId;
|
||||
|
||||
/// Authenticated user's display name.
|
||||
final String userName;
|
||||
|
||||
/// Long-lived access token from `/Users/AuthenticateByName`.
|
||||
final String accessToken;
|
||||
|
||||
/// Per-device client identifier (same value sent in the
|
||||
/// `Authorization: MediaBrowser DeviceId="..."` header).
|
||||
final String deviceId;
|
||||
|
||||
/// Whether this user is a Jellyfin admin (`/Users/{id}.Policy.IsAdministrator`).
|
||||
/// Captured at auth time so the UI can gate admin-only entries (delete,
|
||||
/// match/unmatch, edit metadata) without an extra round-trip.
|
||||
final bool isAdministrator;
|
||||
|
||||
JellyfinConnection({
|
||||
required this.id,
|
||||
required this.baseUrl,
|
||||
required this.serverName,
|
||||
required this.serverMachineId,
|
||||
required this.userId,
|
||||
required this.userName,
|
||||
required this.accessToken,
|
||||
required this.deviceId,
|
||||
this.isAdministrator = false,
|
||||
this.status = ConnectionStatus.unknown,
|
||||
required this.createdAt,
|
||||
this.lastAuthenticatedAt,
|
||||
});
|
||||
|
||||
@override
|
||||
ConnectionKind get kind => ConnectionKind.jellyfin;
|
||||
|
||||
@override
|
||||
String get displayName => '$userName · $serverName';
|
||||
|
||||
@override
|
||||
String get displayLabel => serverName;
|
||||
|
||||
@override
|
||||
String? get displaySubtitle => '$userName · ${_truncateUrl(baseUrl)}';
|
||||
|
||||
static String _truncateUrl(String url) {
|
||||
if (url.length <= 40) return url;
|
||||
return '${url.substring(0, 37)}…';
|
||||
}
|
||||
|
||||
JellyfinConnection copyWith({
|
||||
String? id,
|
||||
String? baseUrl,
|
||||
String? serverName,
|
||||
String? serverMachineId,
|
||||
String? userId,
|
||||
String? userName,
|
||||
String? accessToken,
|
||||
String? deviceId,
|
||||
bool? isAdministrator,
|
||||
ConnectionStatus? status,
|
||||
DateTime? createdAt,
|
||||
DateTime? lastAuthenticatedAt,
|
||||
}) {
|
||||
return JellyfinConnection(
|
||||
id: id ?? this.id,
|
||||
baseUrl: baseUrl ?? this.baseUrl,
|
||||
serverName: serverName ?? this.serverName,
|
||||
serverMachineId: serverMachineId ?? this.serverMachineId,
|
||||
userId: userId ?? this.userId,
|
||||
userName: userName ?? this.userName,
|
||||
accessToken: accessToken ?? this.accessToken,
|
||||
deviceId: deviceId ?? this.deviceId,
|
||||
isAdministrator: isAdministrator ?? this.isAdministrator,
|
||||
status: status ?? this.status,
|
||||
createdAt: createdAt ?? this.createdAt,
|
||||
lastAuthenticatedAt: lastAuthenticatedAt ?? this.lastAuthenticatedAt,
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
Map<String, Object?> toConfigJson() {
|
||||
return {
|
||||
'baseUrl': baseUrl,
|
||||
'serverName': serverName,
|
||||
'serverMachineId': serverMachineId,
|
||||
'userId': userId,
|
||||
'userName': userName,
|
||||
'accessToken': accessToken,
|
||||
'deviceId': deviceId,
|
||||
'isAdministrator': isAdministrator,
|
||||
};
|
||||
}
|
||||
|
||||
factory JellyfinConnection.fromConfigJson({
|
||||
required String id,
|
||||
required Map<String, Object?> json,
|
||||
required ConnectionStatus status,
|
||||
required DateTime createdAt,
|
||||
DateTime? lastAuthenticatedAt,
|
||||
}) {
|
||||
return JellyfinConnection(
|
||||
id: id,
|
||||
baseUrl: json['baseUrl'] as String? ?? '',
|
||||
serverName: json['serverName'] as String? ?? 'Jellyfin',
|
||||
serverMachineId: json['serverMachineId'] as String? ?? '',
|
||||
userId: json['userId'] as String? ?? '',
|
||||
userName: json['userName'] as String? ?? '',
|
||||
accessToken: json['accessToken'] as String? ?? '',
|
||||
deviceId: json['deviceId'] as String? ?? '',
|
||||
isAdministrator: json['isAdministrator'] as bool? ?? false,
|
||||
status: status,
|
||||
createdAt: createdAt,
|
||||
lastAuthenticatedAt: lastAuthenticatedAt,
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
import 'connection.dart';
|
||||
|
||||
/// Backend-neutral auth service interface. Each backend's implementation
|
||||
/// (`PlexConnectionAuthService`, `JellyfinConnectionAuthService`) drives its
|
||||
/// own UX (PIN flow vs. password) but produces the same opaque
|
||||
/// [Connection] record at the end.
|
||||
abstract class ConnectionAuthService {
|
||||
/// Best-effort check that an existing token still works. Returns false on
|
||||
/// 401/403; throws on transport failures the caller should retry.
|
||||
Future<bool> validate(Connection connection);
|
||||
|
||||
/// Refresh whatever side-channel state belongs to a connection — for Plex
|
||||
/// that's the discovered server list and Home users; for Jellyfin it's a
|
||||
/// no-op once auth has succeeded. Returns the updated connection.
|
||||
Future<Connection> refresh(Connection connection);
|
||||
|
||||
/// Revoke the token server-side and forget local credentials. The caller
|
||||
/// is responsible for removing the row from [ConnectionRegistry].
|
||||
Future<void> signOut(Connection connection);
|
||||
}
|
||||
@@ -0,0 +1,304 @@
|
||||
import 'dart:convert';
|
||||
|
||||
import '../models/plex/plex_home.dart';
|
||||
import '../models/plex/plex_home_user.dart';
|
||||
import '../profiles/profile.dart';
|
||||
import '../profiles/profile_registry.dart';
|
||||
import '../services/plex_auth_service.dart';
|
||||
import '../services/server_registry.dart';
|
||||
import '../services/storage_service.dart';
|
||||
import '../utils/app_logger.dart';
|
||||
import 'connection.dart';
|
||||
import 'connection_registry.dart';
|
||||
|
||||
/// One-shot helpers that bridge between the legacy single-Plex-account
|
||||
/// SharedPreferences state (`StorageService.plexToken` +
|
||||
/// `currentUserUUID` + `homeUsersCache` + `ServerRegistry.getServers()`)
|
||||
/// and the new [ConnectionRegistry] world.
|
||||
///
|
||||
/// Plex Home users are NOT persisted here — the bootstrap copies the
|
||||
/// legacy `homeUsersCache` into the per-connection
|
||||
/// `plex_home_users_{connectionId}` SharedPreferences slot so
|
||||
/// [PlexHomeService] picks it up on cold start.
|
||||
class ConnectionBootstrap {
|
||||
ConnectionBootstrap({
|
||||
required this.storage,
|
||||
required this.connectionRegistry,
|
||||
required this.serverRegistry,
|
||||
required this.profileRegistry,
|
||||
Future<List<PlexHomeUser>> Function(String accountToken)? plexHomeUserFetcher,
|
||||
Future<Map<String, dynamic>> Function(String accountToken)? plexUserInfoFetcher,
|
||||
}) : _plexHomeUserFetcher = plexHomeUserFetcher ?? _fetchPlexHomeUsers,
|
||||
_plexUserInfoFetcher = plexUserInfoFetcher ?? _fetchPlexUserInfo;
|
||||
|
||||
final StorageService storage;
|
||||
final ConnectionRegistry connectionRegistry;
|
||||
final ServerRegistry serverRegistry;
|
||||
final ProfileRegistry profileRegistry;
|
||||
final Future<List<PlexHomeUser>> Function(String accountToken) _plexHomeUserFetcher;
|
||||
final Future<Map<String, dynamic>> Function(String accountToken) _plexUserInfoFetcher;
|
||||
|
||||
static const String _keyProfileMigrationV1Done = 'profile_migration_v1_done';
|
||||
|
||||
/// Run all idempotent boot-time migrations. Best-effort — errors are
|
||||
/// logged but never thrown.
|
||||
Future<void> run() async {
|
||||
await seedFromDevTokenDefine();
|
||||
final hadLegacyPlexToken = (storage.getPlexToken() ?? '').isNotEmpty;
|
||||
final hadLegacyProfileState = _hasLegacyProfileState();
|
||||
final migratedAccount = await migrateLegacyPlexAccount();
|
||||
final account = await _firstPlexAccount(migratedAccount);
|
||||
final alreadyMigrated = storage.prefs.getBool(_keyProfileMigrationV1Done) ?? false;
|
||||
if (!alreadyMigrated) {
|
||||
if (account == null && (hadLegacyPlexToken || hadLegacyProfileState)) {
|
||||
appLogger.w('Migration: legacy profile state present but Plex account was not migrated; will retry later');
|
||||
return;
|
||||
}
|
||||
// Drop any plex_home rows left over from the pre-refactor data
|
||||
// model — Plex Home users are now fetched live, never persisted.
|
||||
await profileRegistry.dropAllPlexHomeRows();
|
||||
if (account != null) {
|
||||
final prepared = await _preparePlexVirtualProfile(account);
|
||||
if (!prepared) {
|
||||
if (migratedAccount != null && hadLegacyPlexToken) {
|
||||
await connectionRegistry.remove(migratedAccount.id);
|
||||
}
|
||||
appLogger.w('Migration: could not hydrate Plex Home profiles for ${account.id}; will retry later');
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (hadLegacyPlexToken) {
|
||||
await storage.clearLegacyPlexToken();
|
||||
}
|
||||
await storage.clearServersList();
|
||||
await storage.prefs.setBool(_keyProfileMigrationV1Done, true);
|
||||
} else {
|
||||
await storage.clearServersList();
|
||||
await _recoverLegacyProfilePromotionIfNeeded(account);
|
||||
await _migrateLegacyPlexHomeUsersCacheForExistingAccount(account);
|
||||
}
|
||||
}
|
||||
|
||||
bool _hasLegacyProfileState() {
|
||||
return (storage.getCurrentUserUUID() ?? '').isNotEmpty ||
|
||||
(storage.prefs.getString('home_users_cache') ?? '').isNotEmpty;
|
||||
}
|
||||
|
||||
/// Screenshot automation injects a Plex token via the `PLEX_TOKEN`
|
||||
/// dart-define so the app boots already-signed-in. Inserts a
|
||||
/// [PlexAccountConnection] directly when the env var is non-empty AND
|
||||
/// the registry doesn't already have a Plex account, fetching the user
|
||||
/// info + servers like the auth screen does. No-op in normal builds.
|
||||
Future<void> seedFromDevTokenDefine() async {
|
||||
const devToken = String.fromEnvironment('PLEX_TOKEN');
|
||||
if (devToken.isEmpty) return;
|
||||
final existing = await connectionRegistry.list();
|
||||
if (existing.whereType<PlexAccountConnection>().isNotEmpty) return;
|
||||
|
||||
try {
|
||||
final auth = await PlexAuthService.create();
|
||||
try {
|
||||
final info = await auth.getUserInfo(devToken);
|
||||
final servers = await auth.fetchServers(devToken);
|
||||
final clientId = await storage.getOrCreateClientIdentifier();
|
||||
final conn = PlexAccountConnection(
|
||||
id: 'plex.$clientId',
|
||||
accountToken: devToken,
|
||||
clientIdentifier: clientId,
|
||||
accountLabel: (info['username'] as String?) ?? (info['email'] as String?) ?? 'Plex',
|
||||
servers: servers,
|
||||
createdAt: DateTime.now(),
|
||||
lastAuthenticatedAt: DateTime.now(),
|
||||
);
|
||||
await connectionRegistry.upsert(conn);
|
||||
appLogger.i('Seeded Plex account from PLEX_TOKEN dart-define as ${conn.id}');
|
||||
} finally {
|
||||
auth.dispose();
|
||||
}
|
||||
} catch (e, st) {
|
||||
appLogger.w('PLEX_TOKEN seed failed', error: e, stackTrace: st);
|
||||
}
|
||||
}
|
||||
|
||||
/// If a legacy Plex token sits in [StorageService] without a corresponding
|
||||
/// row in [ConnectionRegistry], wrap it as a [PlexAccountConnection] and
|
||||
/// insert. Best-effort: errors are logged but never thrown.
|
||||
Future<PlexAccountConnection?> migrateLegacyPlexAccount() async {
|
||||
final token = storage.getPlexToken();
|
||||
if (token == null || token.isEmpty) return null;
|
||||
|
||||
final existing = await connectionRegistry.list();
|
||||
final alreadyMigrated = existing
|
||||
.whereType<PlexAccountConnection>()
|
||||
.where((c) => c.accountToken == token)
|
||||
.firstOrNull;
|
||||
if (alreadyMigrated != null) {
|
||||
return alreadyMigrated;
|
||||
}
|
||||
|
||||
try {
|
||||
final clientId = await storage.getOrCreateClientIdentifier();
|
||||
final servers = await serverRegistry.getServers();
|
||||
|
||||
String accountLabel = 'Plex';
|
||||
String accountUuid = '';
|
||||
try {
|
||||
final info = await _plexUserInfoFetcher(token);
|
||||
accountLabel = (info['username'] as String?) ?? (info['email'] as String?) ?? 'Plex';
|
||||
accountUuid = (info['uuid'] as String?)?.trim() ?? '';
|
||||
} catch (e) {
|
||||
appLogger.d('Plex migration: account label lookup failed (using fallback): $e');
|
||||
}
|
||||
|
||||
final conn = PlexAccountConnection(
|
||||
id: 'plex.${accountUuid.isNotEmpty ? accountUuid : clientId}',
|
||||
accountToken: token,
|
||||
clientIdentifier: clientId,
|
||||
accountLabel: accountLabel,
|
||||
servers: servers,
|
||||
createdAt: DateTime.now(),
|
||||
lastAuthenticatedAt: DateTime.now(),
|
||||
);
|
||||
await connectionRegistry.upsert(conn);
|
||||
appLogger.i('Migrated legacy Plex account into ConnectionRegistry as ${conn.id}');
|
||||
return conn;
|
||||
} catch (e, st) {
|
||||
appLogger.w('Plex account migration failed', error: e, stackTrace: st);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/// Hydrate Plex Home users for [account] and select a virtual Plex Home
|
||||
/// profile. Plex users are never persisted as local Plezy profiles.
|
||||
Future<bool> _preparePlexVirtualProfile(PlexAccountConnection account) async {
|
||||
final copied = await _migrateLegacyPlexHomeUsersCache(account.id);
|
||||
var users = copied ? _readPlexHomeUsersCache(account.id) : null;
|
||||
users ??= await _fetchAndCachePlexHomeUsers(account);
|
||||
final hydratedUsers = users;
|
||||
if (hydratedUsers.isEmpty) return false;
|
||||
|
||||
final legacyActiveUuid = storage.getCurrentUserUUID();
|
||||
PlexHomeUser selected;
|
||||
if (legacyActiveUuid != null && legacyActiveUuid.isNotEmpty) {
|
||||
selected = hydratedUsers.firstWhere(
|
||||
(u) => u.uuid == legacyActiveUuid,
|
||||
orElse: () => _preferredPlexHomeUser(hydratedUsers),
|
||||
);
|
||||
if (selected.uuid != legacyActiveUuid) {
|
||||
appLogger.w('Migration: legacy Plex Home UUID $legacyActiveUuid not found; using ${selected.uuid} instead');
|
||||
}
|
||||
} else {
|
||||
selected = _preferredPlexHomeUser(hydratedUsers);
|
||||
}
|
||||
|
||||
final activeProfileId = plexHomeProfileId(accountConnectionId: account.id, homeUserUuid: selected.uuid);
|
||||
await storage.setActiveProfileId(activeProfileId);
|
||||
await storage.clearCurrentUserUUID();
|
||||
await Future.wait([storage.prefs.remove('home_users_cache'), storage.prefs.remove('home_users_cache_expiry')]);
|
||||
appLogger.i('Migration: selected Plex Home profile ${selected.displayName} → $activeProfileId');
|
||||
return true;
|
||||
}
|
||||
|
||||
PlexHomeUser _preferredPlexHomeUser(List<PlexHomeUser> users) {
|
||||
return users.firstWhere((u) => u.admin, orElse: () => users.first);
|
||||
}
|
||||
|
||||
Future<bool> _migrateLegacyPlexHomeUsersCache(String connectionId) async {
|
||||
final raw = storage.prefs.getString('home_users_cache');
|
||||
if (raw == null || raw.isEmpty) return false;
|
||||
|
||||
try {
|
||||
final decoded = jsonDecode(raw);
|
||||
if (decoded is! Map<String, dynamic>) return false;
|
||||
final home = PlexHome.fromJson(decoded);
|
||||
if (home.users.isEmpty) return false;
|
||||
await storage.savePlexHomeUsersCache(connectionId, home.users.map((u) => u.toJson()).toList());
|
||||
appLogger.i('Migration: copied ${home.users.length} Plex Home users into cache for $connectionId');
|
||||
return true;
|
||||
} catch (e, st) {
|
||||
appLogger.w('Plex Home cache migration failed', error: e, stackTrace: st);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
List<PlexHomeUser>? _readPlexHomeUsersCache(String connectionId) {
|
||||
final raw = storage.getPlexHomeUsersCacheJson(connectionId);
|
||||
if (raw == null || raw.isEmpty) return null;
|
||||
try {
|
||||
final decoded = jsonDecode(raw);
|
||||
if (decoded is! List) return null;
|
||||
return decoded.whereType<Map<String, dynamic>>().map(PlexHomeUser.fromJson).toList();
|
||||
} catch (e, st) {
|
||||
appLogger.w('Migration: failed to read Plex Home cache for $connectionId', error: e, stackTrace: st);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Future<List<PlexHomeUser>> _fetchAndCachePlexHomeUsers(PlexAccountConnection account) async {
|
||||
try {
|
||||
final users = await _plexHomeUserFetcher(account.accountToken);
|
||||
if (users.isNotEmpty) {
|
||||
await storage.savePlexHomeUsersCache(account.id, users.map((u) => u.toJson()).toList());
|
||||
appLogger.i('Migration: fetched ${users.length} Plex Home users for ${account.id}');
|
||||
}
|
||||
return users;
|
||||
} catch (e, st) {
|
||||
appLogger.w('Migration: Plex Home fetch failed for ${account.id}', error: e, stackTrace: st);
|
||||
return const [];
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> _migrateLegacyPlexHomeUsersCacheForExistingAccount(PlexAccountConnection? account) async {
|
||||
if (storage.prefs.getString('home_users_cache') == null) return;
|
||||
var target = account;
|
||||
if (target == null) {
|
||||
final connections = await connectionRegistry.list();
|
||||
for (final conn in connections) {
|
||||
if (conn is PlexAccountConnection) {
|
||||
target = conn;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (target == null) return;
|
||||
final copied = await _migrateLegacyPlexHomeUsersCache(target.id);
|
||||
if (copied) {
|
||||
await Future.wait([storage.prefs.remove('home_users_cache'), storage.prefs.remove('home_users_cache_expiry')]);
|
||||
}
|
||||
}
|
||||
|
||||
Future<PlexAccountConnection?> _firstPlexAccount(PlexAccountConnection? preferred) async {
|
||||
if (preferred != null) return preferred;
|
||||
final connections = await connectionRegistry.list();
|
||||
for (final conn in connections) {
|
||||
if (conn is PlexAccountConnection) return conn;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Future<void> _recoverLegacyProfilePromotionIfNeeded(PlexAccountConnection? account) async {
|
||||
if (!_hasLegacyProfileState()) return;
|
||||
final target = await _firstPlexAccount(account);
|
||||
if (target == null) return;
|
||||
await _preparePlexVirtualProfile(target);
|
||||
}
|
||||
}
|
||||
|
||||
Future<List<PlexHomeUser>> _fetchPlexHomeUsers(String accountToken) async {
|
||||
final auth = await PlexAuthService.create();
|
||||
try {
|
||||
final home = await auth.getHomeUsers(accountToken);
|
||||
return home.users;
|
||||
} finally {
|
||||
auth.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
Future<Map<String, dynamic>> _fetchPlexUserInfo(String accountToken) async {
|
||||
final auth = await PlexAuthService.create();
|
||||
try {
|
||||
return await auth.getUserInfo(accountToken);
|
||||
} finally {
|
||||
auth.dispose();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,188 @@
|
||||
import 'dart:async';
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:collection/collection.dart';
|
||||
import 'package:drift/drift.dart';
|
||||
|
||||
import '../database/app_database.dart';
|
||||
import '../services/credential_vault.dart';
|
||||
import '../utils/app_logger.dart';
|
||||
import 'connection.dart';
|
||||
|
||||
/// CRUD over the persisted [Connections] table. The registry is the source
|
||||
/// of truth for which connections the user has added; the runtime
|
||||
/// `MultiServerManager` populates per-server clients from these records.
|
||||
///
|
||||
/// Single-connection users get a default automatically — power users with
|
||||
/// multiple connections can override it via [setDefault].
|
||||
class ConnectionRegistry {
|
||||
ConnectionRegistry(this._db);
|
||||
|
||||
final AppDatabase _db;
|
||||
|
||||
/// Emits the current set of connections after every mutation. Drift's
|
||||
/// `watch()` provides this for free.
|
||||
Stream<List<Connection>> watchConnections() {
|
||||
return (_db.select(_db.connections)..orderBy([(t) => OrderingTerm.asc(t.createdAt)])).watch().asyncMap(
|
||||
(rows) async => (await Future.wait(rows.map(_rowToConnection))).whereType<Connection>().toList(),
|
||||
);
|
||||
}
|
||||
|
||||
/// One-shot fetch of all stored connections.
|
||||
Future<List<Connection>> list() async {
|
||||
final rows = await (_db.select(_db.connections)..orderBy([(t) => OrderingTerm.asc(t.createdAt)])).get();
|
||||
return (await Future.wait(rows.map(_rowToConnection))).whereType<Connection>().toList();
|
||||
}
|
||||
|
||||
/// Lookup a connection by id.
|
||||
Future<Connection?> get(String id) async {
|
||||
final row = await (_db.select(_db.connections)..where((t) => t.id.equals(id))).getSingleOrNull();
|
||||
if (row == null) return null;
|
||||
return _rowToConnection(row);
|
||||
}
|
||||
|
||||
/// Returns the user's preferred connection — either the row marked
|
||||
/// [Connections.isDefault], or the only row if exactly one exists, or
|
||||
/// null when no connections are stored.
|
||||
Future<Connection?> getDefault() async {
|
||||
final rows = await _db.select(_db.connections).get();
|
||||
if (rows.isEmpty) return null;
|
||||
final flagged = rows.firstWhereOrNull((r) => r.isDefault);
|
||||
final picked = flagged ?? (rows.length == 1 ? rows.single : null);
|
||||
return picked == null ? null : _rowToConnection(picked);
|
||||
}
|
||||
|
||||
/// Insert or replace [connection]. If this is the first stored connection
|
||||
/// it is automatically marked default; re-upserting an existing row keeps
|
||||
/// the row's current `isDefault` (so token/metadata refreshes don't clear
|
||||
/// the default flag).
|
||||
Future<void> upsert(Connection connection) async {
|
||||
final existing = await (_db.select(_db.connections)..where((t) => t.id.equals(connection.id))).getSingleOrNull();
|
||||
final bool isDefault;
|
||||
if (existing != null) {
|
||||
isDefault = existing.isDefault;
|
||||
} else {
|
||||
final any =
|
||||
await (_db.selectOnly(_db.connections)
|
||||
..addColumns([_db.connections.id])
|
||||
..limit(1))
|
||||
.getSingleOrNull();
|
||||
isDefault = any == null;
|
||||
}
|
||||
final protectedConfig = await CredentialVault.protectConnectionConfig(
|
||||
connection.kind.id,
|
||||
connection.toConfigJson(),
|
||||
);
|
||||
final row = ConnectionsCompanion(
|
||||
id: Value(connection.id),
|
||||
kind: Value(connection.kind.id),
|
||||
displayName: Value(connection.displayName),
|
||||
configJson: Value(jsonEncode(protectedConfig)),
|
||||
isDefault: Value(isDefault),
|
||||
createdAt: Value(connection.createdAt.millisecondsSinceEpoch),
|
||||
lastAuthenticatedAt: Value(connection.lastAuthenticatedAt?.millisecondsSinceEpoch),
|
||||
);
|
||||
await _db.into(_db.connections).insertOnConflictUpdate(row);
|
||||
appLogger.d('ConnectionRegistry: upserted ${connection.kind.id}/${connection.id}');
|
||||
}
|
||||
|
||||
/// Remove a stored connection. If the removed row was the default, the
|
||||
/// oldest remaining connection (if any) becomes default.
|
||||
Future<void> remove(String id) async {
|
||||
await (_db.delete(_db.connections)..where((t) => t.id.equals(id))).go();
|
||||
final remaining = await (_db.select(_db.connections)..orderBy([(t) => OrderingTerm.asc(t.createdAt)])).get();
|
||||
if (remaining.isNotEmpty && !remaining.any((r) => r.isDefault)) {
|
||||
await (_db.update(
|
||||
_db.connections,
|
||||
)..where((t) => t.id.equals(remaining.first.id))).write(const ConnectionsCompanion(isDefault: Value(true)));
|
||||
}
|
||||
appLogger.d('ConnectionRegistry: removed $id');
|
||||
}
|
||||
|
||||
/// Set [id] as the default connection. Clears the flag on all others.
|
||||
Future<void> setDefault(String id) async {
|
||||
await _db.transaction(() async {
|
||||
await _db.update(_db.connections).write(const ConnectionsCompanion(isDefault: Value(false)));
|
||||
await (_db.update(
|
||||
_db.connections,
|
||||
)..where((t) => t.id.equals(id))).write(const ConnectionsCompanion(isDefault: Value(true)));
|
||||
});
|
||||
}
|
||||
|
||||
/// Update only the auth-related metadata on an existing row (token,
|
||||
/// `lastAuthenticatedAt`). Used by the auth flow after a successful
|
||||
/// silent refresh without touching the rest of the config.
|
||||
Future<void> recordAuthSuccess(String id, DateTime at) async {
|
||||
await (_db.update(_db.connections)..where((t) => t.id.equals(id))).write(
|
||||
ConnectionsCompanion(lastAuthenticatedAt: Value(at.millisecondsSinceEpoch)),
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> clear() async {
|
||||
await _db.delete(_db.connections).go();
|
||||
}
|
||||
|
||||
/// All Plex accounts in insertion order. Convenience over
|
||||
/// `(await list()).whereType<PlexAccountConnection>()` — cuts ~3 lines from
|
||||
/// every caller that needs to filter by backend.
|
||||
Future<List<PlexAccountConnection>> listPlexAccounts() async {
|
||||
final all = await list();
|
||||
return all.whereType<PlexAccountConnection>().toList();
|
||||
}
|
||||
|
||||
/// All Jellyfin connections in insertion order. Symmetric helper to
|
||||
/// [listPlexAccounts].
|
||||
Future<List<JellyfinConnection>> listJellyfin() async {
|
||||
final all = await list();
|
||||
return all.whereType<JellyfinConnection>().toList();
|
||||
}
|
||||
|
||||
/// Lookup a [PlexAccountConnection] by id. Returns `null` if no row
|
||||
/// matches OR the row exists but isn't a Plex account.
|
||||
Future<PlexAccountConnection?> getPlexAccount(String id) async {
|
||||
final c = await get(id);
|
||||
return c is PlexAccountConnection ? c : null;
|
||||
}
|
||||
|
||||
/// Lookup a [JellyfinConnection] by id. Returns `null` if no row matches
|
||||
/// OR the row exists but isn't a Jellyfin connection.
|
||||
Future<JellyfinConnection?> getJellyfin(String id) async {
|
||||
final c = await get(id);
|
||||
return c is JellyfinConnection ? c : null;
|
||||
}
|
||||
|
||||
Future<Connection?> _rowToConnection(ConnectionRow row) async {
|
||||
try {
|
||||
final json = jsonDecode(row.configJson) as Map<String, dynamic>;
|
||||
final kind = ConnectionKind.fromId(row.kind);
|
||||
final revealed = await CredentialVault.revealConnectionConfig(kind.id, json);
|
||||
final createdAt = DateTime.fromMillisecondsSinceEpoch(row.createdAt);
|
||||
final lastAuth = row.lastAuthenticatedAt == null
|
||||
? null
|
||||
: DateTime.fromMillisecondsSinceEpoch(row.lastAuthenticatedAt!);
|
||||
final connection = switch (kind) {
|
||||
ConnectionKind.plex => PlexAccountConnection.fromConfigJson(
|
||||
id: row.id,
|
||||
json: revealed.config,
|
||||
status: ConnectionStatus.unknown,
|
||||
createdAt: createdAt,
|
||||
lastAuthenticatedAt: lastAuth,
|
||||
),
|
||||
ConnectionKind.jellyfin => JellyfinConnection.fromConfigJson(
|
||||
id: row.id,
|
||||
json: revealed.config,
|
||||
status: ConnectionStatus.unknown,
|
||||
createdAt: createdAt,
|
||||
lastAuthenticatedAt: lastAuth,
|
||||
),
|
||||
};
|
||||
if (revealed.migrated) {
|
||||
await upsert(connection);
|
||||
}
|
||||
return connection;
|
||||
} catch (e, st) {
|
||||
appLogger.e('ConnectionRegistry: failed to decode connection ${row.id}', error: e, stackTrace: st);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
+302
-63
@@ -12,11 +12,45 @@ import '../utils/global_key_utils.dart';
|
||||
|
||||
part 'app_database.g.dart';
|
||||
|
||||
/// String values stored in [OfflineWatchProgress.actionType] (use `.name`).
|
||||
enum OfflineActionType { progress, watched, unwatched }
|
||||
/// Action queued in the offline watch-progress sync table. The serialized
|
||||
/// form ([id]) is what gets persisted in [OfflineWatchProgress.actionType];
|
||||
/// keep these strings stable across renames so existing rows resolve.
|
||||
enum OfflineActionType {
|
||||
progress,
|
||||
watched,
|
||||
unwatched;
|
||||
|
||||
// Simplified database with API cache for offline support
|
||||
@DriftDatabase(tables: [DownloadedMedia, DownloadQueue, ApiCache, OfflineWatchProgress, SyncRules])
|
||||
/// Stable string id used for persistence. Survives an enum-name rename
|
||||
/// (e.g. `progress` → `inProgress`) — `.name` would corrupt every row.
|
||||
String get id => switch (this) {
|
||||
OfflineActionType.progress => 'progress',
|
||||
OfflineActionType.watched => 'watched',
|
||||
OfflineActionType.unwatched => 'unwatched',
|
||||
};
|
||||
|
||||
/// Inverse of [id]. Throws on unknown so a typo in production doesn't
|
||||
/// silently fall back to the wrong action.
|
||||
static OfflineActionType fromId(String id) => switch (id) {
|
||||
'progress' => OfflineActionType.progress,
|
||||
'watched' => OfflineActionType.watched,
|
||||
'unwatched' => OfflineActionType.unwatched,
|
||||
_ => throw ArgumentError('Unknown OfflineActionType id: $id'),
|
||||
};
|
||||
}
|
||||
|
||||
@DriftDatabase(
|
||||
tables: [
|
||||
DownloadedMedia,
|
||||
DownloadOwners,
|
||||
DownloadQueue,
|
||||
ApiCache,
|
||||
OfflineWatchProgress,
|
||||
SyncRules,
|
||||
Connections,
|
||||
Profiles,
|
||||
ProfileConnections,
|
||||
],
|
||||
)
|
||||
class AppDatabase extends _$AppDatabase {
|
||||
AppDatabase() : super(_openConnection());
|
||||
|
||||
@@ -26,11 +60,20 @@ class AppDatabase extends _$AppDatabase {
|
||||
AppDatabase.forTesting(super.e);
|
||||
|
||||
@override
|
||||
int get schemaVersion => 13;
|
||||
int get schemaVersion => 14;
|
||||
|
||||
@override
|
||||
MigrationStrategy get migration {
|
||||
return MigrationStrategy(
|
||||
// Enforce ProfileConnections → Profiles/Connections cascades.
|
||||
// Drift turns FKs *off* during migrations, so the per-connection
|
||||
// pragma we set in `_openConnection` is wiped on first open. This
|
||||
// hook runs after migrations and re-enables it for subsequent
|
||||
// queries — also applies to in-memory test databases that don't go
|
||||
// through `_openConnection`.
|
||||
beforeOpen: (details) async {
|
||||
await customStatement('PRAGMA foreign_keys = ON');
|
||||
},
|
||||
onCreate: (Migrator m) async {
|
||||
await m.createAll();
|
||||
},
|
||||
@@ -41,19 +84,17 @@ class AppDatabase extends _$AppDatabase {
|
||||
}
|
||||
if (from < 8) {
|
||||
appLogger.i('Adding bgTaskId column to DownloadedMedia (v8 migration)');
|
||||
try {
|
||||
await m.addColumn(downloadedMedia, downloadedMedia.bgTaskId);
|
||||
} catch (e) {
|
||||
appLogger.w('bgTaskId column may already exist: $e');
|
||||
}
|
||||
await _ignoreAlreadyExists(
|
||||
'DownloadedMedia.bgTaskId column',
|
||||
() => m.addColumn(downloadedMedia, downloadedMedia.bgTaskId),
|
||||
);
|
||||
}
|
||||
if (from < 9) {
|
||||
appLogger.i('Adding mediaIndex column to DownloadedMedia (v9 migration)');
|
||||
try {
|
||||
await m.addColumn(downloadedMedia, downloadedMedia.mediaIndex);
|
||||
} catch (e) {
|
||||
appLogger.w('mediaIndex column may already exist: $e');
|
||||
}
|
||||
await _ignoreAlreadyExists(
|
||||
'DownloadedMedia.mediaIndex column',
|
||||
() => m.addColumn(downloadedMedia, downloadedMedia.mediaIndex),
|
||||
);
|
||||
}
|
||||
if (from < 10) {
|
||||
appLogger.i('Adding SyncRules table (v10 migration)');
|
||||
@@ -61,19 +102,14 @@ class AppDatabase extends _$AppDatabase {
|
||||
}
|
||||
if (from < 11) {
|
||||
appLogger.i('Adding enabled column to SyncRules (v11 migration)');
|
||||
try {
|
||||
await m.addColumn(syncRules, syncRules.enabled);
|
||||
} catch (e) {
|
||||
appLogger.w('enabled column may already exist: $e');
|
||||
}
|
||||
await _ignoreAlreadyExists('SyncRules.enabled column', () => m.addColumn(syncRules, syncRules.enabled));
|
||||
}
|
||||
if (from < 12) {
|
||||
appLogger.i('Adding downloadFilter column to SyncRules (v12 migration)');
|
||||
try {
|
||||
await m.addColumn(syncRules, syncRules.downloadFilter);
|
||||
} catch (e) {
|
||||
appLogger.w('downloadFilter column may already exist: $e');
|
||||
}
|
||||
await _ignoreAlreadyExists(
|
||||
'SyncRules.downloadFilter column',
|
||||
() => m.addColumn(syncRules, syncRules.downloadFilter),
|
||||
);
|
||||
}
|
||||
if (from < 13) {
|
||||
appLogger.i('Adding indexes on DownloadedMedia hot-queried columns (v13 migration)');
|
||||
@@ -84,38 +120,163 @@ class AppDatabase extends _$AppDatabase {
|
||||
'idx_downloaded_media_grandparent': idxDownloadedMediaGrandparent,
|
||||
};
|
||||
for (final entry in indexes.entries) {
|
||||
try {
|
||||
await m.create(entry.value);
|
||||
} catch (e) {
|
||||
appLogger.w('Index ${entry.key} may already exist: $e');
|
||||
}
|
||||
await _ignoreAlreadyExists('Index ${entry.key}', () => m.create(entry.value));
|
||||
}
|
||||
}
|
||||
if (from < 14) {
|
||||
appLogger.i(
|
||||
'Adding Connections, Profiles, ProfileConnections, DownloadOwners + scope/profile columns (v14 migration)',
|
||||
);
|
||||
|
||||
await m.createTable(connections);
|
||||
await _ignoreAlreadyExists('Index idx_connections_kind', () => m.create(idxConnectionsKind));
|
||||
|
||||
await m.createTable(profiles);
|
||||
await _ignoreAlreadyExists('Index idx_profiles_kind', () => m.create(idxProfilesKind));
|
||||
|
||||
await m.createTable(profileConnections);
|
||||
await _ignoreAlreadyExists(
|
||||
'Index idx_profile_connections_connection_id',
|
||||
() => m.create(idxProfileConnectionsConnectionId),
|
||||
);
|
||||
await _ignoreAlreadyExists(
|
||||
'Index idx_profile_connections_profile_id',
|
||||
() => m.create(idxProfileConnectionsProfileId),
|
||||
);
|
||||
|
||||
await _ignoreAlreadyExists('DownloadOwners table', () => m.createTable(downloadOwners));
|
||||
await _ignoreAlreadyExists('Index idx_download_owners_profile', () => m.create(idxDownloadOwnersProfile));
|
||||
await _ignoreAlreadyExists(
|
||||
'Index idx_download_owners_global_key',
|
||||
() => m.create(idxDownloadOwnersGlobalKey),
|
||||
);
|
||||
|
||||
await _ignoreAlreadyExists(
|
||||
'DownloadedMedia.clientScopeId column',
|
||||
() => m.addColumn(downloadedMedia, downloadedMedia.clientScopeId),
|
||||
);
|
||||
await _ignoreAlreadyExists(
|
||||
'OfflineWatchProgress.clientScopeId column',
|
||||
() => m.addColumn(offlineWatchProgress, offlineWatchProgress.clientScopeId),
|
||||
);
|
||||
await _ignoreAlreadyExists('SyncRules.profileId column', () => m.addColumn(syncRules, syncRules.profileId));
|
||||
await _ignoreAlreadyExists(
|
||||
'OfflineWatchProgress.profileId column',
|
||||
() => m.addColumn(offlineWatchProgress, offlineWatchProgress.profileId),
|
||||
);
|
||||
|
||||
await customStatement('''
|
||||
UPDATE downloaded_media
|
||||
SET client_scope_id = (
|
||||
SELECT id FROM connections
|
||||
WHERE kind = 'jellyfin'
|
||||
AND substr(id, 1, length(downloaded_media.server_id) + 1) = downloaded_media.server_id || '/'
|
||||
LIMIT 1
|
||||
)
|
||||
WHERE client_scope_id IS NULL
|
||||
AND EXISTS (
|
||||
SELECT 1 FROM connections
|
||||
WHERE kind = 'jellyfin'
|
||||
AND substr(id, 1, length(downloaded_media.server_id) + 1) = downloaded_media.server_id || '/'
|
||||
)
|
||||
''');
|
||||
await customStatement('''
|
||||
UPDATE offline_watch_progress
|
||||
SET client_scope_id = (
|
||||
SELECT id FROM connections
|
||||
WHERE kind = 'jellyfin'
|
||||
AND substr(id, 1, length(offline_watch_progress.server_id) + 1) = offline_watch_progress.server_id || '/'
|
||||
LIMIT 1
|
||||
)
|
||||
WHERE client_scope_id IS NULL
|
||||
AND EXISTS (
|
||||
SELECT 1 FROM connections
|
||||
WHERE kind = 'jellyfin'
|
||||
AND substr(id, 1, length(offline_watch_progress.server_id) + 1) = offline_watch_progress.server_id || '/'
|
||||
)
|
||||
''');
|
||||
|
||||
await _ignoreAlreadyExists(
|
||||
'Index idx_offline_watch_progress_server',
|
||||
() => m.create(idxOfflineWatchProgressServer),
|
||||
);
|
||||
await _ignoreAlreadyExists('Index idx_sync_rules_profile', () => m.create(idxSyncRulesProfile));
|
||||
await _ignoreAlreadyExists(
|
||||
'Index idx_offline_watch_progress_profile',
|
||||
() => m.create(idxOfflineWatchProgressProfile),
|
||||
);
|
||||
}
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
// Offline Watch Progress Operations
|
||||
// ============================================================
|
||||
Future<void> _ignoreAlreadyExists(String label, Future<void> Function() operation) async {
|
||||
try {
|
||||
await operation();
|
||||
} catch (e) {
|
||||
final message = e.toString().toLowerCase();
|
||||
if (message.contains('already exists') || message.contains('duplicate column name')) {
|
||||
appLogger.w('$label already exists during migration: $e');
|
||||
return;
|
||||
}
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
|
||||
Expression<bool> _clientScopePredicate(GeneratedColumn<String> column, String? clientScopeId) {
|
||||
return clientScopeId == null ? column.isNull() : column.equals(clientScopeId);
|
||||
}
|
||||
|
||||
Expression<bool> _nullableTextPredicate(GeneratedColumn<String> column, String? value) {
|
||||
return value == null ? column.isNull() : column.equals(value);
|
||||
}
|
||||
|
||||
/// Get all pending offline watch actions for sync
|
||||
Future<List<OfflineWatchProgressItem>> getPendingWatchActions() {
|
||||
return (select(offlineWatchProgress)..orderBy([(t) => OrderingTerm.asc(t.createdAt)])).get();
|
||||
Future<List<OfflineWatchProgressItem>> getPendingWatchActions({String? profileId}) {
|
||||
final query = select(offlineWatchProgress)..orderBy([(t) => OrderingTerm.asc(t.createdAt)]);
|
||||
if (profileId != null) {
|
||||
query.where((t) => t.profileId.equals(profileId));
|
||||
}
|
||||
return query.get();
|
||||
}
|
||||
|
||||
/// Claim pre-v18 offline watch actions for [profileId]. Those rows predate
|
||||
/// profile ownership and have `NULL profile_id`; the first active profile
|
||||
/// inherits them so already-watched offline progress is not stranded.
|
||||
Future<void> adoptLegacyOfflineWatchActionsForProfile(String profileId) async {
|
||||
if (profileId.isEmpty) return;
|
||||
await (update(
|
||||
offlineWatchProgress,
|
||||
)..where((t) => t.profileId.isNull())).write(OfflineWatchProgressCompanion(profileId: Value(profileId)));
|
||||
}
|
||||
|
||||
/// Get pending watch actions for a specific server
|
||||
Future<List<OfflineWatchProgressItem>> getPendingWatchActionsForServer(String serverId) {
|
||||
Future<List<OfflineWatchProgressItem>> getPendingWatchActionsForServer(String serverId, {String? profileId}) {
|
||||
return (select(offlineWatchProgress)
|
||||
..where((t) => t.serverId.equals(serverId))
|
||||
..where(
|
||||
(t) =>
|
||||
t.serverId.equals(serverId) &
|
||||
(profileId == null ? const Constant(true) : t.profileId.equals(profileId)),
|
||||
)
|
||||
..orderBy([(t) => OrderingTerm.asc(t.createdAt)]))
|
||||
.get();
|
||||
}
|
||||
|
||||
/// Get the latest action for a specific item
|
||||
Future<OfflineWatchProgressItem?> getLatestWatchAction(String globalKey) {
|
||||
Future<OfflineWatchProgressItem?> getLatestWatchAction(
|
||||
String globalKey, {
|
||||
String? profileId,
|
||||
bool filterProfile = false,
|
||||
String? clientScopeId,
|
||||
bool filterClientScope = false,
|
||||
}) {
|
||||
return (select(offlineWatchProgress)
|
||||
..where((t) => t.globalKey.equals(globalKey))
|
||||
..where(
|
||||
(t) =>
|
||||
t.globalKey.equals(globalKey) &
|
||||
(filterProfile ? _nullableTextPredicate(t.profileId, profileId) : const Constant(true)) &
|
||||
(filterClientScope ? _clientScopePredicate(t.clientScopeId, clientScopeId) : const Constant(true)),
|
||||
)
|
||||
..orderBy([(t) => OrderingTerm.desc(t.updatedAt)])
|
||||
..limit(1))
|
||||
.getSingleOrNull();
|
||||
@@ -125,19 +286,32 @@ class AppDatabase extends _$AppDatabase {
|
||||
///
|
||||
/// Returns a map of globalKey -> latest action for each key.
|
||||
/// Keys with no actions will not be present in the returned map.
|
||||
Future<Map<String, OfflineWatchProgressItem>> getLatestWatchActionsForKeys(Set<String> globalKeys) async {
|
||||
Future<Map<String, OfflineWatchProgressItem>> getLatestWatchActionsForKeys(
|
||||
Set<String> globalKeys, {
|
||||
String? profileId,
|
||||
bool filterProfile = false,
|
||||
Map<String, String?>? clientScopeIdsByGlobalKey,
|
||||
}) async {
|
||||
if (globalKeys.isEmpty) return {};
|
||||
|
||||
// Query all actions for the given keys
|
||||
final allActions =
|
||||
await (select(offlineWatchProgress)
|
||||
..where((t) => t.globalKey.isIn(globalKeys))
|
||||
..where(
|
||||
(t) =>
|
||||
t.globalKey.isIn(globalKeys) &
|
||||
(filterProfile ? _nullableTextPredicate(t.profileId, profileId) : const Constant(true)),
|
||||
)
|
||||
..orderBy([(t) => OrderingTerm.desc(t.updatedAt)]))
|
||||
.get();
|
||||
|
||||
// Group by globalKey and take the latest (first due to ordering)
|
||||
final result = <String, OfflineWatchProgressItem>{};
|
||||
for (final action in allActions) {
|
||||
if (clientScopeIdsByGlobalKey != null && clientScopeIdsByGlobalKey.containsKey(action.globalKey)) {
|
||||
final expectedScope = clientScopeIdsByGlobalKey[action.globalKey];
|
||||
if (!_clientScopeValuesMatch(action.clientScopeId, expectedScope)) continue;
|
||||
}
|
||||
// Only keep the first (latest) action for each key
|
||||
result.putIfAbsent(action.globalKey, () => action);
|
||||
}
|
||||
@@ -145,9 +319,17 @@ class AppDatabase extends _$AppDatabase {
|
||||
return result;
|
||||
}
|
||||
|
||||
/// Insert or update a progress action (merges with existing)
|
||||
bool _clientScopeValuesMatch(String? actual, String? expected) {
|
||||
final normalizedActual = actual == null || actual.isEmpty ? null : actual;
|
||||
final normalizedExpected = expected == null || expected.isEmpty ? null : expected;
|
||||
return normalizedActual == normalizedExpected;
|
||||
}
|
||||
|
||||
/// Insert or update a progress action (merges with existing).
|
||||
Future<void> upsertProgressAction({
|
||||
String? profileId,
|
||||
required String serverId,
|
||||
String? clientScopeId,
|
||||
required String ratingKey,
|
||||
required int viewOffset,
|
||||
required int duration,
|
||||
@@ -159,7 +341,13 @@ class AppDatabase extends _$AppDatabase {
|
||||
// Check for existing progress entry
|
||||
final existing =
|
||||
await (select(offlineWatchProgress)
|
||||
..where((t) => t.globalKey.equals(globalKey) & t.actionType.equals(OfflineActionType.progress.name))
|
||||
..where(
|
||||
(t) =>
|
||||
t.globalKey.equals(globalKey) &
|
||||
_nullableTextPredicate(t.profileId, profileId) &
|
||||
_clientScopePredicate(t.clientScopeId, clientScopeId) &
|
||||
t.actionType.equals(OfflineActionType.progress.id),
|
||||
)
|
||||
..limit(1))
|
||||
.getSingleOrNull();
|
||||
|
||||
@@ -170,6 +358,8 @@ class AppDatabase extends _$AppDatabase {
|
||||
viewOffset: Value(viewOffset),
|
||||
duration: Value(duration),
|
||||
shouldMarkWatched: Value(shouldMarkWatched),
|
||||
profileId: Value(profileId),
|
||||
clientScopeId: Value(clientScopeId),
|
||||
updatedAt: Value(now),
|
||||
),
|
||||
);
|
||||
@@ -178,9 +368,11 @@ class AppDatabase extends _$AppDatabase {
|
||||
await into(offlineWatchProgress).insert(
|
||||
OfflineWatchProgressCompanion.insert(
|
||||
serverId: serverId,
|
||||
profileId: Value(profileId),
|
||||
clientScopeId: Value(clientScopeId),
|
||||
ratingKey: ratingKey,
|
||||
globalKey: globalKey,
|
||||
actionType: OfflineActionType.progress.name,
|
||||
actionType: OfflineActionType.progress.id,
|
||||
viewOffset: Value(viewOffset),
|
||||
duration: Value(duration),
|
||||
shouldMarkWatched: Value(shouldMarkWatched),
|
||||
@@ -191,10 +383,12 @@ class AppDatabase extends _$AppDatabase {
|
||||
}
|
||||
}
|
||||
|
||||
/// Insert a manual watch action (watched or unwatched)
|
||||
/// Removes conflicting actions for the same item
|
||||
/// Insert a manual watch action (watched or unwatched).
|
||||
/// Removes conflicting actions for the same item.
|
||||
Future<void> insertWatchAction({
|
||||
String? profileId,
|
||||
required String serverId,
|
||||
String? clientScopeId,
|
||||
required String ratingKey,
|
||||
required String actionType, // 'watched' or 'unwatched'
|
||||
}) async {
|
||||
@@ -202,12 +396,20 @@ class AppDatabase extends _$AppDatabase {
|
||||
final now = DateTime.now().millisecondsSinceEpoch;
|
||||
|
||||
// Remove conflicting actions (opposite action type and progress)
|
||||
await (delete(offlineWatchProgress)..where((t) => t.globalKey.equals(globalKey))).go();
|
||||
await (delete(offlineWatchProgress)..where(
|
||||
(t) =>
|
||||
t.globalKey.equals(globalKey) &
|
||||
_nullableTextPredicate(t.profileId, profileId) &
|
||||
_clientScopePredicate(t.clientScopeId, clientScopeId),
|
||||
))
|
||||
.go();
|
||||
|
||||
// Insert the new action
|
||||
await into(offlineWatchProgress).insert(
|
||||
OfflineWatchProgressCompanion.insert(
|
||||
serverId: serverId,
|
||||
profileId: Value(profileId),
|
||||
clientScopeId: Value(clientScopeId),
|
||||
ratingKey: ratingKey,
|
||||
globalKey: globalKey,
|
||||
actionType: actionType,
|
||||
@@ -234,10 +436,12 @@ class AppDatabase extends _$AppDatabase {
|
||||
}
|
||||
|
||||
/// Get count of pending sync items
|
||||
Future<int> getPendingSyncCount() async {
|
||||
final count = await (selectOnly(offlineWatchProgress)..addColumns([offlineWatchProgress.id.count()]))
|
||||
.map((row) => row.read(offlineWatchProgress.id.count()))
|
||||
.getSingle();
|
||||
Future<int> getPendingSyncCount({String? profileId}) async {
|
||||
final query = selectOnly(offlineWatchProgress)..addColumns([offlineWatchProgress.id.count()]);
|
||||
if (profileId != null) {
|
||||
query.where(offlineWatchProgress.profileId.equals(profileId));
|
||||
}
|
||||
final count = await query.map((row) => row.read(offlineWatchProgress.id.count())).getSingle();
|
||||
return count ?? 0;
|
||||
}
|
||||
|
||||
@@ -246,12 +450,12 @@ class AppDatabase extends _$AppDatabase {
|
||||
return delete(offlineWatchProgress).go();
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
// Sync Rules Operations
|
||||
// ============================================================
|
||||
|
||||
Future<List<SyncRuleItem>> getSyncRules() {
|
||||
return select(syncRules).get();
|
||||
Future<List<SyncRuleItem>> getSyncRules({String? profileId}) {
|
||||
final query = select(syncRules);
|
||||
if (profileId != null) {
|
||||
query.where((t) => t.profileId.equals(profileId));
|
||||
}
|
||||
return query.get();
|
||||
}
|
||||
|
||||
Future<SyncRuleItem?> getSyncRule(String globalKey) {
|
||||
@@ -259,6 +463,7 @@ class AppDatabase extends _$AppDatabase {
|
||||
}
|
||||
|
||||
Future<void> insertSyncRule({
|
||||
String profileId = '',
|
||||
required String serverId,
|
||||
required String ratingKey,
|
||||
required String globalKey,
|
||||
@@ -267,9 +472,15 @@ class AppDatabase extends _$AppDatabase {
|
||||
int mediaIndex = 0,
|
||||
String downloadFilter = 'unwatched',
|
||||
}) async {
|
||||
await into(syncRules).insertOnConflictUpdate(
|
||||
// [insertOnConflictUpdate] defaults the conflict target to the primary
|
||||
// key (`id`), which is auto-incremented — the conflict never triggers
|
||||
// and the row's UNIQUE [globalKey] constraint blows up instead. Drive
|
||||
// the upsert off the public [globalKey] so re-creating a rule for the same
|
||||
// shared target updates the existing row.
|
||||
await into(syncRules).insert(
|
||||
SyncRulesCompanion.insert(
|
||||
serverId: serverId,
|
||||
profileId: Value(profileId),
|
||||
ratingKey: ratingKey,
|
||||
globalKey: globalKey,
|
||||
targetType: targetType,
|
||||
@@ -278,9 +489,39 @@ class AppDatabase extends _$AppDatabase {
|
||||
mediaIndex: Value(mediaIndex),
|
||||
downloadFilter: Value(downloadFilter),
|
||||
),
|
||||
onConflict: DoUpdate(
|
||||
(_) => SyncRulesCompanion(
|
||||
serverId: Value(serverId),
|
||||
profileId: Value(profileId),
|
||||
ratingKey: Value(ratingKey),
|
||||
targetType: Value(targetType),
|
||||
episodeCount: Value(episodeCount),
|
||||
mediaIndex: Value(mediaIndex),
|
||||
downloadFilter: Value(downloadFilter),
|
||||
),
|
||||
target: [syncRules.globalKey],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
/// Claim pre-v16 public sync rules for [profileId]. Rules created before
|
||||
/// profile ownership have an empty profile id and a public global key.
|
||||
Future<void> adoptLegacySyncRulesForProfile(String profileId) async {
|
||||
if (profileId.isEmpty) return;
|
||||
final legacyRules = await (select(syncRules)..where((t) => t.profileId.equals(''))).get();
|
||||
for (final rule in legacyRules) {
|
||||
final scopedKey = buildProfileScopedGlobalKey(profileId, rule.serverId, rule.ratingKey);
|
||||
final duplicate = await getSyncRule(scopedKey);
|
||||
if (duplicate != null) {
|
||||
await (delete(syncRules)..where((t) => t.id.equals(rule.id))).go();
|
||||
continue;
|
||||
}
|
||||
await (update(syncRules)..where((t) => t.id.equals(rule.id))).write(
|
||||
SyncRulesCompanion(profileId: Value(profileId), globalKey: Value(scopedKey)),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> updateSyncRuleCount(String globalKey, int episodeCount) async {
|
||||
await (update(
|
||||
syncRules,
|
||||
@@ -309,10 +550,6 @@ class AppDatabase extends _$AppDatabase {
|
||||
await (delete(syncRules)..where((t) => t.globalKey.equals(globalKey))).go();
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
// Downloaded Media Queries for Watch State Sync
|
||||
// ============================================================
|
||||
|
||||
/// Get all downloaded media items (for syncing watch states)
|
||||
Future<List<DownloadedMediaItem>> getAllDownloadedMetadata() {
|
||||
return (select(downloadedMedia)..where((t) => t.status.equals(DownloadStatus.completed.index))).get();
|
||||
@@ -327,7 +564,6 @@ LazyDatabase _openConnection() {
|
||||
|
||||
final file = File(p.join(dbFolder.path, 'plezy_downloads.db'));
|
||||
|
||||
// Ensure directory exists
|
||||
if (!await file.parent.exists()) {
|
||||
await file.parent.create(recursive: true);
|
||||
}
|
||||
@@ -346,6 +582,9 @@ LazyDatabase _openConnection() {
|
||||
setup: (db) {
|
||||
db.execute('PRAGMA journal_mode=WAL');
|
||||
db.execute('PRAGMA synchronous=NORMAL');
|
||||
// Enforce ProfileConnections → Profiles/Connections cascades.
|
||||
// SQLite requires this on every connection — it's not persisted.
|
||||
db.execute('PRAGMA foreign_keys = ON');
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
+4800
-527
File diff suppressed because it is too large
Load Diff
@@ -2,12 +2,82 @@ import 'package:drift/drift.dart';
|
||||
|
||||
import 'app_database.dart';
|
||||
import '../models/download_models.dart';
|
||||
import '../profiles/profile.dart';
|
||||
|
||||
/// Extension methods on AppDatabase for download operations
|
||||
extension DownloadDatabaseOperations on AppDatabase {
|
||||
/// Insert a new download into the database
|
||||
Future<void> addDownloadOwner({required String profileId, required String globalKey}) async {
|
||||
if (profileId.isEmpty) return;
|
||||
await into(downloadOwners).insert(
|
||||
DownloadOwnersCompanion.insert(
|
||||
profileId: profileId,
|
||||
globalKey: globalKey,
|
||||
createdAt: DateTime.now().millisecondsSinceEpoch,
|
||||
),
|
||||
mode: InsertMode.insertOrIgnore,
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> removeDownloadOwner({required String profileId, required String globalKey}) async {
|
||||
await (delete(downloadOwners)..where((t) => t.profileId.equals(profileId) & t.globalKey.equals(globalKey))).go();
|
||||
}
|
||||
|
||||
Future<void> removeDownloadOwnersForProfile(String profileId) async {
|
||||
if (profileId.isEmpty) return;
|
||||
await (delete(downloadOwners)..where((t) => t.profileId.equals(profileId))).go();
|
||||
}
|
||||
|
||||
Future<Set<String>> getDownloadOwnerKeysForProfile(String profileId) async {
|
||||
if (profileId.isEmpty) return const {};
|
||||
final rows = await (select(downloadOwners)..where((t) => t.profileId.equals(profileId))).get();
|
||||
return rows.map((row) => row.globalKey).toSet();
|
||||
}
|
||||
|
||||
Future<int> getDownloadOwnerCount(String globalKey) async {
|
||||
return (await _validDownloadOwnerRows(globalKey)).length;
|
||||
}
|
||||
|
||||
Future<bool> hasDownloadOwner(String globalKey, {String? excludingProfileId}) async {
|
||||
final rows = await _validDownloadOwnerRows(globalKey, excludingProfileId: excludingProfileId);
|
||||
return rows.isNotEmpty;
|
||||
}
|
||||
|
||||
Future<List<DownloadOwnerItem>> _validDownloadOwnerRows(String globalKey, {String? excludingProfileId}) async {
|
||||
final rows = await (select(downloadOwners)..where((t) => t.globalKey.equals(globalKey))).get();
|
||||
if (rows.isEmpty) return const [];
|
||||
final candidates = rows
|
||||
.where((row) => excludingProfileId == null || excludingProfileId.isEmpty || row.profileId != excludingProfileId)
|
||||
.toList(growable: false);
|
||||
if (candidates.isEmpty) return const [];
|
||||
|
||||
final localProfileRows = await select(profiles).get();
|
||||
final localProfileIds = localProfileRows.map((row) => row.id).toSet();
|
||||
final connectionRows = await select(connections).get();
|
||||
final connectionIds = connectionRows.map((row) => row.id).toSet();
|
||||
return candidates
|
||||
.where((row) {
|
||||
if (localProfileIds.contains(row.profileId)) return true;
|
||||
final plexHome = parsePlexHomeProfileId(row.profileId);
|
||||
if (plexHome != null) return connectionIds.contains(plexHome.accountConnectionId);
|
||||
return localProfileIds.isEmpty;
|
||||
})
|
||||
.toList(growable: false);
|
||||
}
|
||||
|
||||
/// Claim pre-v17 shared download rows for [profileId]. Rows that already
|
||||
/// have any owner are left untouched so later profiles do not inherit them.
|
||||
Future<void> adoptLegacyDownloadsForProfile(String profileId) async {
|
||||
if (profileId.isEmpty) return;
|
||||
final rows = await select(downloadedMedia).get();
|
||||
for (final row in rows) {
|
||||
if (await getDownloadOwnerCount(row.globalKey) == 0) {
|
||||
await addDownloadOwner(profileId: profileId, globalKey: row.globalKey);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> insertDownload({
|
||||
required String serverId,
|
||||
String? clientScopeId,
|
||||
required String ratingKey,
|
||||
required String globalKey,
|
||||
required String type,
|
||||
@@ -19,6 +89,7 @@ extension DownloadDatabaseOperations on AppDatabase {
|
||||
await into(downloadedMedia).insert(
|
||||
DownloadedMediaCompanion.insert(
|
||||
serverId: serverId,
|
||||
clientScopeId: Value(clientScopeId),
|
||||
ratingKey: ratingKey,
|
||||
globalKey: globalKey,
|
||||
type: type,
|
||||
@@ -31,7 +102,6 @@ extension DownloadDatabaseOperations on AppDatabase {
|
||||
);
|
||||
}
|
||||
|
||||
/// Add item to download queue
|
||||
Future<void> addToQueue({
|
||||
required String mediaGlobalKey,
|
||||
int priority = 0,
|
||||
@@ -53,7 +123,6 @@ extension DownloadDatabaseOperations on AppDatabase {
|
||||
/// Get next item from queue (highest priority, oldest first)
|
||||
/// Only returns items that are not paused
|
||||
Future<DownloadQueueItem?> getNextQueueItem() async {
|
||||
// Join with downloadedMedia to check status and filter out paused items
|
||||
final query = select(
|
||||
downloadQueue,
|
||||
).join([innerJoin(downloadedMedia, downloadedMedia.globalKey.equalsExp(downloadQueue.mediaGlobalKey))]);
|
||||
@@ -70,14 +139,12 @@ extension DownloadDatabaseOperations on AppDatabase {
|
||||
return result?.readTable(downloadQueue);
|
||||
}
|
||||
|
||||
/// Update download status
|
||||
Future<void> updateDownloadStatus(String globalKey, int status) async {
|
||||
await (update(
|
||||
downloadedMedia,
|
||||
)..where((t) => t.globalKey.equals(globalKey))).write(DownloadedMediaCompanion(status: Value(status)));
|
||||
}
|
||||
|
||||
/// Update download progress
|
||||
Future<void> updateDownloadProgress(String globalKey, int progress, int downloadedBytes, int totalBytes) async {
|
||||
await (update(downloadedMedia)..where((t) => t.globalKey.equals(globalKey))).write(
|
||||
DownloadedMediaCompanion(
|
||||
@@ -88,7 +155,6 @@ extension DownloadDatabaseOperations on AppDatabase {
|
||||
);
|
||||
}
|
||||
|
||||
/// Update video file path
|
||||
Future<void> updateVideoFilePath(String globalKey, String filePath) async {
|
||||
await (update(downloadedMedia)..where((t) => t.globalKey.equals(globalKey))).write(
|
||||
DownloadedMediaCompanion(
|
||||
@@ -98,16 +164,13 @@ extension DownloadDatabaseOperations on AppDatabase {
|
||||
);
|
||||
}
|
||||
|
||||
/// Update artwork paths
|
||||
Future<void> updateArtworkPaths({required String globalKey, String? thumbPath}) async {
|
||||
await (update(
|
||||
downloadedMedia,
|
||||
)..where((t) => t.globalKey.equals(globalKey))).write(DownloadedMediaCompanion(thumbPath: Value(thumbPath)));
|
||||
}
|
||||
|
||||
/// Update download error and increment retry count
|
||||
Future<void> updateDownloadError(String globalKey, String errorMessage) async {
|
||||
// Get current retry count to increment it
|
||||
final existing = await getDownloadedMedia(globalKey);
|
||||
final currentCount = existing?.retryCount ?? 0;
|
||||
|
||||
@@ -116,52 +179,84 @@ extension DownloadDatabaseOperations on AppDatabase {
|
||||
);
|
||||
}
|
||||
|
||||
/// Clear download error and reset retry count (for retry)
|
||||
Future<void> clearDownloadError(String globalKey) async {
|
||||
await (update(downloadedMedia)..where((t) => t.globalKey.equals(globalKey))).write(
|
||||
const DownloadedMediaCompanion(errorMessage: Value(null), retryCount: Value(0)),
|
||||
);
|
||||
}
|
||||
|
||||
/// Remove item from queue
|
||||
Future<void> removeFromQueue(String mediaGlobalKey) async {
|
||||
await (delete(downloadQueue)..where((t) => t.mediaGlobalKey.equals(mediaGlobalKey))).go();
|
||||
}
|
||||
|
||||
/// Get downloaded media item
|
||||
Future<DownloadedMediaItem?> getDownloadedMedia(String globalKey) {
|
||||
return (select(downloadedMedia)..where((t) => t.globalKey.equals(globalKey))).getSingleOrNull();
|
||||
}
|
||||
|
||||
/// Delete a download
|
||||
Future<void> deleteDownload(String globalKey) async {
|
||||
await (delete(downloadOwners)..where((t) => t.globalKey.equals(globalKey))).go();
|
||||
await (delete(downloadedMedia)..where((t) => t.globalKey.equals(globalKey))).go();
|
||||
await (delete(downloadQueue)..where((t) => t.mediaGlobalKey.equals(globalKey))).go();
|
||||
}
|
||||
|
||||
/// Get all downloaded episodes for a season
|
||||
Future<List<DownloadedMediaItem>> getEpisodesBySeason(String seasonKey) {
|
||||
return (select(downloadedMedia)..where((t) => t.parentRatingKey.equals(seasonKey))).get();
|
||||
Future<List<DownloadedMediaItem>> getEpisodesBySeason(
|
||||
String seasonKey, {
|
||||
String? serverId,
|
||||
String? clientScopeId,
|
||||
bool filterClientScope = false,
|
||||
}) {
|
||||
return (select(downloadedMedia)..where(
|
||||
(t) =>
|
||||
t.parentRatingKey.equals(seasonKey) &
|
||||
_optionalServerPredicate(t.serverId, serverId) &
|
||||
_optionalClientScopePredicate(t.clientScopeId, clientScopeId, filterClientScope: filterClientScope),
|
||||
))
|
||||
.get();
|
||||
}
|
||||
|
||||
/// Get all downloaded episodes for a show
|
||||
Future<List<DownloadedMediaItem>> getEpisodesByShow(String showKey) {
|
||||
return (select(downloadedMedia)..where((t) => t.grandparentRatingKey.equals(showKey))).get();
|
||||
Future<List<DownloadedMediaItem>> getEpisodesByShow(
|
||||
String showKey, {
|
||||
String? serverId,
|
||||
String? clientScopeId,
|
||||
bool filterClientScope = false,
|
||||
}) {
|
||||
return (select(downloadedMedia)..where(
|
||||
(t) =>
|
||||
t.grandparentRatingKey.equals(showKey) &
|
||||
_optionalServerPredicate(t.serverId, serverId) &
|
||||
_optionalClientScopePredicate(t.clientScopeId, clientScopeId, filterClientScope: filterClientScope),
|
||||
))
|
||||
.get();
|
||||
}
|
||||
|
||||
/// Get all downloaded items for a specific server
|
||||
Future<List<DownloadedMediaItem>> getDownloadsByServerId(String serverId) {
|
||||
return (select(downloadedMedia)..where((t) => t.serverId.equals(serverId))).get();
|
||||
}
|
||||
|
||||
/// Update the background_downloader task ID for a download
|
||||
Expression<bool> _optionalServerPredicate(GeneratedColumn<String> column, String? serverId) {
|
||||
return serverId == null ? const Constant(true) : column.equals(serverId);
|
||||
}
|
||||
|
||||
Expression<bool> _optionalClientScopePredicate(
|
||||
GeneratedColumn<String> column,
|
||||
String? clientScopeId, {
|
||||
required bool filterClientScope,
|
||||
}) {
|
||||
if (!filterClientScope && (clientScopeId == null || clientScopeId.isEmpty)) {
|
||||
return const Constant(true);
|
||||
}
|
||||
if (clientScopeId == null || clientScopeId.isEmpty) {
|
||||
return column.isNull() | column.equals('');
|
||||
}
|
||||
return column.equals(clientScopeId);
|
||||
}
|
||||
|
||||
Future<void> updateBgTaskId(String globalKey, String? taskId) async {
|
||||
await (update(
|
||||
downloadedMedia,
|
||||
)..where((t) => t.globalKey.equals(globalKey))).write(DownloadedMediaCompanion(bgTaskId: Value(taskId)));
|
||||
}
|
||||
|
||||
/// Get the background_downloader task ID for a download
|
||||
Future<String?> getBgTaskId(String globalKey) async {
|
||||
final item = await getDownloadedMedia(globalKey);
|
||||
return item?.bgTaskId;
|
||||
|
||||
+145
-4
@@ -1,12 +1,12 @@
|
||||
import 'package:drift/drift.dart';
|
||||
|
||||
/// Key-value cache table for Plex API responses.
|
||||
/// Key-value cache table for media-server API responses (Plex, Jellyfin).
|
||||
/// Used for offline support - stores raw JSON responses.
|
||||
class ApiCache extends Table {
|
||||
/// Composite key: serverId:endpoint (e.g., "abc123:/library/metadata/12345")
|
||||
/// Composite key: serverId:endpoint (e.g., "abc123:/library/metadata/12345"
|
||||
/// for Plex, "abc123:/Users/.../Items/..." for Jellyfin)
|
||||
TextColumn get cacheKey => text()();
|
||||
|
||||
/// JSON response data
|
||||
TextColumn get data => text()();
|
||||
|
||||
/// Whether this item is pinned for offline access
|
||||
@@ -37,6 +37,12 @@ class DownloadQueue extends Table {
|
||||
class DownloadedMedia extends Table {
|
||||
IntColumn get id => integer().autoIncrement()();
|
||||
TextColumn get serverId => text()();
|
||||
// Downloads are intentionally app-wide/shared, keyed by the public
|
||||
// serverId:ratingKey globalKey below. For Jellyfin, clientScopeId records
|
||||
// which scoped client produced the cached metadata/download request; it is
|
||||
// not part of download ownership and must not be used to hide or duplicate
|
||||
// the physical downloaded item per user/profile.
|
||||
TextColumn get clientScopeId => text().nullable()();
|
||||
TextColumn get ratingKey => text()();
|
||||
TextColumn get globalKey => text().unique()();
|
||||
TextColumn get type => text()();
|
||||
@@ -55,13 +61,35 @@ class DownloadedMedia extends Table {
|
||||
IntColumn get mediaIndex => integer().withDefault(const Constant(0))();
|
||||
}
|
||||
|
||||
/// Profile ownership for shared physical downloads.
|
||||
///
|
||||
/// [DownloadedMedia] stores one physical row per public serverId:ratingKey so
|
||||
/// files are deduped across profiles. This table controls which active profile
|
||||
/// can see/use that shared row.
|
||||
@DataClassName('DownloadOwnerItem')
|
||||
@TableIndex(name: 'idx_download_owners_profile', columns: {#profileId})
|
||||
@TableIndex(name: 'idx_download_owners_global_key', columns: {#globalKey})
|
||||
class DownloadOwners extends Table {
|
||||
TextColumn get profileId => text()();
|
||||
TextColumn get globalKey => text()();
|
||||
IntColumn get createdAt => integer()();
|
||||
|
||||
@override
|
||||
Set<Column> get primaryKey => {profileId, globalKey};
|
||||
}
|
||||
|
||||
/// Persistent sync rules for auto-downloading unwatched episodes.
|
||||
///
|
||||
/// Each rule keeps a rolling window of N unwatched episodes for a show/season,
|
||||
/// or mirrors the current contents of a collection/playlist.
|
||||
/// Rules are owned by the active top-level profile. Downloads remain app-wide
|
||||
/// and shared by public serverId:ratingKey identity, but rule ownership must not
|
||||
/// cross users because Jellyfin permissions and watch state are user-scoped.
|
||||
@DataClassName('SyncRuleItem')
|
||||
@TableIndex(name: 'idx_sync_rules_profile', columns: {#profileId})
|
||||
class SyncRules extends Table {
|
||||
IntColumn get id => integer().autoIncrement()();
|
||||
TextColumn get profileId => text().withDefault(const Constant(''))();
|
||||
TextColumn get serverId => text()();
|
||||
TextColumn get ratingKey => text()();
|
||||
TextColumn get globalKey => text().unique()();
|
||||
@@ -74,18 +102,131 @@ class SyncRules extends Table {
|
||||
TextColumn get downloadFilter => text().withDefault(const Constant('unwatched'))();
|
||||
}
|
||||
|
||||
/// Persisted media-server connections.
|
||||
///
|
||||
/// One row per "connection" the user has added — a Plex account (with its
|
||||
/// discovered servers and active Home profile) or a single Jellyfin server.
|
||||
/// The [configJson] payload is backend-specific and parsed by the
|
||||
/// [Connection] sealed class.
|
||||
@DataClassName('ConnectionRow')
|
||||
@TableIndex(name: 'idx_connections_kind', columns: {#kind})
|
||||
class Connections extends Table {
|
||||
/// Stable identifier for the connection. For Plex it's a generated UUID
|
||||
/// (one per account); for Jellyfin it's the server's machineId.
|
||||
TextColumn get id => text()();
|
||||
|
||||
/// Backend kind: `'plex'` or `'jellyfin'`.
|
||||
TextColumn get kind => text()();
|
||||
|
||||
/// User-visible label (account email, server name).
|
||||
TextColumn get displayName => text()();
|
||||
|
||||
/// Backend-specific config payload (token, baseUrl, profile id, …).
|
||||
TextColumn get configJson => text()();
|
||||
|
||||
/// Whether this is the default connection used at app launch when only
|
||||
/// one connection is present.
|
||||
BoolColumn get isDefault => boolean().withDefault(const Constant(false))();
|
||||
|
||||
/// Timestamp this connection was added (milliseconds since epoch).
|
||||
IntColumn get createdAt => integer()();
|
||||
|
||||
/// Timestamp of the most-recent successful auth refresh (milliseconds
|
||||
/// since epoch). Null until the first successful auth.
|
||||
IntColumn get lastAuthenticatedAt => integer().nullable()();
|
||||
|
||||
@override
|
||||
Set<Column> get primaryKey => {id};
|
||||
}
|
||||
|
||||
/// Top-level profiles — see [Profile].
|
||||
///
|
||||
/// A profile is the user-facing identity. Plex Home users auto-surface as
|
||||
/// `kind='plex_home'` rows when their parent Plex account is added; users
|
||||
/// can also create `kind='local'` rows manually. Each profile owns one or
|
||||
/// more connections via [ProfileConnections].
|
||||
@DataClassName('ProfileRow')
|
||||
@TableIndex(name: 'idx_profiles_kind', columns: {#kind})
|
||||
class Profiles extends Table {
|
||||
/// Stable identifier. For Plex Home profiles: `plex-home-{accountId}-{homeUserUuid}`
|
||||
/// (deterministic so re-discovery is idempotent). For locals: `local-{uuid}`.
|
||||
TextColumn get id => text()();
|
||||
|
||||
/// `'local'` | `'plex_home'`.
|
||||
TextColumn get kind => text()();
|
||||
|
||||
TextColumn get displayName => text()();
|
||||
|
||||
/// Plex Home users have a thumb URL; locals fall back to initials/colour.
|
||||
TextColumn get avatarThumbUrl => text().nullable()();
|
||||
|
||||
/// Per-kind config:
|
||||
/// - `local`: `{ "pinHash": "..." }`
|
||||
/// - `plex_home`: `{ "restricted": bool, "admin": bool, "hasPassword": bool, "parentConnectionId": "..." }`
|
||||
TextColumn get configJson => text()();
|
||||
|
||||
IntColumn get sortOrder => integer().withDefault(const Constant(0))();
|
||||
IntColumn get createdAt => integer()();
|
||||
IntColumn get lastUsedAt => integer().nullable()();
|
||||
|
||||
@override
|
||||
Set<Column> get primaryKey => {id};
|
||||
}
|
||||
|
||||
/// Many-to-many join between [Profiles] and [Connections], carrying the
|
||||
/// per-profile user-level token used when the profile is active.
|
||||
///
|
||||
/// For Plex: `userToken` is a Home-user token from `/home/users/{uuid}/switch`,
|
||||
/// `userIdentifier` is the Plex Home user UUID. An empty `userToken` is a
|
||||
/// lazy-fetch sentinel — the binder calls `/switch` on first activation.
|
||||
/// The Dart-side [ProfileConnection] model surfaces empty as `null`; the
|
||||
/// column stays non-nullable here to avoid a schema migration.
|
||||
///
|
||||
/// For Jellyfin: `userToken` mirrors the Connection's accessToken (one user
|
||||
/// per Jellyfin connection) and `userIdentifier` is the Jellyfin user id.
|
||||
@DataClassName('ProfileConnectionRow')
|
||||
@TableIndex(name: 'idx_profile_connections_connection_id', columns: {#connectionId})
|
||||
@TableIndex(name: 'idx_profile_connections_profile_id', columns: {#profileId})
|
||||
class ProfileConnections extends Table {
|
||||
// No FK on profile_id: Plex Home profiles are virtual (built by
|
||||
// Profile.virtualPlexHome from PlexHomeService's live cache, never
|
||||
// persisted in `profiles`), so an FK here would reject every join row
|
||||
// they need. The two profile-delete sites clean up join rows manually
|
||||
// via ProfileConnectionRegistry.removeAllForProfile before calling
|
||||
// ProfileRegistry.remove.
|
||||
TextColumn get profileId => text()();
|
||||
TextColumn get connectionId => text().references(Connections, #id, onDelete: KeyAction.cascade)();
|
||||
TextColumn get userToken => text().withDefault(const Constant(''))();
|
||||
TextColumn get userIdentifier => text()();
|
||||
BoolColumn get isDefault => boolean().withDefault(const Constant(false))();
|
||||
IntColumn get tokenAcquiredAt => integer().nullable()();
|
||||
IntColumn get lastUsedAt => integer().nullable()();
|
||||
|
||||
@override
|
||||
Set<Column> get primaryKey => {profileId, connectionId};
|
||||
}
|
||||
|
||||
/// Queue for offline watch progress and manual watch actions.
|
||||
///
|
||||
/// Stores watch progress updates and manual watch/unwatch actions
|
||||
/// that need to be synced to the Plex server when back online.
|
||||
/// that need to be synced to the originating media server when back online.
|
||||
@DataClassName('OfflineWatchProgressItem')
|
||||
@TableIndex(name: 'idx_offline_watch_progress_server', columns: {#serverId})
|
||||
@TableIndex(name: 'idx_offline_watch_progress_profile', columns: {#profileId})
|
||||
class OfflineWatchProgress extends Table {
|
||||
/// Auto-incrementing primary key
|
||||
IntColumn get id => integer().autoIncrement()();
|
||||
|
||||
/// Active Plezy profile that owns this queued action.
|
||||
TextColumn get profileId => text().nullable()();
|
||||
|
||||
/// Server ID this media belongs to
|
||||
TextColumn get serverId => text()();
|
||||
|
||||
/// Optional user-scoped client/cache id for backends where [serverId] is
|
||||
/// shared by multiple users on the same server.
|
||||
TextColumn get clientScopeId => text().nullable()();
|
||||
|
||||
/// Rating key of the media item
|
||||
TextColumn get ratingKey => text()();
|
||||
|
||||
|
||||
@@ -0,0 +1,97 @@
|
||||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:http/http.dart';
|
||||
|
||||
/// Sealed base for backend-agnostic media-server exceptions. Both Plex and
|
||||
/// Jellyfin auth/HTTP layers throw subtypes from this hierarchy so consumers
|
||||
/// can catch with one filter and match exhaustively when they care which
|
||||
/// failure mode it is.
|
||||
sealed class MediaServerException implements Exception {
|
||||
final String message;
|
||||
const MediaServerException(this.message);
|
||||
|
||||
@override
|
||||
String toString() => '$runtimeType: $message';
|
||||
}
|
||||
|
||||
/// The supplied base URL is unreachable, returns the wrong shape, or doesn't
|
||||
/// look like the expected backend at all. Surfaces in onboarding probes
|
||||
/// (Jellyfin `/System/Info/Public`, Plex resource discovery).
|
||||
class MediaServerUrlException extends MediaServerException {
|
||||
const MediaServerUrlException(super.message);
|
||||
}
|
||||
|
||||
/// Authentication failed — bad password, expired token, disabled user,
|
||||
/// rate-limit. [statusCode] is the HTTP status when the failure was a 4xx
|
||||
/// response; null for transport-layer auth signals (e.g. token rejected
|
||||
/// during refresh).
|
||||
class MediaServerAuthException extends MediaServerException {
|
||||
final int? statusCode;
|
||||
const MediaServerAuthException(super.message, {this.statusCode});
|
||||
}
|
||||
|
||||
/// Auth polling reached a terminal server-side expiry/rejection state before
|
||||
/// the user completed the external sign-in flow.
|
||||
class MediaServerPinExpiredException extends MediaServerAuthException {
|
||||
const MediaServerPinExpiredException() : super('PIN expired before sign-in');
|
||||
}
|
||||
|
||||
/// HTTP transport / non-2xx errors. Carries the status code (when known),
|
||||
/// the parsed response body, and the originating URI so callers can log
|
||||
/// useful diagnostics. Both Plex and Jellyfin route their HTTP failures
|
||||
/// through this type — it's the canonical backend-agnostic transport
|
||||
/// exception.
|
||||
enum MediaServerHttpErrorType { connectionTimeout, receiveTimeout, connectionError, cancelled, unknown }
|
||||
|
||||
class MediaServerHttpException extends MediaServerException {
|
||||
final MediaServerHttpErrorType type;
|
||||
final int? statusCode;
|
||||
final dynamic responseData;
|
||||
final Uri? requestUri;
|
||||
|
||||
MediaServerHttpException({required this.type, String? message, this.statusCode, this.responseData, this.requestUri})
|
||||
: super(message ?? '');
|
||||
|
||||
/// Map a caught exception to a [MediaServerHttpException].
|
||||
factory MediaServerHttpException.from(Object error, {Uri? uri}) {
|
||||
return switch (error) {
|
||||
MediaServerHttpException() => error,
|
||||
RequestAbortedException(:final message, uri: final errorUri) => MediaServerHttpException(
|
||||
type: MediaServerHttpErrorType.cancelled,
|
||||
message: message,
|
||||
requestUri: errorUri ?? uri,
|
||||
),
|
||||
TimeoutException(:final message) => MediaServerHttpException(
|
||||
type: MediaServerHttpErrorType.connectionTimeout,
|
||||
message: message,
|
||||
requestUri: uri,
|
||||
),
|
||||
SocketException(:final message) => MediaServerHttpException(
|
||||
type: MediaServerHttpErrorType.connectionError,
|
||||
message: message,
|
||||
requestUri: uri,
|
||||
),
|
||||
HttpException(:final message) => MediaServerHttpException(
|
||||
type: MediaServerHttpErrorType.connectionError,
|
||||
message: message,
|
||||
requestUri: uri,
|
||||
),
|
||||
ClientException(:final message, uri: final errorUri) => MediaServerHttpException(
|
||||
type: MediaServerHttpErrorType.connectionError,
|
||||
message: message,
|
||||
requestUri: errorUri ?? uri,
|
||||
),
|
||||
_ => MediaServerHttpException(type: MediaServerHttpErrorType.unknown, message: error.toString(), requestUri: uri),
|
||||
};
|
||||
}
|
||||
|
||||
/// Whether the error looks transient (network/timeout) and worth retrying.
|
||||
bool get isTransient =>
|
||||
type == MediaServerHttpErrorType.connectionTimeout ||
|
||||
type == MediaServerHttpErrorType.connectionError ||
|
||||
type == MediaServerHttpErrorType.receiveTimeout;
|
||||
|
||||
@override
|
||||
String toString() => 'MediaServerHttpException(${type.name}: $message)';
|
||||
}
|
||||
@@ -1,13 +1,26 @@
|
||||
import 'dart:ui' as ui;
|
||||
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
/// Extension on KeyEvent for common event type checks.
|
||||
extension KeyEventActionable on KeyEvent {
|
||||
/// Whether this event should trigger an action (KeyDownEvent or KeyRepeatEvent).
|
||||
/// Use this to filter out KeyUpEvents early in key handlers.
|
||||
bool get isActionable => this is KeyDownEvent || this is KeyRepeatEvent;
|
||||
bool get isPhysicalKeyboardEvent => deviceType == ui.KeyEventDeviceType.keyboard;
|
||||
bool get isPhysicalKeyboardEnter =>
|
||||
deviceType == ui.KeyEventDeviceType.keyboard &&
|
||||
(logicalKey == LogicalKeyboardKey.enter ||
|
||||
logicalKey == LogicalKeyboardKey.numpadEnter ||
|
||||
logicalKey == LogicalKeyboardKey.select);
|
||||
|
||||
bool get isTvSelectEvent {
|
||||
if (isPhysicalKeyboardEvent) return false;
|
||||
if (logicalKey == LogicalKeyboardKey.select || logicalKey == LogicalKeyboardKey.gameButtonA) return true;
|
||||
if (logicalKey == LogicalKeyboardKey.enter || logicalKey == LogicalKeyboardKey.numpadEnter) {
|
||||
return deviceType != ui.KeyEventDeviceType.keyboard;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/// Shared sets for keyboard key categories.
|
||||
final _dpadDirectionKeys = {
|
||||
LogicalKeyboardKey.arrowUp,
|
||||
LogicalKeyboardKey.arrowDown,
|
||||
@@ -31,35 +44,18 @@ final _backKeys = {
|
||||
|
||||
final _contextMenuKeys = {LogicalKeyboardKey.contextMenu, LogicalKeyboardKey.gameButtonX};
|
||||
|
||||
/// Extension methods for checking D-pad related keys.
|
||||
extension DpadKeyExtension on LogicalKeyboardKey {
|
||||
/// Whether this key is a D-pad directional key.
|
||||
bool get isDpadDirection => _dpadDirectionKeys.contains(this);
|
||||
|
||||
/// Whether this key is a select/activate key.
|
||||
bool get isSelectKey => _selectKeys.contains(this);
|
||||
|
||||
/// Whether this key is a back/cancel key.
|
||||
bool get isBackKey => _backKeys.contains(this);
|
||||
|
||||
/// Whether this key is a context menu key.
|
||||
bool get isContextMenuKey => _contextMenuKeys.contains(this);
|
||||
|
||||
/// Whether this key is a navigation key (dpad, select, back, context menu, tab).
|
||||
/// Use this to distinguish navigation keys from typing/volume/media keys.
|
||||
bool get isNavigationKey =>
|
||||
isDpadDirection || isSelectKey || isBackKey || isContextMenuKey || this == LogicalKeyboardKey.tab;
|
||||
|
||||
/// Whether this key moves focus left.
|
||||
bool get isLeftKey => this == LogicalKeyboardKey.arrowLeft;
|
||||
|
||||
/// Whether this key moves focus right.
|
||||
bool get isRightKey => this == LogicalKeyboardKey.arrowRight;
|
||||
|
||||
/// Whether this key moves focus up.
|
||||
bool get isUpKey => this == LogicalKeyboardKey.arrowUp;
|
||||
|
||||
/// Whether this key moves focus down.
|
||||
bool get isDownKey => this == LogicalKeyboardKey.arrowDown;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +1,21 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import '../theme/mono_tokens.dart';
|
||||
|
||||
/// Focus styling constants for D-pad navigation.
|
||||
class FocusTheme {
|
||||
FocusTheme._();
|
||||
|
||||
/// Scale factor when an item is focused.
|
||||
static const double focusScale = 1.02;
|
||||
|
||||
/// Border width for the focus indicator.
|
||||
static const double focusBorderWidth = 2.5;
|
||||
|
||||
/// Default border radius (matches MonoTokens.radiusSm).
|
||||
static const double defaultBorderRadius = 8.0;
|
||||
|
||||
/// Get the focus border color from the theme.
|
||||
static Color getFocusBorderColor(BuildContext context) {
|
||||
return Theme.of(context).colorScheme.primary;
|
||||
}
|
||||
|
||||
/// Get the animation duration from MonoTokens.
|
||||
static Duration getAnimationDuration(BuildContext context) {
|
||||
return Theme.of(context).extension<MonoTokens>()?.fast ?? const Duration(milliseconds: 150);
|
||||
}
|
||||
|
||||
/// Build the focus border decoration.
|
||||
static BoxDecoration focusDecoration(
|
||||
BuildContext context, {
|
||||
required bool isFocused,
|
||||
|
||||
@@ -5,22 +5,13 @@ import 'focus_theme.dart';
|
||||
import 'input_mode_tracker.dart';
|
||||
import 'key_event_utils.dart';
|
||||
|
||||
/// Describes a single action button for use in [FocusableActionBar].
|
||||
class FocusableAction {
|
||||
/// Icon to display. Ignored when [child] is provided.
|
||||
final IconData icon;
|
||||
|
||||
/// Icon color. Ignored when [child] is provided.
|
||||
final Color? iconColor;
|
||||
|
||||
/// Icon fill weight (0.0–1.0). Defaults to 1.0. Ignored when [child] is provided.
|
||||
final double iconFill;
|
||||
|
||||
final String? tooltip;
|
||||
final VoidCallback? onPressed;
|
||||
|
||||
/// Optional custom child widget placed inside the focus container.
|
||||
/// Overrides the default [IconButton] built from [icon]/[tooltip]/[onPressed].
|
||||
final Widget? child;
|
||||
|
||||
const FocusableAction({
|
||||
@@ -33,25 +24,6 @@ class FocusableAction {
|
||||
});
|
||||
}
|
||||
|
||||
/// A row of focusable action buttons for app bar [actions:].
|
||||
///
|
||||
/// Manages focus nodes, left/right D-pad navigation between buttons,
|
||||
/// and the standard white-alpha background focus indicator internally.
|
||||
///
|
||||
/// Returns a single [Row] widget — place it inside the `actions:` list:
|
||||
/// ```dart
|
||||
/// CustomAppBar(
|
||||
/// title: Text('Title'),
|
||||
/// actions: [
|
||||
/// FocusableActionBar(
|
||||
/// actions: [
|
||||
/// FocusableAction(icon: Symbols.refresh_rounded, onPressed: _refresh),
|
||||
/// FocusableAction(icon: Symbols.upload_rounded, onPressed: _upload),
|
||||
/// ],
|
||||
/// ),
|
||||
/// ],
|
||||
/// )
|
||||
/// ```
|
||||
class FocusableActionBar extends StatefulWidget {
|
||||
final List<FocusableAction> actions;
|
||||
|
||||
|
||||
@@ -4,23 +4,6 @@ import 'focus_theme.dart';
|
||||
import 'focusable_wrapper.dart';
|
||||
import 'input_mode_tracker.dart';
|
||||
|
||||
/// A focusable button wrapper for D-pad navigation on TV.
|
||||
///
|
||||
/// Wraps any button widget with [FocusableWrapper] and adds a white overlay
|
||||
/// + contrasting border when focused. Tracks focus state internally so callers
|
||||
/// don't need manual state management.
|
||||
///
|
||||
/// ```dart
|
||||
/// FocusableButton(
|
||||
/// autofocus: true,
|
||||
/// onPressed: _doSomething,
|
||||
/// child: FilledButton.icon(
|
||||
/// onPressed: _doSomething,
|
||||
/// icon: Icon(Symbols.add_rounded),
|
||||
/// label: Text('Create'),
|
||||
/// ),
|
||||
/// )
|
||||
/// ```
|
||||
class FocusableButton extends StatefulWidget {
|
||||
final Widget child;
|
||||
final VoidCallback? onPressed;
|
||||
|
||||
@@ -6,27 +6,13 @@ import 'package:flutter/services.dart';
|
||||
import 'dpad_navigator.dart';
|
||||
import 'key_event_utils.dart';
|
||||
|
||||
/// Callbacks for chip key event handling.
|
||||
class ChipKeyCallbacks {
|
||||
/// Called when SELECT key is pressed (short press when [onLongPress] is set).
|
||||
final VoidCallback? onSelect;
|
||||
|
||||
/// Called when SELECT key is held for 500ms.
|
||||
final VoidCallback? onLongPress;
|
||||
|
||||
/// Called when DOWN arrow is pressed.
|
||||
final VoidCallback? onNavigateDown;
|
||||
|
||||
/// Called when UP arrow is pressed.
|
||||
final VoidCallback? onNavigateUp;
|
||||
|
||||
/// Called when LEFT arrow is pressed.
|
||||
final VoidCallback? onNavigateLeft;
|
||||
|
||||
/// Called when RIGHT arrow is pressed.
|
||||
final VoidCallback? onNavigateRight;
|
||||
|
||||
/// Called when BACK key is pressed.
|
||||
final VoidCallback? onBack;
|
||||
|
||||
const ChipKeyCallbacks({
|
||||
@@ -168,7 +154,6 @@ mixin FocusableChipStateMixin<T extends StatefulWidget> on State<T> {
|
||||
return KeyEventResult.ignored;
|
||||
}
|
||||
|
||||
// LEFT arrow - call callback if provided, otherwise propagate to parent
|
||||
if (key.isLeftKey) {
|
||||
if (callbacks.onNavigateLeft != null) {
|
||||
callbacks.onNavigateLeft!();
|
||||
@@ -178,7 +163,6 @@ mixin FocusableChipStateMixin<T extends StatefulWidget> on State<T> {
|
||||
return KeyEventResult.ignored;
|
||||
}
|
||||
|
||||
// RIGHT arrow - call callback if provided, otherwise consume to prevent escape
|
||||
if (key.isRightKey) {
|
||||
if (callbacks.onNavigateRight != null) {
|
||||
callbacks.onNavigateRight!();
|
||||
@@ -187,13 +171,11 @@ mixin FocusableChipStateMixin<T extends StatefulWidget> on State<T> {
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
|
||||
// DOWN arrow
|
||||
if (key.isDownKey) {
|
||||
callbacks.onNavigateDown?.call();
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
|
||||
// UP arrow
|
||||
if (key.isUpKey && callbacks.onNavigateUp != null) {
|
||||
callbacks.onNavigateUp!();
|
||||
return KeyEventResult.handled;
|
||||
|
||||
@@ -4,11 +4,6 @@ import 'dpad_navigator.dart';
|
||||
import 'focusable_wrapper.dart';
|
||||
import 'input_mode_tracker.dart';
|
||||
|
||||
/// A D-pad friendly slider that uses LEFT/RIGHT to adjust value
|
||||
/// and lets UP/DOWN pass through for focus traversal.
|
||||
///
|
||||
/// Hides the thumb in keyboard mode when not focused, matching
|
||||
/// the timeline slider pattern.
|
||||
class FocusableSlider extends StatefulWidget {
|
||||
final double value;
|
||||
final double min;
|
||||
|
||||
@@ -1,16 +1,372 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
import '../utils/platform_detector.dart';
|
||||
import '../widgets/tv_virtual_keyboard.dart';
|
||||
import 'dpad_navigator.dart';
|
||||
|
||||
/// A [TextField] wrapper that exposes D-pad navigation callbacks with
|
||||
/// caret-aware edge escapes — so LEFT at the start of the field and RIGHT
|
||||
/// at the end escape to neighbouring focus targets instead of bouncing
|
||||
/// against the caret boundary, while UP/DOWN always escape.
|
||||
///
|
||||
/// Collapsed selection only: if text is selected, LEFT/RIGHT fall through
|
||||
/// to the TextField's default caret movement.
|
||||
class FocusableTextField extends StatelessWidget {
|
||||
bool _usesTvKeyboard(bool enableTvKeyboard) => enableTvKeyboard && PlatformDetector.isAppleTV();
|
||||
|
||||
String? _keyboardHint(InputDecoration? decoration) => decoration?.hintText ?? decoration?.labelText;
|
||||
|
||||
KeyEventResult _handleInputKey({
|
||||
required TextEditingController controller,
|
||||
required bool usesTvKeyboard,
|
||||
required bool enabled,
|
||||
required VoidCallback openKeyboard,
|
||||
required KeyEvent event,
|
||||
TextInputType? keyboardType,
|
||||
TextInputAction? textInputAction,
|
||||
List<TextInputFormatter>? inputFormatters,
|
||||
ValueChanged<String>? onChanged,
|
||||
ValueChanged<String>? onSubmitted,
|
||||
VoidCallback? onEditingComplete,
|
||||
int? maxLength,
|
||||
int? maxLines,
|
||||
VoidCallback? onSelect,
|
||||
VoidCallback? onBack,
|
||||
VoidCallback? onNavigateLeft,
|
||||
VoidCallback? onNavigateRight,
|
||||
VoidCallback? onNavigateUp,
|
||||
VoidCallback? onNavigateDown,
|
||||
}) {
|
||||
final key = event.logicalKey;
|
||||
|
||||
if (usesTvKeyboard && enabled && event.isTvSelectEvent) {
|
||||
if (event is KeyDownEvent) openKeyboard();
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
|
||||
if (usesTvKeyboard && enabled && event.isPhysicalKeyboardEvent) {
|
||||
final result = _handleTvHardwareKeyboardKey(
|
||||
controller: controller,
|
||||
keyboardType: keyboardType,
|
||||
textInputAction: textInputAction,
|
||||
inputFormatters: inputFormatters,
|
||||
onChanged: onChanged,
|
||||
onSubmitted: onSubmitted,
|
||||
onEditingComplete: onEditingComplete,
|
||||
maxLength: maxLength,
|
||||
maxLines: maxLines,
|
||||
event: event,
|
||||
);
|
||||
if (result != KeyEventResult.ignored) return result;
|
||||
}
|
||||
|
||||
if (onBack != null && key.isBackKey) {
|
||||
if (event is KeyDownEvent) onBack();
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
|
||||
// Enter/numpad enter are left to TextField.onSubmitted. Handle only
|
||||
// non-text submit keys that TV remotes/gamepads may send while editing.
|
||||
if (!usesTvKeyboard &&
|
||||
onSelect != null &&
|
||||
(key == LogicalKeyboardKey.select || key == LogicalKeyboardKey.gameButtonA)) {
|
||||
if (event is KeyDownEvent) onSelect();
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
|
||||
if (!event.isActionable) return KeyEventResult.ignored;
|
||||
|
||||
if (key.isUpKey && onNavigateUp != null) {
|
||||
onNavigateUp();
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
if (key.isDownKey && onNavigateDown != null) {
|
||||
onNavigateDown();
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
|
||||
final sel = controller.selection;
|
||||
if (sel.isCollapsed) {
|
||||
if (key.isLeftKey && sel.baseOffset == 0 && onNavigateLeft != null) {
|
||||
onNavigateLeft();
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
if (key.isRightKey && sel.baseOffset == controller.text.length && onNavigateRight != null) {
|
||||
onNavigateRight();
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
}
|
||||
|
||||
return KeyEventResult.ignored;
|
||||
}
|
||||
|
||||
KeyEventResult _handleTvHardwareKeyboardKey({
|
||||
required TextEditingController controller,
|
||||
required KeyEvent event,
|
||||
TextInputType? keyboardType,
|
||||
TextInputAction? textInputAction,
|
||||
List<TextInputFormatter>? inputFormatters,
|
||||
ValueChanged<String>? onChanged,
|
||||
ValueChanged<String>? onSubmitted,
|
||||
VoidCallback? onEditingComplete,
|
||||
int? maxLength,
|
||||
int? maxLines,
|
||||
}) {
|
||||
final key = event.logicalKey;
|
||||
|
||||
if (event.isPhysicalKeyboardEnter) {
|
||||
if (event is KeyDownEvent) {
|
||||
if (_isMultilineTextInput(keyboardType: keyboardType, maxLines: maxLines)) {
|
||||
_insertText(
|
||||
controller: controller,
|
||||
text: '\n',
|
||||
inputFormatters: inputFormatters,
|
||||
maxLength: maxLength,
|
||||
onChanged: onChanged,
|
||||
);
|
||||
} else {
|
||||
_submitTextInput(
|
||||
controller: controller,
|
||||
textInputAction: textInputAction,
|
||||
onSubmitted: onSubmitted,
|
||||
onEditingComplete: onEditingComplete,
|
||||
);
|
||||
}
|
||||
}
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
|
||||
if (!event.isActionable) return KeyEventResult.ignored;
|
||||
|
||||
if (key == LogicalKeyboardKey.backspace) {
|
||||
_backspace(controller: controller, inputFormatters: inputFormatters, maxLength: maxLength, onChanged: onChanged);
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
if (key == LogicalKeyboardKey.delete) {
|
||||
_deleteForward(
|
||||
controller: controller,
|
||||
inputFormatters: inputFormatters,
|
||||
maxLength: maxLength,
|
||||
onChanged: onChanged,
|
||||
);
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
|
||||
if (key.isLeftKey || key.isRightKey) {
|
||||
return _moveCaretHorizontally(controller, key.isLeftKey ? -1 : 1);
|
||||
}
|
||||
|
||||
final character = event.character;
|
||||
if (character != null && character.isNotEmpty && !key.isNavigationKey && !_isControlCharacter(character)) {
|
||||
_insertText(
|
||||
controller: controller,
|
||||
text: character,
|
||||
inputFormatters: inputFormatters,
|
||||
maxLength: maxLength,
|
||||
onChanged: onChanged,
|
||||
);
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
|
||||
return KeyEventResult.ignored;
|
||||
}
|
||||
|
||||
bool _isMultilineTextInput({TextInputType? keyboardType, int? maxLines}) {
|
||||
return keyboardType?.index == TextInputType.multiline.index || (maxLines != null && maxLines != 1);
|
||||
}
|
||||
|
||||
bool _isControlCharacter(String text) {
|
||||
return text.runes.every((codeUnit) => codeUnit < 0x20 || codeUnit == 0x7f);
|
||||
}
|
||||
|
||||
KeyEventResult _moveCaretHorizontally(TextEditingController controller, int delta) {
|
||||
final value = controller.value;
|
||||
final selection = value.selection;
|
||||
if (!selection.isValid) {
|
||||
controller.selection = TextSelection.collapsed(offset: value.text.length);
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
|
||||
if (!selection.isCollapsed) {
|
||||
final offset = delta < 0
|
||||
? (selection.start < selection.end ? selection.start : selection.end)
|
||||
: (selection.start > selection.end ? selection.start : selection.end);
|
||||
controller.selection = TextSelection.collapsed(offset: offset);
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
|
||||
final nextOffset = selection.extentOffset + delta;
|
||||
if (nextOffset < 0 || nextOffset > value.text.length) return KeyEventResult.ignored;
|
||||
controller.selection = TextSelection.collapsed(offset: nextOffset);
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
|
||||
void _submitTextInput({
|
||||
required TextEditingController controller,
|
||||
required TextInputAction? textInputAction,
|
||||
ValueChanged<String>? onSubmitted,
|
||||
VoidCallback? onEditingComplete,
|
||||
}) {
|
||||
if (onEditingComplete != null) {
|
||||
onEditingComplete();
|
||||
} else {
|
||||
_defaultEditingComplete(textInputAction);
|
||||
}
|
||||
onSubmitted?.call(controller.text);
|
||||
}
|
||||
|
||||
void _defaultEditingComplete(TextInputAction? textInputAction) {
|
||||
final focus = FocusManager.instance.primaryFocus;
|
||||
switch (textInputAction) {
|
||||
case TextInputAction.next:
|
||||
focus?.nextFocus();
|
||||
case TextInputAction.previous:
|
||||
focus?.previousFocus();
|
||||
default:
|
||||
focus?.unfocus();
|
||||
}
|
||||
}
|
||||
|
||||
void _insertText({
|
||||
required TextEditingController controller,
|
||||
required String text,
|
||||
List<TextInputFormatter>? inputFormatters,
|
||||
int? maxLength,
|
||||
ValueChanged<String>? onChanged,
|
||||
}) {
|
||||
final value = controller.value;
|
||||
final selection = value.selection;
|
||||
final start = selection.isValid
|
||||
? (selection.start < selection.end ? selection.start : selection.end)
|
||||
: value.text.length;
|
||||
final end = selection.isValid
|
||||
? (selection.start > selection.end ? selection.start : selection.end)
|
||||
: value.text.length;
|
||||
final newText = value.text.replaceRange(start, end, text);
|
||||
_replaceTextValue(
|
||||
controller: controller,
|
||||
nextValue: value.copyWith(
|
||||
text: newText,
|
||||
selection: TextSelection.collapsed(offset: start + text.length),
|
||||
composing: TextRange.empty,
|
||||
),
|
||||
inputFormatters: inputFormatters,
|
||||
maxLength: maxLength,
|
||||
onChanged: onChanged,
|
||||
);
|
||||
}
|
||||
|
||||
void _backspace({
|
||||
required TextEditingController controller,
|
||||
List<TextInputFormatter>? inputFormatters,
|
||||
int? maxLength,
|
||||
ValueChanged<String>? onChanged,
|
||||
}) {
|
||||
final value = controller.value;
|
||||
final selection = value.selection;
|
||||
final start = selection.isValid
|
||||
? (selection.start < selection.end ? selection.start : selection.end)
|
||||
: value.text.length;
|
||||
final end = selection.isValid
|
||||
? (selection.start > selection.end ? selection.start : selection.end)
|
||||
: value.text.length;
|
||||
if (start != end) {
|
||||
_replaceTextRange(
|
||||
controller,
|
||||
start,
|
||||
end,
|
||||
inputFormatters: inputFormatters,
|
||||
maxLength: maxLength,
|
||||
onChanged: onChanged,
|
||||
);
|
||||
return;
|
||||
}
|
||||
if (start == 0) return;
|
||||
_replaceTextRange(
|
||||
controller,
|
||||
start - 1,
|
||||
start,
|
||||
inputFormatters: inputFormatters,
|
||||
maxLength: maxLength,
|
||||
onChanged: onChanged,
|
||||
);
|
||||
}
|
||||
|
||||
void _deleteForward({
|
||||
required TextEditingController controller,
|
||||
List<TextInputFormatter>? inputFormatters,
|
||||
int? maxLength,
|
||||
ValueChanged<String>? onChanged,
|
||||
}) {
|
||||
final value = controller.value;
|
||||
final selection = value.selection;
|
||||
final start = selection.isValid
|
||||
? (selection.start < selection.end ? selection.start : selection.end)
|
||||
: value.text.length;
|
||||
final end = selection.isValid
|
||||
? (selection.start > selection.end ? selection.start : selection.end)
|
||||
: value.text.length;
|
||||
if (start != end) {
|
||||
_replaceTextRange(
|
||||
controller,
|
||||
start,
|
||||
end,
|
||||
inputFormatters: inputFormatters,
|
||||
maxLength: maxLength,
|
||||
onChanged: onChanged,
|
||||
);
|
||||
return;
|
||||
}
|
||||
if (start >= value.text.length) return;
|
||||
_replaceTextRange(
|
||||
controller,
|
||||
start,
|
||||
start + 1,
|
||||
inputFormatters: inputFormatters,
|
||||
maxLength: maxLength,
|
||||
onChanged: onChanged,
|
||||
);
|
||||
}
|
||||
|
||||
void _replaceTextRange(
|
||||
TextEditingController controller,
|
||||
int start,
|
||||
int end, {
|
||||
List<TextInputFormatter>? inputFormatters,
|
||||
int? maxLength,
|
||||
ValueChanged<String>? onChanged,
|
||||
}) {
|
||||
final value = controller.value;
|
||||
_replaceTextValue(
|
||||
controller: controller,
|
||||
nextValue: value.copyWith(
|
||||
text: value.text.replaceRange(start, end, ''),
|
||||
selection: TextSelection.collapsed(offset: start),
|
||||
composing: TextRange.empty,
|
||||
),
|
||||
inputFormatters: inputFormatters,
|
||||
maxLength: maxLength,
|
||||
onChanged: onChanged,
|
||||
);
|
||||
}
|
||||
|
||||
void _replaceTextValue({
|
||||
required TextEditingController controller,
|
||||
required TextEditingValue nextValue,
|
||||
List<TextInputFormatter>? inputFormatters,
|
||||
int? maxLength,
|
||||
ValueChanged<String>? onChanged,
|
||||
}) {
|
||||
final previousValue = controller.value;
|
||||
var formattedValue = nextValue;
|
||||
final formatters = [
|
||||
...?inputFormatters,
|
||||
if (maxLength != null && maxLength > 0) LengthLimitingTextInputFormatter(maxLength),
|
||||
];
|
||||
for (final formatter in formatters) {
|
||||
formattedValue = formatter.formatEditUpdate(previousValue, formattedValue);
|
||||
}
|
||||
|
||||
controller.value = formattedValue;
|
||||
if (formattedValue.text != previousValue.text) {
|
||||
onChanged?.call(formattedValue.text);
|
||||
}
|
||||
}
|
||||
|
||||
abstract class _FocusableTextInputBase extends StatelessWidget {
|
||||
final TextEditingController controller;
|
||||
final FocusNode? focusNode;
|
||||
final InputDecoration? decoration;
|
||||
@@ -19,14 +375,29 @@ class FocusableTextField extends StatelessWidget {
|
||||
final List<TextInputFormatter>? inputFormatters;
|
||||
final ValueChanged<String>? onChanged;
|
||||
final ValueChanged<String>? onSubmitted;
|
||||
final VoidCallback? onEditingComplete;
|
||||
final VoidCallback? onSelect;
|
||||
final VoidCallback? onBack;
|
||||
final bool autofocus;
|
||||
final bool enabled;
|
||||
final bool enableTvKeyboard;
|
||||
final bool obscureText;
|
||||
final bool autocorrect;
|
||||
final bool enableSuggestions;
|
||||
final bool? enableInteractiveSelection;
|
||||
final int? maxLength;
|
||||
final int? maxLines;
|
||||
final int? minLines;
|
||||
final TextAlign textAlign;
|
||||
final TextCapitalization textCapitalization;
|
||||
final TextStyle? style;
|
||||
|
||||
final VoidCallback? onNavigateLeft;
|
||||
final VoidCallback? onNavigateRight;
|
||||
final VoidCallback? onNavigateUp;
|
||||
final VoidCallback? onNavigateDown;
|
||||
|
||||
const FocusableTextField({
|
||||
const _FocusableTextInputBase({
|
||||
super.key,
|
||||
required this.controller,
|
||||
this.focusNode,
|
||||
@@ -36,55 +407,232 @@ class FocusableTextField extends StatelessWidget {
|
||||
this.inputFormatters,
|
||||
this.onChanged,
|
||||
this.onSubmitted,
|
||||
this.onEditingComplete,
|
||||
this.onSelect,
|
||||
this.onBack,
|
||||
this.autofocus = false,
|
||||
this.enabled = true,
|
||||
this.enableTvKeyboard = true,
|
||||
this.obscureText = false,
|
||||
this.autocorrect = true,
|
||||
this.enableSuggestions = true,
|
||||
this.enableInteractiveSelection,
|
||||
this.maxLength,
|
||||
this.maxLines = 1,
|
||||
this.minLines,
|
||||
this.textAlign = TextAlign.start,
|
||||
this.textCapitalization = TextCapitalization.none,
|
||||
this.style,
|
||||
this.onNavigateLeft,
|
||||
this.onNavigateRight,
|
||||
this.onNavigateUp,
|
||||
this.onNavigateDown,
|
||||
});
|
||||
|
||||
KeyEventResult _handleKey(FocusNode _, KeyEvent event) {
|
||||
if (!event.isActionable) return KeyEventResult.ignored;
|
||||
final key = event.logicalKey;
|
||||
bool get _hasTvKeyboard => _usesTvKeyboard(enableTvKeyboard);
|
||||
|
||||
if (key.isUpKey && onNavigateUp != null) {
|
||||
onNavigateUp!();
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
if (key.isDownKey && onNavigateDown != null) {
|
||||
onNavigateDown!();
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
|
||||
final sel = controller.selection;
|
||||
if (sel.isCollapsed) {
|
||||
if (key.isLeftKey && sel.baseOffset == 0 && onNavigateLeft != null) {
|
||||
onNavigateLeft!();
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
if (key.isRightKey && sel.baseOffset == controller.text.length && onNavigateRight != null) {
|
||||
onNavigateRight!();
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
}
|
||||
|
||||
return KeyEventResult.ignored;
|
||||
void _showTvKeyboard(BuildContext context) {
|
||||
if (!enabled) return;
|
||||
showTvVirtualKeyboard(
|
||||
context: context,
|
||||
controller: controller,
|
||||
hintText: _keyboardHint(decoration),
|
||||
keyboardType: keyboardType,
|
||||
textInputAction: textInputAction,
|
||||
inputFormatters: inputFormatters,
|
||||
obscureText: obscureText,
|
||||
maxLength: maxLength,
|
||||
maxLines: maxLines,
|
||||
onChanged: onChanged,
|
||||
onSubmitted: onSubmitted,
|
||||
onAction: onEditingComplete ?? onSelect,
|
||||
);
|
||||
}
|
||||
|
||||
KeyEventResult _handleKey(BuildContext context, FocusNode _, KeyEvent event) {
|
||||
return _handleInputKey(
|
||||
controller: controller,
|
||||
usesTvKeyboard: _hasTvKeyboard,
|
||||
enabled: enabled,
|
||||
openKeyboard: () => _showTvKeyboard(context),
|
||||
event: event,
|
||||
keyboardType: keyboardType,
|
||||
textInputAction: textInputAction,
|
||||
inputFormatters: inputFormatters,
|
||||
onChanged: onChanged,
|
||||
onSubmitted: onSubmitted,
|
||||
onEditingComplete: onEditingComplete,
|
||||
maxLength: maxLength,
|
||||
maxLines: maxLines,
|
||||
onSelect: onSelect,
|
||||
onBack: onBack,
|
||||
onNavigateLeft: onNavigateLeft,
|
||||
onNavigateRight: onNavigateRight,
|
||||
onNavigateUp: onNavigateUp,
|
||||
onNavigateDown: onNavigateDown,
|
||||
);
|
||||
}
|
||||
|
||||
Widget buildFocusableInput(BuildContext context, Widget Function(bool usesTvKeyboard) builder) {
|
||||
final usesTvKeyboard = _hasTvKeyboard;
|
||||
return Focus(
|
||||
// This wrapper only intercepts key events bubbling from the input; the
|
||||
// real TextField/TextFormField must remain the traversable focus target.
|
||||
canRequestFocus: false,
|
||||
skipTraversal: true,
|
||||
onKeyEvent: (node, event) => _handleKey(context, node, event),
|
||||
child: builder(usesTvKeyboard),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// A [TextField] wrapper that exposes D-pad navigation callbacks with
|
||||
/// caret-aware edge escapes — so LEFT at the start of the field and RIGHT
|
||||
/// at the end escape to neighbouring focus targets instead of bouncing
|
||||
/// against the caret boundary, while UP/DOWN always escape.
|
||||
///
|
||||
/// Collapsed selection only: if text is selected, LEFT/RIGHT fall through
|
||||
/// to the TextField's default caret movement.
|
||||
class FocusableTextField extends _FocusableTextInputBase {
|
||||
const FocusableTextField({
|
||||
super.key,
|
||||
required super.controller,
|
||||
super.focusNode,
|
||||
super.decoration,
|
||||
super.keyboardType,
|
||||
super.textInputAction,
|
||||
super.inputFormatters,
|
||||
super.onChanged,
|
||||
super.onSubmitted,
|
||||
super.onEditingComplete,
|
||||
super.onSelect,
|
||||
super.onBack,
|
||||
super.autofocus,
|
||||
super.enabled,
|
||||
super.enableTvKeyboard,
|
||||
super.obscureText,
|
||||
super.autocorrect,
|
||||
super.enableSuggestions,
|
||||
super.enableInteractiveSelection,
|
||||
super.maxLength,
|
||||
super.maxLines,
|
||||
super.minLines,
|
||||
super.textAlign,
|
||||
super.textCapitalization,
|
||||
super.style,
|
||||
super.onNavigateLeft,
|
||||
super.onNavigateRight,
|
||||
super.onNavigateUp,
|
||||
super.onNavigateDown,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Focus(
|
||||
onKeyEvent: _handleKey,
|
||||
child: TextField(
|
||||
return buildFocusableInput(
|
||||
context,
|
||||
(usesTvKeyboard) => TextField(
|
||||
controller: controller,
|
||||
focusNode: focusNode,
|
||||
enabled: enabled,
|
||||
decoration: decoration,
|
||||
keyboardType: keyboardType,
|
||||
keyboardType: usesTvKeyboard ? TextInputType.none : keyboardType,
|
||||
textInputAction: textInputAction,
|
||||
inputFormatters: inputFormatters,
|
||||
onChanged: onChanged,
|
||||
onSubmitted: onSubmitted,
|
||||
onEditingComplete: onEditingComplete,
|
||||
autofocus: autofocus,
|
||||
autocorrect: autocorrect,
|
||||
enableSuggestions: enableSuggestions,
|
||||
obscureText: obscureText,
|
||||
maxLength: maxLength,
|
||||
maxLines: maxLines,
|
||||
minLines: minLines,
|
||||
textAlign: textAlign,
|
||||
textCapitalization: textCapitalization,
|
||||
style: style,
|
||||
readOnly: usesTvKeyboard,
|
||||
showCursor: usesTvKeyboard ? true : null,
|
||||
enableInteractiveSelection: usesTvKeyboard ? false : enableInteractiveSelection,
|
||||
onTap: usesTvKeyboard ? () => _showTvKeyboard(context) : null,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class FocusableTextFormField extends _FocusableTextInputBase {
|
||||
final ValueChanged<String>? onFieldSubmitted;
|
||||
final FormFieldValidator<String>? validator;
|
||||
final AutovalidateMode? autovalidateMode;
|
||||
final FormFieldSetter<String>? onSaved;
|
||||
|
||||
const FocusableTextFormField({
|
||||
super.key,
|
||||
required super.controller,
|
||||
super.focusNode,
|
||||
super.decoration,
|
||||
super.keyboardType,
|
||||
super.textInputAction,
|
||||
super.inputFormatters,
|
||||
super.onChanged,
|
||||
this.onFieldSubmitted,
|
||||
super.onEditingComplete,
|
||||
super.onSelect,
|
||||
super.onBack,
|
||||
this.validator,
|
||||
this.autovalidateMode,
|
||||
this.onSaved,
|
||||
super.autofocus,
|
||||
super.enabled,
|
||||
super.enableTvKeyboard,
|
||||
super.obscureText,
|
||||
super.autocorrect,
|
||||
super.enableSuggestions,
|
||||
super.enableInteractiveSelection,
|
||||
super.maxLength,
|
||||
super.maxLines,
|
||||
super.minLines,
|
||||
super.textAlign,
|
||||
super.textCapitalization,
|
||||
super.style,
|
||||
super.onNavigateLeft,
|
||||
super.onNavigateRight,
|
||||
super.onNavigateUp,
|
||||
super.onNavigateDown,
|
||||
}) : super(onSubmitted: onFieldSubmitted);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return buildFocusableInput(
|
||||
context,
|
||||
(usesTvKeyboard) => TextFormField(
|
||||
controller: controller,
|
||||
focusNode: focusNode,
|
||||
enabled: enabled,
|
||||
decoration: decoration,
|
||||
keyboardType: usesTvKeyboard ? TextInputType.none : keyboardType,
|
||||
textInputAction: textInputAction,
|
||||
inputFormatters: inputFormatters,
|
||||
onChanged: onChanged,
|
||||
onFieldSubmitted: onFieldSubmitted,
|
||||
onEditingComplete: onEditingComplete,
|
||||
validator: validator,
|
||||
autovalidateMode: autovalidateMode,
|
||||
onSaved: onSaved,
|
||||
autofocus: autofocus,
|
||||
autocorrect: autocorrect,
|
||||
enableSuggestions: enableSuggestions,
|
||||
obscureText: obscureText,
|
||||
maxLength: maxLength,
|
||||
maxLines: maxLines,
|
||||
minLines: minLines,
|
||||
textAlign: textAlign,
|
||||
textCapitalization: textCapitalization,
|
||||
style: style,
|
||||
readOnly: usesTvKeyboard,
|
||||
showCursor: usesTvKeyboard ? true : null,
|
||||
enableInteractiveSelection: usesTvKeyboard ? false : enableInteractiveSelection,
|
||||
onTap: usesTvKeyboard ? () => _showTvKeyboard(context) : null,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
import '../utils/platform_detector.dart';
|
||||
import 'dpad_navigator.dart';
|
||||
|
||||
/// Handles back key events by popping the current route.
|
||||
@@ -52,10 +53,7 @@ class BackKeyCoordinator {
|
||||
}
|
||||
}
|
||||
|
||||
/// Handle a BACK key press by running [onBack] on key up.
|
||||
///
|
||||
/// This consumes KeyDown/KeyRepeat to avoid duplicate actions from key repeat.
|
||||
/// Optionally suppresses stray KeyUp events delivered to the next route after a pop.
|
||||
/// Consumes KeyDown/KeyRepeat to avoid duplicate actions, runs [onBack] on KeyUp.
|
||||
KeyEventResult handleBackKeyAction(KeyEvent event, VoidCallback onBack) {
|
||||
if (!event.logicalKey.isBackKey) return KeyEventResult.ignored;
|
||||
|
||||
@@ -64,6 +62,13 @@ KeyEventResult handleBackKeyAction(KeyEvent event, VoidCallback onBack) {
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
|
||||
if (PlatformDetector.isAppleTV() && event.isPhysicalKeyboardEvent && event is KeyDownEvent) {
|
||||
BackKeyCoordinator.markHandled();
|
||||
BackKeyUpSuppressor.suppressBackUntilKeyUp();
|
||||
onBack();
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
|
||||
if (event is KeyUpEvent) {
|
||||
BackKeyCoordinator.markHandled();
|
||||
// Mark that we're closing via back key so suppressBackUntilKeyUp() knows to skip
|
||||
@@ -92,12 +97,8 @@ KeyEventResult handleBackKeyNavigation<T>(BuildContext context, KeyEvent event,
|
||||
return handleBackKeyAction(event, () => Navigator.pop(context, result));
|
||||
}
|
||||
|
||||
/// Handles a select key as a one-shot button activation.
|
||||
///
|
||||
/// Fires [onActivate] on the initial [KeyDownEvent] only.
|
||||
/// Consumes all select key events (down, repeat, up) to prevent
|
||||
/// unhandled events from reaching platform-level handling.
|
||||
/// Returns [KeyEventResult.ignored] for non-select keys.
|
||||
/// Consumes all select-key events (down, repeat, up) so they don't reach
|
||||
/// platform-level handlers; fires [onActivate] on the initial KeyDown only.
|
||||
KeyEventResult handleOneShotSelect(KeyEvent event, VoidCallback onActivate) {
|
||||
if (!event.logicalKey.isSelectKey) return KeyEventResult.ignored;
|
||||
if (event is KeyDownEvent) onActivate();
|
||||
|
||||
@@ -2,8 +2,6 @@ import 'dart:async';
|
||||
|
||||
import 'package:flutter/widgets.dart';
|
||||
|
||||
/// Key-repeat timer for held dpad/keyboard inputs: fires immediately, then
|
||||
/// every 100 ms after a 400 ms initial delay. Call [stopRepeat] in `dispose`.
|
||||
mixin KeyRepeatHelper<T extends StatefulWidget> on State<T> {
|
||||
static const _initialDelay = Duration(milliseconds: 400);
|
||||
static const _repeatInterval = Duration(milliseconds: 100);
|
||||
|
||||
@@ -8,7 +8,6 @@ class HubFocusMemory {
|
||||
static final Map<String, int> _perHubMemory = {};
|
||||
static int _lastColumnHint = 0;
|
||||
|
||||
/// Remember the focused index for a specific hub
|
||||
static void setForHub(String hubKey, int index) {
|
||||
_perHubMemory[hubKey] = index;
|
||||
_lastColumnHint = index;
|
||||
|
||||
+244
-66
@@ -3,13 +3,22 @@
|
||||
"title": "Plezy"
|
||||
},
|
||||
"auth": {
|
||||
"signIn": "Log ind",
|
||||
"signInWithPlex": "Log ind med Plex",
|
||||
"showQRCode": "Vis QR-kode",
|
||||
"authenticate": "Godkend",
|
||||
"authenticationTimeout": "Godkendelse fik timeout. Prøv igen.",
|
||||
"scanQRToSignIn": "Scan denne QR-kode for at logge ind",
|
||||
"waitingForAuth": "Venter på godkendelse...\nFærdiggør login i din browser.",
|
||||
"useBrowser": "Brug browser"
|
||||
"waitingForAuth": "Venter på godkendelse...\nLog ind fra din browser.",
|
||||
"useBrowser": "Brug browser",
|
||||
"or": "eller",
|
||||
"connectToJellyfin": "Forbind til Jellyfin",
|
||||
"useQuickConnect": "Brug Quick Connect",
|
||||
"quickConnectCode": "Quick Connect-kode",
|
||||
"quickConnectInstructions": "Åbn Quick Connect i Jellyfin, og indtast denne kode.",
|
||||
"quickConnectWaiting": "Venter på godkendelse…",
|
||||
"quickConnectCancel": "Annullér",
|
||||
"quickConnectExpired": "Quick Connect er udløbet. Prøv igen."
|
||||
},
|
||||
"common": {
|
||||
"cancel": "Annuller",
|
||||
@@ -43,9 +52,6 @@
|
||||
"mute": "Lydløs",
|
||||
"ok": "OK",
|
||||
"reconnect": "Genopret forbindelse",
|
||||
"exitConfirmTitle": "Luk app?",
|
||||
"exitConfirmMessage": "Er du sikker på, at du vil afslutte?",
|
||||
"dontAskAgain": "Spørg ikke igen",
|
||||
"exit": "Afslut",
|
||||
"viewAll": "Vis alle",
|
||||
"checkingNetwork": "Tjekker netværk...",
|
||||
@@ -55,7 +61,8 @@
|
||||
"startingOfflineMode": "Starter offlinetilstand...",
|
||||
"loading": "Indlæser...",
|
||||
"fullscreen": "Fuldskærm",
|
||||
"exitFullscreen": "Forlad fuldskærm"
|
||||
"exitFullscreen": "Forlad fuldskærm",
|
||||
"pressBackAgainToExit": "Tryk tilbage igen for at afslutte"
|
||||
},
|
||||
"screens": {
|
||||
"licenses": "Licenser",
|
||||
@@ -104,22 +111,22 @@
|
||||
"gridView": "Gitter",
|
||||
"listView": "Liste",
|
||||
"showHeroSection": "Vis hero-sektion",
|
||||
"useGlobalHubs": "Brug Plex Home-layout",
|
||||
"useGlobalHubsDescription": "Vis startsidehubbe som den officielle Plex-klient. Når slået fra, vises anbefalinger per bibliotek.",
|
||||
"useGlobalHubs": "Brug startlayout",
|
||||
"useGlobalHubsDescription": "Vis samlet startsideindhold. Brug ellers biblioteksanbefalinger.",
|
||||
"showServerNameOnHubs": "Vis servernavn på hubbe",
|
||||
"showServerNameOnHubsDescription": "Vis altid servernavnet i hubtitler. Når slået fra, vises kun ved duplikerede navne.",
|
||||
"showServerNameOnHubsDescription": "Vis altid servernavne i hubtitler.",
|
||||
"groupLibrariesByServer": "Grupper biblioteker efter server",
|
||||
"groupLibrariesByServerDescription": "Vis en overskrift for hver Plex-server i sidepanelet, når du er forbundet til flere servere.",
|
||||
"groupLibrariesByServerDescription": "Gruppér sidebar-biblioteker under hver medieserver.",
|
||||
"alwaysKeepSidebarOpen": "Hold altid sidepanelet åbent",
|
||||
"alwaysKeepSidebarOpenDescription": "Sidepanelet forbliver udvidet, og indholdsområdet tilpasser sig",
|
||||
"showUnwatchedCount": "Vis antal usete",
|
||||
"showUnwatchedCountDescription": "Vis antal usete episoder på serier og sæsoner",
|
||||
"showEpisodeNumberOnCards": "Vis episodenummer på kort",
|
||||
"showEpisodeNumberOnCardsDescription": "Vis episodenummer ved siden af sæsonen (f.eks. S2 E3) på episodekort",
|
||||
"showEpisodeNumberOnCardsDescription": "Vis sæson- og episodenummer på episodekort",
|
||||
"showSeasonPostersOnTabs": "Vis sæsonplakater på faner",
|
||||
"showSeasonPostersOnTabsDescription": "Vis sæsonens plakat over hver sæsonfane på en series detaljeside",
|
||||
"showSeasonPostersOnTabsDescription": "Vis hver sæsons plakat over dens fane",
|
||||
"hideSpoilers": "Skjul spoilere for usete episoder",
|
||||
"hideSpoilersDescription": "Slør miniaturebilleder og skjul beskrivelser for episoder, du ikke har set endnu",
|
||||
"hideSpoilersDescription": "Slør miniaturebilleder og beskrivelser for usete episoder",
|
||||
"playerBackend": "Afspillerbackend",
|
||||
"exoPlayer": "ExoPlayer (Anbefalet)",
|
||||
"mpv": "mpv",
|
||||
@@ -128,7 +135,7 @@
|
||||
"bufferSize": "Bufferstørrelse",
|
||||
"bufferSizeMB": "${size}MB",
|
||||
"bufferSizeAuto": "Auto (Anbefalet)",
|
||||
"bufferSizeWarning": "Din enhed har ${heap}MB hukommelse. En buffer på ${size}MB kan forårsage afspilningsproblemer.",
|
||||
"bufferSizeWarning": "${heap}MB hukommelse tilgængelig. En buffer på ${size}MB kan påvirke afspilning.",
|
||||
"defaultQualityTitle": "Standardkvalitet",
|
||||
"defaultQualityDescription": "Bruges ved start af afspilning. Lavere værdier reducerer båndbredden.",
|
||||
"subtitleStyling": "Undertekststil",
|
||||
@@ -140,16 +147,18 @@
|
||||
"defaultSleepTimer": "Standard sove-timer",
|
||||
"minutesUnit": "${minutes} minutter",
|
||||
"rememberTrackSelections": "Husk sporvalg per serie/film",
|
||||
"rememberTrackSelectionsDescription": "Gem automatisk lyd- og undertekstsprogpræferencer når du skifter spor under afspilning",
|
||||
"rememberTrackSelectionsDescription": "Husk lyd- og undertekstvalg pr. titel",
|
||||
"showChapterMarkersOnTimeline": "Vis kapitelmarkører på tidslinjen",
|
||||
"showChapterMarkersOnTimelineDescription": "Opdel tidslinjen ved kapitelgrænser",
|
||||
"clickVideoTogglesPlayback": "Klik på video skifter afspil/pause",
|
||||
"clickVideoTogglesPlaybackDescription": "Når aktiveret, afspiller/pauser klik på videoen. Ellers vises/skjules betjeningselementer.",
|
||||
"clickVideoTogglesPlaybackDescription": "Klik på video for at afspille/pause i stedet for at vise kontroller.",
|
||||
"videoPlayerControls": "Videoafspillerkontroller",
|
||||
"keyboardShortcuts": "Tastaturgenveje",
|
||||
"keyboardShortcutsDescription": "Tilpas tastaturgenveje",
|
||||
"videoPlayerNavigation": "Videoafspillernavigation",
|
||||
"videoPlayerNavigationDescription": "Brug piletaster til at navigere videoafspillerkontroller",
|
||||
"watchTogetherRelay": "Watch Together-relay",
|
||||
"watchTogetherRelayDescription": "Angiv en brugerdefineret relay-server til Watch Together. Alle deltagere skal bruge den samme server.",
|
||||
"watchTogetherRelayDescription": "Angiv en brugerdefineret relay. Alle skal bruge samme server.",
|
||||
"watchTogetherRelayHint": "https://min-relay.eksempel.dk",
|
||||
"crashReporting": "Fejlrapportering",
|
||||
"crashReportingDescription": "Send fejlrapporter for at hjælpe med at forbedre appen",
|
||||
@@ -158,10 +167,10 @@
|
||||
"viewLogs": "Vis logs",
|
||||
"viewLogsDescription": "Vis applikationslogs",
|
||||
"clearCache": "Ryd cache",
|
||||
"clearCacheDescription": "Dette rydder alle cachelagrede billeder og data. Appen kan tage længere tid om at indlæse indhold efter rydning.",
|
||||
"clearCacheDescription": "Ryd cachelagrede billeder og data. Indhold kan indlæses langsommere.",
|
||||
"clearCacheSuccess": "Cache ryddet",
|
||||
"resetSettings": "Nulstil indstillinger",
|
||||
"resetSettingsDescription": "Alle indstillinger nulstilles til standardværdier. Denne handling kan ikke fortrydes.",
|
||||
"resetSettingsDescription": "Gendan standardindstillinger. Dette kan ikke fortrydes.",
|
||||
"resetSettingsSuccess": "Indstillinger nulstillet",
|
||||
"backup": "Sikkerhedskopi",
|
||||
"exportSettings": "Eksportér indstillinger",
|
||||
@@ -182,7 +191,7 @@
|
||||
"updateAvailable": "Opdatering tilgængelig",
|
||||
"checkForUpdates": "Søg efter opdateringer",
|
||||
"autoCheckUpdatesOnStartup": "Søg automatisk efter opdateringer ved opstart",
|
||||
"autoCheckUpdatesOnStartupDescription": "Vis en notifikation, når en ny version er tilgængelig ved opstart",
|
||||
"autoCheckUpdatesOnStartupDescription": "Giv besked, når en opdatering er tilgængelig ved start",
|
||||
"validationErrorEnterNumber": "Indtast et gyldigt tal",
|
||||
"validationErrorDuration": "Varighed skal være mellem ${min} og ${max} ${unit}",
|
||||
"shortcutAlreadyAssigned": "Genvej allerede tildelt til ${action}",
|
||||
@@ -192,6 +201,8 @@
|
||||
"autoSkipIntroDescription": "Spring automatisk intromarkører over efter få sekunder",
|
||||
"autoSkipCredits": "Auto-spring rulletekster",
|
||||
"autoSkipCreditsDescription": "Spring automatisk rulletekster over og afspil næste episode",
|
||||
"forceSkipMarkerFallback": "Tving reservemarkører",
|
||||
"forceSkipMarkerFallbackDescription": "Brug mønstre i kapiteltitler, selv når Plex har markører",
|
||||
"autoSkipDelay": "Auto-spring forsinkelse",
|
||||
"autoSkipDelayDescription": "Vent ${seconds} sekunder før automatisk spring",
|
||||
"introPattern": "Intromarkørmønster",
|
||||
@@ -213,8 +224,8 @@
|
||||
"downloadOnWifiOnly": "Download kun på WiFi",
|
||||
"downloadOnWifiOnlyDescription": "Forhindre downloads på mobildata",
|
||||
"autoRemoveWatchedDownloads": "Fjern sete downloads automatisk",
|
||||
"autoRemoveWatchedDownloadsDescription": "Slet automatisk downloadede episoder og film, når de markeres som set",
|
||||
"cellularDownloadBlocked": "Downloads er deaktiveret på mobildata. Opret forbindelse til WiFi eller ændr indstillingen.",
|
||||
"autoRemoveWatchedDownloadsDescription": "Slet sete downloads automatisk",
|
||||
"cellularDownloadBlocked": "Downloads er blokeret på mobilnetværk. Brug WiFi eller skift indstilling.",
|
||||
"maxVolume": "Maksimal lydstyrke",
|
||||
"maxVolumeDescription": "Tillad lydstyrkeforstærkning over 100% for stille medier",
|
||||
"maxVolumePercent": "${percent}%",
|
||||
@@ -227,22 +238,20 @@
|
||||
"companionRemoteServer": "Companion Remote Server",
|
||||
"companionRemoteServerDescription": "Tillad mobilenheder på dit netværk at styre denne app",
|
||||
"autoPip": "Auto billede-i-billede",
|
||||
"autoPipDescription": "Gå automatisk til billede-i-billede når du forlader appen under afspilning",
|
||||
"autoPipDescription": "Gå i billede-i-billede, når du forlader under afspilning",
|
||||
"matchContentFrameRate": "Match indholdets billedhastighed",
|
||||
"matchContentFrameRateDescription": "Juster skærmens opdateringshastighed til videoindhold for at reducere hakken og spare batteri",
|
||||
"matchContentFrameRateDescription": "Tilpas skærmens opdateringsfrekvens til videoindhold",
|
||||
"matchRefreshRate": "Match opdateringshastighed",
|
||||
"matchRefreshRateDescription": "Skift skærmens opdateringshastighed til at matche videoindhold i fuldskærm",
|
||||
"matchRefreshRateDescription": "Tilpas skærmens opdateringsfrekvens i fuld skærm",
|
||||
"matchDynamicRange": "Match dynamisk område",
|
||||
"matchDynamicRangeDescription": "Aktiver automatisk HDR for HDR-indhold og gendan SDR når afspilleren lukkes",
|
||||
"matchDynamicRangeDescription": "Slå HDR til for HDR-indhold og derefter tilbage til SDR",
|
||||
"displaySwitchDelay": "Forsinkelse ved skærmskift",
|
||||
"tunneledPlayback": "Tunneleret afspilning",
|
||||
"tunneledPlaybackDescription": "Brug hardwareaccelereret videotunneling. Deaktiver hvis du ser sort skærm med lyd på HDR-indhold",
|
||||
"tunneledPlaybackDescription": "Brug videotunneling. Slå fra, hvis HDR-afspilning viser sort video.",
|
||||
"requireProfileSelectionOnOpen": "Spørg om profil ved åbning",
|
||||
"requireProfileSelectionOnOpenDescription": "Vis profilvalg hver gang appen åbnes",
|
||||
"confirmExitOnBack": "Bekræft før lukning",
|
||||
"confirmExitOnBackDescription": "Vis bekræftelsesdialog ved tryk på tilbage for at lukke appen",
|
||||
"forceTvMode": "Gennemtving TV-tilstand",
|
||||
"forceTvModeDescription": "Brug TV-layoutet uanset automatisk registrering. Nyttigt på Android TV-enheder, der ikke rapporterer leanback-funktionen. Genstarter appen ved ændring.",
|
||||
"forceTvModeDescription": "Tving TV-layout. Til enheder, der ikke registreres automatisk. Kræver genstart.",
|
||||
"startInFullscreen": "Start i fuldskærm",
|
||||
"startInFullscreenDescription": "Åbn Plezy i fuldskærmstilstand ved opstart",
|
||||
"autoHidePerformanceOverlay": "Skjul ydelses-overlay automatisk",
|
||||
@@ -251,15 +260,15 @@
|
||||
"showNavBarLabelsDescription": "Vis tekstlabels under navigationsbarikoner",
|
||||
"liveTvDefaultFavorites": "Standard til favoritkanaler",
|
||||
"liveTvDefaultFavoritesDescription": "Vis kun favoritkanaler ved åbning af Live TV",
|
||||
"display": "Display",
|
||||
"homeScreen": "Home Screen",
|
||||
"display": "Skærm",
|
||||
"homeScreen": "Startskærm",
|
||||
"navigation": "Navigation",
|
||||
"window": "Window",
|
||||
"content": "Content",
|
||||
"player": "Player",
|
||||
"subtitlesAndConfig": "Subtitles & Configuration",
|
||||
"seekAndTiming": "Seek & Timing",
|
||||
"behavior": "Behavior"
|
||||
"window": "Vindue",
|
||||
"content": "Indhold",
|
||||
"player": "Afspiller",
|
||||
"subtitlesAndConfig": "Undertekster og konfiguration",
|
||||
"seekAndTiming": "Søgning og timing",
|
||||
"behavior": "Adfærd"
|
||||
},
|
||||
"search": {
|
||||
"hint": "Søg film, serier, musik...",
|
||||
@@ -330,7 +339,7 @@
|
||||
"shufflePlay": "Afspil tilfældigt",
|
||||
"fileInfo": "Filinfo",
|
||||
"deleteFromServer": "Slet fra server",
|
||||
"confirmDelete": "Dette sletter permanent disse medier og filer fra din server. Dette kan ikke fortrydes.",
|
||||
"confirmDelete": "Slet dette medie og dets filer fra din server?",
|
||||
"deleteMultipleWarning": "Dette inkluderer alle episoder og deres filer.",
|
||||
"mediaDeletedSuccessfully": "Medieelement slettet",
|
||||
"mediaFailedToDelete": "Kunne ikke slette medieelement",
|
||||
@@ -414,7 +423,7 @@
|
||||
"pipErrors": {
|
||||
"androidVersion": "Kræver Android 8.0 eller nyere",
|
||||
"iosVersion": "Kræver iOS 15.0 eller nyere",
|
||||
"permissionDisabled": "Billede-i-billede-tilladelse er deaktiveret. Aktivér i Indstillinger > Apps > Plezy > Billede-i-billede",
|
||||
"permissionDisabled": "Billede-i-billede er deaktiveret. Slå det til i systemindstillinger.",
|
||||
"notSupported": "Enheden understøtter ikke billede-i-billede",
|
||||
"voSwitchFailed": "Kunne ikke skifte videooutput til billede-i-billede",
|
||||
"failed": "Billede-i-billede kunne ikke starte",
|
||||
@@ -452,7 +461,7 @@
|
||||
"musicNotSupported": "Musikafspilning understøttes endnu ikke",
|
||||
"noDescriptionAvailable": "Ingen beskrivelse tilgængelig",
|
||||
"noProfilesAvailable": "Ingen profiler tilgængelige",
|
||||
"contactAdminForProfiles": "Kontakt din Plex-administrator for at tilføje profiler",
|
||||
"contactAdminForProfiles": "Kontakt din serveradministrator for at tilføje profiler",
|
||||
"unableToDetermineLibrarySection": "Kan ikke bestemme biblioteksafdeling for dette element",
|
||||
"logsCleared": "Logs ryddet",
|
||||
"logsCopied": "Logs kopieret til udklipsholder",
|
||||
@@ -474,7 +483,7 @@
|
||||
"failedPlayback": "Kunne ikke ${action}: ${error}",
|
||||
"switchingToCompatiblePlayer": "Skifter til kompatibel afspiller...",
|
||||
"serverLimitTitle": "Afspilning mislykkedes",
|
||||
"serverLimitBody": "Serveren returnerede en fejl (HTTP 500). Det betyder som regel, at serverejeren har sat en båndbredde- eller transkodningsgrænse, der afviser din session. Der er intet at gøre fra klienten — serverejeren skal justere sine indstillinger.",
|
||||
"serverLimitBody": "Serverfejl (HTTP 500). En båndbredde-/transkodningsgrænse afviste nok sessionen. Bed ejeren om at justere den.",
|
||||
"logsUploaded": "Logs uploadet",
|
||||
"logsUploadFailed": "Kunne ikke uploade logs",
|
||||
"logId": "Log-ID"
|
||||
@@ -513,12 +522,85 @@
|
||||
"dialog": {
|
||||
"confirmAction": "Bekræft handling"
|
||||
},
|
||||
"profiles": {
|
||||
"addPlezyProfile": "Tilføj Plezy-profil",
|
||||
"switchingProfile": "Skifter profil…",
|
||||
"deleteThisProfileTitle": "Slet denne profil?",
|
||||
"deleteThisProfileMessage": "Fjern ${displayName}. Forbindelser påvirkes ikke.",
|
||||
"active": "Aktiv",
|
||||
"manage": "Administrer",
|
||||
"delete": "Slet",
|
||||
"signOut": "Log ud",
|
||||
"signOutPlexTitle": "Log ud af Plex?",
|
||||
"signOutPlexMessage": "Fjern ${displayName} og alle Plex Home-brugere? Log ind igen når som helst.",
|
||||
"signedOutPlex": "Logget ud af Plex.",
|
||||
"signOutFailed": "Log ud mislykkedes.",
|
||||
"sectionTitle": "Profiler",
|
||||
"summarySingle": "Tilføj profiler for at blande administrerede brugere og lokale identiteter",
|
||||
"summaryMultipleWithActive": "${count} profiler · aktiv: ${activeName}",
|
||||
"summaryMultiple": "${count} profiler",
|
||||
"removeConnectionTitle": "Fjern forbindelse?",
|
||||
"removeConnectionMessage": "Fjern ${displayName}s adgang til ${connectionLabel}. Andre profiler beholder den.",
|
||||
"deleteProfileTitle": "Slet profil?",
|
||||
"deleteProfileMessage": "Fjern ${displayName} og forbindelserne. Servere forbliver tilgængelige.",
|
||||
"profileNameLabel": "Profilnavn",
|
||||
"pinProtectionLabel": "PIN-beskyttelse",
|
||||
"pinManagedByPlex": "PIN administreres af Plex. Rediger på plex.tv.",
|
||||
"noPinSetEditOnPlex": "Ingen PIN-kode angivet. For at kræve en, redigér Home-brugeren på plex.tv.",
|
||||
"setPin": "Angiv PIN",
|
||||
"setPinTitle": "Angiv PIN",
|
||||
"confirmPinTitle": "Bekræft PIN",
|
||||
"pinSet": "PIN angivet",
|
||||
"changePin": "Skift",
|
||||
"removePin": "Fjern",
|
||||
"connectionsLabel": "Forbindelser",
|
||||
"add": "Tilføj",
|
||||
"deleteProfileButton": "Slet profil",
|
||||
"noConnectionsHint": "Ingen forbindelser — tilføj en for at bruge denne profil.",
|
||||
"noConnections": "Ingen forbindelser",
|
||||
"plexHomeAccount": "Plex Home-konto",
|
||||
"connectionDefault": "Standard",
|
||||
"connectionAs": "som ${displayName}",
|
||||
"makeDefault": "Gør til standard",
|
||||
"removeConnection": "Fjern",
|
||||
"profileRenamed": "Profil omdøbt.",
|
||||
"borrowAddTo": "Tilføj til ${displayName}",
|
||||
"borrowExplain": "Lån en anden profils forbindelse. PIN-beskyttede profiler kræver en PIN.",
|
||||
"borrowEmpty": "Intet at låne endnu.",
|
||||
"borrowEmptySubtitle": "Forbind Plex eller Jellyfin til en anden profil først.",
|
||||
"borrowFromProfile": "Fra ${displayName}",
|
||||
"borrowConnectionBorrowed": "Forbindelse lånt.",
|
||||
"borrowFailed": "Kunne ikke låne forbindelse.",
|
||||
"incorrectPin": "Forkert PIN.",
|
||||
"sourceProfileMissingParentAccount": "Kildeprofilen mangler sin overordnede konto.",
|
||||
"failedToVerifyPin": "Kunne ikke bekræfte PIN.",
|
||||
"newProfile": "Ny profil",
|
||||
"profileNameHint": "fx. Gæster, Børn, Familiens stue",
|
||||
"pinProtectionOptional": "PIN-beskyttelse (valgfri)",
|
||||
"pinExplain": "4-cifret PIN kræves for at skifte profiler.",
|
||||
"continueButton": "Fortsæt",
|
||||
"pinsDontMatch": "PIN-koder matcher ikke"
|
||||
},
|
||||
"connections": {
|
||||
"sectionTitle": "Forbindelser",
|
||||
"addConnection": "Tilføj forbindelse",
|
||||
"addConnectionSubtitleNoProfile": "Log ind med Plex eller forbind til en Jellyfin-server",
|
||||
"addConnectionSubtitleScoped": "Føj til ${displayName}: Plex, Jellyfin eller en anden profilforbindelse",
|
||||
"sessionExpiredOne": "Sessionen er udløbet for ${name}",
|
||||
"sessionExpiredMany": "Sessionen er udløbet for ${count} servere",
|
||||
"signInAgain": "Log ind igen"
|
||||
},
|
||||
"discover": {
|
||||
"title": "Opdag",
|
||||
"switchProfile": "Skift profil",
|
||||
"noContentAvailable": "Intet indhold tilgængeligt",
|
||||
"addMediaToLibraries": "Tilføj medier til dine biblioteker",
|
||||
"continueWatching": "Fortsæt med at se",
|
||||
"continueWatchingIn": "Fortsæt med at se i ${library}",
|
||||
"nextUp": "Næste op",
|
||||
"nextUpIn": "Næste op i ${library}",
|
||||
"recentlyAdded": "Nyligt tilføjet",
|
||||
"recentlyAddedIn": "Nyligt tilføjet i ${library}",
|
||||
"playEpisode": "S${season}E${episode}",
|
||||
"overview": "Oversigt",
|
||||
"cast": "Rollebesætning",
|
||||
@@ -532,7 +614,7 @@
|
||||
"errors": {
|
||||
"searchFailed": "Søgning mislykkedes: ${error}",
|
||||
"connectionTimeout": "Forbindelsestimeout ved indlæsning af ${context}",
|
||||
"connectionFailed": "Kunne ikke forbinde til Plex-server",
|
||||
"connectionFailed": "Kan ikke oprette forbindelse til medieserver",
|
||||
"failedToLoad": "Kunne ikke indlæse ${context}: ${error}",
|
||||
"noClientAvailable": "Ingen klient tilgængelig",
|
||||
"authenticationFailed": "Godkendelse mislykkedes: ${error}",
|
||||
@@ -540,7 +622,9 @@
|
||||
"pleaseEnterToken": "Indtast et token",
|
||||
"invalidToken": "Ugyldigt token",
|
||||
"failedToVerifyToken": "Kunne ikke verificere token: ${error}",
|
||||
"failedToSwitchProfile": "Kunne ikke skifte til ${displayName}"
|
||||
"failedToSwitchProfile": "Kunne ikke skifte til ${displayName}",
|
||||
"failedToDeleteProfile": "Kunne ikke slette ${displayName}",
|
||||
"failedToRate": "Kunne ikke opdatere bedømmelsen"
|
||||
},
|
||||
"libraries": {
|
||||
"title": "Biblioteker",
|
||||
@@ -595,17 +679,34 @@
|
||||
"seasons": "Sæsoner",
|
||||
"episodes": "Episoder",
|
||||
"folders": "Mapper"
|
||||
},
|
||||
"filterCategories": {
|
||||
"genre": "Genre",
|
||||
"year": "År",
|
||||
"contentRating": "Aldersvurdering",
|
||||
"tag": "Tag"
|
||||
},
|
||||
"sortLabels": {
|
||||
"title": "Titel",
|
||||
"dateAdded": "Tilføjet dato",
|
||||
"releaseDate": "Udgivelsesdato",
|
||||
"rating": "Vurdering",
|
||||
"lastPlayed": "Sidst afspillet",
|
||||
"playCount": "Antal afspilninger",
|
||||
"random": "Tilfældig",
|
||||
"dateShared": "Delt dato",
|
||||
"latestEpisodeAirDate": "Seneste episodes premieredato"
|
||||
}
|
||||
},
|
||||
"about": {
|
||||
"title": "Om",
|
||||
"openSourceLicenses": "Open source-licenser",
|
||||
"versionLabel": "Version ${version}",
|
||||
"appDescription": "En smuk Plex-klient til Flutter",
|
||||
"appDescription": "En smuk Plex- og Jellyfin-klient til Flutter",
|
||||
"viewLicensesDescription": "Se licenser for tredjepartsbiblioteker"
|
||||
},
|
||||
"serverSelection": {
|
||||
"allServerConnectionsFailed": "Kunne ikke forbinde til nogen servere. Tjek dit netværk og prøv igen.",
|
||||
"allServerConnectionsFailed": "Kunne ikke oprette forbindelse til nogen servere. Tjek dit netværk.",
|
||||
"noServersFoundForAccount": "Ingen servere fundet for ${username} (${email})",
|
||||
"failedToLoadServers": "Kunne ikke indlæse servere: ${error}"
|
||||
},
|
||||
@@ -642,6 +743,7 @@
|
||||
"reloadGuide": "Genindlæs guide",
|
||||
"now": "Nu",
|
||||
"today": "I dag",
|
||||
"tomorrow": "I morgen",
|
||||
"midnight": "Midnat",
|
||||
"overnight": "Nat",
|
||||
"morning": "Morgen",
|
||||
@@ -655,7 +757,41 @@
|
||||
"joinSession": "Deltag i igangværende session",
|
||||
"watchFromStart": "Se fra start (${minutes} min siden)",
|
||||
"watchLive": "Se live",
|
||||
"goToLive": "Gå til live"
|
||||
"goToLive": "Gå til live",
|
||||
"record": "Optag",
|
||||
"recordEpisode": "Optag episode",
|
||||
"recordSeries": "Optag serie",
|
||||
"recordOptions": "Optageindstillinger",
|
||||
"recordings": "Optagelser",
|
||||
"scheduledRecordings": "Planlagt",
|
||||
"recordingRules": "Optagelsesregler",
|
||||
"noScheduledRecordings": "Ingen optagelser planlagt",
|
||||
"noRecordingRules": "Ingen optagelsesregler endnu",
|
||||
"manageRecording": "Administrer optagelse",
|
||||
"cancelRecording": "Annullér optagelse",
|
||||
"cancelRecordingTitle": "Annullér denne optagelse?",
|
||||
"cancelRecordingMessage": "${title} bliver ikke længere optaget.",
|
||||
"deleteRule": "Slet regel",
|
||||
"deleteRuleTitle": "Slet optagelsesregel?",
|
||||
"deleteRuleMessage": "Fremtidige episoder af ${title} bliver ikke optaget.",
|
||||
"recordingScheduled": "Optagelse planlagt",
|
||||
"alreadyScheduled": "Dette program er allerede planlagt",
|
||||
"dvrAdminRequired": "DVR-indstillinger kræver en administratorkonto",
|
||||
"recordingFailed": "Kunne ikke planlægge optagelse",
|
||||
"recordingTargetMissing": "Kunne ikke bestemme optagelsesbibliotek",
|
||||
"recordNotAvailable": "Optagelse er ikke tilgængelig for dette program",
|
||||
"recordingCancelled": "Optagelse annulleret",
|
||||
"recordingRuleDeleted": "Optagelsesregel slettet",
|
||||
"processRecordingRules": "Genberegn regler",
|
||||
"loadingRecordings": "Indlæser optagelser ...",
|
||||
"recordingInProgress": "Optager nu",
|
||||
"recordingsCount": "${count} planlagt",
|
||||
"editRule": "Rediger regel",
|
||||
"editRuleAction": "Rediger",
|
||||
"recordingRuleUpdated": "Optagelsesregel opdateret",
|
||||
"guideReloadRequested": "Guide-opdatering anmodet",
|
||||
"rulesProcessRequested": "Regelevaluering anmodet",
|
||||
"recordShow": "Optag program"
|
||||
},
|
||||
"collections": {
|
||||
"title": "Samlinger",
|
||||
@@ -663,7 +799,7 @@
|
||||
"empty": "Samlingen er tom",
|
||||
"unknownLibrarySection": "Kan ikke slette: Ukendt bibliotekssektion",
|
||||
"deleteCollection": "Slet samling",
|
||||
"deleteConfirm": "Er du sikker på, at du vil slette \"${title}\"? Denne handling kan ikke fortrydes.",
|
||||
"deleteConfirm": "Slet \"${title}\"? Dette kan ikke fortrydes.",
|
||||
"deleted": "Samling slettet",
|
||||
"deleteFailed": "Kunne ikke slette samling",
|
||||
"deleteFailedWithError": "Kunne ikke slette samling: ${error}",
|
||||
@@ -747,11 +883,11 @@
|
||||
"pasteFromClipboard": "Indsæt fra udklipsholder",
|
||||
"pleaseEnterCode": "Indtast en sessionskode",
|
||||
"codeMustBe5Chars": "Sessionskode skal være 5 tegn",
|
||||
"joinInstructions": "Indtast sessionskoden delt af værten for at deltage i se-sessionen.",
|
||||
"joinInstructions": "Indtast værtens sessionskode for at deltage.",
|
||||
"failedToCreate": "Kunne ikke oprette session",
|
||||
"failedToJoin": "Kunne ikke deltage i session",
|
||||
"sessionCodeCopied": "Sessionskode kopieret til udklipsholder",
|
||||
"relayUnreachable": "Relay-serveren kan ikke nås. Dette kan skyldes, at din udbyder blokerer forbindelsen. Du kan stadig prøve, men Se sammen virker muligvis ikke.",
|
||||
"relayUnreachable": "Relay-serveren kan ikke nås. ISP-blokering kan forhindre Watch Together.",
|
||||
"reconnectingToHost": "Genopretter forbindelse til vært...",
|
||||
"currentPlayback": "Nuværende afspilning",
|
||||
"joinCurrentPlayback": "Deltag i nuværende afspilning",
|
||||
@@ -766,7 +902,9 @@
|
||||
"waitingForParticipants": "Venter på at andre indlæser...",
|
||||
"recentRooms": "Seneste rum",
|
||||
"renameRoom": "Omdøb rum",
|
||||
"removeRoom": "Fjern"
|
||||
"removeRoom": "Fjern",
|
||||
"guestSwitchUnavailable": "Kunne ikke skifte — server ikke tilgængelig for synkronisering",
|
||||
"guestSwitchFailed": "Kunne ikke skifte — indhold blev ikke fundet på denne server"
|
||||
},
|
||||
"downloads": {
|
||||
"title": "Downloads",
|
||||
@@ -779,10 +917,10 @@
|
||||
"deleteDownload": "Slet download",
|
||||
"retryDownload": "Prøv download igen",
|
||||
"downloadQueued": "Download i kø",
|
||||
"serverErrorBitrate": "Serverfejl — filen overskrider muligvis grænsen for fjernstreaming-bitrate",
|
||||
"serverErrorBitrate": "Serverfejl: filen overskrider muligvis grænsen for ekstern bitrate",
|
||||
"episodesQueued": "${count} episoder i downloadkø",
|
||||
"downloadDeleted": "Download slettet",
|
||||
"deleteConfirm": "Er du sikker på, at du vil slette \"${title}\"? Den downloadede fil fjernes fra din enhed.",
|
||||
"deleteConfirm": "Slet \"${title}\" fra denne enhed?",
|
||||
"deletingWithProgress": "Sletter ${title}... (${current} af ${total})",
|
||||
"deleting": "Sletter...",
|
||||
"queuedTooltip": "I kø",
|
||||
@@ -817,6 +955,12 @@
|
||||
"editSyncFilter": "Synkroniseringsfilter",
|
||||
"syncAllItems": "Synkroniserer alle elementer",
|
||||
"syncUnwatchedItems": "Synkroniserer usete elementer",
|
||||
"syncRuleServerContext": "Server: ${server} • ${status}",
|
||||
"syncRuleAvailable": "Tilgængelig",
|
||||
"syncRuleOffline": "Offline",
|
||||
"syncRuleSignInRequired": "Log ind påkrævet",
|
||||
"syncRuleNotAvailableForProfile": "Ikke tilgængelig for nuværende profil",
|
||||
"syncRuleUnknownServer": "Ukendt server",
|
||||
"syncRuleListCreated": "Synkroniseringsregel oprettet"
|
||||
},
|
||||
"shaders": {
|
||||
@@ -846,7 +990,7 @@
|
||||
"connected": "Forbundet",
|
||||
"serverRunning": "Fjernserver aktiv",
|
||||
"serverStopped": "Fjernserver stoppet",
|
||||
"serverRunningDescription": "Mobilenheder på dit netværk kan finde og oprette forbindelse til denne app",
|
||||
"serverRunningDescription": "Mobile enheder på dit netværk kan oprette forbindelse til denne app",
|
||||
"serverStoppedDescription": "Start serveren for at tillade mobilenheder at oprette forbindelse",
|
||||
"usePhoneToControl": "Brug din mobilenhed til at styre denne app",
|
||||
"startServer": "Start server",
|
||||
@@ -854,20 +998,20 @@
|
||||
"minimize": "Minimér"
|
||||
},
|
||||
"pairing": {
|
||||
"discoveryDescription": "Enheder på dit netværk, der kører Plezy med den samme Plex-konto, vises automatisk",
|
||||
"discoveryDescription": "Plezy-enheder med samme Plex-konto vises her",
|
||||
"hostAddressHint": "192.168.1.100:48632",
|
||||
"connecting": "Opretter forbindelse...",
|
||||
"searchingForDevices": "Søger efter enheder...",
|
||||
"noDevicesFound": "Ingen enheder fundet på dit netværk",
|
||||
"noDevicesHint": "Sørg for, at Plezy er åben på din computer, og at begge enheder er på det samme WiFi-netværk",
|
||||
"noDevicesHint": "Åbn Plezy på desktop, og brug samme WiFi",
|
||||
"availableDevices": "Tilgængelige enheder",
|
||||
"manualConnection": "Manuel forbindelse",
|
||||
"cryptoInitFailed": "Kunne ikke initialisere sikker forbindelse. Sørg for, at du er logget ind på en Plex-konto.",
|
||||
"cryptoInitFailed": "Kunne ikke starte sikker forbindelse. Log ind på Plex først.",
|
||||
"validationHostRequired": "Angiv venligst værtsadresse",
|
||||
"validationHostFormat": "Format skal være IP:port (f.eks. 192.168.1.100:48632)",
|
||||
"connectionTimedOut": "Forbindelsen udløb. Sørg for, at begge enheder er på det samme netværk.",
|
||||
"sessionNotFound": "Kunne ikke finde enheden. Sørg for, at Plezy kører på værten.",
|
||||
"authFailed": "Godkendelse mislykkedes. Sørg for, at begge enheder bruger den samme Plex-konto.",
|
||||
"connectionTimedOut": "Forbindelsen fik timeout. Brug samme netværk på begge enheder.",
|
||||
"sessionNotFound": "Enhed ikke fundet. Sørg for, at Plezy kører på værten.",
|
||||
"authFailed": "Godkendelse mislykkedes. Begge enheder skal bruge samme Plex-konto.",
|
||||
"failedToConnect": "Kunne ikke oprette forbindelse: ${error}"
|
||||
},
|
||||
"remote": {
|
||||
@@ -915,7 +1059,7 @@
|
||||
"externalPlayer": {
|
||||
"title": "Ekstern afspiller",
|
||||
"useExternalPlayer": "Brug ekstern afspiller",
|
||||
"useExternalPlayerDescription": "Åbn videoer i en ekstern app i stedet for den indbyggede afspiller",
|
||||
"useExternalPlayerDescription": "Åbn videoer i en anden app",
|
||||
"selectPlayer": "Vælg afspiller",
|
||||
"customPlayers": "Brugerdefinerede afspillere",
|
||||
"systemDefault": "Systemstandard",
|
||||
@@ -1009,7 +1153,7 @@
|
||||
"match": "Match...",
|
||||
"fixMatch": "Ret match...",
|
||||
"unmatch": "Fjern match",
|
||||
"unmatchConfirm": "Ryd det aktuelle match for dette element? Plex behandler det som ikke matchet, indtil du matcher det igen.",
|
||||
"unmatchConfirm": "Ryd dette match? Plex behandler det som umatchet, indtil det matches igen.",
|
||||
"unmatchSuccess": "Match fjernet",
|
||||
"unmatchFailed": "Kunne ikke fjerne match",
|
||||
"matchApplied": "Match anvendt",
|
||||
@@ -1029,7 +1173,7 @@
|
||||
"connected": "Forbundet",
|
||||
"connectedAs": "Forbundet som @${username}",
|
||||
"disconnectConfirm": "Frakobl Trakt-konto?",
|
||||
"disconnectConfirmBody": "Plezy stopper med at sende afspilningsbegivenheder til Trakt. Du kan genoprette forbindelse når som helst.",
|
||||
"disconnectConfirmBody": "Plezy stopper med at sende hændelser til Trakt. Du kan tilslutte igen når som helst.",
|
||||
"scrobble": "Realtids-scrobbling",
|
||||
"scrobbleDescription": "Send afspil-, pause- og stop-begivenheder til Trakt under afspilning.",
|
||||
"watchedSync": "Synkroniser sét-status",
|
||||
@@ -1037,13 +1181,13 @@
|
||||
},
|
||||
"trackers": {
|
||||
"title": "Trackere",
|
||||
"hubSubtitle": "Hold din visningsfremgang synkroniseret med Trakt og andre tjenester.",
|
||||
"hubSubtitle": "Synkroniser afspilningsfremskridt med Trakt og andre tjenester.",
|
||||
"notConnected": "Ikke forbundet",
|
||||
"connectedAs": "Forbundet som @${username}",
|
||||
"scrobble": "Registrer fremgang automatisk",
|
||||
"scrobbleDescription": "Opdater din liste når du er færdig med et afsnit eller en film.",
|
||||
"disconnectConfirm": "Afbryd ${service}?",
|
||||
"disconnectConfirmBody": "Plezy stopper med at opdatere din ${service}-liste. Du kan forbinde igen når som helst.",
|
||||
"disconnectConfirmBody": "Plezy stopper med at opdatere ${service}. Tilslut igen når som helst.",
|
||||
"connectFailed": "Kunne ikke forbinde til ${service}. Prøv igen.",
|
||||
"services": {
|
||||
"mal": "MyAnimeList",
|
||||
@@ -1059,7 +1203,7 @@
|
||||
},
|
||||
"oauthProxy": {
|
||||
"title": "Log ind på ${service}",
|
||||
"body": "Scan denne QR-kode med din telefon, eller åbn URL'en nedenfor på en enhed med browser.",
|
||||
"body": "Scan denne QR-kode, eller åbn URL'en på en enhed.",
|
||||
"openToSignIn": "Åbn ${service} for at logge ind",
|
||||
"urlCopied": "URL kopieret"
|
||||
},
|
||||
@@ -1077,5 +1221,39 @@
|
||||
"libraries": "Biblioteker",
|
||||
"noLibraries": "Ingen biblioteker tilgængelige"
|
||||
}
|
||||
},
|
||||
"addServer": {
|
||||
"addJellyfinTitle": "Tilføj Jellyfin-server",
|
||||
"jellyfinUrlIntro": "Indtast server-URL'en, f.eks. `https://jellyfin.example.com`.",
|
||||
"serverUrl": "Server-URL",
|
||||
"findServer": "Find server",
|
||||
"username": "Brugernavn",
|
||||
"password": "Adgangskode",
|
||||
"signIn": "Log ind",
|
||||
"change": "Ændr",
|
||||
"required": "Påkrævet",
|
||||
"couldNotReachServer": "Kunne ikke nå serveren: ${error}",
|
||||
"signInFailed": "Login mislykkedes: ${error}",
|
||||
"quickConnectFailed": "Quick Connect mislykkedes: ${error}",
|
||||
"addPlexTitle": "Log ind med Plex",
|
||||
"plexAuthIntro": "Log ind med en browser eller QR-kode.",
|
||||
"plexQRPrompt": "Scan denne QR-kode for at logge ind.",
|
||||
"waitingForPlexConfirmation": "Venter på at plex.tv bekræfter login…",
|
||||
"pinExpired": "PIN udløb før login. Prøv igen.",
|
||||
"duplicatePlexAccount": "Allerede logget ind på Plex. Log ud for at skifte konto.",
|
||||
"failedToRegisterAccount": "Kunne ikke registrere kontoen: ${error}",
|
||||
"enterJellyfinUrlError": "Angiv URL'en til din Jellyfin-server",
|
||||
"addConnectionTitle": "Tilføj forbindelse",
|
||||
"addConnectionTitleScoped": "Tilføj til ${name}",
|
||||
"addConnectionIntroGlobal": "Tilføj en anden medieserver. Plex og Jellyfin vises sammen på Hjem.",
|
||||
"addConnectionIntroScoped": "Tilføj en ny server, eller lån en fra en anden profil.",
|
||||
"signInWithPlexCard": "Log ind med Plex",
|
||||
"signInWithPlexCardSubtitle": "Godkend denne enhed. Delte servere tilføjes.",
|
||||
"signInWithPlexCardSubtitleScoped": "Godkend en Plex-konto. Home-brugere bliver profiler.",
|
||||
"connectToJellyfinCard": "Forbind til Jellyfin",
|
||||
"connectToJellyfinCardSubtitle": "Indtast din server-URL, dit brugernavn og din adgangskode.",
|
||||
"connectToJellyfinCardSubtitleScoped": "Log ind på en Jellyfin-server. Tilknyttes ${name}.",
|
||||
"borrowFromAnotherProfile": "Lån fra en anden profil",
|
||||
"borrowFromAnotherProfileSubtitle": "Genbrug en anden profils forbindelse. PIN-beskyttede profiler kræver en PIN."
|
||||
}
|
||||
}
|
||||
|
||||
+243
-65
@@ -3,13 +3,22 @@
|
||||
"title": "Plezy"
|
||||
},
|
||||
"auth": {
|
||||
"signIn": "Anmelden",
|
||||
"signInWithPlex": "Mit Plex anmelden",
|
||||
"showQRCode": "QR-Code anzeigen",
|
||||
"authenticate": "Authentifizieren",
|
||||
"authenticationTimeout": "Authentifizierung abgelaufen. Bitte erneut versuchen.",
|
||||
"scanQRToSignIn": "QR-Code scannen zum Anmelden",
|
||||
"waitingForAuth": "Warte auf Authentifizierung...\nBitte Anmeldung im Browser abschließen.",
|
||||
"useBrowser": "Browser verwenden"
|
||||
"waitingForAuth": "Warte auf Authentifizierung...\nMelde dich im Browser an.",
|
||||
"useBrowser": "Browser verwenden",
|
||||
"or": "oder",
|
||||
"connectToJellyfin": "Mit Jellyfin verbinden",
|
||||
"useQuickConnect": "Quick Connect verwenden",
|
||||
"quickConnectCode": "Quick Connect-Code",
|
||||
"quickConnectInstructions": "Öffne Quick Connect in Jellyfin und gib diesen Code ein.",
|
||||
"quickConnectWaiting": "Warte auf Bestätigung…",
|
||||
"quickConnectCancel": "Abbrechen",
|
||||
"quickConnectExpired": "Quick Connect ist abgelaufen. Versuche es erneut."
|
||||
},
|
||||
"common": {
|
||||
"cancel": "Abbrechen",
|
||||
@@ -43,9 +52,6 @@
|
||||
"mute": "Stumm",
|
||||
"ok": "OK",
|
||||
"reconnect": "Erneut verbinden",
|
||||
"exitConfirmTitle": "App beenden?",
|
||||
"exitConfirmMessage": "Möchtest du die App wirklich beenden?",
|
||||
"dontAskAgain": "Nicht erneut fragen",
|
||||
"exit": "Beenden",
|
||||
"viewAll": "Alle anzeigen",
|
||||
"checkingNetwork": "Netzwerk wird geprüft...",
|
||||
@@ -55,7 +61,8 @@
|
||||
"startingOfflineMode": "Offlinemodus wird gestartet...",
|
||||
"loading": "Laden...",
|
||||
"fullscreen": "Vollbild",
|
||||
"exitFullscreen": "Vollbild verlassen"
|
||||
"exitFullscreen": "Vollbild verlassen",
|
||||
"pressBackAgainToExit": "Erneut Zurück drücken zum Beenden"
|
||||
},
|
||||
"screens": {
|
||||
"licenses": "Lizenzen",
|
||||
@@ -104,22 +111,22 @@
|
||||
"gridView": "Raster",
|
||||
"listView": "Liste",
|
||||
"showHeroSection": "Hero-Bereich anzeigen",
|
||||
"useGlobalHubs": "Plex-Startseiten-Layout verwenden",
|
||||
"useGlobalHubsDescription": "Zeigt Startseiten-Hubs wie der offizielle Plex-Client. Wenn deaktiviert, werden stattdessen Empfehlungen pro Bibliothek angezeigt.",
|
||||
"useGlobalHubs": "Startlayout verwenden",
|
||||
"useGlobalHubsDescription": "Einheitliche Start-Hubs anzeigen. Sonst Bibliotheksempfehlungen verwenden.",
|
||||
"showServerNameOnHubs": "Servername bei Hubs anzeigen",
|
||||
"showServerNameOnHubsDescription": "Zeigt immer den Servernamen in Hub-Titeln an. Wenn deaktiviert, nur bei doppelten Hub-Namen.",
|
||||
"showServerNameOnHubsDescription": "Servernamen immer in Hub-Titeln anzeigen.",
|
||||
"groupLibrariesByServer": "Mediatheken nach Server gruppieren",
|
||||
"groupLibrariesByServerDescription": "Zeigt eine Überschrift für jeden Plex-Server in der Seitenleiste an, wenn du mit mehreren Servern verbunden bist.",
|
||||
"groupLibrariesByServerDescription": "Sidebar-Bibliotheken nach Medienserver gruppieren.",
|
||||
"alwaysKeepSidebarOpen": "Seitenleiste immer geöffnet halten",
|
||||
"alwaysKeepSidebarOpenDescription": "Seitenleiste bleibt erweitert und Inhaltsbereich passt sich an",
|
||||
"showUnwatchedCount": "Anzahl nicht gesehener Folgen anzeigen",
|
||||
"showUnwatchedCountDescription": "Zeigt die Anzahl nicht gesehener Episoden bei Serien und Staffeln an",
|
||||
"showEpisodeNumberOnCards": "Episodennummer auf Karten anzeigen",
|
||||
"showEpisodeNumberOnCardsDescription": "Episodennummer neben der Staffel (z. B. S2 E3) auf Episodenkarten anzeigen",
|
||||
"showEpisodeNumberOnCardsDescription": "Staffel- und Episodennummer auf Episodenkarten anzeigen",
|
||||
"showSeasonPostersOnTabs": "Staffelposter auf Tabs anzeigen",
|
||||
"showSeasonPostersOnTabsDescription": "Zeigt das Poster der Staffel über jedem Staffel-Tab auf der Detailseite einer Serie an",
|
||||
"showSeasonPostersOnTabsDescription": "Poster jeder Staffel über ihrem Tab anzeigen",
|
||||
"hideSpoilers": "Spoiler für nicht gesehene Episoden verbergen",
|
||||
"hideSpoilersDescription": "Vorschaubilder unscharf machen und Beschreibungen für noch nicht gesehene Episoden ausblenden",
|
||||
"hideSpoilersDescription": "Vorschaubilder und Beschreibungen ungesehener Episoden verwischen",
|
||||
"playerBackend": "Player-Backend",
|
||||
"exoPlayer": "ExoPlayer (Empfohlen)",
|
||||
"mpv": "mpv",
|
||||
@@ -128,7 +135,7 @@
|
||||
"bufferSize": "Puffergröße",
|
||||
"bufferSizeMB": "${size}MB",
|
||||
"bufferSizeAuto": "Auto (Empfohlen)",
|
||||
"bufferSizeWarning": "Ihr Gerät hat ${heap}MB Speicher. Ein ${size}MB-Puffer kann Wiedergabeprobleme verursachen.",
|
||||
"bufferSizeWarning": "${heap}MB Speicher verfügbar. Ein ${size}MB-Puffer kann die Wiedergabe beeinträchtigen.",
|
||||
"defaultQualityTitle": "Standardqualität",
|
||||
"defaultQualityDescription": "Wird beim Starten der Wiedergabe verwendet. Niedrigere Werte reduzieren die Bandbreite.",
|
||||
"subtitleStyling": "Untertitel-Stil",
|
||||
@@ -140,16 +147,18 @@
|
||||
"defaultSleepTimer": "Standard-Sleep-Timer",
|
||||
"minutesUnit": "${minutes} Minuten",
|
||||
"rememberTrackSelections": "Spurauswahl pro Serie/Film merken",
|
||||
"rememberTrackSelectionsDescription": "Audio- und Untertitelsprache automatisch speichern, wenn während der Wiedergabe geändert",
|
||||
"rememberTrackSelectionsDescription": "Audio- und Untertitelauswahl je Titel merken",
|
||||
"showChapterMarkersOnTimeline": "Kapitelmarkierungen auf der Zeitleiste anzeigen",
|
||||
"showChapterMarkersOnTimelineDescription": "Die Zeitleiste an Kapitelgrenzen unterteilen",
|
||||
"clickVideoTogglesPlayback": "Klicken Sie auf das Video, um die Wiedergabe zu starten oder zu pausieren.",
|
||||
"clickVideoTogglesPlaybackDescription": "Wenn diese Option aktiviert ist, wird durch Klicken auf den Videoplayer die Wiedergabe gestartet oder pausiert. Andernfalls werden durch Klicken die Wiedergabesteuerungen ein- oder ausgeblendet.",
|
||||
"clickVideoTogglesPlaybackDescription": "Video anklicken, um abzuspielen/zu pausieren, statt Steuerungen zu zeigen.",
|
||||
"videoPlayerControls": "Videoplayer-Steuerung",
|
||||
"keyboardShortcuts": "Tastenkürzel",
|
||||
"keyboardShortcutsDescription": "Tastenkürzel anpassen",
|
||||
"videoPlayerNavigation": "Videoplayer-Navigation",
|
||||
"videoPlayerNavigationDescription": "Pfeiltasten zur Navigation der Videoplayer-Steuerung verwenden",
|
||||
"watchTogetherRelay": "Gemeinsam Schauen Relay",
|
||||
"watchTogetherRelayDescription": "Einen benutzerdefinierten Relay-Server für Gemeinsam Schauen festlegen. Alle Teilnehmer müssen denselben Server verwenden.",
|
||||
"watchTogetherRelayDescription": "Eigenes Relay festlegen. Alle müssen denselben Server verwenden.",
|
||||
"watchTogetherRelayHint": "https://mein-relay.beispiel.de",
|
||||
"crashReporting": "Absturzberichte",
|
||||
"crashReportingDescription": "Absturzberichte senden, um die App zu verbessern",
|
||||
@@ -158,10 +167,10 @@
|
||||
"viewLogs": "Protokolle anzeigen",
|
||||
"viewLogsDescription": "App-Protokolle anzeigen",
|
||||
"clearCache": "Cache löschen",
|
||||
"clearCacheDescription": "Löscht alle zwischengespeicherten Bilder und Daten. Die App kann danach langsamer laden.",
|
||||
"clearCacheDescription": "Zwischengespeicherte Bilder und Daten löschen. Inhalte laden eventuell langsamer.",
|
||||
"clearCacheSuccess": "Cache erfolgreich gelöscht",
|
||||
"resetSettings": "Einstellungen zurücksetzen",
|
||||
"resetSettingsDescription": "Alle Einstellungen auf Standard zurücksetzen. Dies kann nicht rückgängig gemacht werden.",
|
||||
"resetSettingsDescription": "Standardeinstellungen wiederherstellen. Dies kann nicht rückgängig gemacht werden.",
|
||||
"resetSettingsSuccess": "Einstellungen erfolgreich zurückgesetzt",
|
||||
"backup": "Sicherung",
|
||||
"exportSettings": "Einstellungen exportieren",
|
||||
@@ -182,7 +191,7 @@
|
||||
"updateAvailable": "Update verfügbar",
|
||||
"checkForUpdates": "Nach Updates suchen",
|
||||
"autoCheckUpdatesOnStartup": "Beim Start automatisch nach Updates suchen",
|
||||
"autoCheckUpdatesOnStartupDescription": "Benachrichtigung anzeigen, wenn beim Start eine neue Version verfügbar ist",
|
||||
"autoCheckUpdatesOnStartupDescription": "Beim Start benachrichtigen, wenn ein Update verfügbar ist",
|
||||
"validationErrorEnterNumber": "Bitte eine gültige Zahl eingeben",
|
||||
"validationErrorDuration": "Dauer muss zwischen ${min} und ${max} ${unit} liegen",
|
||||
"shortcutAlreadyAssigned": "Tastenkürzel bereits zugewiesen an ${action}",
|
||||
@@ -192,6 +201,8 @@
|
||||
"autoSkipIntroDescription": "Intro-Marker nach wenigen Sekunden automatisch überspringen",
|
||||
"autoSkipCredits": "Abspann automatisch überspringen",
|
||||
"autoSkipCreditsDescription": "Abspann automatisch überspringen und nächste Episode abspielen",
|
||||
"forceSkipMarkerFallback": "Fallback-Markierungen erzwingen",
|
||||
"forceSkipMarkerFallbackDescription": "Kapitel-Titelmuster verwenden, auch wenn Plex Marker hat",
|
||||
"autoSkipDelay": "Verzögerung für automatisches Überspringen",
|
||||
"autoSkipDelayDescription": "${seconds} Sekunden vor dem automatischen Überspringen warten",
|
||||
"introPattern": "Intro-Markierungsmuster",
|
||||
@@ -213,8 +224,8 @@
|
||||
"downloadOnWifiOnly": "Nur über WLAN herunterladen",
|
||||
"downloadOnWifiOnlyDescription": "Downloads über mobile Daten verhindern",
|
||||
"autoRemoveWatchedDownloads": "Gesehene Downloads automatisch entfernen",
|
||||
"autoRemoveWatchedDownloadsDescription": "Heruntergeladene Episoden und Filme automatisch löschen, wenn sie als gesehen markiert werden",
|
||||
"cellularDownloadBlocked": "Downloads sind über mobile Daten deaktiviert. Verbinde dich mit einem WLAN oder ändere die Einstellung.",
|
||||
"autoRemoveWatchedDownloadsDescription": "Angesehene Downloads automatisch löschen",
|
||||
"cellularDownloadBlocked": "Downloads sind über Mobilfunk blockiert. Nutze WiFi oder ändere die Einstellung.",
|
||||
"maxVolume": "Maximale Lautstärke",
|
||||
"maxVolumeDescription": "Lautstärke über 100% für leise Medien erlauben",
|
||||
"maxVolumePercent": "${percent}%",
|
||||
@@ -227,22 +238,20 @@
|
||||
"companionRemoteServer": "Companion Remote Server",
|
||||
"companionRemoteServerDescription": "Mobilgeräten in deinem Netzwerk erlauben, diese App zu steuern",
|
||||
"autoPip": "Automatisches Bild-in-Bild",
|
||||
"autoPipDescription": "Automatisch Bild-in-Bild aktivieren, wenn die App während der Wiedergabe verlassen wird",
|
||||
"autoPipDescription": "Beim Verlassen während der Wiedergabe Bild-in-Bild starten",
|
||||
"matchContentFrameRate": "Inhalts-Bildrate anpassen",
|
||||
"matchContentFrameRateDescription": "Bildwiederholfrequenz des Displays an den Videoinhalt anpassen, reduziert Ruckeln und spart Akku",
|
||||
"matchContentFrameRateDescription": "Bildwiederholrate des Displays an Videoinhalt anpassen",
|
||||
"matchRefreshRate": "Bildwiederholrate anpassen",
|
||||
"matchRefreshRateDescription": "Bildwiederholrate des Displays an den Videoinhalt im Vollbildmodus anpassen",
|
||||
"matchRefreshRateDescription": "Bildwiederholrate im Vollbild anpassen",
|
||||
"matchDynamicRange": "Dynamikumfang anpassen",
|
||||
"matchDynamicRangeDescription": "HDR für HDR-Inhalte automatisch aktivieren und beim Verlassen des Players auf SDR zurücksetzen",
|
||||
"matchDynamicRangeDescription": "HDR für HDR-Inhalte einschalten, danach zurück zu SDR",
|
||||
"displaySwitchDelay": "Verzögerung beim Displaywechsel",
|
||||
"tunneledPlayback": "Tunnelwiedergabe",
|
||||
"tunneledPlaybackDescription": "Hardware-beschleunigte Video-Tunnelierung verwenden. Deaktivieren, wenn bei HDR-Inhalten ein schwarzer Bildschirm mit Ton erscheint",
|
||||
"tunneledPlaybackDescription": "Video-Tunneling verwenden. Deaktivieren, wenn HDR-Wiedergabe schwarzes Video zeigt.",
|
||||
"requireProfileSelectionOnOpen": "Profil beim Öffnen abfragen",
|
||||
"requireProfileSelectionOnOpenDescription": "Profilauswahl bei jedem Öffnen der App anzeigen",
|
||||
"confirmExitOnBack": "Vor dem Beenden bestätigen",
|
||||
"confirmExitOnBackDescription": "Bestätigungsdialog anzeigen, wenn Zurück zum Beenden der App gedrückt wird",
|
||||
"forceTvMode": "TV-Modus erzwingen",
|
||||
"forceTvModeDescription": "TV-Layout unabhängig von der automatischen Erkennung verwenden. Nützlich für Android-TV-Geräte, die das Leanback-Feature nicht melden. Startet die App bei Änderung neu.",
|
||||
"forceTvModeDescription": "TV-Layout erzwingen. Für Geräte ohne automatische Erkennung. Neustart erforderlich.",
|
||||
"startInFullscreen": "Im Vollbildmodus starten",
|
||||
"startInFullscreenDescription": "Plezy beim Start im Vollbildmodus öffnen",
|
||||
"autoHidePerformanceOverlay": "Leistungsoverlay automatisch ausblenden",
|
||||
@@ -251,15 +260,15 @@
|
||||
"showNavBarLabelsDescription": "Textbeschriftungen unter den Symbolen der Navigationsleiste anzeigen",
|
||||
"liveTvDefaultFavorites": "Standardmäßig Favoritenkanäle",
|
||||
"liveTvDefaultFavoritesDescription": "Beim Öffnen von Live TV nur Favoritenkanäle anzeigen",
|
||||
"display": "Display",
|
||||
"homeScreen": "Home Screen",
|
||||
"display": "Anzeige",
|
||||
"homeScreen": "Startseite",
|
||||
"navigation": "Navigation",
|
||||
"window": "Window",
|
||||
"content": "Content",
|
||||
"player": "Player",
|
||||
"subtitlesAndConfig": "Subtitles & Configuration",
|
||||
"seekAndTiming": "Seek & Timing",
|
||||
"behavior": "Behavior"
|
||||
"window": "Fenster",
|
||||
"content": "Inhalt",
|
||||
"player": "Wiedergabe",
|
||||
"subtitlesAndConfig": "Untertitel & Konfiguration",
|
||||
"seekAndTiming": "Spulen & Timing",
|
||||
"behavior": "Verhalten"
|
||||
},
|
||||
"search": {
|
||||
"hint": "Filme, Serien, Musik suchen...",
|
||||
@@ -330,7 +339,7 @@
|
||||
"shufflePlay": "Zufallswiedergabe",
|
||||
"fileInfo": "Dateiinfo",
|
||||
"deleteFromServer": "Vom Server löschen",
|
||||
"confirmDelete": "Dieses Medium und seine Dateien werden dauerhaft von Ihrem Server gelöscht. Dies kann nicht rückgängig gemacht werden.",
|
||||
"confirmDelete": "Dieses Medium und seine Dateien von deinem Server löschen?",
|
||||
"deleteMultipleWarning": "Dies umfasst alle Episoden und deren Dateien.",
|
||||
"mediaDeletedSuccessfully": "Medienelement erfolgreich gelöscht",
|
||||
"mediaFailedToDelete": "Löschen des Medienelements fehlgeschlagen",
|
||||
@@ -414,7 +423,7 @@
|
||||
"pipErrors": {
|
||||
"androidVersion": "Erfordert Android 8.0 oder neuer",
|
||||
"iosVersion": "Erfordert iOS 15.0 oder neuer",
|
||||
"permissionDisabled": "Bild-in-Bild-Berechtigung ist deaktiviert. Aktiviere sie unter Einstellungen > Apps > Plezy > Bild-in-Bild",
|
||||
"permissionDisabled": "Bild-in-Bild ist deaktiviert. Aktiviere es in den Systemeinstellungen.",
|
||||
"notSupported": "Dieses Gerät unterstützt den Bild-in-Bild-Modus nicht",
|
||||
"voSwitchFailed": "Videoausgabe für Bild-in-Bild konnte nicht umgeschaltet werden",
|
||||
"failed": "Bild-in-Bild konnte nicht gestartet werden",
|
||||
@@ -452,7 +461,7 @@
|
||||
"musicNotSupported": "Musikwiedergabe wird noch nicht unterstützt",
|
||||
"noDescriptionAvailable": "Keine Beschreibung verfügbar",
|
||||
"noProfilesAvailable": "Keine Profile verfügbar",
|
||||
"contactAdminForProfiles": "Kontaktiere deinen Plex-Administrator, um Profile hinzuzufügen",
|
||||
"contactAdminForProfiles": "Kontaktiere deinen Serveradministrator, um Profile hinzuzufügen",
|
||||
"unableToDetermineLibrarySection": "Bibliotheksbereich für dieses Element kann nicht ermittelt werden",
|
||||
"logsCleared": "Protokolle gelöscht",
|
||||
"logsCopied": "Protokolle in Zwischenablage kopiert",
|
||||
@@ -474,7 +483,7 @@
|
||||
"failedPlayback": "Wiedergabe für ${action} fehlgeschlagen: ${error}",
|
||||
"switchingToCompatiblePlayer": "Wechsle zu kompatiblem Player...",
|
||||
"serverLimitTitle": "Wiedergabe fehlgeschlagen",
|
||||
"serverLimitBody": "Der Server hat einen Fehler zurückgegeben (HTTP 500). Das bedeutet meist, dass der Serverbesitzer ein Bandbreiten- oder Transcoding-Limit festgelegt hat, das deine Sitzung ablehnt. Vom Client aus lässt sich nichts machen — der Serverbesitzer muss seine Einstellungen anpassen.",
|
||||
"serverLimitBody": "Serverfehler (HTTP 500). Ein Bandbreiten-/Transcoding-Limit lehnte diese Sitzung wohl ab. Bitte den Besitzer um Anpassung.",
|
||||
"logsUploaded": "Protokolle hochgeladen",
|
||||
"logsUploadFailed": "Protokolle konnten nicht hochgeladen werden",
|
||||
"logId": "Protokoll-ID"
|
||||
@@ -513,12 +522,85 @@
|
||||
"dialog": {
|
||||
"confirmAction": "Aktion bestätigen"
|
||||
},
|
||||
"profiles": {
|
||||
"addPlezyProfile": "Plezy-Profil hinzufügen",
|
||||
"switchingProfile": "Profil wird gewechselt…",
|
||||
"deleteThisProfileTitle": "Dieses Profil löschen?",
|
||||
"deleteThisProfileMessage": "${displayName} entfernen. Verbindungen bleiben unberührt.",
|
||||
"active": "Aktiv",
|
||||
"manage": "Verwalten",
|
||||
"delete": "Löschen",
|
||||
"signOut": "Abmelden",
|
||||
"signOutPlexTitle": "Von Plex abmelden?",
|
||||
"signOutPlexMessage": "${displayName} und alle Plex Home-Benutzer entfernen? Du kannst dich jederzeit wieder anmelden.",
|
||||
"signedOutPlex": "Von Plex abgemeldet.",
|
||||
"signOutFailed": "Abmeldung fehlgeschlagen.",
|
||||
"sectionTitle": "Profile",
|
||||
"summarySingle": "Profile hinzufügen, um verwaltete Benutzer und lokale Identitäten zu mischen",
|
||||
"summaryMultipleWithActive": "${count} Profile · aktiv: ${activeName}",
|
||||
"summaryMultiple": "${count} Profile",
|
||||
"removeConnectionTitle": "Verbindung entfernen?",
|
||||
"removeConnectionMessage": "Zugriff von ${displayName} auf ${connectionLabel} entfernen. Andere Profile behalten ihn.",
|
||||
"deleteProfileTitle": "Profil löschen?",
|
||||
"deleteProfileMessage": "${displayName} und Verbindungen entfernen. Server bleiben verfügbar.",
|
||||
"profileNameLabel": "Profilname",
|
||||
"pinProtectionLabel": "PIN-Schutz",
|
||||
"pinManagedByPlex": "PIN wird von Plex verwaltet. Auf plex.tv bearbeiten.",
|
||||
"noPinSetEditOnPlex": "Keine PIN festgelegt. Um eine zu verlangen, bearbeite den Home-Benutzer auf plex.tv.",
|
||||
"setPin": "PIN festlegen",
|
||||
"setPinTitle": "PIN festlegen",
|
||||
"confirmPinTitle": "PIN bestätigen",
|
||||
"pinSet": "PIN festgelegt",
|
||||
"changePin": "Ändern",
|
||||
"removePin": "Entfernen",
|
||||
"connectionsLabel": "Verbindungen",
|
||||
"add": "Hinzufügen",
|
||||
"deleteProfileButton": "Profil löschen",
|
||||
"noConnectionsHint": "Keine Verbindungen — füge eine hinzu, um dieses Profil zu nutzen.",
|
||||
"noConnections": "Keine Verbindungen",
|
||||
"plexHomeAccount": "Plex Home-Konto",
|
||||
"connectionDefault": "Standard",
|
||||
"connectionAs": "als ${displayName}",
|
||||
"makeDefault": "Als Standard",
|
||||
"removeConnection": "Entfernen",
|
||||
"profileRenamed": "Profil umbenannt.",
|
||||
"borrowAddTo": "Zu ${displayName} hinzufügen",
|
||||
"borrowExplain": "Verbindung eines anderen Profils leihen. PIN-geschützte Profile erfordern eine PIN.",
|
||||
"borrowEmpty": "Noch nichts zum Ausleihen.",
|
||||
"borrowEmptySubtitle": "Verbinde zuerst Plex oder Jellyfin mit einem anderen Profil.",
|
||||
"borrowFromProfile": "Von ${displayName}",
|
||||
"borrowConnectionBorrowed": "Verbindung ausgeliehen.",
|
||||
"borrowFailed": "Verbindung konnte nicht ausgeliehen werden.",
|
||||
"incorrectPin": "Falsche PIN.",
|
||||
"sourceProfileMissingParentAccount": "Dem Quellprofil fehlt das übergeordnete Konto.",
|
||||
"failedToVerifyPin": "PIN konnte nicht verifiziert werden.",
|
||||
"newProfile": "Neues Profil",
|
||||
"profileNameHint": "z. B. Gäste, Kinder, Wohnzimmer",
|
||||
"pinProtectionOptional": "PIN-Schutz (optional)",
|
||||
"pinExplain": "4-stellige PIN zum Profilwechsel erforderlich.",
|
||||
"continueButton": "Weiter",
|
||||
"pinsDontMatch": "PINs stimmen nicht überein"
|
||||
},
|
||||
"connections": {
|
||||
"sectionTitle": "Verbindungen",
|
||||
"addConnection": "Verbindung hinzufügen",
|
||||
"addConnectionSubtitleNoProfile": "Mit Plex anmelden oder Jellyfin-Server verbinden",
|
||||
"addConnectionSubtitleScoped": "Zu ${displayName} hinzufügen: Plex, Jellyfin oder eine andere Profilverbindung",
|
||||
"sessionExpiredOne": "Sitzung für ${name} abgelaufen",
|
||||
"sessionExpiredMany": "Sitzungen für ${count} Server abgelaufen",
|
||||
"signInAgain": "Erneut anmelden"
|
||||
},
|
||||
"discover": {
|
||||
"title": "Entdecken",
|
||||
"switchProfile": "Profil wechseln",
|
||||
"noContentAvailable": "Kein Inhalt verfügbar",
|
||||
"addMediaToLibraries": "Medien zur Mediathek hinzufügen",
|
||||
"continueWatching": "Weiterschauen",
|
||||
"continueWatchingIn": "Weiterschauen in ${library}",
|
||||
"nextUp": "Als Nächstes",
|
||||
"nextUpIn": "Als Nächstes in ${library}",
|
||||
"recentlyAdded": "Kürzlich hinzugefügt",
|
||||
"recentlyAddedIn": "Kürzlich hinzugefügt in ${library}",
|
||||
"playEpisode": "S${season}E${episode}",
|
||||
"overview": "Übersicht",
|
||||
"cast": "Besetzung",
|
||||
@@ -532,7 +614,7 @@
|
||||
"errors": {
|
||||
"searchFailed": "Suche fehlgeschlagen: ${error}",
|
||||
"connectionTimeout": "Zeitüberschreitung beim Laden von ${context}",
|
||||
"connectionFailed": "Verbindung zum Plex-Server fehlgeschlagen",
|
||||
"connectionFailed": "Keine Verbindung zum Medienserver möglich",
|
||||
"failedToLoad": "Fehler beim Laden von ${context}: ${error}",
|
||||
"noClientAvailable": "Kein Client verfügbar",
|
||||
"authenticationFailed": "Authentifizierung fehlgeschlagen: ${error}",
|
||||
@@ -540,7 +622,9 @@
|
||||
"pleaseEnterToken": "Bitte Token eingeben",
|
||||
"invalidToken": "Ungültiges Token",
|
||||
"failedToVerifyToken": "Token-Verifizierung fehlgeschlagen: ${error}",
|
||||
"failedToSwitchProfile": "Profilwechsel zu ${displayName} fehlgeschlagen"
|
||||
"failedToSwitchProfile": "Profilwechsel zu ${displayName} fehlgeschlagen",
|
||||
"failedToDeleteProfile": "Löschen von ${displayName} fehlgeschlagen",
|
||||
"failedToRate": "Bewertung konnte nicht aktualisiert werden"
|
||||
},
|
||||
"libraries": {
|
||||
"title": "Mediatheken",
|
||||
@@ -595,17 +679,34 @@
|
||||
"seasons": "Staffeln",
|
||||
"episodes": "Episoden",
|
||||
"folders": "Ordner"
|
||||
},
|
||||
"filterCategories": {
|
||||
"genre": "Genre",
|
||||
"year": "Jahr",
|
||||
"contentRating": "Altersfreigabe",
|
||||
"tag": "Tag"
|
||||
},
|
||||
"sortLabels": {
|
||||
"title": "Titel",
|
||||
"dateAdded": "Hinzugefügt am",
|
||||
"releaseDate": "Erscheinungsdatum",
|
||||
"rating": "Bewertung",
|
||||
"lastPlayed": "Zuletzt abgespielt",
|
||||
"playCount": "Wiedergaben",
|
||||
"random": "Zufällig",
|
||||
"dateShared": "Datum geteilt",
|
||||
"latestEpisodeAirDate": "Letztes Folgenausstrahlungsdatum"
|
||||
}
|
||||
},
|
||||
"about": {
|
||||
"title": "Über",
|
||||
"openSourceLicenses": "Open-Source-Lizenzen",
|
||||
"versionLabel": "Version ${version}",
|
||||
"appDescription": "Ein schöner Plex-Client für Flutter",
|
||||
"appDescription": "Ein schöner Plex- und Jellyfin-Client für Flutter",
|
||||
"viewLicensesDescription": "Lizenzen von Drittanbieter-Bibliotheken anzeigen"
|
||||
},
|
||||
"serverSelection": {
|
||||
"allServerConnectionsFailed": "Verbindung zu allen Servern fehlgeschlagen. Bitte Netzwerk prüfen und erneut versuchen.",
|
||||
"allServerConnectionsFailed": "Keine Verbindung zu Servern möglich. Prüfe dein Netzwerk.",
|
||||
"noServersFoundForAccount": "Keine Server gefunden für ${username} (${email})",
|
||||
"failedToLoadServers": "Server konnten nicht geladen werden: ${error}"
|
||||
},
|
||||
@@ -642,6 +743,7 @@
|
||||
"reloadGuide": "Programmführer neu laden",
|
||||
"now": "Jetzt",
|
||||
"today": "Heute",
|
||||
"tomorrow": "Morgen",
|
||||
"midnight": "Mitternacht",
|
||||
"overnight": "Nacht",
|
||||
"morning": "Morgen",
|
||||
@@ -655,7 +757,41 @@
|
||||
"joinSession": "Laufender Sitzung beitreten",
|
||||
"watchFromStart": "Von Anfang an ansehen (vor ${minutes} Min.)",
|
||||
"watchLive": "Live ansehen",
|
||||
"goToLive": "Zum Live-Bild"
|
||||
"goToLive": "Zum Live-Bild",
|
||||
"record": "Aufnehmen",
|
||||
"recordEpisode": "Episode aufnehmen",
|
||||
"recordSeries": "Serie aufnehmen",
|
||||
"recordOptions": "Aufnahmeoptionen",
|
||||
"recordings": "Aufnahmen",
|
||||
"scheduledRecordings": "Geplant",
|
||||
"recordingRules": "Aufnahmeregeln",
|
||||
"noScheduledRecordings": "Keine geplanten Aufnahmen",
|
||||
"noRecordingRules": "Noch keine Aufnahmeregeln",
|
||||
"manageRecording": "Aufnahme verwalten",
|
||||
"cancelRecording": "Aufnahme abbrechen",
|
||||
"cancelRecordingTitle": "Diese Aufnahme abbrechen?",
|
||||
"cancelRecordingMessage": "${title} wird nicht mehr aufgenommen.",
|
||||
"deleteRule": "Regel löschen",
|
||||
"deleteRuleTitle": "Aufnahmeregel löschen?",
|
||||
"deleteRuleMessage": "Zukünftige Episoden von ${title} werden nicht aufgenommen.",
|
||||
"recordingScheduled": "Aufnahme geplant",
|
||||
"alreadyScheduled": "Dieses Programm ist bereits geplant",
|
||||
"dvrAdminRequired": "DVR-Einstellungen erfordern ein Administratorkonto",
|
||||
"recordingFailed": "Aufnahme konnte nicht geplant werden",
|
||||
"recordingTargetMissing": "Aufnahmebibliothek konnte nicht ermittelt werden",
|
||||
"recordNotAvailable": "Aufnahme für dieses Programm nicht verfügbar",
|
||||
"recordingCancelled": "Aufnahme abgebrochen",
|
||||
"recordingRuleDeleted": "Aufnahmeregel gelöscht",
|
||||
"processRecordingRules": "Regeln neu bewerten",
|
||||
"loadingRecordings": "Aufnahmen werden geladen ...",
|
||||
"recordingInProgress": "Wird jetzt aufgenommen",
|
||||
"recordingsCount": "${count} geplant",
|
||||
"editRule": "Regel bearbeiten",
|
||||
"editRuleAction": "Bearbeiten",
|
||||
"recordingRuleUpdated": "Aufnahmeregel aktualisiert",
|
||||
"guideReloadRequested": "Guide-Aktualisierung angefordert",
|
||||
"rulesProcessRequested": "Regelauswertung angefordert",
|
||||
"recordShow": "Sendung aufnehmen"
|
||||
},
|
||||
"collections": {
|
||||
"title": "Sammlungen",
|
||||
@@ -663,7 +799,7 @@
|
||||
"empty": "Sammlung ist leer",
|
||||
"unknownLibrarySection": "Löschen nicht möglich: Unbekannte Bibliothekssektion",
|
||||
"deleteCollection": "Sammlung löschen",
|
||||
"deleteConfirm": "Sind Sie sicher, dass Sie \"${title}\" löschen möchten? Dies kann nicht rückgängig gemacht werden.",
|
||||
"deleteConfirm": "\"${title}\" löschen? Dies kann nicht rückgängig gemacht werden.",
|
||||
"deleted": "Sammlung gelöscht",
|
||||
"deleteFailed": "Sammlung konnte nicht gelöscht werden",
|
||||
"deleteFailedWithError": "Sammlung konnte nicht gelöscht werden: ${error}",
|
||||
@@ -747,11 +883,11 @@
|
||||
"pasteFromClipboard": "Aus Zwischenablage einfügen",
|
||||
"pleaseEnterCode": "Bitte gib einen Sitzungscode ein",
|
||||
"codeMustBe5Chars": "Sitzungscode muss 5 Zeichen haben",
|
||||
"joinInstructions": "Gib den vom Host geteilten Sitzungscode ein, um seiner Schausitzung beizutreten.",
|
||||
"joinInstructions": "Gib den Sitzungscode des Hosts ein, um beizutreten.",
|
||||
"failedToCreate": "Sitzung konnte nicht erstellt werden",
|
||||
"failedToJoin": "Sitzung konnte nicht beigetreten werden",
|
||||
"sessionCodeCopied": "Sitzungscode in Zwischenablage kopiert",
|
||||
"relayUnreachable": "Der Relay-Server ist nicht erreichbar. Möglicherweise blockiert dein Internetanbieter die Verbindung. Du kannst es trotzdem versuchen, aber Watch Together funktioniert eventuell nicht.",
|
||||
"relayUnreachable": "Relay-Server nicht erreichbar. ISP-Blockierung kann Watch Together verhindern.",
|
||||
"reconnectingToHost": "Verbindung zum Host wird wiederhergestellt...",
|
||||
"currentPlayback": "Aktuelle Wiedergabe",
|
||||
"joinCurrentPlayback": "Aktuelle Wiedergabe beitreten",
|
||||
@@ -766,7 +902,9 @@
|
||||
"waitingForParticipants": "Warte auf andere zum Laden...",
|
||||
"recentRooms": "Letzte Räume",
|
||||
"renameRoom": "Raum umbenennen",
|
||||
"removeRoom": "Entfernen"
|
||||
"removeRoom": "Entfernen",
|
||||
"guestSwitchUnavailable": "Wechsel fehlgeschlagen — Server nicht für Synchronisierung verfügbar",
|
||||
"guestSwitchFailed": "Wechsel fehlgeschlagen — Inhalt auf diesem Server nicht gefunden"
|
||||
},
|
||||
"downloads": {
|
||||
"title": "Downloads",
|
||||
@@ -779,10 +917,10 @@
|
||||
"deleteDownload": "Download löschen",
|
||||
"retryDownload": "Download wiederholen",
|
||||
"downloadQueued": "Download in Warteschlange",
|
||||
"serverErrorBitrate": "Serverfehler — die Datei überschreitet möglicherweise das Remote-Streaming-Bitratenlimit",
|
||||
"serverErrorBitrate": "Serverfehler: Datei überschreitet möglicherweise das Remote-Bitrate-Limit",
|
||||
"episodesQueued": "${count} Episoden zum Download hinzugefügt",
|
||||
"downloadDeleted": "Download gelöscht",
|
||||
"deleteConfirm": "Möchtest du \"${title}\" wirklich löschen? Die heruntergeladene Datei wird von deinem Gerät entfernt.",
|
||||
"deleteConfirm": "\"${title}\" von diesem Gerät löschen?",
|
||||
"deletingWithProgress": "Lösche ${title}... (${current} von ${total})",
|
||||
"deleting": "Lösche...",
|
||||
"queuedTooltip": "In Warteschlange",
|
||||
@@ -817,6 +955,12 @@
|
||||
"editSyncFilter": "Synchronisierungsfilter",
|
||||
"syncAllItems": "Alle Einträge synchronisieren",
|
||||
"syncUnwatchedItems": "Ungesehene Einträge synchronisieren",
|
||||
"syncRuleServerContext": "Server: ${server} • ${status}",
|
||||
"syncRuleAvailable": "Verfügbar",
|
||||
"syncRuleOffline": "Offline",
|
||||
"syncRuleSignInRequired": "Anmeldung erforderlich",
|
||||
"syncRuleNotAvailableForProfile": "Für aktuelles Profil nicht verfügbar",
|
||||
"syncRuleUnknownServer": "Unbekannter Server",
|
||||
"syncRuleListCreated": "Sync-Regel erstellt"
|
||||
},
|
||||
"shaders": {
|
||||
@@ -846,7 +990,7 @@
|
||||
"connected": "Verbunden",
|
||||
"serverRunning": "Remote-Server aktiv",
|
||||
"serverStopped": "Remote-Server gestoppt",
|
||||
"serverRunningDescription": "Mobilgeräte in deinem Netzwerk können diese App finden und sich verbinden",
|
||||
"serverRunningDescription": "Mobilgeräte in deinem Netzwerk können sich mit dieser App verbinden",
|
||||
"serverStoppedDescription": "Starte den Server, um Mobilgeräten die Verbindung zu ermöglichen",
|
||||
"usePhoneToControl": "Verwende dein Mobilgerät, um diese App zu steuern",
|
||||
"startServer": "Server starten",
|
||||
@@ -854,20 +998,20 @@
|
||||
"minimize": "Minimieren"
|
||||
},
|
||||
"pairing": {
|
||||
"discoveryDescription": "Geräte in deinem Netzwerk, die Plezy mit demselben Plex-Konto nutzen, erscheinen automatisch",
|
||||
"discoveryDescription": "Plezy-Geräte mit demselben Plex-Konto erscheinen hier",
|
||||
"hostAddressHint": "192.168.1.100:48632",
|
||||
"connecting": "Verbinden...",
|
||||
"searchingForDevices": "Suche nach Geräten...",
|
||||
"noDevicesFound": "Keine Geräte in deinem Netzwerk gefunden",
|
||||
"noDevicesHint": "Stelle sicher, dass Plezy auf deinem Desktop geöffnet ist und beide Geräte im selben WLAN sind",
|
||||
"noDevicesHint": "Öffne Plezy auf dem Desktop und nutze dasselbe WiFi",
|
||||
"availableDevices": "Verfügbare Geräte",
|
||||
"manualConnection": "Manuelle Verbindung",
|
||||
"cryptoInitFailed": "Sichere Verbindung konnte nicht initialisiert werden. Stelle sicher, dass du bei einem Plex-Konto angemeldet bist.",
|
||||
"cryptoInitFailed": "Sichere Verbindung konnte nicht gestartet werden. Melde dich zuerst bei Plex an.",
|
||||
"validationHostRequired": "Bitte Host-Adresse eingeben",
|
||||
"validationHostFormat": "Format muss IP:Port sein (z.B. 192.168.1.100:48632)",
|
||||
"connectionTimedOut": "Verbindung abgelaufen. Stelle sicher, dass beide Geräte im selben Netzwerk sind.",
|
||||
"connectionTimedOut": "Verbindung hat Zeitlimit überschritten. Nutze auf beiden Geräten dasselbe Netzwerk.",
|
||||
"sessionNotFound": "Gerät nicht gefunden. Stelle sicher, dass Plezy auf dem Host läuft.",
|
||||
"authFailed": "Authentifizierung fehlgeschlagen. Stelle sicher, dass beide Geräte dasselbe Plex-Konto verwenden.",
|
||||
"authFailed": "Authentifizierung fehlgeschlagen. Beide Geräte benötigen dasselbe Plex-Konto.",
|
||||
"failedToConnect": "Verbindung fehlgeschlagen: ${error}"
|
||||
},
|
||||
"remote": {
|
||||
@@ -915,7 +1059,7 @@
|
||||
"externalPlayer": {
|
||||
"title": "Externer Player",
|
||||
"useExternalPlayer": "Externen Player verwenden",
|
||||
"useExternalPlayerDescription": "Videos in einer externen App statt im integrierten Player öffnen",
|
||||
"useExternalPlayerDescription": "Videos in einer anderen App öffnen",
|
||||
"selectPlayer": "Player auswählen",
|
||||
"customPlayers": "Benutzerdefinierte Player",
|
||||
"systemDefault": "Systemstandard",
|
||||
@@ -1009,7 +1153,7 @@
|
||||
"match": "Zuordnen...",
|
||||
"fixMatch": "Zuordnung korrigieren...",
|
||||
"unmatch": "Zuordnung aufheben",
|
||||
"unmatchConfirm": "Die aktuelle Zuordnung dieses Eintrags entfernen? Plex behandelt ihn als nicht zugeordnet, bis du ihn erneut zuordnest.",
|
||||
"unmatchConfirm": "Diese Zuordnung löschen? Plex behandelt sie als nicht zugeordnet, bis sie neu zugeordnet wird.",
|
||||
"unmatchSuccess": "Zuordnung aufgehoben",
|
||||
"unmatchFailed": "Zuordnung konnte nicht aufgehoben werden",
|
||||
"matchApplied": "Zuordnung angewendet",
|
||||
@@ -1029,7 +1173,7 @@
|
||||
"connected": "Verbunden",
|
||||
"connectedAs": "Verbunden als @${username}",
|
||||
"disconnectConfirm": "Trakt-Konto trennen?",
|
||||
"disconnectConfirmBody": "Plezy sendet keine Wiedergabe-Ereignisse mehr an Trakt. Du kannst dich jederzeit erneut verbinden.",
|
||||
"disconnectConfirmBody": "Plezy sendet keine Ereignisse mehr an Trakt. Du kannst jederzeit erneut verbinden.",
|
||||
"scrobble": "Echtzeit-Scrobbling",
|
||||
"scrobbleDescription": "Sende Play-, Pause- und Stopp-Ereignisse während der Wiedergabe an Trakt.",
|
||||
"watchedSync": "Gesehen-Status synchronisieren",
|
||||
@@ -1037,13 +1181,13 @@
|
||||
},
|
||||
"trackers": {
|
||||
"title": "Tracker",
|
||||
"hubSubtitle": "Halte deinen Wiedergabefortschritt mit Trakt und anderen Diensten synchron.",
|
||||
"hubSubtitle": "Wiedergabefortschritt mit Trakt und anderen Diensten synchronisieren.",
|
||||
"notConnected": "Nicht verbunden",
|
||||
"connectedAs": "Verbunden als @${username}",
|
||||
"scrobble": "Fortschritt automatisch verfolgen",
|
||||
"scrobbleDescription": "Aktualisiere deine Liste, wenn du eine Folge oder einen Film beendest.",
|
||||
"disconnectConfirm": "${service} trennen?",
|
||||
"disconnectConfirmBody": "Plezy aktualisiert deine ${service}-Liste nicht mehr. Du kannst jederzeit wieder verbinden.",
|
||||
"disconnectConfirmBody": "Plezy aktualisiert ${service} nicht mehr. Jederzeit erneut verbinden.",
|
||||
"connectFailed": "Verbindung zu ${service} fehlgeschlagen. Versuche es erneut.",
|
||||
"services": {
|
||||
"mal": "MyAnimeList",
|
||||
@@ -1059,7 +1203,7 @@
|
||||
},
|
||||
"oauthProxy": {
|
||||
"title": "Bei ${service} anmelden",
|
||||
"body": "Scanne diesen QR-Code mit deinem Handy oder öffne die URL unten auf einem Gerät mit Browser.",
|
||||
"body": "Scanne diesen QR-Code oder öffne die URL auf einem beliebigen Gerät.",
|
||||
"openToSignIn": "${service} zum Anmelden öffnen",
|
||||
"urlCopied": "URL kopiert"
|
||||
},
|
||||
@@ -1077,5 +1221,39 @@
|
||||
"libraries": "Bibliotheken",
|
||||
"noLibraries": "Keine Bibliotheken verfügbar"
|
||||
}
|
||||
},
|
||||
"addServer": {
|
||||
"addJellyfinTitle": "Jellyfin-Server hinzufügen",
|
||||
"jellyfinUrlIntro": "Gib die Server-URL ein, z. B. `https://jellyfin.example.com`.",
|
||||
"serverUrl": "Server-URL",
|
||||
"findServer": "Server finden",
|
||||
"username": "Benutzername",
|
||||
"password": "Passwort",
|
||||
"signIn": "Anmelden",
|
||||
"change": "Ändern",
|
||||
"required": "Erforderlich",
|
||||
"couldNotReachServer": "Server nicht erreichbar: ${error}",
|
||||
"signInFailed": "Anmeldung fehlgeschlagen: ${error}",
|
||||
"quickConnectFailed": "Quick Connect fehlgeschlagen: ${error}",
|
||||
"addPlexTitle": "Mit Plex anmelden",
|
||||
"plexAuthIntro": "Melde dich mit Browser oder QR-Code an.",
|
||||
"plexQRPrompt": "Scanne diesen QR-Code zum Anmelden.",
|
||||
"waitingForPlexConfirmation": "Warte auf Bestätigung durch plex.tv…",
|
||||
"pinExpired": "PIN ist vor der Anmeldung abgelaufen. Bitte erneut versuchen.",
|
||||
"duplicatePlexAccount": "Bereits bei Plex angemeldet. Melde dich ab, um Konten zu wechseln.",
|
||||
"failedToRegisterAccount": "Konto konnte nicht registriert werden: ${error}",
|
||||
"enterJellyfinUrlError": "Gib die URL deines Jellyfin-Servers ein",
|
||||
"addConnectionTitle": "Verbindung hinzufügen",
|
||||
"addConnectionTitleScoped": "Zu ${name} hinzufügen",
|
||||
"addConnectionIntroGlobal": "Füge einen weiteren Medienserver hinzu. Plex und Jellyfin erscheinen zusammen auf der Startseite.",
|
||||
"addConnectionIntroScoped": "Füge einen neuen Server hinzu oder leihe einen von einem anderen Profil aus.",
|
||||
"signInWithPlexCard": "Mit Plex anmelden",
|
||||
"signInWithPlexCardSubtitle": "Dieses Gerät autorisieren. Geteilte Server werden hinzugefügt.",
|
||||
"signInWithPlexCardSubtitleScoped": "Ein Plex-Konto autorisieren. Home-Benutzer werden zu Profilen.",
|
||||
"connectToJellyfinCard": "Mit Jellyfin verbinden",
|
||||
"connectToJellyfinCardSubtitle": "Gib Server-URL, Benutzername und Passwort ein.",
|
||||
"connectToJellyfinCardSubtitleScoped": "Bei einem Jellyfin-Server anmelden. Wird mit ${name} verknüpft.",
|
||||
"borrowFromAnotherProfile": "Von einem anderen Profil ausleihen",
|
||||
"borrowFromAnotherProfileSubtitle": "Verbindung eines anderen Profils wiederverwenden. PIN-geschützte Profile erfordern eine PIN."
|
||||
}
|
||||
}
|
||||
|
||||
+236
-58
@@ -3,13 +3,22 @@
|
||||
"title": "Plezy"
|
||||
},
|
||||
"auth": {
|
||||
"signIn": "Sign in",
|
||||
"signInWithPlex": "Sign in with Plex",
|
||||
"showQRCode": "Show QR Code",
|
||||
"authenticate": "Authenticate",
|
||||
"authenticationTimeout": "Authentication timed out. Please try again.",
|
||||
"scanQRToSignIn": "Scan this QR code to sign in",
|
||||
"waitingForAuth": "Waiting for authentication...\nPlease complete sign-in in your browser.",
|
||||
"useBrowser": "Use browser"
|
||||
"waitingForAuth": "Waiting for authentication...\nSign in from your browser.",
|
||||
"useBrowser": "Use browser",
|
||||
"or": "or",
|
||||
"connectToJellyfin": "Connect to Jellyfin",
|
||||
"useQuickConnect": "Use Quick Connect",
|
||||
"quickConnectCode": "Quick Connect code",
|
||||
"quickConnectInstructions": "Open Quick Connect in Jellyfin and enter this code.",
|
||||
"quickConnectWaiting": "Waiting for approval…",
|
||||
"quickConnectCancel": "Cancel",
|
||||
"quickConnectExpired": "Quick Connect expired. Try again."
|
||||
},
|
||||
"common": {
|
||||
"cancel": "Cancel",
|
||||
@@ -43,9 +52,6 @@
|
||||
"mute": "Mute",
|
||||
"ok": "OK",
|
||||
"reconnect": "Reconnect",
|
||||
"exitConfirmTitle": "Exit app?",
|
||||
"exitConfirmMessage": "Are you sure you want to exit?",
|
||||
"dontAskAgain": "Don't ask again",
|
||||
"exit": "Exit",
|
||||
"viewAll": "View All",
|
||||
"checkingNetwork": "Checking network...",
|
||||
@@ -55,7 +61,8 @@
|
||||
"startingOfflineMode": "Starting offline mode...",
|
||||
"loading": "Loading...",
|
||||
"fullscreen": "Fullscreen",
|
||||
"exitFullscreen": "Exit fullscreen"
|
||||
"exitFullscreen": "Exit fullscreen",
|
||||
"pressBackAgainToExit": "Press back again to exit"
|
||||
},
|
||||
"screens": {
|
||||
"licenses": "Licenses",
|
||||
@@ -104,22 +111,22 @@
|
||||
"gridView": "Grid",
|
||||
"listView": "List",
|
||||
"showHeroSection": "Show Hero Section",
|
||||
"useGlobalHubs": "Use Plex Home Layout",
|
||||
"useGlobalHubsDescription": "Show home page hubs like the official Plex client. When off, shows per-library recommendations instead.",
|
||||
"useGlobalHubs": "Use Home Layout",
|
||||
"useGlobalHubsDescription": "Show unified home hubs. Otherwise use library recommendations.",
|
||||
"showServerNameOnHubs": "Show Server Name on Hubs",
|
||||
"showServerNameOnHubsDescription": "Always display the server name in hub titles. When off, only shows for duplicate hub names.",
|
||||
"showServerNameOnHubsDescription": "Always show server names in hub titles.",
|
||||
"groupLibrariesByServer": "Group Libraries by Server",
|
||||
"groupLibrariesByServerDescription": "Show a header for each Plex server in the sidebar when you're connected to multiple servers.",
|
||||
"groupLibrariesByServerDescription": "Group sidebar libraries under each media server.",
|
||||
"alwaysKeepSidebarOpen": "Always Keep Sidebar Open",
|
||||
"alwaysKeepSidebarOpenDescription": "Sidebar stays expanded and content area adjusts to fit",
|
||||
"showUnwatchedCount": "Show Unwatched Count",
|
||||
"showUnwatchedCountDescription": "Display unwatched episode count on shows and seasons",
|
||||
"showEpisodeNumberOnCards": "Show Episode Number on Cards",
|
||||
"showEpisodeNumberOnCardsDescription": "Show episode number alongside the season (e.g. S2 E3) on episode cards",
|
||||
"showEpisodeNumberOnCardsDescription": "Show season and episode number on episode cards",
|
||||
"showSeasonPostersOnTabs": "Show Season Posters on Tabs",
|
||||
"showSeasonPostersOnTabsDescription": "Display the season's poster above each season tab on a show's detail page",
|
||||
"showSeasonPostersOnTabsDescription": "Show each season's poster above its tab",
|
||||
"hideSpoilers": "Hide Spoilers for Unwatched Episodes",
|
||||
"hideSpoilersDescription": "Blur thumbnails and hide descriptions for episodes you haven't watched yet",
|
||||
"hideSpoilersDescription": "Blur thumbnails and descriptions for unwatched episodes",
|
||||
"playerBackend": "Player Backend",
|
||||
"exoPlayer": "ExoPlayer (Recommended)",
|
||||
"mpv": "mpv",
|
||||
@@ -128,7 +135,7 @@
|
||||
"bufferSize": "Buffer Size",
|
||||
"bufferSizeMB": "${size}MB",
|
||||
"bufferSizeAuto": "Auto (Recommended)",
|
||||
"bufferSizeWarning": "Your device has ${heap}MB of memory. A ${size}MB buffer may cause playback issues.",
|
||||
"bufferSizeWarning": "${heap}MB memory available. A ${size}MB buffer may affect playback.",
|
||||
"defaultQualityTitle": "Default Quality",
|
||||
"defaultQualityDescription": "Used when starting playback. Lower values reduce bandwidth.",
|
||||
"subtitleStyling": "Subtitle Styling",
|
||||
@@ -140,16 +147,18 @@
|
||||
"defaultSleepTimer": "Default Sleep Timer",
|
||||
"minutesUnit": "${minutes} minutes",
|
||||
"rememberTrackSelections": "Remember track selections per show/movie",
|
||||
"rememberTrackSelectionsDescription": "Automatically save audio and subtitle language preferences when you change tracks during playback",
|
||||
"rememberTrackSelectionsDescription": "Remember audio and subtitle choices per title",
|
||||
"showChapterMarkersOnTimeline": "Show chapter markers on seek bar",
|
||||
"showChapterMarkersOnTimelineDescription": "Segment the seek bar at chapter boundaries",
|
||||
"clickVideoTogglesPlayback": "Click on video to toggle play/pause",
|
||||
"clickVideoTogglesPlaybackDescription": "If enabled, clicking on the video player will play/pause the video. Otherwise, clicking will show/hide the playback controls.",
|
||||
"clickVideoTogglesPlaybackDescription": "Click video to play/pause instead of showing controls.",
|
||||
"videoPlayerControls": "Video Player Controls",
|
||||
"keyboardShortcuts": "Keyboard Shortcuts",
|
||||
"keyboardShortcutsDescription": "Customize keyboard shortcuts",
|
||||
"videoPlayerNavigation": "Video Player Navigation",
|
||||
"videoPlayerNavigationDescription": "Use arrow keys to navigate video player controls",
|
||||
"watchTogetherRelay": "Watch Together Relay",
|
||||
"watchTogetherRelayDescription": "Set a custom relay server for Watch Together. All participants must use the same server.",
|
||||
"watchTogetherRelayDescription": "Set a custom relay. Everyone must use the same server.",
|
||||
"watchTogetherRelayHint": "https://my-relay.example.com",
|
||||
"crashReporting": "Crash Reporting",
|
||||
"crashReportingDescription": "Send crash reports to help improve the app",
|
||||
@@ -158,10 +167,10 @@
|
||||
"viewLogs": "View Logs",
|
||||
"viewLogsDescription": "View application logs",
|
||||
"clearCache": "Clear Cache",
|
||||
"clearCacheDescription": "This will clear all cached images and data. The app may take longer to load content after clearing the cache.",
|
||||
"clearCacheDescription": "Clear cached images and data. Content may load slower.",
|
||||
"clearCacheSuccess": "Cache cleared successfully",
|
||||
"resetSettings": "Reset Settings",
|
||||
"resetSettingsDescription": "This will reset all settings to their default values. This action cannot be undone.",
|
||||
"resetSettingsDescription": "Restore default settings. This can't be undone.",
|
||||
"resetSettingsSuccess": "Settings reset successfully",
|
||||
"backup": "Backup",
|
||||
"exportSettings": "Export Settings",
|
||||
@@ -182,7 +191,7 @@
|
||||
"updateAvailable": "Update Available",
|
||||
"checkForUpdates": "Check for Updates",
|
||||
"autoCheckUpdatesOnStartup": "Automatically check for updates on startup",
|
||||
"autoCheckUpdatesOnStartupDescription": "Show a notification when a new version is available at launch",
|
||||
"autoCheckUpdatesOnStartupDescription": "Notify when an update is available at launch",
|
||||
"validationErrorEnterNumber": "Please enter a valid number",
|
||||
"validationErrorDuration": "Duration must be between ${min} and ${max} ${unit}",
|
||||
"shortcutAlreadyAssigned": "Shortcut already assigned to ${action}",
|
||||
@@ -192,6 +201,8 @@
|
||||
"autoSkipIntroDescription": "Automatically skip intro markers after a few seconds",
|
||||
"autoSkipCredits": "Auto Skip Credits",
|
||||
"autoSkipCreditsDescription": "Automatically skip credits and play next episode",
|
||||
"forceSkipMarkerFallback": "Force Fallback Markers",
|
||||
"forceSkipMarkerFallbackDescription": "Use chapter title patterns even when Plex has markers",
|
||||
"autoSkipDelay": "Auto Skip Delay",
|
||||
"autoSkipDelayDescription": "Wait ${seconds} seconds before auto-skipping",
|
||||
"introPattern": "Intro Marker Pattern",
|
||||
@@ -213,8 +224,8 @@
|
||||
"downloadOnWifiOnly": "Download on WiFi only",
|
||||
"downloadOnWifiOnlyDescription": "Prevent downloads when on cellular data",
|
||||
"autoRemoveWatchedDownloads": "Auto-remove watched downloads",
|
||||
"autoRemoveWatchedDownloadsDescription": "Automatically delete downloaded episodes and movies when marked as watched",
|
||||
"cellularDownloadBlocked": "Downloads are disabled on cellular data. Connect to WiFi or change the setting.",
|
||||
"autoRemoveWatchedDownloadsDescription": "Delete watched downloads automatically",
|
||||
"cellularDownloadBlocked": "Downloads are blocked on cellular. Use WiFi or change the setting.",
|
||||
"maxVolume": "Maximum Volume",
|
||||
"maxVolumeDescription": "Allow volume boost above 100% for quiet media",
|
||||
"maxVolumePercent": "${percent}%",
|
||||
@@ -227,22 +238,20 @@
|
||||
"companionRemoteServer": "Companion Remote Server",
|
||||
"companionRemoteServerDescription": "Allow mobile devices on your network to control this app",
|
||||
"autoPip": "Auto Picture-in-Picture",
|
||||
"autoPipDescription": "Automatically enter picture-in-picture when leaving the app during playback",
|
||||
"autoPipDescription": "Enter picture-in-picture when leaving during playback",
|
||||
"matchContentFrameRate": "Match Content Frame Rate",
|
||||
"matchContentFrameRateDescription": "Adjust display refresh rate to match video content, reducing judder and saving battery",
|
||||
"matchContentFrameRateDescription": "Match display refresh rate to video content",
|
||||
"matchRefreshRate": "Match Refresh Rate",
|
||||
"matchRefreshRateDescription": "Switch display refresh rate to match video content when in fullscreen",
|
||||
"matchRefreshRateDescription": "Match display refresh rate in fullscreen",
|
||||
"matchDynamicRange": "Match Dynamic Range",
|
||||
"matchDynamicRangeDescription": "Auto-enable HDR for HDR content and revert to SDR when leaving the player",
|
||||
"matchDynamicRangeDescription": "Switch HDR on for HDR content, then back to SDR",
|
||||
"displaySwitchDelay": "Display Switch Delay",
|
||||
"tunneledPlayback": "Tunneled Playback",
|
||||
"tunneledPlaybackDescription": "Use hardware-accelerated video tunneling. Disable if you see a black screen with audio on HDR content",
|
||||
"tunneledPlaybackDescription": "Use video tunneling. Disable if HDR playback shows black video.",
|
||||
"requireProfileSelectionOnOpen": "Ask for profile on app open",
|
||||
"requireProfileSelectionOnOpenDescription": "Show profile selection every time the app is opened",
|
||||
"confirmExitOnBack": "Confirm before exiting",
|
||||
"confirmExitOnBackDescription": "Show a confirmation dialog when pressing back to exit the app",
|
||||
"forceTvMode": "Force TV mode",
|
||||
"forceTvModeDescription": "Use the TV layout regardless of auto-detection. Useful on Android TV devices that don't report the leanback feature. Restarts the app on change.",
|
||||
"forceTvModeDescription": "Force TV layout. For devices that don't auto-detect. Requires restart.",
|
||||
"startInFullscreen": "Start in fullscreen",
|
||||
"startInFullscreenDescription": "Open Plezy in fullscreen mode at launch",
|
||||
"autoHidePerformanceOverlay": "Auto-Hide Performance Overlay",
|
||||
@@ -330,7 +339,7 @@
|
||||
"shufflePlay": "Shuffle Play",
|
||||
"fileInfo": "File Info",
|
||||
"deleteFromServer": "Delete from server",
|
||||
"confirmDelete": "This will permanently delete this media and its files from your server. This cannot be undone.",
|
||||
"confirmDelete": "Delete this media and its files from your server?",
|
||||
"deleteMultipleWarning": "This includes all episodes and their files.",
|
||||
"mediaDeletedSuccessfully": "Media item deleted successfully",
|
||||
"mediaFailedToDelete": "Failed to delete media item",
|
||||
@@ -414,7 +423,7 @@
|
||||
"pipErrors": {
|
||||
"androidVersion": "Requires Android 8.0 or newer",
|
||||
"iosVersion": "Requires iOS 15.0 or newer",
|
||||
"permissionDisabled": "Picture-in-picture permission is disabled. Enable it in Settings > Apps > Plezy > Picture-in-picture",
|
||||
"permissionDisabled": "Picture-in-picture is disabled. Enable it in system settings.",
|
||||
"notSupported": "Device doesn't support picture-in-picture mode",
|
||||
"voSwitchFailed": "Failed to switch video output for picture-in-picture",
|
||||
"failed": "Picture-in-picture failed to start",
|
||||
@@ -452,7 +461,7 @@
|
||||
"musicNotSupported": "Music playback is not yet supported",
|
||||
"noDescriptionAvailable": "No description available",
|
||||
"noProfilesAvailable": "No profiles available",
|
||||
"contactAdminForProfiles": "Contact your Plex administrator to add profiles",
|
||||
"contactAdminForProfiles": "Contact your server administrator to add profiles",
|
||||
"unableToDetermineLibrarySection": "Unable to determine library section for this item",
|
||||
"logsCleared": "Logs cleared",
|
||||
"logsCopied": "Logs copied to clipboard",
|
||||
@@ -474,7 +483,7 @@
|
||||
"failedPlayback": "Failed to ${action}: ${error}",
|
||||
"switchingToCompatiblePlayer": "Switching to compatible player...",
|
||||
"serverLimitTitle": "Playback failed",
|
||||
"serverLimitBody": "The server returned an error (HTTP 500). This usually means the server owner has set a bandwidth or transcoding limit that's rejecting your session. There's nothing to do from the client — the server owner needs to adjust their settings.",
|
||||
"serverLimitBody": "Server error (HTTP 500). A bandwidth/transcoding limit likely rejected this session. Ask the owner to adjust it.",
|
||||
"logsUploaded": "Logs uploaded",
|
||||
"logsUploadFailed": "Failed to upload logs",
|
||||
"logId": "Log ID"
|
||||
@@ -513,12 +522,85 @@
|
||||
"dialog": {
|
||||
"confirmAction": "Confirm Action"
|
||||
},
|
||||
"profiles": {
|
||||
"addPlezyProfile": "Add Plezy profile",
|
||||
"switchingProfile": "Switching profile…",
|
||||
"deleteThisProfileTitle": "Delete this profile?",
|
||||
"deleteThisProfileMessage": "Remove ${displayName}. Connections aren't affected.",
|
||||
"active": "Active",
|
||||
"manage": "Manage",
|
||||
"delete": "Delete",
|
||||
"signOut": "Sign out",
|
||||
"signOutPlexTitle": "Sign out of Plex?",
|
||||
"signOutPlexMessage": "Remove ${displayName} and all Plex Home users? Sign back in anytime.",
|
||||
"signedOutPlex": "Signed out of Plex.",
|
||||
"signOutFailed": "Sign out failed.",
|
||||
"sectionTitle": "Profiles",
|
||||
"summarySingle": "Add profiles to mix managed users and local identities",
|
||||
"summaryMultipleWithActive": "${count} profiles · active: ${activeName}",
|
||||
"summaryMultiple": "${count} profiles",
|
||||
"removeConnectionTitle": "Remove connection?",
|
||||
"removeConnectionMessage": "Remove ${displayName}'s access to ${connectionLabel}. Other profiles keep it.",
|
||||
"deleteProfileTitle": "Delete profile?",
|
||||
"deleteProfileMessage": "Remove ${displayName} and its connections. Servers stay available.",
|
||||
"profileNameLabel": "Profile name",
|
||||
"pinProtectionLabel": "PIN protection",
|
||||
"pinManagedByPlex": "PIN managed by Plex. Edit on plex.tv.",
|
||||
"noPinSetEditOnPlex": "No PIN set. To require one, edit the home user on plex.tv.",
|
||||
"setPin": "Set PIN",
|
||||
"setPinTitle": "Set PIN",
|
||||
"confirmPinTitle": "Confirm PIN",
|
||||
"pinSet": "PIN set",
|
||||
"changePin": "Change",
|
||||
"removePin": "Remove",
|
||||
"connectionsLabel": "Connections",
|
||||
"add": "Add",
|
||||
"deleteProfileButton": "Delete profile",
|
||||
"noConnectionsHint": "No connections — add one to use this profile.",
|
||||
"noConnections": "No connections",
|
||||
"plexHomeAccount": "Plex Home account",
|
||||
"connectionDefault": "Default",
|
||||
"connectionAs": "as ${displayName}",
|
||||
"makeDefault": "Make default",
|
||||
"removeConnection": "Remove",
|
||||
"profileRenamed": "Profile renamed.",
|
||||
"borrowAddTo": "Add to ${displayName}",
|
||||
"borrowExplain": "Borrow another profile's connection. PIN-protected profiles require a PIN.",
|
||||
"borrowEmpty": "Nothing to borrow yet.",
|
||||
"borrowEmptySubtitle": "Connect Plex or Jellyfin to another profile first.",
|
||||
"borrowFromProfile": "From ${displayName}",
|
||||
"borrowConnectionBorrowed": "Connection borrowed.",
|
||||
"borrowFailed": "Failed to borrow connection.",
|
||||
"incorrectPin": "Incorrect PIN.",
|
||||
"sourceProfileMissingParentAccount": "Source profile is missing its parent account.",
|
||||
"failedToVerifyPin": "Failed to verify PIN.",
|
||||
"newProfile": "New profile",
|
||||
"profileNameHint": "e.g. Guests, Kids, Family Room",
|
||||
"pinProtectionOptional": "PIN protection (optional)",
|
||||
"pinExplain": "4-digit PIN required to switch profiles.",
|
||||
"continueButton": "Continue",
|
||||
"pinsDontMatch": "PINs don't match"
|
||||
},
|
||||
"connections": {
|
||||
"sectionTitle": "Connections",
|
||||
"addConnection": "Add connection",
|
||||
"addConnectionSubtitleNoProfile": "Sign in with Plex or connect a Jellyfin server",
|
||||
"addConnectionSubtitleScoped": "Add to ${displayName}: Plex, Jellyfin, or another profile connection",
|
||||
"sessionExpiredOne": "Session expired for ${name}",
|
||||
"sessionExpiredMany": "Session expired for ${count} servers",
|
||||
"signInAgain": "Sign in again"
|
||||
},
|
||||
"discover": {
|
||||
"title": "Discover",
|
||||
"switchProfile": "Switch Profile",
|
||||
"noContentAvailable": "No content available",
|
||||
"addMediaToLibraries": "Add some media to your libraries",
|
||||
"continueWatching": "Continue Watching",
|
||||
"continueWatchingIn": "Continue Watching in ${library}",
|
||||
"nextUp": "Next Up",
|
||||
"nextUpIn": "Next Up in ${library}",
|
||||
"recentlyAdded": "Recently Added",
|
||||
"recentlyAddedIn": "Recently Added in ${library}",
|
||||
"playEpisode": "S${season}E${episode}",
|
||||
"overview": "Overview",
|
||||
"cast": "Cast",
|
||||
@@ -532,7 +614,7 @@
|
||||
"errors": {
|
||||
"searchFailed": "Search failed: ${error}",
|
||||
"connectionTimeout": "Connection timeout while loading ${context}",
|
||||
"connectionFailed": "Unable to connect to Plex server",
|
||||
"connectionFailed": "Unable to connect to media server",
|
||||
"failedToLoad": "Failed to load ${context}: ${error}",
|
||||
"noClientAvailable": "No client available",
|
||||
"authenticationFailed": "Authentication failed: ${error}",
|
||||
@@ -540,7 +622,9 @@
|
||||
"pleaseEnterToken": "Please enter a token",
|
||||
"invalidToken": "Invalid token",
|
||||
"failedToVerifyToken": "Failed to verify token: ${error}",
|
||||
"failedToSwitchProfile": "Failed to switch to ${displayName}"
|
||||
"failedToSwitchProfile": "Failed to switch to ${displayName}",
|
||||
"failedToDeleteProfile": "Failed to delete ${displayName}",
|
||||
"failedToRate": "Couldn't update rating"
|
||||
},
|
||||
"libraries": {
|
||||
"title": "Libraries",
|
||||
@@ -595,17 +679,34 @@
|
||||
"seasons": "Seasons",
|
||||
"episodes": "Episodes",
|
||||
"folders": "Folders"
|
||||
},
|
||||
"filterCategories": {
|
||||
"genre": "Genre",
|
||||
"year": "Year",
|
||||
"contentRating": "Content Rating",
|
||||
"tag": "Tag"
|
||||
},
|
||||
"sortLabels": {
|
||||
"title": "Title",
|
||||
"dateAdded": "Date Added",
|
||||
"releaseDate": "Release Date",
|
||||
"rating": "Rating",
|
||||
"lastPlayed": "Last Played",
|
||||
"playCount": "Play Count",
|
||||
"random": "Random",
|
||||
"dateShared": "Date Shared",
|
||||
"latestEpisodeAirDate": "Latest Episode Air Date"
|
||||
}
|
||||
},
|
||||
"about": {
|
||||
"title": "About",
|
||||
"openSourceLicenses": "Open Source Licenses",
|
||||
"versionLabel": "Version ${version}",
|
||||
"appDescription": "A beautiful Plex client for Flutter",
|
||||
"appDescription": "A beautiful Plex and Jellyfin client for Flutter",
|
||||
"viewLicensesDescription": "View licenses of third-party libraries"
|
||||
},
|
||||
"serverSelection": {
|
||||
"allServerConnectionsFailed": "Failed to connect to any servers. Please check your network and try again.",
|
||||
"allServerConnectionsFailed": "Couldn't connect to any servers. Check your network.",
|
||||
"noServersFoundForAccount": "No servers found for ${username} (${email})",
|
||||
"failedToLoadServers": "Failed to load servers: ${error}"
|
||||
},
|
||||
@@ -642,6 +743,7 @@
|
||||
"reloadGuide": "Reload Guide",
|
||||
"now": "Now",
|
||||
"today": "Today",
|
||||
"tomorrow": "Tomorrow",
|
||||
"midnight": "Midnight",
|
||||
"overnight": "Overnight",
|
||||
"morning": "Morning",
|
||||
@@ -655,7 +757,41 @@
|
||||
"joinSession": "Join Session in Progress",
|
||||
"watchFromStart": "Watch from start (${minutes} min ago)",
|
||||
"watchLive": "Watch Live",
|
||||
"goToLive": "Go to Live"
|
||||
"goToLive": "Go to Live",
|
||||
"record": "Record",
|
||||
"recordEpisode": "Record Episode",
|
||||
"recordSeries": "Record Series",
|
||||
"recordOptions": "Record Options",
|
||||
"recordings": "Recordings",
|
||||
"scheduledRecordings": "Scheduled",
|
||||
"recordingRules": "Recording Rules",
|
||||
"noScheduledRecordings": "Nothing scheduled to record",
|
||||
"noRecordingRules": "No recording rules yet",
|
||||
"manageRecording": "Manage recording",
|
||||
"cancelRecording": "Cancel recording",
|
||||
"cancelRecordingTitle": "Cancel this recording?",
|
||||
"cancelRecordingMessage": "${title} will no longer be recorded.",
|
||||
"deleteRule": "Delete rule",
|
||||
"deleteRuleTitle": "Delete recording rule?",
|
||||
"deleteRuleMessage": "Future episodes of ${title} will not be recorded.",
|
||||
"recordingScheduled": "Recording scheduled",
|
||||
"alreadyScheduled": "This program is already scheduled",
|
||||
"dvrAdminRequired": "DVR settings require an admin account",
|
||||
"recordingFailed": "Couldn't schedule recording",
|
||||
"recordingTargetMissing": "Couldn't determine recording library",
|
||||
"recordNotAvailable": "Recording not available for this program",
|
||||
"recordingCancelled": "Recording cancelled",
|
||||
"recordingRuleDeleted": "Recording rule deleted",
|
||||
"processRecordingRules": "Re-evaluate rules",
|
||||
"loadingRecordings": "Loading recordings...",
|
||||
"recordingInProgress": "Recording now",
|
||||
"recordingsCount": "${count} scheduled",
|
||||
"editRule": "Edit rule",
|
||||
"editRuleAction": "Edit",
|
||||
"recordingRuleUpdated": "Recording rule updated",
|
||||
"guideReloadRequested": "Guide refresh requested",
|
||||
"rulesProcessRequested": "Rule re-evaluation requested",
|
||||
"recordShow": "Record show"
|
||||
},
|
||||
"collections": {
|
||||
"title": "Collections",
|
||||
@@ -663,7 +799,7 @@
|
||||
"empty": "Collection is empty",
|
||||
"unknownLibrarySection": "Cannot delete: Unknown library section",
|
||||
"deleteCollection": "Delete Collection",
|
||||
"deleteConfirm": "Are you sure you want to delete \"${title}\"? This action cannot be undone.",
|
||||
"deleteConfirm": "Delete \"${title}\"? This can't be undone.",
|
||||
"deleted": "Collection deleted",
|
||||
"deleteFailed": "Failed to delete collection",
|
||||
"deleteFailedWithError": "Failed to delete collection: ${error}",
|
||||
@@ -747,11 +883,11 @@
|
||||
"pasteFromClipboard": "Paste from clipboard",
|
||||
"pleaseEnterCode": "Please enter a session code",
|
||||
"codeMustBe5Chars": "Session code must be 5 characters",
|
||||
"joinInstructions": "Enter the session code shared by the host to join their watch session.",
|
||||
"joinInstructions": "Enter the host's session code to join.",
|
||||
"failedToCreate": "Failed to create session",
|
||||
"failedToJoin": "Failed to join session",
|
||||
"sessionCodeCopied": "Session code copied to clipboard",
|
||||
"relayUnreachable": "The relay server is unreachable. This may be caused by your ISP blocking the connection. You can still try, but Watch Together may not work.",
|
||||
"relayUnreachable": "Relay server unreachable. ISP blocking may prevent Watch Together.",
|
||||
"reconnectingToHost": "Reconnecting to host...",
|
||||
"currentPlayback": "Current Playback",
|
||||
"joinCurrentPlayback": "Join Current Playback",
|
||||
@@ -766,7 +902,9 @@
|
||||
"waitingForParticipants": "Waiting for others to load...",
|
||||
"recentRooms": "Recent Rooms",
|
||||
"renameRoom": "Rename Room",
|
||||
"removeRoom": "Remove"
|
||||
"removeRoom": "Remove",
|
||||
"guestSwitchUnavailable": "Couldn't switch — server unavailable for sync",
|
||||
"guestSwitchFailed": "Couldn't switch — content not found on this server"
|
||||
},
|
||||
"downloads": {
|
||||
"title": "Downloads",
|
||||
@@ -779,10 +917,10 @@
|
||||
"deleteDownload": "Delete download",
|
||||
"retryDownload": "Retry download",
|
||||
"downloadQueued": "Download queued",
|
||||
"serverErrorBitrate": "Server error — the file may exceed the remote streaming bitrate limit",
|
||||
"serverErrorBitrate": "Server error: file may exceed the remote bitrate limit",
|
||||
"episodesQueued": "${count} episodes queued for download",
|
||||
"downloadDeleted": "Download deleted",
|
||||
"deleteConfirm": "Are you sure you want to delete \"${title}\"? This will remove the downloaded file from your device.",
|
||||
"deleteConfirm": "Delete \"${title}\" from this device?",
|
||||
"deleting": "Deleting...",
|
||||
"deletingWithProgress": "Deleting ${title}... (${current} of ${total})",
|
||||
"queuedTooltip": "Queued",
|
||||
@@ -817,6 +955,12 @@
|
||||
"editSyncFilter": "Sync filter",
|
||||
"syncAllItems": "Syncing all items",
|
||||
"syncUnwatchedItems": "Syncing unwatched items",
|
||||
"syncRuleServerContext": "Server: ${server} • ${status}",
|
||||
"syncRuleAvailable": "Available",
|
||||
"syncRuleOffline": "Offline",
|
||||
"syncRuleSignInRequired": "Sign in required",
|
||||
"syncRuleNotAvailableForProfile": "Not available for current profile",
|
||||
"syncRuleUnknownServer": "Unknown server",
|
||||
"syncRuleListCreated": "Sync rule created"
|
||||
},
|
||||
"shaders": {
|
||||
@@ -846,7 +990,7 @@
|
||||
"connected": "Connected",
|
||||
"serverRunning": "Remote server active",
|
||||
"serverStopped": "Remote server stopped",
|
||||
"serverRunningDescription": "Mobile devices on your network can discover and connect to this app",
|
||||
"serverRunningDescription": "Mobile devices on your network can connect to this app",
|
||||
"serverStoppedDescription": "Start the server to allow mobile devices to connect",
|
||||
"usePhoneToControl": "Use your mobile device to control this app",
|
||||
"startServer": "Start Server",
|
||||
@@ -854,20 +998,20 @@
|
||||
"minimize": "Minimize"
|
||||
},
|
||||
"pairing": {
|
||||
"discoveryDescription": "Devices on your network running Plezy with the same Plex account will appear automatically",
|
||||
"discoveryDescription": "Plezy devices with the same Plex account appear here",
|
||||
"hostAddressHint": "192.168.1.100:48632",
|
||||
"connecting": "Connecting...",
|
||||
"searchingForDevices": "Looking for devices...",
|
||||
"noDevicesFound": "No devices found on your network",
|
||||
"noDevicesHint": "Make sure Plezy is open on your desktop and both devices are on the same WiFi network",
|
||||
"noDevicesHint": "Open Plezy on desktop and use the same WiFi",
|
||||
"availableDevices": "Available Devices",
|
||||
"manualConnection": "Manual Connection",
|
||||
"cryptoInitFailed": "Could not initialize secure connection. Make sure you are signed in to a Plex account.",
|
||||
"cryptoInitFailed": "Couldn't start secure connection. Sign in to Plex first.",
|
||||
"validationHostRequired": "Please enter host address",
|
||||
"validationHostFormat": "Format must be IP:port (e.g., 192.168.1.100:48632)",
|
||||
"connectionTimedOut": "Connection timed out. Make sure both devices are on the same network.",
|
||||
"sessionNotFound": "Could not find the device. Make sure Plezy is running on the host.",
|
||||
"authFailed": "Authentication failed. Make sure both devices are on the same Plex account.",
|
||||
"connectionTimedOut": "Connection timed out. Use the same network on both devices.",
|
||||
"sessionNotFound": "Device not found. Make sure Plezy is running on the host.",
|
||||
"authFailed": "Authentication failed. Both devices need the same Plex account.",
|
||||
"failedToConnect": "Failed to connect: ${error}"
|
||||
},
|
||||
"remote": {
|
||||
@@ -915,7 +1059,7 @@
|
||||
"externalPlayer": {
|
||||
"title": "External Player",
|
||||
"useExternalPlayer": "Use External Player",
|
||||
"useExternalPlayerDescription": "Open videos in an external app instead of the built-in player",
|
||||
"useExternalPlayerDescription": "Open videos in another app",
|
||||
"selectPlayer": "Select Player",
|
||||
"customPlayers": "Custom Players",
|
||||
"systemDefault": "System Default",
|
||||
@@ -1009,7 +1153,7 @@
|
||||
"match": "Match...",
|
||||
"fixMatch": "Fix Match...",
|
||||
"unmatch": "Unmatch",
|
||||
"unmatchConfirm": "Clear the current match for this item? Plex will treat it as unmatched until you match it again.",
|
||||
"unmatchConfirm": "Clear this match? Plex treats it as unmatched until rematched.",
|
||||
"unmatchSuccess": "Item unmatched",
|
||||
"unmatchFailed": "Failed to unmatch item",
|
||||
"matchApplied": "Match applied",
|
||||
@@ -1029,7 +1173,7 @@
|
||||
"connected": "Connected",
|
||||
"connectedAs": "Connected as @${username}",
|
||||
"disconnectConfirm": "Disconnect Trakt account?",
|
||||
"disconnectConfirmBody": "Plezy will stop sending playback events to Trakt. You can reconnect at any time.",
|
||||
"disconnectConfirmBody": "Plezy will stop sending events to Trakt. You can reconnect any time.",
|
||||
"scrobble": "Real-time scrobbling",
|
||||
"scrobbleDescription": "Send play, pause, and stop events to Trakt during playback.",
|
||||
"watchedSync": "Sync watched status",
|
||||
@@ -1037,13 +1181,13 @@
|
||||
},
|
||||
"trackers": {
|
||||
"title": "Trackers",
|
||||
"hubSubtitle": "Keep your watch progress in sync with Trakt and other services.",
|
||||
"hubSubtitle": "Sync watch progress with Trakt and other services.",
|
||||
"notConnected": "Not connected",
|
||||
"connectedAs": "Connected as @${username}",
|
||||
"scrobble": "Track progress automatically",
|
||||
"scrobbleDescription": "Update your list when you finish an episode or movie.",
|
||||
"disconnectConfirm": "Disconnect ${service}?",
|
||||
"disconnectConfirmBody": "Plezy will stop updating your ${service} list. You can reconnect at any time.",
|
||||
"disconnectConfirmBody": "Plezy will stop updating ${service}. Reconnect any time.",
|
||||
"connectFailed": "Couldn't connect to ${service}. Try again.",
|
||||
"services": {
|
||||
"mal": "MyAnimeList",
|
||||
@@ -1059,7 +1203,7 @@
|
||||
},
|
||||
"oauthProxy": {
|
||||
"title": "Sign in to ${service}",
|
||||
"body": "Scan this QR code with your phone, or open the URL below on any device with a browser.",
|
||||
"body": "Scan this QR code or open the URL on any device.",
|
||||
"openToSignIn": "Open ${service} to sign in",
|
||||
"urlCopied": "URL copied"
|
||||
},
|
||||
@@ -1077,5 +1221,39 @@
|
||||
"libraries": "Libraries",
|
||||
"noLibraries": "No libraries available"
|
||||
}
|
||||
},
|
||||
"addServer": {
|
||||
"addJellyfinTitle": "Add Jellyfin server",
|
||||
"jellyfinUrlIntro": "Enter the server URL, e.g. `https://jellyfin.example.com`.",
|
||||
"serverUrl": "Server URL",
|
||||
"findServer": "Find server",
|
||||
"username": "Username",
|
||||
"password": "Password",
|
||||
"signIn": "Sign in",
|
||||
"change": "Change",
|
||||
"required": "Required",
|
||||
"couldNotReachServer": "Could not reach the server: ${error}",
|
||||
"signInFailed": "Sign-in failed: ${error}",
|
||||
"quickConnectFailed": "Quick Connect failed: ${error}",
|
||||
"addPlexTitle": "Sign in with Plex",
|
||||
"plexAuthIntro": "Sign in with a browser or QR code.",
|
||||
"plexQRPrompt": "Scan this QR code to sign in.",
|
||||
"waitingForPlexConfirmation": "Waiting for plex.tv to confirm your sign-in…",
|
||||
"pinExpired": "PIN expired before sign-in. Please try again.",
|
||||
"duplicatePlexAccount": "Already signed in to Plex. Sign out to switch accounts.",
|
||||
"failedToRegisterAccount": "Failed to register account: ${error}",
|
||||
"enterJellyfinUrlError": "Enter your Jellyfin server URL",
|
||||
"addConnectionTitle": "Add connection",
|
||||
"addConnectionTitleScoped": "Add to ${name}",
|
||||
"addConnectionIntroGlobal": "Add another media server. Plex and Jellyfin appear together on Home.",
|
||||
"addConnectionIntroScoped": "Add a new server, or borrow one from another profile.",
|
||||
"signInWithPlexCard": "Sign in with Plex",
|
||||
"signInWithPlexCardSubtitle": "Authorize this device. Shared servers are added.",
|
||||
"signInWithPlexCardSubtitleScoped": "Authorize a Plex account. Home users become profiles.",
|
||||
"connectToJellyfinCard": "Connect to Jellyfin",
|
||||
"connectToJellyfinCardSubtitle": "Enter your server URL, username, and password.",
|
||||
"connectToJellyfinCardSubtitleScoped": "Sign in to a Jellyfin server. Binds to ${name}.",
|
||||
"borrowFromAnotherProfile": "Borrow from another profile",
|
||||
"borrowFromAnotherProfileSubtitle": "Reuse another profile's connection. PIN-protected profiles require a PIN."
|
||||
}
|
||||
}
|
||||
|
||||
+245
-67
@@ -3,13 +3,22 @@
|
||||
"title": "Plezy"
|
||||
},
|
||||
"auth": {
|
||||
"signIn": "Iniciar sesión",
|
||||
"signInWithPlex": "Inicia sesión con Plex",
|
||||
"showQRCode": "Mostrar código QR",
|
||||
"authenticate": "Autenticar",
|
||||
"authenticationTimeout": "Tiempo de autenticación agotado. Por favor, intenta de nuevo.",
|
||||
"scanQRToSignIn": "Escanea este código QR para iniciar sesión",
|
||||
"waitingForAuth": "Esperando autenticación...\nPor favor completa el inicio de sesión en tu navegador.",
|
||||
"useBrowser": "Usar navegador"
|
||||
"waitingForAuth": "Esperando autenticación...\nInicia sesión desde tu navegador.",
|
||||
"useBrowser": "Usar navegador",
|
||||
"or": "o",
|
||||
"connectToJellyfin": "Conectar a Jellyfin",
|
||||
"useQuickConnect": "Usar Quick Connect",
|
||||
"quickConnectCode": "Código de Quick Connect",
|
||||
"quickConnectInstructions": "Abre Quick Connect en Jellyfin e introduce este código.",
|
||||
"quickConnectWaiting": "Esperando aprobación…",
|
||||
"quickConnectCancel": "Cancelar",
|
||||
"quickConnectExpired": "Quick Connect caducó. Inténtalo de nuevo."
|
||||
},
|
||||
"common": {
|
||||
"cancel": "Cancelar",
|
||||
@@ -43,9 +52,6 @@
|
||||
"mute": "Silencio",
|
||||
"ok": "OK",
|
||||
"reconnect": "Reconectar",
|
||||
"exitConfirmTitle": "¿Salir de la app?",
|
||||
"exitConfirmMessage": "¿Estás seguro de que quieres salir?",
|
||||
"dontAskAgain": "No volver a preguntar",
|
||||
"exit": "Salir",
|
||||
"viewAll": "Ver todo",
|
||||
"checkingNetwork": "Comprobando red...",
|
||||
@@ -55,7 +61,8 @@
|
||||
"startingOfflineMode": "Iniciando modo sin conexión...",
|
||||
"loading": "Cargando...",
|
||||
"fullscreen": "Pantalla completa",
|
||||
"exitFullscreen": "Salir de pantalla completa"
|
||||
"exitFullscreen": "Salir de pantalla completa",
|
||||
"pressBackAgainToExit": "Presiona atrás otra vez para salir"
|
||||
},
|
||||
"screens": {
|
||||
"licenses": "Licencias",
|
||||
@@ -104,22 +111,22 @@
|
||||
"gridView": "Cuadrícula",
|
||||
"listView": "Lista",
|
||||
"showHeroSection": "Mostrar Sección Destacada",
|
||||
"useGlobalHubs": "Usar Diseño de Inicio de Plex",
|
||||
"useGlobalHubsDescription": "Mostrar los hubs de la página de inicio como el cliente oficial de Plex. Cuando está desactivado, muestra recomendaciones por biblioteca en su lugar.",
|
||||
"useGlobalHubs": "Usar diseño de inicio",
|
||||
"useGlobalHubsDescription": "Mostrar hubs de inicio unificados. Si no, usar recomendaciones de biblioteca.",
|
||||
"showServerNameOnHubs": "Mostrar Nombre del Servidor en los Hubs",
|
||||
"showServerNameOnHubsDescription": "Mostrar siempre el nombre del servidor en los títulos de los hubs. Cuando está desactivado, solo se muestra para nombres de hubs duplicados.",
|
||||
"showServerNameOnHubsDescription": "Mostrar siempre nombres de servidor en títulos de hub.",
|
||||
"groupLibrariesByServer": "Agrupar bibliotecas por servidor",
|
||||
"groupLibrariesByServerDescription": "Muestra un encabezado para cada servidor Plex en la barra lateral cuando estás conectado a varios servidores.",
|
||||
"groupLibrariesByServerDescription": "Agrupar bibliotecas de la barra lateral por servidor multimedia.",
|
||||
"alwaysKeepSidebarOpen": "Mantener siempre la barra lateral abierta",
|
||||
"alwaysKeepSidebarOpenDescription": "La barra lateral permanece expandida y el área de contenido se ajusta para adaptarse",
|
||||
"showUnwatchedCount": "Mostrar conteo de no vistos",
|
||||
"showUnwatchedCountDescription": "Mostrar el conteo de episodios no vistos en series y temporadas",
|
||||
"showEpisodeNumberOnCards": "Mostrar número de episodio en las tarjetas",
|
||||
"showEpisodeNumberOnCardsDescription": "Muestra el número de episodio junto a la temporada (p. ej. S2 E3) en las tarjetas de episodios",
|
||||
"showEpisodeNumberOnCardsDescription": "Mostrar temporada y episodio en tarjetas de episodio",
|
||||
"showSeasonPostersOnTabs": "Mostrar pósters de temporada en las pestañas",
|
||||
"showSeasonPostersOnTabsDescription": "Muestra el póster de la temporada sobre cada pestaña de temporada en la página de detalles de una serie",
|
||||
"showSeasonPostersOnTabsDescription": "Mostrar el póster de cada temporada sobre su pestaña",
|
||||
"hideSpoilers": "Ocultar spoilers de episodios no vistos",
|
||||
"hideSpoilersDescription": "Difuminar miniaturas y ocultar descripciones de episodios que aún no has visto",
|
||||
"hideSpoilersDescription": "Desenfocar miniaturas y descripciones de episodios no vistos",
|
||||
"playerBackend": "Reproductor",
|
||||
"exoPlayer": "ExoPlayer (Recomendado)",
|
||||
"mpv": "mpv",
|
||||
@@ -128,7 +135,7 @@
|
||||
"bufferSize": "Tamaño del Buffer",
|
||||
"bufferSizeMB": "${size}MB",
|
||||
"bufferSizeAuto": "Auto (Recomendado)",
|
||||
"bufferSizeWarning": "Tu dispositivo tiene ${heap}MB de memoria. Un búfer de ${size}MB puede causar problemas de reproducción.",
|
||||
"bufferSizeWarning": "${heap}MB de memoria disponible. Un búfer de ${size}MB puede afectar la reproducción.",
|
||||
"defaultQualityTitle": "Calidad predeterminada",
|
||||
"defaultQualityDescription": "Se utiliza al iniciar la reproducción. Los valores más bajos reducen el ancho de banda.",
|
||||
"subtitleStyling": "Estilo de Subtítulos",
|
||||
@@ -140,16 +147,18 @@
|
||||
"defaultSleepTimer": "Temporizador de apagado",
|
||||
"minutesUnit": "${minutes} minutos",
|
||||
"rememberTrackSelections": "Recordar selección de pistas por serie/película",
|
||||
"rememberTrackSelectionsDescription": "Guardar automáticamente las preferencias de idioma de audio y subtítulos al cambiarlas durante la reproducción",
|
||||
"rememberTrackSelectionsDescription": "Recordar opciones de audio y subtítulos por título",
|
||||
"showChapterMarkersOnTimeline": "Mostrar marcadores de capítulos en la barra de progreso",
|
||||
"showChapterMarkersOnTimelineDescription": "Dividir la barra de progreso en los límites de capítulos",
|
||||
"clickVideoTogglesPlayback": "Clic en el video para reproducir/pausar",
|
||||
"clickVideoTogglesPlaybackDescription": "Si está habilitado, hacer clic en el reproductor de video reproducirá/pausará el video. De lo contrario, mostrará/ocultará los controles.",
|
||||
"clickVideoTogglesPlaybackDescription": "Haz clic en el video para reproducir/pausar en vez de mostrar controles.",
|
||||
"videoPlayerControls": "Controles del Reproductor de Video",
|
||||
"keyboardShortcuts": "Atajos de Teclado",
|
||||
"keyboardShortcutsDescription": "Personalizar los atajos de teclado",
|
||||
"videoPlayerNavigation": "Navegación del Reproductor de Video",
|
||||
"videoPlayerNavigationDescription": "Usar las teclas de flecha para navegar por los controles del reproductor",
|
||||
"watchTogetherRelay": "Relay de Ver Juntos",
|
||||
"watchTogetherRelayDescription": "Configurar un servidor relay personalizado para Ver Juntos. Todos los participantes deben usar el mismo servidor.",
|
||||
"watchTogetherRelayDescription": "Define un relay personalizado. Todos deben usar el mismo servidor.",
|
||||
"watchTogetherRelayHint": "https://mi-relay.ejemplo.com",
|
||||
"crashReporting": "Informes de Errores",
|
||||
"crashReportingDescription": "Enviar informes de errores para mejorar la aplicación",
|
||||
@@ -158,10 +167,10 @@
|
||||
"viewLogs": "Ver Logs",
|
||||
"viewLogsDescription": "Ver los registros de la aplicación",
|
||||
"clearCache": "Borrar Caché",
|
||||
"clearCacheDescription": "Esto borrará todas las imágenes y datos en caché. La aplicación puede tardar más en cargar contenido después de borrar la caché.",
|
||||
"clearCacheDescription": "Borrar imágenes y datos en caché. El contenido puede cargar más lento.",
|
||||
"clearCacheSuccess": "Caché borrada con éxito",
|
||||
"resetSettings": "Restablecer Configuración",
|
||||
"resetSettingsDescription": "Esto restablecerá todos los ajustes a sus valores predeterminados. Esta acción no se puede deshacer.",
|
||||
"resetSettingsDescription": "Restaurar ajustes predeterminados. No se puede deshacer.",
|
||||
"resetSettingsSuccess": "Configuración restablecida con éxito",
|
||||
"backup": "Copia de seguridad",
|
||||
"exportSettings": "Exportar Configuración",
|
||||
@@ -182,7 +191,7 @@
|
||||
"updateAvailable": "Actualización disponible",
|
||||
"checkForUpdates": "Buscar actualizaciones",
|
||||
"autoCheckUpdatesOnStartup": "Buscar actualizaciones automáticamente al iniciar",
|
||||
"autoCheckUpdatesOnStartupDescription": "Mostrar una notificación cuando haya una nueva versión disponible al iniciar",
|
||||
"autoCheckUpdatesOnStartupDescription": "Avisar al iniciar si hay una actualización disponible",
|
||||
"validationErrorEnterNumber": "Por favor, introduce un número válido",
|
||||
"validationErrorDuration": "La duración debe estar entre ${min} y ${max} ${unit}",
|
||||
"shortcutAlreadyAssigned": "El atajo ya está asignado a ${action}",
|
||||
@@ -192,6 +201,8 @@
|
||||
"autoSkipIntroDescription": "Saltar automáticamente los marcadores de intro después de unos segundos",
|
||||
"autoSkipCredits": "Saltar Créditos automáticamente",
|
||||
"autoSkipCreditsDescription": "Saltar automáticamente los créditos y reproducir el siguiente episodio",
|
||||
"forceSkipMarkerFallback": "Forzar marcadores alternativos",
|
||||
"forceSkipMarkerFallbackDescription": "Usar patrones de títulos de capítulos aunque Plex tenga marcadores",
|
||||
"autoSkipDelay": "Retraso de Salto automático",
|
||||
"autoSkipDelayDescription": "Esperar ${seconds} segundos antes de saltar automáticamente",
|
||||
"introPattern": "Patrón de marcador de intro",
|
||||
@@ -213,8 +224,8 @@
|
||||
"downloadOnWifiOnly": "Descargar solo con WiFi",
|
||||
"downloadOnWifiOnlyDescription": "Evitar descargas cuando se usan datos móviles",
|
||||
"autoRemoveWatchedDownloads": "Eliminar descargas vistas automáticamente",
|
||||
"autoRemoveWatchedDownloadsDescription": "Eliminar automáticamente episodios y películas descargados cuando se marquen como vistos",
|
||||
"cellularDownloadBlocked": "Las descargas están desactivadas en datos móviles. Conéctate a una red WiFi o cambia la configuración.",
|
||||
"autoRemoveWatchedDownloadsDescription": "Eliminar automáticamente descargas vistas",
|
||||
"cellularDownloadBlocked": "Las descargas están bloqueadas en red móvil. Usa WiFi o cambia el ajuste.",
|
||||
"maxVolume": "Volumen Máximo",
|
||||
"maxVolumeDescription": "Permitir aumento de volumen por encima del 100% para medios con sonido bajo",
|
||||
"maxVolumePercent": "${percent}%",
|
||||
@@ -227,22 +238,20 @@
|
||||
"companionRemoteServer": "Servidor de control remoto",
|
||||
"companionRemoteServerDescription": "Permitir que dispositivos móviles en tu red controlen esta aplicación",
|
||||
"autoPip": "Imagen en imagen automática",
|
||||
"autoPipDescription": "Activar automáticamente imagen en imagen al salir de la app durante la reproducción",
|
||||
"autoPipDescription": "Entrar en picture-in-picture al salir 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",
|
||||
"matchContentFrameRateDescription": "Ajustar la frecuencia de pantalla al contenido de video",
|
||||
"matchRefreshRate": "Ajustar frecuencia de refresco",
|
||||
"matchRefreshRateDescription": "Cambiar la frecuencia de refresco de la pantalla para coincidir con el contenido de video en pantalla completa",
|
||||
"matchRefreshRateDescription": "Ajustar la frecuencia de pantalla en pantalla completa",
|
||||
"matchDynamicRange": "Ajustar rango dinámico",
|
||||
"matchDynamicRangeDescription": "Activar HDR automáticamente para contenido HDR y volver a SDR al salir del reproductor",
|
||||
"matchDynamicRangeDescription": "Activar HDR para contenido HDR y luego volver a SDR",
|
||||
"displaySwitchDelay": "Retraso de cambio de pantalla",
|
||||
"tunneledPlayback": "Reproducción tunelizada",
|
||||
"tunneledPlaybackDescription": "Usar tunelización de video acelerada por hardware. Desactivar si ves una pantalla negra con audio en contenido HDR",
|
||||
"tunneledPlaybackDescription": "Usar tunelización de video. Desactívala si HDR muestra video negro.",
|
||||
"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",
|
||||
"confirmExitOnBackDescription": "Mostrar un diálogo de confirmación al presionar atrás para salir de la app",
|
||||
"forceTvMode": "Forzar modo TV",
|
||||
"forceTvModeDescription": "Usar el diseño de TV independientemente de la detección automática. Útil en dispositivos Android TV que no informan la característica leanback. Reinicia la app al cambiar.",
|
||||
"forceTvModeDescription": "Forzar diseño TV. Para dispositivos que no lo detectan. Requiere reinicio.",
|
||||
"startInFullscreen": "Iniciar en pantalla completa",
|
||||
"startInFullscreenDescription": "Abrir Plezy en modo pantalla completa al iniciar",
|
||||
"autoHidePerformanceOverlay": "Ocultar superposición de rendimiento automáticamente",
|
||||
@@ -251,15 +260,15 @@
|
||||
"showNavBarLabelsDescription": "Mostrar etiquetas de texto bajo los iconos de la barra de navegación",
|
||||
"liveTvDefaultFavorites": "Canales favoritos por defecto",
|
||||
"liveTvDefaultFavoritesDescription": "Mostrar solo canales favoritos al abrir TV en vivo",
|
||||
"display": "Display",
|
||||
"homeScreen": "Home Screen",
|
||||
"navigation": "Navigation",
|
||||
"window": "Window",
|
||||
"content": "Content",
|
||||
"player": "Player",
|
||||
"subtitlesAndConfig": "Subtitles & Configuration",
|
||||
"seekAndTiming": "Seek & Timing",
|
||||
"behavior": "Behavior"
|
||||
"display": "Pantalla",
|
||||
"homeScreen": "Pantalla de inicio",
|
||||
"navigation": "Navegación",
|
||||
"window": "Ventana",
|
||||
"content": "Contenido",
|
||||
"player": "Reproductor",
|
||||
"subtitlesAndConfig": "Subtítulos y configuración",
|
||||
"seekAndTiming": "Búsqueda y tiempo",
|
||||
"behavior": "Comportamiento"
|
||||
},
|
||||
"search": {
|
||||
"hint": "Buscar películas, series, música...",
|
||||
@@ -330,7 +339,7 @@
|
||||
"shufflePlay": "Reproducción Aleatoria",
|
||||
"fileInfo": "Información del Archivo",
|
||||
"deleteFromServer": "Eliminar del servidor",
|
||||
"confirmDelete": "Esto eliminará permanentemente este contenido y sus archivos de tu servidor. Esta acción no se puede deshacer.",
|
||||
"confirmDelete": "¿Eliminar este medio y sus archivos de tu servidor?",
|
||||
"deleteMultipleWarning": "Esto incluye todos los episodios y sus archivos.",
|
||||
"mediaDeletedSuccessfully": "Elemento multimedia eliminado con éxito",
|
||||
"mediaFailedToDelete": "Error al eliminar el elemento multimedia",
|
||||
@@ -414,7 +423,7 @@
|
||||
"pipErrors": {
|
||||
"androidVersion": "Requiere Android 8.0 o más reciente",
|
||||
"iosVersion": "Requiere iOS 15.0 o más reciente",
|
||||
"permissionDisabled": "El permiso de Imagen en Imagen está desactivado. Actívalo en Ajustes > Aplicaciones > Plezy > Imagen en Imagen",
|
||||
"permissionDisabled": "Picture-in-picture está desactivado. Actívalo en los ajustes del sistema.",
|
||||
"notSupported": "El dispositivo no soporta el modo Imagen en Imagen",
|
||||
"voSwitchFailed": "Error al cambiar la salida de video para Imagen en Imagen",
|
||||
"failed": "Error al iniciar Imagen en Imagen",
|
||||
@@ -452,7 +461,7 @@
|
||||
"musicNotSupported": "La reproducción de música aún no está soportada",
|
||||
"noDescriptionAvailable": "No hay descripción disponible",
|
||||
"noProfilesAvailable": "No hay perfiles disponibles",
|
||||
"contactAdminForProfiles": "Contacta con tu administrador de Plex para añadir perfiles",
|
||||
"contactAdminForProfiles": "Contacta a tu administrador del servidor para añadir perfiles",
|
||||
"unableToDetermineLibrarySection": "No se puede determinar la sección de biblioteca para este elemento",
|
||||
"logsCleared": "Logs borrados",
|
||||
"logsCopied": "Logs copiados al portapapeles",
|
||||
@@ -474,7 +483,7 @@
|
||||
"failedPlayback": "Error al ${action}: ${error}",
|
||||
"switchingToCompatiblePlayer": "Cambiando a reproductor compatible...",
|
||||
"serverLimitTitle": "Error de reproducción",
|
||||
"serverLimitBody": "El servidor devolvió un error (HTTP 500). Normalmente esto significa que el propietario del servidor ha establecido un límite de ancho de banda o transcodificación que está rechazando tu sesión. No hay nada que puedas hacer desde el cliente — el propietario del servidor debe ajustar su configuración.",
|
||||
"serverLimitBody": "Error del servidor (HTTP 500). Un límite de ancho de banda/transcodificación probablemente rechazó esta sesión. Pide al propietario que lo ajuste.",
|
||||
"logsUploaded": "Registros subidos",
|
||||
"logsUploadFailed": "Error al subir registros",
|
||||
"logId": "ID de registro"
|
||||
@@ -513,12 +522,85 @@
|
||||
"dialog": {
|
||||
"confirmAction": "Confirmar Acción"
|
||||
},
|
||||
"profiles": {
|
||||
"addPlezyProfile": "Añadir perfil de Plezy",
|
||||
"switchingProfile": "Cambiando de perfil…",
|
||||
"deleteThisProfileTitle": "¿Eliminar este perfil?",
|
||||
"deleteThisProfileMessage": "Eliminar ${displayName}. Las conexiones no se verán afectadas.",
|
||||
"active": "Activo",
|
||||
"manage": "Administrar",
|
||||
"delete": "Eliminar",
|
||||
"signOut": "Cerrar sesión",
|
||||
"signOutPlexTitle": "¿Cerrar sesión de Plex?",
|
||||
"signOutPlexMessage": "¿Eliminar ${displayName} y todos los usuarios de Plex Home? Puedes iniciar sesión de nuevo cuando quieras.",
|
||||
"signedOutPlex": "Sesión de Plex cerrada.",
|
||||
"signOutFailed": "Error al cerrar sesión.",
|
||||
"sectionTitle": "Perfiles",
|
||||
"summarySingle": "Añade perfiles para mezclar usuarios gestionados e identidades locales",
|
||||
"summaryMultipleWithActive": "${count} perfiles · activo: ${activeName}",
|
||||
"summaryMultiple": "${count} perfiles",
|
||||
"removeConnectionTitle": "¿Eliminar conexión?",
|
||||
"removeConnectionMessage": "Eliminar el acceso de ${displayName} a ${connectionLabel}. Los demás perfiles lo conservan.",
|
||||
"deleteProfileTitle": "¿Eliminar perfil?",
|
||||
"deleteProfileMessage": "Eliminar ${displayName} y sus conexiones. Los servidores seguirán disponibles.",
|
||||
"profileNameLabel": "Nombre del perfil",
|
||||
"pinProtectionLabel": "Protección con PIN",
|
||||
"pinManagedByPlex": "PIN gestionado por Plex. Edita en plex.tv.",
|
||||
"noPinSetEditOnPlex": "Sin PIN establecido. Para requerir uno, edita el usuario Home en plex.tv.",
|
||||
"setPin": "Establecer PIN",
|
||||
"setPinTitle": "Establecer PIN",
|
||||
"confirmPinTitle": "Confirmar PIN",
|
||||
"pinSet": "PIN establecido",
|
||||
"changePin": "Cambiar",
|
||||
"removePin": "Eliminar",
|
||||
"connectionsLabel": "Conexiones",
|
||||
"add": "Añadir",
|
||||
"deleteProfileButton": "Eliminar perfil",
|
||||
"noConnectionsHint": "Sin conexiones — añade una para usar este perfil.",
|
||||
"noConnections": "Sin conexiones",
|
||||
"plexHomeAccount": "Cuenta Plex Home",
|
||||
"connectionDefault": "Predeterminada",
|
||||
"connectionAs": "como ${displayName}",
|
||||
"makeDefault": "Establecer como predeterminada",
|
||||
"removeConnection": "Eliminar",
|
||||
"profileRenamed": "Perfil renombrado.",
|
||||
"borrowAddTo": "Añadir a ${displayName}",
|
||||
"borrowExplain": "Toma prestada la conexión de otro perfil. Los perfiles protegidos con PIN requieren un PIN.",
|
||||
"borrowEmpty": "Nada para tomar prestado todavía.",
|
||||
"borrowEmptySubtitle": "Conecta Plex o Jellyfin primero a otro perfil.",
|
||||
"borrowFromProfile": "De ${displayName}",
|
||||
"borrowConnectionBorrowed": "Conexión tomada prestada.",
|
||||
"borrowFailed": "No se pudo tomar prestada la conexión.",
|
||||
"incorrectPin": "PIN incorrecto.",
|
||||
"sourceProfileMissingParentAccount": "Al perfil de origen le falta su cuenta principal.",
|
||||
"failedToVerifyPin": "No se pudo verificar el PIN.",
|
||||
"newProfile": "Nuevo perfil",
|
||||
"profileNameHint": "p. ej. Invitados, Niños, Sala familiar",
|
||||
"pinProtectionOptional": "Protección con PIN (opcional)",
|
||||
"pinExplain": "Se requiere PIN de 4 dígitos para cambiar de perfil.",
|
||||
"continueButton": "Continuar",
|
||||
"pinsDontMatch": "Los PIN no coinciden"
|
||||
},
|
||||
"connections": {
|
||||
"sectionTitle": "Conexiones",
|
||||
"addConnection": "Añadir conexión",
|
||||
"addConnectionSubtitleNoProfile": "Inicia sesión con Plex o conecta un servidor de Jellyfin",
|
||||
"addConnectionSubtitleScoped": "Añadir a ${displayName}: Plex, Jellyfin u otra conexión de perfil",
|
||||
"sessionExpiredOne": "Sesión caducada para ${name}",
|
||||
"sessionExpiredMany": "Sesión caducada para ${count} servidores",
|
||||
"signInAgain": "Iniciar sesión de nuevo"
|
||||
},
|
||||
"discover": {
|
||||
"title": "Descubrir",
|
||||
"switchProfile": "Cambiar Perfil",
|
||||
"noContentAvailable": "No hay contenido disponible",
|
||||
"addMediaToLibraries": "Añade contenido a tus bibliotecas",
|
||||
"continueWatching": "Seguir Viendo",
|
||||
"continueWatchingIn": "Seguir viendo en ${library}",
|
||||
"nextUp": "A continuación",
|
||||
"nextUpIn": "A continuación en ${library}",
|
||||
"recentlyAdded": "Añadido recientemente",
|
||||
"recentlyAddedIn": "Añadido recientemente en ${library}",
|
||||
"playEpisode": "T${season}E${episode}",
|
||||
"overview": "Resumen",
|
||||
"cast": "Reparto",
|
||||
@@ -532,7 +614,7 @@
|
||||
"errors": {
|
||||
"searchFailed": "Error en la búsqueda: ${error}",
|
||||
"connectionTimeout": "Tiempo de conexión agotado al cargar ${context}",
|
||||
"connectionFailed": "No se pudo conectar con el servidor Plex",
|
||||
"connectionFailed": "No se puede conectar al servidor multimedia",
|
||||
"failedToLoad": "Error al cargar ${context}: ${error}",
|
||||
"noClientAvailable": "No hay cliente disponible",
|
||||
"authenticationFailed": "Error de autenticación: ${error}",
|
||||
@@ -540,7 +622,9 @@
|
||||
"pleaseEnterToken": "Por favor, introduce un token",
|
||||
"invalidToken": "Token no válido",
|
||||
"failedToVerifyToken": "Error al verificar el token: ${error}",
|
||||
"failedToSwitchProfile": "Error al cambiar al perfil ${displayName}"
|
||||
"failedToSwitchProfile": "Error al cambiar al perfil ${displayName}",
|
||||
"failedToDeleteProfile": "Error al eliminar ${displayName}",
|
||||
"failedToRate": "No se pudo actualizar la calificación"
|
||||
},
|
||||
"libraries": {
|
||||
"title": "Bibliotecas",
|
||||
@@ -595,17 +679,34 @@
|
||||
"seasons": "Temporadas",
|
||||
"episodes": "Episodios",
|
||||
"folders": "Carpetas"
|
||||
},
|
||||
"filterCategories": {
|
||||
"genre": "Género",
|
||||
"year": "Año",
|
||||
"contentRating": "Clasificación",
|
||||
"tag": "Etiqueta"
|
||||
},
|
||||
"sortLabels": {
|
||||
"title": "Título",
|
||||
"dateAdded": "Fecha de adición",
|
||||
"releaseDate": "Fecha de estreno",
|
||||
"rating": "Valoración",
|
||||
"lastPlayed": "Última reproducción",
|
||||
"playCount": "Reproducciones",
|
||||
"random": "Aleatorio",
|
||||
"dateShared": "Fecha de compartición",
|
||||
"latestEpisodeAirDate": "Última fecha de emisión del episodio"
|
||||
}
|
||||
},
|
||||
"about": {
|
||||
"title": "Acerca de",
|
||||
"openSourceLicenses": "Licencias de Código Abierto",
|
||||
"versionLabel": "Versión ${version}",
|
||||
"appDescription": "Un cliente de Plex para Flutter",
|
||||
"appDescription": "Un cliente de Plex y Jellyfin para Flutter",
|
||||
"viewLicensesDescription": "Ver licencias de librerías de terceros"
|
||||
},
|
||||
"serverSelection": {
|
||||
"allServerConnectionsFailed": "No se pudo conectar con ningún servidor. Por favor, comprueba tu conexión e inténtalo de nuevo.",
|
||||
"allServerConnectionsFailed": "No se pudo conectar a ningún servidor. Revisa tu red.",
|
||||
"noServersFoundForAccount": "No se encontraron servidores para ${username} (${email})",
|
||||
"failedToLoadServers": "Error al cargar servidores: ${error}"
|
||||
},
|
||||
@@ -642,6 +743,7 @@
|
||||
"reloadGuide": "Recargar guía",
|
||||
"now": "Ahora",
|
||||
"today": "Hoy",
|
||||
"tomorrow": "Mañana",
|
||||
"midnight": "Medianoche",
|
||||
"overnight": "Madrugada",
|
||||
"morning": "Mañana",
|
||||
@@ -655,7 +757,41 @@
|
||||
"joinSession": "Unirse a sesión en curso",
|
||||
"watchFromStart": "Ver desde el inicio (hace ${minutes} min)",
|
||||
"watchLive": "Ver en vivo",
|
||||
"goToLive": "Ir a en vivo"
|
||||
"goToLive": "Ir a en vivo",
|
||||
"record": "Grabar",
|
||||
"recordEpisode": "Grabar episodio",
|
||||
"recordSeries": "Grabar serie",
|
||||
"recordOptions": "Opciones de grabación",
|
||||
"recordings": "Grabaciones",
|
||||
"scheduledRecordings": "Programadas",
|
||||
"recordingRules": "Reglas de grabación",
|
||||
"noScheduledRecordings": "No hay grabaciones programadas",
|
||||
"noRecordingRules": "Aún no hay reglas de grabación",
|
||||
"manageRecording": "Gestionar grabación",
|
||||
"cancelRecording": "Cancelar grabación",
|
||||
"cancelRecordingTitle": "¿Cancelar esta grabación?",
|
||||
"cancelRecordingMessage": "${title} ya no se grabará.",
|
||||
"deleteRule": "Eliminar regla",
|
||||
"deleteRuleTitle": "¿Eliminar regla de grabación?",
|
||||
"deleteRuleMessage": "Los próximos episodios de ${title} no se grabarán.",
|
||||
"recordingScheduled": "Grabación programada",
|
||||
"alreadyScheduled": "Este programa ya está programado",
|
||||
"dvrAdminRequired": "La configuración DVR requiere una cuenta de administrador",
|
||||
"recordingFailed": "No se pudo programar la grabación",
|
||||
"recordingTargetMissing": "No se pudo determinar la biblioteca de grabación",
|
||||
"recordNotAvailable": "Grabación no disponible para este programa",
|
||||
"recordingCancelled": "Grabación cancelada",
|
||||
"recordingRuleDeleted": "Regla de grabación eliminada",
|
||||
"processRecordingRules": "Reevaluar reglas",
|
||||
"loadingRecordings": "Cargando grabaciones...",
|
||||
"recordingInProgress": "Grabando ahora",
|
||||
"recordingsCount": "${count} programadas",
|
||||
"editRule": "Editar regla",
|
||||
"editRuleAction": "Editar",
|
||||
"recordingRuleUpdated": "Regla de grabación actualizada",
|
||||
"guideReloadRequested": "Solicitada actualización de la guía",
|
||||
"rulesProcessRequested": "Solicitada reevaluación de reglas",
|
||||
"recordShow": "Grabar programa"
|
||||
},
|
||||
"collections": {
|
||||
"title": "Colecciones",
|
||||
@@ -663,7 +799,7 @@
|
||||
"empty": "La colección está vacía",
|
||||
"unknownLibrarySection": "No se puede eliminar: Sección de biblioteca desconocida",
|
||||
"deleteCollection": "Eliminar Colección",
|
||||
"deleteConfirm": "¿Estás seguro de que quieres eliminar \"${title}\"? Esta acción no se puede deshacer.",
|
||||
"deleteConfirm": "¿Eliminar \"${title}\"? No se puede deshacer.",
|
||||
"deleted": "Colección eliminada",
|
||||
"deleteFailed": "Error al eliminar la colección",
|
||||
"deleteFailedWithError": "Error al eliminar la colección: ${error}",
|
||||
@@ -747,11 +883,11 @@
|
||||
"pasteFromClipboard": "Pegar desde el portapapeles",
|
||||
"pleaseEnterCode": "Por favor, introduce un código de sesión",
|
||||
"codeMustBe5Chars": "El código de sesión debe tener 5 caracteres",
|
||||
"joinInstructions": "Introduce el código de sesión compartido por el anfitrión para unirte a su sesión.",
|
||||
"joinInstructions": "Introduce el código de sesión del anfitrión para unirte.",
|
||||
"failedToCreate": "Error al crear la sesión",
|
||||
"failedToJoin": "Error al unirse a la sesión",
|
||||
"sessionCodeCopied": "Código de sesión copiado al portapapeles",
|
||||
"relayUnreachable": "El servidor de retransmisión no está disponible. Esto puede deberse a que tu proveedor de internet bloquea la conexión. Puedes intentarlo de todos modos, pero Watch Together podría no funcionar.",
|
||||
"relayUnreachable": "Servidor relay inaccesible. El bloqueo del ISP puede impedir Watch Together.",
|
||||
"reconnectingToHost": "Reconectando con el anfitrión...",
|
||||
"currentPlayback": "Reproducción actual",
|
||||
"joinCurrentPlayback": "Unirse a la reproducción actual",
|
||||
@@ -766,7 +902,9 @@
|
||||
"waitingForParticipants": "Esperando a que otros carguen...",
|
||||
"recentRooms": "Salas recientes",
|
||||
"renameRoom": "Renombrar sala",
|
||||
"removeRoom": "Eliminar"
|
||||
"removeRoom": "Eliminar",
|
||||
"guestSwitchUnavailable": "No se pudo cambiar — servidor no disponible para sincronización",
|
||||
"guestSwitchFailed": "No se pudo cambiar — contenido no encontrado en este servidor"
|
||||
},
|
||||
"downloads": {
|
||||
"title": "Descargas",
|
||||
@@ -779,10 +917,10 @@
|
||||
"deleteDownload": "Eliminar descarga",
|
||||
"retryDownload": "Reintentar descarga",
|
||||
"downloadQueued": "Descarga en cola",
|
||||
"serverErrorBitrate": "Error del servidor — el archivo puede exceder el límite de bitrate de transmisión remota",
|
||||
"serverErrorBitrate": "Error del servidor: el archivo puede superar el límite de bitrate remoto",
|
||||
"episodesQueued": "${count} episodios en cola para descargar",
|
||||
"downloadDeleted": "Descarga eliminada",
|
||||
"deleteConfirm": "¿Estás seguro de que quieres eliminar \"${title}\"? Esto borrará el archivo descargado de tu dispositivo.",
|
||||
"deleteConfirm": "¿Eliminar \"${title}\" de este dispositivo?",
|
||||
"deletingWithProgress": "Eliminando ${title}... (${current} de ${total})",
|
||||
"deleting": "Eliminando...",
|
||||
"queuedTooltip": "En cola",
|
||||
@@ -817,6 +955,12 @@
|
||||
"editSyncFilter": "Filtro de sincronización",
|
||||
"syncAllItems": "Sincronizando todos los elementos",
|
||||
"syncUnwatchedItems": "Sincronizando elementos no vistos",
|
||||
"syncRuleServerContext": "Servidor: ${server} • ${status}",
|
||||
"syncRuleAvailable": "Disponible",
|
||||
"syncRuleOffline": "Sin conexión",
|
||||
"syncRuleSignInRequired": "Se requiere iniciar sesión",
|
||||
"syncRuleNotAvailableForProfile": "No disponible para el perfil actual",
|
||||
"syncRuleUnknownServer": "Servidor desconocido",
|
||||
"syncRuleListCreated": "Regla de sincronización creada"
|
||||
},
|
||||
"shaders": {
|
||||
@@ -846,7 +990,7 @@
|
||||
"connected": "Conectado",
|
||||
"serverRunning": "Servidor remoto activo",
|
||||
"serverStopped": "Servidor remoto detenido",
|
||||
"serverRunningDescription": "Los dispositivos móviles en tu red pueden descubrir y conectarse a esta aplicación",
|
||||
"serverRunningDescription": "Los dispositivos móviles de tu red pueden conectarse a esta app",
|
||||
"serverStoppedDescription": "Inicia el servidor para permitir que los dispositivos móviles se conecten",
|
||||
"usePhoneToControl": "Usa tu dispositivo móvil para controlar esta aplicación",
|
||||
"startServer": "Iniciar servidor",
|
||||
@@ -854,20 +998,20 @@
|
||||
"minimize": "Minimizar"
|
||||
},
|
||||
"pairing": {
|
||||
"discoveryDescription": "Los dispositivos en tu red que ejecutan Plezy con la misma cuenta de Plex aparecerán automáticamente",
|
||||
"discoveryDescription": "Los dispositivos Plezy con la misma cuenta Plex aparecen aquí",
|
||||
"hostAddressHint": "192.168.1.100:48632",
|
||||
"connecting": "Conectando...",
|
||||
"searchingForDevices": "Buscando dispositivos...",
|
||||
"noDevicesFound": "No se encontraron dispositivos en tu red",
|
||||
"noDevicesHint": "Asegúrate de que Plezy esté abierto en tu escritorio y que ambos dispositivos estén en la misma red WiFi",
|
||||
"noDevicesHint": "Abre Plezy en escritorio y usa el mismo WiFi",
|
||||
"availableDevices": "Dispositivos disponibles",
|
||||
"manualConnection": "Conexión manual",
|
||||
"cryptoInitFailed": "No se pudo inicializar la conexión segura. Asegúrate de haber iniciado sesión en una cuenta de Plex.",
|
||||
"cryptoInitFailed": "No se pudo iniciar la conexión segura. Inicia sesión en Plex primero.",
|
||||
"validationHostRequired": "Ingresa la dirección del host",
|
||||
"validationHostFormat": "El formato debe ser IP:puerto (ej. 192.168.1.100:48632)",
|
||||
"connectionTimedOut": "Tiempo de conexión agotado. Asegúrate de que ambos dispositivos estén en la misma red.",
|
||||
"sessionNotFound": "No se encontró el dispositivo. Asegúrate de que Plezy esté ejecutándose en el host.",
|
||||
"authFailed": "Autenticación fallida. Asegúrate de que ambos dispositivos usen la misma cuenta de Plex.",
|
||||
"connectionTimedOut": "Tiempo de conexión agotado. Usa la misma red en ambos dispositivos.",
|
||||
"sessionNotFound": "Dispositivo no encontrado. Asegúrate de que Plezy esté en ejecución en el host.",
|
||||
"authFailed": "Autenticación fallida. Ambos dispositivos necesitan la misma cuenta Plex.",
|
||||
"failedToConnect": "Error al conectar: ${error}"
|
||||
},
|
||||
"remote": {
|
||||
@@ -915,7 +1059,7 @@
|
||||
"externalPlayer": {
|
||||
"title": "Reproductor externo",
|
||||
"useExternalPlayer": "Usar reproductor externo",
|
||||
"useExternalPlayerDescription": "Abrir vídeos en una app externa en lugar del reproductor integrado",
|
||||
"useExternalPlayerDescription": "Abrir videos en otra app",
|
||||
"selectPlayer": "Seleccionar reproductor",
|
||||
"customPlayers": "Reproductores personalizados",
|
||||
"systemDefault": "Predeterminado del sistema",
|
||||
@@ -1009,7 +1153,7 @@
|
||||
"match": "Emparejar...",
|
||||
"fixMatch": "Corregir coincidencia...",
|
||||
"unmatch": "Desvincular",
|
||||
"unmatchConfirm": "¿Quitar la coincidencia actual de este elemento? Plex lo tratará como sin coincidencia hasta que vuelvas a emparejarlo.",
|
||||
"unmatchConfirm": "¿Borrar esta coincidencia? Plex lo tratará como no coincidente hasta reasignarlo.",
|
||||
"unmatchSuccess": "Elemento desvinculado",
|
||||
"unmatchFailed": "No se pudo desvincular el elemento",
|
||||
"matchApplied": "Coincidencia aplicada",
|
||||
@@ -1029,7 +1173,7 @@
|
||||
"connected": "Conectado",
|
||||
"connectedAs": "Conectado como @${username}",
|
||||
"disconnectConfirm": "¿Desconectar cuenta de Trakt?",
|
||||
"disconnectConfirmBody": "Plezy dejará de enviar eventos de reproducción a Trakt. Puedes volver a conectar cuando quieras.",
|
||||
"disconnectConfirmBody": "Plezy dejará de enviar eventos a Trakt. Puedes reconectar cuando quieras.",
|
||||
"scrobble": "Scrobbling en tiempo real",
|
||||
"scrobbleDescription": "Enviar eventos de reproducción, pausa y parada a Trakt durante la reproducción.",
|
||||
"watchedSync": "Sincronizar estado de visto",
|
||||
@@ -1037,13 +1181,13 @@
|
||||
},
|
||||
"trackers": {
|
||||
"title": "Rastreadores",
|
||||
"hubSubtitle": "Mantén sincronizado tu progreso con Trakt y otros servicios.",
|
||||
"hubSubtitle": "Sincroniza el progreso de visualización con Trakt y otros servicios.",
|
||||
"notConnected": "No conectado",
|
||||
"connectedAs": "Conectado como @${username}",
|
||||
"scrobble": "Registrar progreso automáticamente",
|
||||
"scrobbleDescription": "Actualiza tu lista cuando termines un episodio o película.",
|
||||
"disconnectConfirm": "¿Desconectar ${service}?",
|
||||
"disconnectConfirmBody": "Plezy dejará de actualizar tu lista de ${service}. Puedes reconectarte en cualquier momento.",
|
||||
"disconnectConfirmBody": "Plezy dejará de actualizar ${service}. Reconecta cuando quieras.",
|
||||
"connectFailed": "No se pudo conectar a ${service}. Inténtalo de nuevo.",
|
||||
"services": {
|
||||
"mal": "MyAnimeList",
|
||||
@@ -1059,7 +1203,7 @@
|
||||
},
|
||||
"oauthProxy": {
|
||||
"title": "Inicia sesión en ${service}",
|
||||
"body": "Escanea este código QR con tu teléfono, o abre la URL de abajo en cualquier dispositivo con navegador.",
|
||||
"body": "Escanea este código QR o abre la URL en cualquier dispositivo.",
|
||||
"openToSignIn": "Abrir ${service} para iniciar sesión",
|
||||
"urlCopied": "URL copiada"
|
||||
},
|
||||
@@ -1077,5 +1221,39 @@
|
||||
"libraries": "Bibliotecas",
|
||||
"noLibraries": "No hay bibliotecas disponibles"
|
||||
}
|
||||
},
|
||||
"addServer": {
|
||||
"addJellyfinTitle": "Añadir servidor Jellyfin",
|
||||
"jellyfinUrlIntro": "Introduce la URL del servidor, p. ej. `https://jellyfin.example.com`.",
|
||||
"serverUrl": "URL del servidor",
|
||||
"findServer": "Buscar servidor",
|
||||
"username": "Usuario",
|
||||
"password": "Contraseña",
|
||||
"signIn": "Iniciar sesión",
|
||||
"change": "Cambiar",
|
||||
"required": "Obligatorio",
|
||||
"couldNotReachServer": "No se pudo conectar con el servidor: ${error}",
|
||||
"signInFailed": "Error al iniciar sesión: ${error}",
|
||||
"quickConnectFailed": "Quick Connect ha fallado: ${error}",
|
||||
"addPlexTitle": "Iniciar sesión con Plex",
|
||||
"plexAuthIntro": "Inicia sesión con un navegador o código QR.",
|
||||
"plexQRPrompt": "Escanea este código QR para iniciar sesión.",
|
||||
"waitingForPlexConfirmation": "Esperando que plex.tv confirme tu inicio de sesión…",
|
||||
"pinExpired": "El PIN caducó antes de iniciar sesión. Inténtalo de nuevo.",
|
||||
"duplicatePlexAccount": "Ya iniciaste sesión en Plex. Cierra sesión para cambiar de cuenta.",
|
||||
"failedToRegisterAccount": "No se pudo registrar la cuenta: ${error}",
|
||||
"enterJellyfinUrlError": "Introduce la URL de tu servidor Jellyfin",
|
||||
"addConnectionTitle": "Añadir conexión",
|
||||
"addConnectionTitleScoped": "Añadir a ${name}",
|
||||
"addConnectionIntroGlobal": "Añade otro servidor multimedia. Plex y Jellyfin aparecen juntos en Inicio.",
|
||||
"addConnectionIntroScoped": "Añade un servidor nuevo o toma prestado uno de otro perfil.",
|
||||
"signInWithPlexCard": "Iniciar sesión con Plex",
|
||||
"signInWithPlexCardSubtitle": "Autoriza este dispositivo. Se añaden servidores compartidos.",
|
||||
"signInWithPlexCardSubtitleScoped": "Autoriza una cuenta Plex. Los usuarios de Home se convierten en perfiles.",
|
||||
"connectToJellyfinCard": "Conectar a Jellyfin",
|
||||
"connectToJellyfinCardSubtitle": "Introduce la URL del servidor, usuario y contraseña.",
|
||||
"connectToJellyfinCardSubtitleScoped": "Inicia sesión en un servidor Jellyfin. Se vincula a ${name}.",
|
||||
"borrowFromAnotherProfile": "Tomar prestado de otro perfil",
|
||||
"borrowFromAnotherProfileSubtitle": "Reutiliza la conexión de otro perfil. Los perfiles protegidos con PIN requieren un PIN."
|
||||
}
|
||||
}
|
||||
|
||||
+245
-67
@@ -3,13 +3,22 @@
|
||||
"title": "Plezy"
|
||||
},
|
||||
"auth": {
|
||||
"signIn": "Se connecter",
|
||||
"signInWithPlex": "S'inscrire avec Plex",
|
||||
"showQRCode": "Afficher le QR Code",
|
||||
"authenticate": "S'authentifier",
|
||||
"authenticationTimeout": "Délai d'authentification expiré. Veuillez réessayer.",
|
||||
"scanQRToSignIn": "Scannez ce QR code pour vous connecter",
|
||||
"waitingForAuth": "En attente d'authentification...\nVeuillez vous connecter dans votre navigateur.",
|
||||
"useBrowser": "Utiliser le navigateur"
|
||||
"waitingForAuth": "En attente d'authentification...\nConnectez-vous depuis votre navigateur.",
|
||||
"useBrowser": "Utiliser le navigateur",
|
||||
"or": "ou",
|
||||
"connectToJellyfin": "Se connecter à Jellyfin",
|
||||
"useQuickConnect": "Utiliser Quick Connect",
|
||||
"quickConnectCode": "Code Quick Connect",
|
||||
"quickConnectInstructions": "Ouvrez Quick Connect dans Jellyfin et saisissez ce code.",
|
||||
"quickConnectWaiting": "En attente d'approbation…",
|
||||
"quickConnectCancel": "Annuler",
|
||||
"quickConnectExpired": "Quick Connect a expiré. Réessayez."
|
||||
},
|
||||
"common": {
|
||||
"cancel": "Annuler",
|
||||
@@ -43,9 +52,6 @@
|
||||
"mute": "Muet",
|
||||
"ok": "OK",
|
||||
"reconnect": "Reconnecter",
|
||||
"exitConfirmTitle": "Quitter l'application ?",
|
||||
"exitConfirmMessage": "Êtes-vous sûr de vouloir quitter ?",
|
||||
"dontAskAgain": "Ne plus demander",
|
||||
"exit": "Quitter",
|
||||
"viewAll": "Tout afficher",
|
||||
"checkingNetwork": "Vérification du réseau...",
|
||||
@@ -55,10 +61,11 @@
|
||||
"startingOfflineMode": "Démarrage en mode hors-ligne...",
|
||||
"loading": "Chargement...",
|
||||
"fullscreen": "Plein écran",
|
||||
"exitFullscreen": "Quitter le plein écran"
|
||||
"exitFullscreen": "Quitter le plein écran",
|
||||
"pressBackAgainToExit": "Appuyez à nouveau sur retour pour quitter"
|
||||
},
|
||||
"screens": {
|
||||
"licenses": "Licenses",
|
||||
"licenses": "Licences",
|
||||
"switchProfile": "Changer de profil",
|
||||
"subtitleStyling": "Configuration des sous-titres",
|
||||
"mpvConfig": "mpv.conf",
|
||||
@@ -104,22 +111,22 @@
|
||||
"gridView": "Grille",
|
||||
"listView": "Liste",
|
||||
"showHeroSection": "Afficher la section Hero",
|
||||
"useGlobalHubs": "Utiliser la disposition Plex Home",
|
||||
"useGlobalHubsDescription": "Afficher les hubs de la page d'accueil comme le client Plex officiel. Lorsque cette option est désactivée, affiche à la place les recommandations par bibliothèque.",
|
||||
"useGlobalHubs": "Utiliser la mise en page d'accueil",
|
||||
"useGlobalHubsDescription": "Afficher des hubs d'accueil unifiés. Sinon, utiliser les recommandations de bibliothèque.",
|
||||
"showServerNameOnHubs": "Afficher le nom du serveur sur les hubs",
|
||||
"showServerNameOnHubsDescription": "Toujours afficher le nom du serveur dans les titres des hubs. Lorsque cette option est désactivée, seuls les noms de hubs en double s'affichent.",
|
||||
"showServerNameOnHubsDescription": "Toujours afficher les noms des serveurs dans les titres des hubs.",
|
||||
"groupLibrariesByServer": "Grouper les bibliothèques par serveur",
|
||||
"groupLibrariesByServerDescription": "Affiche un en-tête pour chaque serveur Plex dans la barre latérale lorsque vous êtes connecté à plusieurs serveurs.",
|
||||
"groupLibrariesByServerDescription": "Regrouper les bibliothèques de la barre latérale par serveur multimédia.",
|
||||
"alwaysKeepSidebarOpen": "Toujours garder la barre latérale ouverte",
|
||||
"alwaysKeepSidebarOpenDescription": "La barre latérale reste étendue et la zone de contenu s'adapte",
|
||||
"showUnwatchedCount": "Afficher le nombre non visionné",
|
||||
"showUnwatchedCountDescription": "Afficher le nombre d'épisodes non visionnés pour les séries et saisons",
|
||||
"showEpisodeNumberOnCards": "Afficher le numéro d'épisode sur les cartes",
|
||||
"showEpisodeNumberOnCardsDescription": "Afficher le numéro d'épisode à côté de la saison (ex. S2 E3) sur les cartes d'épisodes",
|
||||
"showEpisodeNumberOnCardsDescription": "Afficher la saison et l'épisode sur les cartes d'épisode",
|
||||
"showSeasonPostersOnTabs": "Afficher les posters de saison sur les onglets",
|
||||
"showSeasonPostersOnTabsDescription": "Afficher le poster de la saison au-dessus de chaque onglet de saison sur la page de détail d'une série",
|
||||
"showSeasonPostersOnTabsDescription": "Afficher l'affiche de chaque saison au-dessus de son onglet",
|
||||
"hideSpoilers": "Masquer les spoilers des épisodes non vus",
|
||||
"hideSpoilersDescription": "Flouter les miniatures et masquer les descriptions des épisodes que vous n'avez pas encore regardés",
|
||||
"hideSpoilersDescription": "Flouter les miniatures et descriptions des épisodes non vus",
|
||||
"playerBackend": "Moteur de lecture",
|
||||
"exoPlayer": "ExoPlayer (Recommandé)",
|
||||
"mpv": "mpv",
|
||||
@@ -128,7 +135,7 @@
|
||||
"bufferSize": "Taille du Buffer",
|
||||
"bufferSizeMB": "${size}MB",
|
||||
"bufferSizeAuto": "Auto (Recommandé)",
|
||||
"bufferSizeWarning": "Votre appareil dispose de ${heap}MB de mémoire. Un tampon de ${size}MB peut causer des problèmes de lecture.",
|
||||
"bufferSizeWarning": "${heap}MB de mémoire disponible. Un tampon de ${size}MB peut affecter la lecture.",
|
||||
"defaultQualityTitle": "Qualité par défaut",
|
||||
"defaultQualityDescription": "Utilisé au démarrage de la lecture. Les valeurs plus basses réduisent la bande passante.",
|
||||
"subtitleStyling": "Stylisation des sous-titres",
|
||||
@@ -140,16 +147,18 @@
|
||||
"defaultSleepTimer": "Minuterie de mise en veille par défaut",
|
||||
"minutesUnit": "${minutes} minutes",
|
||||
"rememberTrackSelections": "Mémoriser les sélections de pistes par émission/film",
|
||||
"rememberTrackSelectionsDescription": "Enregistrer automatiquement les préférences linguistiques pour l'audio et les sous-titres lorsque vous changez de piste pendant la lecture",
|
||||
"rememberTrackSelectionsDescription": "Mémoriser les choix audio et sous-titres par titre",
|
||||
"showChapterMarkersOnTimeline": "Afficher les marqueurs de chapitres sur la barre de lecture",
|
||||
"showChapterMarkersOnTimelineDescription": "Segmenter la barre de lecture aux limites des chapitres",
|
||||
"clickVideoTogglesPlayback": "Cliquez sur la vidéo pour basculer entre lecture et pause.",
|
||||
"clickVideoTogglesPlaybackDescription": "Si cette option est activée, cliquer sur le lecteur vidéo lancera ou mettra en pause la vidéo. Sinon, le clic affichera ou masquera les commandes de lecture.",
|
||||
"clickVideoTogglesPlaybackDescription": "Cliquer sur la vidéo pour lire/mettre en pause au lieu d'afficher les contrôles.",
|
||||
"videoPlayerControls": "Commandes du lecteur vidéo",
|
||||
"keyboardShortcuts": "Raccourcis clavier",
|
||||
"keyboardShortcutsDescription": "Personnaliser les raccourcis clavier",
|
||||
"videoPlayerNavigation": "Navigation dans le lecteur vidéo",
|
||||
"videoPlayerNavigationDescription": "Utilisez les touches fléchées pour naviguer dans les commandes du lecteur vidéo.",
|
||||
"watchTogetherRelay": "Relais Regarder Ensemble",
|
||||
"watchTogetherRelayDescription": "Définir un serveur relais personnalisé pour Regarder Ensemble. Tous les participants doivent utiliser le même serveur.",
|
||||
"watchTogetherRelayDescription": "Définir un relay personnalisé. Tout le monde doit utiliser le même serveur.",
|
||||
"watchTogetherRelayHint": "https://mon-relais.exemple.fr",
|
||||
"crashReporting": "Rapports de plantage",
|
||||
"crashReportingDescription": "Envoyer des rapports de plantage pour améliorer l'application",
|
||||
@@ -158,10 +167,10 @@
|
||||
"viewLogs": "Voir les logs",
|
||||
"viewLogsDescription": "Voir les logs d'application",
|
||||
"clearCache": "Vider le cache",
|
||||
"clearCacheDescription": "Cela effacera toutes les images et données mises en cache. Le chargement du contenu de l'application peut prendre plus de temps après avoir effacé le cache.",
|
||||
"clearCacheDescription": "Effacer les images et données en cache. Le contenu peut charger plus lentement.",
|
||||
"clearCacheSuccess": "Cache effacé avec succès",
|
||||
"resetSettings": "Réinitialiser les paramètres",
|
||||
"resetSettingsDescription": "Cela réinitialisera tous les paramètres à leurs valeurs par défaut. Cette action ne peut pas être annulée.",
|
||||
"resetSettingsDescription": "Restaurer les paramètres par défaut. Action irréversible.",
|
||||
"resetSettingsSuccess": "Réinitialisation des paramètres réussie",
|
||||
"backup": "Sauvegarde",
|
||||
"exportSettings": "Exporter les paramètres",
|
||||
@@ -182,7 +191,7 @@
|
||||
"updateAvailable": "Mise à jour disponible",
|
||||
"checkForUpdates": "Vérifier les mises à jour",
|
||||
"autoCheckUpdatesOnStartup": "Vérifier automatiquement les mises à jour au démarrage",
|
||||
"autoCheckUpdatesOnStartupDescription": "Afficher une notification lorsqu'une nouvelle version est disponible au démarrage",
|
||||
"autoCheckUpdatesOnStartupDescription": "Notifier au lancement quand une mise à jour est disponible",
|
||||
"validationErrorEnterNumber": "Veuillez saisir un numéro valide",
|
||||
"validationErrorDuration": "La durée doit être comprise entre ${min} et ${max} ${unit}",
|
||||
"shortcutAlreadyAssigned": "Raccourci déjà attribué à ${action}",
|
||||
@@ -192,6 +201,8 @@
|
||||
"autoSkipIntroDescription": "Skipper automatiquement l'introduction après quelques secondes",
|
||||
"autoSkipCredits": "Skip automatique des crédits",
|
||||
"autoSkipCreditsDescription": "Passer les crédits et passer à l'épisode suivant automatiquement",
|
||||
"forceSkipMarkerFallback": "Forcer les marqueurs de repli",
|
||||
"forceSkipMarkerFallbackDescription": "Utiliser les motifs de titres de chapitres même si Plex a des marqueurs",
|
||||
"autoSkipDelay": "Délai avant skip automatique",
|
||||
"autoSkipDelayDescription": "Attendre ${seconds} secondes avant l'auto-skip",
|
||||
"introPattern": "Modèle de marqueur d'intro",
|
||||
@@ -213,8 +224,8 @@
|
||||
"downloadOnWifiOnly": "Télécharger uniquement via WiFi",
|
||||
"downloadOnWifiOnlyDescription": "Empêcher les téléchargements lorsque vous utilisez les données cellulaires",
|
||||
"autoRemoveWatchedDownloads": "Supprimer automatiquement les téléchargements vus",
|
||||
"autoRemoveWatchedDownloadsDescription": "Supprimer automatiquement les épisodes et films téléchargés lorsqu'ils sont marqués comme vus",
|
||||
"cellularDownloadBlocked": "Les téléchargements sont désactivés sur les données cellulaires. Connectez-vous au Wi-Fi ou modifiez le paramètre.",
|
||||
"autoRemoveWatchedDownloadsDescription": "Supprimer automatiquement les téléchargements vus",
|
||||
"cellularDownloadBlocked": "Les téléchargements sont bloqués sur réseau mobile. Utilisez le WiFi ou modifiez le réglage.",
|
||||
"maxVolume": "Volume maximal",
|
||||
"maxVolumeDescription": "Autoriser l'augmentation du volume au-delà de 100 % pour les médias silencieux",
|
||||
"maxVolumePercent": "${percent}%",
|
||||
@@ -227,22 +238,20 @@
|
||||
"companionRemoteServer": "Serveur de télécommande",
|
||||
"companionRemoteServerDescription": "Autoriser les appareils mobiles de votre réseau à contrôler cette application",
|
||||
"autoPip": "Image dans l'image automatique",
|
||||
"autoPipDescription": "Activer automatiquement l'image dans l'image en quittant l'application pendant la lecture",
|
||||
"autoPipDescription": "Passer en picture-in-picture en quittant 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",
|
||||
"matchContentFrameRateDescription": "Adapter la fréquence d'affichage au contenu vidéo",
|
||||
"matchRefreshRate": "Adapter la fréquence de rafraîchissement",
|
||||
"matchRefreshRateDescription": "Changer la fréquence de rafraîchissement de l'écran pour correspondre au contenu vidéo en plein écran",
|
||||
"matchRefreshRateDescription": "Adapter la fréquence d'affichage en plein écran",
|
||||
"matchDynamicRange": "Adapter la plage dynamique",
|
||||
"matchDynamicRangeDescription": "Activer automatiquement le HDR pour le contenu HDR et revenir en SDR en quittant le lecteur",
|
||||
"matchDynamicRangeDescription": "Activer HDR pour le contenu HDR, puis revenir en SDR",
|
||||
"displaySwitchDelay": "Délai de changement d'affichage",
|
||||
"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",
|
||||
"tunneledPlaybackDescription": "Utiliser le tunneling vidéo. Désactivez si la lecture HDR affiche un écran noir.",
|
||||
"requireProfileSelectionOnOpen": "Demander le profil à l'ouverture",
|
||||
"requireProfileSelectionOnOpenDescription": "Afficher la sélection de profil à chaque ouverture de l'application",
|
||||
"confirmExitOnBack": "Confirmer avant de quitter",
|
||||
"confirmExitOnBackDescription": "Afficher une boîte de dialogue de confirmation en appuyant sur retour pour quitter",
|
||||
"forceTvMode": "Forcer le mode TV",
|
||||
"forceTvModeDescription": "Utiliser la mise en page TV quelle que soit la détection automatique. Utile sur les appareils Android TV qui ne signalent pas la fonctionnalité leanback. Redémarre l'application lors du changement.",
|
||||
"forceTvModeDescription": "Forcer l'interface TV. Pour appareils non détectés automatiquement. Redémarrage requis.",
|
||||
"startInFullscreen": "Démarrer en plein écran",
|
||||
"startInFullscreenDescription": "Ouvrir Plezy en mode plein écran au lancement",
|
||||
"autoHidePerformanceOverlay": "Masquer auto. superposition performances",
|
||||
@@ -251,15 +260,15 @@
|
||||
"showNavBarLabelsDescription": "Afficher les libellés sous les icônes de la barre de navigation",
|
||||
"liveTvDefaultFavorites": "Chaînes favorites par défaut",
|
||||
"liveTvDefaultFavoritesDescription": "Afficher uniquement les chaînes favorites à l'ouverture de la TV en direct",
|
||||
"display": "Display",
|
||||
"homeScreen": "Home Screen",
|
||||
"display": "Affichage",
|
||||
"homeScreen": "Écran d'accueil",
|
||||
"navigation": "Navigation",
|
||||
"window": "Window",
|
||||
"content": "Content",
|
||||
"player": "Player",
|
||||
"subtitlesAndConfig": "Subtitles & Configuration",
|
||||
"seekAndTiming": "Seek & Timing",
|
||||
"behavior": "Behavior"
|
||||
"window": "Fenêtre",
|
||||
"content": "Contenu",
|
||||
"player": "Lecteur",
|
||||
"subtitlesAndConfig": "Sous-titres et configuration",
|
||||
"seekAndTiming": "Recherche et minutage",
|
||||
"behavior": "Comportement"
|
||||
},
|
||||
"search": {
|
||||
"hint": "Rechercher des films, des séries, de la musique...",
|
||||
@@ -330,7 +339,7 @@
|
||||
"shufflePlay": "Lecture aléatoire",
|
||||
"fileInfo": "Informations sur le fichier",
|
||||
"deleteFromServer": "Supprimer du serveur",
|
||||
"confirmDelete": "Cela supprimera définitivement ce média et ses fichiers de votre serveur. Cette action est irréversible.",
|
||||
"confirmDelete": "Supprimer ce média et ses fichiers de votre serveur ?",
|
||||
"deleteMultipleWarning": "Cela inclut tous les épisodes et leurs fichiers.",
|
||||
"mediaDeletedSuccessfully": "Élément média supprimé avec succès",
|
||||
"mediaFailedToDelete": "Échec de la suppression de l'élément média",
|
||||
@@ -414,7 +423,7 @@
|
||||
"pipErrors": {
|
||||
"androidVersion": "Nécessite Android 8.0 ou plus récent",
|
||||
"iosVersion": "Nécessite iOS 15.0 ou plus récent",
|
||||
"permissionDisabled": "L'autorisation Image dans l'image est désactivée. Activez-la dans Paramètres > Applications > Plezy > Image dans l'image",
|
||||
"permissionDisabled": "Picture-in-picture est désactivé. Activez-le dans les paramètres système.",
|
||||
"notSupported": "Cet appareil ne prend pas en charge le mode image dans l'image",
|
||||
"voSwitchFailed": "Échec du changement de sortie vidéo pour l'image dans l'image",
|
||||
"failed": "Échec du démarrage du mode image dans l'image",
|
||||
@@ -452,7 +461,7 @@
|
||||
"musicNotSupported": "La lecture de musique n'est pas encore prise en charge",
|
||||
"noDescriptionAvailable": "Aucune description disponible",
|
||||
"noProfilesAvailable": "Aucun profil disponible",
|
||||
"contactAdminForProfiles": "Contactez votre administrateur Plex pour ajouter des profils",
|
||||
"contactAdminForProfiles": "Contactez votre administrateur serveur pour ajouter des profils",
|
||||
"unableToDetermineLibrarySection": "Impossible de déterminer la section de la bibliothèque pour cet élément",
|
||||
"logsCleared": "Logs effacés",
|
||||
"logsCopied": "Logs copiés dans le presse-papier",
|
||||
@@ -474,7 +483,7 @@
|
||||
"failedPlayback": "Echec de ${action}: ${error}",
|
||||
"switchingToCompatiblePlayer": "Passage au lecteur compatible...",
|
||||
"serverLimitTitle": "Échec de la lecture",
|
||||
"serverLimitBody": "Le serveur a renvoyé une erreur (HTTP 500). Cela signifie généralement que le propriétaire du serveur a défini une limite de bande passante ou de transcodage qui rejette ta session. Rien à faire côté client — le propriétaire du serveur doit ajuster ses paramètres.",
|
||||
"serverLimitBody": "Erreur serveur (HTTP 500). Une limite de bande passante/transcodage a probablement rejeté cette session. Demandez au propriétaire de l'ajuster.",
|
||||
"logsUploaded": "Logs envoyés",
|
||||
"logsUploadFailed": "Échec de l'envoi des logs",
|
||||
"logId": "ID du log"
|
||||
@@ -513,12 +522,85 @@
|
||||
"dialog": {
|
||||
"confirmAction": "Confirmer l'action"
|
||||
},
|
||||
"profiles": {
|
||||
"addPlezyProfile": "Ajouter un profil Plezy",
|
||||
"switchingProfile": "Changement de profil…",
|
||||
"deleteThisProfileTitle": "Supprimer ce profil ?",
|
||||
"deleteThisProfileMessage": "Supprimer ${displayName}. Les connexions ne sont pas affectées.",
|
||||
"active": "Actif",
|
||||
"manage": "Gérer",
|
||||
"delete": "Supprimer",
|
||||
"signOut": "Se déconnecter",
|
||||
"signOutPlexTitle": "Se déconnecter de Plex ?",
|
||||
"signOutPlexMessage": "Supprimer ${displayName} et tous les utilisateurs Plex Home ? Reconnexion possible à tout moment.",
|
||||
"signedOutPlex": "Déconnecté de Plex.",
|
||||
"signOutFailed": "Échec de la déconnexion.",
|
||||
"sectionTitle": "Profils",
|
||||
"summarySingle": "Ajoutez des profils pour mélanger utilisateurs gérés et identités locales",
|
||||
"summaryMultipleWithActive": "${count} profils · actif : ${activeName}",
|
||||
"summaryMultiple": "${count} profils",
|
||||
"removeConnectionTitle": "Retirer la connexion ?",
|
||||
"removeConnectionMessage": "Supprimer l'accès de ${displayName} à ${connectionLabel}. Les autres profils le conservent.",
|
||||
"deleteProfileTitle": "Supprimer le profil ?",
|
||||
"deleteProfileMessage": "Supprimer ${displayName} et ses connexions. Les serveurs restent disponibles.",
|
||||
"profileNameLabel": "Nom du profil",
|
||||
"pinProtectionLabel": "Protection par code PIN",
|
||||
"pinManagedByPlex": "PIN géré par Plex. Modifier sur plex.tv.",
|
||||
"noPinSetEditOnPlex": "Aucun PIN défini. Pour en exiger un, modifiez l'utilisateur Home sur plex.tv.",
|
||||
"setPin": "Définir un PIN",
|
||||
"setPinTitle": "Définir un PIN",
|
||||
"confirmPinTitle": "Confirmer le PIN",
|
||||
"pinSet": "PIN défini",
|
||||
"changePin": "Modifier",
|
||||
"removePin": "Retirer",
|
||||
"connectionsLabel": "Connexions",
|
||||
"add": "Ajouter",
|
||||
"deleteProfileButton": "Supprimer le profil",
|
||||
"noConnectionsHint": "Aucune connexion — ajoutez-en une pour utiliser ce profil.",
|
||||
"noConnections": "Aucune connexion",
|
||||
"plexHomeAccount": "Compte Plex Home",
|
||||
"connectionDefault": "Par défaut",
|
||||
"connectionAs": "en tant que ${displayName}",
|
||||
"makeDefault": "Définir par défaut",
|
||||
"removeConnection": "Retirer",
|
||||
"profileRenamed": "Profil renommé.",
|
||||
"borrowAddTo": "Ajouter à ${displayName}",
|
||||
"borrowExplain": "Emprunter la connexion d'un autre profil. Les profils protégés par PIN exigent un PIN.",
|
||||
"borrowEmpty": "Rien à emprunter pour le moment.",
|
||||
"borrowEmptySubtitle": "Connectez d'abord Plex ou Jellyfin à un autre profil.",
|
||||
"borrowFromProfile": "De ${displayName}",
|
||||
"borrowConnectionBorrowed": "Connexion empruntée.",
|
||||
"borrowFailed": "Impossible d'emprunter la connexion.",
|
||||
"incorrectPin": "PIN incorrect.",
|
||||
"sourceProfileMissingParentAccount": "Le profil source n'a pas son compte parent.",
|
||||
"failedToVerifyPin": "Impossible de vérifier le PIN.",
|
||||
"newProfile": "Nouveau profil",
|
||||
"profileNameHint": "ex. Invités, Enfants, Salon familial",
|
||||
"pinProtectionOptional": "Protection par PIN (optionnelle)",
|
||||
"pinExplain": "PIN à 4 chiffres requis pour changer de profil.",
|
||||
"continueButton": "Continuer",
|
||||
"pinsDontMatch": "Les PIN ne correspondent pas"
|
||||
},
|
||||
"connections": {
|
||||
"sectionTitle": "Connexions",
|
||||
"addConnection": "Ajouter une connexion",
|
||||
"addConnectionSubtitleNoProfile": "Connectez-vous avec Plex ou connectez un serveur Jellyfin",
|
||||
"addConnectionSubtitleScoped": "Ajouter à ${displayName} : Plex, Jellyfin ou une autre connexion de profil",
|
||||
"sessionExpiredOne": "Session expirée pour ${name}",
|
||||
"sessionExpiredMany": "Session expirée pour ${count} serveurs",
|
||||
"signInAgain": "Se reconnecter"
|
||||
},
|
||||
"discover": {
|
||||
"title": "Découvrez",
|
||||
"switchProfile": "Changer de profil",
|
||||
"noContentAvailable": "Aucun contenu disponible",
|
||||
"addMediaToLibraries": "Ajoutez des médias à votre bibliothèque",
|
||||
"continueWatching": "Continuer à regarder",
|
||||
"continueWatchingIn": "Continuer à regarder dans ${library}",
|
||||
"nextUp": "À suivre",
|
||||
"nextUpIn": "À suivre dans ${library}",
|
||||
"recentlyAdded": "Récemment ajouté",
|
||||
"recentlyAddedIn": "Récemment ajouté dans ${library}",
|
||||
"playEpisode": "S${season}E${episode}",
|
||||
"overview": "Aperçu",
|
||||
"cast": "Cast",
|
||||
@@ -532,7 +614,7 @@
|
||||
"errors": {
|
||||
"searchFailed": "Recherche échouée: ${error}",
|
||||
"connectionTimeout": "Délai d'attente de connexion dépassé pendant le chargement ${context}",
|
||||
"connectionFailed": "Impossible de se connecter au serveur Plex",
|
||||
"connectionFailed": "Impossible de se connecter au serveur multimédia",
|
||||
"failedToLoad": "Échec du chargement ${context}: ${error}",
|
||||
"noClientAvailable": "Aucun client disponible",
|
||||
"authenticationFailed": "Échec de l'authentification: ${error}",
|
||||
@@ -540,7 +622,9 @@
|
||||
"pleaseEnterToken": "Veuillez saisir un token",
|
||||
"invalidToken": "Token invalide",
|
||||
"failedToVerifyToken": "Échec de la vérification du token: ${error}",
|
||||
"failedToSwitchProfile": "Impossible de changer de profil vers ${displayName}"
|
||||
"failedToSwitchProfile": "Impossible de changer de profil vers ${displayName}",
|
||||
"failedToDeleteProfile": "Impossible de supprimer ${displayName}",
|
||||
"failedToRate": "Impossible de mettre à jour la note"
|
||||
},
|
||||
"libraries": {
|
||||
"title": "Bibliothèques",
|
||||
@@ -595,17 +679,34 @@
|
||||
"seasons": "Saisons",
|
||||
"episodes": "Épisodes",
|
||||
"folders": "Dossiers"
|
||||
},
|
||||
"filterCategories": {
|
||||
"genre": "Genre",
|
||||
"year": "Année",
|
||||
"contentRating": "Classification",
|
||||
"tag": "Tag"
|
||||
},
|
||||
"sortLabels": {
|
||||
"title": "Titre",
|
||||
"dateAdded": "Date d'ajout",
|
||||
"releaseDate": "Date de sortie",
|
||||
"rating": "Note",
|
||||
"lastPlayed": "Dernière lecture",
|
||||
"playCount": "Lectures",
|
||||
"random": "Aléatoire",
|
||||
"dateShared": "Date de partage",
|
||||
"latestEpisodeAirDate": "Dernière date de diffusion"
|
||||
}
|
||||
},
|
||||
"about": {
|
||||
"title": "À propos",
|
||||
"openSourceLicenses": "Licences Open Source",
|
||||
"versionLabel": "Version ${version}",
|
||||
"appDescription": "Un magnifique client Plex pour Flutter",
|
||||
"appDescription": "Un magnifique client Plex et Jellyfin pour Flutter",
|
||||
"viewLicensesDescription": "Afficher les licences des bibliothèques tierces"
|
||||
},
|
||||
"serverSelection": {
|
||||
"allServerConnectionsFailed": "Impossible de se connecter à un serveur. Veuillez vérifier votre connexion réseau et réessayer.",
|
||||
"allServerConnectionsFailed": "Connexion impossible à tous les serveurs. Vérifiez votre réseau.",
|
||||
"noServersFoundForAccount": "Aucun serveur trouvé pour ${username} (${email})",
|
||||
"failedToLoadServers": "Échec du chargement des serveurs: ${error}"
|
||||
},
|
||||
@@ -642,6 +743,7 @@
|
||||
"reloadGuide": "Recharger le guide",
|
||||
"now": "Maintenant",
|
||||
"today": "Aujourd'hui",
|
||||
"tomorrow": "Demain",
|
||||
"midnight": "Minuit",
|
||||
"overnight": "Nuit",
|
||||
"morning": "Matin",
|
||||
@@ -655,7 +757,41 @@
|
||||
"joinSession": "Rejoindre la session en cours",
|
||||
"watchFromStart": "Regarder depuis le début (il y a ${minutes} min)",
|
||||
"watchLive": "Regarder en direct",
|
||||
"goToLive": "Aller au direct"
|
||||
"goToLive": "Aller au direct",
|
||||
"record": "Enregistrer",
|
||||
"recordEpisode": "Enregistrer l'épisode",
|
||||
"recordSeries": "Enregistrer la série",
|
||||
"recordOptions": "Options d'enregistrement",
|
||||
"recordings": "Enregistrements",
|
||||
"scheduledRecordings": "Programmés",
|
||||
"recordingRules": "Règles d'enregistrement",
|
||||
"noScheduledRecordings": "Aucun enregistrement programmé",
|
||||
"noRecordingRules": "Aucune règle d'enregistrement",
|
||||
"manageRecording": "Gérer l'enregistrement",
|
||||
"cancelRecording": "Annuler l'enregistrement",
|
||||
"cancelRecordingTitle": "Annuler cet enregistrement ?",
|
||||
"cancelRecordingMessage": "${title} ne sera plus enregistré.",
|
||||
"deleteRule": "Supprimer la règle",
|
||||
"deleteRuleTitle": "Supprimer la règle d'enregistrement ?",
|
||||
"deleteRuleMessage": "Les prochains épisodes de ${title} ne seront pas enregistrés.",
|
||||
"recordingScheduled": "Enregistrement programmé",
|
||||
"alreadyScheduled": "Ce programme est déjà programmé",
|
||||
"dvrAdminRequired": "Les paramètres DVR nécessitent un compte administrateur",
|
||||
"recordingFailed": "Impossible de programmer l'enregistrement",
|
||||
"recordingTargetMissing": "Impossible de déterminer la bibliothèque d'enregistrement",
|
||||
"recordNotAvailable": "Enregistrement non disponible pour ce programme",
|
||||
"recordingCancelled": "Enregistrement annulé",
|
||||
"recordingRuleDeleted": "Règle d'enregistrement supprimée",
|
||||
"processRecordingRules": "Réévaluer les règles",
|
||||
"loadingRecordings": "Chargement des enregistrements...",
|
||||
"recordingInProgress": "Enregistrement en cours",
|
||||
"recordingsCount": "${count} programmés",
|
||||
"editRule": "Modifier la règle",
|
||||
"editRuleAction": "Modifier",
|
||||
"recordingRuleUpdated": "Règle d'enregistrement mise à jour",
|
||||
"guideReloadRequested": "Mise à jour du guide demandée",
|
||||
"rulesProcessRequested": "Réévaluation des règles demandée",
|
||||
"recordShow": "Enregistrer l'émission"
|
||||
},
|
||||
"collections": {
|
||||
"title": "Collections",
|
||||
@@ -663,7 +799,7 @@
|
||||
"empty": "La collection est vide",
|
||||
"unknownLibrarySection": "Impossible de supprimer : section de bibliothèque inconnue",
|
||||
"deleteCollection": "Supprimer la collection",
|
||||
"deleteConfirm": "Êtes-vous sûr de vouloir supprimer \"${title}\" ? Cette action ne peut pas être annulée.",
|
||||
"deleteConfirm": "Supprimer \"${title}\" ? Action irréversible.",
|
||||
"deleted": "Collection supprimée",
|
||||
"deleteFailed": "Échec de la suppression de la collection",
|
||||
"deleteFailedWithError": "Échec de la suppression de la collection: ${error}",
|
||||
@@ -747,11 +883,11 @@
|
||||
"pasteFromClipboard": "Coller depuis le presse-papiers",
|
||||
"pleaseEnterCode": "Veuillez saisir un code de session",
|
||||
"codeMustBe5Chars": "Le code de session doit comporter 5 caractères",
|
||||
"joinInstructions": "Entrez le code de session partagé par l'hôte pour rejoindre sa session de visionnage.",
|
||||
"joinInstructions": "Saisissez le code de session de l'hôte pour rejoindre.",
|
||||
"failedToCreate": "Échec de la création de la session",
|
||||
"failedToJoin": "Échec de la connexion à la session",
|
||||
"sessionCodeCopied": "Code de session copié dans le presse-papiers",
|
||||
"relayUnreachable": "Le serveur relais est inaccessible. Cela peut être dû au blocage de la connexion par votre fournisseur d'accès. Vous pouvez quand même essayer, mais Watch Together pourrait ne pas fonctionner.",
|
||||
"relayUnreachable": "Serveur relay inaccessible. Un blocage ISP peut empêcher Watch Together.",
|
||||
"reconnectingToHost": "Reconnexion à l'hôte...",
|
||||
"currentPlayback": "Lecture en cours",
|
||||
"joinCurrentPlayback": "Rejoindre la lecture en cours",
|
||||
@@ -766,7 +902,9 @@
|
||||
"waitingForParticipants": "En attente du chargement des autres...",
|
||||
"recentRooms": "Salons récents",
|
||||
"renameRoom": "Renommer le salon",
|
||||
"removeRoom": "Supprimer"
|
||||
"removeRoom": "Supprimer",
|
||||
"guestSwitchUnavailable": "Impossible de changer — serveur indisponible pour la synchronisation",
|
||||
"guestSwitchFailed": "Impossible de changer — contenu introuvable sur ce serveur"
|
||||
},
|
||||
"downloads": {
|
||||
"title": "Téléchargements",
|
||||
@@ -779,10 +917,10 @@
|
||||
"deleteDownload": "Supprimer le téléchargement",
|
||||
"retryDownload": "Réessayer le téléchargement",
|
||||
"downloadQueued": "Téléchargement en attente",
|
||||
"serverErrorBitrate": "Erreur serveur — le fichier dépasse peut-être la limite de débit du streaming à distance",
|
||||
"serverErrorBitrate": "Erreur serveur : le fichier peut dépasser la limite de bitrate distant",
|
||||
"episodesQueued": "${count} épisodes en attente de téléchargement",
|
||||
"downloadDeleted": "Télécharger supprimé",
|
||||
"deleteConfirm": "Êtes-vous sûr de vouloir supprimer \"${title}\" ? Cela supprimera le fichier téléchargé de votre appareil.",
|
||||
"deleteConfirm": "Supprimer \"${title}\" de cet appareil ?",
|
||||
"deletingWithProgress": "Suppression de ${title}... (${current} sur ${total})",
|
||||
"deleting": "Suppression...",
|
||||
"queuedTooltip": "En attente",
|
||||
@@ -817,6 +955,12 @@
|
||||
"editSyncFilter": "Filtre de synchronisation",
|
||||
"syncAllItems": "Synchronisation de tous les éléments",
|
||||
"syncUnwatchedItems": "Synchronisation des éléments non vus",
|
||||
"syncRuleServerContext": "Serveur : ${server} • ${status}",
|
||||
"syncRuleAvailable": "Disponible",
|
||||
"syncRuleOffline": "Hors ligne",
|
||||
"syncRuleSignInRequired": "Connexion requise",
|
||||
"syncRuleNotAvailableForProfile": "Non disponible pour le profil actuel",
|
||||
"syncRuleUnknownServer": "Serveur inconnu",
|
||||
"syncRuleListCreated": "Règle de synchronisation créée"
|
||||
},
|
||||
"shaders": {
|
||||
@@ -846,7 +990,7 @@
|
||||
"connected": "Connecté",
|
||||
"serverRunning": "Serveur distant actif",
|
||||
"serverStopped": "Serveur distant arrêté",
|
||||
"serverRunningDescription": "Les appareils mobiles de votre réseau peuvent découvrir et se connecter à cette application",
|
||||
"serverRunningDescription": "Les appareils mobiles de votre réseau peuvent se connecter à cette app",
|
||||
"serverStoppedDescription": "Démarrez le serveur pour permettre aux appareils mobiles de se connecter",
|
||||
"usePhoneToControl": "Utilisez votre appareil mobile pour contrôler cette application",
|
||||
"startServer": "Démarrer le serveur",
|
||||
@@ -854,20 +998,20 @@
|
||||
"minimize": "Réduire"
|
||||
},
|
||||
"pairing": {
|
||||
"discoveryDescription": "Les appareils de votre réseau exécutant Plezy avec le même compte Plex apparaîtront automatiquement",
|
||||
"discoveryDescription": "Les appareils Plezy avec le même compte Plex apparaissent ici",
|
||||
"hostAddressHint": "192.168.1.100:48632",
|
||||
"connecting": "Connexion...",
|
||||
"searchingForDevices": "Recherche d'appareils...",
|
||||
"noDevicesFound": "Aucun appareil trouvé sur votre réseau",
|
||||
"noDevicesHint": "Assurez-vous que Plezy est ouvert sur votre bureau et que les deux appareils sont sur le même réseau WiFi",
|
||||
"noDevicesHint": "Ouvrez Plezy sur ordinateur et utilisez le même WiFi",
|
||||
"availableDevices": "Appareils disponibles",
|
||||
"manualConnection": "Connexion manuelle",
|
||||
"cryptoInitFailed": "Impossible d'initialiser la connexion sécurisée. Assurez-vous d'être connecté à un compte Plex.",
|
||||
"cryptoInitFailed": "Impossible de démarrer la connexion sécurisée. Connectez-vous d'abord à Plex.",
|
||||
"validationHostRequired": "Veuillez entrer l'adresse de l'hôte",
|
||||
"validationHostFormat": "Le format doit être IP:port (ex. 192.168.1.100:48632)",
|
||||
"connectionTimedOut": "Délai de connexion dépassé. Assurez-vous que les deux appareils sont sur le même réseau.",
|
||||
"sessionNotFound": "Appareil introuvable. Assurez-vous que Plezy est en cours d'exécution sur l'hôte.",
|
||||
"authFailed": "Échec de l'authentification. Assurez-vous que les deux appareils utilisent le même compte Plex.",
|
||||
"connectionTimedOut": "Connexion expirée. Utilisez le même réseau sur les deux appareils.",
|
||||
"sessionNotFound": "Appareil introuvable. Assurez-vous que Plezy fonctionne sur l'hôte.",
|
||||
"authFailed": "Échec de l'authentification. Les deux appareils doivent utiliser le même compte Plex.",
|
||||
"failedToConnect": "Échec de la connexion : ${error}"
|
||||
},
|
||||
"remote": {
|
||||
@@ -915,7 +1059,7 @@
|
||||
"externalPlayer": {
|
||||
"title": "Lecteur externe",
|
||||
"useExternalPlayer": "Utiliser un lecteur externe",
|
||||
"useExternalPlayerDescription": "Ouvrir les vidéos dans une application externe au lieu du lecteur intégré",
|
||||
"useExternalPlayerDescription": "Ouvrir les vidéos dans une autre app",
|
||||
"selectPlayer": "Sélectionner le lecteur",
|
||||
"customPlayers": "Lecteurs personnalisés",
|
||||
"systemDefault": "Par défaut du système",
|
||||
@@ -1009,7 +1153,7 @@
|
||||
"match": "Associer...",
|
||||
"fixMatch": "Corriger l'association...",
|
||||
"unmatch": "Dissocier",
|
||||
"unmatchConfirm": "Effacer l'association actuelle de cet élément ? Plex le traitera comme non associé jusqu'à ce que vous l'associiez de nouveau.",
|
||||
"unmatchConfirm": "Effacer cette correspondance ? Plex la traitera comme non associée jusqu'à réassociation.",
|
||||
"unmatchSuccess": "Association supprimée",
|
||||
"unmatchFailed": "Échec de la dissociation",
|
||||
"matchApplied": "Association appliquée",
|
||||
@@ -1029,7 +1173,7 @@
|
||||
"connected": "Connecté",
|
||||
"connectedAs": "Connecté en tant que @${username}",
|
||||
"disconnectConfirm": "Déconnecter le compte Trakt ?",
|
||||
"disconnectConfirmBody": "Plezy n'enverra plus d'événements de lecture à Trakt. Vous pouvez vous reconnecter à tout moment.",
|
||||
"disconnectConfirmBody": "Plezy cessera d'envoyer des événements à Trakt. Vous pouvez reconnecter à tout moment.",
|
||||
"scrobble": "Scrobbling en temps réel",
|
||||
"scrobbleDescription": "Envoyer les événements de lecture, pause et arrêt à Trakt pendant la lecture.",
|
||||
"watchedSync": "Synchroniser le statut « vu »",
|
||||
@@ -1037,13 +1181,13 @@
|
||||
},
|
||||
"trackers": {
|
||||
"title": "Trackers",
|
||||
"hubSubtitle": "Gardez votre progression synchronisée avec Trakt et d'autres services.",
|
||||
"hubSubtitle": "Synchronisez la progression de visionnage avec Trakt et d'autres services.",
|
||||
"notConnected": "Non connecté",
|
||||
"connectedAs": "Connecté en tant que @${username}",
|
||||
"scrobble": "Suivre la progression automatiquement",
|
||||
"scrobbleDescription": "Mettre à jour votre liste lorsque vous terminez un épisode ou un film.",
|
||||
"disconnectConfirm": "Déconnecter ${service} ?",
|
||||
"disconnectConfirmBody": "Plezy ne mettra plus à jour votre liste ${service}. Vous pouvez vous reconnecter à tout moment.",
|
||||
"disconnectConfirmBody": "Plezy cessera de mettre à jour ${service}. Reconnectez à tout moment.",
|
||||
"connectFailed": "Échec de la connexion à ${service}. Réessayez.",
|
||||
"services": {
|
||||
"mal": "MyAnimeList",
|
||||
@@ -1059,7 +1203,7 @@
|
||||
},
|
||||
"oauthProxy": {
|
||||
"title": "Se connecter à ${service}",
|
||||
"body": "Scannez ce code QR avec votre téléphone, ou ouvrez l'URL ci-dessous sur un appareil équipé d'un navigateur.",
|
||||
"body": "Scannez ce code QR ou ouvrez l'URL sur n'importe quel appareil.",
|
||||
"openToSignIn": "Ouvrir ${service} pour se connecter",
|
||||
"urlCopied": "URL copiée"
|
||||
},
|
||||
@@ -1077,5 +1221,39 @@
|
||||
"libraries": "Bibliothèques",
|
||||
"noLibraries": "Aucune bibliothèque disponible"
|
||||
}
|
||||
},
|
||||
"addServer": {
|
||||
"addJellyfinTitle": "Ajouter un serveur Jellyfin",
|
||||
"jellyfinUrlIntro": "Saisissez l'URL du serveur, par ex. `https://jellyfin.example.com`.",
|
||||
"serverUrl": "URL du serveur",
|
||||
"findServer": "Rechercher un serveur",
|
||||
"username": "Nom d'utilisateur",
|
||||
"password": "Mot de passe",
|
||||
"signIn": "Se connecter",
|
||||
"change": "Modifier",
|
||||
"required": "Requis",
|
||||
"couldNotReachServer": "Impossible de joindre le serveur : ${error}",
|
||||
"signInFailed": "Échec de la connexion : ${error}",
|
||||
"quickConnectFailed": "Échec de Quick Connect : ${error}",
|
||||
"addPlexTitle": "Se connecter avec Plex",
|
||||
"plexAuthIntro": "Connectez-vous avec un navigateur ou un code QR.",
|
||||
"plexQRPrompt": "Scannez ce QR code pour vous connecter.",
|
||||
"waitingForPlexConfirmation": "En attente de la confirmation de plex.tv…",
|
||||
"pinExpired": "Le PIN a expiré avant la connexion. Veuillez réessayer.",
|
||||
"duplicatePlexAccount": "Déjà connecté à Plex. Déconnectez-vous pour changer de compte.",
|
||||
"failedToRegisterAccount": "Échec de l'enregistrement du compte : ${error}",
|
||||
"enterJellyfinUrlError": "Saisissez l'URL de votre serveur Jellyfin",
|
||||
"addConnectionTitle": "Ajouter une connexion",
|
||||
"addConnectionTitleScoped": "Ajouter à ${name}",
|
||||
"addConnectionIntroGlobal": "Ajoutez un autre serveur multimédia. Plex et Jellyfin apparaissent ensemble sur Accueil.",
|
||||
"addConnectionIntroScoped": "Ajoutez un nouveau serveur, ou empruntez-en un à un autre profil.",
|
||||
"signInWithPlexCard": "Se connecter avec Plex",
|
||||
"signInWithPlexCardSubtitle": "Autorisez cet appareil. Les serveurs partagés sont ajoutés.",
|
||||
"signInWithPlexCardSubtitleScoped": "Autorisez un compte Plex. Les utilisateurs Home deviennent des profils.",
|
||||
"connectToJellyfinCard": "Se connecter à Jellyfin",
|
||||
"connectToJellyfinCardSubtitle": "Saisissez l'URL du serveur, le nom d'utilisateur et le mot de passe.",
|
||||
"connectToJellyfinCardSubtitleScoped": "Connectez-vous à un serveur Jellyfin. Lié à ${name}.",
|
||||
"borrowFromAnotherProfile": "Emprunter à un autre profil",
|
||||
"borrowFromAnotherProfileSubtitle": "Réutiliser la connexion d'un autre profil. Les profils protégés par PIN exigent un PIN."
|
||||
}
|
||||
}
|
||||
|
||||
+244
-66
@@ -3,13 +3,22 @@
|
||||
"title": "Plezy"
|
||||
},
|
||||
"auth": {
|
||||
"signIn": "Accedi",
|
||||
"signInWithPlex": "Accedi con Plex",
|
||||
"showQRCode": "Mostra QR Code",
|
||||
"authenticate": "Autenticazione",
|
||||
"authenticationTimeout": "Autenticazione scaduta. Riprova.",
|
||||
"scanQRToSignIn": "Scansiona il QR code per accedere",
|
||||
"waitingForAuth": "In attesa di autenticazione...\nCompleta l'accesso dal tuo browser.",
|
||||
"useBrowser": "Usa browser"
|
||||
"waitingForAuth": "In attesa di autenticazione...\nAccedi dal browser.",
|
||||
"useBrowser": "Usa browser",
|
||||
"or": "o",
|
||||
"connectToJellyfin": "Connetti a Jellyfin",
|
||||
"useQuickConnect": "Usa Quick Connect",
|
||||
"quickConnectCode": "Codice Quick Connect",
|
||||
"quickConnectInstructions": "Apri Quick Connect in Jellyfin e inserisci questo codice.",
|
||||
"quickConnectWaiting": "In attesa di approvazione…",
|
||||
"quickConnectCancel": "Annulla",
|
||||
"quickConnectExpired": "Quick Connect scaduto. Riprova."
|
||||
},
|
||||
"common": {
|
||||
"cancel": "Cancella",
|
||||
@@ -43,9 +52,6 @@
|
||||
"mute": "Muto",
|
||||
"ok": "OK",
|
||||
"reconnect": "Riconnetti",
|
||||
"exitConfirmTitle": "Uscire dall'app?",
|
||||
"exitConfirmMessage": "Sei sicuro di voler uscire?",
|
||||
"dontAskAgain": "Non chiedere più",
|
||||
"exit": "Esci",
|
||||
"viewAll": "Mostra tutto",
|
||||
"checkingNetwork": "Verifica rete...",
|
||||
@@ -55,7 +61,8 @@
|
||||
"startingOfflineMode": "Avvio modalità offline...",
|
||||
"loading": "Caricamento...",
|
||||
"fullscreen": "Schermo intero",
|
||||
"exitFullscreen": "Esci da schermo intero"
|
||||
"exitFullscreen": "Esci da schermo intero",
|
||||
"pressBackAgainToExit": "Premi di nuovo indietro per uscire"
|
||||
},
|
||||
"screens": {
|
||||
"licenses": "Licenze",
|
||||
@@ -104,22 +111,22 @@
|
||||
"gridView": "Griglia",
|
||||
"listView": "Elenco",
|
||||
"showHeroSection": "Mostra sezione principale",
|
||||
"useGlobalHubs": "Usa layout Home di Plex",
|
||||
"useGlobalHubsDescription": "Mostra gli hub della home page come il client Plex ufficiale. Se disattivato, mostra invece i suggerimenti per libreria.",
|
||||
"useGlobalHubs": "Usa layout home",
|
||||
"useGlobalHubsDescription": "Mostra hub Home unificati. Altrimenti usa i consigli della libreria.",
|
||||
"showServerNameOnHubs": "Mostra nome server sugli hub",
|
||||
"showServerNameOnHubsDescription": "Mostra sempre il nome del server nei titoli degli hub. Se disattivato, solo per nomi hub duplicati.",
|
||||
"showServerNameOnHubsDescription": "Mostra sempre i nomi dei server nei titoli degli hub.",
|
||||
"groupLibrariesByServer": "Raggruppa librerie per server",
|
||||
"groupLibrariesByServerDescription": "Mostra un'intestazione per ogni server Plex nella barra laterale quando sei connesso a più server.",
|
||||
"groupLibrariesByServerDescription": "Raggruppa le librerie laterali per server multimediale.",
|
||||
"alwaysKeepSidebarOpen": "Mantieni sempre aperta la barra laterale",
|
||||
"alwaysKeepSidebarOpenDescription": "La barra laterale rimane espansa e l'area del contenuto si adatta",
|
||||
"showUnwatchedCount": "Mostra conteggio non visti",
|
||||
"showUnwatchedCountDescription": "Mostra il numero di episodi non visti per serie e stagioni",
|
||||
"showEpisodeNumberOnCards": "Mostra numero episodio sulle schede",
|
||||
"showEpisodeNumberOnCardsDescription": "Mostra il numero dell'episodio accanto alla stagione (es. S2 E3) sulle schede degli episodi",
|
||||
"showEpisodeNumberOnCardsDescription": "Mostra stagione ed episodio sulle schede episodio",
|
||||
"showSeasonPostersOnTabs": "Mostra poster delle stagioni sulle schede",
|
||||
"showSeasonPostersOnTabsDescription": "Mostra il poster della stagione sopra ogni scheda di stagione nella pagina di dettaglio di una serie",
|
||||
"showSeasonPostersOnTabsDescription": "Mostra il poster di ogni stagione sopra la sua scheda",
|
||||
"hideSpoilers": "Nascondi spoiler per episodi non visti",
|
||||
"hideSpoilersDescription": "Sfoca le miniature e nascondi le descrizioni degli episodi che non hai ancora guardato",
|
||||
"hideSpoilersDescription": "Sfoca miniature e descrizioni degli episodi non visti",
|
||||
"playerBackend": "Motore di riproduzione",
|
||||
"exoPlayer": "ExoPlayer (Consigliato)",
|
||||
"mpv": "mpv",
|
||||
@@ -128,7 +135,7 @@
|
||||
"bufferSize": "Dimensione buffer",
|
||||
"bufferSizeMB": "${size}MB",
|
||||
"bufferSizeAuto": "Auto (Consigliato)",
|
||||
"bufferSizeWarning": "Il tuo dispositivo ha ${heap}MB di memoria. Un buffer di ${size}MB potrebbe causare problemi di riproduzione.",
|
||||
"bufferSizeWarning": "${heap}MB di memoria disponibile. Un buffer di ${size}MB può influire sulla riproduzione.",
|
||||
"defaultQualityTitle": "Qualità predefinita",
|
||||
"defaultQualityDescription": "Utilizzato all'avvio della riproduzione. Valori più bassi riducono la larghezza di banda.",
|
||||
"subtitleStyling": "Stile sottotitoli",
|
||||
@@ -140,16 +147,18 @@
|
||||
"defaultSleepTimer": "Timer spegnimento predefinito",
|
||||
"minutesUnit": "${minutes} minuti",
|
||||
"rememberTrackSelections": "Ricorda selezioni tracce per serie/film",
|
||||
"rememberTrackSelectionsDescription": "Salva automaticamente le preferenze delle lingue audio e sottotitoli quando cambi tracce durante la riproduzione",
|
||||
"rememberTrackSelectionsDescription": "Ricorda scelte audio e sottotitoli per titolo",
|
||||
"showChapterMarkersOnTimeline": "Mostra i marcatori dei capitoli sulla barra di avanzamento",
|
||||
"showChapterMarkersOnTimelineDescription": "Segmenta la barra di avanzamento ai confini dei capitoli",
|
||||
"clickVideoTogglesPlayback": "Fai clic sul video per avviare o mettere in pausa la riproduzione.",
|
||||
"clickVideoTogglesPlaybackDescription": "Se questa opzione è abilitata, facendo clic sul lettore video la riproduzione verrà avviata o messa in pausa. In caso contrario, facendo clic verranno mostrati o nascosti i controlli di riproduzione.",
|
||||
"clickVideoTogglesPlaybackDescription": "Clicca sul video per riprodurre/mettere in pausa invece di mostrare i controlli.",
|
||||
"videoPlayerControls": "Controlli del lettore video",
|
||||
"keyboardShortcuts": "Scorciatoie da tastiera",
|
||||
"keyboardShortcutsDescription": "Personalizza le scorciatoie da tastiera",
|
||||
"videoPlayerNavigation": "Navigazione del lettore video",
|
||||
"videoPlayerNavigationDescription": "Usa i tasti freccia per navigare nei controlli del lettore video",
|
||||
"watchTogetherRelay": "Relay Guarda Insieme",
|
||||
"watchTogetherRelayDescription": "Imposta un server relay personalizzato per Guarda Insieme. Tutti i partecipanti devono utilizzare lo stesso server.",
|
||||
"watchTogetherRelayDescription": "Imposta un relay personalizzato. Tutti devono usare lo stesso server.",
|
||||
"watchTogetherRelayHint": "https://mio-relay.esempio.it",
|
||||
"crashReporting": "Segnalazione errori",
|
||||
"crashReportingDescription": "Invia segnalazioni di errori per migliorare l'app",
|
||||
@@ -158,10 +167,10 @@
|
||||
"viewLogs": "Visualizza log",
|
||||
"viewLogsDescription": "Visualizza i log dell'applicazione",
|
||||
"clearCache": "Svuota cache",
|
||||
"clearCacheDescription": "Questa opzione cancellerà tutte le immagini e i dati memorizzati nella cache. Dopo aver cancellato la cache, l'app potrebbe impiegare più tempo per caricare i contenuti.",
|
||||
"clearCacheDescription": "Cancella immagini e dati in cache. Il contenuto può caricarsi più lentamente.",
|
||||
"clearCacheSuccess": "Cache cancellata correttamente",
|
||||
"resetSettings": "Ripristina impostazioni",
|
||||
"resetSettingsDescription": "Questa opzione ripristinerà tutte le impostazioni ai valori predefiniti. Non può essere annullata.",
|
||||
"resetSettingsDescription": "Ripristina impostazioni predefinite. Non si può annullare.",
|
||||
"resetSettingsSuccess": "Impostazioni ripristinate correttamente",
|
||||
"backup": "Backup",
|
||||
"exportSettings": "Esporta impostazioni",
|
||||
@@ -182,7 +191,7 @@
|
||||
"updateAvailable": "Aggiornamento disponibile",
|
||||
"checkForUpdates": "Controlla aggiornamenti",
|
||||
"autoCheckUpdatesOnStartup": "Controlla automaticamente gli aggiornamenti all'avvio",
|
||||
"autoCheckUpdatesOnStartupDescription": "Mostra una notifica quando è disponibile una nuova versione all'avvio",
|
||||
"autoCheckUpdatesOnStartupDescription": "Avvisa all'avvio quando è disponibile un aggiornamento",
|
||||
"validationErrorEnterNumber": "Inserisci un numero valido",
|
||||
"validationErrorDuration": "la durata deve essere compresa tra ${min} e ${max} ${unit}",
|
||||
"shortcutAlreadyAssigned": "Scorciatoia già assegnata a ${action}",
|
||||
@@ -192,6 +201,8 @@
|
||||
"autoSkipIntroDescription": "Salta automaticamente i marcatori dell'intro dopo alcuni secondi",
|
||||
"autoSkipCredits": "Salta Crediti Automaticamente",
|
||||
"autoSkipCreditsDescription": "Salta automaticamente i crediti e riproduci l'episodio successivo",
|
||||
"forceSkipMarkerFallback": "Forza marcatori fallback",
|
||||
"forceSkipMarkerFallbackDescription": "Usa pattern dei titoli dei capitoli anche se Plex ha marcatori",
|
||||
"autoSkipDelay": "Ritardo Salto Automatico",
|
||||
"autoSkipDelayDescription": "Aspetta ${seconds} secondi prima del salto automatico",
|
||||
"introPattern": "Pattern marcatore intro",
|
||||
@@ -213,8 +224,8 @@
|
||||
"downloadOnWifiOnly": "Scarica solo con WiFi",
|
||||
"downloadOnWifiOnlyDescription": "Impedisci i download quando si utilizza la rete dati cellulare",
|
||||
"autoRemoveWatchedDownloads": "Rimuovi automaticamente i download visti",
|
||||
"autoRemoveWatchedDownloadsDescription": "Elimina automaticamente episodi e film scaricati quando vengono segnati come visti",
|
||||
"cellularDownloadBlocked": "I download sono disabilitati sulla rete dati cellulare. Connettiti al WiFi o modifica l'impostazione.",
|
||||
"autoRemoveWatchedDownloadsDescription": "Elimina automaticamente i download già visti",
|
||||
"cellularDownloadBlocked": "I download sono bloccati su rete mobile. Usa WiFi o cambia impostazione.",
|
||||
"maxVolume": "Volume massimo",
|
||||
"maxVolumeDescription": "Consenti volume superiore al 100% per contenuti audio bassi",
|
||||
"maxVolumePercent": "${percent}%",
|
||||
@@ -227,22 +238,20 @@
|
||||
"companionRemoteServer": "Server telecomando",
|
||||
"companionRemoteServerDescription": "Consenti ai dispositivi mobili nella tua rete di controllare questa app",
|
||||
"autoPip": "Picture-in-Picture automatico",
|
||||
"autoPipDescription": "Attiva automaticamente il picture-in-picture quando si esce dall'app durante la riproduzione",
|
||||
"autoPipDescription": "Entra in picture-in-picture uscendo 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",
|
||||
"matchContentFrameRateDescription": "Adatta la frequenza del display al contenuto video",
|
||||
"matchRefreshRate": "Adatta frequenza di aggiornamento",
|
||||
"matchRefreshRateDescription": "Cambia la frequenza di aggiornamento del display per adattarla al contenuto video a schermo intero",
|
||||
"matchRefreshRateDescription": "Adatta la frequenza del display a schermo intero",
|
||||
"matchDynamicRange": "Adatta gamma dinamica",
|
||||
"matchDynamicRangeDescription": "Attiva automaticamente l'HDR per i contenuti HDR e torna in SDR all'uscita dal lettore",
|
||||
"matchDynamicRangeDescription": "Attiva HDR per contenuti HDR, poi torna a SDR",
|
||||
"displaySwitchDelay": "Ritardo cambio display",
|
||||
"tunneledPlayback": "Riproduzione tunnelizzata",
|
||||
"tunneledPlaybackDescription": "Usa il tunneling video accelerato dall'hardware. Disattiva se vedi uno schermo nero con audio su contenuti HDR",
|
||||
"tunneledPlaybackDescription": "Usa tunneling video. Disattiva se la riproduzione HDR mostra video nero.",
|
||||
"requireProfileSelectionOnOpen": "Chiedi profilo all'apertura",
|
||||
"requireProfileSelectionOnOpenDescription": "Mostra la selezione del profilo ogni volta che l'app viene aperta",
|
||||
"confirmExitOnBack": "Conferma prima di uscire",
|
||||
"confirmExitOnBackDescription": "Mostra una finestra di conferma quando si preme indietro per uscire dall'app",
|
||||
"forceTvMode": "Forza modalità TV",
|
||||
"forceTvModeDescription": "Usa il layout TV indipendentemente dal rilevamento automatico. Utile sui dispositivi Android TV che non segnalano la funzionalità leanback. Riavvia l'app al cambiamento.",
|
||||
"forceTvModeDescription": "Forza layout TV. Per dispositivi non rilevati automaticamente. Richiede riavvio.",
|
||||
"startInFullscreen": "Avvia a schermo intero",
|
||||
"startInFullscreenDescription": "Apri Plezy a schermo intero all'avvio",
|
||||
"autoHidePerformanceOverlay": "Nascondi automaticamente overlay prestazioni",
|
||||
@@ -251,15 +260,15 @@
|
||||
"showNavBarLabelsDescription": "Mostra le etichette sotto le icone della barra di navigazione",
|
||||
"liveTvDefaultFavorites": "Canali preferiti predefiniti",
|
||||
"liveTvDefaultFavoritesDescription": "Mostra solo i canali preferiti all'apertura della TV dal vivo",
|
||||
"display": "Display",
|
||||
"homeScreen": "Home Screen",
|
||||
"navigation": "Navigation",
|
||||
"window": "Window",
|
||||
"content": "Content",
|
||||
"player": "Player",
|
||||
"subtitlesAndConfig": "Subtitles & Configuration",
|
||||
"seekAndTiming": "Seek & Timing",
|
||||
"behavior": "Behavior"
|
||||
"display": "Schermo",
|
||||
"homeScreen": "Schermata Home",
|
||||
"navigation": "Navigazione",
|
||||
"window": "Finestra",
|
||||
"content": "Contenuti",
|
||||
"player": "Lettore",
|
||||
"subtitlesAndConfig": "Sottotitoli e configurazione",
|
||||
"seekAndTiming": "Ricerca e tempistica",
|
||||
"behavior": "Comportamento"
|
||||
},
|
||||
"search": {
|
||||
"hint": "Cerca film. spettacoli, musica...",
|
||||
@@ -330,7 +339,7 @@
|
||||
"shufflePlay": "Riproduzione casuale",
|
||||
"fileInfo": "Info sul file",
|
||||
"deleteFromServer": "Elimina dal server",
|
||||
"confirmDelete": "Questo eliminerà permanentemente questo contenuto e i suoi file dal tuo server. Questa azione non può essere annullata.",
|
||||
"confirmDelete": "Eliminare questo media e i suoi file dal server?",
|
||||
"deleteMultipleWarning": "Questo include tutti gli episodi e i loro file.",
|
||||
"mediaDeletedSuccessfully": "Elemento multimediale eliminato con successo",
|
||||
"mediaFailedToDelete": "Impossibile eliminare l'elemento multimediale",
|
||||
@@ -414,7 +423,7 @@
|
||||
"pipErrors": {
|
||||
"androidVersion": "Richiede Android 8.0 o versioni successive",
|
||||
"iosVersion": "Richiede iOS 15.0 o versioni successive",
|
||||
"permissionDisabled": "L'autorizzazione Picture-in-Picture è disabilitata. Abilitala in Impostazioni > App > Plezy > Picture-in-Picture",
|
||||
"permissionDisabled": "Picture-in-picture è disattivato. Attivalo nelle impostazioni di sistema.",
|
||||
"notSupported": "Questo dispositivo non supporta la modalità Picture-in-Picture",
|
||||
"voSwitchFailed": "Impossibile cambiare l'uscita video per Picture-in-Picture",
|
||||
"failed": "Impossibile avviare la modalità Picture-in-Picture",
|
||||
@@ -452,7 +461,7 @@
|
||||
"musicNotSupported": "La riproduzione musicale non è ancora supportata",
|
||||
"noDescriptionAvailable": "Nessuna descrizione disponibile",
|
||||
"noProfilesAvailable": "Nessun profilo disponibile",
|
||||
"contactAdminForProfiles": "Contatta il tuo amministratore Plex per aggiungere profili",
|
||||
"contactAdminForProfiles": "Contatta l'amministratore del server per aggiungere profili",
|
||||
"unableToDetermineLibrarySection": "Impossibile determinare la sezione della libreria per questo elemento",
|
||||
"logsCleared": "Log eliminati",
|
||||
"logsCopied": "Log copiati negli appunti",
|
||||
@@ -474,7 +483,7 @@
|
||||
"failedPlayback": "Impossibile ${action}: ${error}",
|
||||
"switchingToCompatiblePlayer": "Passaggio al lettore compatibile...",
|
||||
"serverLimitTitle": "Riproduzione non riuscita",
|
||||
"serverLimitBody": "Il server ha restituito un errore (HTTP 500). Di solito significa che il proprietario del server ha impostato un limite di banda o di transcodifica che sta rifiutando la tua sessione. Non c'è nulla da fare dal client — il proprietario del server deve modificare le sue impostazioni.",
|
||||
"serverLimitBody": "Errore server (HTTP 500). Un limite di banda/transcodifica probabilmente ha rifiutato questa sessione. Chiedi al proprietario di modificarlo.",
|
||||
"logsUploaded": "Log caricati",
|
||||
"logsUploadFailed": "Caricamento log fallito",
|
||||
"logId": "ID log"
|
||||
@@ -513,12 +522,85 @@
|
||||
"dialog": {
|
||||
"confirmAction": "Conferma azione"
|
||||
},
|
||||
"profiles": {
|
||||
"addPlezyProfile": "Aggiungi profilo Plezy",
|
||||
"switchingProfile": "Cambio profilo…",
|
||||
"deleteThisProfileTitle": "Eliminare questo profilo?",
|
||||
"deleteThisProfileMessage": "Rimuovi ${displayName}. Le connessioni non sono interessate.",
|
||||
"active": "Attivo",
|
||||
"manage": "Gestisci",
|
||||
"delete": "Elimina",
|
||||
"signOut": "Esci",
|
||||
"signOutPlexTitle": "Uscire da Plex?",
|
||||
"signOutPlexMessage": "Rimuovere ${displayName} e tutti gli utenti Plex Home? Puoi accedere di nuovo quando vuoi.",
|
||||
"signedOutPlex": "Uscito da Plex.",
|
||||
"signOutFailed": "Uscita non riuscita.",
|
||||
"sectionTitle": "Profili",
|
||||
"summarySingle": "Aggiungi profili per combinare utenti gestiti e identità locali",
|
||||
"summaryMultipleWithActive": "${count} profili · attivo: ${activeName}",
|
||||
"summaryMultiple": "${count} profili",
|
||||
"removeConnectionTitle": "Rimuovere la connessione?",
|
||||
"removeConnectionMessage": "Rimuovi l'accesso di ${displayName} a ${connectionLabel}. Gli altri profili lo mantengono.",
|
||||
"deleteProfileTitle": "Eliminare il profilo?",
|
||||
"deleteProfileMessage": "Rimuovi ${displayName} e le sue connessioni. I server restano disponibili.",
|
||||
"profileNameLabel": "Nome profilo",
|
||||
"pinProtectionLabel": "Protezione PIN",
|
||||
"pinManagedByPlex": "PIN gestito da Plex. Modifica su plex.tv.",
|
||||
"noPinSetEditOnPlex": "Nessun PIN impostato. Per richiederne uno, modifica l'utente Home su plex.tv.",
|
||||
"setPin": "Imposta PIN",
|
||||
"setPinTitle": "Imposta PIN",
|
||||
"confirmPinTitle": "Conferma PIN",
|
||||
"pinSet": "PIN impostato",
|
||||
"changePin": "Cambia",
|
||||
"removePin": "Rimuovi",
|
||||
"connectionsLabel": "Connessioni",
|
||||
"add": "Aggiungi",
|
||||
"deleteProfileButton": "Elimina profilo",
|
||||
"noConnectionsHint": "Nessuna connessione — aggiungine una per usare questo profilo.",
|
||||
"noConnections": "Nessuna connessione",
|
||||
"plexHomeAccount": "Account Plex Home",
|
||||
"connectionDefault": "Predefinita",
|
||||
"connectionAs": "come ${displayName}",
|
||||
"makeDefault": "Imposta come predefinita",
|
||||
"removeConnection": "Rimuovi",
|
||||
"profileRenamed": "Profilo rinominato.",
|
||||
"borrowAddTo": "Aggiungi a ${displayName}",
|
||||
"borrowExplain": "Prendi in prestito la connessione di un altro profilo. I profili protetti da PIN richiedono un PIN.",
|
||||
"borrowEmpty": "Nulla da prendere in prestito al momento.",
|
||||
"borrowEmptySubtitle": "Collega prima Plex o Jellyfin a un altro profilo.",
|
||||
"borrowFromProfile": "Da ${displayName}",
|
||||
"borrowConnectionBorrowed": "Connessione presa in prestito.",
|
||||
"borrowFailed": "Impossibile prendere in prestito la connessione.",
|
||||
"incorrectPin": "PIN errato.",
|
||||
"sourceProfileMissingParentAccount": "Al profilo di origine manca l'account principale.",
|
||||
"failedToVerifyPin": "Impossibile verificare il PIN.",
|
||||
"newProfile": "Nuovo profilo",
|
||||
"profileNameHint": "es. Ospiti, Bambini, Soggiorno",
|
||||
"pinProtectionOptional": "Protezione PIN (opzionale)",
|
||||
"pinExplain": "PIN a 4 cifre richiesto per cambiare profilo.",
|
||||
"continueButton": "Continua",
|
||||
"pinsDontMatch": "I PIN non corrispondono"
|
||||
},
|
||||
"connections": {
|
||||
"sectionTitle": "Connessioni",
|
||||
"addConnection": "Aggiungi connessione",
|
||||
"addConnectionSubtitleNoProfile": "Accedi con Plex o collega un server Jellyfin",
|
||||
"addConnectionSubtitleScoped": "Aggiungi a ${displayName}: Plex, Jellyfin o un'altra connessione profilo",
|
||||
"sessionExpiredOne": "Sessione scaduta per ${name}",
|
||||
"sessionExpiredMany": "Sessione scaduta per ${count} server",
|
||||
"signInAgain": "Accedi di nuovo"
|
||||
},
|
||||
"discover": {
|
||||
"title": "Esplora",
|
||||
"switchProfile": "Cambia profilo",
|
||||
"noContentAvailable": "Nessun contenuto disponibile",
|
||||
"addMediaToLibraries": "Aggiungi alcuni file multimediali alle tue librerie",
|
||||
"continueWatching": "Continua a guardare",
|
||||
"continueWatchingIn": "Continua a guardare in ${library}",
|
||||
"nextUp": "Prossimi",
|
||||
"nextUpIn": "Prossimi in ${library}",
|
||||
"recentlyAdded": "Aggiunti di recente",
|
||||
"recentlyAddedIn": "Aggiunti di recente in ${library}",
|
||||
"playEpisode": "S${season}E${episode}",
|
||||
"overview": "Panoramica",
|
||||
"cast": "Attori",
|
||||
@@ -532,7 +614,7 @@
|
||||
"errors": {
|
||||
"searchFailed": "Ricerca fallita: ${error}",
|
||||
"connectionTimeout": "Timeout connessione durante caricamento di ${context}",
|
||||
"connectionFailed": "Impossibile connettersi al server Plex.",
|
||||
"connectionFailed": "Impossibile connettersi al server multimediale",
|
||||
"failedToLoad": "Impossibile caricare ${context}: ${error}",
|
||||
"noClientAvailable": "Nessun client disponibile",
|
||||
"authenticationFailed": "Autenticazione fallita: ${error}",
|
||||
@@ -540,7 +622,9 @@
|
||||
"pleaseEnterToken": "Inserisci token",
|
||||
"invalidToken": "Token non valido",
|
||||
"failedToVerifyToken": "Verifica token fallita: ${error}",
|
||||
"failedToSwitchProfile": "Impossibile passare a ${displayName}"
|
||||
"failedToSwitchProfile": "Impossibile passare a ${displayName}",
|
||||
"failedToDeleteProfile": "Impossibile eliminare ${displayName}",
|
||||
"failedToRate": "Impossibile aggiornare la valutazione"
|
||||
},
|
||||
"libraries": {
|
||||
"title": "Librerie",
|
||||
@@ -595,17 +679,34 @@
|
||||
"seasons": "Stagioni",
|
||||
"episodes": "Episodi",
|
||||
"folders": "Cartelle"
|
||||
},
|
||||
"filterCategories": {
|
||||
"genre": "Genere",
|
||||
"year": "Anno",
|
||||
"contentRating": "Classificazione",
|
||||
"tag": "Tag"
|
||||
},
|
||||
"sortLabels": {
|
||||
"title": "Titolo",
|
||||
"dateAdded": "Data di aggiunta",
|
||||
"releaseDate": "Data di uscita",
|
||||
"rating": "Valutazione",
|
||||
"lastPlayed": "Ultima riproduzione",
|
||||
"playCount": "Riproduzioni",
|
||||
"random": "Casuale",
|
||||
"dateShared": "Data di condivisione",
|
||||
"latestEpisodeAirDate": "Data ultima messa in onda"
|
||||
}
|
||||
},
|
||||
"about": {
|
||||
"title": "Informazioni",
|
||||
"openSourceLicenses": "Licenze Open Source",
|
||||
"versionLabel": "Versione ${version}",
|
||||
"appDescription": "Un bellissimo client Plex per Flutter",
|
||||
"appDescription": "Un bellissimo client Plex e Jellyfin per Flutter",
|
||||
"viewLicensesDescription": "Visualizza le licenze delle librerie di terze parti"
|
||||
},
|
||||
"serverSelection": {
|
||||
"allServerConnectionsFailed": "Impossibile connettersi a nessun server. Controlla la tua rete e riprova.",
|
||||
"allServerConnectionsFailed": "Impossibile connettersi ai server. Controlla la rete.",
|
||||
"noServersFoundForAccount": "Nessun server trovato per ${username} (${email})",
|
||||
"failedToLoadServers": "Impossibile caricare i server: ${error}"
|
||||
},
|
||||
@@ -642,6 +743,7 @@
|
||||
"reloadGuide": "Ricarica guida",
|
||||
"now": "Ora",
|
||||
"today": "Oggi",
|
||||
"tomorrow": "Domani",
|
||||
"midnight": "Mezzanotte",
|
||||
"overnight": "Notte",
|
||||
"morning": "Mattina",
|
||||
@@ -655,7 +757,41 @@
|
||||
"joinSession": "Partecipa alla sessione in corso",
|
||||
"watchFromStart": "Guarda dall'inizio (${minutes} min fa)",
|
||||
"watchLive": "Guarda in diretta",
|
||||
"goToLive": "Vai al live"
|
||||
"goToLive": "Vai al live",
|
||||
"record": "Registra",
|
||||
"recordEpisode": "Registra episodio",
|
||||
"recordSeries": "Registra serie",
|
||||
"recordOptions": "Opzioni di registrazione",
|
||||
"recordings": "Registrazioni",
|
||||
"scheduledRecordings": "Programmate",
|
||||
"recordingRules": "Regole di registrazione",
|
||||
"noScheduledRecordings": "Nessuna registrazione programmata",
|
||||
"noRecordingRules": "Nessuna regola di registrazione",
|
||||
"manageRecording": "Gestisci registrazione",
|
||||
"cancelRecording": "Annulla registrazione",
|
||||
"cancelRecordingTitle": "Annullare questa registrazione?",
|
||||
"cancelRecordingMessage": "${title} non sarà più registrato.",
|
||||
"deleteRule": "Elimina regola",
|
||||
"deleteRuleTitle": "Eliminare la regola di registrazione?",
|
||||
"deleteRuleMessage": "I prossimi episodi di ${title} non saranno registrati.",
|
||||
"recordingScheduled": "Registrazione programmata",
|
||||
"alreadyScheduled": "Questo programma è già programmato",
|
||||
"dvrAdminRequired": "Le impostazioni DVR richiedono un account amministratore",
|
||||
"recordingFailed": "Impossibile programmare la registrazione",
|
||||
"recordingTargetMissing": "Impossibile determinare la libreria di registrazione",
|
||||
"recordNotAvailable": "Registrazione non disponibile per questo programma",
|
||||
"recordingCancelled": "Registrazione annullata",
|
||||
"recordingRuleDeleted": "Regola di registrazione eliminata",
|
||||
"processRecordingRules": "Rivaluta regole",
|
||||
"loadingRecordings": "Caricamento registrazioni...",
|
||||
"recordingInProgress": "Registrazione in corso",
|
||||
"recordingsCount": "${count} programmate",
|
||||
"editRule": "Modifica regola",
|
||||
"editRuleAction": "Modifica",
|
||||
"recordingRuleUpdated": "Regola di registrazione aggiornata",
|
||||
"guideReloadRequested": "Aggiornamento guida richiesto",
|
||||
"rulesProcessRequested": "Rivalutazione regole richiesta",
|
||||
"recordShow": "Registra programma"
|
||||
},
|
||||
"collections": {
|
||||
"title": "Raccolte",
|
||||
@@ -663,7 +799,7 @@
|
||||
"empty": "La raccolta è vuota",
|
||||
"unknownLibrarySection": "Impossibile eliminare: sezione libreria sconosciuta",
|
||||
"deleteCollection": "Elimina raccolta",
|
||||
"deleteConfirm": "Sei sicuro di voler eliminare \"${title}\"? Questa azione non può essere annullata.",
|
||||
"deleteConfirm": "Eliminare \"${title}\"? Non si può annullare.",
|
||||
"deleted": "Raccolta eliminata",
|
||||
"deleteFailed": "Impossibile eliminare la raccolta",
|
||||
"deleteFailedWithError": "Impossibile eliminare la raccolta: ${error}",
|
||||
@@ -747,11 +883,11 @@
|
||||
"pasteFromClipboard": "Incolla dagli appunti",
|
||||
"pleaseEnterCode": "Inserisci un codice sessione",
|
||||
"codeMustBe5Chars": "Il codice sessione deve essere di 5 caratteri",
|
||||
"joinInstructions": "Inserisci il codice sessione condiviso dall'host per unirti alla loro sessione di visione.",
|
||||
"joinInstructions": "Inserisci il codice sessione dell'host per partecipare.",
|
||||
"failedToCreate": "Impossibile creare la sessione",
|
||||
"failedToJoin": "Impossibile unirsi alla sessione",
|
||||
"sessionCodeCopied": "Codice sessione copiato negli appunti",
|
||||
"relayUnreachable": "Il server di inoltro non è raggiungibile. Questo potrebbe essere causato dal blocco della connessione da parte del tuo provider. Puoi comunque provare, ma Watch Together potrebbe non funzionare.",
|
||||
"relayUnreachable": "Server relay non raggiungibile. Il blocco ISP può impedire Watch Together.",
|
||||
"reconnectingToHost": "Riconnessione all'host...",
|
||||
"currentPlayback": "Riproduzione corrente",
|
||||
"joinCurrentPlayback": "Unisciti alla riproduzione corrente",
|
||||
@@ -766,7 +902,9 @@
|
||||
"waitingForParticipants": "In attesa che gli altri carichino...",
|
||||
"recentRooms": "Stanze recenti",
|
||||
"renameRoom": "Rinomina stanza",
|
||||
"removeRoom": "Rimuovi"
|
||||
"removeRoom": "Rimuovi",
|
||||
"guestSwitchUnavailable": "Impossibile cambiare — server non disponibile per la sincronizzazione",
|
||||
"guestSwitchFailed": "Impossibile cambiare — contenuto non trovato su questo server"
|
||||
},
|
||||
"downloads": {
|
||||
"title": "Download",
|
||||
@@ -779,10 +917,10 @@
|
||||
"deleteDownload": "Elimina download",
|
||||
"retryDownload": "Riprova download",
|
||||
"downloadQueued": "Download in coda",
|
||||
"serverErrorBitrate": "Errore del server — il file potrebbe superare il limite di bitrate dello streaming remoto",
|
||||
"serverErrorBitrate": "Errore server: il file può superare il limite di bitrate remoto",
|
||||
"episodesQueued": "${count} episodi in coda per il download",
|
||||
"downloadDeleted": "Download eliminato",
|
||||
"deleteConfirm": "Sei sicuro di voler eliminare \"${title}\"? Il file scaricato verrà rimosso dal tuo dispositivo.",
|
||||
"deleteConfirm": "Eliminare \"${title}\" da questo dispositivo?",
|
||||
"deletingWithProgress": "Eliminazione di ${title}... (${current} di ${total})",
|
||||
"deleting": "Eliminazione...",
|
||||
"queuedTooltip": "In coda",
|
||||
@@ -817,6 +955,12 @@
|
||||
"editSyncFilter": "Filtro di sincronizzazione",
|
||||
"syncAllItems": "Sincronizzazione di tutti gli elementi",
|
||||
"syncUnwatchedItems": "Sincronizzazione degli elementi non visti",
|
||||
"syncRuleServerContext": "Server: ${server} • ${status}",
|
||||
"syncRuleAvailable": "Disponibile",
|
||||
"syncRuleOffline": "Offline",
|
||||
"syncRuleSignInRequired": "Accesso richiesto",
|
||||
"syncRuleNotAvailableForProfile": "Non disponibile per il profilo attuale",
|
||||
"syncRuleUnknownServer": "Server sconosciuto",
|
||||
"syncRuleListCreated": "Regola di sincronizzazione creata"
|
||||
},
|
||||
"shaders": {
|
||||
@@ -846,7 +990,7 @@
|
||||
"connected": "Connesso",
|
||||
"serverRunning": "Server remoto attivo",
|
||||
"serverStopped": "Server remoto arrestato",
|
||||
"serverRunningDescription": "I dispositivi mobili nella tua rete possono scoprire e connettersi a questa app",
|
||||
"serverRunningDescription": "I dispositivi mobili sulla tua rete possono connettersi a questa app",
|
||||
"serverStoppedDescription": "Avvia il server per consentire ai dispositivi mobili di connettersi",
|
||||
"usePhoneToControl": "Usa il tuo dispositivo mobile per controllare questa app",
|
||||
"startServer": "Avvia server",
|
||||
@@ -854,20 +998,20 @@
|
||||
"minimize": "Riduci"
|
||||
},
|
||||
"pairing": {
|
||||
"discoveryDescription": "I dispositivi nella tua rete che eseguono Plezy con lo stesso account Plex appariranno automaticamente",
|
||||
"discoveryDescription": "I dispositivi Plezy con lo stesso account Plex appaiono qui",
|
||||
"hostAddressHint": "192.168.1.100:48632",
|
||||
"connecting": "Connessione...",
|
||||
"searchingForDevices": "Ricerca dispositivi...",
|
||||
"noDevicesFound": "Nessun dispositivo trovato nella tua rete",
|
||||
"noDevicesHint": "Assicurati che Plezy sia aperto sul tuo desktop e che entrambi i dispositivi siano sulla stessa rete WiFi",
|
||||
"noDevicesHint": "Apri Plezy su desktop e usa lo stesso WiFi",
|
||||
"availableDevices": "Dispositivi disponibili",
|
||||
"manualConnection": "Connessione manuale",
|
||||
"cryptoInitFailed": "Impossibile inizializzare la connessione sicura. Assicurati di aver effettuato l'accesso a un account Plex.",
|
||||
"cryptoInitFailed": "Impossibile avviare la connessione sicura. Accedi prima a Plex.",
|
||||
"validationHostRequired": "Inserisci l'indirizzo host",
|
||||
"validationHostFormat": "Il formato deve essere IP:porta (es. 192.168.1.100:48632)",
|
||||
"connectionTimedOut": "Connessione scaduta. Assicurati che entrambi i dispositivi siano sulla stessa rete.",
|
||||
"connectionTimedOut": "Connessione scaduta. Usa la stessa rete su entrambi i dispositivi.",
|
||||
"sessionNotFound": "Dispositivo non trovato. Assicurati che Plezy sia in esecuzione sull'host.",
|
||||
"authFailed": "Autenticazione fallita. Assicurati che entrambi i dispositivi utilizzino lo stesso account Plex.",
|
||||
"authFailed": "Autenticazione non riuscita. Entrambi i dispositivi devono usare lo stesso account Plex.",
|
||||
"failedToConnect": "Connessione fallita: ${error}"
|
||||
},
|
||||
"remote": {
|
||||
@@ -915,7 +1059,7 @@
|
||||
"externalPlayer": {
|
||||
"title": "Lettore esterno",
|
||||
"useExternalPlayer": "Usa lettore esterno",
|
||||
"useExternalPlayerDescription": "Apri i video in un'app esterna invece del lettore integrato",
|
||||
"useExternalPlayerDescription": "Apri video in un'altra app",
|
||||
"selectPlayer": "Seleziona lettore",
|
||||
"customPlayers": "Lettori personalizzati",
|
||||
"systemDefault": "Predefinito di sistema",
|
||||
@@ -1009,7 +1153,7 @@
|
||||
"match": "Abbina...",
|
||||
"fixMatch": "Correggi abbinamento...",
|
||||
"unmatch": "Rimuovi abbinamento",
|
||||
"unmatchConfirm": "Cancellare l'abbinamento corrente di questo elemento? Plex lo tratterà come non abbinato finché non lo abbinerai di nuovo.",
|
||||
"unmatchConfirm": "Cancellare questa corrispondenza? Plex la tratterà come non abbinata finché non verrà riabbinata.",
|
||||
"unmatchSuccess": "Abbinamento rimosso",
|
||||
"unmatchFailed": "Rimozione dell'abbinamento non riuscita",
|
||||
"matchApplied": "Abbinamento applicato",
|
||||
@@ -1029,7 +1173,7 @@
|
||||
"connected": "Connesso",
|
||||
"connectedAs": "Connesso come @${username}",
|
||||
"disconnectConfirm": "Disconnettere l'account Trakt?",
|
||||
"disconnectConfirmBody": "Plezy smetterà di inviare eventi di riproduzione a Trakt. Puoi riconnetterti in qualsiasi momento.",
|
||||
"disconnectConfirmBody": "Plezy smetterà di inviare eventi a Trakt. Puoi riconnetterti quando vuoi.",
|
||||
"scrobble": "Scrobbling in tempo reale",
|
||||
"scrobbleDescription": "Invia eventi di riproduzione, pausa e arresto a Trakt durante la riproduzione.",
|
||||
"watchedSync": "Sincronizza stato visualizzato",
|
||||
@@ -1037,13 +1181,13 @@
|
||||
},
|
||||
"trackers": {
|
||||
"title": "Tracker",
|
||||
"hubSubtitle": "Mantieni i tuoi progressi sincronizzati con Trakt e altri servizi.",
|
||||
"hubSubtitle": "Sincronizza l'avanzamento di visione con Trakt e altri servizi.",
|
||||
"notConnected": "Non connesso",
|
||||
"connectedAs": "Connesso come @${username}",
|
||||
"scrobble": "Traccia i progressi automaticamente",
|
||||
"scrobbleDescription": "Aggiorna la tua lista quando finisci un episodio o un film.",
|
||||
"disconnectConfirm": "Disconnettere ${service}?",
|
||||
"disconnectConfirmBody": "Plezy smetterà di aggiornare la tua lista ${service}. Puoi riconnetterti in qualsiasi momento.",
|
||||
"disconnectConfirmBody": "Plezy smetterà di aggiornare ${service}. Riconnetti quando vuoi.",
|
||||
"connectFailed": "Impossibile connettersi a ${service}. Riprova.",
|
||||
"services": {
|
||||
"mal": "MyAnimeList",
|
||||
@@ -1059,7 +1203,7 @@
|
||||
},
|
||||
"oauthProxy": {
|
||||
"title": "Accedi a ${service}",
|
||||
"body": "Scansiona questo codice QR con il telefono oppure apri l'URL sottostante su un dispositivo con browser.",
|
||||
"body": "Scansiona questo codice QR o apri l'URL su qualsiasi dispositivo.",
|
||||
"openToSignIn": "Apri ${service} per accedere",
|
||||
"urlCopied": "URL copiato"
|
||||
},
|
||||
@@ -1077,5 +1221,39 @@
|
||||
"libraries": "Librerie",
|
||||
"noLibraries": "Nessuna libreria disponibile"
|
||||
}
|
||||
},
|
||||
"addServer": {
|
||||
"addJellyfinTitle": "Aggiungi server Jellyfin",
|
||||
"jellyfinUrlIntro": "Inserisci l'URL del server, es. `https://jellyfin.example.com`.",
|
||||
"serverUrl": "URL del server",
|
||||
"findServer": "Trova server",
|
||||
"username": "Nome utente",
|
||||
"password": "Password",
|
||||
"signIn": "Accedi",
|
||||
"change": "Modifica",
|
||||
"required": "Obbligatorio",
|
||||
"couldNotReachServer": "Impossibile raggiungere il server: ${error}",
|
||||
"signInFailed": "Accesso non riuscito: ${error}",
|
||||
"quickConnectFailed": "Quick Connect non riuscito: ${error}",
|
||||
"addPlexTitle": "Accedi con Plex",
|
||||
"plexAuthIntro": "Accedi con un browser o un codice QR.",
|
||||
"plexQRPrompt": "Scansiona questo QR code per accedere.",
|
||||
"waitingForPlexConfirmation": "In attesa della conferma da plex.tv…",
|
||||
"pinExpired": "PIN scaduto prima dell'accesso. Riprova.",
|
||||
"duplicatePlexAccount": "Accesso a Plex già effettuato. Esci per cambiare account.",
|
||||
"failedToRegisterAccount": "Registrazione account non riuscita: ${error}",
|
||||
"enterJellyfinUrlError": "Inserisci l'URL del tuo server Jellyfin",
|
||||
"addConnectionTitle": "Aggiungi connessione",
|
||||
"addConnectionTitleScoped": "Aggiungi a ${name}",
|
||||
"addConnectionIntroGlobal": "Aggiungi un altro server multimediale. Plex e Jellyfin appaiono insieme in Home.",
|
||||
"addConnectionIntroScoped": "Aggiungi un nuovo server, o prendine in prestito uno da un altro profilo.",
|
||||
"signInWithPlexCard": "Accedi con Plex",
|
||||
"signInWithPlexCardSubtitle": "Autorizza questo dispositivo. I server condivisi vengono aggiunti.",
|
||||
"signInWithPlexCardSubtitleScoped": "Autorizza un account Plex. Gli utenti Home diventano profili.",
|
||||
"connectToJellyfinCard": "Connetti a Jellyfin",
|
||||
"connectToJellyfinCardSubtitle": "Inserisci URL del server, nome utente e password.",
|
||||
"connectToJellyfinCardSubtitleScoped": "Accedi a un server Jellyfin. Collegato a ${name}.",
|
||||
"borrowFromAnotherProfile": "Prendi in prestito da un altro profilo",
|
||||
"borrowFromAnotherProfileSubtitle": "Riutilizza la connessione di un altro profilo. I profili protetti da PIN richiedono un PIN."
|
||||
}
|
||||
}
|
||||
|
||||
+245
-67
@@ -3,13 +3,22 @@
|
||||
"title": "Plezy"
|
||||
},
|
||||
"auth": {
|
||||
"signIn": "サインイン",
|
||||
"signInWithPlex": "Plexでサインイン",
|
||||
"showQRCode": "QRコードを表示",
|
||||
"authenticate": "認証",
|
||||
"authenticationTimeout": "認証がタイムアウトしました。もう一度お試しください。",
|
||||
"scanQRToSignIn": "このQRコードをスキャンしてサインイン",
|
||||
"waitingForAuth": "認証を待機中...\nブラウザでサインインを完了してください。",
|
||||
"useBrowser": "ブラウザを使用"
|
||||
"waitingForAuth": "認証待ち...\nブラウザでサインインしてください。",
|
||||
"useBrowser": "ブラウザを使用",
|
||||
"or": "または",
|
||||
"connectToJellyfin": "Jellyfinに接続",
|
||||
"useQuickConnect": "Quick Connect を使う",
|
||||
"quickConnectCode": "Quick Connect コード",
|
||||
"quickConnectInstructions": "JellyfinでQuick Connectを開き、このコードを入力してください。",
|
||||
"quickConnectWaiting": "承認を待っています…",
|
||||
"quickConnectCancel": "キャンセル",
|
||||
"quickConnectExpired": "Quick Connectの有効期限が切れました。もう一度お試しください。"
|
||||
},
|
||||
"common": {
|
||||
"cancel": "キャンセル",
|
||||
@@ -43,9 +52,6 @@
|
||||
"mute": "ミュート",
|
||||
"ok": "OK",
|
||||
"reconnect": "再接続",
|
||||
"exitConfirmTitle": "アプリを終了しますか?",
|
||||
"exitConfirmMessage": "終了してもよろしいですか?",
|
||||
"dontAskAgain": "次回から表示しない",
|
||||
"exit": "終了",
|
||||
"viewAll": "すべて表示",
|
||||
"checkingNetwork": "ネットワークを確認中...",
|
||||
@@ -55,7 +61,8 @@
|
||||
"startingOfflineMode": "オフラインモードを開始中...",
|
||||
"loading": "読み込み中...",
|
||||
"fullscreen": "フルスクリーン",
|
||||
"exitFullscreen": "フルスクリーンを終了"
|
||||
"exitFullscreen": "フルスクリーンを終了",
|
||||
"pressBackAgainToExit": "もう一度押すと終了します"
|
||||
},
|
||||
"screens": {
|
||||
"licenses": "ライセンス",
|
||||
@@ -104,22 +111,22 @@
|
||||
"gridView": "グリッド",
|
||||
"listView": "リスト",
|
||||
"showHeroSection": "ヒーローセクションを表示",
|
||||
"useGlobalHubs": "Plex Homeレイアウトを使用",
|
||||
"useGlobalHubsDescription": "公式Plexクライアントのようにホームページのハブを表示。オフにすると、ライブラリごとのおすすめを表示。",
|
||||
"useGlobalHubs": "ホームレイアウトを使用",
|
||||
"useGlobalHubsDescription": "統合ホームハブを表示します。オフの場合はライブラリのおすすめを使用します。",
|
||||
"showServerNameOnHubs": "ハブにサーバー名を表示",
|
||||
"showServerNameOnHubsDescription": "ハブタイトルに常にサーバー名を表示。オフにすると、重複名のみ表示。",
|
||||
"showServerNameOnHubsDescription": "ハブのタイトルに常にサーバー名を表示します。",
|
||||
"groupLibrariesByServer": "サーバーごとにライブラリをグループ化",
|
||||
"groupLibrariesByServerDescription": "複数のサーバーに接続しているとき、サイドバーに各 Plex サーバーのヘッダーを表示します。",
|
||||
"groupLibrariesByServerDescription": "サイドバーのライブラリをメディアサーバーごとにまとめます。",
|
||||
"alwaysKeepSidebarOpen": "サイドバーを常に開いておく",
|
||||
"alwaysKeepSidebarOpenDescription": "サイドバーを展開したまま、コンテンツ領域が調整される",
|
||||
"showUnwatchedCount": "未視聴数を表示",
|
||||
"showUnwatchedCountDescription": "番組とシーズンに未視聴エピソード数を表示",
|
||||
"showEpisodeNumberOnCards": "カードにエピソード番号を表示",
|
||||
"showEpisodeNumberOnCardsDescription": "エピソードカードにシーズンと並べてエピソード番号(例: S2 E3)を表示",
|
||||
"showEpisodeNumberOnCardsDescription": "エピソードカードにシーズン番号とエピソード番号を表示します",
|
||||
"showSeasonPostersOnTabs": "タブにシーズンポスターを表示",
|
||||
"showSeasonPostersOnTabsDescription": "番組の詳細ページで、各シーズンタブの上にそのシーズンのポスターを表示します",
|
||||
"showSeasonPostersOnTabsDescription": "各シーズンのポスターをタブの上に表示します",
|
||||
"hideSpoilers": "未視聴エピソードのネタバレを非表示",
|
||||
"hideSpoilersDescription": "まだ視聴していないエピソードのサムネイルをぼかし、説明を非表示",
|
||||
"hideSpoilersDescription": "未視聴エピソードのサムネイルと説明をぼかします",
|
||||
"playerBackend": "プレーヤーバックエンド",
|
||||
"exoPlayer": "ExoPlayer(推奨)",
|
||||
"mpv": "mpv",
|
||||
@@ -128,7 +135,7 @@
|
||||
"bufferSize": "バッファサイズ",
|
||||
"bufferSizeMB": "${size}MB",
|
||||
"bufferSizeAuto": "自動(推奨)",
|
||||
"bufferSizeWarning": "デバイスのメモリは${heap}MBです。${size}MBのバッファは再生の問題を引き起こす可能性があります。",
|
||||
"bufferSizeWarning": "${heap}MBのメモリが利用可能です。${size}MBのバッファは再生に影響する可能性があります。",
|
||||
"defaultQualityTitle": "デフォルト画質",
|
||||
"defaultQualityDescription": "再生開始時に使用。低い値ほど帯域幅が削減されます。",
|
||||
"subtitleStyling": "字幕スタイル",
|
||||
@@ -140,16 +147,18 @@
|
||||
"defaultSleepTimer": "デフォルトスリープタイマー",
|
||||
"minutesUnit": "${minutes}分",
|
||||
"rememberTrackSelections": "番組/映画ごとにトラック選択を記憶",
|
||||
"rememberTrackSelectionsDescription": "再生中にトラックを変更すると、音声と字幕の言語設定を自動保存",
|
||||
"rememberTrackSelectionsDescription": "タイトルごとに音声と字幕の選択を記憶します",
|
||||
"showChapterMarkersOnTimeline": "シークバーにチャプターマーカーを表示",
|
||||
"showChapterMarkersOnTimelineDescription": "チャプターの境界でシークバーを区切る",
|
||||
"clickVideoTogglesPlayback": "動画クリックで再生/一時停止を切替",
|
||||
"clickVideoTogglesPlaybackDescription": "有効にすると、動画プレーヤーをクリックで再生/一時停止。それ以外は再生コントロールの表示/非表示。",
|
||||
"clickVideoTogglesPlaybackDescription": "コントロール表示ではなく、動画クリックで再生/一時停止します。",
|
||||
"videoPlayerControls": "動画プレーヤーコントロール",
|
||||
"keyboardShortcuts": "キーボードショートカット",
|
||||
"keyboardShortcutsDescription": "キーボードショートカットをカスタマイズ",
|
||||
"videoPlayerNavigation": "動画プレーヤーナビゲーション",
|
||||
"videoPlayerNavigationDescription": "矢印キーで動画プレーヤーコントロールを操作",
|
||||
"watchTogetherRelay": "一緒に視聴リレーサーバー",
|
||||
"watchTogetherRelayDescription": "一緒に視聴用のカスタムリレーサーバーを設定します。すべての参加者が同じサーバーを使用する必要があります。",
|
||||
"watchTogetherRelayDescription": "カスタムリレーを設定します。全員が同じサーバーを使う必要があります。",
|
||||
"watchTogetherRelayHint": "https://my-relay.example.com",
|
||||
"crashReporting": "クラッシュレポート",
|
||||
"crashReportingDescription": "アプリの改善に役立つクラッシュレポートを送信",
|
||||
@@ -158,10 +167,10 @@
|
||||
"viewLogs": "ログを表示",
|
||||
"viewLogsDescription": "アプリケーションログを表示",
|
||||
"clearCache": "キャッシュをクリア",
|
||||
"clearCacheDescription": "キャッシュされたすべての画像とデータをクリアします。クリア後、コンテンツの読み込みに時間がかかる場合があります。",
|
||||
"clearCacheDescription": "キャッシュ済みの画像とデータを削除します。コンテンツの読み込みが遅くなる場合があります。",
|
||||
"clearCacheSuccess": "キャッシュを正常にクリアしました",
|
||||
"resetSettings": "設定をリセット",
|
||||
"resetSettingsDescription": "すべての設定をデフォルト値にリセットします。この操作は元に戻せません。",
|
||||
"resetSettingsDescription": "設定を既定に戻します。元に戻せません。",
|
||||
"resetSettingsSuccess": "設定を正常にリセットしました",
|
||||
"backup": "バックアップ",
|
||||
"exportSettings": "設定をエクスポート",
|
||||
@@ -182,7 +191,7 @@
|
||||
"updateAvailable": "アップデート利用可能",
|
||||
"checkForUpdates": "アップデートを確認",
|
||||
"autoCheckUpdatesOnStartup": "起動時にアップデートを自動的に確認",
|
||||
"autoCheckUpdatesOnStartupDescription": "起動時に新しいバージョンが利用可能な場合に通知を表示",
|
||||
"autoCheckUpdatesOnStartupDescription": "起動時にアップデートがある場合は通知します",
|
||||
"validationErrorEnterNumber": "有効な数値を入力してください",
|
||||
"validationErrorDuration": "時間は${min}から${max} ${unit}の間である必要があります",
|
||||
"shortcutAlreadyAssigned": "ショートカットは既に${action}に割り当てられています",
|
||||
@@ -192,6 +201,8 @@
|
||||
"autoSkipIntroDescription": "数秒後にイントロマーカーを自動的にスキップ",
|
||||
"autoSkipCredits": "クレジットを自動スキップ",
|
||||
"autoSkipCreditsDescription": "クレジットを自動的にスキップして次のエピソードを再生",
|
||||
"forceSkipMarkerFallback": "フォールバックマーカーを強制",
|
||||
"forceSkipMarkerFallbackDescription": "Plexにマーカーがある場合でもチャプタータイトルのパターンを使用します",
|
||||
"autoSkipDelay": "自動スキップの遅延",
|
||||
"autoSkipDelayDescription": "自動スキップまで${seconds}秒待機",
|
||||
"introPattern": "イントロマーカーパターン",
|
||||
@@ -213,8 +224,8 @@
|
||||
"downloadOnWifiOnly": "WiFiのみでダウンロード",
|
||||
"downloadOnWifiOnlyDescription": "モバイルデータ通信時のダウンロードを防止",
|
||||
"autoRemoveWatchedDownloads": "視聴済みダウンロードの自動削除",
|
||||
"autoRemoveWatchedDownloadsDescription": "視聴済みにしたエピソードや映画のダウンロードを自動的に削除",
|
||||
"cellularDownloadBlocked": "モバイルデータ通信ではダウンロードが無効です。WiFiに接続するか設定を変更してください。",
|
||||
"autoRemoveWatchedDownloadsDescription": "視聴済みのダウンロードを自動削除します",
|
||||
"cellularDownloadBlocked": "モバイル通信ではダウンロードがブロックされています。WiFiを使うか設定を変更してください。",
|
||||
"maxVolume": "最大音量",
|
||||
"maxVolumeDescription": "静かなメディアに対して100%以上の音量ブーストを許可",
|
||||
"maxVolumePercent": "${percent}%",
|
||||
@@ -227,22 +238,20 @@
|
||||
"companionRemoteServer": "コンパニオンリモートサーバー",
|
||||
"companionRemoteServerDescription": "ネットワーク上のモバイルデバイスからこのアプリを操作できるようにする",
|
||||
"autoPip": "自動ピクチャーインピクチャー",
|
||||
"autoPipDescription": "再生中にアプリを離れると自動的にピクチャーインピクチャーに移行",
|
||||
"autoPipDescription": "再生中に離れるとピクチャーインピクチャーに入ります",
|
||||
"matchContentFrameRate": "コンテンツのフレームレートに合わせる",
|
||||
"matchContentFrameRateDescription": "動画コンテンツに合わせてディスプレイのリフレッシュレートを調整し、ジャダーを低減しバッテリーを節約",
|
||||
"matchContentFrameRateDescription": "表示のリフレッシュレートを動画コンテンツに合わせます",
|
||||
"matchRefreshRate": "リフレッシュレートを合わせる",
|
||||
"matchRefreshRateDescription": "フルスクリーン時にディスプレイのリフレッシュレートを動画コンテンツに合わせて切り替える",
|
||||
"matchRefreshRateDescription": "全画面時に表示のリフレッシュレートを合わせます",
|
||||
"matchDynamicRange": "ダイナミックレンジを合わせる",
|
||||
"matchDynamicRangeDescription": "HDRコンテンツに対して自動的にHDRを有効にし、プレーヤーを閉じるとSDRに戻す",
|
||||
"matchDynamicRangeDescription": "HDRコンテンツではHDRに切り替え、その後SDRに戻します",
|
||||
"displaySwitchDelay": "ディスプレイ切り替え遅延",
|
||||
"tunneledPlayback": "トンネル再生",
|
||||
"tunneledPlaybackDescription": "ハードウェアアクセラレーションされたビデオトンネリングを使用。HDRコンテンツで音声のみで画面が黒くなる場合は無効にしてください",
|
||||
"tunneledPlaybackDescription": "動画トンネリングを使用します。HDR再生で画面が黒くなる場合は無効にしてください。",
|
||||
"requireProfileSelectionOnOpen": "アプリ起動時にプロフィールを確認",
|
||||
"requireProfileSelectionOnOpenDescription": "アプリを開くたびにプロフィール選択を表示",
|
||||
"confirmExitOnBack": "終了前に確認",
|
||||
"confirmExitOnBackDescription": "戻るボタンでアプリを終了する際に確認ダイアログを表示",
|
||||
"forceTvMode": "TVモードを強制",
|
||||
"forceTvModeDescription": "自動検出に関係なくTVレイアウトを使用します。leanback機能を報告しないAndroid TVデバイスで便利です。変更するとアプリが再起動されます。",
|
||||
"forceTvModeDescription": "TVレイアウトを強制します。自動検出しないデバイス向けです。再起動が必要です。",
|
||||
"startInFullscreen": "全画面表示で起動",
|
||||
"startInFullscreenDescription": "起動時にPlezyを全画面モードで開きます",
|
||||
"autoHidePerformanceOverlay": "パフォーマンスオーバーレイを自動非表示",
|
||||
@@ -251,15 +260,15 @@
|
||||
"showNavBarLabelsDescription": "ナビゲーションバーアイコンの下にテキストラベルを表示",
|
||||
"liveTvDefaultFavorites": "お気に入りチャンネルをデフォルトに",
|
||||
"liveTvDefaultFavoritesDescription": "ライブTV を開いたときにお気に入りチャンネルのみ表示",
|
||||
"display": "Display",
|
||||
"homeScreen": "Home Screen",
|
||||
"navigation": "Navigation",
|
||||
"window": "Window",
|
||||
"content": "Content",
|
||||
"player": "Player",
|
||||
"subtitlesAndConfig": "Subtitles & Configuration",
|
||||
"seekAndTiming": "Seek & Timing",
|
||||
"behavior": "Behavior"
|
||||
"display": "ディスプレイ",
|
||||
"homeScreen": "ホーム画面",
|
||||
"navigation": "ナビゲーション",
|
||||
"window": "ウィンドウ",
|
||||
"content": "コンテンツ",
|
||||
"player": "プレーヤー",
|
||||
"subtitlesAndConfig": "字幕と設定",
|
||||
"seekAndTiming": "シークとタイミング",
|
||||
"behavior": "動作"
|
||||
},
|
||||
"search": {
|
||||
"hint": "映画、番組、音楽を検索...",
|
||||
@@ -330,7 +339,7 @@
|
||||
"shufflePlay": "シャッフル再生",
|
||||
"fileInfo": "ファイル情報",
|
||||
"deleteFromServer": "サーバーから削除",
|
||||
"confirmDelete": "このメディアとそのファイルがサーバーから完全に削除されます。この操作は元に戻せません。",
|
||||
"confirmDelete": "このメディアとそのファイルをサーバーから削除しますか?",
|
||||
"deleteMultipleWarning": "すべてのエピソードとそのファイルが含まれます。",
|
||||
"mediaDeletedSuccessfully": "メディアアイテムを正常に削除しました",
|
||||
"mediaFailedToDelete": "メディアアイテムの削除に失敗しました",
|
||||
@@ -414,7 +423,7 @@
|
||||
"pipErrors": {
|
||||
"androidVersion": "Android 8.0以降が必要です",
|
||||
"iosVersion": "iOS 15.0以降が必要です",
|
||||
"permissionDisabled": "ピクチャーインピクチャーの権限が無効です。設定 > アプリ > Plezy > ピクチャーインピクチャーで有効にしてください",
|
||||
"permissionDisabled": "ピクチャーインピクチャーが無効です。システム設定で有効にしてください。",
|
||||
"notSupported": "デバイスはピクチャーインピクチャーモードをサポートしていません",
|
||||
"voSwitchFailed": "ピクチャーインピクチャーの映像出力切替に失敗しました",
|
||||
"failed": "ピクチャーインピクチャーの開始に失敗しました",
|
||||
@@ -452,7 +461,7 @@
|
||||
"musicNotSupported": "音楽の再生はまだサポートされていません",
|
||||
"noDescriptionAvailable": "説明はありません",
|
||||
"noProfilesAvailable": "利用可能なプロフィールがありません",
|
||||
"contactAdminForProfiles": "プロフィールを追加するにはPlex管理者にお問い合わせください",
|
||||
"contactAdminForProfiles": "プロファイルを追加するにはサーバー管理者に連絡してください",
|
||||
"unableToDetermineLibrarySection": "このアイテムのライブラリセクションを判別できません",
|
||||
"logsCleared": "ログをクリアしました",
|
||||
"logsCopied": "ログをクリップボードにコピーしました",
|
||||
@@ -474,7 +483,7 @@
|
||||
"failedPlayback": "${action}に失敗しました: ${error}",
|
||||
"switchingToCompatiblePlayer": "互換プレーヤーに切替中...",
|
||||
"serverLimitTitle": "再生に失敗しました",
|
||||
"serverLimitBody": "サーバーからエラーが返されました (HTTP 500)。通常、これはサーバーの所有者が帯域幅またはトランスコードの制限を設定しており、セッションが拒否されていることを意味します。クライアント側でできることはありません — サーバーの所有者が設定を調整する必要があります。",
|
||||
"serverLimitBody": "サーバーエラー(HTTP 500)。帯域幅/トランスコード制限により拒否された可能性があります。所有者に調整を依頼してください。",
|
||||
"logsUploaded": "ログをアップロードしました",
|
||||
"logsUploadFailed": "ログのアップロードに失敗しました",
|
||||
"logId": "ログID"
|
||||
@@ -513,12 +522,85 @@
|
||||
"dialog": {
|
||||
"confirmAction": "操作の確認"
|
||||
},
|
||||
"profiles": {
|
||||
"addPlezyProfile": "Plezyプロファイルを追加",
|
||||
"switchingProfile": "プロファイルを切り替え中…",
|
||||
"deleteThisProfileTitle": "このプロファイルを削除しますか?",
|
||||
"deleteThisProfileMessage": "${displayName}を削除します。接続には影響しません。",
|
||||
"active": "アクティブ",
|
||||
"manage": "管理",
|
||||
"delete": "削除",
|
||||
"signOut": "サインアウト",
|
||||
"signOutPlexTitle": "Plex からサインアウトしますか?",
|
||||
"signOutPlexMessage": "${displayName}とすべてのPlex Homeユーザーを削除しますか?いつでも再サインインできます。",
|
||||
"signedOutPlex": "Plex からサインアウトしました。",
|
||||
"signOutFailed": "サインアウトに失敗しました。",
|
||||
"sectionTitle": "プロファイル",
|
||||
"summarySingle": "プロファイルを追加して、管理対象ユーザーとローカルIDを混在させます",
|
||||
"summaryMultipleWithActive": "${count}個のプロファイル · アクティブ: ${activeName}",
|
||||
"summaryMultiple": "${count}個のプロファイル",
|
||||
"removeConnectionTitle": "接続を削除しますか?",
|
||||
"removeConnectionMessage": "${displayName}の${connectionLabel}へのアクセスを削除します。他のプロフィールには残ります。",
|
||||
"deleteProfileTitle": "プロファイルを削除しますか?",
|
||||
"deleteProfileMessage": "${displayName}とその接続を削除します。サーバーは引き続き利用できます。",
|
||||
"profileNameLabel": "プロファイル名",
|
||||
"pinProtectionLabel": "PIN保護",
|
||||
"pinManagedByPlex": "PINはPlexで管理されています。plex.tvで編集してください。",
|
||||
"noPinSetEditOnPlex": "PINが設定されていません。要求するには、plex.tvでHomeユーザーを編集してください。",
|
||||
"setPin": "PINを設定",
|
||||
"setPinTitle": "PINを設定",
|
||||
"confirmPinTitle": "PINを確認",
|
||||
"pinSet": "PIN設定済み",
|
||||
"changePin": "変更",
|
||||
"removePin": "削除",
|
||||
"connectionsLabel": "接続",
|
||||
"add": "追加",
|
||||
"deleteProfileButton": "プロファイルを削除",
|
||||
"noConnectionsHint": "接続がありません — このプロファイルを使うには1つ追加してください。",
|
||||
"noConnections": "接続がありません",
|
||||
"plexHomeAccount": "Plex Homeアカウント",
|
||||
"connectionDefault": "デフォルト",
|
||||
"connectionAs": "${displayName}として",
|
||||
"makeDefault": "デフォルトに設定",
|
||||
"removeConnection": "削除",
|
||||
"profileRenamed": "プロフィール名を変更しました。",
|
||||
"borrowAddTo": "${displayName}に追加",
|
||||
"borrowExplain": "別のプロフィールの接続を借用します。PIN保護されたプロフィールにはPINが必要です。",
|
||||
"borrowEmpty": "まだ借りるものがありません。",
|
||||
"borrowEmptySubtitle": "まず別のプロフィールにPlexまたはJellyfinを接続してください。",
|
||||
"borrowFromProfile": "${displayName}から",
|
||||
"borrowConnectionBorrowed": "接続を借用しました。",
|
||||
"borrowFailed": "接続を借用できませんでした。",
|
||||
"incorrectPin": "PINが正しくありません。",
|
||||
"sourceProfileMissingParentAccount": "ソースプロフィールに親アカウントがありません。",
|
||||
"failedToVerifyPin": "PINを確認できませんでした。",
|
||||
"newProfile": "新しいプロファイル",
|
||||
"profileNameHint": "例:ゲスト、キッズ、ファミリールーム",
|
||||
"pinProtectionOptional": "PIN保護(オプション)",
|
||||
"pinExplain": "プロフィール切り替えには4桁のPINが必要です。",
|
||||
"continueButton": "続ける",
|
||||
"pinsDontMatch": "PINが一致しません"
|
||||
},
|
||||
"connections": {
|
||||
"sectionTitle": "接続",
|
||||
"addConnection": "接続を追加",
|
||||
"addConnectionSubtitleNoProfile": "Plexでサインインするか、Jellyfinサーバーに接続",
|
||||
"addConnectionSubtitleScoped": "${displayName}に追加: Plex、Jellyfin、または別プロフィールの接続",
|
||||
"sessionExpiredOne": "${name} のセッションの有効期限が切れました",
|
||||
"sessionExpiredMany": "${count} 台のサーバーのセッションの有効期限が切れました",
|
||||
"signInAgain": "再度サインイン"
|
||||
},
|
||||
"discover": {
|
||||
"title": "探す",
|
||||
"switchProfile": "プロフィール切替",
|
||||
"noContentAvailable": "コンテンツがありません",
|
||||
"addMediaToLibraries": "ライブラリにメディアを追加してください",
|
||||
"continueWatching": "視聴を続ける",
|
||||
"continueWatchingIn": "${library}の視聴を続ける",
|
||||
"nextUp": "次のエピソード",
|
||||
"nextUpIn": "${library}の次のエピソード",
|
||||
"recentlyAdded": "最近追加",
|
||||
"recentlyAddedIn": "${library}に最近追加",
|
||||
"playEpisode": "S${season}E${episode}",
|
||||
"overview": "あらすじ",
|
||||
"cast": "キャスト",
|
||||
@@ -532,7 +614,7 @@
|
||||
"errors": {
|
||||
"searchFailed": "検索に失敗しました: ${error}",
|
||||
"connectionTimeout": "${context}の読み込み中に接続がタイムアウトしました",
|
||||
"connectionFailed": "Plexサーバーに接続できません",
|
||||
"connectionFailed": "メディアサーバーに接続できません",
|
||||
"failedToLoad": "${context}の読み込みに失敗しました: ${error}",
|
||||
"noClientAvailable": "クライアントが利用できません",
|
||||
"authenticationFailed": "認証に失敗しました: ${error}",
|
||||
@@ -540,7 +622,9 @@
|
||||
"pleaseEnterToken": "トークンを入力してください",
|
||||
"invalidToken": "無効なトークン",
|
||||
"failedToVerifyToken": "トークンの検証に失敗しました: ${error}",
|
||||
"failedToSwitchProfile": "${displayName}への切替に失敗しました"
|
||||
"failedToSwitchProfile": "${displayName}への切替に失敗しました",
|
||||
"failedToDeleteProfile": "${displayName}の削除に失敗しました",
|
||||
"failedToRate": "評価を更新できませんでした"
|
||||
},
|
||||
"libraries": {
|
||||
"title": "ライブラリ",
|
||||
@@ -595,17 +679,34 @@
|
||||
"seasons": "シーズン",
|
||||
"episodes": "エピソード",
|
||||
"folders": "フォルダ"
|
||||
},
|
||||
"filterCategories": {
|
||||
"genre": "ジャンル",
|
||||
"year": "年",
|
||||
"contentRating": "視聴年齢区分",
|
||||
"tag": "タグ"
|
||||
},
|
||||
"sortLabels": {
|
||||
"title": "タイトル",
|
||||
"dateAdded": "追加日",
|
||||
"releaseDate": "リリース日",
|
||||
"rating": "評価",
|
||||
"lastPlayed": "最終再生",
|
||||
"playCount": "再生回数",
|
||||
"random": "ランダム",
|
||||
"dateShared": "共有日",
|
||||
"latestEpisodeAirDate": "最新エピソード放送日"
|
||||
}
|
||||
},
|
||||
"about": {
|
||||
"title": "アプリについて",
|
||||
"openSourceLicenses": "オープンソースライセンス",
|
||||
"versionLabel": "バージョン ${version}",
|
||||
"appDescription": "Flutter製の美しいPlexクライアント",
|
||||
"appDescription": "Flutter製の美しいPlex・Jellyfinクライアント",
|
||||
"viewLicensesDescription": "サードパーティライブラリのライセンスを表示"
|
||||
},
|
||||
"serverSelection": {
|
||||
"allServerConnectionsFailed": "どのサーバーにも接続できませんでした。ネットワークを確認してもう一度お試しください。",
|
||||
"allServerConnectionsFailed": "どのサーバーにも接続できませんでした。ネットワークを確認してください。",
|
||||
"noServersFoundForAccount": "${username} (${email})のサーバーが見つかりません",
|
||||
"failedToLoadServers": "サーバーの読み込みに失敗しました: ${error}"
|
||||
},
|
||||
@@ -642,6 +743,7 @@
|
||||
"reloadGuide": "番組表を再読込",
|
||||
"now": "現在",
|
||||
"today": "今日",
|
||||
"tomorrow": "明日",
|
||||
"midnight": "深夜",
|
||||
"overnight": "深夜",
|
||||
"morning": "朝",
|
||||
@@ -655,7 +757,41 @@
|
||||
"joinSession": "進行中のセッションに参加",
|
||||
"watchFromStart": "最初から視聴(${minutes}分前に開始)",
|
||||
"watchLive": "ライブで視聴",
|
||||
"goToLive": "ライブに移動"
|
||||
"goToLive": "ライブに移動",
|
||||
"record": "録画",
|
||||
"recordEpisode": "このエピソードを録画",
|
||||
"recordSeries": "シリーズを録画",
|
||||
"recordOptions": "録画オプション",
|
||||
"recordings": "録画",
|
||||
"scheduledRecordings": "予約",
|
||||
"recordingRules": "録画ルール",
|
||||
"noScheduledRecordings": "予約された録画はありません",
|
||||
"noRecordingRules": "録画ルールはまだありません",
|
||||
"manageRecording": "録画を管理",
|
||||
"cancelRecording": "録画をキャンセル",
|
||||
"cancelRecordingTitle": "この録画をキャンセルしますか?",
|
||||
"cancelRecordingMessage": "${title} は録画されなくなります。",
|
||||
"deleteRule": "ルールを削除",
|
||||
"deleteRuleTitle": "録画ルールを削除しますか?",
|
||||
"deleteRuleMessage": "${title} の今後のエピソードは録画されません。",
|
||||
"recordingScheduled": "録画を予約しました",
|
||||
"alreadyScheduled": "この番組はすでに予約されています",
|
||||
"dvrAdminRequired": "DVR 設定には管理者アカウントが必要です",
|
||||
"recordingFailed": "録画を予約できませんでした",
|
||||
"recordingTargetMissing": "録画ライブラリを特定できませんでした",
|
||||
"recordNotAvailable": "この番組は録画できません",
|
||||
"recordingCancelled": "録画をキャンセルしました",
|
||||
"recordingRuleDeleted": "録画ルールを削除しました",
|
||||
"processRecordingRules": "ルールを再評価",
|
||||
"loadingRecordings": "録画を読み込み中...",
|
||||
"recordingInProgress": "録画中",
|
||||
"recordingsCount": "${count} 件予約済み",
|
||||
"editRule": "ルールを編集",
|
||||
"editRuleAction": "編集",
|
||||
"recordingRuleUpdated": "録画ルールを更新しました",
|
||||
"guideReloadRequested": "ガイドの更新を要求しました",
|
||||
"rulesProcessRequested": "ルールの再評価を要求しました",
|
||||
"recordShow": "番組を録画"
|
||||
},
|
||||
"collections": {
|
||||
"title": "コレクション",
|
||||
@@ -663,7 +799,7 @@
|
||||
"empty": "コレクションは空です",
|
||||
"unknownLibrarySection": "削除できません:不明なライブラリセクション",
|
||||
"deleteCollection": "コレクションを削除",
|
||||
"deleteConfirm": "\"${title}\"を削除してもよろしいですか?この操作は元に戻せません。",
|
||||
"deleteConfirm": "「${title}」を削除しますか?元に戻せません。",
|
||||
"deleted": "コレクションを削除しました",
|
||||
"deleteFailed": "コレクションの削除に失敗しました",
|
||||
"deleteFailedWithError": "コレクションの削除に失敗しました: ${error}",
|
||||
@@ -747,11 +883,11 @@
|
||||
"pasteFromClipboard": "クリップボードから貼り付け",
|
||||
"pleaseEnterCode": "セッションコードを入力してください",
|
||||
"codeMustBe5Chars": "セッションコードは5文字である必要があります",
|
||||
"joinInstructions": "ホストが共有したセッションコードを入力して視聴セッションに参加してください。",
|
||||
"joinInstructions": "参加するにはホストのセッションコードを入力してください。",
|
||||
"failedToCreate": "セッションの作成に失敗しました",
|
||||
"failedToJoin": "セッションへの参加に失敗しました",
|
||||
"sessionCodeCopied": "セッションコードをクリップボードにコピーしました",
|
||||
"relayUnreachable": "リレーサーバーに到達できません。ISPが接続をブロックしている可能性があります。試すことはできますが、一緒に見る機能が動作しない場合があります。",
|
||||
"relayUnreachable": "リレーサーバーに到達できません。ISPのブロックによりWatch Togetherが使えない可能性があります。",
|
||||
"reconnectingToHost": "ホストに再接続中...",
|
||||
"currentPlayback": "現在の再生",
|
||||
"joinCurrentPlayback": "現在の再生に参加",
|
||||
@@ -766,7 +902,9 @@
|
||||
"waitingForParticipants": "他の参加者の読み込みを待っています...",
|
||||
"recentRooms": "最近のルーム",
|
||||
"renameRoom": "ルーム名を変更",
|
||||
"removeRoom": "削除"
|
||||
"removeRoom": "削除",
|
||||
"guestSwitchUnavailable": "切り替えできません — サーバーが同期できません",
|
||||
"guestSwitchFailed": "切り替えできません — このサーバーにコンテンツが見つかりません"
|
||||
},
|
||||
"downloads": {
|
||||
"title": "ダウンロード",
|
||||
@@ -779,10 +917,10 @@
|
||||
"deleteDownload": "ダウンロードを削除",
|
||||
"retryDownload": "ダウンロードを再試行",
|
||||
"downloadQueued": "ダウンロードをキューに追加しました",
|
||||
"serverErrorBitrate": "サーバーエラー — ファイルがリモートストリーミングのビットレート制限を超えている可能性があります",
|
||||
"serverErrorBitrate": "サーバーエラー: ファイルがリモートビットレート制限を超えている可能性があります",
|
||||
"episodesQueued": "${count}エピソードをダウンロードキューに追加しました",
|
||||
"downloadDeleted": "ダウンロードを削除しました",
|
||||
"deleteConfirm": "\"${title}\"を削除してもよろしいですか?ダウンロードしたファイルがデバイスから削除されます。",
|
||||
"deleteConfirm": "このデバイスから「${title}」を削除しますか?",
|
||||
"deletingWithProgress": "${title}を削除中... (${current}/${total})",
|
||||
"deleting": "削除中...",
|
||||
"queuedTooltip": "キュー",
|
||||
@@ -817,6 +955,12 @@
|
||||
"editSyncFilter": "同期フィルター",
|
||||
"syncAllItems": "すべてのアイテムを同期中",
|
||||
"syncUnwatchedItems": "未視聴のアイテムを同期中",
|
||||
"syncRuleServerContext": "サーバー: ${server} • ${status}",
|
||||
"syncRuleAvailable": "利用可能",
|
||||
"syncRuleOffline": "オフライン",
|
||||
"syncRuleSignInRequired": "サインインが必要",
|
||||
"syncRuleNotAvailableForProfile": "現在のプロフィールでは利用できません",
|
||||
"syncRuleUnknownServer": "不明なサーバー",
|
||||
"syncRuleListCreated": "同期ルールを作成しました"
|
||||
},
|
||||
"shaders": {
|
||||
@@ -846,7 +990,7 @@
|
||||
"connected": "接続済み",
|
||||
"serverRunning": "リモートサーバー稼働中",
|
||||
"serverStopped": "リモートサーバー停止中",
|
||||
"serverRunningDescription": "ネットワーク上のモバイルデバイスがこのアプリを検出して接続できます",
|
||||
"serverRunningDescription": "ネットワーク上のモバイルデバイスがこのアプリに接続できます",
|
||||
"serverStoppedDescription": "モバイルデバイスの接続を許可するにはサーバーを起動してください",
|
||||
"usePhoneToControl": "モバイルデバイスでこのアプリを操作できます",
|
||||
"startServer": "サーバーを起動",
|
||||
@@ -854,20 +998,20 @@
|
||||
"minimize": "最小化"
|
||||
},
|
||||
"pairing": {
|
||||
"discoveryDescription": "同じPlexアカウントでPlezyを実行しているネットワーク上のデバイスが自動的に表示されます",
|
||||
"discoveryDescription": "同じPlexアカウントのPlezyデバイスがここに表示されます",
|
||||
"hostAddressHint": "192.168.1.100:48632",
|
||||
"connecting": "接続中...",
|
||||
"searchingForDevices": "デバイスを検索中...",
|
||||
"noDevicesFound": "ネットワーク上にデバイスが見つかりません",
|
||||
"noDevicesHint": "デスクトップでPlezyが開いていること、両方のデバイスが同じWiFiネットワーク上にあることを確認してください",
|
||||
"noDevicesHint": "デスクトップでPlezyを開き、同じWiFiを使用してください",
|
||||
"availableDevices": "利用可能なデバイス",
|
||||
"manualConnection": "手動接続",
|
||||
"cryptoInitFailed": "安全な接続を初期化できませんでした。Plexアカウントにサインインしていることを確認してください。",
|
||||
"cryptoInitFailed": "安全な接続を開始できませんでした。先にPlexにサインインしてください。",
|
||||
"validationHostRequired": "ホストアドレスを入力してください",
|
||||
"validationHostFormat": "形式はIP:ポートである必要があります(例: 192.168.1.100:48632)",
|
||||
"connectionTimedOut": "接続がタイムアウトしました。両方のデバイスが同じネットワーク上にあることを確認してください。",
|
||||
"sessionNotFound": "デバイスが見つかりません。ホストでPlezyが実行されていることを確認してください。",
|
||||
"authFailed": "認証に失敗しました。両方のデバイスが同じPlexアカウントを使用していることを確認してください。",
|
||||
"connectionTimedOut": "接続がタイムアウトしました。両方のデバイスで同じネットワークを使用してください。",
|
||||
"sessionNotFound": "デバイスが見つかりません。ホストでPlezyが実行中か確認してください。",
|
||||
"authFailed": "認証に失敗しました。両方のデバイスで同じPlexアカウントが必要です。",
|
||||
"failedToConnect": "接続に失敗しました: ${error}"
|
||||
},
|
||||
"remote": {
|
||||
@@ -915,7 +1059,7 @@
|
||||
"externalPlayer": {
|
||||
"title": "外部プレーヤー",
|
||||
"useExternalPlayer": "外部プレーヤーを使用",
|
||||
"useExternalPlayerDescription": "内蔵プレーヤーの代わりに外部アプリで動画を開く",
|
||||
"useExternalPlayerDescription": "動画を別のアプリで開きます",
|
||||
"selectPlayer": "プレーヤーを選択",
|
||||
"customPlayers": "カスタムプレーヤー",
|
||||
"systemDefault": "システムデフォルト",
|
||||
@@ -1009,7 +1153,7 @@
|
||||
"match": "マッチ...",
|
||||
"fixMatch": "マッチを修正...",
|
||||
"unmatch": "マッチ解除",
|
||||
"unmatchConfirm": "このアイテムの現在のマッチを解除しますか?再度マッチするまで、Plex は未マッチとして扱います。",
|
||||
"unmatchConfirm": "この一致をクリアしますか?再一致するまでPlexでは未一致として扱われます。",
|
||||
"unmatchSuccess": "マッチを解除しました",
|
||||
"unmatchFailed": "マッチの解除に失敗しました",
|
||||
"matchApplied": "マッチを適用しました",
|
||||
@@ -1029,7 +1173,7 @@
|
||||
"connected": "接続済み",
|
||||
"connectedAs": "@${username} として接続済み",
|
||||
"disconnectConfirm": "Trakt アカウントを切断しますか?",
|
||||
"disconnectConfirmBody": "Plezy から Trakt への再生イベント送信が停止します。いつでも再接続できます。",
|
||||
"disconnectConfirmBody": "PlezyはTraktへのイベント送信を停止します。いつでも再接続できます。",
|
||||
"scrobble": "リアルタイムのスクロブル",
|
||||
"scrobbleDescription": "再生中に再生・一時停止・停止イベントを Trakt に送信します。",
|
||||
"watchedSync": "視聴済みステータスを同期",
|
||||
@@ -1037,13 +1181,13 @@
|
||||
},
|
||||
"trackers": {
|
||||
"title": "トラッカー",
|
||||
"hubSubtitle": "視聴進捗を Trakt や他のサービスで同期します。",
|
||||
"hubSubtitle": "視聴進捗をTraktや他のサービスと同期します。",
|
||||
"notConnected": "未接続",
|
||||
"connectedAs": "@${username} として接続済み",
|
||||
"scrobble": "進捗を自動で記録",
|
||||
"scrobbleDescription": "エピソードや映画を見終えたときにリストを更新します。",
|
||||
"disconnectConfirm": "${service} の接続を解除しますか?",
|
||||
"disconnectConfirmBody": "Plezy は ${service} のリストを更新しなくなります。いつでも再接続できます。",
|
||||
"disconnectConfirmBody": "Plezyは${service}の更新を停止します。いつでも再接続できます。",
|
||||
"connectFailed": "${service} に接続できませんでした。もう一度お試しください。",
|
||||
"services": {
|
||||
"mal": "MyAnimeList",
|
||||
@@ -1059,7 +1203,7 @@
|
||||
},
|
||||
"oauthProxy": {
|
||||
"title": "${service} にサインイン",
|
||||
"body": "このQRコードをスマートフォンで読み取るか、下のURLをブラウザで開いてください。",
|
||||
"body": "このQRコードをスキャンするか、任意のデバイスでURLを開いてください。",
|
||||
"openToSignIn": "${service} を開いてサインイン",
|
||||
"urlCopied": "URLをコピーしました"
|
||||
},
|
||||
@@ -1077,5 +1221,39 @@
|
||||
"libraries": "ライブラリ",
|
||||
"noLibraries": "利用できるライブラリがありません"
|
||||
}
|
||||
},
|
||||
"addServer": {
|
||||
"addJellyfinTitle": "Jellyfinサーバーを追加",
|
||||
"jellyfinUrlIntro": "サーバーURLを入力してください。例: `https://jellyfin.example.com`。",
|
||||
"serverUrl": "サーバーURL",
|
||||
"findServer": "サーバーを検索",
|
||||
"username": "ユーザー名",
|
||||
"password": "パスワード",
|
||||
"signIn": "サインイン",
|
||||
"change": "変更",
|
||||
"required": "必須",
|
||||
"couldNotReachServer": "サーバーに接続できませんでした: ${error}",
|
||||
"signInFailed": "サインインに失敗しました: ${error}",
|
||||
"quickConnectFailed": "Quick Connectに失敗しました: ${error}",
|
||||
"addPlexTitle": "Plexでサインイン",
|
||||
"plexAuthIntro": "ブラウザまたはQRコードでサインインします。",
|
||||
"plexQRPrompt": "このQRコードをスキャンしてサインインしてください。",
|
||||
"waitingForPlexConfirmation": "plex.tvがサインインを確認するのを待っています…",
|
||||
"pinExpired": "サインイン前にPINの有効期限が切れました。もう一度お試しください。",
|
||||
"duplicatePlexAccount": "すでにPlexにサインインしています。アカウントを切り替えるにはサインアウトしてください。",
|
||||
"failedToRegisterAccount": "アカウントの登録に失敗しました: ${error}",
|
||||
"enterJellyfinUrlError": "JellyfinサーバーのURLを入力してください",
|
||||
"addConnectionTitle": "接続を追加",
|
||||
"addConnectionTitleScoped": "${name}に追加",
|
||||
"addConnectionIntroGlobal": "別のメディアサーバーを追加します。PlexとJellyfinはホームに一緒に表示されます。",
|
||||
"addConnectionIntroScoped": "新しいサーバーを追加するか、別のプロファイルから借りてください。",
|
||||
"signInWithPlexCard": "Plexでサインイン",
|
||||
"signInWithPlexCardSubtitle": "このデバイスを承認します。共有サーバーが追加されます。",
|
||||
"signInWithPlexCardSubtitleScoped": "Plexアカウントを承認します。Homeユーザーはプロフィールになります。",
|
||||
"connectToJellyfinCard": "Jellyfinに接続",
|
||||
"connectToJellyfinCardSubtitle": "サーバーURL、ユーザー名、パスワードを入力してください。",
|
||||
"connectToJellyfinCardSubtitleScoped": "Jellyfinサーバーにサインインします。${name}に紐付けられます。",
|
||||
"borrowFromAnotherProfile": "別のプロファイルから借りる",
|
||||
"borrowFromAnotherProfileSubtitle": "別のプロフィールの接続を再利用します。PIN保護されたプロフィールにはPINが必要です。"
|
||||
}
|
||||
}
|
||||
|
||||
+244
-66
@@ -3,13 +3,22 @@
|
||||
"title": "Plezy"
|
||||
},
|
||||
"auth": {
|
||||
"signIn": "로그인",
|
||||
"signInWithPlex": "Plex 계정으로 로그인",
|
||||
"showQRCode": "QR 코드",
|
||||
"authenticate": "인증",
|
||||
"authenticationTimeout": "인증 시간이 초과되었습니다. 다시 시도해 주세요.",
|
||||
"scanQRToSignIn": "QR 코드를 스캔하여 로그인",
|
||||
"waitingForAuth": "인증 대기 중... 브라우저에서 로그인을 완료해 주세요.",
|
||||
"useBrowser": "브라우저 사용"
|
||||
"waitingForAuth": "인증 대기 중...\n브라우저에서 로그인하세요.",
|
||||
"useBrowser": "브라우저 사용",
|
||||
"or": "또는",
|
||||
"connectToJellyfin": "Jellyfin에 연결",
|
||||
"useQuickConnect": "Quick Connect 사용",
|
||||
"quickConnectCode": "Quick Connect 코드",
|
||||
"quickConnectInstructions": "Jellyfin에서 Quick Connect를 열고 이 코드를 입력하세요.",
|
||||
"quickConnectWaiting": "승인 대기 중…",
|
||||
"quickConnectCancel": "취소",
|
||||
"quickConnectExpired": "Quick Connect가 만료되었습니다. 다시 시도하세요."
|
||||
},
|
||||
"common": {
|
||||
"cancel": "취소",
|
||||
@@ -43,9 +52,6 @@
|
||||
"mute": "음소거",
|
||||
"ok": "확인",
|
||||
"reconnect": "다시 연결",
|
||||
"exitConfirmTitle": "앱을 종료하시겠습니까?",
|
||||
"exitConfirmMessage": "정말 종료하시겠습니까?",
|
||||
"dontAskAgain": "다시 묻지 않기",
|
||||
"exit": "종료",
|
||||
"viewAll": "모두 보기",
|
||||
"checkingNetwork": "네트워크 확인 중...",
|
||||
@@ -55,7 +61,8 @@
|
||||
"startingOfflineMode": "오프라인 모드 시작 중...",
|
||||
"loading": "로딩 중...",
|
||||
"fullscreen": "전체화면",
|
||||
"exitFullscreen": "전체화면 종료"
|
||||
"exitFullscreen": "전체화면 종료",
|
||||
"pressBackAgainToExit": "한 번 더 누르면 종료됩니다"
|
||||
},
|
||||
"screens": {
|
||||
"licenses": "라이선스",
|
||||
@@ -104,22 +111,22 @@
|
||||
"gridView": "그리드 보기",
|
||||
"listView": "목록 보기",
|
||||
"showHeroSection": "주요 추천 영역 표시",
|
||||
"useGlobalHubs": "Plex 홈 레이아웃 사용",
|
||||
"useGlobalHubsDescription": "공식 Plex 클라이언트처럼 홈 페이지 허브를 표시합니다. 끄면 라이브러리별 추천이 대신 표시됩니다.",
|
||||
"useGlobalHubs": "홈 레이아웃 사용",
|
||||
"useGlobalHubsDescription": "통합 홈 허브를 표시합니다. 끄면 라이브러리 추천을 사용합니다.",
|
||||
"showServerNameOnHubs": "허브에 서버 이름 표시",
|
||||
"showServerNameOnHubsDescription": "허브 제목에 항상 서버 이름을 표시합니다. 끄면 중복된 허브 이름에만 표시됩니다.",
|
||||
"showServerNameOnHubsDescription": "허브 제목에 항상 서버 이름을 표시합니다.",
|
||||
"groupLibrariesByServer": "서버별로 라이브러리 그룹화",
|
||||
"groupLibrariesByServerDescription": "여러 서버에 연결되어 있을 때 사이드바에 각 Plex 서버의 헤더를 표시합니다.",
|
||||
"groupLibrariesByServerDescription": "사이드바 라이브러리를 미디어 서버별로 그룹화합니다.",
|
||||
"alwaysKeepSidebarOpen": "사이드바 항상 열어두기",
|
||||
"alwaysKeepSidebarOpenDescription": "사이드바가 확장된 상태로 유지되고 콘텐츠 영역이 맞춰집니다",
|
||||
"showUnwatchedCount": "미시청 수 표시",
|
||||
"showUnwatchedCountDescription": "시리즈 및 시즌에 미시청 에피소드 수 표시",
|
||||
"showEpisodeNumberOnCards": "카드에 에피소드 번호 표시",
|
||||
"showEpisodeNumberOnCardsDescription": "에피소드 카드에 시즌과 함께 에피소드 번호(예: S2 E3)를 표시합니다",
|
||||
"showEpisodeNumberOnCardsDescription": "에피소드 카드에 시즌 및 에피소드 번호 표시",
|
||||
"showSeasonPostersOnTabs": "탭에 시즌 포스터 표시",
|
||||
"showSeasonPostersOnTabsDescription": "프로그램 상세 페이지의 각 시즌 탭 위에 해당 시즌의 포스터를 표시합니다",
|
||||
"showSeasonPostersOnTabsDescription": "각 시즌 포스터를 탭 위에 표시",
|
||||
"hideSpoilers": "미시청 에피소드 스포일러 숨기기",
|
||||
"hideSpoilersDescription": "아직 시청하지 않은 에피소드의 썸네일을 흐리게 하고 설명을 숨깁니다",
|
||||
"hideSpoilersDescription": "시청하지 않은 에피소드의 썸네일과 설명을 흐리게 처리",
|
||||
"playerBackend": "플레이어 백엔드",
|
||||
"exoPlayer": "ExoPlayer (권장)",
|
||||
"mpv": "mpv",
|
||||
@@ -128,7 +135,7 @@
|
||||
"bufferSize": "버퍼 크기",
|
||||
"bufferSizeMB": "${size}MB",
|
||||
"bufferSizeAuto": "자동 (권장)",
|
||||
"bufferSizeWarning": "기기 메모리가 ${heap}MB입니다. ${size}MB 버퍼는 재생 문제를 일으킬 수 있습니다.",
|
||||
"bufferSizeWarning": "${heap}MB 메모리를 사용할 수 있습니다. ${size}MB 버퍼는 재생에 영향을 줄 수 있습니다.",
|
||||
"defaultQualityTitle": "기본 화질",
|
||||
"defaultQualityDescription": "재생 시작 시 사용됩니다. 낮은 값은 대역폭을 줄입니다.",
|
||||
"subtitleStyling": "자막 스타일",
|
||||
@@ -140,16 +147,18 @@
|
||||
"defaultSleepTimer": "기본 취침 타이머",
|
||||
"minutesUnit": "${minutes}분",
|
||||
"rememberTrackSelections": "에피소드/영화별 트랙 선택 기억",
|
||||
"rememberTrackSelectionsDescription": "재생 중 트랙을 변경할 때 오디오 및 자막 언어 설정을 자동으로 저장합니다",
|
||||
"rememberTrackSelectionsDescription": "제목별 오디오 및 자막 선택 기억",
|
||||
"showChapterMarkersOnTimeline": "탐색 막대에 챕터 마커 표시",
|
||||
"showChapterMarkersOnTimelineDescription": "챕터 경계에서 탐색 막대 구분",
|
||||
"clickVideoTogglesPlayback": "비디오를 클릭하여 재생/일시정지를 전환하세요.",
|
||||
"clickVideoTogglesPlaybackDescription": "이 옵션이 활성화되어 있으면 비디오 플레이어를 클릭할 때 재생 또는 일시정지가 됩니다. 그렇지 않으면 클릭 시 재생 컨트롤이 표시되거나 숨겨집니다.",
|
||||
"clickVideoTogglesPlaybackDescription": "컨트롤 표시 대신 동영상 클릭으로 재생/일시정지합니다.",
|
||||
"videoPlayerControls": "비디오 플레이어 컨트롤",
|
||||
"keyboardShortcuts": "키보드 단축키",
|
||||
"keyboardShortcutsDescription": "사용자 정의 키보드 단축키",
|
||||
"videoPlayerNavigation": "비디오 플레이어 탐색",
|
||||
"videoPlayerNavigationDescription": "방향 키를 사용하여 비디오 플레이어 컨트롤 탐색",
|
||||
"watchTogetherRelay": "함께 보기 릴레이",
|
||||
"watchTogetherRelayDescription": "함께 보기에 사용할 사용자 지정 릴레이 서버를 설정합니다. 모든 참가자가 동일한 서버를 사용해야 합니다.",
|
||||
"watchTogetherRelayDescription": "사용자 지정 릴레이를 설정합니다. 모두 같은 서버를 사용해야 합니다.",
|
||||
"watchTogetherRelayHint": "https://my-relay.example.com",
|
||||
"crashReporting": "충돌 보고",
|
||||
"crashReportingDescription": "앱 개선을 위해 충돌 보고서 전송",
|
||||
@@ -158,10 +167,10 @@
|
||||
"viewLogs": "로그 보기",
|
||||
"viewLogsDescription": "애플리케이션 로그 확인",
|
||||
"clearCache": "캐시 삭제",
|
||||
"clearCacheDescription": "모든 캐시된 이미지와 데이터를 지웁니다. 캐시를 지우면 애플리케이션 콘텐츠 로딩 속도가 느려질 수 있습니다.",
|
||||
"clearCacheDescription": "캐시된 이미지와 데이터를 지웁니다. 콘텐츠 로드가 느려질 수 있습니다.",
|
||||
"clearCacheSuccess": "캐시 삭제 성공",
|
||||
"resetSettings": "설정 재설정",
|
||||
"resetSettingsDescription": "모든 설정을 기본값으로 재설정합니다. 이 작업은 되돌릴 수 없습니다.",
|
||||
"resetSettingsDescription": "기본 설정으로 복원합니다. 되돌릴 수 없습니다.",
|
||||
"resetSettingsSuccess": "설정 재설정 성공",
|
||||
"backup": "백업",
|
||||
"exportSettings": "설정 내보내기",
|
||||
@@ -182,7 +191,7 @@
|
||||
"updateAvailable": "사용 가능한 업데이트 있음",
|
||||
"checkForUpdates": "업데이트 확인",
|
||||
"autoCheckUpdatesOnStartup": "시작 시 자동으로 업데이트 확인",
|
||||
"autoCheckUpdatesOnStartupDescription": "시작 시 새 버전이 있으면 알림 표시",
|
||||
"autoCheckUpdatesOnStartupDescription": "실행 시 업데이트가 있으면 알림",
|
||||
"validationErrorEnterNumber": "유효한 숫자를 입력하세요",
|
||||
"validationErrorDuration": "기간은 ${min}과 ${max} ${unit} 사이여야 합니다",
|
||||
"shortcutAlreadyAssigned": "단축키가 이미 ${action}에 할당 되었습니다",
|
||||
@@ -192,6 +201,8 @@
|
||||
"autoSkipIntroDescription": "몇 초 후 오프닝을 자동으로 건너뛰기",
|
||||
"autoSkipCredits": "자동으로 엔딩 건너뛰기",
|
||||
"autoSkipCreditsDescription": "엔딩 크레딧 자동 건너뛰기 후 다음 에피소드 재생",
|
||||
"forceSkipMarkerFallback": "대체 마커 강제 사용",
|
||||
"forceSkipMarkerFallbackDescription": "Plex에 마커가 있어도 챕터 제목 패턴 사용",
|
||||
"autoSkipDelay": "자동 건너뛰기 지연",
|
||||
"autoSkipDelayDescription": "자동 건너뛰기 전 ${seconds} 초 대기",
|
||||
"introPattern": "인트로 마커 패턴",
|
||||
@@ -213,8 +224,8 @@
|
||||
"downloadOnWifiOnly": "WiFi 연결 시에만 다운로드",
|
||||
"downloadOnWifiOnlyDescription": "셀룰러 데이터 사용 시 다운로드 불가",
|
||||
"autoRemoveWatchedDownloads": "시청한 다운로드 자동 삭제",
|
||||
"autoRemoveWatchedDownloadsDescription": "시청 완료로 표시된 에피소드와 영화의 다운로드를 자동으로 삭제",
|
||||
"cellularDownloadBlocked": "셀룰러 데이터에서 다운로드가 차단 되었습니다. WiFi에 연결하거나 설정을 변경하세요.",
|
||||
"autoRemoveWatchedDownloadsDescription": "시청한 다운로드 자동 삭제",
|
||||
"cellularDownloadBlocked": "셀룰러에서는 다운로드가 차단됩니다. WiFi를 사용하거나 설정을 변경하세요.",
|
||||
"maxVolume": "최대 볼륨",
|
||||
"maxVolumeDescription": "조용한 미디어를 위해 100% 이상의 볼륨 허용",
|
||||
"maxVolumePercent": "${percent}%",
|
||||
@@ -227,22 +238,20 @@
|
||||
"companionRemoteServer": "컴패니언 리모트 서버",
|
||||
"companionRemoteServerDescription": "네트워크의 모바일 기기가 이 앱을 제어할 수 있도록 허용",
|
||||
"autoPip": "자동 PIP 모드",
|
||||
"autoPipDescription": "재생 중 앱을 나갈 때 자동으로 PIP 모드로 전환",
|
||||
"autoPipDescription": "재생 중 앱을 떠나면 화면 속 화면으로 전환",
|
||||
"matchContentFrameRate": "콘텐츠 프레임 레이트 맞춤",
|
||||
"matchContentFrameRateDescription": "비디오 콘텐츠에 맞게 디스플레이 주사율을 조정하여 떨림을 줄이고 배터리를 절약합니다",
|
||||
"matchContentFrameRateDescription": "디스플레이 새로 고침 빈도를 동영상 콘텐츠에 맞춤",
|
||||
"matchRefreshRate": "주사율 맞춤",
|
||||
"matchRefreshRateDescription": "전체 화면에서 비디오 콘텐츠에 맞게 디스플레이 주사율을 전환합니다",
|
||||
"matchRefreshRateDescription": "전체 화면에서 디스플레이 새로 고침 빈도 맞춤",
|
||||
"matchDynamicRange": "다이나믹 레인지 맞춤",
|
||||
"matchDynamicRangeDescription": "HDR 콘텐츠에 대해 자동으로 HDR을 활성화하고 플레이어를 나갈 때 SDR로 복원합니다",
|
||||
"matchDynamicRangeDescription": "HDR 콘텐츠에서는 HDR로 전환한 뒤 SDR로 되돌림",
|
||||
"displaySwitchDelay": "디스플레이 전환 지연",
|
||||
"tunneledPlayback": "터널 재생",
|
||||
"tunneledPlaybackDescription": "하드웨어 가속 비디오 터널링을 사용합니다. HDR 콘텐츠에서 소리만 나고 검은 화면이 보이면 비활성화하세요",
|
||||
"tunneledPlaybackDescription": "비디오 터널링을 사용합니다. HDR 재생 시 검은 화면이 보이면 비활성화하세요.",
|
||||
"requireProfileSelectionOnOpen": "앱 실행 시 프로필 선택",
|
||||
"requireProfileSelectionOnOpenDescription": "앱을 열 때마다 프로필 선택 화면을 표시합니다",
|
||||
"confirmExitOnBack": "종료 전 확인",
|
||||
"confirmExitOnBackDescription": "뒤로 버튼을 눌러 앱을 종료할 때 확인 대화상자를 표시합니다",
|
||||
"forceTvMode": "TV 모드 강제 사용",
|
||||
"forceTvModeDescription": "자동 감지와 관계없이 TV 레이아웃을 사용합니다. leanback 기능을 보고하지 않는 Android TV 기기에 유용합니다. 변경 시 앱이 다시 시작됩니다.",
|
||||
"forceTvModeDescription": "TV 레이아웃을 강제합니다. 자동 감지되지 않는 기기용입니다. 재시작이 필요합니다.",
|
||||
"startInFullscreen": "전체화면으로 시작",
|
||||
"startInFullscreenDescription": "실행 시 Plezy를 전체화면 모드로 엽니다",
|
||||
"autoHidePerformanceOverlay": "성능 오버레이 자동 숨기기",
|
||||
@@ -251,15 +260,15 @@
|
||||
"showNavBarLabelsDescription": "내비게이션 바 아이콘 아래에 텍스트 라벨을 표시합니다",
|
||||
"liveTvDefaultFavorites": "즐겨찾기 채널 기본 설정",
|
||||
"liveTvDefaultFavoritesDescription": "라이브 TV를 열 때 즐겨찾기 채널만 표시",
|
||||
"display": "Display",
|
||||
"homeScreen": "Home Screen",
|
||||
"navigation": "Navigation",
|
||||
"window": "Window",
|
||||
"content": "Content",
|
||||
"player": "Player",
|
||||
"subtitlesAndConfig": "Subtitles & Configuration",
|
||||
"seekAndTiming": "Seek & Timing",
|
||||
"behavior": "Behavior"
|
||||
"display": "디스플레이",
|
||||
"homeScreen": "홈 화면",
|
||||
"navigation": "탐색",
|
||||
"window": "창",
|
||||
"content": "콘텐츠",
|
||||
"player": "플레이어",
|
||||
"subtitlesAndConfig": "자막 및 구성",
|
||||
"seekAndTiming": "탐색 및 타이밍",
|
||||
"behavior": "동작"
|
||||
},
|
||||
"search": {
|
||||
"hint": "영화, 시리즈, 음악 등을 검색하세요...",
|
||||
@@ -330,7 +339,7 @@
|
||||
"shufflePlay": "무작위 재생",
|
||||
"fileInfo": "파일 정보",
|
||||
"deleteFromServer": "서버에서 삭제",
|
||||
"confirmDelete": "이 미디어와 파일이 서버에서 영구적으로 삭제됩니다. 이 작업은 취소할 수 없습니다.",
|
||||
"confirmDelete": "이 미디어와 해당 파일을 서버에서 삭제할까요?",
|
||||
"deleteMultipleWarning": "모든 에피소드와 파일이 포함됩니다.",
|
||||
"mediaDeletedSuccessfully": "미디어 항목이 성공적으로 삭제되었습니다",
|
||||
"mediaFailedToDelete": "미디어 항목 삭제 실패",
|
||||
@@ -414,7 +423,7 @@
|
||||
"pipErrors": {
|
||||
"androidVersion": "Android 8.0 이상이 필요합니다",
|
||||
"iosVersion": "iOS 15.0 이상이 필요합니다",
|
||||
"permissionDisabled": "화면 속 화면 권한이 비활성화되어 있습니다. 설정 > 앱 > Plezy > 화면 속 화면에서 활성화하세요",
|
||||
"permissionDisabled": "화면 속 화면이 비활성화되어 있습니다. 시스템 설정에서 활성화하세요.",
|
||||
"notSupported": "이 기기는 화면 속 화면 모드를 지원하지 않습니다",
|
||||
"voSwitchFailed": "화면 속 화면을 위한 비디오 출력 전환에 실패했습니다",
|
||||
"failed": "화면 속 화면 모드를 시작할 수 없습니다",
|
||||
@@ -452,7 +461,7 @@
|
||||
"musicNotSupported": "음악 재생 미지원",
|
||||
"noDescriptionAvailable": "설명이 없습니다",
|
||||
"noProfilesAvailable": "사용 가능한 프로필이 없습니다",
|
||||
"contactAdminForProfiles": "프로필을 추가하려면 Plex 관리자에게 문의하세요",
|
||||
"contactAdminForProfiles": "프로필을 추가하려면 서버 관리자에게 문의하세요",
|
||||
"unableToDetermineLibrarySection": "이 항목의 라이브러리 섹션을 확인할 수 없습니다",
|
||||
"logsCleared": "로그가 삭제 되었습니다",
|
||||
"logsCopied": "로그가 클립보드에 복사 되었습니다",
|
||||
@@ -474,7 +483,7 @@
|
||||
"failedPlayback": "${action}을(를) 수행할 수 없습니다: ${error}",
|
||||
"switchingToCompatiblePlayer": "호환되는 플레이어로 전환 중...",
|
||||
"serverLimitTitle": "재생 실패",
|
||||
"serverLimitBody": "서버에서 오류를 반환했습니다 (HTTP 500). 일반적으로 이는 서버 소유자가 대역폭 또는 트랜스코딩 제한을 설정하여 세션을 거부하고 있다는 의미입니다. 클라이언트에서 할 수 있는 일은 없습니다 — 서버 소유자가 설정을 조정해야 합니다.",
|
||||
"serverLimitBody": "서버 오류(HTTP 500). 대역폭/트랜스코딩 제한으로 세션이 거부된 것 같습니다. 소유자에게 조정을 요청하세요.",
|
||||
"logsUploaded": "로그 업로드 완료",
|
||||
"logsUploadFailed": "로그 업로드 실패",
|
||||
"logId": "로그 ID"
|
||||
@@ -513,12 +522,85 @@
|
||||
"dialog": {
|
||||
"confirmAction": "확인"
|
||||
},
|
||||
"profiles": {
|
||||
"addPlezyProfile": "Plezy 프로필 추가",
|
||||
"switchingProfile": "프로필 전환 중…",
|
||||
"deleteThisProfileTitle": "이 프로필을 삭제하시겠습니까?",
|
||||
"deleteThisProfileMessage": "${displayName}을(를) 제거합니다. 연결에는 영향이 없습니다.",
|
||||
"active": "활성",
|
||||
"manage": "관리",
|
||||
"delete": "삭제",
|
||||
"signOut": "로그아웃",
|
||||
"signOutPlexTitle": "Plex에서 로그아웃하시겠습니까?",
|
||||
"signOutPlexMessage": "${displayName} 및 모든 Plex Home 사용자를 제거할까요? 언제든 다시 로그인할 수 있습니다.",
|
||||
"signedOutPlex": "Plex에서 로그아웃되었습니다.",
|
||||
"signOutFailed": "로그아웃에 실패했습니다.",
|
||||
"sectionTitle": "프로필",
|
||||
"summarySingle": "관리되는 사용자와 로컬 ID를 혼합하려면 프로필을 추가하세요",
|
||||
"summaryMultipleWithActive": "${count}개 프로필 · 활성: ${activeName}",
|
||||
"summaryMultiple": "${count}개 프로필",
|
||||
"removeConnectionTitle": "연결을 제거하시겠습니까?",
|
||||
"removeConnectionMessage": "${displayName}의 ${connectionLabel} 접근 권한을 제거합니다. 다른 프로필에는 유지됩니다.",
|
||||
"deleteProfileTitle": "프로필을 삭제하시겠습니까?",
|
||||
"deleteProfileMessage": "${displayName} 및 해당 연결을 제거합니다. 서버는 계속 사용할 수 있습니다.",
|
||||
"profileNameLabel": "프로필 이름",
|
||||
"pinProtectionLabel": "PIN 보호",
|
||||
"pinManagedByPlex": "PIN은 Plex에서 관리됩니다. plex.tv에서 편집하세요.",
|
||||
"noPinSetEditOnPlex": "설정된 PIN이 없습니다. 요구하려면 plex.tv에서 Home 사용자를 편집하세요.",
|
||||
"setPin": "PIN 설정",
|
||||
"setPinTitle": "PIN 설정",
|
||||
"confirmPinTitle": "PIN 확인",
|
||||
"pinSet": "PIN 설정됨",
|
||||
"changePin": "변경",
|
||||
"removePin": "제거",
|
||||
"connectionsLabel": "연결",
|
||||
"add": "추가",
|
||||
"deleteProfileButton": "프로필 삭제",
|
||||
"noConnectionsHint": "연결이 없습니다 — 이 프로필을 사용하려면 하나 추가하세요.",
|
||||
"noConnections": "연결 없음",
|
||||
"plexHomeAccount": "Plex Home 계정",
|
||||
"connectionDefault": "기본값",
|
||||
"connectionAs": "${displayName}(으)로",
|
||||
"makeDefault": "기본값으로 설정",
|
||||
"removeConnection": "제거",
|
||||
"profileRenamed": "프로필 이름이 변경되었습니다.",
|
||||
"borrowAddTo": "${displayName}에 추가",
|
||||
"borrowExplain": "다른 프로필의 연결을 빌립니다. PIN으로 보호된 프로필에는 PIN이 필요합니다.",
|
||||
"borrowEmpty": "아직 빌릴 것이 없습니다.",
|
||||
"borrowEmptySubtitle": "먼저 다른 프로필에 Plex 또는 Jellyfin을 연결하세요.",
|
||||
"borrowFromProfile": "${displayName}에서",
|
||||
"borrowConnectionBorrowed": "연결을 빌렸습니다.",
|
||||
"borrowFailed": "연결을 빌리지 못했습니다.",
|
||||
"incorrectPin": "PIN이 올바르지 않습니다.",
|
||||
"sourceProfileMissingParentAccount": "원본 프로필에 상위 계정이 없습니다.",
|
||||
"failedToVerifyPin": "PIN을 확인하지 못했습니다.",
|
||||
"newProfile": "새 프로필",
|
||||
"profileNameHint": "예: 손님, 어린이, 가족실",
|
||||
"pinProtectionOptional": "PIN 보호 (선택 사항)",
|
||||
"pinExplain": "프로필 전환에는 4자리 PIN이 필요합니다.",
|
||||
"continueButton": "계속",
|
||||
"pinsDontMatch": "PIN이 일치하지 않습니다"
|
||||
},
|
||||
"connections": {
|
||||
"sectionTitle": "연결",
|
||||
"addConnection": "연결 추가",
|
||||
"addConnectionSubtitleNoProfile": "Plex로 로그인하거나 Jellyfin 서버에 연결",
|
||||
"addConnectionSubtitleScoped": "${displayName}에 추가: Plex, Jellyfin 또는 다른 프로필 연결",
|
||||
"sessionExpiredOne": "${name} 의 세션이 만료되었습니다",
|
||||
"sessionExpiredMany": "${count} 개의 서버에서 세션이 만료되었습니다",
|
||||
"signInAgain": "다시 로그인"
|
||||
},
|
||||
"discover": {
|
||||
"title": "발견",
|
||||
"switchProfile": "사용자 전환",
|
||||
"noContentAvailable": "사용 가능한 콘텐츠가 없습니다",
|
||||
"addMediaToLibraries": "미디어 라이브러리에 미디어를 추가해 주세요",
|
||||
"continueWatching": "계속 시청",
|
||||
"continueWatchingIn": "${library}에서 계속 시청",
|
||||
"nextUp": "다음 에피소드",
|
||||
"nextUpIn": "${library}의 다음 에피소드",
|
||||
"recentlyAdded": "최근에 추가됨",
|
||||
"recentlyAddedIn": "${library}에 최근에 추가됨",
|
||||
"playEpisode": "S${season}E${episode}",
|
||||
"overview": "개요",
|
||||
"cast": "출연진",
|
||||
@@ -532,7 +614,7 @@
|
||||
"errors": {
|
||||
"searchFailed": "검색 실패: ${error}",
|
||||
"connectionTimeout": "${context} 로드 중 연결 시간 초과",
|
||||
"connectionFailed": "Plex 서버에 연결할 수 없음",
|
||||
"connectionFailed": "미디어 서버에 연결할 수 없습니다",
|
||||
"failedToLoad": "${context} 로드 실패: ${error}",
|
||||
"noClientAvailable": "사용 가능한 클라이언트가 없습니다",
|
||||
"authenticationFailed": "인증 실패: ${error}",
|
||||
@@ -540,7 +622,9 @@
|
||||
"pleaseEnterToken": "토큰을 입력해 주세요",
|
||||
"invalidToken": "토큰이 유효하지 않습니다",
|
||||
"failedToVerifyToken": "토큰을 확인할 수 없습니다: ${error}",
|
||||
"failedToSwitchProfile": "${displayName}으로 전환할 수 없습니다"
|
||||
"failedToSwitchProfile": "${displayName}으로 전환할 수 없습니다",
|
||||
"failedToDeleteProfile": "${displayName}을(를) 삭제할 수 없습니다",
|
||||
"failedToRate": "평점을 업데이트하지 못했습니다"
|
||||
},
|
||||
"libraries": {
|
||||
"title": "미디어 라이브러리",
|
||||
@@ -595,17 +679,34 @@
|
||||
"seasons": "시즌",
|
||||
"episodes": "화",
|
||||
"folders": "폴더"
|
||||
},
|
||||
"filterCategories": {
|
||||
"genre": "장르",
|
||||
"year": "연도",
|
||||
"contentRating": "시청 등급",
|
||||
"tag": "태그"
|
||||
},
|
||||
"sortLabels": {
|
||||
"title": "제목",
|
||||
"dateAdded": "추가된 날짜",
|
||||
"releaseDate": "출시일",
|
||||
"rating": "평점",
|
||||
"lastPlayed": "마지막 재생",
|
||||
"playCount": "재생 횟수",
|
||||
"random": "무작위",
|
||||
"dateShared": "공유된 날짜",
|
||||
"latestEpisodeAirDate": "최신 에피소드 방영일"
|
||||
}
|
||||
},
|
||||
"about": {
|
||||
"title": "소개",
|
||||
"openSourceLicenses": "오픈소스 라이선스",
|
||||
"versionLabel": "버전 ${version}",
|
||||
"appDescription": "아름다운 Flutter Plex 클라이언트",
|
||||
"appDescription": "아름다운 Flutter용 Plex 및 Jellyfin 클라이언트",
|
||||
"viewLicensesDescription": "타사 라이브러리 라이선스 보기"
|
||||
},
|
||||
"serverSelection": {
|
||||
"allServerConnectionsFailed": "어떤 서버에도 연결할 수 없습니다. 네트워크를 확인하고 다시 시도하세요.",
|
||||
"allServerConnectionsFailed": "서버에 연결할 수 없습니다. 네트워크를 확인하세요.",
|
||||
"noServersFoundForAccount": "${username} (${email})의 서버를 찾을 수 없습니다.",
|
||||
"failedToLoadServers": "서버를 로드할 수 없습니다: ${error}"
|
||||
},
|
||||
@@ -642,6 +743,7 @@
|
||||
"reloadGuide": "편성표 새로고침",
|
||||
"now": "지금",
|
||||
"today": "오늘",
|
||||
"tomorrow": "내일",
|
||||
"midnight": "자정",
|
||||
"overnight": "심야",
|
||||
"morning": "아침",
|
||||
@@ -655,7 +757,41 @@
|
||||
"joinSession": "진행 중인 세션 참여",
|
||||
"watchFromStart": "처음부터 시청 (${minutes}분 전 시작)",
|
||||
"watchLive": "실시간 시청",
|
||||
"goToLive": "실시간으로 이동"
|
||||
"goToLive": "실시간으로 이동",
|
||||
"record": "녹화",
|
||||
"recordEpisode": "에피소드 녹화",
|
||||
"recordSeries": "시리즈 녹화",
|
||||
"recordOptions": "녹화 옵션",
|
||||
"recordings": "녹화",
|
||||
"scheduledRecordings": "예약됨",
|
||||
"recordingRules": "녹화 규칙",
|
||||
"noScheduledRecordings": "예약된 녹화 없음",
|
||||
"noRecordingRules": "녹화 규칙 없음",
|
||||
"manageRecording": "녹화 관리",
|
||||
"cancelRecording": "녹화 취소",
|
||||
"cancelRecordingTitle": "이 녹화를 취소할까요?",
|
||||
"cancelRecordingMessage": "${title}이(가) 더 이상 녹화되지 않습니다.",
|
||||
"deleteRule": "규칙 삭제",
|
||||
"deleteRuleTitle": "녹화 규칙을 삭제할까요?",
|
||||
"deleteRuleMessage": "${title}의 향후 에피소드는 녹화되지 않습니다.",
|
||||
"recordingScheduled": "녹화 예약됨",
|
||||
"alreadyScheduled": "이 프로그램은 이미 예약되어 있습니다",
|
||||
"dvrAdminRequired": "DVR 설정은 관리자 계정이 필요합니다",
|
||||
"recordingFailed": "녹화를 예약할 수 없습니다",
|
||||
"recordingTargetMissing": "녹화 라이브러리를 확인할 수 없습니다",
|
||||
"recordNotAvailable": "이 프로그램은 녹화할 수 없습니다",
|
||||
"recordingCancelled": "녹화 취소됨",
|
||||
"recordingRuleDeleted": "녹화 규칙 삭제됨",
|
||||
"processRecordingRules": "규칙 재평가",
|
||||
"loadingRecordings": "녹화 불러오는 중...",
|
||||
"recordingInProgress": "녹화 중",
|
||||
"recordingsCount": "${count}개 예약됨",
|
||||
"editRule": "규칙 편집",
|
||||
"editRuleAction": "편집",
|
||||
"recordingRuleUpdated": "녹화 규칙 업데이트됨",
|
||||
"guideReloadRequested": "가이드 새로고침 요청됨",
|
||||
"rulesProcessRequested": "규칙 재평가 요청됨",
|
||||
"recordShow": "프로그램 녹화"
|
||||
},
|
||||
"collections": {
|
||||
"title": "컬렉션",
|
||||
@@ -663,7 +799,7 @@
|
||||
"empty": "컬렉션이 비어 있습니다",
|
||||
"unknownLibrarySection": "삭제할 수 없습니다: 알 수 없는 미디어 라이브러리 섹션입니다",
|
||||
"deleteCollection": "컬렉션 삭제",
|
||||
"deleteConfirm": "\"${title}\"을(를) 삭제 하시겠습니까? 이 작업은 되돌릴 수 없습니다.",
|
||||
"deleteConfirm": "\"${title}\"을(를) 삭제할까요? 되돌릴 수 없습니다.",
|
||||
"deleted": "컬렉션 삭제됨",
|
||||
"deleteFailed": "컬렉션 삭제 실패",
|
||||
"deleteFailedWithError": "컬렉션 삭제 실패: ${error}",
|
||||
@@ -747,11 +883,11 @@
|
||||
"pasteFromClipboard": "클립보드에서 붙여넣기",
|
||||
"pleaseEnterCode": "세션 코드를 입력하세요",
|
||||
"codeMustBe5Chars": "세션 코드는 반드시 5자리여야 합니다",
|
||||
"joinInstructions": "호스트가 공유한 세션 코드를 입력하여 시청 세션에 참여하세요.",
|
||||
"joinInstructions": "참여하려면 호스트의 세션 코드를 입력하세요.",
|
||||
"failedToCreate": "세션 생성 실패",
|
||||
"failedToJoin": "세션 참여 실패",
|
||||
"sessionCodeCopied": "세션 코드가 클립보드에 복사되었습니다",
|
||||
"relayUnreachable": "릴레이 서버에 연결할 수 없습니다. 인터넷 제공업체가 연결을 차단하고 있을 수 있습니다. 시도해 볼 수 있지만 함께 보기가 작동하지 않을 수 있습니다.",
|
||||
"relayUnreachable": "릴레이 서버에 연결할 수 없습니다. ISP 차단으로 Watch Together가 작동하지 않을 수 있습니다.",
|
||||
"reconnectingToHost": "호스트에 재연결 중...",
|
||||
"currentPlayback": "현재 재생",
|
||||
"joinCurrentPlayback": "현재 재생 참여",
|
||||
@@ -766,7 +902,9 @@
|
||||
"waitingForParticipants": "다른 참가자의 로딩을 기다리는 중...",
|
||||
"recentRooms": "최근 방",
|
||||
"renameRoom": "방 이름 변경",
|
||||
"removeRoom": "제거"
|
||||
"removeRoom": "제거",
|
||||
"guestSwitchUnavailable": "전환할 수 없음 — 동기화 서버를 사용할 수 없습니다",
|
||||
"guestSwitchFailed": "전환할 수 없음 — 이 서버에서 콘텐츠를 찾을 수 없습니다"
|
||||
},
|
||||
"downloads": {
|
||||
"title": "다운로드",
|
||||
@@ -779,10 +917,10 @@
|
||||
"deleteDownload": "다운로드 삭제",
|
||||
"retryDownload": "다운로드 재시도",
|
||||
"downloadQueued": "다운로드 대기 중",
|
||||
"serverErrorBitrate": "서버 오류 — 파일이 원격 스트리밍 비트레이트 제한을 초과할 수 있습니다",
|
||||
"serverErrorBitrate": "서버 오류: 파일이 원격 비트레이트 제한을 초과할 수 있습니다",
|
||||
"episodesQueued": "${count} 에피소드가 다운로드 대기열에 추가 되었습니다",
|
||||
"downloadDeleted": "다운로드 삭제됨",
|
||||
"deleteConfirm": "\"${title}\"를 삭제 하시겠습니까? 다운로드한 파일이 기기에서 삭제됩니다.",
|
||||
"deleteConfirm": "이 기기에서 \"${title}\"을(를) 삭제할까요?",
|
||||
"deletingWithProgress": "${title} 삭제 중... (${current}/${total})",
|
||||
"deleting": "삭제 중...",
|
||||
"queuedTooltip": "대기 중",
|
||||
@@ -817,6 +955,12 @@
|
||||
"editSyncFilter": "동기화 필터",
|
||||
"syncAllItems": "모든 항목 동기화 중",
|
||||
"syncUnwatchedItems": "시청하지 않은 항목 동기화 중",
|
||||
"syncRuleServerContext": "서버: ${server} • ${status}",
|
||||
"syncRuleAvailable": "사용 가능",
|
||||
"syncRuleOffline": "오프라인",
|
||||
"syncRuleSignInRequired": "로그인 필요",
|
||||
"syncRuleNotAvailableForProfile": "현재 프로필에서 사용할 수 없음",
|
||||
"syncRuleUnknownServer": "알 수 없는 서버",
|
||||
"syncRuleListCreated": "동기화 규칙이 생성되었습니다"
|
||||
},
|
||||
"shaders": {
|
||||
@@ -846,7 +990,7 @@
|
||||
"connected": "연결됨",
|
||||
"serverRunning": "원격 서버 활성",
|
||||
"serverStopped": "원격 서버 중지됨",
|
||||
"serverRunningDescription": "네트워크의 모바일 기기가 이 앱을 검색하고 연결할 수 있습니다",
|
||||
"serverRunningDescription": "네트워크의 모바일 기기가 이 앱에 연결할 수 있습니다",
|
||||
"serverStoppedDescription": "모바일 기기의 연결을 허용하려면 서버를 시작하세요",
|
||||
"usePhoneToControl": "모바일 기기로 이 앱을 제어하세요",
|
||||
"startServer": "서버 시작",
|
||||
@@ -854,20 +998,20 @@
|
||||
"minimize": "최소화"
|
||||
},
|
||||
"pairing": {
|
||||
"discoveryDescription": "같은 Plex 계정으로 Plezy를 실행 중인 네트워크의 기기가 자동으로 표시됩니다",
|
||||
"discoveryDescription": "같은 Plex 계정의 Plezy 기기가 여기에 표시됩니다",
|
||||
"hostAddressHint": "192.168.1.100:48632",
|
||||
"connecting": "연결 중...",
|
||||
"searchingForDevices": "기기 검색 중...",
|
||||
"noDevicesFound": "네트워크에서 기기를 찾을 수 없습니다",
|
||||
"noDevicesHint": "데스크톱에서 Plezy가 열려 있고 두 기기가 같은 WiFi 네트워크에 있는지 확인하세요",
|
||||
"noDevicesHint": "데스크톱에서 Plezy를 열고 같은 WiFi를 사용하세요",
|
||||
"availableDevices": "사용 가능한 기기",
|
||||
"manualConnection": "수동 연결",
|
||||
"cryptoInitFailed": "보안 연결을 초기화할 수 없습니다. Plex 계정에 로그인되어 있는지 확인하세요.",
|
||||
"cryptoInitFailed": "보안 연결을 시작할 수 없습니다. 먼저 Plex에 로그인하세요.",
|
||||
"validationHostRequired": "호스트 주소를 입력하세요",
|
||||
"validationHostFormat": "형식은 IP:포트여야 합니다 (예: 192.168.1.100:48632)",
|
||||
"connectionTimedOut": "연결 시간이 초과되었습니다. 두 기기가 같은 네트워크에 있는지 확인하세요.",
|
||||
"connectionTimedOut": "연결 시간이 초과되었습니다. 두 기기에서 같은 네트워크를 사용하세요.",
|
||||
"sessionNotFound": "기기를 찾을 수 없습니다. 호스트에서 Plezy가 실행 중인지 확인하세요.",
|
||||
"authFailed": "인증에 실패했습니다. 두 기기가 같은 Plex 계정을 사용하는지 확인하세요.",
|
||||
"authFailed": "인증에 실패했습니다. 두 기기 모두 같은 Plex 계정이 필요합니다.",
|
||||
"failedToConnect": "연결 실패: ${error}"
|
||||
},
|
||||
"remote": {
|
||||
@@ -915,7 +1059,7 @@
|
||||
"externalPlayer": {
|
||||
"title": "외부 플레이어",
|
||||
"useExternalPlayer": "외부 플레이어 사용",
|
||||
"useExternalPlayerDescription": "내장 플레이어 대신 외부 앱에서 동영상 열기",
|
||||
"useExternalPlayerDescription": "동영상을 다른 앱에서 열기",
|
||||
"selectPlayer": "플레이어 선택",
|
||||
"customPlayers": "사용자 정의 플레이어",
|
||||
"systemDefault": "시스템 기본값",
|
||||
@@ -1009,7 +1153,7 @@
|
||||
"match": "일치...",
|
||||
"fixMatch": "일치 수정...",
|
||||
"unmatch": "일치 해제",
|
||||
"unmatchConfirm": "이 항목의 현재 일치를 해제하시겠습니까? 다시 일치시킬 때까지 Plex는 일치되지 않은 것으로 처리합니다.",
|
||||
"unmatchConfirm": "이 매칭을 지울까요? 다시 매칭될 때까지 Plex에서는 미매칭으로 처리됩니다.",
|
||||
"unmatchSuccess": "일치 해제됨",
|
||||
"unmatchFailed": "일치 해제에 실패했습니다",
|
||||
"matchApplied": "일치 적용됨",
|
||||
@@ -1029,7 +1173,7 @@
|
||||
"connected": "연결됨",
|
||||
"connectedAs": "@${username}(으)로 연결됨",
|
||||
"disconnectConfirm": "Trakt 계정 연결을 끊으시겠습니까?",
|
||||
"disconnectConfirmBody": "Plezy가 Trakt로 재생 이벤트를 보내지 않습니다. 언제든지 다시 연결할 수 있습니다.",
|
||||
"disconnectConfirmBody": "Plezy가 Trakt로 이벤트 전송을 중지합니다. 언제든 다시 연결할 수 있습니다.",
|
||||
"scrobble": "실시간 스크로블",
|
||||
"scrobbleDescription": "재생 중 재생, 일시정지, 정지 이벤트를 Trakt로 전송합니다.",
|
||||
"watchedSync": "시청 상태 동기화",
|
||||
@@ -1037,13 +1181,13 @@
|
||||
},
|
||||
"trackers": {
|
||||
"title": "트래커",
|
||||
"hubSubtitle": "시청 진행률을 Trakt 및 기타 서비스와 동기화하세요.",
|
||||
"hubSubtitle": "시청 진행률을 Trakt 및 다른 서비스와 동기화합니다.",
|
||||
"notConnected": "연결되지 않음",
|
||||
"connectedAs": "@${username} 로 연결됨",
|
||||
"scrobble": "진행률 자동 추적",
|
||||
"scrobbleDescription": "에피소드나 영화를 시청하면 목록을 업데이트합니다.",
|
||||
"disconnectConfirm": "${service} 연결을 해제하시겠습니까?",
|
||||
"disconnectConfirmBody": "Plezy가 ${service} 목록 업데이트를 중지합니다. 언제든지 다시 연결할 수 있습니다.",
|
||||
"disconnectConfirmBody": "Plezy가 ${service} 업데이트를 중지합니다. 언제든 다시 연결할 수 있습니다.",
|
||||
"connectFailed": "${service}에 연결할 수 없습니다. 다시 시도하세요.",
|
||||
"services": {
|
||||
"mal": "MyAnimeList",
|
||||
@@ -1059,7 +1203,7 @@
|
||||
},
|
||||
"oauthProxy": {
|
||||
"title": "${service}에 로그인",
|
||||
"body": "휴대전화로 이 QR 코드를 스캔하거나 아래 URL을 브라우저가 있는 기기에서 여세요.",
|
||||
"body": "이 QR 코드를 스캔하거나 아무 기기에서 URL을 여세요.",
|
||||
"openToSignIn": "로그인하려면 ${service} 열기",
|
||||
"urlCopied": "URL이 복사되었습니다"
|
||||
},
|
||||
@@ -1077,5 +1221,39 @@
|
||||
"libraries": "라이브러리",
|
||||
"noLibraries": "사용 가능한 라이브러리가 없습니다"
|
||||
}
|
||||
},
|
||||
"addServer": {
|
||||
"addJellyfinTitle": "Jellyfin 서버 추가",
|
||||
"jellyfinUrlIntro": "서버 URL을 입력하세요. 예: `https://jellyfin.example.com`.",
|
||||
"serverUrl": "서버 URL",
|
||||
"findServer": "서버 찾기",
|
||||
"username": "사용자 이름",
|
||||
"password": "비밀번호",
|
||||
"signIn": "로그인",
|
||||
"change": "변경",
|
||||
"required": "필수",
|
||||
"couldNotReachServer": "서버에 연결할 수 없습니다: ${error}",
|
||||
"signInFailed": "로그인 실패: ${error}",
|
||||
"quickConnectFailed": "Quick Connect 실패: ${error}",
|
||||
"addPlexTitle": "Plex로 로그인",
|
||||
"plexAuthIntro": "브라우저 또는 QR 코드로 로그인하세요.",
|
||||
"plexQRPrompt": "이 QR 코드를 스캔하여 로그인하세요.",
|
||||
"waitingForPlexConfirmation": "plex.tv에서 로그인을 확인하는 중…",
|
||||
"pinExpired": "로그인 전에 PIN이 만료되었습니다. 다시 시도하세요.",
|
||||
"duplicatePlexAccount": "이미 Plex에 로그인되어 있습니다. 계정을 전환하려면 로그아웃하세요.",
|
||||
"failedToRegisterAccount": "계정 등록 실패: ${error}",
|
||||
"enterJellyfinUrlError": "Jellyfin 서버 URL을 입력하세요",
|
||||
"addConnectionTitle": "연결 추가",
|
||||
"addConnectionTitleScoped": "${name}에 추가",
|
||||
"addConnectionIntroGlobal": "다른 미디어 서버를 추가합니다. Plex와 Jellyfin이 홈에 함께 표시됩니다.",
|
||||
"addConnectionIntroScoped": "새 서버를 추가하거나 다른 프로필에서 빌리세요.",
|
||||
"signInWithPlexCard": "Plex로 로그인",
|
||||
"signInWithPlexCardSubtitle": "이 기기를 승인합니다. 공유 서버가 추가됩니다.",
|
||||
"signInWithPlexCardSubtitleScoped": "Plex 계정을 승인합니다. Home 사용자는 프로필이 됩니다.",
|
||||
"connectToJellyfinCard": "Jellyfin에 연결",
|
||||
"connectToJellyfinCardSubtitle": "서버 URL, 사용자 이름, 비밀번호를 입력하세요.",
|
||||
"connectToJellyfinCardSubtitleScoped": "Jellyfin 서버에 로그인합니다. ${name}에 연결됩니다.",
|
||||
"borrowFromAnotherProfile": "다른 프로필에서 빌리기",
|
||||
"borrowFromAnotherProfileSubtitle": "다른 프로필의 연결을 재사용합니다. PIN으로 보호된 프로필에는 PIN이 필요합니다."
|
||||
}
|
||||
}
|
||||
|
||||
+245
-67
@@ -3,13 +3,22 @@
|
||||
"title": "Plezy"
|
||||
},
|
||||
"auth": {
|
||||
"signIn": "Logg på",
|
||||
"signInWithPlex": "Logg inn med Plex",
|
||||
"showQRCode": "Vis QR-kode",
|
||||
"authenticate": "Autentiser",
|
||||
"authenticationTimeout": "Autentiseringen ble tidsavbrutt. Prøv igjen.",
|
||||
"scanQRToSignIn": "Skann denne QR-koden for å logge inn",
|
||||
"waitingForAuth": "Venter på autentisering...\nFullfør innloggingen i nettleseren din.",
|
||||
"useBrowser": "Bruk nettleser"
|
||||
"waitingForAuth": "Venter på autentisering...\nLogg inn fra nettleseren.",
|
||||
"useBrowser": "Bruk nettleser",
|
||||
"or": "eller",
|
||||
"connectToJellyfin": "Koble til Jellyfin",
|
||||
"useQuickConnect": "Bruk Quick Connect",
|
||||
"quickConnectCode": "Quick Connect-kode",
|
||||
"quickConnectInstructions": "Åpne Quick Connect i Jellyfin og skriv inn denne koden.",
|
||||
"quickConnectWaiting": "Venter på godkjenning…",
|
||||
"quickConnectCancel": "Avbryt",
|
||||
"quickConnectExpired": "Quick Connect er utløpt. Prøv igjen."
|
||||
},
|
||||
"common": {
|
||||
"cancel": "Avbryt",
|
||||
@@ -43,9 +52,6 @@
|
||||
"mute": "Demp",
|
||||
"ok": "OK",
|
||||
"reconnect": "Koble til på nytt",
|
||||
"exitConfirmTitle": "Avslutte appen?",
|
||||
"exitConfirmMessage": "Er du sikker på at du vil avslutte?",
|
||||
"dontAskAgain": "Ikke spør igjen",
|
||||
"exit": "Avslutt",
|
||||
"viewAll": "Vis alle",
|
||||
"checkingNetwork": "Sjekker nettverk...",
|
||||
@@ -55,7 +61,8 @@
|
||||
"startingOfflineMode": "Starter frakoblet modus...",
|
||||
"loading": "Laster...",
|
||||
"fullscreen": "Fullskjerm",
|
||||
"exitFullscreen": "Avslutt fullskjerm"
|
||||
"exitFullscreen": "Avslutt fullskjerm",
|
||||
"pressBackAgainToExit": "Trykk tilbake igjen for å avslutte"
|
||||
},
|
||||
"screens": {
|
||||
"licenses": "Lisenser",
|
||||
@@ -104,22 +111,22 @@
|
||||
"gridView": "Rutenett",
|
||||
"listView": "Liste",
|
||||
"showHeroSection": "Vis fremhevet seksjon",
|
||||
"useGlobalHubs": "Bruk Plex Home-layout",
|
||||
"useGlobalHubsDescription": "Vis hjemmeside-huber som den offisielle Plex-klienten. Når av, vises per-bibliotek-anbefalinger i stedet.",
|
||||
"useGlobalHubs": "Bruk startoppsett",
|
||||
"useGlobalHubsDescription": "Vis samlet startinnhold. Ellers brukes bibliotekanbefalinger.",
|
||||
"showServerNameOnHubs": "Vis servernavn på huber",
|
||||
"showServerNameOnHubsDescription": "Vis alltid servernavnet i hubtitler. Når av, vises kun for dupliserte hubnavn.",
|
||||
"showServerNameOnHubsDescription": "Vis alltid servernavn i hubtitler.",
|
||||
"groupLibrariesByServer": "Grupper biblioteker etter server",
|
||||
"groupLibrariesByServerDescription": "Vis en overskrift for hver Plex-server i sidefeltet når du er koblet til flere servere.",
|
||||
"groupLibrariesByServerDescription": "Grupper sidepanelbiblioteker under hver medieserver.",
|
||||
"alwaysKeepSidebarOpen": "Hold sidefeltet alltid åpent",
|
||||
"alwaysKeepSidebarOpenDescription": "Sidefeltet forblir utvidet og innholdsområdet tilpasser seg",
|
||||
"showUnwatchedCount": "Vis antall usette",
|
||||
"showUnwatchedCountDescription": "Vis antall usette episoder på serier og sesonger",
|
||||
"showEpisodeNumberOnCards": "Vis episodenummer på kort",
|
||||
"showEpisodeNumberOnCardsDescription": "Vis episodenummer ved siden av sesongen (f.eks. S2 E3) på episodekort",
|
||||
"showEpisodeNumberOnCardsDescription": "Vis sesong- og episodenummer på episodekort",
|
||||
"showSeasonPostersOnTabs": "Vis sesongplakater på faner",
|
||||
"showSeasonPostersOnTabsDescription": "Vis sesongens plakat over hver sesongfane på en series detaljside",
|
||||
"showSeasonPostersOnTabsDescription": "Vis hver sesongs plakat over fanen",
|
||||
"hideSpoilers": "Skjul spoilere for usette episoder",
|
||||
"hideSpoilersDescription": "Slør miniatyrbilder og skjul beskrivelser for episoder du ikke har sett ennå",
|
||||
"hideSpoilersDescription": "Slør miniatyrbilder og beskrivelser for usette episoder",
|
||||
"playerBackend": "Spillermotor",
|
||||
"exoPlayer": "ExoPlayer (Anbefalt)",
|
||||
"mpv": "mpv",
|
||||
@@ -128,7 +135,7 @@
|
||||
"bufferSize": "Bufferstørrelse",
|
||||
"bufferSizeMB": "${size}MB",
|
||||
"bufferSizeAuto": "Auto (Anbefalt)",
|
||||
"bufferSizeWarning": "Enheten din har ${heap}MB minne. En ${size}MB buffer kan forårsake avspillingsproblemer.",
|
||||
"bufferSizeWarning": "${heap}MB minne tilgjengelig. En buffer på ${size}MB kan påvirke avspilling.",
|
||||
"defaultQualityTitle": "Standardkvalitet",
|
||||
"defaultQualityDescription": "Brukes ved start av avspilling. Lavere verdier reduserer båndbredden.",
|
||||
"subtitleStyling": "Undertekststil",
|
||||
@@ -140,16 +147,18 @@
|
||||
"defaultSleepTimer": "Standard søvntimer",
|
||||
"minutesUnit": "${minutes} minutter",
|
||||
"rememberTrackSelections": "Husk sporvalg per serie/film",
|
||||
"rememberTrackSelectionsDescription": "Lagre automatisk lyd- og undertekstspråkpreferanser når du bytter spor under avspilling",
|
||||
"rememberTrackSelectionsDescription": "Husk lyd- og undertekstvalg per tittel",
|
||||
"showChapterMarkersOnTimeline": "Vis kapittelmarkører på tidslinjen",
|
||||
"showChapterMarkersOnTimelineDescription": "Del tidslinjen ved kapittelgrenser",
|
||||
"clickVideoTogglesPlayback": "Klikk på video for å veksle avspilling",
|
||||
"clickVideoTogglesPlaybackDescription": "Hvis aktivert, vil klikk på videospilleren spille av/pause videoen. Ellers vil klikk vise/skjule avspillingskontrollene.",
|
||||
"clickVideoTogglesPlaybackDescription": "Klikk på video for å spille av/pause i stedet for å vise kontroller.",
|
||||
"videoPlayerControls": "Videospillerkontroller",
|
||||
"keyboardShortcuts": "Tastatursnarveier",
|
||||
"keyboardShortcutsDescription": "Tilpass tastatursnarveier",
|
||||
"videoPlayerNavigation": "Videospillernavigering",
|
||||
"videoPlayerNavigationDescription": "Bruk piltaster for å navigere videospillerkontroller",
|
||||
"watchTogetherRelay": "Se Sammen-relay",
|
||||
"watchTogetherRelayDescription": "Angi en egendefinert relay-server for Se Sammen. Alle deltakere må bruke den samme serveren.",
|
||||
"watchTogetherRelayDescription": "Angi en egendefinert relay. Alle må bruke samme server.",
|
||||
"watchTogetherRelayHint": "https://min-relay.eksempel.no",
|
||||
"crashReporting": "Krasjrapportering",
|
||||
"crashReportingDescription": "Send krasjrapporter for å hjelpe med å forbedre appen",
|
||||
@@ -158,10 +167,10 @@
|
||||
"viewLogs": "Vis logger",
|
||||
"viewLogsDescription": "Vis applikasjonslogger",
|
||||
"clearCache": "Tøm hurtigbuffer",
|
||||
"clearCacheDescription": "Dette vil tømme alle hurtigbufrede bilder og data. Appen kan bruke lengre tid på å laste innhold etter tømming.",
|
||||
"clearCacheDescription": "Tøm bufrede bilder og data. Innhold kan lastes tregere.",
|
||||
"clearCacheSuccess": "Hurtigbuffer tømt",
|
||||
"resetSettings": "Tilbakestill innstillinger",
|
||||
"resetSettingsDescription": "Dette vil tilbakestille alle innstillinger til standardverdier. Denne handlingen kan ikke angres.",
|
||||
"resetSettingsDescription": "Gjenopprett standardinnstillinger. Dette kan ikke angres.",
|
||||
"resetSettingsSuccess": "Innstillinger tilbakestilt",
|
||||
"backup": "Sikkerhetskopi",
|
||||
"exportSettings": "Eksporter innstillinger",
|
||||
@@ -182,7 +191,7 @@
|
||||
"updateAvailable": "Oppdatering tilgjengelig",
|
||||
"checkForUpdates": "Se etter oppdateringer",
|
||||
"autoCheckUpdatesOnStartup": "Se automatisk etter oppdateringer ved oppstart",
|
||||
"autoCheckUpdatesOnStartupDescription": "Vis et varsel når en ny versjon er tilgjengelig ved oppstart",
|
||||
"autoCheckUpdatesOnStartupDescription": "Varsle når en oppdatering er tilgjengelig ved oppstart",
|
||||
"validationErrorEnterNumber": "Vennligst skriv inn et gyldig tall",
|
||||
"validationErrorDuration": "Varigheten må være mellom ${min} og ${max} ${unit}",
|
||||
"shortcutAlreadyAssigned": "Snarvei allerede tilordnet til ${action}",
|
||||
@@ -192,6 +201,8 @@
|
||||
"autoSkipIntroDescription": "Hopp automatisk over intromarkører etter noen sekunder",
|
||||
"autoSkipCredits": "Hopp over rulletekst automatisk",
|
||||
"autoSkipCreditsDescription": "Hopp automatisk over rulletekst og spill neste episode",
|
||||
"forceSkipMarkerFallback": "Tving reservemarkører",
|
||||
"forceSkipMarkerFallbackDescription": "Bruk mønstre i kapiteltitler selv når Plex har markører",
|
||||
"autoSkipDelay": "Forsinkelse for automatisk hopp",
|
||||
"autoSkipDelayDescription": "Vent ${seconds} sekunder før automatisk hopping",
|
||||
"introPattern": "Intromarkørmønster",
|
||||
@@ -213,8 +224,8 @@
|
||||
"downloadOnWifiOnly": "Last ned kun på WiFi",
|
||||
"downloadOnWifiOnlyDescription": "Forhindre nedlastinger på mobildata",
|
||||
"autoRemoveWatchedDownloads": "Fjern sette nedlastinger automatisk",
|
||||
"autoRemoveWatchedDownloadsDescription": "Slett nedlastede episoder og filmer automatisk når de er markert som sett",
|
||||
"cellularDownloadBlocked": "Nedlastinger er deaktivert på mobildata. Koble til WiFi eller endre innstillingen.",
|
||||
"autoRemoveWatchedDownloadsDescription": "Slett sette nedlastinger automatisk",
|
||||
"cellularDownloadBlocked": "Nedlastinger er blokkert på mobilnett. Bruk WiFi eller endre innstillingen.",
|
||||
"maxVolume": "Maks volum",
|
||||
"maxVolumeDescription": "Tillat volumforsterkning over 100% for stille media",
|
||||
"maxVolumePercent": "${percent}%",
|
||||
@@ -227,22 +238,20 @@
|
||||
"companionRemoteServer": "Companion Remote-server",
|
||||
"companionRemoteServerDescription": "Tillat mobilenheter på nettverket ditt å styre denne appen",
|
||||
"autoPip": "Auto bilde-i-bilde",
|
||||
"autoPipDescription": "Gå automatisk til bilde-i-bilde når du forlater appen under avspilling",
|
||||
"autoPipDescription": "Gå til bilde-i-bilde når du forlater under avspilling",
|
||||
"matchContentFrameRate": "Tilpass innholdets bildefrekvens",
|
||||
"matchContentFrameRateDescription": "Juster skjermens oppdateringsfrekvens for å matche videoinnhold, reduserer hakking og sparer batteri",
|
||||
"matchContentFrameRateDescription": "Tilpass skjermens oppdateringsfrekvens til videoinnhold",
|
||||
"matchRefreshRate": "Tilpass oppdateringsfrekvens",
|
||||
"matchRefreshRateDescription": "Bytt skjermens oppdateringsfrekvens for å matche videoinnhold i fullskjerm",
|
||||
"matchRefreshRateDescription": "Tilpass skjermens oppdateringsfrekvens i fullskjerm",
|
||||
"matchDynamicRange": "Tilpass dynamisk område",
|
||||
"matchDynamicRangeDescription": "Aktiver HDR automatisk for HDR-innhold og gå tilbake til SDR når spilleren lukkes",
|
||||
"matchDynamicRangeDescription": "Slå på HDR for HDR-innhold, og deretter tilbake til SDR",
|
||||
"displaySwitchDelay": "Forsinkelse ved skjermbytte",
|
||||
"tunneledPlayback": "Tunnelert avspilling",
|
||||
"tunneledPlaybackDescription": "Bruk maskinvareakselerert videotunnelering. Deaktiver hvis du ser svart skjerm med lyd på HDR-innhold",
|
||||
"tunneledPlaybackDescription": "Bruk videotunneling. Slå av hvis HDR-avspilling viser svart video.",
|
||||
"requireProfileSelectionOnOpen": "Spør om profil ved appåpning",
|
||||
"requireProfileSelectionOnOpenDescription": "Vis profilvalg hver gang appen åpnes",
|
||||
"confirmExitOnBack": "Bekreft før avslutning",
|
||||
"confirmExitOnBackDescription": "Vis en bekreftelsesdialog når du trykker tilbake for å avslutte appen",
|
||||
"forceTvMode": "Tving TV-modus",
|
||||
"forceTvModeDescription": "Bruk TV-oppsettet uavhengig av automatisk gjenkjenning. Nyttig på Android TV-enheter som ikke rapporterer leanback-funksjonen. Starter appen på nytt ved endring.",
|
||||
"forceTvModeDescription": "Tving TV-oppsett. For enheter som ikke oppdages automatisk. Krever omstart.",
|
||||
"startInFullscreen": "Start i fullskjerm",
|
||||
"startInFullscreenDescription": "Åpne Plezy i fullskjermmodus ved oppstart",
|
||||
"autoHidePerformanceOverlay": "Skjul ytelsesoverlegg automatisk",
|
||||
@@ -251,15 +260,15 @@
|
||||
"showNavBarLabelsDescription": "Vis tekstlabeler under navigasjonsfeltikoner",
|
||||
"liveTvDefaultFavorites": "Standard til favorittkanaler",
|
||||
"liveTvDefaultFavoritesDescription": "Vis kun favorittkanaler når du åpner Live TV",
|
||||
"display": "Display",
|
||||
"homeScreen": "Home Screen",
|
||||
"navigation": "Navigation",
|
||||
"window": "Window",
|
||||
"content": "Content",
|
||||
"player": "Player",
|
||||
"subtitlesAndConfig": "Subtitles & Configuration",
|
||||
"seekAndTiming": "Seek & Timing",
|
||||
"behavior": "Behavior"
|
||||
"display": "Skjerm",
|
||||
"homeScreen": "Hjemmeskjerm",
|
||||
"navigation": "Navigering",
|
||||
"window": "Vindu",
|
||||
"content": "Innhold",
|
||||
"player": "Spiller",
|
||||
"subtitlesAndConfig": "Undertekster og konfigurasjon",
|
||||
"seekAndTiming": "Søk og tidtaking",
|
||||
"behavior": "Atferd"
|
||||
},
|
||||
"search": {
|
||||
"hint": "Søk i filmer, serier, musikk...",
|
||||
@@ -330,7 +339,7 @@
|
||||
"shufflePlay": "Tilfeldig avspilling",
|
||||
"fileInfo": "Filinformasjon",
|
||||
"deleteFromServer": "Slett fra server",
|
||||
"confirmDelete": "Dette vil permanent slette dette mediet og filene fra serveren din. Dette kan ikke angres.",
|
||||
"confirmDelete": "Slette dette mediet og filene fra serveren?",
|
||||
"deleteMultipleWarning": "Dette inkluderer alle episoder og deres filer.",
|
||||
"mediaDeletedSuccessfully": "Medieelement slettet",
|
||||
"mediaFailedToDelete": "Kunne ikke slette medieelement",
|
||||
@@ -414,7 +423,7 @@
|
||||
"pipErrors": {
|
||||
"androidVersion": "Krever Android 8.0 eller nyere",
|
||||
"iosVersion": "Krever iOS 15.0 eller nyere",
|
||||
"permissionDisabled": "Bilde-i-bilde-tillatelse er deaktivert. Aktiver den i Innstillinger > Apper > Plezy > Bilde-i-bilde",
|
||||
"permissionDisabled": "Bilde-i-bilde er deaktivert. Slå det på i systeminnstillinger.",
|
||||
"notSupported": "Enheten støtter ikke bilde-i-bilde-modus",
|
||||
"voSwitchFailed": "Kunne ikke bytte videoutgang for bilde-i-bilde",
|
||||
"failed": "Bilde-i-bilde kunne ikke starte",
|
||||
@@ -452,7 +461,7 @@
|
||||
"musicNotSupported": "Musikkavspilling støttes ikke ennå",
|
||||
"noDescriptionAvailable": "Ingen beskrivelse tilgjengelig",
|
||||
"noProfilesAvailable": "Ingen profiler tilgjengelige",
|
||||
"contactAdminForProfiles": "Kontakt Plex-administratoren for å legge til profiler",
|
||||
"contactAdminForProfiles": "Kontakt serveradministratoren din for å legge til profiler",
|
||||
"unableToDetermineLibrarySection": "Kan ikke fastslå bibliotekseksjonen for dette elementet",
|
||||
"logsCleared": "Logger tømt",
|
||||
"logsCopied": "Logger kopiert til utklippstavle",
|
||||
@@ -474,7 +483,7 @@
|
||||
"failedPlayback": "Kunne ikke ${action}: ${error}",
|
||||
"switchingToCompatiblePlayer": "Bytter til kompatibel spiller...",
|
||||
"serverLimitTitle": "Avspilling mislyktes",
|
||||
"serverLimitBody": "Serveren returnerte en feil (HTTP 500). Det betyr vanligvis at servereieren har satt en båndbredde- eller transkodingsgrense som avviser økten din. Det er ingenting du kan gjøre fra klienten — servereieren må justere innstillingene sine.",
|
||||
"serverLimitBody": "Serverfeil (HTTP 500). En båndbredde-/transkodingsgrense avviste trolig økten. Be eieren justere den.",
|
||||
"logsUploaded": "Logger lastet opp",
|
||||
"logsUploadFailed": "Kunne ikke laste opp logger",
|
||||
"logId": "Logg-ID"
|
||||
@@ -513,12 +522,85 @@
|
||||
"dialog": {
|
||||
"confirmAction": "Bekreft handling"
|
||||
},
|
||||
"profiles": {
|
||||
"addPlezyProfile": "Legg til Plezy-profil",
|
||||
"switchingProfile": "Bytter profil…",
|
||||
"deleteThisProfileTitle": "Slett denne profilen?",
|
||||
"deleteThisProfileMessage": "Fjern ${displayName}. Tilkoblinger påvirkes ikke.",
|
||||
"active": "Aktiv",
|
||||
"manage": "Administrer",
|
||||
"delete": "Slett",
|
||||
"signOut": "Logg ut",
|
||||
"signOutPlexTitle": "Logge ut av Plex?",
|
||||
"signOutPlexMessage": "Fjerne ${displayName} og alle Plex Home-brukere? Du kan logge inn igjen når som helst.",
|
||||
"signedOutPlex": "Logget ut av Plex.",
|
||||
"signOutFailed": "Utlogging mislyktes.",
|
||||
"sectionTitle": "Profiler",
|
||||
"summarySingle": "Legg til profiler for å blande administrerte brukere og lokale identiteter",
|
||||
"summaryMultipleWithActive": "${count} profiler · aktiv: ${activeName}",
|
||||
"summaryMultiple": "${count} profiler",
|
||||
"removeConnectionTitle": "Fjerne tilkobling?",
|
||||
"removeConnectionMessage": "Fjern ${displayName}s tilgang til ${connectionLabel}. Andre profiler beholder den.",
|
||||
"deleteProfileTitle": "Slette profil?",
|
||||
"deleteProfileMessage": "Fjern ${displayName} og tilkoblingene. Servere forblir tilgjengelige.",
|
||||
"profileNameLabel": "Profilnavn",
|
||||
"pinProtectionLabel": "PIN-beskyttelse",
|
||||
"pinManagedByPlex": "PIN administreres av Plex. Rediger på plex.tv.",
|
||||
"noPinSetEditOnPlex": "Ingen PIN er satt. For å kreve én, rediger Home-brukeren på plex.tv.",
|
||||
"setPin": "Sett PIN",
|
||||
"setPinTitle": "Sett PIN",
|
||||
"confirmPinTitle": "Bekreft PIN",
|
||||
"pinSet": "PIN satt",
|
||||
"changePin": "Endre",
|
||||
"removePin": "Fjern",
|
||||
"connectionsLabel": "Tilkoblinger",
|
||||
"add": "Legg til",
|
||||
"deleteProfileButton": "Slett profil",
|
||||
"noConnectionsHint": "Ingen tilkoblinger — legg til én for å bruke denne profilen.",
|
||||
"noConnections": "Ingen tilkoblinger",
|
||||
"plexHomeAccount": "Plex Home-konto",
|
||||
"connectionDefault": "Standard",
|
||||
"connectionAs": "som ${displayName}",
|
||||
"makeDefault": "Gjør til standard",
|
||||
"removeConnection": "Fjern",
|
||||
"profileRenamed": "Profilen er omdøpt.",
|
||||
"borrowAddTo": "Legg til ${displayName}",
|
||||
"borrowExplain": "Lån en annen profils tilkobling. PIN-beskyttede profiler krever PIN.",
|
||||
"borrowEmpty": "Ingenting å låne enda.",
|
||||
"borrowEmptySubtitle": "Koble Plex eller Jellyfin til en annen profil først.",
|
||||
"borrowFromProfile": "Fra ${displayName}",
|
||||
"borrowConnectionBorrowed": "Tilkobling lånt.",
|
||||
"borrowFailed": "Kunne ikke låne tilkoblingen.",
|
||||
"incorrectPin": "Feil PIN.",
|
||||
"sourceProfileMissingParentAccount": "Kildeprofilen mangler foreldrekontoen sin.",
|
||||
"failedToVerifyPin": "Kunne ikke bekrefte PIN.",
|
||||
"newProfile": "Ny profil",
|
||||
"profileNameHint": "f.eks. Gjester, Barn, Familierom",
|
||||
"pinProtectionOptional": "PIN-beskyttelse (valgfri)",
|
||||
"pinExplain": "4-sifret PIN kreves for å bytte profiler.",
|
||||
"continueButton": "Fortsett",
|
||||
"pinsDontMatch": "PIN-ene samsvarer ikke"
|
||||
},
|
||||
"connections": {
|
||||
"sectionTitle": "Tilkoblinger",
|
||||
"addConnection": "Legg til tilkobling",
|
||||
"addConnectionSubtitleNoProfile": "Logg inn med Plex eller koble til en Jellyfin-server",
|
||||
"addConnectionSubtitleScoped": "Legg til for ${displayName}: Plex, Jellyfin eller en annen profiltilkobling",
|
||||
"sessionExpiredOne": "Økten er utløpt for ${name}",
|
||||
"sessionExpiredMany": "Økten er utløpt for ${count} servere",
|
||||
"signInAgain": "Logg inn igjen"
|
||||
},
|
||||
"discover": {
|
||||
"title": "Oppdag",
|
||||
"switchProfile": "Bytt profil",
|
||||
"noContentAvailable": "Ingen innhold tilgjengelig",
|
||||
"addMediaToLibraries": "Legg til medier i bibliotekene dine",
|
||||
"continueWatching": "Fortsett å se",
|
||||
"continueWatchingIn": "Fortsett å se i ${library}",
|
||||
"nextUp": "Neste opp",
|
||||
"nextUpIn": "Neste opp i ${library}",
|
||||
"recentlyAdded": "Nylig lagt til",
|
||||
"recentlyAddedIn": "Nylig lagt til i ${library}",
|
||||
"playEpisode": "S${season}E${episode}",
|
||||
"overview": "Oversikt",
|
||||
"cast": "Skuespillere",
|
||||
@@ -532,7 +614,7 @@
|
||||
"errors": {
|
||||
"searchFailed": "Søk mislyktes: ${error}",
|
||||
"connectionTimeout": "Tidsavbrudd ved lasting av ${context}",
|
||||
"connectionFailed": "Kunne ikke koble til Plex-server",
|
||||
"connectionFailed": "Kan ikke koble til medieserver",
|
||||
"failedToLoad": "Kunne ikke laste ${context}: ${error}",
|
||||
"noClientAvailable": "Ingen klient tilgjengelig",
|
||||
"authenticationFailed": "Autentisering mislyktes: ${error}",
|
||||
@@ -540,7 +622,9 @@
|
||||
"pleaseEnterToken": "Vennligst skriv inn et token",
|
||||
"invalidToken": "Ugyldig token",
|
||||
"failedToVerifyToken": "Kunne ikke verifisere token: ${error}",
|
||||
"failedToSwitchProfile": "Kunne ikke bytte til ${displayName}"
|
||||
"failedToSwitchProfile": "Kunne ikke bytte til ${displayName}",
|
||||
"failedToDeleteProfile": "Kunne ikke slette ${displayName}",
|
||||
"failedToRate": "Kunne ikke oppdatere vurderingen"
|
||||
},
|
||||
"libraries": {
|
||||
"title": "Biblioteker",
|
||||
@@ -595,17 +679,34 @@
|
||||
"seasons": "Sesonger",
|
||||
"episodes": "Episoder",
|
||||
"folders": "Mapper"
|
||||
},
|
||||
"filterCategories": {
|
||||
"genre": "Sjanger",
|
||||
"year": "År",
|
||||
"contentRating": "Aldersgrense",
|
||||
"tag": "Tag"
|
||||
},
|
||||
"sortLabels": {
|
||||
"title": "Tittel",
|
||||
"dateAdded": "Lagt til-dato",
|
||||
"releaseDate": "Utgivelsesdato",
|
||||
"rating": "Vurdering",
|
||||
"lastPlayed": "Sist spilt",
|
||||
"playCount": "Avspillinger",
|
||||
"random": "Tilfeldig",
|
||||
"dateShared": "Delingsdato",
|
||||
"latestEpisodeAirDate": "Siste episodes sendedato"
|
||||
}
|
||||
},
|
||||
"about": {
|
||||
"title": "Om",
|
||||
"openSourceLicenses": "Åpen kildekode-lisenser",
|
||||
"versionLabel": "Versjon ${version}",
|
||||
"appDescription": "En vakker Plex-klient for Flutter",
|
||||
"appDescription": "En vakker Plex- og Jellyfin-klient for Flutter",
|
||||
"viewLicensesDescription": "Vis lisenser for tredjepartsbiblioteker"
|
||||
},
|
||||
"serverSelection": {
|
||||
"allServerConnectionsFailed": "Kunne ikke koble til noen servere. Sjekk nettverket ditt og prøv igjen.",
|
||||
"allServerConnectionsFailed": "Kunne ikke koble til noen servere. Sjekk nettverket ditt.",
|
||||
"noServersFoundForAccount": "Ingen servere funnet for ${username} (${email})",
|
||||
"failedToLoadServers": "Kunne ikke laste servere: ${error}"
|
||||
},
|
||||
@@ -642,6 +743,7 @@
|
||||
"reloadGuide": "Last inn programguide på nytt",
|
||||
"now": "Nå",
|
||||
"today": "I dag",
|
||||
"tomorrow": "I morgen",
|
||||
"midnight": "Midnatt",
|
||||
"overnight": "Natt",
|
||||
"morning": "Morgen",
|
||||
@@ -655,7 +757,41 @@
|
||||
"joinSession": "Bli med i pågående økt",
|
||||
"watchFromStart": "Se fra starten (${minutes} min siden)",
|
||||
"watchLive": "Se direkte",
|
||||
"goToLive": "Gå til direkte"
|
||||
"goToLive": "Gå til direkte",
|
||||
"record": "Ta opp",
|
||||
"recordEpisode": "Ta opp episode",
|
||||
"recordSeries": "Ta opp serie",
|
||||
"recordOptions": "Opptaksvalg",
|
||||
"recordings": "Opptak",
|
||||
"scheduledRecordings": "Planlagt",
|
||||
"recordingRules": "Opptaksregler",
|
||||
"noScheduledRecordings": "Ingen planlagte opptak",
|
||||
"noRecordingRules": "Ingen opptaksregler ennå",
|
||||
"manageRecording": "Administrer opptak",
|
||||
"cancelRecording": "Avbryt opptak",
|
||||
"cancelRecordingTitle": "Avbryte dette opptaket?",
|
||||
"cancelRecordingMessage": "${title} blir ikke lenger tatt opp.",
|
||||
"deleteRule": "Slett regel",
|
||||
"deleteRuleTitle": "Slette opptaksregel?",
|
||||
"deleteRuleMessage": "Fremtidige episoder av ${title} blir ikke tatt opp.",
|
||||
"recordingScheduled": "Opptak planlagt",
|
||||
"alreadyScheduled": "Dette programmet er allerede planlagt",
|
||||
"dvrAdminRequired": "DVR-innstillinger krever en administratorkonto",
|
||||
"recordingFailed": "Kunne ikke planlegge opptak",
|
||||
"recordingTargetMissing": "Kunne ikke finne opptaksbibliotek",
|
||||
"recordNotAvailable": "Opptak er ikke tilgjengelig for dette programmet",
|
||||
"recordingCancelled": "Opptak avbrutt",
|
||||
"recordingRuleDeleted": "Opptaksregel slettet",
|
||||
"processRecordingRules": "Vurder regler på nytt",
|
||||
"loadingRecordings": "Laster opptak ...",
|
||||
"recordingInProgress": "Tar opp nå",
|
||||
"recordingsCount": "${count} planlagt",
|
||||
"editRule": "Rediger regel",
|
||||
"editRuleAction": "Rediger",
|
||||
"recordingRuleUpdated": "Opptaksregel oppdatert",
|
||||
"guideReloadRequested": "Forespurte guide-oppdatering",
|
||||
"rulesProcessRequested": "Forespurte regelevaluering",
|
||||
"recordShow": "Ta opp program"
|
||||
},
|
||||
"collections": {
|
||||
"title": "Samlinger",
|
||||
@@ -663,7 +799,7 @@
|
||||
"empty": "Samlingen er tom",
|
||||
"unknownLibrarySection": "Kan ikke slette: Ukjent bibliotekseksjon",
|
||||
"deleteCollection": "Slett samling",
|
||||
"deleteConfirm": "Er du sikker på at du vil slette \"${title}\"? Denne handlingen kan ikke angres.",
|
||||
"deleteConfirm": "Slette \"${title}\"? Dette kan ikke angres.",
|
||||
"deleted": "Samling slettet",
|
||||
"deleteFailed": "Kunne ikke slette samling",
|
||||
"deleteFailedWithError": "Kunne ikke slette samling: ${error}",
|
||||
@@ -747,11 +883,11 @@
|
||||
"pasteFromClipboard": "Lim inn fra utklippstavle",
|
||||
"pleaseEnterCode": "Vennligst skriv inn en øktkode",
|
||||
"codeMustBe5Chars": "Øktkoden må være 5 tegn",
|
||||
"joinInstructions": "Skriv inn øktkoden delt av verten for å bli med i se sammen-økten.",
|
||||
"joinInstructions": "Skriv inn vertens øktkode for å bli med.",
|
||||
"failedToCreate": "Kunne ikke opprette økt",
|
||||
"failedToJoin": "Kunne ikke bli med i økt",
|
||||
"sessionCodeCopied": "Øktkode kopiert til utklippstavle",
|
||||
"relayUnreachable": "Reléserveren er utilgjengelig. Dette kan skyldes at internettleverandøren din blokkerer tilkoblingen. Du kan fortsatt prøve, men Se sammen fungerer kanskje ikke.",
|
||||
"relayUnreachable": "Relay-serveren kan ikke nås. ISP-blokkering kan hindre Watch Together.",
|
||||
"reconnectingToHost": "Kobler til verten på nytt...",
|
||||
"currentPlayback": "Gjeldende avspilling",
|
||||
"joinCurrentPlayback": "Bli med i gjeldende avspilling",
|
||||
@@ -766,7 +902,9 @@
|
||||
"waitingForParticipants": "Venter på at andre laster inn...",
|
||||
"recentRooms": "Nylige rom",
|
||||
"renameRoom": "Gi nytt navn til rom",
|
||||
"removeRoom": "Fjern"
|
||||
"removeRoom": "Fjern",
|
||||
"guestSwitchUnavailable": "Kunne ikke bytte — server ikke tilgjengelig for synkronisering",
|
||||
"guestSwitchFailed": "Kunne ikke bytte — innhold ble ikke funnet på denne serveren"
|
||||
},
|
||||
"downloads": {
|
||||
"title": "Nedlastinger",
|
||||
@@ -779,10 +917,10 @@
|
||||
"deleteDownload": "Slett nedlasting",
|
||||
"retryDownload": "Prøv nedlasting på nytt",
|
||||
"downloadQueued": "Nedlasting i kø",
|
||||
"serverErrorBitrate": "Serverfeil — filen overskrider muligens grensen for fjernstrømming-bitrate",
|
||||
"serverErrorBitrate": "Serverfeil: filen kan overskride grensen for ekstern bitrate",
|
||||
"episodesQueued": "${count} episoder i nedlastingskø",
|
||||
"downloadDeleted": "Nedlasting slettet",
|
||||
"deleteConfirm": "Er du sikker på at du vil slette \"${title}\"? Dette vil fjerne den nedlastede filen fra enheten din.",
|
||||
"deleteConfirm": "Slette \"${title}\" fra denne enheten?",
|
||||
"deletingWithProgress": "Sletter ${title}... (${current} av ${total})",
|
||||
"deleting": "Sletter...",
|
||||
"queuedTooltip": "I kø",
|
||||
@@ -817,6 +955,12 @@
|
||||
"editSyncFilter": "Synkroniseringsfilter",
|
||||
"syncAllItems": "Synkroniserer alle elementer",
|
||||
"syncUnwatchedItems": "Synkroniserer usette elementer",
|
||||
"syncRuleServerContext": "Server: ${server} • ${status}",
|
||||
"syncRuleAvailable": "Tilgjengelig",
|
||||
"syncRuleOffline": "Frakoblet",
|
||||
"syncRuleSignInRequired": "Innlogging kreves",
|
||||
"syncRuleNotAvailableForProfile": "Ikke tilgjengelig for gjeldende profil",
|
||||
"syncRuleUnknownServer": "Ukjent server",
|
||||
"syncRuleListCreated": "Synkroniseringsregel opprettet"
|
||||
},
|
||||
"shaders": {
|
||||
@@ -846,7 +990,7 @@
|
||||
"connected": "Tilkoblet",
|
||||
"serverRunning": "Fjernserver aktiv",
|
||||
"serverStopped": "Fjernserver stoppet",
|
||||
"serverRunningDescription": "Mobilenheter på nettverket ditt kan oppdage og koble til denne appen",
|
||||
"serverRunningDescription": "Mobile enheter på nettverket ditt kan koble til denne appen",
|
||||
"serverStoppedDescription": "Start serveren for å la mobilenheter koble til",
|
||||
"usePhoneToControl": "Bruk mobilenheten din til å styre denne appen",
|
||||
"startServer": "Start server",
|
||||
@@ -854,20 +998,20 @@
|
||||
"minimize": "Minimer"
|
||||
},
|
||||
"pairing": {
|
||||
"discoveryDescription": "Enheter på nettverket ditt som kjører Plezy med samme Plex-konto vil vises automatisk",
|
||||
"discoveryDescription": "Plezy-enheter med samme Plex-konto vises her",
|
||||
"hostAddressHint": "192.168.1.100:48632",
|
||||
"connecting": "Kobler til...",
|
||||
"searchingForDevices": "Søker etter enheter...",
|
||||
"noDevicesFound": "Ingen enheter funnet på nettverket ditt",
|
||||
"noDevicesHint": "Sørg for at Plezy er åpen på datamaskinen din og at begge enhetene er på samme WiFi-nettverk",
|
||||
"noDevicesHint": "Åpne Plezy på desktop og bruk samme WiFi",
|
||||
"availableDevices": "Tilgjengelige enheter",
|
||||
"manualConnection": "Manuell tilkobling",
|
||||
"cryptoInitFailed": "Kunne ikke initialisere sikker tilkobling. Sørg for at du er logget inn på en Plex-konto.",
|
||||
"cryptoInitFailed": "Kunne ikke starte sikker tilkobling. Logg inn på Plex først.",
|
||||
"validationHostRequired": "Vennligst oppgi vertsadresse",
|
||||
"validationHostFormat": "Format må være IP:port (f.eks. 192.168.1.100:48632)",
|
||||
"connectionTimedOut": "Tilkoblingen ble tidsavbrutt. Sørg for at begge enhetene er på samme nettverk.",
|
||||
"sessionNotFound": "Kunne ikke finne enheten. Sørg for at Plezy kjører på verten.",
|
||||
"authFailed": "Autentisering mislyktes. Sørg for at begge enhetene bruker samme Plex-konto.",
|
||||
"connectionTimedOut": "Tilkoblingen fikk tidsavbrudd. Bruk samme nettverk på begge enheter.",
|
||||
"sessionNotFound": "Enhet ikke funnet. Sørg for at Plezy kjører på verten.",
|
||||
"authFailed": "Autentisering mislyktes. Begge enheter må bruke samme Plex-konto.",
|
||||
"failedToConnect": "Kunne ikke koble til: ${error}"
|
||||
},
|
||||
"remote": {
|
||||
@@ -915,7 +1059,7 @@
|
||||
"externalPlayer": {
|
||||
"title": "Ekstern spiller",
|
||||
"useExternalPlayer": "Bruk ekstern spiller",
|
||||
"useExternalPlayerDescription": "Åpne videoer i en ekstern app i stedet for den innebygde spilleren",
|
||||
"useExternalPlayerDescription": "Åpne videoer i en annen app",
|
||||
"selectPlayer": "Velg spiller",
|
||||
"customPlayers": "Egendefinerte spillere",
|
||||
"systemDefault": "Systemstandard",
|
||||
@@ -1009,7 +1153,7 @@
|
||||
"match": "Match...",
|
||||
"fixMatch": "Rett match...",
|
||||
"unmatch": "Fjern match",
|
||||
"unmatchConfirm": "Fjerne gjeldende match for dette elementet? Plex behandler det som umatchet til du matcher det igjen.",
|
||||
"unmatchConfirm": "Fjerne denne matchen? Plex behandler den som umatchet til den matches igjen.",
|
||||
"unmatchSuccess": "Match fjernet",
|
||||
"unmatchFailed": "Kunne ikke fjerne match",
|
||||
"matchApplied": "Match anvendt",
|
||||
@@ -1029,7 +1173,7 @@
|
||||
"connected": "Tilkoblet",
|
||||
"connectedAs": "Tilkoblet som @${username}",
|
||||
"disconnectConfirm": "Koble fra Trakt-konto?",
|
||||
"disconnectConfirmBody": "Plezy slutter å sende avspillingshendelser til Trakt. Du kan koble til igjen når som helst.",
|
||||
"disconnectConfirmBody": "Plezy slutter å sende hendelser til Trakt. Du kan koble til igjen når som helst.",
|
||||
"scrobble": "Sanntids-scrobbling",
|
||||
"scrobbleDescription": "Send avspillings-, pause- og stopphendelser til Trakt under avspilling.",
|
||||
"watchedSync": "Synkroniser sett-status",
|
||||
@@ -1037,13 +1181,13 @@
|
||||
},
|
||||
"trackers": {
|
||||
"title": "Trackere",
|
||||
"hubSubtitle": "Hold visningsfremdriften synkronisert med Trakt og andre tjenester.",
|
||||
"hubSubtitle": "Synkroniser seerfremdrift med Trakt og andre tjenester.",
|
||||
"notConnected": "Ikke tilkoblet",
|
||||
"connectedAs": "Tilkoblet som @${username}",
|
||||
"scrobble": "Registrer fremdrift automatisk",
|
||||
"scrobbleDescription": "Oppdater listen din når du er ferdig med en episode eller film.",
|
||||
"disconnectConfirm": "Koble fra ${service}?",
|
||||
"disconnectConfirmBody": "Plezy slutter å oppdatere ${service}-listen din. Du kan koble til igjen når som helst.",
|
||||
"disconnectConfirmBody": "Plezy slutter å oppdatere ${service}. Koble til igjen når som helst.",
|
||||
"connectFailed": "Kunne ikke koble til ${service}. Prøv igjen.",
|
||||
"services": {
|
||||
"mal": "MyAnimeList",
|
||||
@@ -1059,7 +1203,7 @@
|
||||
},
|
||||
"oauthProxy": {
|
||||
"title": "Logg inn på ${service}",
|
||||
"body": "Skann denne QR-koden med telefonen din, eller åpne URL-en under på en enhet med nettleser.",
|
||||
"body": "Skann denne QR-koden eller åpne URL-en på en enhet.",
|
||||
"openToSignIn": "Åpne ${service} for å logge inn",
|
||||
"urlCopied": "URL kopiert"
|
||||
},
|
||||
@@ -1077,5 +1221,39 @@
|
||||
"libraries": "Biblioteker",
|
||||
"noLibraries": "Ingen biblioteker tilgjengelige"
|
||||
}
|
||||
},
|
||||
"addServer": {
|
||||
"addJellyfinTitle": "Legg til Jellyfin-server",
|
||||
"jellyfinUrlIntro": "Skriv inn server-URL-en, f.eks. `https://jellyfin.example.com`.",
|
||||
"serverUrl": "Server-URL",
|
||||
"findServer": "Finn server",
|
||||
"username": "Brukernavn",
|
||||
"password": "Passord",
|
||||
"signIn": "Logg på",
|
||||
"change": "Endre",
|
||||
"required": "Påkrevd",
|
||||
"couldNotReachServer": "Kunne ikke nå serveren: ${error}",
|
||||
"signInFailed": "Pålogging mislyktes: ${error}",
|
||||
"quickConnectFailed": "Quick Connect mislyktes: ${error}",
|
||||
"addPlexTitle": "Logg på med Plex",
|
||||
"plexAuthIntro": "Logg inn med en nettleser eller QR-kode.",
|
||||
"plexQRPrompt": "Skann denne QR-koden for å logge på.",
|
||||
"waitingForPlexConfirmation": "Venter på at plex.tv bekrefter påloggingen…",
|
||||
"pinExpired": "PIN-koden gikk ut før pålogging. Prøv igjen.",
|
||||
"duplicatePlexAccount": "Allerede logget inn på Plex. Logg ut for å bytte konto.",
|
||||
"failedToRegisterAccount": "Kunne ikke registrere kontoen: ${error}",
|
||||
"enterJellyfinUrlError": "Oppgi URL-en til Jellyfin-serveren din",
|
||||
"addConnectionTitle": "Legg til tilkobling",
|
||||
"addConnectionTitleScoped": "Legg til i ${name}",
|
||||
"addConnectionIntroGlobal": "Legg til en annen medieserver. Plex og Jellyfin vises sammen på Hjem.",
|
||||
"addConnectionIntroScoped": "Legg til en ny server, eller lån en fra en annen profil.",
|
||||
"signInWithPlexCard": "Logg på med Plex",
|
||||
"signInWithPlexCardSubtitle": "Autoriser denne enheten. Delte servere legges til.",
|
||||
"signInWithPlexCardSubtitleScoped": "Autoriser en Plex-konto. Home-brukere blir profiler.",
|
||||
"connectToJellyfinCard": "Koble til Jellyfin",
|
||||
"connectToJellyfinCardSubtitle": "Skriv inn server-URL, brukernavn og passord.",
|
||||
"connectToJellyfinCardSubtitleScoped": "Logg på en Jellyfin-server. Knyttes til ${name}.",
|
||||
"borrowFromAnotherProfile": "Lån fra en annen profil",
|
||||
"borrowFromAnotherProfileSubtitle": "Gjenbruk en annen profils tilkobling. PIN-beskyttede profiler krever PIN."
|
||||
}
|
||||
}
|
||||
|
||||
+245
-67
@@ -3,13 +3,22 @@
|
||||
"title": "Plezy"
|
||||
},
|
||||
"auth": {
|
||||
"signIn": "Inloggen",
|
||||
"signInWithPlex": "Inloggen met Plex",
|
||||
"showQRCode": "Toon QR-code",
|
||||
"authenticate": "Authenticeren",
|
||||
"authenticationTimeout": "Authenticatie verlopen. Probeer opnieuw.",
|
||||
"scanQRToSignIn": "Scan deze QR-code om in te loggen",
|
||||
"waitingForAuth": "Wachten op authenticatie...\nVoltooi het inloggen in je browser.",
|
||||
"useBrowser": "Gebruik browser"
|
||||
"waitingForAuth": "Wachten op authenticatie...\nMeld je aan via je browser.",
|
||||
"useBrowser": "Gebruik browser",
|
||||
"or": "of",
|
||||
"connectToJellyfin": "Verbinden met Jellyfin",
|
||||
"useQuickConnect": "Quick Connect gebruiken",
|
||||
"quickConnectCode": "Quick Connect-code",
|
||||
"quickConnectInstructions": "Open Quick Connect in Jellyfin en voer deze code in.",
|
||||
"quickConnectWaiting": "Wachten op goedkeuring…",
|
||||
"quickConnectCancel": "Annuleren",
|
||||
"quickConnectExpired": "Quick Connect is verlopen. Probeer opnieuw."
|
||||
},
|
||||
"common": {
|
||||
"cancel": "Annuleren",
|
||||
@@ -43,9 +52,6 @@
|
||||
"mute": "Dempen",
|
||||
"ok": "OK",
|
||||
"reconnect": "Opnieuw verbinden",
|
||||
"exitConfirmTitle": "App afsluiten?",
|
||||
"exitConfirmMessage": "Weet je zeker dat je wilt afsluiten?",
|
||||
"dontAskAgain": "Niet meer vragen",
|
||||
"exit": "Afsluiten",
|
||||
"viewAll": "Alles weergeven",
|
||||
"checkingNetwork": "Netwerk controleren...",
|
||||
@@ -55,7 +61,8 @@
|
||||
"startingOfflineMode": "Offlinemodus starten...",
|
||||
"loading": "Laden...",
|
||||
"fullscreen": "Volledig scherm",
|
||||
"exitFullscreen": "Volledig scherm verlaten"
|
||||
"exitFullscreen": "Volledig scherm verlaten",
|
||||
"pressBackAgainToExit": "Druk nogmaals op terug om af te sluiten"
|
||||
},
|
||||
"screens": {
|
||||
"licenses": "Licenties",
|
||||
@@ -104,22 +111,22 @@
|
||||
"gridView": "Raster",
|
||||
"listView": "Lijst",
|
||||
"showHeroSection": "Toon hoofdsectie",
|
||||
"useGlobalHubs": "Plex Home-indeling gebruiken",
|
||||
"useGlobalHubsDescription": "Toon startpagina-hubs zoals de officiële Plex-client. Indien uitgeschakeld, worden in plaats daarvan aanbevelingen per bibliotheek getoond.",
|
||||
"useGlobalHubs": "Startlayout gebruiken",
|
||||
"useGlobalHubsDescription": "Toon gecombineerde home-hubs. Anders bibliotheekaanbevelingen gebruiken.",
|
||||
"showServerNameOnHubs": "Servernaam tonen bij hubs",
|
||||
"showServerNameOnHubsDescription": "Toon altijd de servernaam in hub-titels. Indien uitgeschakeld, alleen bij dubbele hub-namen.",
|
||||
"showServerNameOnHubsDescription": "Toon servernamen altijd in hubtitels.",
|
||||
"groupLibrariesByServer": "Bibliotheken groeperen per server",
|
||||
"groupLibrariesByServerDescription": "Toont een kop voor elke Plex-server in de zijbalk wanneer je met meerdere servers verbonden bent.",
|
||||
"groupLibrariesByServerDescription": "Groepeer zijbalkbibliotheken onder elke mediaserver.",
|
||||
"alwaysKeepSidebarOpen": "Zijbalk altijd open houden",
|
||||
"alwaysKeepSidebarOpenDescription": "Zijbalk blijft uitgevouwen en inhoudsgebied past zich aan",
|
||||
"showUnwatchedCount": "Aantal ongekeken tonen",
|
||||
"showUnwatchedCountDescription": "Toon aantal ongekeken afleveringen bij series en seizoenen",
|
||||
"showEpisodeNumberOnCards": "Afleveringsnummer op kaarten tonen",
|
||||
"showEpisodeNumberOnCardsDescription": "Toon het afleveringsnummer naast het seizoen (bijv. S2 E3) op afleveringskaarten",
|
||||
"showEpisodeNumberOnCardsDescription": "Toon seizoen- en afleveringsnummer op afleveringskaarten",
|
||||
"showSeasonPostersOnTabs": "Toon seizoensposters op tabbladen",
|
||||
"showSeasonPostersOnTabsDescription": "Toon de poster van het seizoen boven elk seizoenstabblad op de detailpagina van een serie",
|
||||
"showSeasonPostersOnTabsDescription": "Toon de poster van elk seizoen boven het tabblad",
|
||||
"hideSpoilers": "Spoilers voor ongekeken afleveringen verbergen",
|
||||
"hideSpoilersDescription": "Miniaturen vervagen en beschrijvingen verbergen voor afleveringen die je nog niet hebt gezien",
|
||||
"hideSpoilersDescription": "Vervaag miniaturen en beschrijvingen voor niet-bekeken afleveringen",
|
||||
"playerBackend": "Speler backend",
|
||||
"exoPlayer": "ExoPlayer (Aanbevolen)",
|
||||
"mpv": "mpv",
|
||||
@@ -128,7 +135,7 @@
|
||||
"bufferSize": "Buffer grootte",
|
||||
"bufferSizeMB": "${size}MB",
|
||||
"bufferSizeAuto": "Auto (Aanbevolen)",
|
||||
"bufferSizeWarning": "Je apparaat heeft ${heap}MB geheugen. Een buffer van ${size}MB kan afspeelproblemen veroorzaken.",
|
||||
"bufferSizeWarning": "${heap}MB geheugen beschikbaar. Een buffer van ${size}MB kan afspelen beïnvloeden.",
|
||||
"defaultQualityTitle": "Standaardkwaliteit",
|
||||
"defaultQualityDescription": "Wordt gebruikt bij het starten van de weergave. Lagere waarden verminderen de bandbreedte.",
|
||||
"subtitleStyling": "Ondertitel opmaak",
|
||||
@@ -140,16 +147,18 @@
|
||||
"defaultSleepTimer": "Standaard slaap timer",
|
||||
"minutesUnit": "bij ${minutes} minuten",
|
||||
"rememberTrackSelections": "Onthoud track selecties per serie/film",
|
||||
"rememberTrackSelectionsDescription": "Bewaar automatisch audio- en ondertiteltaalvoorkeuren wanneer je tracks wijzigt tijdens afspelen",
|
||||
"rememberTrackSelectionsDescription": "Onthoud audio- en ondertitelkeuzes per titel",
|
||||
"showChapterMarkersOnTimeline": "Hoofdstukmarkeringen op tijdlijn tonen",
|
||||
"showChapterMarkersOnTimelineDescription": "Verdeel de tijdlijn bij hoofdstukgrenzen",
|
||||
"clickVideoTogglesPlayback": "Klik op de video om afspelen/pauzeren te wisselen.",
|
||||
"clickVideoTogglesPlaybackDescription": "Als deze optie is ingeschakeld, wordt de video afgespeeld of gepauzeerd wanneer je op de videospeler klikt. Anders worden bij een klik de afspeelbedieningen weergegeven of verborgen.",
|
||||
"clickVideoTogglesPlaybackDescription": "Klik op video om af te spelen/pauzeren in plaats van bediening te tonen.",
|
||||
"videoPlayerControls": "Videospeler bediening",
|
||||
"keyboardShortcuts": "Toetsenbord sneltoetsen",
|
||||
"keyboardShortcutsDescription": "Pas toetsenbord sneltoetsen aan",
|
||||
"videoPlayerNavigation": "Videospeler navigatie",
|
||||
"videoPlayerNavigationDescription": "Gebruik pijltjestoetsen om door de videospeler bediening te navigeren",
|
||||
"watchTogetherRelay": "Samen Kijken Relay",
|
||||
"watchTogetherRelayDescription": "Stel een aangepaste relay-server in voor Samen Kijken. Alle deelnemers moeten dezelfde server gebruiken.",
|
||||
"watchTogetherRelayDescription": "Stel een aangepaste relay in. Iedereen moet dezelfde server gebruiken.",
|
||||
"watchTogetherRelayHint": "https://mijn-relay.voorbeeld.nl",
|
||||
"crashReporting": "Crashrapportage",
|
||||
"crashReportingDescription": "Crashrapporten verzenden om de app te verbeteren",
|
||||
@@ -158,10 +167,10 @@
|
||||
"viewLogs": "Bekijk logs",
|
||||
"viewLogsDescription": "Bekijk applicatie logs",
|
||||
"clearCache": "Cache wissen",
|
||||
"clearCacheDescription": "Dit wist alle gecachte afbeeldingen en gegevens. De app kan langer duren om inhoud te laden na het wissen van de cache.",
|
||||
"clearCacheDescription": "Wis gecachete afbeeldingen en gegevens. Inhoud kan langzamer laden.",
|
||||
"clearCacheSuccess": "Cache succesvol gewist",
|
||||
"resetSettings": "Instellingen resetten",
|
||||
"resetSettingsDescription": "Dit reset alle instellingen naar hun standaard waarden. Deze actie kan niet ongedaan gemaakt worden.",
|
||||
"resetSettingsDescription": "Standaardinstellingen herstellen. Dit kan niet ongedaan worden gemaakt.",
|
||||
"resetSettingsSuccess": "Instellingen succesvol gereset",
|
||||
"backup": "Back-up",
|
||||
"exportSettings": "Instellingen exporteren",
|
||||
@@ -182,7 +191,7 @@
|
||||
"updateAvailable": "Update beschikbaar",
|
||||
"checkForUpdates": "Controleer op updates",
|
||||
"autoCheckUpdatesOnStartup": "Automatisch controleren op updates bij opstarten",
|
||||
"autoCheckUpdatesOnStartupDescription": "Toon een melding wanneer bij het opstarten een nieuwe versie beschikbaar is",
|
||||
"autoCheckUpdatesOnStartupDescription": "Melden wanneer er bij start een update beschikbaar is",
|
||||
"validationErrorEnterNumber": "Voer een geldig nummer in",
|
||||
"validationErrorDuration": "Duur moet tussen ${min} en ${max} ${unit} zijn",
|
||||
"shortcutAlreadyAssigned": "Sneltoets al toegewezen aan ${action}",
|
||||
@@ -192,6 +201,8 @@
|
||||
"autoSkipIntroDescription": "Intro-markeringen na enkele seconden automatisch overslaan",
|
||||
"autoSkipCredits": "Credits Automatisch Overslaan",
|
||||
"autoSkipCreditsDescription": "Credits automatisch overslaan en volgende aflevering afspelen",
|
||||
"forceSkipMarkerFallback": "Fallbackmarkeringen afdwingen",
|
||||
"forceSkipMarkerFallbackDescription": "Gebruik hoofdstuktitelpatronen, zelfs wanneer Plex markeringen heeft",
|
||||
"autoSkipDelay": "Vertraging Automatisch Overslaan",
|
||||
"autoSkipDelayDescription": "${seconds} seconden wachten voor automatisch overslaan",
|
||||
"introPattern": "Intromarkeringspatroon",
|
||||
@@ -213,8 +224,8 @@
|
||||
"downloadOnWifiOnly": "Alleen via WiFi downloaden",
|
||||
"downloadOnWifiOnlyDescription": "Voorkom downloads bij gebruik van mobiele data",
|
||||
"autoRemoveWatchedDownloads": "Bekeken downloads automatisch verwijderen",
|
||||
"autoRemoveWatchedDownloadsDescription": "Gedownloade afleveringen en films automatisch verwijderen wanneer ze als bekeken zijn gemarkeerd",
|
||||
"cellularDownloadBlocked": "Downloads zijn uitgeschakeld bij mobiele data. Maak verbinding met WiFi of wijzig de instelling.",
|
||||
"autoRemoveWatchedDownloadsDescription": "Bekeken downloads automatisch verwijderen",
|
||||
"cellularDownloadBlocked": "Downloads zijn geblokkeerd via mobiel netwerk. Gebruik WiFi of wijzig de instelling.",
|
||||
"maxVolume": "Maximaal volume",
|
||||
"maxVolumeDescription": "Volume boven 100% toestaan voor stille media",
|
||||
"maxVolumePercent": "${percent}%",
|
||||
@@ -227,22 +238,20 @@
|
||||
"companionRemoteServer": "Companion Remote-server",
|
||||
"companionRemoteServerDescription": "Sta mobiele apparaten op je netwerk toe om deze app te bedienen",
|
||||
"autoPip": "Automatische beeld-in-beeld",
|
||||
"autoPipDescription": "Automatisch beeld-in-beeld activeren bij het verlaten van de app tijdens afspelen",
|
||||
"autoPipDescription": "Ga naar picture-in-picture bij verlaten tijdens afspelen",
|
||||
"matchContentFrameRate": "Inhoudsframesnelheid afstemmen",
|
||||
"matchContentFrameRateDescription": "Pas de schermverversingssnelheid aan op de video-inhoud, vermindert haperingen en bespaart batterij",
|
||||
"matchContentFrameRateDescription": "Stem schermverversing af op videocontent",
|
||||
"matchRefreshRate": "Verversingssnelheid afstemmen",
|
||||
"matchRefreshRateDescription": "Schermverversingssnelheid aanpassen aan de video-inhoud op volledig scherm",
|
||||
"matchRefreshRateDescription": "Stem schermverversing af in volledig scherm",
|
||||
"matchDynamicRange": "Dynamisch bereik afstemmen",
|
||||
"matchDynamicRangeDescription": "HDR automatisch inschakelen voor HDR-inhoud en terugkeren naar SDR bij het verlaten van de speler",
|
||||
"matchDynamicRangeDescription": "Schakel HDR in voor HDR-content en daarna terug naar SDR",
|
||||
"displaySwitchDelay": "Vertraging bij schermwisseling",
|
||||
"tunneledPlayback": "Getunnelde weergave",
|
||||
"tunneledPlaybackDescription": "Gebruik hardwareversnelde videotunneling. Schakel uit als je een zwart scherm met geluid ziet bij HDR-content",
|
||||
"tunneledPlaybackDescription": "Gebruik videotunneling. Schakel uit als HDR-afspelen zwart beeld geeft.",
|
||||
"requireProfileSelectionOnOpen": "Vraag om profiel bij openen",
|
||||
"requireProfileSelectionOnOpenDescription": "Toon profielselectie telkens wanneer de app wordt geopend",
|
||||
"confirmExitOnBack": "Bevestigen voor afsluiten",
|
||||
"confirmExitOnBackDescription": "Toon een bevestigingsvenster bij het drukken op terug om de app af te sluiten",
|
||||
"forceTvMode": "TV-modus forceren",
|
||||
"forceTvModeDescription": "Gebruik de TV-indeling ongeacht automatische detectie. Handig op Android TV-apparaten die de leanback-functie niet melden. Start de app opnieuw bij wijziging.",
|
||||
"forceTvModeDescription": "Forceer TV-indeling. Voor apparaten zonder autodetectie. Herstart vereist.",
|
||||
"startInFullscreen": "Starten in volledig scherm",
|
||||
"startInFullscreenDescription": "Open Plezy bij het starten in volledig scherm",
|
||||
"autoHidePerformanceOverlay": "Prestatie-overlay automatisch verbergen",
|
||||
@@ -251,15 +260,15 @@
|
||||
"showNavBarLabelsDescription": "Tekstlabels onder de pictogrammen van de navigatiebalk weergeven",
|
||||
"liveTvDefaultFavorites": "Standaard favoriete zenders",
|
||||
"liveTvDefaultFavoritesDescription": "Toon alleen favoriete zenders bij het openen van Live TV",
|
||||
"display": "Display",
|
||||
"homeScreen": "Home Screen",
|
||||
"navigation": "Navigation",
|
||||
"window": "Window",
|
||||
"content": "Content",
|
||||
"player": "Player",
|
||||
"subtitlesAndConfig": "Subtitles & Configuration",
|
||||
"seekAndTiming": "Seek & Timing",
|
||||
"behavior": "Behavior"
|
||||
"display": "Weergave",
|
||||
"homeScreen": "Startscherm",
|
||||
"navigation": "Navigatie",
|
||||
"window": "Venster",
|
||||
"content": "Inhoud",
|
||||
"player": "Speler",
|
||||
"subtitlesAndConfig": "Ondertitels en configuratie",
|
||||
"seekAndTiming": "Zoeken en timing",
|
||||
"behavior": "Gedrag"
|
||||
},
|
||||
"search": {
|
||||
"hint": "Zoek films, series, muziek...",
|
||||
@@ -330,7 +339,7 @@
|
||||
"shufflePlay": "Willekeurig afspelen",
|
||||
"fileInfo": "Bestand info",
|
||||
"deleteFromServer": "Verwijderen van server",
|
||||
"confirmDelete": "Dit zal deze media en de bijbehorende bestanden permanent van je server verwijderen. Dit kan niet ongedaan worden gemaakt.",
|
||||
"confirmDelete": "Deze media en bestanden van je server verwijderen?",
|
||||
"deleteMultipleWarning": "Dit omvat alle afleveringen en hun bestanden.",
|
||||
"mediaDeletedSuccessfully": "Media-item succesvol verwijderd",
|
||||
"mediaFailedToDelete": "Verwijderen van media-item mislukt",
|
||||
@@ -414,7 +423,7 @@
|
||||
"pipErrors": {
|
||||
"androidVersion": "Vereist Android 8.0 of nieuwer",
|
||||
"iosVersion": "Vereist iOS 15.0 of nieuwer",
|
||||
"permissionDisabled": "Beeld-in-beeld toestemming is uitgeschakeld. Schakel deze in via Instellingen > Apps > Plezy > Beeld-in-beeld",
|
||||
"permissionDisabled": "Picture-in-picture is uitgeschakeld. Schakel het in via systeeminstellingen.",
|
||||
"notSupported": "Dit apparaat ondersteunt geen beeld-in-beeld modus",
|
||||
"voSwitchFailed": "Kan video-uitvoer niet wisselen voor beeld-in-beeld",
|
||||
"failed": "Beeld-in-beeld kon niet worden gestart",
|
||||
@@ -452,7 +461,7 @@
|
||||
"musicNotSupported": "Muziek afspelen wordt nog niet ondersteund",
|
||||
"noDescriptionAvailable": "Geen beschrijving beschikbaar",
|
||||
"noProfilesAvailable": "Geen profielen beschikbaar",
|
||||
"contactAdminForProfiles": "Neem contact op met je Plex-beheerder om profielen toe te voegen",
|
||||
"contactAdminForProfiles": "Neem contact op met je serverbeheerder om profielen toe te voegen",
|
||||
"unableToDetermineLibrarySection": "Kan bibliotheeksectie voor dit item niet bepalen",
|
||||
"logsCleared": "Logs gewist",
|
||||
"logsCopied": "Logs gekopieerd naar klembord",
|
||||
@@ -474,7 +483,7 @@
|
||||
"failedPlayback": "Afspelen van ${action} mislukt: ${error}",
|
||||
"switchingToCompatiblePlayer": "Overschakelen naar compatibele speler...",
|
||||
"serverLimitTitle": "Afspelen mislukt",
|
||||
"serverLimitBody": "De server gaf een fout terug (HTTP 500). Dit betekent meestal dat de servereigenaar een bandbreedte- of transcoderingslimiet heeft ingesteld die jouw sessie weigert. Er valt vanaf de client niets te doen — de servereigenaar moet de instellingen aanpassen.",
|
||||
"serverLimitBody": "Serverfout (HTTP 500). Waarschijnlijk weigerde een bandbreedte-/transcodeerlimiet deze sessie. Vraag de eigenaar dit aan te passen.",
|
||||
"logsUploaded": "Logs geüpload",
|
||||
"logsUploadFailed": "Uploaden van logs mislukt",
|
||||
"logId": "Log-ID"
|
||||
@@ -513,12 +522,85 @@
|
||||
"dialog": {
|
||||
"confirmAction": "Bevestig actie"
|
||||
},
|
||||
"profiles": {
|
||||
"addPlezyProfile": "Plezy-profiel toevoegen",
|
||||
"switchingProfile": "Profiel wisselen…",
|
||||
"deleteThisProfileTitle": "Dit profiel verwijderen?",
|
||||
"deleteThisProfileMessage": "Verwijder ${displayName}. Verbindingen blijven ongewijzigd.",
|
||||
"active": "Actief",
|
||||
"manage": "Beheren",
|
||||
"delete": "Verwijderen",
|
||||
"signOut": "Afmelden",
|
||||
"signOutPlexTitle": "Afmelden bij Plex?",
|
||||
"signOutPlexMessage": "${displayName} en alle Plex Home-gebruikers verwijderen? Je kunt altijd opnieuw inloggen.",
|
||||
"signedOutPlex": "Afgemeld bij Plex.",
|
||||
"signOutFailed": "Afmelden mislukt.",
|
||||
"sectionTitle": "Profielen",
|
||||
"summarySingle": "Voeg profielen toe om beheerde gebruikers en lokale identiteiten te combineren",
|
||||
"summaryMultipleWithActive": "${count} profielen · actief: ${activeName}",
|
||||
"summaryMultiple": "${count} profielen",
|
||||
"removeConnectionTitle": "Verbinding verwijderen?",
|
||||
"removeConnectionMessage": "Verwijder ${displayName}s toegang tot ${connectionLabel}. Andere profielen behouden die.",
|
||||
"deleteProfileTitle": "Profiel verwijderen?",
|
||||
"deleteProfileMessage": "Verwijder ${displayName} en de verbindingen. Servers blijven beschikbaar.",
|
||||
"profileNameLabel": "Profielnaam",
|
||||
"pinProtectionLabel": "PIN-beveiliging",
|
||||
"pinManagedByPlex": "PIN wordt beheerd door Plex. Bewerk op plex.tv.",
|
||||
"noPinSetEditOnPlex": "Geen PIN ingesteld. Bewerk de Home-gebruiker op plex.tv om er één te vereisen.",
|
||||
"setPin": "PIN instellen",
|
||||
"setPinTitle": "PIN instellen",
|
||||
"confirmPinTitle": "PIN bevestigen",
|
||||
"pinSet": "PIN ingesteld",
|
||||
"changePin": "Wijzigen",
|
||||
"removePin": "Verwijderen",
|
||||
"connectionsLabel": "Verbindingen",
|
||||
"add": "Toevoegen",
|
||||
"deleteProfileButton": "Profiel verwijderen",
|
||||
"noConnectionsHint": "Geen verbindingen — voeg er één toe om dit profiel te gebruiken.",
|
||||
"noConnections": "Geen verbindingen",
|
||||
"plexHomeAccount": "Plex Home-account",
|
||||
"connectionDefault": "Standaard",
|
||||
"connectionAs": "als ${displayName}",
|
||||
"makeDefault": "Als standaard instellen",
|
||||
"removeConnection": "Verwijderen",
|
||||
"profileRenamed": "Profiel hernoemd.",
|
||||
"borrowAddTo": "Toevoegen aan ${displayName}",
|
||||
"borrowExplain": "Leen de verbinding van een ander profiel. PIN-beveiligde profielen vereisen een PIN.",
|
||||
"borrowEmpty": "Nog niets te lenen.",
|
||||
"borrowEmptySubtitle": "Verbind Plex of Jellyfin eerst met een ander profiel.",
|
||||
"borrowFromProfile": "Van ${displayName}",
|
||||
"borrowConnectionBorrowed": "Verbinding geleend.",
|
||||
"borrowFailed": "Kan verbinding niet lenen.",
|
||||
"incorrectPin": "Onjuiste PIN.",
|
||||
"sourceProfileMissingParentAccount": "Het bronprofiel mist het bovenliggende account.",
|
||||
"failedToVerifyPin": "Kan PIN niet verifiëren.",
|
||||
"newProfile": "Nieuw profiel",
|
||||
"profileNameHint": "bijv. Gasten, Kinderen, Woonkamer",
|
||||
"pinProtectionOptional": "PIN-beveiliging (optioneel)",
|
||||
"pinExplain": "4-cijferige PIN vereist om profielen te wisselen.",
|
||||
"continueButton": "Doorgaan",
|
||||
"pinsDontMatch": "PIN-codes komen niet overeen"
|
||||
},
|
||||
"connections": {
|
||||
"sectionTitle": "Verbindingen",
|
||||
"addConnection": "Verbinding toevoegen",
|
||||
"addConnectionSubtitleNoProfile": "Meld je aan met Plex of verbind een Jellyfin-server",
|
||||
"addConnectionSubtitleScoped": "Toevoegen aan ${displayName}: Plex, Jellyfin of een andere profielverbinding",
|
||||
"sessionExpiredOne": "Sessie verlopen voor ${name}",
|
||||
"sessionExpiredMany": "Sessie verlopen voor ${count} servers",
|
||||
"signInAgain": "Opnieuw aanmelden"
|
||||
},
|
||||
"discover": {
|
||||
"title": "Ontdekken",
|
||||
"switchProfile": "Wissel van profiel",
|
||||
"noContentAvailable": "Geen inhoud beschikbaar",
|
||||
"addMediaToLibraries": "Voeg wat media toe aan je bibliotheken",
|
||||
"continueWatching": "Verder kijken",
|
||||
"continueWatchingIn": "Verder kijken in ${library}",
|
||||
"nextUp": "Volgende",
|
||||
"nextUpIn": "Volgende in ${library}",
|
||||
"recentlyAdded": "Recent toegevoegd",
|
||||
"recentlyAddedIn": "Recent toegevoegd in ${library}",
|
||||
"playEpisode": "S${season}E${episode}",
|
||||
"overview": "Overzicht",
|
||||
"cast": "Acteurs",
|
||||
@@ -532,7 +614,7 @@
|
||||
"errors": {
|
||||
"searchFailed": "Zoeken mislukt: ${error}",
|
||||
"connectionTimeout": "Verbinding time-out tijdens laden ${context}",
|
||||
"connectionFailed": "Kan geen verbinding maken met Plex server",
|
||||
"connectionFailed": "Kan geen verbinding maken met mediaserver",
|
||||
"failedToLoad": "Kon ${context} niet laden: ${error}",
|
||||
"noClientAvailable": "Geen client beschikbaar",
|
||||
"authenticationFailed": "Authenticatie mislukt: ${error}",
|
||||
@@ -540,7 +622,9 @@
|
||||
"pleaseEnterToken": "Voer een token in",
|
||||
"invalidToken": "Ongeldig token",
|
||||
"failedToVerifyToken": "Kon token niet verifiëren: ${error}",
|
||||
"failedToSwitchProfile": "Kon niet wisselen naar ${displayName}"
|
||||
"failedToSwitchProfile": "Kon niet wisselen naar ${displayName}",
|
||||
"failedToDeleteProfile": "Kon ${displayName} niet verwijderen",
|
||||
"failedToRate": "Beoordeling kon niet worden bijgewerkt"
|
||||
},
|
||||
"libraries": {
|
||||
"title": "Bibliotheken",
|
||||
@@ -595,17 +679,34 @@
|
||||
"seasons": "Seizoenen",
|
||||
"episodes": "Afleveringen",
|
||||
"folders": "Mappen"
|
||||
},
|
||||
"filterCategories": {
|
||||
"genre": "Genre",
|
||||
"year": "Jaar",
|
||||
"contentRating": "Leeftijdsclassificatie",
|
||||
"tag": "Tag"
|
||||
},
|
||||
"sortLabels": {
|
||||
"title": "Titel",
|
||||
"dateAdded": "Toegevoegd op",
|
||||
"releaseDate": "Uitgavedatum",
|
||||
"rating": "Beoordeling",
|
||||
"lastPlayed": "Laatst afgespeeld",
|
||||
"playCount": "Aantal afspelingen",
|
||||
"random": "Willekeurig",
|
||||
"dateShared": "Gedeeld op",
|
||||
"latestEpisodeAirDate": "Laatste afleveringsuitzending"
|
||||
}
|
||||
},
|
||||
"about": {
|
||||
"title": "Over",
|
||||
"openSourceLicenses": "Open Source licenties",
|
||||
"versionLabel": "Versie ${version}",
|
||||
"appDescription": "Een mooie Plex client voor Flutter",
|
||||
"appDescription": "Een mooie Plex- en Jellyfin-client voor Flutter",
|
||||
"viewLicensesDescription": "Bekijk licenties van third-party bibliotheken"
|
||||
},
|
||||
"serverSelection": {
|
||||
"allServerConnectionsFailed": "Kon niet verbinden met servers. Controleer je netwerk en probeer opnieuw.",
|
||||
"allServerConnectionsFailed": "Kon met geen enkele server verbinden. Controleer je netwerk.",
|
||||
"noServersFoundForAccount": "Geen servers gevonden voor ${username} (${email})",
|
||||
"failedToLoadServers": "Kon servers niet laden: ${error}"
|
||||
},
|
||||
@@ -642,6 +743,7 @@
|
||||
"reloadGuide": "Gids herladen",
|
||||
"now": "Nu",
|
||||
"today": "Vandaag",
|
||||
"tomorrow": "Morgen",
|
||||
"midnight": "Middernacht",
|
||||
"overnight": "Nacht",
|
||||
"morning": "Ochtend",
|
||||
@@ -655,7 +757,41 @@
|
||||
"joinSession": "Deelnemen aan lopende sessie",
|
||||
"watchFromStart": "Kijk vanaf het begin (${minutes} min geleden)",
|
||||
"watchLive": "Live kijken",
|
||||
"goToLive": "Ga naar live"
|
||||
"goToLive": "Ga naar live",
|
||||
"record": "Opnemen",
|
||||
"recordEpisode": "Aflevering opnemen",
|
||||
"recordSeries": "Serie opnemen",
|
||||
"recordOptions": "Opnameopties",
|
||||
"recordings": "Opnames",
|
||||
"scheduledRecordings": "Gepland",
|
||||
"recordingRules": "Opnameregels",
|
||||
"noScheduledRecordings": "Geen geplande opnames",
|
||||
"noRecordingRules": "Nog geen opnameregels",
|
||||
"manageRecording": "Opname beheren",
|
||||
"cancelRecording": "Opname annuleren",
|
||||
"cancelRecordingTitle": "Deze opname annuleren?",
|
||||
"cancelRecordingMessage": "${title} wordt niet meer opgenomen.",
|
||||
"deleteRule": "Regel verwijderen",
|
||||
"deleteRuleTitle": "Opnameregel verwijderen?",
|
||||
"deleteRuleMessage": "Toekomstige afleveringen van ${title} worden niet opgenomen.",
|
||||
"recordingScheduled": "Opname gepland",
|
||||
"alreadyScheduled": "Dit programma is al gepland",
|
||||
"dvrAdminRequired": "DVR-instellingen vereisen een beheerdersaccount",
|
||||
"recordingFailed": "Kon opname niet plannen",
|
||||
"recordingTargetMissing": "Kon opnamebibliotheek niet bepalen",
|
||||
"recordNotAvailable": "Opname niet beschikbaar voor dit programma",
|
||||
"recordingCancelled": "Opname geannuleerd",
|
||||
"recordingRuleDeleted": "Opnameregel verwijderd",
|
||||
"processRecordingRules": "Regels opnieuw evalueren",
|
||||
"loadingRecordings": "Opnames laden...",
|
||||
"recordingInProgress": "Nu aan het opnemen",
|
||||
"recordingsCount": "${count} gepland",
|
||||
"editRule": "Regel bewerken",
|
||||
"editRuleAction": "Bewerken",
|
||||
"recordingRuleUpdated": "Opnameregel bijgewerkt",
|
||||
"guideReloadRequested": "Gids-vernieuwing aangevraagd",
|
||||
"rulesProcessRequested": "Regel-herevaluatie aangevraagd",
|
||||
"recordShow": "Programma opnemen"
|
||||
},
|
||||
"collections": {
|
||||
"title": "Collecties",
|
||||
@@ -663,7 +799,7 @@
|
||||
"empty": "Collectie is leeg",
|
||||
"unknownLibrarySection": "Kan niet verwijderen: onbekende bibliotheeksectie",
|
||||
"deleteCollection": "Collectie verwijderen",
|
||||
"deleteConfirm": "Weet je zeker dat je \"${title}\" wilt verwijderen? Deze actie kan niet ongedaan worden gemaakt.",
|
||||
"deleteConfirm": "\"${title}\" verwijderen? Dit kan niet ongedaan worden gemaakt.",
|
||||
"deleted": "Collectie verwijderd",
|
||||
"deleteFailed": "Collectie verwijderen mislukt",
|
||||
"deleteFailedWithError": "Collectie verwijderen mislukt: ${error}",
|
||||
@@ -747,11 +883,11 @@
|
||||
"pasteFromClipboard": "Plakken van klembord",
|
||||
"pleaseEnterCode": "Voer een sessiecode in",
|
||||
"codeMustBe5Chars": "Sessiecode moet 5 tekens zijn",
|
||||
"joinInstructions": "Voer de sessiecode in die door de host is gedeeld om deel te nemen aan hun kijksessie.",
|
||||
"joinInstructions": "Voer de sessiecode van de host in om deel te nemen.",
|
||||
"failedToCreate": "Sessie maken mislukt",
|
||||
"failedToJoin": "Sessie deelnemen mislukt",
|
||||
"sessionCodeCopied": "Sessiecode gekopieerd naar klembord",
|
||||
"relayUnreachable": "De relayserver is niet bereikbaar. Dit kan worden veroorzaakt doordat je internetprovider de verbinding blokkeert. Je kunt het toch proberen, maar Watch Together werkt mogelijk niet.",
|
||||
"relayUnreachable": "Relay-server onbereikbaar. ISP-blokkering kan Watch Together verhinderen.",
|
||||
"reconnectingToHost": "Opnieuw verbinden met host...",
|
||||
"currentPlayback": "Huidige weergave",
|
||||
"joinCurrentPlayback": "Deelnemen aan huidige weergave",
|
||||
@@ -766,7 +902,9 @@
|
||||
"waitingForParticipants": "Wachten tot anderen geladen zijn...",
|
||||
"recentRooms": "Recente kamers",
|
||||
"renameRoom": "Kamer hernoemen",
|
||||
"removeRoom": "Verwijderen"
|
||||
"removeRoom": "Verwijderen",
|
||||
"guestSwitchUnavailable": "Kon niet schakelen — server niet beschikbaar voor synchronisatie",
|
||||
"guestSwitchFailed": "Kon niet schakelen — inhoud niet gevonden op deze server"
|
||||
},
|
||||
"downloads": {
|
||||
"title": "Downloads",
|
||||
@@ -779,10 +917,10 @@
|
||||
"deleteDownload": "Download verwijderen",
|
||||
"retryDownload": "Download opnieuw proberen",
|
||||
"downloadQueued": "Download in wachtrij",
|
||||
"serverErrorBitrate": "Serverfout — het bestand overschrijdt mogelijk de bitrate-limiet voor remote streaming",
|
||||
"serverErrorBitrate": "Serverfout: bestand overschrijdt mogelijk de externe bitrate-limiet",
|
||||
"episodesQueued": "${count} afleveringen in wachtrij voor download",
|
||||
"downloadDeleted": "Download verwijderd",
|
||||
"deleteConfirm": "Weet je zeker dat je \"${title}\" wilt verwijderen? Het gedownloade bestand wordt van je apparaat verwijderd.",
|
||||
"deleteConfirm": "\"${title}\" van dit apparaat verwijderen?",
|
||||
"deletingWithProgress": "Verwijderen van ${title}... (${current} van ${total})",
|
||||
"deleting": "Verwijderen...",
|
||||
"queuedTooltip": "In wachtrij",
|
||||
@@ -817,6 +955,12 @@
|
||||
"editSyncFilter": "Synchronisatiefilter",
|
||||
"syncAllItems": "Alle items synchroniseren",
|
||||
"syncUnwatchedItems": "Ongekeken items synchroniseren",
|
||||
"syncRuleServerContext": "Server: ${server} • ${status}",
|
||||
"syncRuleAvailable": "Beschikbaar",
|
||||
"syncRuleOffline": "Offline",
|
||||
"syncRuleSignInRequired": "Inloggen vereist",
|
||||
"syncRuleNotAvailableForProfile": "Niet beschikbaar voor huidig profiel",
|
||||
"syncRuleUnknownServer": "Onbekende server",
|
||||
"syncRuleListCreated": "Synchronisatieregel aangemaakt"
|
||||
},
|
||||
"shaders": {
|
||||
@@ -846,7 +990,7 @@
|
||||
"connected": "Verbonden",
|
||||
"serverRunning": "Externe server actief",
|
||||
"serverStopped": "Externe server gestopt",
|
||||
"serverRunningDescription": "Mobiele apparaten op je netwerk kunnen deze app ontdekken en ermee verbinden",
|
||||
"serverRunningDescription": "Mobiele apparaten op je netwerk kunnen met deze app verbinden",
|
||||
"serverStoppedDescription": "Start de server om mobiele apparaten te laten verbinden",
|
||||
"usePhoneToControl": "Gebruik je mobiele apparaat om deze app te bedienen",
|
||||
"startServer": "Server starten",
|
||||
@@ -854,20 +998,20 @@
|
||||
"minimize": "Minimaliseren"
|
||||
},
|
||||
"pairing": {
|
||||
"discoveryDescription": "Apparaten op je netwerk die Plezy gebruiken met hetzelfde Plex-account verschijnen automatisch",
|
||||
"discoveryDescription": "Plezy-apparaten met hetzelfde Plex-account verschijnen hier",
|
||||
"hostAddressHint": "192.168.1.100:48632",
|
||||
"connecting": "Verbinden...",
|
||||
"searchingForDevices": "Apparaten zoeken...",
|
||||
"noDevicesFound": "Geen apparaten gevonden op je netwerk",
|
||||
"noDevicesHint": "Zorg ervoor dat Plezy geopend is op je desktop en dat beide apparaten op hetzelfde WiFi-netwerk zitten",
|
||||
"noDevicesHint": "Open Plezy op desktop en gebruik dezelfde WiFi",
|
||||
"availableDevices": "Beschikbare apparaten",
|
||||
"manualConnection": "Handmatige verbinding",
|
||||
"cryptoInitFailed": "Kan beveiligde verbinding niet initialiseren. Zorg ervoor dat je bent ingelogd bij een Plex-account.",
|
||||
"cryptoInitFailed": "Kon beveiligde verbinding niet starten. Log eerst in bij Plex.",
|
||||
"validationHostRequired": "Voer het hostadres in",
|
||||
"validationHostFormat": "Formaat moet IP:poort zijn (bijv. 192.168.1.100:48632)",
|
||||
"connectionTimedOut": "Verbinding verlopen. Zorg ervoor dat beide apparaten op hetzelfde netwerk zitten.",
|
||||
"sessionNotFound": "Apparaat niet gevonden. Zorg ervoor dat Plezy draait op de host.",
|
||||
"authFailed": "Authenticatie mislukt. Zorg ervoor dat beide apparaten hetzelfde Plex-account gebruiken.",
|
||||
"connectionTimedOut": "Verbinding verlopen. Gebruik hetzelfde netwerk op beide apparaten.",
|
||||
"sessionNotFound": "Apparaat niet gevonden. Zorg dat Plezy op de host draait.",
|
||||
"authFailed": "Authenticatie mislukt. Beide apparaten hebben hetzelfde Plex-account nodig.",
|
||||
"failedToConnect": "Kan niet verbinden: ${error}"
|
||||
},
|
||||
"remote": {
|
||||
@@ -915,7 +1059,7 @@
|
||||
"externalPlayer": {
|
||||
"title": "Externe speler",
|
||||
"useExternalPlayer": "Externe speler gebruiken",
|
||||
"useExternalPlayerDescription": "Open video's in een externe app in plaats van de ingebouwde speler",
|
||||
"useExternalPlayerDescription": "Open video's in een andere app",
|
||||
"selectPlayer": "Speler selecteren",
|
||||
"customPlayers": "Aangepaste spelers",
|
||||
"systemDefault": "Systeemstandaard",
|
||||
@@ -1009,7 +1153,7 @@
|
||||
"match": "Koppelen...",
|
||||
"fixMatch": "Koppeling herstellen...",
|
||||
"unmatch": "Ontkoppelen",
|
||||
"unmatchConfirm": "De huidige koppeling voor dit item wissen? Plex behandelt het als ongekoppeld totdat je het opnieuw koppelt.",
|
||||
"unmatchConfirm": "Deze match wissen? Plex behandelt dit als niet-gematcht tot het opnieuw gematcht is.",
|
||||
"unmatchSuccess": "Item ontkoppeld",
|
||||
"unmatchFailed": "Kon item niet ontkoppelen",
|
||||
"matchApplied": "Koppeling toegepast",
|
||||
@@ -1029,7 +1173,7 @@
|
||||
"connected": "Verbonden",
|
||||
"connectedAs": "Verbonden als @${username}",
|
||||
"disconnectConfirm": "Trakt-account loskoppelen?",
|
||||
"disconnectConfirmBody": "Plezy stopt met het versturen van afspeelgebeurtenissen naar Trakt. Je kunt op elk moment opnieuw verbinden.",
|
||||
"disconnectConfirmBody": "Plezy stopt met gebeurtenissen naar Trakt sturen. Je kunt altijd opnieuw verbinden.",
|
||||
"scrobble": "Realtime scrobbling",
|
||||
"scrobbleDescription": "Verstuur play-, pauze- en stopgebeurtenissen tijdens afspelen naar Trakt.",
|
||||
"watchedSync": "Bekeken-status synchroniseren",
|
||||
@@ -1037,13 +1181,13 @@
|
||||
},
|
||||
"trackers": {
|
||||
"title": "Trackers",
|
||||
"hubSubtitle": "Houd je kijkvoortgang gesynchroniseerd met Trakt en andere diensten.",
|
||||
"hubSubtitle": "Synchroniseer kijkvoortgang met Trakt en andere diensten.",
|
||||
"notConnected": "Niet verbonden",
|
||||
"connectedAs": "Verbonden als @${username}",
|
||||
"scrobble": "Voortgang automatisch volgen",
|
||||
"scrobbleDescription": "Werk je lijst bij wanneer je een aflevering of film afrondt.",
|
||||
"disconnectConfirm": "${service} loskoppelen?",
|
||||
"disconnectConfirmBody": "Plezy werkt je ${service}-lijst niet meer bij. Je kunt op elk moment opnieuw verbinden.",
|
||||
"disconnectConfirmBody": "Plezy stopt met ${service} bijwerken. Je kunt altijd opnieuw verbinden.",
|
||||
"connectFailed": "Kan niet verbinden met ${service}. Probeer opnieuw.",
|
||||
"services": {
|
||||
"mal": "MyAnimeList",
|
||||
@@ -1059,7 +1203,7 @@
|
||||
},
|
||||
"oauthProxy": {
|
||||
"title": "Aanmelden bij ${service}",
|
||||
"body": "Scan deze QR-code met je telefoon, of open onderstaande URL op een apparaat met browser.",
|
||||
"body": "Scan deze QR-code of open de URL op een apparaat.",
|
||||
"openToSignIn": "${service} openen om aan te melden",
|
||||
"urlCopied": "URL gekopieerd"
|
||||
},
|
||||
@@ -1077,5 +1221,39 @@
|
||||
"libraries": "Bibliotheken",
|
||||
"noLibraries": "Geen bibliotheken beschikbaar"
|
||||
}
|
||||
},
|
||||
"addServer": {
|
||||
"addJellyfinTitle": "Jellyfin-server toevoegen",
|
||||
"jellyfinUrlIntro": "Voer de server-URL in, bijv. `https://jellyfin.example.com`.",
|
||||
"serverUrl": "Server-URL",
|
||||
"findServer": "Server zoeken",
|
||||
"username": "Gebruikersnaam",
|
||||
"password": "Wachtwoord",
|
||||
"signIn": "Inloggen",
|
||||
"change": "Wijzigen",
|
||||
"required": "Vereist",
|
||||
"couldNotReachServer": "Kon de server niet bereiken: ${error}",
|
||||
"signInFailed": "Inloggen mislukt: ${error}",
|
||||
"quickConnectFailed": "Quick Connect mislukt: ${error}",
|
||||
"addPlexTitle": "Inloggen met Plex",
|
||||
"plexAuthIntro": "Meld je aan met een browser of QR-code.",
|
||||
"plexQRPrompt": "Scan deze QR-code om in te loggen.",
|
||||
"waitingForPlexConfirmation": "Wachten tot plex.tv je inloggen bevestigt…",
|
||||
"pinExpired": "PIN verlopen vóór inloggen. Probeer opnieuw.",
|
||||
"duplicatePlexAccount": "Al aangemeld bij Plex. Meld je af om van account te wisselen.",
|
||||
"failedToRegisterAccount": "Account registreren mislukt: ${error}",
|
||||
"enterJellyfinUrlError": "Voer de URL van je Jellyfin-server in",
|
||||
"addConnectionTitle": "Verbinding toevoegen",
|
||||
"addConnectionTitleScoped": "Toevoegen aan ${name}",
|
||||
"addConnectionIntroGlobal": "Voeg een andere mediaserver toe. Plex en Jellyfin verschijnen samen op Home.",
|
||||
"addConnectionIntroScoped": "Voeg een nieuwe server toe, of leen er een van een ander profiel.",
|
||||
"signInWithPlexCard": "Inloggen met Plex",
|
||||
"signInWithPlexCardSubtitle": "Autoriseer dit apparaat. Gedeelde servers worden toegevoegd.",
|
||||
"signInWithPlexCardSubtitleScoped": "Autoriseer een Plex-account. Home-gebruikers worden profielen.",
|
||||
"connectToJellyfinCard": "Verbinden met Jellyfin",
|
||||
"connectToJellyfinCardSubtitle": "Voer je server-URL, gebruikersnaam en wachtwoord in.",
|
||||
"connectToJellyfinCardSubtitleScoped": "Log in op een Jellyfin-server. Wordt gekoppeld aan ${name}.",
|
||||
"borrowFromAnotherProfile": "Lenen van een ander profiel",
|
||||
"borrowFromAnotherProfileSubtitle": "Hergebruik de verbinding van een ander profiel. PIN-beveiligde profielen vereisen een PIN."
|
||||
}
|
||||
}
|
||||
|
||||
+243
-65
@@ -3,13 +3,22 @@
|
||||
"title": "Plezy"
|
||||
},
|
||||
"auth": {
|
||||
"signIn": "Zaloguj się",
|
||||
"signInWithPlex": "Zaloguj się przez Plex",
|
||||
"showQRCode": "Pokaż kod QR",
|
||||
"authenticate": "Uwierzytelnienie",
|
||||
"authenticationTimeout": "Upłynął czas uwierzytelniania. Spróbuj ponownie.",
|
||||
"scanQRToSignIn": "Zeskanuj ten kod QR, aby się zalogować",
|
||||
"waitingForAuth": "Oczekiwanie na uwierzytelnienie...\nDokończ logowanie w przeglądarce.",
|
||||
"useBrowser": "Użyj przeglądarki"
|
||||
"waitingForAuth": "Oczekiwanie na uwierzytelnienie...\nZaloguj się w przeglądarce.",
|
||||
"useBrowser": "Użyj przeglądarki",
|
||||
"or": "lub",
|
||||
"connectToJellyfin": "Połącz z Jellyfin",
|
||||
"useQuickConnect": "Użyj Quick Connect",
|
||||
"quickConnectCode": "Kod Quick Connect",
|
||||
"quickConnectInstructions": "Otwórz Quick Connect w Jellyfin i wpisz ten kod.",
|
||||
"quickConnectWaiting": "Oczekiwanie na zatwierdzenie…",
|
||||
"quickConnectCancel": "Anuluj",
|
||||
"quickConnectExpired": "Quick Connect wygasł. Spróbuj ponownie."
|
||||
},
|
||||
"common": {
|
||||
"cancel": "Anuluj",
|
||||
@@ -43,9 +52,6 @@
|
||||
"mute": "Wycisz",
|
||||
"ok": "OK",
|
||||
"reconnect": "Połącz ponownie",
|
||||
"exitConfirmTitle": "Zamknąć aplikację?",
|
||||
"exitConfirmMessage": "Czy na pewno chcesz wyjść?",
|
||||
"dontAskAgain": "Nie pytaj ponownie",
|
||||
"exit": "Wyjdź",
|
||||
"viewAll": "Pokaż wszystko",
|
||||
"checkingNetwork": "Sprawdzanie sieci...",
|
||||
@@ -55,7 +61,8 @@
|
||||
"startingOfflineMode": "Uruchamianie trybu offline...",
|
||||
"loading": "Ładowanie...",
|
||||
"fullscreen": "Pełny ekran",
|
||||
"exitFullscreen": "Wyjdź z pełnego ekranu"
|
||||
"exitFullscreen": "Wyjdź z pełnego ekranu",
|
||||
"pressBackAgainToExit": "Naciśnij wstecz ponownie, aby wyjść"
|
||||
},
|
||||
"screens": {
|
||||
"licenses": "Licencje",
|
||||
@@ -104,22 +111,22 @@
|
||||
"gridView": "Siatka",
|
||||
"listView": "Lista",
|
||||
"showHeroSection": "Pokaż sekcję wyróżnioną",
|
||||
"useGlobalHubs": "Użyj układu Plex Home",
|
||||
"useGlobalHubsDescription": "Pokaż huby strony głównej jak w oficjalnym kliencie Plex. Gdy wyłączone, pokazuje rekomendacje per biblioteka.",
|
||||
"useGlobalHubs": "Użyj układu strony głównej",
|
||||
"useGlobalHubsDescription": "Pokaż ujednolicone huby ekranu głównego. W przeciwnym razie użyj rekomendacji bibliotek.",
|
||||
"showServerNameOnHubs": "Pokaż nazwę serwera w hubach",
|
||||
"showServerNameOnHubsDescription": "Zawsze wyświetlaj nazwę serwera w tytułach hubów. Gdy wyłączone, pokazuje tylko dla zduplikowanych nazw.",
|
||||
"showServerNameOnHubsDescription": "Zawsze pokazuj nazwy serwerów w tytułach hubów.",
|
||||
"groupLibrariesByServer": "Grupuj biblioteki według serwera",
|
||||
"groupLibrariesByServerDescription": "Pokazuj nagłówek dla każdego serwera Plex na pasku bocznym, gdy jesteś połączony z wieloma serwerami.",
|
||||
"groupLibrariesByServerDescription": "Grupuj biblioteki paska bocznego pod każdym serwerem multimediów.",
|
||||
"alwaysKeepSidebarOpen": "Zawsze utrzymuj panel boczny otwarty",
|
||||
"alwaysKeepSidebarOpenDescription": "Panel boczny jest rozwinięty, a obszar treści dostosowuje się",
|
||||
"showUnwatchedCount": "Pokaż liczbę nieobejrzanych",
|
||||
"showUnwatchedCountDescription": "Wyświetl liczbę nieobejrzanych odcinków w serialach i sezonach",
|
||||
"showEpisodeNumberOnCards": "Pokaż numer odcinka na kartach",
|
||||
"showEpisodeNumberOnCardsDescription": "Wyświetla numer odcinka obok sezonu (np. S2 E3) na kartach odcinków",
|
||||
"showEpisodeNumberOnCardsDescription": "Pokazuj numer sezonu i odcinka na kartach odcinków",
|
||||
"showSeasonPostersOnTabs": "Pokaż plakaty sezonów na zakładkach",
|
||||
"showSeasonPostersOnTabsDescription": "Wyświetla plakat sezonu nad każdą zakładką sezonu na stronie szczegółów serialu",
|
||||
"showSeasonPostersOnTabsDescription": "Pokazuj plakat każdego sezonu nad jego kartą",
|
||||
"hideSpoilers": "Ukryj spoilery nieobejrzanych odcinków",
|
||||
"hideSpoilersDescription": "Rozmyj miniatury i ukryj opisy odcinków, których jeszcze nie obejrzałeś",
|
||||
"hideSpoilersDescription": "Rozmywaj miniatury i opisy nieobejrzanych odcinków",
|
||||
"playerBackend": "Backend odtwarzacza",
|
||||
"exoPlayer": "ExoPlayer (Zalecany)",
|
||||
"mpv": "mpv",
|
||||
@@ -128,7 +135,7 @@
|
||||
"bufferSize": "Rozmiar bufora",
|
||||
"bufferSizeMB": "${size}MB",
|
||||
"bufferSizeAuto": "Automatyczny (Zalecany)",
|
||||
"bufferSizeWarning": "Twoje urządzenie ma ${heap}MB pamięci. Bufor ${size}MB może powodować problemy z odtwarzaniem.",
|
||||
"bufferSizeWarning": "Dostępna pamięć: ${heap}MB. Bufor ${size}MB może wpłynąć na odtwarzanie.",
|
||||
"defaultQualityTitle": "Domyślna jakość",
|
||||
"defaultQualityDescription": "Używane podczas rozpoczynania odtwarzania. Niższe wartości zmniejszają przepustowość.",
|
||||
"subtitleStyling": "Styl napisów",
|
||||
@@ -140,16 +147,18 @@
|
||||
"defaultSleepTimer": "Domyślny wyłącznik czasowy",
|
||||
"minutesUnit": "${minutes} minut",
|
||||
"rememberTrackSelections": "Zapamiętaj wybór ścieżek per serial/film",
|
||||
"rememberTrackSelectionsDescription": "Automatycznie zapisuj preferencje języka audio i napisów przy zmianie ścieżek podczas odtwarzania",
|
||||
"rememberTrackSelectionsDescription": "Zapamiętuj wybór audio i napisów dla tytułu",
|
||||
"showChapterMarkersOnTimeline": "Pokaż znaczniki rozdziałów na pasku przewijania",
|
||||
"showChapterMarkersOnTimelineDescription": "Podziel pasek przewijania na granicach rozdziałów",
|
||||
"clickVideoTogglesPlayback": "Kliknięcie wideo przełącza odtwarzanie/pauzę",
|
||||
"clickVideoTogglesPlaybackDescription": "Gdy włączone, kliknięcie na odtwarzacz wideo odtwarza/wstrzymuje. W przeciwnym razie pokazuje/ukrywa kontrolki.",
|
||||
"clickVideoTogglesPlaybackDescription": "Kliknięcie wideo odtwarza/wstrzymuje zamiast pokazywać sterowanie.",
|
||||
"videoPlayerControls": "Kontrolki odtwarzacza wideo",
|
||||
"keyboardShortcuts": "Skróty klawiszowe",
|
||||
"keyboardShortcutsDescription": "Dostosuj skróty klawiszowe",
|
||||
"videoPlayerNavigation": "Nawigacja odtwarzacza wideo",
|
||||
"videoPlayerNavigationDescription": "Użyj klawiszy strzałek do nawigacji kontrolkami odtwarzacza",
|
||||
"watchTogetherRelay": "Relay Oglądaj Razem",
|
||||
"watchTogetherRelayDescription": "Ustaw niestandardowy serwer relay dla Oglądaj Razem. Wszyscy uczestnicy muszą korzystać z tego samego serwera.",
|
||||
"watchTogetherRelayDescription": "Ustaw własny relay. Wszyscy muszą używać tego samego serwera.",
|
||||
"watchTogetherRelayHint": "https://moj-relay.przyklad.pl",
|
||||
"crashReporting": "Raportowanie błędów",
|
||||
"crashReportingDescription": "Wysyłaj raporty o błędach, aby pomóc ulepszyć aplikację",
|
||||
@@ -158,10 +167,10 @@
|
||||
"viewLogs": "Pokaż logi",
|
||||
"viewLogsDescription": "Pokaż logi aplikacji",
|
||||
"clearCache": "Wyczyść pamięć podręczną",
|
||||
"clearCacheDescription": "Spowoduje to wyczyszczenie wszystkich zapisanych obrazów i danych. Po wyczyszczeniu aplikacja może ładować treści wolniej.",
|
||||
"clearCacheDescription": "Wyczyść obrazy i dane z pamięci podręcznej. Treści mogą ładować się wolniej.",
|
||||
"clearCacheSuccess": "Pamięć podręczna wyczyszczona",
|
||||
"resetSettings": "Zresetuj ustawienia",
|
||||
"resetSettingsDescription": "Wszystkie ustawienia zostaną przywrócone do wartości domyślnych. Tej operacji nie można cofnąć.",
|
||||
"resetSettingsDescription": "Przywróć ustawienia domyślne. Tego nie można cofnąć.",
|
||||
"resetSettingsSuccess": "Ustawienia zresetowane pomyślnie",
|
||||
"backup": "Kopia zapasowa",
|
||||
"exportSettings": "Eksportuj ustawienia",
|
||||
@@ -182,7 +191,7 @@
|
||||
"updateAvailable": "Dostępna aktualizacja",
|
||||
"checkForUpdates": "Sprawdź aktualizacje",
|
||||
"autoCheckUpdatesOnStartup": "Automatycznie sprawdzaj aktualizacje przy uruchomieniu",
|
||||
"autoCheckUpdatesOnStartupDescription": "Pokaż powiadomienie, gdy przy uruchomieniu dostępna jest nowa wersja",
|
||||
"autoCheckUpdatesOnStartupDescription": "Powiadamiaj o dostępnej aktualizacji przy uruchomieniu",
|
||||
"validationErrorEnterNumber": "Wprowadź prawidłową liczbę",
|
||||
"validationErrorDuration": "Czas musi być między ${min} a ${max} ${unit}",
|
||||
"shortcutAlreadyAssigned": "Skrót jest już przypisany do ${action}",
|
||||
@@ -192,6 +201,8 @@
|
||||
"autoSkipIntroDescription": "Automatycznie pomijaj znaczniki intro po kilku sekundach",
|
||||
"autoSkipCredits": "Automatyczne pomijanie napisów końcowych",
|
||||
"autoSkipCreditsDescription": "Automatycznie pomijaj napisy końcowe i odtwórz następny odcinek",
|
||||
"forceSkipMarkerFallback": "Wymuś znaczniki awaryjne",
|
||||
"forceSkipMarkerFallbackDescription": "Używaj wzorców tytułów rozdziałów, nawet gdy Plex ma znaczniki",
|
||||
"autoSkipDelay": "Opóźnienie automatycznego pomijania",
|
||||
"autoSkipDelayDescription": "Czekaj ${seconds} sekund przed automatycznym pominięciem",
|
||||
"introPattern": "Wzorzec znacznika intro",
|
||||
@@ -213,8 +224,8 @@
|
||||
"downloadOnWifiOnly": "Pobieraj tylko przez WiFi",
|
||||
"downloadOnWifiOnlyDescription": "Blokuj pobieranie na danych komórkowych",
|
||||
"autoRemoveWatchedDownloads": "Automatycznie usuwaj obejrzane pobrania",
|
||||
"autoRemoveWatchedDownloadsDescription": "Automatycznie usuwaj pobrane odcinki i filmy po oznaczeniu jako obejrzane",
|
||||
"cellularDownloadBlocked": "Pobieranie na danych komórkowych jest wyłączone. Połącz się z WiFi lub zmień ustawienie.",
|
||||
"autoRemoveWatchedDownloadsDescription": "Automatycznie usuwaj obejrzane pobrania",
|
||||
"cellularDownloadBlocked": "Pobieranie przez sieć komórkową jest zablokowane. Użyj WiFi lub zmień ustawienie.",
|
||||
"maxVolume": "Maksymalna głośność",
|
||||
"maxVolumeDescription": "Pozwól na wzmocnienie głośności powyżej 100% dla cichych multimediów",
|
||||
"maxVolumePercent": "${percent}%",
|
||||
@@ -227,22 +238,20 @@
|
||||
"companionRemoteServer": "Serwer zdalnego sterowania",
|
||||
"companionRemoteServerDescription": "Pozwól urządzeniom mobilnym w sieci sterować tą aplikacją",
|
||||
"autoPip": "Automatyczny obraz w obrazie",
|
||||
"autoPipDescription": "Automatycznie przejdź do trybu obraz w obrazie przy wyjściu z aplikacji podczas odtwarzania",
|
||||
"autoPipDescription": "Włącz obraz w obrazie po opuszczeniu aplikacji podczas odtwarzania",
|
||||
"matchContentFrameRate": "Dopasuj częstotliwość klatek do treści",
|
||||
"matchContentFrameRateDescription": "Dostosuj częstotliwość odświeżania ekranu do treści wideo, zmniejszając drgania i oszczędzając baterię",
|
||||
"matchContentFrameRateDescription": "Dopasuj częstotliwość odświeżania ekranu do wideo",
|
||||
"matchRefreshRate": "Dopasuj częstotliwość odświeżania",
|
||||
"matchRefreshRateDescription": "Przełącz częstotliwość odświeżania ekranu, aby dopasować ją do treści wideo na pełnym ekranie",
|
||||
"matchRefreshRateDescription": "Dopasuj częstotliwość odświeżania w trybie pełnoekranowym",
|
||||
"matchDynamicRange": "Dopasuj zakres dynamiki",
|
||||
"matchDynamicRangeDescription": "Automatycznie włącz HDR dla treści HDR i przywróć SDR po wyjściu z odtwarzacza",
|
||||
"matchDynamicRangeDescription": "Włącz HDR dla treści HDR, potem wróć do SDR",
|
||||
"displaySwitchDelay": "Opóźnienie przełączania ekranu",
|
||||
"tunneledPlayback": "Tunelowane odtwarzanie",
|
||||
"tunneledPlaybackDescription": "Użyj sprzętowo przyspieszonego tunelowania wideo. Wyłącz, jeśli widzisz czarny ekran z dźwiękiem przy treściach HDR",
|
||||
"tunneledPlaybackDescription": "Użyj tunelowania wideo. Wyłącz, jeśli HDR pokazuje czarny obraz.",
|
||||
"requireProfileSelectionOnOpen": "Pytaj o profil przy otwarciu aplikacji",
|
||||
"requireProfileSelectionOnOpenDescription": "Pokaż wybór profilu za każdym razem, gdy aplikacja jest otwierana",
|
||||
"confirmExitOnBack": "Potwierdź przed wyjściem",
|
||||
"confirmExitOnBackDescription": "Pokaż dialog potwierdzenia przy naciśnięciu wstecz, aby wyjść z aplikacji",
|
||||
"forceTvMode": "Wymuś tryb TV",
|
||||
"forceTvModeDescription": "Użyj układu TV niezależnie od automatycznego wykrywania. Przydatne na urządzeniach Android TV, które nie zgłaszają funkcji leanback. Po zmianie aplikacja zostanie zrestartowana.",
|
||||
"forceTvModeDescription": "Wymuś układ TV. Dla urządzeń bez autodetekcji. Wymaga restartu.",
|
||||
"startInFullscreen": "Uruchom na pełnym ekranie",
|
||||
"startInFullscreenDescription": "Otwiera Plezy w trybie pełnoekranowym przy uruchomieniu",
|
||||
"autoHidePerformanceOverlay": "Automatycznie ukrywaj nakładkę wydajności",
|
||||
@@ -251,15 +260,15 @@
|
||||
"showNavBarLabelsDescription": "Wyświetl tekstowe etykiety pod ikonami paska nawigacji",
|
||||
"liveTvDefaultFavorites": "Domyślnie ulubione kanały",
|
||||
"liveTvDefaultFavoritesDescription": "Pokaż tylko ulubione kanały po otwarciu telewizji na żywo",
|
||||
"display": "Display",
|
||||
"homeScreen": "Home Screen",
|
||||
"navigation": "Navigation",
|
||||
"window": "Window",
|
||||
"content": "Content",
|
||||
"player": "Player",
|
||||
"subtitlesAndConfig": "Subtitles & Configuration",
|
||||
"seekAndTiming": "Seek & Timing",
|
||||
"behavior": "Behavior"
|
||||
"display": "Ekran",
|
||||
"homeScreen": "Ekran główny",
|
||||
"navigation": "Nawigacja",
|
||||
"window": "Okno",
|
||||
"content": "Zawartość",
|
||||
"player": "Odtwarzacz",
|
||||
"subtitlesAndConfig": "Napisy i konfiguracja",
|
||||
"seekAndTiming": "Przewijanie i czas",
|
||||
"behavior": "Zachowanie"
|
||||
},
|
||||
"search": {
|
||||
"hint": "Szukaj filmów, seriali, muzyki...",
|
||||
@@ -330,7 +339,7 @@
|
||||
"shufflePlay": "Odtwarzanie losowe",
|
||||
"fileInfo": "Informacje o pliku",
|
||||
"deleteFromServer": "Usuń z serwera",
|
||||
"confirmDelete": "To trwale usunie te multimedia i ich pliki z twojego serwera. Tej operacji nie można cofnąć.",
|
||||
"confirmDelete": "Usunąć to medium i jego pliki z serwera?",
|
||||
"deleteMultipleWarning": "Obejmuje to wszystkie odcinki i ich pliki.",
|
||||
"mediaDeletedSuccessfully": "Element multimedialny usunięty pomyślnie",
|
||||
"mediaFailedToDelete": "Nie udało się usunąć elementu multimedialnego",
|
||||
@@ -414,7 +423,7 @@
|
||||
"pipErrors": {
|
||||
"androidVersion": "Wymaga Androida 8.0 lub nowszego",
|
||||
"iosVersion": "Wymaga iOS 15.0 lub nowszego",
|
||||
"permissionDisabled": "Uprawnienie obraz w obrazie jest wyłączone. Włącz w Ustawienia > Aplikacje > Plezy > Obraz w obrazie",
|
||||
"permissionDisabled": "Obraz w obrazie jest wyłączony. Włącz go w ustawieniach systemu.",
|
||||
"notSupported": "Urządzenie nie obsługuje trybu obraz w obrazie",
|
||||
"voSwitchFailed": "Nie udało się przełączyć wyjścia wideo dla trybu obraz w obrazie",
|
||||
"failed": "Nie udało się uruchomić trybu obraz w obrazie",
|
||||
@@ -452,7 +461,7 @@
|
||||
"musicNotSupported": "Odtwarzanie muzyki nie jest jeszcze obsługiwane",
|
||||
"noDescriptionAvailable": "Brak dostępnego opisu",
|
||||
"noProfilesAvailable": "Brak dostępnych profili",
|
||||
"contactAdminForProfiles": "Skontaktuj się z administratorem Plex, aby dodać profile",
|
||||
"contactAdminForProfiles": "Skontaktuj się z administratorem serwera, aby dodać profile",
|
||||
"unableToDetermineLibrarySection": "Nie można określić sekcji biblioteki dla tego elementu",
|
||||
"logsCleared": "Logi wyczyszczone",
|
||||
"logsCopied": "Logi skopiowane do schowka",
|
||||
@@ -474,7 +483,7 @@
|
||||
"failedPlayback": "Nie udało się ${action}: ${error}",
|
||||
"switchingToCompatiblePlayer": "Przełączanie na kompatybilny odtwarzacz...",
|
||||
"serverLimitTitle": "Odtwarzanie nie powiodło się",
|
||||
"serverLimitBody": "Serwer zwrócił błąd (HTTP 500). Zwykle oznacza to, że właściciel serwera ustawił limit przepustowości lub transkodowania, który odrzuca Twoją sesję. Z poziomu klienta nie da się nic zrobić — właściciel serwera musi dostosować swoje ustawienia.",
|
||||
"serverLimitBody": "Błąd serwera (HTTP 500). Limit przepustowości/transkodowania prawdopodobnie odrzucił tę sesję. Poproś właściciela o zmianę.",
|
||||
"logsUploaded": "Logi przesłane",
|
||||
"logsUploadFailed": "Nie udało się przesłać logów",
|
||||
"logId": "ID logu"
|
||||
@@ -513,12 +522,85 @@
|
||||
"dialog": {
|
||||
"confirmAction": "Potwierdź działanie"
|
||||
},
|
||||
"profiles": {
|
||||
"addPlezyProfile": "Dodaj profil Plezy",
|
||||
"switchingProfile": "Przełączanie profilu…",
|
||||
"deleteThisProfileTitle": "Usunąć ten profil?",
|
||||
"deleteThisProfileMessage": "Usuń ${displayName}. Połączenia nie zostaną zmienione.",
|
||||
"active": "Aktywny",
|
||||
"manage": "Zarządzaj",
|
||||
"delete": "Usuń",
|
||||
"signOut": "Wyloguj się",
|
||||
"signOutPlexTitle": "Wylogować się z Plex?",
|
||||
"signOutPlexMessage": "Usunąć ${displayName} i wszystkich użytkowników Plex Home? Możesz zalogować się ponownie w każdej chwili.",
|
||||
"signedOutPlex": "Wylogowano z Plex.",
|
||||
"signOutFailed": "Wylogowanie nie powiodło się.",
|
||||
"sectionTitle": "Profile",
|
||||
"summarySingle": "Dodaj profile, aby łączyć zarządzanych użytkowników i tożsamości lokalne",
|
||||
"summaryMultipleWithActive": "${count} profili · aktywny: ${activeName}",
|
||||
"summaryMultiple": "${count} profili",
|
||||
"removeConnectionTitle": "Usunąć połączenie?",
|
||||
"removeConnectionMessage": "Usuń dostęp ${displayName} do ${connectionLabel}. Inne profile go zachowają.",
|
||||
"deleteProfileTitle": "Usunąć profil?",
|
||||
"deleteProfileMessage": "Usuń ${displayName} i jego połączenia. Serwery pozostaną dostępne.",
|
||||
"profileNameLabel": "Nazwa profilu",
|
||||
"pinProtectionLabel": "Ochrona PIN-em",
|
||||
"pinManagedByPlex": "PIN zarządzany przez Plex. Edytuj na plex.tv.",
|
||||
"noPinSetEditOnPlex": "Nie ustawiono PIN-u. Aby go wymagać, edytuj użytkownika Home na plex.tv.",
|
||||
"setPin": "Ustaw PIN",
|
||||
"setPinTitle": "Ustaw PIN",
|
||||
"confirmPinTitle": "Potwierdź PIN",
|
||||
"pinSet": "PIN ustawiony",
|
||||
"changePin": "Zmień",
|
||||
"removePin": "Usuń",
|
||||
"connectionsLabel": "Połączenia",
|
||||
"add": "Dodaj",
|
||||
"deleteProfileButton": "Usuń profil",
|
||||
"noConnectionsHint": "Brak połączeń — dodaj jedno, aby używać tego profilu.",
|
||||
"noConnections": "Brak połączeń",
|
||||
"plexHomeAccount": "Konto Plex Home",
|
||||
"connectionDefault": "Domyślne",
|
||||
"connectionAs": "jako ${displayName}",
|
||||
"makeDefault": "Ustaw jako domyślne",
|
||||
"removeConnection": "Usuń",
|
||||
"profileRenamed": "Zmieniono nazwę profilu.",
|
||||
"borrowAddTo": "Dodaj do ${displayName}",
|
||||
"borrowExplain": "Pożycz połączenie z innego profilu. Profile chronione PIN wymagają PIN-u.",
|
||||
"borrowEmpty": "Nic do pożyczenia.",
|
||||
"borrowEmptySubtitle": "Najpierw połącz Plex lub Jellyfin z innym profilem.",
|
||||
"borrowFromProfile": "Od ${displayName}",
|
||||
"borrowConnectionBorrowed": "Połączenie pożyczone.",
|
||||
"borrowFailed": "Nie udało się pożyczyć połączenia.",
|
||||
"incorrectPin": "Nieprawidłowy PIN.",
|
||||
"sourceProfileMissingParentAccount": "Profil źródłowy nie ma konta nadrzędnego.",
|
||||
"failedToVerifyPin": "Nie udało się zweryfikować PIN-u.",
|
||||
"newProfile": "Nowy profil",
|
||||
"profileNameHint": "np. Goście, Dzieci, Salon",
|
||||
"pinProtectionOptional": "Ochrona PIN-em (opcjonalnie)",
|
||||
"pinExplain": "Do przełączania profili wymagany jest 4-cyfrowy PIN.",
|
||||
"continueButton": "Kontynuuj",
|
||||
"pinsDontMatch": "PIN-y nie pasują"
|
||||
},
|
||||
"connections": {
|
||||
"sectionTitle": "Połączenia",
|
||||
"addConnection": "Dodaj połączenie",
|
||||
"addConnectionSubtitleNoProfile": "Zaloguj się przez Plex lub połącz serwer Jellyfin",
|
||||
"addConnectionSubtitleScoped": "Dodaj do ${displayName}: Plex, Jellyfin lub połączenie innego profilu",
|
||||
"sessionExpiredOne": "Sesja wygasła dla ${name}",
|
||||
"sessionExpiredMany": "Sesja wygasła dla ${count} serwerów",
|
||||
"signInAgain": "Zaloguj się ponownie"
|
||||
},
|
||||
"discover": {
|
||||
"title": "Odkryj",
|
||||
"switchProfile": "Zmień profil",
|
||||
"noContentAvailable": "Brak dostępnych treści",
|
||||
"addMediaToLibraries": "Dodaj multimedia do swoich bibliotek",
|
||||
"continueWatching": "Kontynuuj oglądanie",
|
||||
"continueWatchingIn": "Kontynuuj oglądanie w ${library}",
|
||||
"nextUp": "Następny odcinek",
|
||||
"nextUpIn": "Następny odcinek w ${library}",
|
||||
"recentlyAdded": "Ostatnio dodane",
|
||||
"recentlyAddedIn": "Ostatnio dodane w ${library}",
|
||||
"playEpisode": "S${season}E${episode}",
|
||||
"overview": "Opis",
|
||||
"cast": "Obsada",
|
||||
@@ -532,7 +614,7 @@
|
||||
"errors": {
|
||||
"searchFailed": "Wyszukiwanie nie powiodło się: ${error}",
|
||||
"connectionTimeout": "Limit czasu połączenia przy ładowaniu ${context}",
|
||||
"connectionFailed": "Nie można połączyć z serwerem Plex",
|
||||
"connectionFailed": "Nie można połączyć się z serwerem multimediów",
|
||||
"failedToLoad": "Nie udało się załadować ${context}: ${error}",
|
||||
"noClientAvailable": "Brak dostępnego klienta",
|
||||
"authenticationFailed": "Uwierzytelnienie nie powiodło się: ${error}",
|
||||
@@ -540,7 +622,9 @@
|
||||
"pleaseEnterToken": "Wprowadź token",
|
||||
"invalidToken": "Nieprawidłowy token",
|
||||
"failedToVerifyToken": "Nie udało się zweryfikować tokena: ${error}",
|
||||
"failedToSwitchProfile": "Nie udało się przełączyć na ${displayName}"
|
||||
"failedToSwitchProfile": "Nie udało się przełączyć na ${displayName}",
|
||||
"failedToDeleteProfile": "Nie udało się usunąć ${displayName}",
|
||||
"failedToRate": "Nie udało się zaktualizować oceny"
|
||||
},
|
||||
"libraries": {
|
||||
"title": "Biblioteki",
|
||||
@@ -595,17 +679,34 @@
|
||||
"seasons": "Sezony",
|
||||
"episodes": "Odcinki",
|
||||
"folders": "Foldery"
|
||||
},
|
||||
"filterCategories": {
|
||||
"genre": "Gatunek",
|
||||
"year": "Rok",
|
||||
"contentRating": "Klasyfikacja wiekowa",
|
||||
"tag": "Tag"
|
||||
},
|
||||
"sortLabels": {
|
||||
"title": "Tytuł",
|
||||
"dateAdded": "Data dodania",
|
||||
"releaseDate": "Data premiery",
|
||||
"rating": "Ocena",
|
||||
"lastPlayed": "Ostatnio odtwarzane",
|
||||
"playCount": "Liczba odtworzeń",
|
||||
"random": "Losowo",
|
||||
"dateShared": "Data udostępnienia",
|
||||
"latestEpisodeAirDate": "Data emisji ostatniego odcinka"
|
||||
}
|
||||
},
|
||||
"about": {
|
||||
"title": "O aplikacji",
|
||||
"openSourceLicenses": "Licencje open source",
|
||||
"versionLabel": "Wersja ${version}",
|
||||
"appDescription": "Piękny klient Plex na Flutter",
|
||||
"appDescription": "Piękny klient Plex i Jellyfin na Flutter",
|
||||
"viewLicensesDescription": "Zobacz licencje bibliotek zewnętrznych"
|
||||
},
|
||||
"serverSelection": {
|
||||
"allServerConnectionsFailed": "Nie udało się połączyć z żadnym serwerem. Sprawdź sieć i spróbuj ponownie.",
|
||||
"allServerConnectionsFailed": "Nie udało się połączyć z żadnym serwerem. Sprawdź sieć.",
|
||||
"noServersFoundForAccount": "Nie znaleziono serwerów dla ${username} (${email})",
|
||||
"failedToLoadServers": "Nie udało się załadować serwerów: ${error}"
|
||||
},
|
||||
@@ -642,6 +743,7 @@
|
||||
"reloadGuide": "Odśwież przewodnik",
|
||||
"now": "Teraz",
|
||||
"today": "Dzisiaj",
|
||||
"tomorrow": "Jutro",
|
||||
"midnight": "Północ",
|
||||
"overnight": "Nocą",
|
||||
"morning": "Rano",
|
||||
@@ -655,7 +757,41 @@
|
||||
"joinSession": "Dołącz do trwającej sesji",
|
||||
"watchFromStart": "Oglądaj od początku (${minutes} min temu)",
|
||||
"watchLive": "Oglądaj na żywo",
|
||||
"goToLive": "Przejdź do na żywo"
|
||||
"goToLive": "Przejdź do na żywo",
|
||||
"record": "Nagraj",
|
||||
"recordEpisode": "Nagraj odcinek",
|
||||
"recordSeries": "Nagraj serial",
|
||||
"recordOptions": "Opcje nagrywania",
|
||||
"recordings": "Nagrania",
|
||||
"scheduledRecordings": "Zaplanowane",
|
||||
"recordingRules": "Reguły nagrywania",
|
||||
"noScheduledRecordings": "Brak zaplanowanych nagrań",
|
||||
"noRecordingRules": "Brak reguł nagrywania",
|
||||
"manageRecording": "Zarządzaj nagraniem",
|
||||
"cancelRecording": "Anuluj nagrywanie",
|
||||
"cancelRecordingTitle": "Anulować to nagrywanie?",
|
||||
"cancelRecordingMessage": "${title} nie będzie już nagrywane.",
|
||||
"deleteRule": "Usuń regułę",
|
||||
"deleteRuleTitle": "Usunąć regułę nagrywania?",
|
||||
"deleteRuleMessage": "Przyszłe odcinki ${title} nie będą nagrywane.",
|
||||
"recordingScheduled": "Nagrywanie zaplanowane",
|
||||
"alreadyScheduled": "Ten program jest już zaplanowany",
|
||||
"dvrAdminRequired": "Ustawienia DVR wymagają konta administratora",
|
||||
"recordingFailed": "Nie można zaplanować nagrywania",
|
||||
"recordingTargetMissing": "Nie można określić biblioteki nagrań",
|
||||
"recordNotAvailable": "Nagrywanie niedostępne dla tego programu",
|
||||
"recordingCancelled": "Nagrywanie anulowane",
|
||||
"recordingRuleDeleted": "Reguła nagrywania usunięta",
|
||||
"processRecordingRules": "Ponów ocenę reguł",
|
||||
"loadingRecordings": "Wczytywanie nagrań...",
|
||||
"recordingInProgress": "Trwa nagrywanie",
|
||||
"recordingsCount": "${count} zaplanowanych",
|
||||
"editRule": "Edytuj regułę",
|
||||
"editRuleAction": "Edytuj",
|
||||
"recordingRuleUpdated": "Reguła nagrywania zaktualizowana",
|
||||
"guideReloadRequested": "Zażądano odświeżenia przewodnika",
|
||||
"rulesProcessRequested": "Zażądano ponownej oceny reguł",
|
||||
"recordShow": "Nagraj program"
|
||||
},
|
||||
"collections": {
|
||||
"title": "Kolekcje",
|
||||
@@ -663,7 +799,7 @@
|
||||
"empty": "Kolekcja jest pusta",
|
||||
"unknownLibrarySection": "Nie można usunąć: Nieznana sekcja biblioteki",
|
||||
"deleteCollection": "Usuń kolekcję",
|
||||
"deleteConfirm": "Czy na pewno chcesz usunąć \"${title}\"? Tej operacji nie można cofnąć.",
|
||||
"deleteConfirm": "Usunąć \"${title}\"? Tego nie można cofnąć.",
|
||||
"deleted": "Kolekcja usunięta",
|
||||
"deleteFailed": "Nie udało się usunąć kolekcji",
|
||||
"deleteFailedWithError": "Nie udało się usunąć kolekcji: ${error}",
|
||||
@@ -747,11 +883,11 @@
|
||||
"pasteFromClipboard": "Wklej ze schowka",
|
||||
"pleaseEnterCode": "Wprowadź kod sesji",
|
||||
"codeMustBe5Chars": "Kod sesji musi mieć 5 znaków",
|
||||
"joinInstructions": "Wprowadź kod sesji udostępniony przez hosta, aby dołączyć do sesji oglądania.",
|
||||
"joinInstructions": "Wpisz kod sesji hosta, aby dołączyć.",
|
||||
"failedToCreate": "Nie udało się utworzyć sesji",
|
||||
"failedToJoin": "Nie udało się dołączyć do sesji",
|
||||
"sessionCodeCopied": "Kod sesji skopiowany do schowka",
|
||||
"relayUnreachable": "Serwer przekaźnika jest nieosiągalny. Może to być spowodowane blokadą przez twojego dostawcę internetu. Możesz spróbować, ale Oglądaj razem może nie działać.",
|
||||
"relayUnreachable": "Serwer relay jest nieosiągalny. Blokada ISP może uniemożliwiać Watch Together.",
|
||||
"reconnectingToHost": "Ponowne łączenie z hostem...",
|
||||
"currentPlayback": "Bieżące odtwarzanie",
|
||||
"joinCurrentPlayback": "Dołącz do bieżącego odtwarzania",
|
||||
@@ -766,7 +902,9 @@
|
||||
"waitingForParticipants": "Oczekiwanie na załadowanie u innych...",
|
||||
"recentRooms": "Ostatnie pokoje",
|
||||
"renameRoom": "Zmień nazwę pokoju",
|
||||
"removeRoom": "Usuń"
|
||||
"removeRoom": "Usuń",
|
||||
"guestSwitchUnavailable": "Nie można przełączyć — serwer niedostępny do synchronizacji",
|
||||
"guestSwitchFailed": "Nie można przełączyć — nie znaleziono treści na tym serwerze"
|
||||
},
|
||||
"downloads": {
|
||||
"title": "Pobrania",
|
||||
@@ -779,10 +917,10 @@
|
||||
"deleteDownload": "Usuń pobranie",
|
||||
"retryDownload": "Ponów pobieranie",
|
||||
"downloadQueued": "Pobranie w kolejce",
|
||||
"serverErrorBitrate": "Błąd serwera — plik może przekraczać limit bitrate zdalnego streamingu",
|
||||
"serverErrorBitrate": "Błąd serwera: plik może przekraczać zdalny limit bitrate",
|
||||
"episodesQueued": "${count} odcinków w kolejce pobierania",
|
||||
"downloadDeleted": "Pobranie usunięte",
|
||||
"deleteConfirm": "Czy na pewno chcesz usunąć \"${title}\"? Spowoduje to usunięcie pobranego pliku z urządzenia.",
|
||||
"deleteConfirm": "Usunąć \"${title}\" z tego urządzenia?",
|
||||
"deletingWithProgress": "Usuwanie ${title}... (${current} z ${total})",
|
||||
"deleting": "Usuwanie...",
|
||||
"queuedTooltip": "W kolejce",
|
||||
@@ -817,6 +955,12 @@
|
||||
"editSyncFilter": "Filtr synchronizacji",
|
||||
"syncAllItems": "Synchronizuję wszystkie elementy",
|
||||
"syncUnwatchedItems": "Synchronizuję nieobejrzane elementy",
|
||||
"syncRuleServerContext": "Serwer: ${server} • ${status}",
|
||||
"syncRuleAvailable": "Dostępne",
|
||||
"syncRuleOffline": "Offline",
|
||||
"syncRuleSignInRequired": "Wymagane logowanie",
|
||||
"syncRuleNotAvailableForProfile": "Niedostępne dla bieżącego profilu",
|
||||
"syncRuleUnknownServer": "Nieznany serwer",
|
||||
"syncRuleListCreated": "Utworzono regułę synchronizacji"
|
||||
},
|
||||
"shaders": {
|
||||
@@ -846,7 +990,7 @@
|
||||
"connected": "Połączono",
|
||||
"serverRunning": "Serwer zdalny aktywny",
|
||||
"serverStopped": "Serwer zdalny zatrzymany",
|
||||
"serverRunningDescription": "Urządzenia mobilne w sieci mogą wykryć tę aplikację i się z nią połączyć",
|
||||
"serverRunningDescription": "Urządzenia mobilne w Twojej sieci mogą łączyć się z tą aplikacją",
|
||||
"serverStoppedDescription": "Uruchom serwer, aby umożliwić połączenie urządzeń mobilnych",
|
||||
"usePhoneToControl": "Użyj urządzenia mobilnego, aby sterować tą aplikacją",
|
||||
"startServer": "Uruchom serwer",
|
||||
@@ -854,20 +998,20 @@
|
||||
"minimize": "Minimalizuj"
|
||||
},
|
||||
"pairing": {
|
||||
"discoveryDescription": "Urządzenia w sieci z Plezy na tym samym koncie Plex pojawią się automatycznie",
|
||||
"discoveryDescription": "Urządzenia Plezy z tym samym kontem Plex pojawią się tutaj",
|
||||
"hostAddressHint": "192.168.1.100:48632",
|
||||
"connecting": "Łączenie...",
|
||||
"searchingForDevices": "Szukanie urządzeń...",
|
||||
"noDevicesFound": "Nie znaleziono urządzeń w sieci",
|
||||
"noDevicesHint": "Upewnij się, że Plezy jest otwarte na komputerze i oba urządzenia są w tej samej sieci WiFi",
|
||||
"noDevicesHint": "Otwórz Plezy na komputerze i użyj tego samego WiFi",
|
||||
"availableDevices": "Dostępne urządzenia",
|
||||
"manualConnection": "Połączenie ręczne",
|
||||
"cryptoInitFailed": "Nie udało się zainicjować bezpiecznego połączenia. Upewnij się, że jesteś zalogowany na konto Plex.",
|
||||
"cryptoInitFailed": "Nie udało się uruchomić bezpiecznego połączenia. Najpierw zaloguj się do Plex.",
|
||||
"validationHostRequired": "Wprowadź adres hosta",
|
||||
"validationHostFormat": "Format musi być IP:port (np. 192.168.1.100:48632)",
|
||||
"connectionTimedOut": "Przekroczono limit czasu połączenia. Upewnij się, że oba urządzenia są w tej samej sieci.",
|
||||
"connectionTimedOut": "Limit czasu połączenia. Użyj tej samej sieci na obu urządzeniach.",
|
||||
"sessionNotFound": "Nie znaleziono urządzenia. Upewnij się, że Plezy działa na hoście.",
|
||||
"authFailed": "Uwierzytelnianie nie powiodło się. Upewnij się, że oba urządzenia używają tego samego konta Plex.",
|
||||
"authFailed": "Uwierzytelnianie nie powiodło się. Oba urządzenia muszą używać tego samego konta Plex.",
|
||||
"failedToConnect": "Nie udało się połączyć: ${error}"
|
||||
},
|
||||
"remote": {
|
||||
@@ -915,7 +1059,7 @@
|
||||
"externalPlayer": {
|
||||
"title": "Zewnętrzny odtwarzacz",
|
||||
"useExternalPlayer": "Użyj zewnętrznego odtwarzacza",
|
||||
"useExternalPlayerDescription": "Otwieraj wideo w zewnętrznej aplikacji zamiast wbudowanego odtwarzacza",
|
||||
"useExternalPlayerDescription": "Otwieraj wideo w innej aplikacji",
|
||||
"selectPlayer": "Wybierz odtwarzacz",
|
||||
"customPlayers": "Niestandardowe odtwarzacze",
|
||||
"systemDefault": "Domyślny systemowy",
|
||||
@@ -1009,7 +1153,7 @@
|
||||
"match": "Dopasuj...",
|
||||
"fixMatch": "Popraw dopasowanie...",
|
||||
"unmatch": "Usuń dopasowanie",
|
||||
"unmatchConfirm": "Usunąć obecne dopasowanie tego elementu? Plex będzie traktował go jako niedopasowany, dopóki nie dopasujesz go ponownie.",
|
||||
"unmatchConfirm": "Wyczyścić to dopasowanie? Plex uzna je za niedopasowane do ponownego dopasowania.",
|
||||
"unmatchSuccess": "Dopasowanie usunięte",
|
||||
"unmatchFailed": "Nie udało się usunąć dopasowania",
|
||||
"matchApplied": "Dopasowanie zastosowane",
|
||||
@@ -1029,7 +1173,7 @@
|
||||
"connected": "Połączono",
|
||||
"connectedAs": "Połączono jako @${username}",
|
||||
"disconnectConfirm": "Rozłączyć konto Trakt?",
|
||||
"disconnectConfirmBody": "Plezy przestanie wysyłać zdarzenia odtwarzania do Trakt. Możesz połączyć się ponownie w dowolnej chwili.",
|
||||
"disconnectConfirmBody": "Plezy przestanie wysyłać zdarzenia do Trakt. Możesz połączyć ponownie w dowolnym momencie.",
|
||||
"scrobble": "Scrobbling w czasie rzeczywistym",
|
||||
"scrobbleDescription": "Wysyłaj zdarzenia odtwarzania, pauzy i zatrzymania do Trakt podczas odtwarzania.",
|
||||
"watchedSync": "Synchronizuj status obejrzane",
|
||||
@@ -1043,7 +1187,7 @@
|
||||
"scrobble": "Automatycznie śledź postęp",
|
||||
"scrobbleDescription": "Aktualizuj swoją listę po ukończeniu odcinka lub filmu.",
|
||||
"disconnectConfirm": "Odłączyć ${service}?",
|
||||
"disconnectConfirmBody": "Plezy przestanie aktualizować Twoją listę ${service}. Możesz połączyć się ponownie w dowolnej chwili.",
|
||||
"disconnectConfirmBody": "Plezy przestanie aktualizować ${service}. Połącz ponownie w dowolnym momencie.",
|
||||
"connectFailed": "Nie udało się połączyć z ${service}. Spróbuj ponownie.",
|
||||
"services": {
|
||||
"mal": "MyAnimeList",
|
||||
@@ -1059,7 +1203,7 @@
|
||||
},
|
||||
"oauthProxy": {
|
||||
"title": "Zaloguj się do ${service}",
|
||||
"body": "Zeskanuj ten kod QR telefonem lub otwórz poniższy adres URL na dowolnym urządzeniu z przeglądarką.",
|
||||
"body": "Zeskanuj ten kod QR lub otwórz URL na dowolnym urządzeniu.",
|
||||
"openToSignIn": "Otwórz ${service}, aby się zalogować",
|
||||
"urlCopied": "URL skopiowany"
|
||||
},
|
||||
@@ -1077,5 +1221,39 @@
|
||||
"libraries": "Biblioteki",
|
||||
"noLibraries": "Brak dostępnych bibliotek"
|
||||
}
|
||||
},
|
||||
"addServer": {
|
||||
"addJellyfinTitle": "Dodaj serwer Jellyfin",
|
||||
"jellyfinUrlIntro": "Wpisz URL serwera, np. `https://jellyfin.example.com`.",
|
||||
"serverUrl": "URL serwera",
|
||||
"findServer": "Znajdź serwer",
|
||||
"username": "Nazwa użytkownika",
|
||||
"password": "Hasło",
|
||||
"signIn": "Zaloguj się",
|
||||
"change": "Zmień",
|
||||
"required": "Wymagane",
|
||||
"couldNotReachServer": "Nie udało się połączyć z serwerem: ${error}",
|
||||
"signInFailed": "Logowanie nie powiodło się: ${error}",
|
||||
"quickConnectFailed": "Quick Connect nie powiodło się: ${error}",
|
||||
"addPlexTitle": "Zaloguj się przez Plex",
|
||||
"plexAuthIntro": "Zaloguj się przez przeglądarkę lub kod QR.",
|
||||
"plexQRPrompt": "Zeskanuj ten kod QR, aby się zalogować.",
|
||||
"waitingForPlexConfirmation": "Czekam na potwierdzenie logowania przez plex.tv…",
|
||||
"pinExpired": "PIN wygasł przed zalogowaniem. Spróbuj ponownie.",
|
||||
"duplicatePlexAccount": "Już zalogowano do Plex. Wyloguj się, aby zmienić konto.",
|
||||
"failedToRegisterAccount": "Nie udało się zarejestrować konta: ${error}",
|
||||
"enterJellyfinUrlError": "Podaj URL serwera Jellyfin",
|
||||
"addConnectionTitle": "Dodaj połączenie",
|
||||
"addConnectionTitleScoped": "Dodaj do ${name}",
|
||||
"addConnectionIntroGlobal": "Dodaj kolejny serwer multimediów. Plex i Jellyfin pojawią się razem na ekranie głównym.",
|
||||
"addConnectionIntroScoped": "Dodaj nowy serwer lub pożycz z innego profilu.",
|
||||
"signInWithPlexCard": "Zaloguj się przez Plex",
|
||||
"signInWithPlexCardSubtitle": "Autoryzuj to urządzenie. Serwery udostępnione zostaną dodane.",
|
||||
"signInWithPlexCardSubtitleScoped": "Autoryzuj konto Plex. Użytkownicy Home staną się profilami.",
|
||||
"connectToJellyfinCard": "Połącz z Jellyfin",
|
||||
"connectToJellyfinCardSubtitle": "Wpisz URL serwera, nazwę użytkownika i hasło.",
|
||||
"connectToJellyfinCardSubtitleScoped": "Zaloguj się do serwera Jellyfin. Powiązane z ${name}.",
|
||||
"borrowFromAnotherProfile": "Pożycz z innego profilu",
|
||||
"borrowFromAnotherProfileSubtitle": "Użyj połączenia z innego profilu. Profile chronione PIN wymagają PIN-u."
|
||||
}
|
||||
}
|
||||
|
||||
+245
-67
@@ -3,13 +3,22 @@
|
||||
"title": "Plezy"
|
||||
},
|
||||
"auth": {
|
||||
"signIn": "Entrar",
|
||||
"signInWithPlex": "Entrar com Plex",
|
||||
"showQRCode": "Mostrar QR Code",
|
||||
"authenticate": "Autenticar",
|
||||
"authenticationTimeout": "A autenticação expirou. Tente novamente.",
|
||||
"scanQRToSignIn": "Escaneie este QR code para entrar",
|
||||
"waitingForAuth": "Aguardando autenticação...\nConclua o login no seu navegador.",
|
||||
"useBrowser": "Usar navegador"
|
||||
"waitingForAuth": "Aguardando autenticação...\nEntre pelo navegador.",
|
||||
"useBrowser": "Usar navegador",
|
||||
"or": "ou",
|
||||
"connectToJellyfin": "Conectar ao Jellyfin",
|
||||
"useQuickConnect": "Usar Quick Connect",
|
||||
"quickConnectCode": "Código do Quick Connect",
|
||||
"quickConnectInstructions": "Abra o Quick Connect no Jellyfin e insira este código.",
|
||||
"quickConnectWaiting": "A aguardar aprovação…",
|
||||
"quickConnectCancel": "Cancelar",
|
||||
"quickConnectExpired": "Quick Connect expirou. Tente novamente."
|
||||
},
|
||||
"common": {
|
||||
"cancel": "Cancelar",
|
||||
@@ -43,9 +52,6 @@
|
||||
"mute": "Silenciar",
|
||||
"ok": "OK",
|
||||
"reconnect": "Reconectar",
|
||||
"exitConfirmTitle": "Sair do app?",
|
||||
"exitConfirmMessage": "Tem certeza que deseja sair?",
|
||||
"dontAskAgain": "Não perguntar novamente",
|
||||
"exit": "Sair",
|
||||
"viewAll": "Ver Tudo",
|
||||
"checkingNetwork": "Verificando rede...",
|
||||
@@ -55,7 +61,8 @@
|
||||
"startingOfflineMode": "Iniciando modo offline...",
|
||||
"loading": "Carregando...",
|
||||
"fullscreen": "Tela cheia",
|
||||
"exitFullscreen": "Sair da tela cheia"
|
||||
"exitFullscreen": "Sair da tela cheia",
|
||||
"pressBackAgainToExit": "Pressione voltar novamente para sair"
|
||||
},
|
||||
"screens": {
|
||||
"licenses": "Licenças",
|
||||
@@ -104,22 +111,22 @@
|
||||
"gridView": "Grade",
|
||||
"listView": "Lista",
|
||||
"showHeroSection": "Mostrar Seção de Destaque",
|
||||
"useGlobalHubs": "Usar Layout Plex Home",
|
||||
"useGlobalHubsDescription": "Mostrar hubs da página inicial como o cliente oficial Plex. Quando desativado, mostra recomendações por biblioteca.",
|
||||
"useGlobalHubs": "Usar layout inicial",
|
||||
"useGlobalHubsDescription": "Mostrar hubs iniciais unificados. Caso contrário, usar recomendações da biblioteca.",
|
||||
"showServerNameOnHubs": "Mostrar Nome do Servidor nos Hubs",
|
||||
"showServerNameOnHubsDescription": "Sempre exibir o nome do servidor nos títulos dos hubs. Quando desativado, mostra apenas para nomes duplicados.",
|
||||
"showServerNameOnHubsDescription": "Sempre mostrar nomes dos servidores nos títulos dos hubs.",
|
||||
"groupLibrariesByServer": "Agrupar Bibliotecas por Servidor",
|
||||
"groupLibrariesByServerDescription": "Mostra um cabeçalho para cada servidor Plex na barra lateral quando você está conectado a vários servidores.",
|
||||
"groupLibrariesByServerDescription": "Agrupar bibliotecas da barra lateral por servidor de mídia.",
|
||||
"alwaysKeepSidebarOpen": "Manter Barra Lateral Sempre Aberta",
|
||||
"alwaysKeepSidebarOpenDescription": "A barra lateral fica expandida e a área de conteúdo se ajusta",
|
||||
"showUnwatchedCount": "Mostrar Contagem de Não Assistidos",
|
||||
"showUnwatchedCountDescription": "Exibir contagem de episódios não assistidos em séries e temporadas",
|
||||
"showEpisodeNumberOnCards": "Mostrar Número do Episódio nos Cards",
|
||||
"showEpisodeNumberOnCardsDescription": "Mostrar o número do episódio ao lado da temporada (ex. S2 E3) nos cards de episódios",
|
||||
"showEpisodeNumberOnCardsDescription": "Mostrar temporada e episódio nos cartões de episódio",
|
||||
"showSeasonPostersOnTabs": "Mostrar Pôsteres de Temporada nas Abas",
|
||||
"showSeasonPostersOnTabsDescription": "Exibe o pôster da temporada acima de cada aba de temporada na página de detalhes de uma série",
|
||||
"showSeasonPostersOnTabsDescription": "Mostrar o pôster de cada temporada acima da aba",
|
||||
"hideSpoilers": "Ocultar Spoilers de Episódios Não Assistidos",
|
||||
"hideSpoilersDescription": "Desfocar miniaturas e ocultar descrições de episódios que você ainda não assistiu",
|
||||
"hideSpoilersDescription": "Desfocar miniaturas e descrições de episódios não vistos",
|
||||
"playerBackend": "Backend do Player",
|
||||
"exoPlayer": "ExoPlayer (Recomendado)",
|
||||
"mpv": "mpv",
|
||||
@@ -128,7 +135,7 @@
|
||||
"bufferSize": "Tamanho do Buffer",
|
||||
"bufferSizeMB": "${size}MB",
|
||||
"bufferSizeAuto": "Automático (Recomendado)",
|
||||
"bufferSizeWarning": "Seu dispositivo tem ${heap}MB de memória. Um buffer de ${size}MB pode causar problemas de reprodução.",
|
||||
"bufferSizeWarning": "${heap}MB de memória disponível. Um buffer de ${size}MB pode afetar a reprodução.",
|
||||
"defaultQualityTitle": "Qualidade padrão",
|
||||
"defaultQualityDescription": "Usado ao iniciar a reprodução. Valores menores reduzem a largura de banda.",
|
||||
"subtitleStyling": "Estilo de Legendas",
|
||||
@@ -140,16 +147,18 @@
|
||||
"defaultSleepTimer": "Timer de Sono Padrão",
|
||||
"minutesUnit": "${minutes} minutos",
|
||||
"rememberTrackSelections": "Lembrar seleção de faixas por série/filme",
|
||||
"rememberTrackSelectionsDescription": "Salvar automaticamente preferências de idioma de áudio e legenda ao trocar faixas durante a reprodução",
|
||||
"rememberTrackSelectionsDescription": "Lembrar escolhas de áudio e legendas por título",
|
||||
"showChapterMarkersOnTimeline": "Mostrar marcadores de capítulos na barra de reprodução",
|
||||
"showChapterMarkersOnTimelineDescription": "Segmentar a barra de reprodução nos limites dos capítulos",
|
||||
"clickVideoTogglesPlayback": "Clicar no vídeo para alternar reprodução/pausa",
|
||||
"clickVideoTogglesPlaybackDescription": "Se ativado, clicar no player reproduz/pausa o vídeo. Caso contrário, clicar mostra/oculta os controles.",
|
||||
"clickVideoTogglesPlaybackDescription": "Clique no vídeo para reproduzir/pausar em vez de mostrar controles.",
|
||||
"videoPlayerControls": "Controles do Player de Vídeo",
|
||||
"keyboardShortcuts": "Atalhos de Teclado",
|
||||
"keyboardShortcutsDescription": "Personalizar atalhos de teclado",
|
||||
"videoPlayerNavigation": "Navegação do Player de Vídeo",
|
||||
"videoPlayerNavigationDescription": "Usar teclas de seta para navegar nos controles do player",
|
||||
"watchTogetherRelay": "Relay do Assistir Juntos",
|
||||
"watchTogetherRelayDescription": "Definir um servidor relay personalizado para Assistir Juntos. Todos os participantes devem usar o mesmo servidor.",
|
||||
"watchTogetherRelayDescription": "Defina um relay personalizado. Todos devem usar o mesmo servidor.",
|
||||
"watchTogetherRelayHint": "https://meu-relay.exemplo.com.br",
|
||||
"crashReporting": "Relatório de Erros",
|
||||
"crashReportingDescription": "Enviar relatórios de erros para ajudar a melhorar o app",
|
||||
@@ -158,10 +167,10 @@
|
||||
"viewLogs": "Ver Logs",
|
||||
"viewLogsDescription": "Ver logs do aplicativo",
|
||||
"clearCache": "Limpar Cache",
|
||||
"clearCacheDescription": "Isso limpará todas as imagens e dados em cache. O app pode demorar mais para carregar conteúdo após limpar o cache.",
|
||||
"clearCacheDescription": "Limpar imagens e dados em cache. O conteúdo pode carregar mais devagar.",
|
||||
"clearCacheSuccess": "Cache limpo com sucesso",
|
||||
"resetSettings": "Redefinir Configurações",
|
||||
"resetSettingsDescription": "Isso redefinirá todas as configurações para os valores padrão. Esta ação não pode ser desfeita.",
|
||||
"resetSettingsDescription": "Restaurar configurações padrão. Não pode ser desfeito.",
|
||||
"resetSettingsSuccess": "Configurações redefinidas com sucesso",
|
||||
"backup": "Backup",
|
||||
"exportSettings": "Exportar Configurações",
|
||||
@@ -182,7 +191,7 @@
|
||||
"updateAvailable": "Atualização Disponível",
|
||||
"checkForUpdates": "Verificar Atualizações",
|
||||
"autoCheckUpdatesOnStartup": "Verificar atualizações automaticamente ao iniciar",
|
||||
"autoCheckUpdatesOnStartupDescription": "Mostrar uma notificação quando uma nova versão estiver disponível ao iniciar",
|
||||
"autoCheckUpdatesOnStartupDescription": "Notificar ao iniciar quando houver atualização disponível",
|
||||
"validationErrorEnterNumber": "Insira um número válido",
|
||||
"validationErrorDuration": "A duração deve ser entre ${min} e ${max} ${unit}",
|
||||
"shortcutAlreadyAssigned": "Atalho já atribuído a ${action}",
|
||||
@@ -192,6 +201,8 @@
|
||||
"autoSkipIntroDescription": "Pular marcadores de intro automaticamente após alguns segundos",
|
||||
"autoSkipCredits": "Pular Créditos Automaticamente",
|
||||
"autoSkipCreditsDescription": "Pular créditos automaticamente e reproduzir próximo episódio",
|
||||
"forceSkipMarkerFallback": "Forçar marcadores alternativos",
|
||||
"forceSkipMarkerFallbackDescription": "Usar padrões de títulos de capítulos mesmo quando Plex tiver marcadores",
|
||||
"autoSkipDelay": "Atraso do Pulo Automático",
|
||||
"autoSkipDelayDescription": "Aguardar ${seconds} segundos antes de pular automaticamente",
|
||||
"introPattern": "Padrão de marcador de intro",
|
||||
@@ -213,8 +224,8 @@
|
||||
"downloadOnWifiOnly": "Baixar apenas no WiFi",
|
||||
"downloadOnWifiOnlyDescription": "Impedir downloads quando em dados móveis",
|
||||
"autoRemoveWatchedDownloads": "Remover downloads assistidos automaticamente",
|
||||
"autoRemoveWatchedDownloadsDescription": "Excluir automaticamente episódios e filmes baixados quando marcados como assistidos",
|
||||
"cellularDownloadBlocked": "Downloads estão desativados em dados móveis. Conecte ao WiFi ou altere a configuração.",
|
||||
"autoRemoveWatchedDownloadsDescription": "Excluir downloads assistidos automaticamente",
|
||||
"cellularDownloadBlocked": "Downloads estão bloqueados na rede móvel. Use WiFi ou altere a configuração.",
|
||||
"maxVolume": "Volume Máximo",
|
||||
"maxVolumeDescription": "Permitir aumento de volume acima de 100% para mídias silenciosas",
|
||||
"maxVolumePercent": "${percent}%",
|
||||
@@ -227,22 +238,20 @@
|
||||
"companionRemoteServer": "Servidor de controlo remoto",
|
||||
"companionRemoteServerDescription": "Permitir que dispositivos móveis na sua rede controlem esta aplicação",
|
||||
"autoPip": "Picture-in-Picture Automático",
|
||||
"autoPipDescription": "Entrar automaticamente em picture-in-picture ao sair do app durante a reprodução",
|
||||
"autoPipDescription": "Entrar em picture-in-picture ao sair durante a reprodução",
|
||||
"matchContentFrameRate": "Corresponder Taxa de Quadros do Conteúdo",
|
||||
"matchContentFrameRateDescription": "Ajustar a taxa de atualização da tela para corresponder ao conteúdo de vídeo, reduzindo tremulação e economizando bateria",
|
||||
"matchContentFrameRateDescription": "Ajustar a taxa de atualização da tela ao conteúdo de vídeo",
|
||||
"matchRefreshRate": "Corresponder Taxa de Atualização",
|
||||
"matchRefreshRateDescription": "Alterar a taxa de atualização da tela para corresponder ao conteúdo de vídeo em tela cheia",
|
||||
"matchRefreshRateDescription": "Ajustar a taxa de atualização da tela em tela cheia",
|
||||
"matchDynamicRange": "Corresponder Faixa Dinâmica",
|
||||
"matchDynamicRangeDescription": "Ativar automaticamente o HDR para conteúdo HDR e voltar ao SDR ao sair do reprodutor",
|
||||
"matchDynamicRangeDescription": "Ativar HDR para conteúdo HDR e depois voltar para SDR",
|
||||
"displaySwitchDelay": "Atraso na Troca de Tela",
|
||||
"tunneledPlayback": "Reprodução Tunelizada",
|
||||
"tunneledPlaybackDescription": "Usar tunelamento de vídeo acelerado por hardware. Desative se você vir uma tela preta com áudio em conteúdo HDR",
|
||||
"tunneledPlaybackDescription": "Usar tunelamento de vídeo. Desative se HDR mostrar vídeo preto.",
|
||||
"requireProfileSelectionOnOpen": "Pedir perfil ao abrir o app",
|
||||
"requireProfileSelectionOnOpenDescription": "Mostrar seleção de perfil toda vez que o app for aberto",
|
||||
"confirmExitOnBack": "Confirmar antes de sair",
|
||||
"confirmExitOnBackDescription": "Mostrar diálogo de confirmação ao pressionar voltar para sair do app",
|
||||
"forceTvMode": "Forçar modo TV",
|
||||
"forceTvModeDescription": "Usar o layout de TV independentemente da detecção automática. Útil em dispositivos Android TV que não reportam o recurso leanback. Reinicia o app ao alterar.",
|
||||
"forceTvModeDescription": "Forçar layout TV. Para dispositivos sem detecção automática. Requer reinício.",
|
||||
"startInFullscreen": "Iniciar em tela cheia",
|
||||
"startInFullscreenDescription": "Abrir o Plezy em modo de tela cheia ao iniciar",
|
||||
"autoHidePerformanceOverlay": "Ocultar overlay de desempenho automaticamente",
|
||||
@@ -251,15 +260,15 @@
|
||||
"showNavBarLabelsDescription": "Exibir rótulos de texto sob os ícones da barra de navegação",
|
||||
"liveTvDefaultFavorites": "Canais favoritos por padrão",
|
||||
"liveTvDefaultFavoritesDescription": "Mostrar apenas canais favoritos ao abrir TV ao vivo",
|
||||
"display": "Display",
|
||||
"homeScreen": "Home Screen",
|
||||
"navigation": "Navigation",
|
||||
"window": "Window",
|
||||
"content": "Content",
|
||||
"player": "Player",
|
||||
"subtitlesAndConfig": "Subtitles & Configuration",
|
||||
"seekAndTiming": "Seek & Timing",
|
||||
"behavior": "Behavior"
|
||||
"display": "Tela",
|
||||
"homeScreen": "Tela inicial",
|
||||
"navigation": "Navegação",
|
||||
"window": "Janela",
|
||||
"content": "Conteúdo",
|
||||
"player": "Reprodutor",
|
||||
"subtitlesAndConfig": "Legendas e configuração",
|
||||
"seekAndTiming": "Busca e tempo",
|
||||
"behavior": "Comportamento"
|
||||
},
|
||||
"search": {
|
||||
"hint": "Buscar filmes, séries, músicas...",
|
||||
@@ -330,7 +339,7 @@
|
||||
"shufflePlay": "Reprodução Aleatória",
|
||||
"fileInfo": "Info do Arquivo",
|
||||
"deleteFromServer": "Excluir do servidor",
|
||||
"confirmDelete": "Isso excluirá permanentemente esta mídia e seus arquivos do seu servidor. Esta ação não pode ser desfeita.",
|
||||
"confirmDelete": "Excluir esta mídia e seus arquivos do servidor?",
|
||||
"deleteMultipleWarning": "Isso inclui todos os episódios e seus arquivos.",
|
||||
"mediaDeletedSuccessfully": "Item de mídia excluído com sucesso",
|
||||
"mediaFailedToDelete": "Falha ao excluir item de mídia",
|
||||
@@ -414,7 +423,7 @@
|
||||
"pipErrors": {
|
||||
"androidVersion": "Requer Android 8.0 ou superior",
|
||||
"iosVersion": "Requer iOS 15.0 ou superior",
|
||||
"permissionDisabled": "A permissão de picture-in-picture está desativada. Ative em Configurações > Apps > Plezy > Picture-in-picture",
|
||||
"permissionDisabled": "Picture-in-picture está desativado. Ative nas configurações do sistema.",
|
||||
"notSupported": "O dispositivo não suporta modo picture-in-picture",
|
||||
"voSwitchFailed": "Falha ao trocar saída de vídeo para picture-in-picture",
|
||||
"failed": "Falha ao iniciar picture-in-picture",
|
||||
@@ -452,7 +461,7 @@
|
||||
"musicNotSupported": "Reprodução de música ainda não é suportada",
|
||||
"noDescriptionAvailable": "Nenhuma descrição disponível",
|
||||
"noProfilesAvailable": "Nenhum perfil disponível",
|
||||
"contactAdminForProfiles": "Contacte o seu administrador Plex para adicionar perfis",
|
||||
"contactAdminForProfiles": "Contate o administrador do servidor para adicionar perfis",
|
||||
"unableToDetermineLibrarySection": "Não é possível determinar a secção da biblioteca para este item",
|
||||
"logsCleared": "Logs limpos",
|
||||
"logsCopied": "Logs copiados para a área de transferência",
|
||||
@@ -474,7 +483,7 @@
|
||||
"failedPlayback": "Falha ao ${action}: ${error}",
|
||||
"switchingToCompatiblePlayer": "Alternando para player compatível...",
|
||||
"serverLimitTitle": "Falha na reprodução",
|
||||
"serverLimitBody": "O servidor retornou um erro (HTTP 500). Isso geralmente significa que o proprietário do servidor definiu um limite de largura de banda ou transcodificação que está rejeitando sua sessão. Não há nada a ser feito pelo cliente — o proprietário do servidor precisa ajustar as configurações.",
|
||||
"serverLimitBody": "Erro do servidor (HTTP 500). Um limite de largura de banda/transcodificação provavelmente rejeitou esta sessão. Peça ao dono para ajustar.",
|
||||
"logsUploaded": "Logs enviados",
|
||||
"logsUploadFailed": "Falha ao enviar logs",
|
||||
"logId": "ID do Log"
|
||||
@@ -513,12 +522,85 @@
|
||||
"dialog": {
|
||||
"confirmAction": "Confirmar Ação"
|
||||
},
|
||||
"profiles": {
|
||||
"addPlezyProfile": "Adicionar perfil Plezy",
|
||||
"switchingProfile": "Mudando perfil…",
|
||||
"deleteThisProfileTitle": "Excluir este perfil?",
|
||||
"deleteThisProfileMessage": "Remover ${displayName}. As conexões não serão afetadas.",
|
||||
"active": "Ativo",
|
||||
"manage": "Gerenciar",
|
||||
"delete": "Excluir",
|
||||
"signOut": "Sair",
|
||||
"signOutPlexTitle": "Sair do Plex?",
|
||||
"signOutPlexMessage": "Remover ${displayName} e todos os usuários Plex Home? Você pode entrar novamente quando quiser.",
|
||||
"signedOutPlex": "Saiu do Plex.",
|
||||
"signOutFailed": "Falha ao sair.",
|
||||
"sectionTitle": "Perfis",
|
||||
"summarySingle": "Adicione perfis para mesclar usuários gerenciados e identidades locais",
|
||||
"summaryMultipleWithActive": "${count} perfis · ativo: ${activeName}",
|
||||
"summaryMultiple": "${count} perfis",
|
||||
"removeConnectionTitle": "Remover conexão?",
|
||||
"removeConnectionMessage": "Remover acesso de ${displayName} a ${connectionLabel}. Outros perfis mantêm o acesso.",
|
||||
"deleteProfileTitle": "Excluir perfil?",
|
||||
"deleteProfileMessage": "Remover ${displayName} e suas conexões. Servidores continuam disponíveis.",
|
||||
"profileNameLabel": "Nome do perfil",
|
||||
"pinProtectionLabel": "Proteção por PIN",
|
||||
"pinManagedByPlex": "PIN gerenciado pelo Plex. Edite em plex.tv.",
|
||||
"noPinSetEditOnPlex": "Nenhum PIN definido. Para exigir um, edite o usuário Home em plex.tv.",
|
||||
"setPin": "Definir PIN",
|
||||
"setPinTitle": "Definir PIN",
|
||||
"confirmPinTitle": "Confirmar PIN",
|
||||
"pinSet": "PIN definido",
|
||||
"changePin": "Alterar",
|
||||
"removePin": "Remover",
|
||||
"connectionsLabel": "Conexões",
|
||||
"add": "Adicionar",
|
||||
"deleteProfileButton": "Excluir perfil",
|
||||
"noConnectionsHint": "Sem conexões — adicione uma para usar este perfil.",
|
||||
"noConnections": "Sem conexões",
|
||||
"plexHomeAccount": "Conta Plex Home",
|
||||
"connectionDefault": "Padrão",
|
||||
"connectionAs": "como ${displayName}",
|
||||
"makeDefault": "Definir como padrão",
|
||||
"removeConnection": "Remover",
|
||||
"profileRenamed": "Perfil renomeado.",
|
||||
"borrowAddTo": "Adicionar a ${displayName}",
|
||||
"borrowExplain": "Use a conexão de outro perfil. Perfis protegidos por PIN exigem PIN.",
|
||||
"borrowEmpty": "Nada para emprestar ainda.",
|
||||
"borrowEmptySubtitle": "Conecte Plex ou Jellyfin a outro perfil primeiro.",
|
||||
"borrowFromProfile": "De ${displayName}",
|
||||
"borrowConnectionBorrowed": "Conexão tomada emprestada.",
|
||||
"borrowFailed": "Não foi possível tomar a conexão emprestada.",
|
||||
"incorrectPin": "PIN incorreto.",
|
||||
"sourceProfileMissingParentAccount": "O perfil de origem não tem a conta principal.",
|
||||
"failedToVerifyPin": "Não foi possível verificar o PIN.",
|
||||
"newProfile": "Novo perfil",
|
||||
"profileNameHint": "ex.: Visitantes, Crianças, Sala de família",
|
||||
"pinProtectionOptional": "Proteção por PIN (opcional)",
|
||||
"pinExplain": "PIN de 4 dígitos necessário para trocar perfis.",
|
||||
"continueButton": "Continuar",
|
||||
"pinsDontMatch": "Os PINs não correspondem"
|
||||
},
|
||||
"connections": {
|
||||
"sectionTitle": "Conexões",
|
||||
"addConnection": "Adicionar conexão",
|
||||
"addConnectionSubtitleNoProfile": "Faça login com Plex ou conecte um servidor Jellyfin",
|
||||
"addConnectionSubtitleScoped": "Adicionar a ${displayName}: Plex, Jellyfin ou outra conexão de perfil",
|
||||
"sessionExpiredOne": "Sessão expirada para ${name}",
|
||||
"sessionExpiredMany": "Sessão expirada para ${count} servidores",
|
||||
"signInAgain": "Entrar novamente"
|
||||
},
|
||||
"discover": {
|
||||
"title": "Descobrir",
|
||||
"switchProfile": "Trocar Perfil",
|
||||
"noContentAvailable": "Nenhum conteúdo disponível",
|
||||
"addMediaToLibraries": "Adicione mídias às suas bibliotecas",
|
||||
"continueWatching": "Continuar Assistindo",
|
||||
"continueWatchingIn": "Continuar assistindo em ${library}",
|
||||
"nextUp": "A seguir",
|
||||
"nextUpIn": "A seguir em ${library}",
|
||||
"recentlyAdded": "Adicionados recentemente",
|
||||
"recentlyAddedIn": "Adicionados recentemente em ${library}",
|
||||
"playEpisode": "S${season}E${episode}",
|
||||
"overview": "Sinopse",
|
||||
"cast": "Elenco",
|
||||
@@ -532,7 +614,7 @@
|
||||
"errors": {
|
||||
"searchFailed": "Falha na busca: ${error}",
|
||||
"connectionTimeout": "Tempo de conexão esgotado ao carregar ${context}",
|
||||
"connectionFailed": "Não foi possível conectar ao servidor Plex",
|
||||
"connectionFailed": "Não foi possível conectar ao servidor de mídia",
|
||||
"failedToLoad": "Falha ao carregar ${context}: ${error}",
|
||||
"noClientAvailable": "Nenhum cliente disponível",
|
||||
"authenticationFailed": "Falha na autenticação: ${error}",
|
||||
@@ -540,7 +622,9 @@
|
||||
"pleaseEnterToken": "Insira um token",
|
||||
"invalidToken": "Token inválido",
|
||||
"failedToVerifyToken": "Falha ao verificar token: ${error}",
|
||||
"failedToSwitchProfile": "Falha ao trocar para ${displayName}"
|
||||
"failedToSwitchProfile": "Falha ao trocar para ${displayName}",
|
||||
"failedToDeleteProfile": "Falha ao excluir ${displayName}",
|
||||
"failedToRate": "Não foi possível atualizar a classificação"
|
||||
},
|
||||
"libraries": {
|
||||
"title": "Bibliotecas",
|
||||
@@ -595,17 +679,34 @@
|
||||
"seasons": "Temporadas",
|
||||
"episodes": "Episódios",
|
||||
"folders": "Pastas"
|
||||
},
|
||||
"filterCategories": {
|
||||
"genre": "Gênero",
|
||||
"year": "Ano",
|
||||
"contentRating": "Classificação",
|
||||
"tag": "Tag"
|
||||
},
|
||||
"sortLabels": {
|
||||
"title": "Título",
|
||||
"dateAdded": "Data de adição",
|
||||
"releaseDate": "Data de lançamento",
|
||||
"rating": "Avaliação",
|
||||
"lastPlayed": "Última reprodução",
|
||||
"playCount": "Reproduções",
|
||||
"random": "Aleatório",
|
||||
"dateShared": "Data de compartilhamento",
|
||||
"latestEpisodeAirDate": "Última data de exibição do episódio"
|
||||
}
|
||||
},
|
||||
"about": {
|
||||
"title": "Sobre",
|
||||
"openSourceLicenses": "Licenças Open Source",
|
||||
"versionLabel": "Versão ${version}",
|
||||
"appDescription": "Um belo cliente Plex para Flutter",
|
||||
"appDescription": "Um belo cliente Plex e Jellyfin para Flutter",
|
||||
"viewLicensesDescription": "Ver licenças de bibliotecas de terceiros"
|
||||
},
|
||||
"serverSelection": {
|
||||
"allServerConnectionsFailed": "Falha ao conectar a qualquer servidor. Verifique sua rede e tente novamente.",
|
||||
"allServerConnectionsFailed": "Não foi possível conectar a nenhum servidor. Verifique sua rede.",
|
||||
"noServersFoundForAccount": "Nenhum servidor encontrado para ${username} (${email})",
|
||||
"failedToLoadServers": "Falha ao carregar servidores: ${error}"
|
||||
},
|
||||
@@ -642,6 +743,7 @@
|
||||
"reloadGuide": "Recarregar Guia",
|
||||
"now": "Agora",
|
||||
"today": "Hoje",
|
||||
"tomorrow": "Amanhã",
|
||||
"midnight": "Meia-noite",
|
||||
"overnight": "Madrugada",
|
||||
"morning": "Manhã",
|
||||
@@ -655,7 +757,41 @@
|
||||
"joinSession": "Entrar na sessão em andamento",
|
||||
"watchFromStart": "Assistir do início (${minutes} min atrás)",
|
||||
"watchLive": "Assistir ao vivo",
|
||||
"goToLive": "Ir para o ao vivo"
|
||||
"goToLive": "Ir para o ao vivo",
|
||||
"record": "Gravar",
|
||||
"recordEpisode": "Gravar episódio",
|
||||
"recordSeries": "Gravar série",
|
||||
"recordOptions": "Opções de gravação",
|
||||
"recordings": "Gravações",
|
||||
"scheduledRecordings": "Agendadas",
|
||||
"recordingRules": "Regras de gravação",
|
||||
"noScheduledRecordings": "Sem gravações agendadas",
|
||||
"noRecordingRules": "Sem regras de gravação",
|
||||
"manageRecording": "Gerenciar gravação",
|
||||
"cancelRecording": "Cancelar gravação",
|
||||
"cancelRecordingTitle": "Cancelar esta gravação?",
|
||||
"cancelRecordingMessage": "${title} não será mais gravado.",
|
||||
"deleteRule": "Excluir regra",
|
||||
"deleteRuleTitle": "Excluir regra de gravação?",
|
||||
"deleteRuleMessage": "Episódios futuros de ${title} não serão gravados.",
|
||||
"recordingScheduled": "Gravação agendada",
|
||||
"alreadyScheduled": "Este programa já está agendado",
|
||||
"dvrAdminRequired": "As configurações de DVR exigem uma conta de administrador",
|
||||
"recordingFailed": "Não foi possível agendar a gravação",
|
||||
"recordingTargetMissing": "Não foi possível determinar a biblioteca de gravação",
|
||||
"recordNotAvailable": "Gravação indisponível para este programa",
|
||||
"recordingCancelled": "Gravação cancelada",
|
||||
"recordingRuleDeleted": "Regra de gravação excluída",
|
||||
"processRecordingRules": "Reavaliar regras",
|
||||
"loadingRecordings": "Carregando gravações...",
|
||||
"recordingInProgress": "Gravando agora",
|
||||
"recordingsCount": "${count} agendadas",
|
||||
"editRule": "Editar regra",
|
||||
"editRuleAction": "Editar",
|
||||
"recordingRuleUpdated": "Regra de gravação atualizada",
|
||||
"guideReloadRequested": "Atualização da guia solicitada",
|
||||
"rulesProcessRequested": "Reavaliação de regras solicitada",
|
||||
"recordShow": "Gravar programa"
|
||||
},
|
||||
"collections": {
|
||||
"title": "Coleções",
|
||||
@@ -663,7 +799,7 @@
|
||||
"empty": "A coleção está vazia",
|
||||
"unknownLibrarySection": "Não é possível excluir: Seção de biblioteca desconhecida",
|
||||
"deleteCollection": "Excluir Coleção",
|
||||
"deleteConfirm": "Tem certeza que deseja excluir \"${title}\"? Esta ação não pode ser desfeita.",
|
||||
"deleteConfirm": "Excluir \"${title}\"? Não pode ser desfeito.",
|
||||
"deleted": "Coleção excluída",
|
||||
"deleteFailed": "Falha ao excluir coleção",
|
||||
"deleteFailedWithError": "Falha ao excluir coleção: ${error}",
|
||||
@@ -747,11 +883,11 @@
|
||||
"pasteFromClipboard": "Colar da área de transferência",
|
||||
"pleaseEnterCode": "Insira um código de sessão",
|
||||
"codeMustBe5Chars": "O código da sessão deve ter 5 caracteres",
|
||||
"joinInstructions": "Insira o código da sessão compartilhado pelo anfitrião para entrar na sessão.",
|
||||
"joinInstructions": "Insira o código de sessão do anfitrião para entrar.",
|
||||
"failedToCreate": "Falha ao criar sessão",
|
||||
"failedToJoin": "Falha ao entrar na sessão",
|
||||
"sessionCodeCopied": "Código da sessão copiado para a área de transferência",
|
||||
"relayUnreachable": "O servidor de retransmissão está inacessível. Isso pode ser causado pelo seu provedor bloqueando a conexão. Você ainda pode tentar, mas o Assistir Juntos pode não funcionar.",
|
||||
"relayUnreachable": "Servidor relay inacessível. Bloqueio do ISP pode impedir Watch Together.",
|
||||
"reconnectingToHost": "Reconectando ao anfitrião...",
|
||||
"currentPlayback": "Reprodução Atual",
|
||||
"joinCurrentPlayback": "Entrar na Reprodução Atual",
|
||||
@@ -766,7 +902,9 @@
|
||||
"waitingForParticipants": "Aguardando outros carregarem...",
|
||||
"recentRooms": "Salas recentes",
|
||||
"renameRoom": "Renomear sala",
|
||||
"removeRoom": "Remover"
|
||||
"removeRoom": "Remover",
|
||||
"guestSwitchUnavailable": "Não foi possível trocar — servidor indisponível para sincronização",
|
||||
"guestSwitchFailed": "Não foi possível trocar — conteúdo não encontrado neste servidor"
|
||||
},
|
||||
"downloads": {
|
||||
"title": "Downloads",
|
||||
@@ -779,10 +917,10 @@
|
||||
"deleteDownload": "Excluir download",
|
||||
"retryDownload": "Tentar download novamente",
|
||||
"downloadQueued": "Download na fila",
|
||||
"serverErrorBitrate": "Erro do servidor — o arquivo pode exceder o limite de bitrate de streaming remoto",
|
||||
"serverErrorBitrate": "Erro do servidor: o arquivo pode exceder o limite remoto de bitrate",
|
||||
"episodesQueued": "${count} episódios na fila de download",
|
||||
"downloadDeleted": "Download excluído",
|
||||
"deleteConfirm": "Tem certeza que deseja excluir \"${title}\"? Isso removerá o arquivo baixado do seu dispositivo.",
|
||||
"deleteConfirm": "Excluir \"${title}\" deste dispositivo?",
|
||||
"deletingWithProgress": "Excluindo ${title}... (${current} de ${total})",
|
||||
"deleting": "Excluindo...",
|
||||
"queuedTooltip": "Na fila",
|
||||
@@ -817,6 +955,12 @@
|
||||
"editSyncFilter": "Filtro de sincronização",
|
||||
"syncAllItems": "Sincronizando todos os itens",
|
||||
"syncUnwatchedItems": "Sincronizando itens não vistos",
|
||||
"syncRuleServerContext": "Servidor: ${server} • ${status}",
|
||||
"syncRuleAvailable": "Disponível",
|
||||
"syncRuleOffline": "Offline",
|
||||
"syncRuleSignInRequired": "Início de sessão necessário",
|
||||
"syncRuleNotAvailableForProfile": "Indisponível para o perfil atual",
|
||||
"syncRuleUnknownServer": "Servidor desconhecido",
|
||||
"syncRuleListCreated": "Regra de sincronização criada"
|
||||
},
|
||||
"shaders": {
|
||||
@@ -846,7 +990,7 @@
|
||||
"connected": "Conectado",
|
||||
"serverRunning": "Servidor remoto ativo",
|
||||
"serverStopped": "Servidor remoto parado",
|
||||
"serverRunningDescription": "Dispositivos móveis na sua rede podem descobrir e conectar-se a esta aplicação",
|
||||
"serverRunningDescription": "Dispositivos móveis na sua rede podem se conectar a este app",
|
||||
"serverStoppedDescription": "Inicie o servidor para permitir que dispositivos móveis se conectem",
|
||||
"usePhoneToControl": "Use o seu dispositivo móvel para controlar esta aplicação",
|
||||
"startServer": "Iniciar servidor",
|
||||
@@ -854,20 +998,20 @@
|
||||
"minimize": "Minimizar"
|
||||
},
|
||||
"pairing": {
|
||||
"discoveryDescription": "Dispositivos na sua rede a executar Plezy com a mesma conta Plex aparecerão automaticamente",
|
||||
"discoveryDescription": "Dispositivos Plezy com a mesma conta Plex aparecem aqui",
|
||||
"hostAddressHint": "192.168.1.100:48632",
|
||||
"connecting": "A conectar...",
|
||||
"searchingForDevices": "A procurar dispositivos...",
|
||||
"noDevicesFound": "Nenhum dispositivo encontrado na sua rede",
|
||||
"noDevicesHint": "Certifique-se de que o Plezy está aberto no seu desktop e que ambos os dispositivos estão na mesma rede WiFi",
|
||||
"noDevicesHint": "Abra Plezy no desktop e use o mesmo WiFi",
|
||||
"availableDevices": "Dispositivos disponíveis",
|
||||
"manualConnection": "Conexão manual",
|
||||
"cryptoInitFailed": "Não foi possível inicializar a conexão segura. Certifique-se de que está conectado a uma conta Plex.",
|
||||
"cryptoInitFailed": "Não foi possível iniciar a conexão segura. Entre no Plex primeiro.",
|
||||
"validationHostRequired": "Introduza o endereço do host",
|
||||
"validationHostFormat": "O formato deve ser IP:porta (ex. 192.168.1.100:48632)",
|
||||
"connectionTimedOut": "Tempo de conexão esgotado. Certifique-se de que ambos os dispositivos estão na mesma rede.",
|
||||
"sessionNotFound": "Dispositivo não encontrado. Certifique-se de que o Plezy está em execução no host.",
|
||||
"authFailed": "Autenticação falhou. Certifique-se de que ambos os dispositivos usam a mesma conta Plex.",
|
||||
"connectionTimedOut": "Conexão expirou. Use a mesma rede nos dois dispositivos.",
|
||||
"sessionNotFound": "Dispositivo não encontrado. Verifique se Plezy está rodando no host.",
|
||||
"authFailed": "Falha na autenticação. Ambos os dispositivos precisam da mesma conta Plex.",
|
||||
"failedToConnect": "Falha ao conectar: ${error}"
|
||||
},
|
||||
"remote": {
|
||||
@@ -915,7 +1059,7 @@
|
||||
"externalPlayer": {
|
||||
"title": "Player Externo",
|
||||
"useExternalPlayer": "Usar Player Externo",
|
||||
"useExternalPlayerDescription": "Abrir vídeos em um app externo em vez do player integrado",
|
||||
"useExternalPlayerDescription": "Abrir vídeos em outro app",
|
||||
"selectPlayer": "Selecionar Player",
|
||||
"customPlayers": "Players Personalizados",
|
||||
"systemDefault": "Padrão do Sistema",
|
||||
@@ -1009,7 +1153,7 @@
|
||||
"match": "Associar...",
|
||||
"fixMatch": "Corrigir correspondência...",
|
||||
"unmatch": "Desassociar",
|
||||
"unmatchConfirm": "Limpar a correspondência atual deste item? O Plex vai tratá-lo como não correspondido até que o associe novamente.",
|
||||
"unmatchConfirm": "Limpar esta correspondência? Plex tratará como sem correspondência até refazer.",
|
||||
"unmatchSuccess": "Item desassociado",
|
||||
"unmatchFailed": "Falha ao desassociar item",
|
||||
"matchApplied": "Correspondência aplicada",
|
||||
@@ -1029,7 +1173,7 @@
|
||||
"connected": "Conectado",
|
||||
"connectedAs": "Conectado como @${username}",
|
||||
"disconnectConfirm": "Desconectar conta do Trakt?",
|
||||
"disconnectConfirmBody": "O Plezy deixará de enviar eventos de reprodução ao Trakt. Você pode reconectar a qualquer momento.",
|
||||
"disconnectConfirmBody": "Plezy deixará de enviar eventos ao Trakt. Você pode reconectar quando quiser.",
|
||||
"scrobble": "Scrobbling em tempo real",
|
||||
"scrobbleDescription": "Envia eventos de reprodução, pausa e parada ao Trakt durante a exibição.",
|
||||
"watchedSync": "Sincronizar status de assistido",
|
||||
@@ -1037,13 +1181,13 @@
|
||||
},
|
||||
"trackers": {
|
||||
"title": "Rastreadores",
|
||||
"hubSubtitle": "Mantenha seu progresso sincronizado com Trakt e outros serviços.",
|
||||
"hubSubtitle": "Sincronize o progresso assistido com Trakt e outros serviços.",
|
||||
"notConnected": "Não conectado",
|
||||
"connectedAs": "Conectado como @${username}",
|
||||
"scrobble": "Registrar progresso automaticamente",
|
||||
"scrobbleDescription": "Atualiza sua lista quando você termina um episódio ou filme.",
|
||||
"disconnectConfirm": "Desconectar ${service}?",
|
||||
"disconnectConfirmBody": "Plezy deixará de atualizar sua lista do ${service}. Você pode reconectar a qualquer momento.",
|
||||
"disconnectConfirmBody": "Plezy deixará de atualizar ${service}. Reconecte quando quiser.",
|
||||
"connectFailed": "Não foi possível conectar ao ${service}. Tente novamente.",
|
||||
"services": {
|
||||
"mal": "MyAnimeList",
|
||||
@@ -1059,7 +1203,7 @@
|
||||
},
|
||||
"oauthProxy": {
|
||||
"title": "Entrar no ${service}",
|
||||
"body": "Escaneie este código QR com o celular, ou abra o URL abaixo em qualquer dispositivo com navegador.",
|
||||
"body": "Escaneie este código QR ou abra a URL em qualquer dispositivo.",
|
||||
"openToSignIn": "Abrir ${service} para entrar",
|
||||
"urlCopied": "URL copiado"
|
||||
},
|
||||
@@ -1077,5 +1221,39 @@
|
||||
"libraries": "Bibliotecas",
|
||||
"noLibraries": "Nenhuma biblioteca disponível"
|
||||
}
|
||||
},
|
||||
"addServer": {
|
||||
"addJellyfinTitle": "Adicionar servidor Jellyfin",
|
||||
"jellyfinUrlIntro": "Insira a URL do servidor, ex. `https://jellyfin.example.com`.",
|
||||
"serverUrl": "URL do servidor",
|
||||
"findServer": "Encontrar servidor",
|
||||
"username": "Usuário",
|
||||
"password": "Senha",
|
||||
"signIn": "Entrar",
|
||||
"change": "Alterar",
|
||||
"required": "Obrigatório",
|
||||
"couldNotReachServer": "Não foi possível conectar ao servidor: ${error}",
|
||||
"signInFailed": "Falha ao entrar: ${error}",
|
||||
"quickConnectFailed": "Quick Connect falhou: ${error}",
|
||||
"addPlexTitle": "Entrar com Plex",
|
||||
"plexAuthIntro": "Entre com um navegador ou código QR.",
|
||||
"plexQRPrompt": "Escaneie este código QR para entrar.",
|
||||
"waitingForPlexConfirmation": "Aguardando o plex.tv confirmar o login…",
|
||||
"pinExpired": "O PIN expirou antes do login. Tente novamente.",
|
||||
"duplicatePlexAccount": "Você já entrou no Plex. Saia para trocar de conta.",
|
||||
"failedToRegisterAccount": "Falha ao registrar a conta: ${error}",
|
||||
"enterJellyfinUrlError": "Insira a URL do seu servidor Jellyfin",
|
||||
"addConnectionTitle": "Adicionar conexão",
|
||||
"addConnectionTitleScoped": "Adicionar a ${name}",
|
||||
"addConnectionIntroGlobal": "Adicione outro servidor de mídia. Plex e Jellyfin aparecem juntos no Início.",
|
||||
"addConnectionIntroScoped": "Adicione um novo servidor ou pegue um emprestado de outro perfil.",
|
||||
"signInWithPlexCard": "Entrar com Plex",
|
||||
"signInWithPlexCardSubtitle": "Autorize este dispositivo. Servidores compartilhados são adicionados.",
|
||||
"signInWithPlexCardSubtitleScoped": "Autorize uma conta Plex. Usuários Home viram perfis.",
|
||||
"connectToJellyfinCard": "Conectar ao Jellyfin",
|
||||
"connectToJellyfinCardSubtitle": "Insira URL do servidor, usuário e senha.",
|
||||
"connectToJellyfinCardSubtitleScoped": "Entre em um servidor Jellyfin. Vinculado a ${name}.",
|
||||
"borrowFromAnotherProfile": "Pegar emprestado de outro perfil",
|
||||
"borrowFromAnotherProfileSubtitle": "Reutilize a conexão de outro perfil. Perfis protegidos por PIN exigem PIN."
|
||||
}
|
||||
}
|
||||
|
||||
+243
-65
@@ -3,13 +3,22 @@
|
||||
"title": "Plezy"
|
||||
},
|
||||
"auth": {
|
||||
"signIn": "Войти",
|
||||
"signInWithPlex": "Войти через Plex",
|
||||
"showQRCode": "Показать QR-код",
|
||||
"authenticate": "Аутентификация",
|
||||
"authenticationTimeout": "Время аутентификации истекло. Попробуйте снова.",
|
||||
"scanQRToSignIn": "Отсканируйте QR-код для входа",
|
||||
"waitingForAuth": "Ожидание аутентификации...\nЗавершите вход в браузере.",
|
||||
"useBrowser": "Использовать браузер"
|
||||
"waitingForAuth": "Ожидание аутентификации...\nВойдите в браузере.",
|
||||
"useBrowser": "Использовать браузер",
|
||||
"or": "или",
|
||||
"connectToJellyfin": "Подключиться к Jellyfin",
|
||||
"useQuickConnect": "Использовать Quick Connect",
|
||||
"quickConnectCode": "Код Quick Connect",
|
||||
"quickConnectInstructions": "Откройте Quick Connect в Jellyfin и введите этот код.",
|
||||
"quickConnectWaiting": "Ожидание подтверждения…",
|
||||
"quickConnectCancel": "Отмена",
|
||||
"quickConnectExpired": "Срок Quick Connect истек. Попробуйте снова."
|
||||
},
|
||||
"common": {
|
||||
"cancel": "Отмена",
|
||||
@@ -43,9 +52,6 @@
|
||||
"mute": "Без звука",
|
||||
"ok": "OK",
|
||||
"reconnect": "Переподключить",
|
||||
"exitConfirmTitle": "Выйти из приложения?",
|
||||
"exitConfirmMessage": "Вы уверены, что хотите выйти?",
|
||||
"dontAskAgain": "Больше не спрашивать",
|
||||
"exit": "Выход",
|
||||
"viewAll": "Показать все",
|
||||
"checkingNetwork": "Проверка сети...",
|
||||
@@ -55,7 +61,8 @@
|
||||
"startingOfflineMode": "Запуск автономного режима...",
|
||||
"loading": "Загрузка...",
|
||||
"fullscreen": "Полноэкранный режим",
|
||||
"exitFullscreen": "Выйти из полноэкранного режима"
|
||||
"exitFullscreen": "Выйти из полноэкранного режима",
|
||||
"pressBackAgainToExit": "Нажмите ещё раз для выхода"
|
||||
},
|
||||
"screens": {
|
||||
"licenses": "Лицензии",
|
||||
@@ -104,22 +111,22 @@
|
||||
"gridView": "Сетка",
|
||||
"listView": "Список",
|
||||
"showHeroSection": "Показать раздел избранного",
|
||||
"useGlobalHubs": "Использовать макет Plex Home",
|
||||
"useGlobalHubsDescription": "Показывать хабы главной страницы как в официальном клиенте Plex. При выключении показывает рекомендации по библиотекам.",
|
||||
"useGlobalHubs": "Использовать макет главной",
|
||||
"useGlobalHubsDescription": "Показывать единые разделы главной. Иначе использовать рекомендации библиотек.",
|
||||
"showServerNameOnHubs": "Показывать имя сервера в хабах",
|
||||
"showServerNameOnHubsDescription": "Всегда показывать имя сервера в заголовках хабов. При выключении показывает только для дублирующихся имён.",
|
||||
"showServerNameOnHubsDescription": "Всегда показывать имена серверов в заголовках разделов.",
|
||||
"groupLibrariesByServer": "Группировать библиотеки по серверам",
|
||||
"groupLibrariesByServerDescription": "Показывать заголовок для каждого сервера Plex на боковой панели при подключении к нескольким серверам.",
|
||||
"groupLibrariesByServerDescription": "Группировать библиотеки боковой панели по медиасерверам.",
|
||||
"alwaysKeepSidebarOpen": "Всегда держать боковую панель открытой",
|
||||
"alwaysKeepSidebarOpenDescription": "Боковая панель остаётся развёрнутой, область контента подстраивается",
|
||||
"showUnwatchedCount": "Показывать количество непросмотренных",
|
||||
"showUnwatchedCountDescription": "Отображать количество непросмотренных эпизодов для сериалов и сезонов",
|
||||
"showEpisodeNumberOnCards": "Показывать номер эпизода на карточках",
|
||||
"showEpisodeNumberOnCardsDescription": "Отображать номер эпизода рядом с сезоном (напр. S2 E3) на карточках эпизодов",
|
||||
"showEpisodeNumberOnCardsDescription": "Показывать номер сезона и серии на карточках серий",
|
||||
"showSeasonPostersOnTabs": "Показывать постеры сезонов на вкладках",
|
||||
"showSeasonPostersOnTabsDescription": "Отображать постер сезона над каждой вкладкой сезона на странице сведений сериала",
|
||||
"showSeasonPostersOnTabsDescription": "Показывать постер каждого сезона над его вкладкой",
|
||||
"hideSpoilers": "Скрыть спойлеры непросмотренных эпизодов",
|
||||
"hideSpoilersDescription": "Размывать миниатюры и скрывать описания эпизодов, которые вы ещё не смотрели",
|
||||
"hideSpoilersDescription": "Размывать миниатюры и описания непросмотренных серий",
|
||||
"playerBackend": "Бэкенд плеера",
|
||||
"exoPlayer": "ExoPlayer (Рекомендуется)",
|
||||
"mpv": "mpv",
|
||||
@@ -128,7 +135,7 @@
|
||||
"bufferSize": "Размер буфера",
|
||||
"bufferSizeMB": "${size}МБ",
|
||||
"bufferSizeAuto": "Авто (Рекомендуется)",
|
||||
"bufferSizeWarning": "У вашего устройства ${heap}МБ памяти. Буфер ${size}МБ может вызвать проблемы с воспроизведением.",
|
||||
"bufferSizeWarning": "Доступно памяти: ${heap}MB. Буфер ${size}MB может повлиять на воспроизведение.",
|
||||
"defaultQualityTitle": "Качество по умолчанию",
|
||||
"defaultQualityDescription": "Используется при запуске воспроизведения. Более низкие значения снижают пропускную способность.",
|
||||
"subtitleStyling": "Стиль субтитров",
|
||||
@@ -140,16 +147,18 @@
|
||||
"defaultSleepTimer": "Таймер сна по умолчанию",
|
||||
"minutesUnit": "${minutes} минут",
|
||||
"rememberTrackSelections": "Запоминать выбор дорожек для каждого сериала/фильма",
|
||||
"rememberTrackSelectionsDescription": "Автоматически сохранять предпочтения языка аудио и субтитров при переключении дорожек во время воспроизведения",
|
||||
"rememberTrackSelectionsDescription": "Запоминать выбор аудио и субтитров для тайтла",
|
||||
"showChapterMarkersOnTimeline": "Показывать маркеры глав на шкале перемотки",
|
||||
"showChapterMarkersOnTimelineDescription": "Разделять шкалу перемотки по границам глав",
|
||||
"clickVideoTogglesPlayback": "Клик по видео для переключения воспроизведения/паузы",
|
||||
"clickVideoTogglesPlaybackDescription": "Если включено, клик по видеоплееру воспроизводит/ставит на паузу. В противном случае показывает/скрывает элементы управления.",
|
||||
"clickVideoTogglesPlaybackDescription": "Клик по видео запускает/ставит на паузу вместо показа управления.",
|
||||
"videoPlayerControls": "Элементы управления плеером",
|
||||
"keyboardShortcuts": "Горячие клавиши",
|
||||
"keyboardShortcutsDescription": "Настроить горячие клавиши",
|
||||
"videoPlayerNavigation": "Навигация видеоплеера",
|
||||
"videoPlayerNavigationDescription": "Использовать клавиши стрелок для навигации по элементам управления плеером",
|
||||
"watchTogetherRelay": "Relay совместного просмотра",
|
||||
"watchTogetherRelayDescription": "Указать пользовательский relay-сервер для совместного просмотра. Все участники должны использовать один и тот же сервер.",
|
||||
"watchTogetherRelayDescription": "Задайте свой relay. Все должны использовать один сервер.",
|
||||
"watchTogetherRelayHint": "https://my-relay.example.com",
|
||||
"crashReporting": "Отчёты об ошибках",
|
||||
"crashReportingDescription": "Отправлять отчёты об ошибках для улучшения приложения",
|
||||
@@ -158,10 +167,10 @@
|
||||
"viewLogs": "Просмотр логов",
|
||||
"viewLogsDescription": "Просмотр логов приложения",
|
||||
"clearCache": "Очистить кэш",
|
||||
"clearCacheDescription": "Это удалит все кэшированные изображения и данные. После очистки кэша приложение может загружать контент дольше.",
|
||||
"clearCacheDescription": "Очистить кэш изображений и данных. Контент может загружаться медленнее.",
|
||||
"clearCacheSuccess": "Кэш успешно очищен",
|
||||
"resetSettings": "Сбросить настройки",
|
||||
"resetSettingsDescription": "Все настройки будут сброшены до значений по умолчанию. Это действие нельзя отменить.",
|
||||
"resetSettingsDescription": "Восстановить настройки по умолчанию. Это нельзя отменить.",
|
||||
"resetSettingsSuccess": "Настройки успешно сброшены",
|
||||
"backup": "Резервная копия",
|
||||
"exportSettings": "Экспорт настроек",
|
||||
@@ -182,7 +191,7 @@
|
||||
"updateAvailable": "Доступно обновление",
|
||||
"checkForUpdates": "Проверить обновления",
|
||||
"autoCheckUpdatesOnStartup": "Автоматически проверять обновления при запуске",
|
||||
"autoCheckUpdatesOnStartupDescription": "Показывать уведомление при запуске, если доступна новая версия",
|
||||
"autoCheckUpdatesOnStartupDescription": "Уведомлять о доступном обновлении при запуске",
|
||||
"validationErrorEnterNumber": "Введите корректное число",
|
||||
"validationErrorDuration": "Длительность должна быть от ${min} до ${max} ${unit}",
|
||||
"shortcutAlreadyAssigned": "Клавиша уже назначена для ${action}",
|
||||
@@ -192,6 +201,8 @@
|
||||
"autoSkipIntroDescription": "Автоматически пропускать маркеры вступления через несколько секунд",
|
||||
"autoSkipCredits": "Автопропуск титров",
|
||||
"autoSkipCreditsDescription": "Автоматически пропускать титры и воспроизводить следующий эпизод",
|
||||
"forceSkipMarkerFallback": "Принудительные резервные маркеры",
|
||||
"forceSkipMarkerFallbackDescription": "Использовать шаблоны названий глав, даже если в Plex есть маркеры",
|
||||
"autoSkipDelay": "Задержка автопропуска",
|
||||
"autoSkipDelayDescription": "Подождать ${seconds} секунд перед автопропуском",
|
||||
"introPattern": "Шаблон маркера вступления",
|
||||
@@ -213,8 +224,8 @@
|
||||
"downloadOnWifiOnly": "Загружать только по WiFi",
|
||||
"downloadOnWifiOnlyDescription": "Запретить загрузку по мобильным данным",
|
||||
"autoRemoveWatchedDownloads": "Автоудаление просмотренных загрузок",
|
||||
"autoRemoveWatchedDownloadsDescription": "Автоматически удалять загруженные эпизоды и фильмы после просмотра",
|
||||
"cellularDownloadBlocked": "Загрузка по мобильным данным отключена. Подключитесь к WiFi или измените настройку.",
|
||||
"autoRemoveWatchedDownloadsDescription": "Автоматически удалять просмотренные загрузки",
|
||||
"cellularDownloadBlocked": "Загрузки через мобильную сеть заблокированы. Используйте WiFi или измените настройку.",
|
||||
"maxVolume": "Максимальная громкость",
|
||||
"maxVolumeDescription": "Разрешить усиление громкости выше 100% для тихих медиа",
|
||||
"maxVolumePercent": "${percent}%",
|
||||
@@ -227,22 +238,20 @@
|
||||
"companionRemoteServer": "Сервер удалённого управления",
|
||||
"companionRemoteServerDescription": "Разрешить мобильным устройствам в сети управлять этим приложением",
|
||||
"autoPip": "Автоматический «картинка в картинке»",
|
||||
"autoPipDescription": "Автоматически переходить в режим «картинка в картинке» при выходе из приложения во время воспроизведения",
|
||||
"autoPipDescription": "Включать картинку-в-картинке при выходе во время воспроизведения",
|
||||
"matchContentFrameRate": "Соответствие частоты кадров контента",
|
||||
"matchContentFrameRateDescription": "Настроить частоту обновления дисплея под видеоконтент, уменьшая дрожание и экономя батарею",
|
||||
"matchContentFrameRateDescription": "Подстраивать частоту обновления экрана под видео",
|
||||
"matchRefreshRate": "Соответствие частоты обновления",
|
||||
"matchRefreshRateDescription": "Переключать частоту обновления дисплея под видеоконтент в полноэкранном режиме",
|
||||
"matchRefreshRateDescription": "Подстраивать частоту обновления в полноэкранном режиме",
|
||||
"matchDynamicRange": "Соответствие динамического диапазона",
|
||||
"matchDynamicRangeDescription": "Автоматически включать HDR для HDR-контента и возвращать SDR при выходе из плеера",
|
||||
"matchDynamicRangeDescription": "Включать HDR для HDR-контента, затем возвращаться к SDR",
|
||||
"displaySwitchDelay": "Задержка переключения дисплея",
|
||||
"tunneledPlayback": "Туннельное воспроизведение",
|
||||
"tunneledPlaybackDescription": "Использовать аппаратный видеотуннелинг. Отключите, если видите чёрный экран со звуком при HDR-контенте",
|
||||
"tunneledPlaybackDescription": "Использовать видеотуннелирование. Отключите, если HDR показывает черный экран.",
|
||||
"requireProfileSelectionOnOpen": "Запрашивать профиль при запуске",
|
||||
"requireProfileSelectionOnOpenDescription": "Показывать выбор профиля при каждом открытии приложения",
|
||||
"confirmExitOnBack": "Подтверждать выход",
|
||||
"confirmExitOnBackDescription": "Показывать диалог подтверждения при нажатии «назад» для выхода из приложения",
|
||||
"forceTvMode": "Принудительный режим ТВ",
|
||||
"forceTvModeDescription": "Использовать макет ТВ независимо от автоматического определения. Полезно на устройствах Android TV, которые не сообщают о функции leanback. Приложение перезапустится при изменении.",
|
||||
"forceTvModeDescription": "Принудительно включить ТВ-интерфейс. Для устройств без автоопределения. Требуется перезапуск.",
|
||||
"startInFullscreen": "Запускать в полноэкранном режиме",
|
||||
"startInFullscreenDescription": "Открывать Plezy в полноэкранном режиме при запуске",
|
||||
"autoHidePerformanceOverlay": "Автоскрытие оверлея производительности",
|
||||
@@ -251,15 +260,15 @@
|
||||
"showNavBarLabelsDescription": "Отображать текстовые подписи под иконками панели навигации",
|
||||
"liveTvDefaultFavorites": "Избранные каналы по умолчанию",
|
||||
"liveTvDefaultFavoritesDescription": "Показывать только избранные каналы при открытии ТВ",
|
||||
"display": "Display",
|
||||
"homeScreen": "Home Screen",
|
||||
"navigation": "Navigation",
|
||||
"window": "Window",
|
||||
"content": "Content",
|
||||
"player": "Player",
|
||||
"subtitlesAndConfig": "Subtitles & Configuration",
|
||||
"seekAndTiming": "Seek & Timing",
|
||||
"behavior": "Behavior"
|
||||
"display": "Экран",
|
||||
"homeScreen": "Главный экран",
|
||||
"navigation": "Навигация",
|
||||
"window": "Окно",
|
||||
"content": "Контент",
|
||||
"player": "Плеер",
|
||||
"subtitlesAndConfig": "Субтитры и конфигурация",
|
||||
"seekAndTiming": "Перемотка и время",
|
||||
"behavior": "Поведение"
|
||||
},
|
||||
"search": {
|
||||
"hint": "Поиск фильмов, сериалов, музыки...",
|
||||
@@ -330,7 +339,7 @@
|
||||
"shufflePlay": "Случайное воспроизведение",
|
||||
"fileInfo": "Информация о файле",
|
||||
"deleteFromServer": "Удалить с сервера",
|
||||
"confirmDelete": "Это навсегда удалит этот медиафайл и его файлы с вашего сервера. Это действие нельзя отменить.",
|
||||
"confirmDelete": "Удалить это медиа и его файлы с сервера?",
|
||||
"deleteMultipleWarning": "Это включает все эпизоды и их файлы.",
|
||||
"mediaDeletedSuccessfully": "Медиаэлемент успешно удалён",
|
||||
"mediaFailedToDelete": "Не удалось удалить медиаэлемент",
|
||||
@@ -414,7 +423,7 @@
|
||||
"pipErrors": {
|
||||
"androidVersion": "Требуется Android 8.0 или новее",
|
||||
"iosVersion": "Требуется iOS 15.0 или новее",
|
||||
"permissionDisabled": "Разрешение «картинка в картинке» отключено. Включите в Настройки > Приложения > Plezy > Картинка в картинке",
|
||||
"permissionDisabled": "Картинка-в-картинке отключена. Включите ее в системных настройках.",
|
||||
"notSupported": "Устройство не поддерживает режим «картинка в картинке»",
|
||||
"voSwitchFailed": "Не удалось переключить видеовыход для «картинки в картинке»",
|
||||
"failed": "Не удалось запустить режим «картинка в картинке»",
|
||||
@@ -452,7 +461,7 @@
|
||||
"musicNotSupported": "Воспроизведение музыки пока не поддерживается",
|
||||
"noDescriptionAvailable": "Описание недоступно",
|
||||
"noProfilesAvailable": "Профили недоступны",
|
||||
"contactAdminForProfiles": "Обратитесь к администратору Plex, чтобы добавить профили",
|
||||
"contactAdminForProfiles": "Обратитесь к администратору сервера для добавления профилей",
|
||||
"unableToDetermineLibrarySection": "Не удаётся определить раздел библиотеки для этого элемента",
|
||||
"logsCleared": "Логи очищены",
|
||||
"logsCopied": "Логи скопированы в буфер обмена",
|
||||
@@ -474,7 +483,7 @@
|
||||
"failedPlayback": "Не удалось ${action}: ${error}",
|
||||
"switchingToCompatiblePlayer": "Переключение на совместимый плеер...",
|
||||
"serverLimitTitle": "Ошибка воспроизведения",
|
||||
"serverLimitBody": "Сервер вернул ошибку (HTTP 500). Обычно это означает, что владелец сервера установил лимит пропускной способности или транскодирования, из-за которого ваш сеанс отклоняется. Со стороны клиента сделать ничего нельзя — владельцу сервера нужно изменить настройки.",
|
||||
"serverLimitBody": "Ошибка сервера (HTTP 500). Лимит пропускной способности/транскодирования, вероятно, отклонил сессию. Попросите владельца изменить настройки.",
|
||||
"logsUploaded": "Логи загружены",
|
||||
"logsUploadFailed": "Не удалось загрузить логи",
|
||||
"logId": "ID лога"
|
||||
@@ -513,12 +522,85 @@
|
||||
"dialog": {
|
||||
"confirmAction": "Подтвердить действие"
|
||||
},
|
||||
"profiles": {
|
||||
"addPlezyProfile": "Добавить профиль Plezy",
|
||||
"switchingProfile": "Переключение профиля…",
|
||||
"deleteThisProfileTitle": "Удалить этот профиль?",
|
||||
"deleteThisProfileMessage": "Удалить ${displayName}. Подключения не изменятся.",
|
||||
"active": "Активный",
|
||||
"manage": "Управление",
|
||||
"delete": "Удалить",
|
||||
"signOut": "Выйти",
|
||||
"signOutPlexTitle": "Выйти из Plex?",
|
||||
"signOutPlexMessage": "Удалить ${displayName} и всех пользователей Plex Home? Вы сможете войти снова в любое время.",
|
||||
"signedOutPlex": "Вы вышли из Plex.",
|
||||
"signOutFailed": "Не удалось выйти.",
|
||||
"sectionTitle": "Профили",
|
||||
"summarySingle": "Добавьте профили, чтобы смешать управляемых пользователей и локальные идентификаторы",
|
||||
"summaryMultipleWithActive": "${count} профилей · активный: ${activeName}",
|
||||
"summaryMultiple": "${count} профилей",
|
||||
"removeConnectionTitle": "Удалить соединение?",
|
||||
"removeConnectionMessage": "Удалить доступ ${displayName} к ${connectionLabel}. У других профилей он останется.",
|
||||
"deleteProfileTitle": "Удалить профиль?",
|
||||
"deleteProfileMessage": "Удалить ${displayName} и его подключения. Серверы останутся доступны.",
|
||||
"profileNameLabel": "Имя профиля",
|
||||
"pinProtectionLabel": "Защита PIN-кодом",
|
||||
"pinManagedByPlex": "PIN управляется Plex. Редактируйте на plex.tv.",
|
||||
"noPinSetEditOnPlex": "PIN не установлен. Чтобы требовать его, отредактируйте пользователя Home на plex.tv.",
|
||||
"setPin": "Установить PIN",
|
||||
"setPinTitle": "Установить PIN",
|
||||
"confirmPinTitle": "Подтвердить PIN",
|
||||
"pinSet": "PIN установлен",
|
||||
"changePin": "Изменить",
|
||||
"removePin": "Удалить",
|
||||
"connectionsLabel": "Соединения",
|
||||
"add": "Добавить",
|
||||
"deleteProfileButton": "Удалить профиль",
|
||||
"noConnectionsHint": "Нет соединений — добавьте одно, чтобы использовать этот профиль.",
|
||||
"noConnections": "Нет соединений",
|
||||
"plexHomeAccount": "Аккаунт Plex Home",
|
||||
"connectionDefault": "По умолчанию",
|
||||
"connectionAs": "как ${displayName}",
|
||||
"makeDefault": "Сделать по умолчанию",
|
||||
"removeConnection": "Удалить",
|
||||
"profileRenamed": "Профиль переименован.",
|
||||
"borrowAddTo": "Добавить в ${displayName}",
|
||||
"borrowExplain": "Заимствуйте подключение другого профиля. Для профилей с PIN нужен PIN.",
|
||||
"borrowEmpty": "Пока нечего заимствовать.",
|
||||
"borrowEmptySubtitle": "Сначала подключите Plex или Jellyfin к другому профилю.",
|
||||
"borrowFromProfile": "Из ${displayName}",
|
||||
"borrowConnectionBorrowed": "Подключение заимствовано.",
|
||||
"borrowFailed": "Не удалось заимствовать подключение.",
|
||||
"incorrectPin": "Неверный PIN.",
|
||||
"sourceProfileMissingParentAccount": "У исходного профиля отсутствует родительская учетная запись.",
|
||||
"failedToVerifyPin": "Не удалось проверить PIN.",
|
||||
"newProfile": "Новый профиль",
|
||||
"profileNameHint": "например, Гости, Дети, Семейная комната",
|
||||
"pinProtectionOptional": "Защита PIN-кодом (необязательно)",
|
||||
"pinExplain": "Для переключения профилей нужен 4-значный PIN.",
|
||||
"continueButton": "Продолжить",
|
||||
"pinsDontMatch": "PIN-коды не совпадают"
|
||||
},
|
||||
"connections": {
|
||||
"sectionTitle": "Подключения",
|
||||
"addConnection": "Добавить подключение",
|
||||
"addConnectionSubtitleNoProfile": "Войдите через Plex или подключите сервер Jellyfin",
|
||||
"addConnectionSubtitleScoped": "Добавить к ${displayName}: Plex, Jellyfin или подключение другого профиля",
|
||||
"sessionExpiredOne": "Сессия истекла для ${name}",
|
||||
"sessionExpiredMany": "Сессия истекла для ${count} серверов",
|
||||
"signInAgain": "Войти снова"
|
||||
},
|
||||
"discover": {
|
||||
"title": "Обзор",
|
||||
"switchProfile": "Сменить профиль",
|
||||
"noContentAvailable": "Контент недоступен",
|
||||
"addMediaToLibraries": "Добавьте медиафайлы в ваши библиотеки",
|
||||
"continueWatching": "Продолжить просмотр",
|
||||
"continueWatchingIn": "Продолжить просмотр в ${library}",
|
||||
"nextUp": "Далее",
|
||||
"nextUpIn": "Далее в ${library}",
|
||||
"recentlyAdded": "Недавно добавленное",
|
||||
"recentlyAddedIn": "Недавно добавленное в ${library}",
|
||||
"playEpisode": "S${season}E${episode}",
|
||||
"overview": "Обзор",
|
||||
"cast": "В ролях",
|
||||
@@ -532,7 +614,7 @@
|
||||
"errors": {
|
||||
"searchFailed": "Ошибка поиска: ${error}",
|
||||
"connectionTimeout": "Таймаут подключения при загрузке ${context}",
|
||||
"connectionFailed": "Не удаётся подключиться к серверу Plex",
|
||||
"connectionFailed": "Не удалось подключиться к медиасерверу",
|
||||
"failedToLoad": "Не удалось загрузить ${context}: ${error}",
|
||||
"noClientAvailable": "Клиент недоступен",
|
||||
"authenticationFailed": "Ошибка аутентификации: ${error}",
|
||||
@@ -540,7 +622,9 @@
|
||||
"pleaseEnterToken": "Введите токен",
|
||||
"invalidToken": "Недействительный токен",
|
||||
"failedToVerifyToken": "Не удалось проверить токен: ${error}",
|
||||
"failedToSwitchProfile": "Не удалось переключиться на ${displayName}"
|
||||
"failedToSwitchProfile": "Не удалось переключиться на ${displayName}",
|
||||
"failedToDeleteProfile": "Не удалось удалить ${displayName}",
|
||||
"failedToRate": "Не удалось обновить оценку"
|
||||
},
|
||||
"libraries": {
|
||||
"title": "Библиотеки",
|
||||
@@ -595,17 +679,34 @@
|
||||
"seasons": "Сезоны",
|
||||
"episodes": "Эпизоды",
|
||||
"folders": "Папки"
|
||||
},
|
||||
"filterCategories": {
|
||||
"genre": "Жанр",
|
||||
"year": "Год",
|
||||
"contentRating": "Возрастной рейтинг",
|
||||
"tag": "Тег"
|
||||
},
|
||||
"sortLabels": {
|
||||
"title": "Название",
|
||||
"dateAdded": "Дата добавления",
|
||||
"releaseDate": "Дата выхода",
|
||||
"rating": "Рейтинг",
|
||||
"lastPlayed": "Последний просмотр",
|
||||
"playCount": "Количество просмотров",
|
||||
"random": "Случайно",
|
||||
"dateShared": "Дата открытия доступа",
|
||||
"latestEpisodeAirDate": "Дата выхода последнего эпизода"
|
||||
}
|
||||
},
|
||||
"about": {
|
||||
"title": "О приложении",
|
||||
"openSourceLicenses": "Лицензии открытого ПО",
|
||||
"versionLabel": "Версия ${version}",
|
||||
"appDescription": "Красивый клиент Plex на Flutter",
|
||||
"appDescription": "Красивый клиент Plex и Jellyfin на Flutter",
|
||||
"viewLicensesDescription": "Просмотр лицензий сторонних библиотек"
|
||||
},
|
||||
"serverSelection": {
|
||||
"allServerConnectionsFailed": "Не удалось подключиться ни к одному серверу. Проверьте сеть и попробуйте снова.",
|
||||
"allServerConnectionsFailed": "Не удалось подключиться ни к одному серверу. Проверьте сеть.",
|
||||
"noServersFoundForAccount": "Серверы не найдены для ${username} (${email})",
|
||||
"failedToLoadServers": "Не удалось загрузить серверы: ${error}"
|
||||
},
|
||||
@@ -642,6 +743,7 @@
|
||||
"reloadGuide": "Перезагрузить программу",
|
||||
"now": "Сейчас",
|
||||
"today": "Сегодня",
|
||||
"tomorrow": "Завтра",
|
||||
"midnight": "Полночь",
|
||||
"overnight": "Ночь",
|
||||
"morning": "Утро",
|
||||
@@ -655,7 +757,41 @@
|
||||
"joinSession": "Присоединиться к текущему сеансу",
|
||||
"watchFromStart": "Смотреть сначала (${minutes} мин. назад)",
|
||||
"watchLive": "Смотреть в прямом эфире",
|
||||
"goToLive": "К прямому эфиру"
|
||||
"goToLive": "К прямому эфиру",
|
||||
"record": "Запись",
|
||||
"recordEpisode": "Записать эпизод",
|
||||
"recordSeries": "Записать сериал",
|
||||
"recordOptions": "Параметры записи",
|
||||
"recordings": "Записи",
|
||||
"scheduledRecordings": "Запланировано",
|
||||
"recordingRules": "Правила записи",
|
||||
"noScheduledRecordings": "Нет запланированных записей",
|
||||
"noRecordingRules": "Правил записи пока нет",
|
||||
"manageRecording": "Управление записью",
|
||||
"cancelRecording": "Отменить запись",
|
||||
"cancelRecordingTitle": "Отменить эту запись?",
|
||||
"cancelRecordingMessage": "${title} больше не будет записываться.",
|
||||
"deleteRule": "Удалить правило",
|
||||
"deleteRuleTitle": "Удалить правило записи?",
|
||||
"deleteRuleMessage": "Будущие эпизоды ${title} не будут записаны.",
|
||||
"recordingScheduled": "Запись запланирована",
|
||||
"alreadyScheduled": "Эта передача уже запланирована",
|
||||
"dvrAdminRequired": "Настройки DVR требуют учётной записи администратора",
|
||||
"recordingFailed": "Не удалось запланировать запись",
|
||||
"recordingTargetMissing": "Не удалось определить библиотеку записи",
|
||||
"recordNotAvailable": "Запись недоступна для этой передачи",
|
||||
"recordingCancelled": "Запись отменена",
|
||||
"recordingRuleDeleted": "Правило записи удалено",
|
||||
"processRecordingRules": "Пересчитать правила",
|
||||
"loadingRecordings": "Загрузка записей...",
|
||||
"recordingInProgress": "Идёт запись",
|
||||
"recordingsCount": "Запланировано: ${count}",
|
||||
"editRule": "Изменить правило",
|
||||
"editRuleAction": "Изменить",
|
||||
"recordingRuleUpdated": "Правило записи обновлено",
|
||||
"guideReloadRequested": "Запрошено обновление гайда",
|
||||
"rulesProcessRequested": "Запрошен пересчёт правил",
|
||||
"recordShow": "Записать передачу"
|
||||
},
|
||||
"collections": {
|
||||
"title": "Коллекции",
|
||||
@@ -663,7 +799,7 @@
|
||||
"empty": "Коллекция пуста",
|
||||
"unknownLibrarySection": "Невозможно удалить: неизвестный раздел библиотеки",
|
||||
"deleteCollection": "Удалить коллекцию",
|
||||
"deleteConfirm": "Вы уверены, что хотите удалить \"${title}\"? Это действие нельзя отменить.",
|
||||
"deleteConfirm": "Удалить \"${title}\"? Это нельзя отменить.",
|
||||
"deleted": "Коллекция удалена",
|
||||
"deleteFailed": "Не удалось удалить коллекцию",
|
||||
"deleteFailedWithError": "Не удалось удалить коллекцию: ${error}",
|
||||
@@ -747,11 +883,11 @@
|
||||
"pasteFromClipboard": "Вставить из буфера обмена",
|
||||
"pleaseEnterCode": "Введите код сессии",
|
||||
"codeMustBe5Chars": "Код сессии должен содержать 5 символов",
|
||||
"joinInstructions": "Введите код сессии, предоставленный хостом, чтобы присоединиться к просмотру.",
|
||||
"joinInstructions": "Введите код сессии хоста, чтобы присоединиться.",
|
||||
"failedToCreate": "Не удалось создать сессию",
|
||||
"failedToJoin": "Не удалось присоединиться к сессии",
|
||||
"sessionCodeCopied": "Код сессии скопирован в буфер обмена",
|
||||
"relayUnreachable": "Ретранслятор недоступен. Возможно, ваш провайдер блокирует подключение. Вы можете попробовать, но «Смотреть вместе» может не работать.",
|
||||
"relayUnreachable": "Сервер relay недоступен. Блокировка ISP может мешать Watch Together.",
|
||||
"reconnectingToHost": "Переподключение к хосту...",
|
||||
"currentPlayback": "Текущее воспроизведение",
|
||||
"joinCurrentPlayback": "Присоединиться к текущему воспроизведению",
|
||||
@@ -766,7 +902,9 @@
|
||||
"waitingForParticipants": "Ожидание загрузки у других...",
|
||||
"recentRooms": "Недавние комнаты",
|
||||
"renameRoom": "Переименовать комнату",
|
||||
"removeRoom": "Удалить"
|
||||
"removeRoom": "Удалить",
|
||||
"guestSwitchUnavailable": "Не удалось переключиться — сервер недоступен для синхронизации",
|
||||
"guestSwitchFailed": "Не удалось переключиться — содержимое не найдено на этом сервере"
|
||||
},
|
||||
"downloads": {
|
||||
"title": "Загрузки",
|
||||
@@ -779,10 +917,10 @@
|
||||
"deleteDownload": "Удалить загрузку",
|
||||
"retryDownload": "Повторить загрузку",
|
||||
"downloadQueued": "Загрузка поставлена в очередь",
|
||||
"serverErrorBitrate": "Ошибка сервера — файл может превышать лимит битрейта удалённого стриминга",
|
||||
"serverErrorBitrate": "Ошибка сервера: файл может превышать удаленный лимит bitrate",
|
||||
"episodesQueued": "${count} эпизодов поставлено в очередь загрузки",
|
||||
"downloadDeleted": "Загрузка удалена",
|
||||
"deleteConfirm": "Вы уверены, что хотите удалить \"${title}\"? Загруженный файл будет удалён с устройства.",
|
||||
"deleteConfirm": "Удалить \"${title}\" с этого устройства?",
|
||||
"deletingWithProgress": "Удаление ${title}... (${current} из ${total})",
|
||||
"deleting": "Удаление...",
|
||||
"queuedTooltip": "В очереди",
|
||||
@@ -817,6 +955,12 @@
|
||||
"editSyncFilter": "Фильтр синхронизации",
|
||||
"syncAllItems": "Синхронизация всех элементов",
|
||||
"syncUnwatchedItems": "Синхронизация непросмотренных элементов",
|
||||
"syncRuleServerContext": "Сервер: ${server} • ${status}",
|
||||
"syncRuleAvailable": "Доступен",
|
||||
"syncRuleOffline": "Офлайн",
|
||||
"syncRuleSignInRequired": "Требуется вход",
|
||||
"syncRuleNotAvailableForProfile": "Недоступно для текущего профиля",
|
||||
"syncRuleUnknownServer": "Неизвестный сервер",
|
||||
"syncRuleListCreated": "Правило синхронизации создано"
|
||||
},
|
||||
"shaders": {
|
||||
@@ -846,7 +990,7 @@
|
||||
"connected": "Подключено",
|
||||
"serverRunning": "Удалённый сервер активен",
|
||||
"serverStopped": "Удалённый сервер остановлен",
|
||||
"serverRunningDescription": "Мобильные устройства в вашей сети могут обнаруживать это приложение и подключаться к нему",
|
||||
"serverRunningDescription": "Мобильные устройства в вашей сети могут подключаться к этому приложению",
|
||||
"serverStoppedDescription": "Запустите сервер, чтобы разрешить подключение мобильных устройств",
|
||||
"usePhoneToControl": "Используйте мобильное устройство для управления этим приложением",
|
||||
"startServer": "Запустить сервер",
|
||||
@@ -854,20 +998,20 @@
|
||||
"minimize": "Свернуть"
|
||||
},
|
||||
"pairing": {
|
||||
"discoveryDescription": "Устройства в вашей сети с Plezy на том же аккаунте Plex появятся автоматически",
|
||||
"discoveryDescription": "Устройства Plezy с тем же аккаунтом Plex появятся здесь",
|
||||
"hostAddressHint": "192.168.1.100:48632",
|
||||
"connecting": "Подключение...",
|
||||
"searchingForDevices": "Поиск устройств...",
|
||||
"noDevicesFound": "Устройства в вашей сети не найдены",
|
||||
"noDevicesHint": "Убедитесь, что Plezy открыт на вашем компьютере и оба устройства находятся в одной сети WiFi",
|
||||
"noDevicesHint": "Откройте Plezy на компьютере и используйте тот же WiFi",
|
||||
"availableDevices": "Доступные устройства",
|
||||
"manualConnection": "Ручное подключение",
|
||||
"cryptoInitFailed": "Не удалось инициализировать безопасное соединение. Убедитесь, что вы вошли в аккаунт Plex.",
|
||||
"cryptoInitFailed": "Не удалось запустить защищенное подключение. Сначала войдите в Plex.",
|
||||
"validationHostRequired": "Введите адрес хоста",
|
||||
"validationHostFormat": "Формат должен быть IP:порт (например, 192.168.1.100:48632)",
|
||||
"connectionTimedOut": "Время подключения истекло. Убедитесь, что оба устройства находятся в одной сети.",
|
||||
"connectionTimedOut": "Время подключения истекло. Используйте одну сеть на обоих устройствах.",
|
||||
"sessionNotFound": "Устройство не найдено. Убедитесь, что Plezy запущен на хосте.",
|
||||
"authFailed": "Ошибка аутентификации. Убедитесь, что оба устройства используют один и тот же аккаунт Plex.",
|
||||
"authFailed": "Аутентификация не удалась. На обоих устройствах нужен один аккаунт Plex.",
|
||||
"failedToConnect": "Не удалось подключиться: ${error}"
|
||||
},
|
||||
"remote": {
|
||||
@@ -915,7 +1059,7 @@
|
||||
"externalPlayer": {
|
||||
"title": "Внешний плеер",
|
||||
"useExternalPlayer": "Использовать внешний плеер",
|
||||
"useExternalPlayerDescription": "Открывать видео во внешнем приложении вместо встроенного плеера",
|
||||
"useExternalPlayerDescription": "Открывать видео в другом приложении",
|
||||
"selectPlayer": "Выбрать плеер",
|
||||
"customPlayers": "Свои плееры",
|
||||
"systemDefault": "Системный по умолчанию",
|
||||
@@ -1009,7 +1153,7 @@
|
||||
"match": "Сопоставить...",
|
||||
"fixMatch": "Исправить сопоставление...",
|
||||
"unmatch": "Сбросить сопоставление",
|
||||
"unmatchConfirm": "Сбросить текущее сопоставление этого элемента? Plex будет считать его несопоставленным, пока вы не сопоставите его снова.",
|
||||
"unmatchConfirm": "Очистить это совпадение? Plex будет считать его несопоставленным до повторного сопоставления.",
|
||||
"unmatchSuccess": "Сопоставление сброшено",
|
||||
"unmatchFailed": "Не удалось сбросить сопоставление",
|
||||
"matchApplied": "Сопоставление применено",
|
||||
@@ -1029,7 +1173,7 @@
|
||||
"connected": "Подключено",
|
||||
"connectedAs": "Подключено как @${username}",
|
||||
"disconnectConfirm": "Отключить аккаунт Trakt?",
|
||||
"disconnectConfirmBody": "Plezy перестанет отправлять события воспроизведения в Trakt. Вы можете подключиться снова в любое время.",
|
||||
"disconnectConfirmBody": "Plezy перестанет отправлять события в Trakt. Можно подключить снова в любое время.",
|
||||
"scrobble": "Скробблинг в реальном времени",
|
||||
"scrobbleDescription": "Отправлять события воспроизведения, паузы и остановки в Trakt во время просмотра.",
|
||||
"watchedSync": "Синхронизация статуса просмотра",
|
||||
@@ -1043,7 +1187,7 @@
|
||||
"scrobble": "Автоматически отслеживать прогресс",
|
||||
"scrobbleDescription": "Обновляет список, когда вы заканчиваете эпизод или фильм.",
|
||||
"disconnectConfirm": "Отключить ${service}?",
|
||||
"disconnectConfirmBody": "Plezy перестанет обновлять ваш список ${service}. Вы можете подключиться снова в любое время.",
|
||||
"disconnectConfirmBody": "Plezy перестанет обновлять ${service}. Подключите снова в любое время.",
|
||||
"connectFailed": "Не удалось подключиться к ${service}. Попробуйте ещё раз.",
|
||||
"services": {
|
||||
"mal": "MyAnimeList",
|
||||
@@ -1059,7 +1203,7 @@
|
||||
},
|
||||
"oauthProxy": {
|
||||
"title": "Войти в ${service}",
|
||||
"body": "Отсканируйте этот QR-код телефоном или откройте ссылку ниже на любом устройстве с браузером.",
|
||||
"body": "Отсканируйте этот QR-код или откройте URL на любом устройстве.",
|
||||
"openToSignIn": "Открыть ${service} для входа",
|
||||
"urlCopied": "URL скопирован"
|
||||
},
|
||||
@@ -1077,5 +1221,39 @@
|
||||
"libraries": "Библиотеки",
|
||||
"noLibraries": "Библиотеки недоступны"
|
||||
}
|
||||
},
|
||||
"addServer": {
|
||||
"addJellyfinTitle": "Добавить сервер Jellyfin",
|
||||
"jellyfinUrlIntro": "Введите URL сервера, например `https://jellyfin.example.com`.",
|
||||
"serverUrl": "URL сервера",
|
||||
"findServer": "Найти сервер",
|
||||
"username": "Имя пользователя",
|
||||
"password": "Пароль",
|
||||
"signIn": "Войти",
|
||||
"change": "Изменить",
|
||||
"required": "Обязательно",
|
||||
"couldNotReachServer": "Не удалось связаться с сервером: ${error}",
|
||||
"signInFailed": "Не удалось войти: ${error}",
|
||||
"quickConnectFailed": "Quick Connect не удался: ${error}",
|
||||
"addPlexTitle": "Войти через Plex",
|
||||
"plexAuthIntro": "Войдите через браузер или QR-код.",
|
||||
"plexQRPrompt": "Отсканируйте этот QR-код, чтобы войти.",
|
||||
"waitingForPlexConfirmation": "Ожидание подтверждения от plex.tv…",
|
||||
"pinExpired": "Срок действия PIN истёк до входа. Попробуйте снова.",
|
||||
"duplicatePlexAccount": "В Plex уже выполнен вход. Выйдите, чтобы сменить аккаунт.",
|
||||
"failedToRegisterAccount": "Не удалось зарегистрировать учётную запись: ${error}",
|
||||
"enterJellyfinUrlError": "Введите URL вашего сервера Jellyfin",
|
||||
"addConnectionTitle": "Добавить подключение",
|
||||
"addConnectionTitleScoped": "Добавить в ${name}",
|
||||
"addConnectionIntroGlobal": "Добавьте еще один медиасервер. Plex и Jellyfin появятся вместе на главной.",
|
||||
"addConnectionIntroScoped": "Добавьте новый сервер или одолжите из другого профиля.",
|
||||
"signInWithPlexCard": "Войти через Plex",
|
||||
"signInWithPlexCardSubtitle": "Авторизуйте это устройство. Общие серверы будут добавлены.",
|
||||
"signInWithPlexCardSubtitleScoped": "Авторизуйте аккаунт Plex. Пользователи Home станут профилями.",
|
||||
"connectToJellyfinCard": "Подключиться к Jellyfin",
|
||||
"connectToJellyfinCardSubtitle": "Введите URL сервера, имя пользователя и пароль.",
|
||||
"connectToJellyfinCardSubtitleScoped": "Войдите на сервер Jellyfin. Привязывается к ${name}.",
|
||||
"borrowFromAnotherProfile": "Одолжить из другого профиля",
|
||||
"borrowFromAnotherProfileSubtitle": "Используйте подключение другого профиля. Для профилей с PIN нужен PIN."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
/// To regenerate, run: `dart run slang`
|
||||
///
|
||||
/// Locales: 15
|
||||
/// Strings: 14625 (975 per locale)
|
||||
/// Strings: 17145 (1143 per locale)
|
||||
///
|
||||
/// Built on 2026-04-27 at 13:13 UTC
|
||||
/// Built on 2026-05-11 at 02:36 UTC
|
||||
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: type=lint, unused_import
|
||||
|
||||
+621
-231
File diff suppressed because it is too large
Load Diff
+619
-229
File diff suppressed because it is too large
Load Diff
+994
-270
File diff suppressed because it is too large
Load Diff
+623
-233
File diff suppressed because it is too large
Load Diff
+623
-233
File diff suppressed because it is too large
Load Diff
+621
-231
File diff suppressed because it is too large
Load Diff
+623
-233
File diff suppressed because it is too large
Load Diff
+621
-231
File diff suppressed because it is too large
Load Diff
+623
-233
File diff suppressed because it is too large
Load Diff
+623
-233
File diff suppressed because it is too large
Load Diff
+619
-229
File diff suppressed because it is too large
Load Diff
+623
-233
File diff suppressed because it is too large
Load Diff
+619
-229
File diff suppressed because it is too large
Load Diff
+623
-233
File diff suppressed because it is too large
Load Diff
+623
-233
File diff suppressed because it is too large
Load Diff
+245
-67
@@ -3,13 +3,22 @@
|
||||
"title": "Plezy"
|
||||
},
|
||||
"auth": {
|
||||
"signIn": "Logga in",
|
||||
"signInWithPlex": "Logga in med Plex",
|
||||
"showQRCode": "Visa QR-kod",
|
||||
"authenticate": "Autentisera",
|
||||
"authenticationTimeout": "Autentisering tog för lång tid. Försök igen.",
|
||||
"scanQRToSignIn": "Skanna QR-koden för att logga in",
|
||||
"waitingForAuth": "Väntar på autentisering...\nVänligen slutför inloggning i din webbläsare.",
|
||||
"useBrowser": "Använd webbläsare"
|
||||
"waitingForAuth": "Väntar på autentisering...\nLogga in från din webbläsare.",
|
||||
"useBrowser": "Använd webbläsare",
|
||||
"or": "eller",
|
||||
"connectToJellyfin": "Anslut till Jellyfin",
|
||||
"useQuickConnect": "Använd Quick Connect",
|
||||
"quickConnectCode": "Quick Connect-kod",
|
||||
"quickConnectInstructions": "Öppna Quick Connect i Jellyfin och ange den här koden.",
|
||||
"quickConnectWaiting": "Väntar på godkännande…",
|
||||
"quickConnectCancel": "Avbryt",
|
||||
"quickConnectExpired": "Quick Connect har gått ut. Försök igen."
|
||||
},
|
||||
"common": {
|
||||
"cancel": "Avbryt",
|
||||
@@ -43,9 +52,6 @@
|
||||
"mute": "Ljud av",
|
||||
"ok": "OK",
|
||||
"reconnect": "Återanslut",
|
||||
"exitConfirmTitle": "Avsluta appen?",
|
||||
"exitConfirmMessage": "Är du säker på att du vill avsluta?",
|
||||
"dontAskAgain": "Fråga inte igen",
|
||||
"exit": "Avsluta",
|
||||
"viewAll": "Visa alla",
|
||||
"checkingNetwork": "Kontrollerar nätverk...",
|
||||
@@ -55,7 +61,8 @@
|
||||
"startingOfflineMode": "Startar offlineläge...",
|
||||
"loading": "Laddar...",
|
||||
"fullscreen": "Helskärm",
|
||||
"exitFullscreen": "Avsluta helskärm"
|
||||
"exitFullscreen": "Avsluta helskärm",
|
||||
"pressBackAgainToExit": "Tryck bakåt igen för att avsluta"
|
||||
},
|
||||
"screens": {
|
||||
"licenses": "Licenser",
|
||||
@@ -104,22 +111,22 @@
|
||||
"gridView": "Rutnät",
|
||||
"listView": "Lista",
|
||||
"showHeroSection": "Visa hjältesektion",
|
||||
"useGlobalHubs": "Använd Plex hem-layout",
|
||||
"useGlobalHubsDescription": "Visar startsidans hubbar som den officiella Plex-klienten. När av visas rekommendationer per bibliotek istället.",
|
||||
"useGlobalHubs": "Använd startlayout",
|
||||
"useGlobalHubsDescription": "Visa enhetliga startsideshubbar. Annars används biblioteksrekommendationer.",
|
||||
"showServerNameOnHubs": "Visa servernamn på hubbar",
|
||||
"showServerNameOnHubsDescription": "Visa alltid servernamnet i hubbtitlar. När av visas endast för duplicerade hubbnamn.",
|
||||
"showServerNameOnHubsDescription": "Visa alltid servernamn i hubbtitlar.",
|
||||
"groupLibrariesByServer": "Gruppera bibliotek efter server",
|
||||
"groupLibrariesByServerDescription": "Visa en rubrik för varje Plex-server i sidofältet när du är ansluten till flera servrar.",
|
||||
"groupLibrariesByServerDescription": "Gruppera sidofältsbibliotek under varje medieserver.",
|
||||
"alwaysKeepSidebarOpen": "Håll sidofältet alltid öppet",
|
||||
"alwaysKeepSidebarOpenDescription": "Sidofältet förblir expanderat och innehållsytan anpassas",
|
||||
"showUnwatchedCount": "Visa antal osedda",
|
||||
"showUnwatchedCountDescription": "Visa antal osedda avsnitt för serier och säsonger",
|
||||
"showEpisodeNumberOnCards": "Visa avsnittsnummer på kort",
|
||||
"showEpisodeNumberOnCardsDescription": "Visa avsnittsnummer tillsammans med säsongen (t.ex. S2 E3) på avsnittskort",
|
||||
"showEpisodeNumberOnCardsDescription": "Visa säsongs- och avsnittsnummer på avsnittskort",
|
||||
"showSeasonPostersOnTabs": "Visa säsongsaffischer på flikar",
|
||||
"showSeasonPostersOnTabsDescription": "Visa säsongens affisch ovanför varje säsongsflik på en series detaljsida",
|
||||
"showSeasonPostersOnTabsDescription": "Visa varje säsongs affisch ovanför fliken",
|
||||
"hideSpoilers": "Dölj spoilers för osedda avsnitt",
|
||||
"hideSpoilersDescription": "Gör miniatyrer suddiga och dölj beskrivningar för avsnitt du inte har sett ännu",
|
||||
"hideSpoilersDescription": "Sudda miniatyrbilder och beskrivningar för osedda avsnitt",
|
||||
"playerBackend": "Spelarmotor",
|
||||
"exoPlayer": "ExoPlayer (Rekommenderad)",
|
||||
"mpv": "mpv",
|
||||
@@ -128,7 +135,7 @@
|
||||
"bufferSize": "Bufferstorlek",
|
||||
"bufferSizeMB": "${size}MB",
|
||||
"bufferSizeAuto": "Auto (Rekommenderat)",
|
||||
"bufferSizeWarning": "Din enhet har ${heap}MB minne. En buffert på ${size}MB kan orsaka uppspelningsproblem.",
|
||||
"bufferSizeWarning": "${heap}MB minne tillgängligt. En buffert på ${size}MB kan påverka uppspelningen.",
|
||||
"defaultQualityTitle": "Standardkvalitet",
|
||||
"defaultQualityDescription": "Används vid start av uppspelning. Lägre värden minskar bandbredden.",
|
||||
"subtitleStyling": "Undertext-styling",
|
||||
@@ -140,16 +147,18 @@
|
||||
"defaultSleepTimer": "Standard sovtimer",
|
||||
"minutesUnit": "${minutes} minuter",
|
||||
"rememberTrackSelections": "Kom ihåg spårval per serie/film",
|
||||
"rememberTrackSelectionsDescription": "Spara automatiskt ljud- och undertextspråkpreferenser när du ändrar spår under uppspelning",
|
||||
"rememberTrackSelectionsDescription": "Kom ihåg ljud- och undertextval per titel",
|
||||
"showChapterMarkersOnTimeline": "Visa kapitelmarkörer på tidslinjen",
|
||||
"showChapterMarkersOnTimelineDescription": "Dela upp tidslinjen vid kapitelgränser",
|
||||
"clickVideoTogglesPlayback": "Klicka på videon för att växla mellan spela upp och pausa.",
|
||||
"clickVideoTogglesPlaybackDescription": "Om detta är aktiverat kommer ett klick på videospelaren att starta eller pausa videon. Annars visas eller döljs uppspelningskontrollerna när du klickar.",
|
||||
"clickVideoTogglesPlaybackDescription": "Klicka på video för att spela/pausa istället för att visa kontroller.",
|
||||
"videoPlayerControls": "Videospelar-kontroller",
|
||||
"keyboardShortcuts": "Tangentbordsgenvägar",
|
||||
"keyboardShortcutsDescription": "Anpassa tangentbordsgenvägar",
|
||||
"videoPlayerNavigation": "Navigering i videospelaren",
|
||||
"videoPlayerNavigationDescription": "Använd piltangenter för att navigera videospelarens kontroller",
|
||||
"watchTogetherRelay": "Titta Tillsammans-relay",
|
||||
"watchTogetherRelayDescription": "Ange en anpassad relay-server för Titta Tillsammans. Alla deltagare måste använda samma server.",
|
||||
"watchTogetherRelayDescription": "Ange en anpassad relay. Alla måste använda samma server.",
|
||||
"watchTogetherRelayHint": "https://min-relay.exempel.se",
|
||||
"crashReporting": "Kraschrapportering",
|
||||
"crashReportingDescription": "Skicka kraschrapporter för att förbättra appen",
|
||||
@@ -158,10 +167,10 @@
|
||||
"viewLogs": "Visa loggar",
|
||||
"viewLogsDescription": "Visa applikationsloggar",
|
||||
"clearCache": "Rensa cache",
|
||||
"clearCacheDescription": "Detta rensar alla cachade bilder och data. Appen kan ta längre tid att ladda innehåll efter cache-rensning.",
|
||||
"clearCacheDescription": "Rensa cachade bilder och data. Innehåll kan laddas långsammare.",
|
||||
"clearCacheSuccess": "Cache rensad framgångsrikt",
|
||||
"resetSettings": "Återställ inställningar",
|
||||
"resetSettingsDescription": "Detta återställer alla inställningar till standardvärden. Denna åtgärd kan inte ångras.",
|
||||
"resetSettingsDescription": "Återställ standardinställningar. Detta kan inte ångras.",
|
||||
"resetSettingsSuccess": "Inställningar återställda framgångsrikt",
|
||||
"backup": "Säkerhetskopia",
|
||||
"exportSettings": "Exportera inställningar",
|
||||
@@ -182,7 +191,7 @@
|
||||
"updateAvailable": "Uppdatering tillgänglig",
|
||||
"checkForUpdates": "Kontrollera uppdateringar",
|
||||
"autoCheckUpdatesOnStartup": "Kontrollera uppdateringar automatiskt vid start",
|
||||
"autoCheckUpdatesOnStartupDescription": "Visa en avisering när en ny version är tillgänglig vid start",
|
||||
"autoCheckUpdatesOnStartupDescription": "Meddela när en uppdatering finns vid start",
|
||||
"validationErrorEnterNumber": "Vänligen ange ett giltigt nummer",
|
||||
"validationErrorDuration": "Tiden måste vara mellan ${min} och ${max} ${unit}",
|
||||
"shortcutAlreadyAssigned": "Genväg redan tilldelad ${action}",
|
||||
@@ -192,6 +201,8 @@
|
||||
"autoSkipIntroDescription": "Hoppa automatiskt över intro-markörer efter några sekunder",
|
||||
"autoSkipCredits": "Hoppa Över Credits Automatiskt",
|
||||
"autoSkipCreditsDescription": "Hoppa automatiskt över credits och spela nästa avsnitt",
|
||||
"forceSkipMarkerFallback": "Tvinga reservmarkörer",
|
||||
"forceSkipMarkerFallbackDescription": "Använd mönster i kapiteltitlar även när Plex har markörer",
|
||||
"autoSkipDelay": "Fördröjning Auto Hoppa Över",
|
||||
"autoSkipDelayDescription": "Vänta ${seconds} sekunder innan automatisk överhoppning",
|
||||
"introPattern": "Intromarkörsmönster",
|
||||
@@ -213,8 +224,8 @@
|
||||
"downloadOnWifiOnly": "Ladda ner endast på WiFi",
|
||||
"downloadOnWifiOnlyDescription": "Förhindra nedladdningar vid användning av mobildata",
|
||||
"autoRemoveWatchedDownloads": "Ta bort sedda nedladdningar automatiskt",
|
||||
"autoRemoveWatchedDownloadsDescription": "Ta automatiskt bort nedladdade avsnitt och filmer när de markerats som sedda",
|
||||
"cellularDownloadBlocked": "Nedladdningar är inaktiverade på mobildata. Anslut till WiFi eller ändra inställningen.",
|
||||
"autoRemoveWatchedDownloadsDescription": "Ta bort sedda nedladdningar automatiskt",
|
||||
"cellularDownloadBlocked": "Nedladdningar är blockerade via mobilnät. Använd WiFi eller ändra inställningen.",
|
||||
"maxVolume": "Maximal volym",
|
||||
"maxVolumeDescription": "Tillåt volym över 100% för tyst media",
|
||||
"maxVolumePercent": "${percent}%",
|
||||
@@ -227,22 +238,20 @@
|
||||
"companionRemoteServer": "Companion Remote-server",
|
||||
"companionRemoteServerDescription": "Tillåt mobila enheter i ditt nätverk att styra denna app",
|
||||
"autoPip": "Automatisk bild-i-bild",
|
||||
"autoPipDescription": "Aktivera bild-i-bild automatiskt när appen lämnas under uppspelning",
|
||||
"autoPipDescription": "Gå till bild-i-bild när du lämnar under uppspelning",
|
||||
"matchContentFrameRate": "Matcha innehållets bildfrekvens",
|
||||
"matchContentFrameRateDescription": "Justera skärmens uppdateringsfrekvens för att matcha videoinnehållet, minskar hackighet och sparar batteri",
|
||||
"matchContentFrameRateDescription": "Matcha skärmens uppdateringsfrekvens med videoinnehållet",
|
||||
"matchRefreshRate": "Matcha uppdateringsfrekvens",
|
||||
"matchRefreshRateDescription": "Byt skärmens uppdateringsfrekvens för att matcha videoinnehåll i helskärm",
|
||||
"matchRefreshRateDescription": "Matcha skärmens uppdateringsfrekvens i helskärm",
|
||||
"matchDynamicRange": "Matcha dynamiskt omfång",
|
||||
"matchDynamicRangeDescription": "Aktivera HDR automatiskt för HDR-innehåll och återgå till SDR när spelaren stängs",
|
||||
"matchDynamicRangeDescription": "Slå på HDR för HDR-innehåll och sedan tillbaka till SDR",
|
||||
"displaySwitchDelay": "Fördröjning vid skärmbyte",
|
||||
"tunneledPlayback": "Tunneluppspelning",
|
||||
"tunneledPlaybackDescription": "Använd hårdvaruaccelererad videotunnling. Inaktivera om du ser en svart skärm med ljud vid HDR-innehåll",
|
||||
"tunneledPlaybackDescription": "Använd videotunnling. Inaktivera om HDR-uppspelning visar svart video.",
|
||||
"requireProfileSelectionOnOpen": "Fråga efter profil vid appstart",
|
||||
"requireProfileSelectionOnOpenDescription": "Visa profilval varje gång appen öppnas",
|
||||
"confirmExitOnBack": "Bekräfta innan avslut",
|
||||
"confirmExitOnBackDescription": "Visa en bekräftelsedialog när du trycker tillbaka för att avsluta appen",
|
||||
"forceTvMode": "Tvinga TV-läge",
|
||||
"forceTvModeDescription": "Använd TV-layouten oavsett automatisk identifiering. Användbart på Android TV-enheter som inte rapporterar leanback-funktionen. Startar om appen vid ändring.",
|
||||
"forceTvModeDescription": "Tvinga TV-layout. För enheter som inte upptäcks automatiskt. Kräver omstart.",
|
||||
"startInFullscreen": "Starta i helskärm",
|
||||
"startInFullscreenDescription": "Öppna Plezy i helskärm vid start",
|
||||
"autoHidePerformanceOverlay": "Dölj prestandaöverlagring automatiskt",
|
||||
@@ -251,15 +260,15 @@
|
||||
"showNavBarLabelsDescription": "Visa textetiketter under navigeringsfältets ikoner",
|
||||
"liveTvDefaultFavorites": "Standard till favoritkanaler",
|
||||
"liveTvDefaultFavoritesDescription": "Visa bara favoritkanaler när du öppnar Live TV",
|
||||
"display": "Display",
|
||||
"homeScreen": "Home Screen",
|
||||
"navigation": "Navigation",
|
||||
"window": "Window",
|
||||
"content": "Content",
|
||||
"player": "Player",
|
||||
"subtitlesAndConfig": "Subtitles & Configuration",
|
||||
"seekAndTiming": "Seek & Timing",
|
||||
"behavior": "Behavior"
|
||||
"display": "Skärm",
|
||||
"homeScreen": "Hemskärm",
|
||||
"navigation": "Navigering",
|
||||
"window": "Fönster",
|
||||
"content": "Innehåll",
|
||||
"player": "Spelare",
|
||||
"subtitlesAndConfig": "Undertexter och konfiguration",
|
||||
"seekAndTiming": "Sök och timing",
|
||||
"behavior": "Beteende"
|
||||
},
|
||||
"search": {
|
||||
"hint": "Sök filmer, serier, musik...",
|
||||
@@ -330,7 +339,7 @@
|
||||
"shufflePlay": "Blanda uppspelning",
|
||||
"fileInfo": "Filinformation",
|
||||
"deleteFromServer": "Ta bort från servern",
|
||||
"confirmDelete": "Detta kommer permanent ta bort detta media och dess filer från din server. Detta kan inte ångras.",
|
||||
"confirmDelete": "Ta bort detta media och dess filer från din server?",
|
||||
"deleteMultipleWarning": "Detta inkluderar alla avsnitt och deras filer.",
|
||||
"mediaDeletedSuccessfully": "Mediaobjekt borttaget",
|
||||
"mediaFailedToDelete": "Kunde inte ta bort mediaobjekt",
|
||||
@@ -414,7 +423,7 @@
|
||||
"pipErrors": {
|
||||
"androidVersion": "Kräver Android 8.0 eller nyare",
|
||||
"iosVersion": "Kräver iOS 15.0 eller nyare",
|
||||
"permissionDisabled": "Bild-i-bild-behörighet är inaktiverad. Aktivera den i Inställningar > Appar > Plezy > Bild-i-bild",
|
||||
"permissionDisabled": "Bild-i-bild är inaktiverat. Aktivera det i systeminställningarna.",
|
||||
"notSupported": "Denna enhet stöder inte bild-i-bild-läge",
|
||||
"voSwitchFailed": "Kunde inte byta videoutgång för bild-i-bild",
|
||||
"failed": "Bild-i-bild kunde inte starta",
|
||||
@@ -452,7 +461,7 @@
|
||||
"musicNotSupported": "Musikuppspelning stöds inte ännu",
|
||||
"noDescriptionAvailable": "Ingen beskrivning tillgänglig",
|
||||
"noProfilesAvailable": "Inga profiler tillgängliga",
|
||||
"contactAdminForProfiles": "Kontakta din Plex-administratör för att lägga till profiler",
|
||||
"contactAdminForProfiles": "Kontakta din serveradministratör för att lägga till profiler",
|
||||
"unableToDetermineLibrarySection": "Kan inte avgöra biblioteksavdelningen för detta objekt",
|
||||
"logsCleared": "Loggar rensade",
|
||||
"logsCopied": "Loggar kopierade till urklipp",
|
||||
@@ -474,7 +483,7 @@
|
||||
"failedPlayback": "Kunde inte ${action}: ${error}",
|
||||
"switchingToCompatiblePlayer": "Byter till kompatibel spelare...",
|
||||
"serverLimitTitle": "Uppspelningen misslyckades",
|
||||
"serverLimitBody": "Servern returnerade ett fel (HTTP 500). Det betyder oftast att serverägaren har satt en gräns för bandbredd eller transkodning som avvisar din session. Det finns inget du kan göra från klienten — serverägaren behöver justera sina inställningar.",
|
||||
"serverLimitBody": "Serverfel (HTTP 500). En bandbredds-/transkodningsgräns avvisade troligen sessionen. Be ägaren justera den.",
|
||||
"logsUploaded": "Loggar uppladdade",
|
||||
"logsUploadFailed": "Uppladdning av loggar misslyckades",
|
||||
"logId": "Logg-ID"
|
||||
@@ -513,12 +522,85 @@
|
||||
"dialog": {
|
||||
"confirmAction": "Bekräfta åtgärd"
|
||||
},
|
||||
"profiles": {
|
||||
"addPlezyProfile": "Lägg till Plezy-profil",
|
||||
"switchingProfile": "Byter profil…",
|
||||
"deleteThisProfileTitle": "Ta bort denna profil?",
|
||||
"deleteThisProfileMessage": "Ta bort ${displayName}. Anslutningar påverkas inte.",
|
||||
"active": "Aktiv",
|
||||
"manage": "Hantera",
|
||||
"delete": "Ta bort",
|
||||
"signOut": "Logga ut",
|
||||
"signOutPlexTitle": "Logga ut från Plex?",
|
||||
"signOutPlexMessage": "Ta bort ${displayName} och alla Plex Home-användare? Du kan logga in igen när som helst.",
|
||||
"signedOutPlex": "Utloggad från Plex.",
|
||||
"signOutFailed": "Utloggningen misslyckades.",
|
||||
"sectionTitle": "Profiler",
|
||||
"summarySingle": "Lägg till profiler för att blanda hanterade användare och lokala identiteter",
|
||||
"summaryMultipleWithActive": "${count} profiler · aktiv: ${activeName}",
|
||||
"summaryMultiple": "${count} profiler",
|
||||
"removeConnectionTitle": "Ta bort anslutning?",
|
||||
"removeConnectionMessage": "Ta bort ${displayName}s åtkomst till ${connectionLabel}. Andra profiler behåller den.",
|
||||
"deleteProfileTitle": "Ta bort profil?",
|
||||
"deleteProfileMessage": "Ta bort ${displayName} och dess anslutningar. Servrar förblir tillgängliga.",
|
||||
"profileNameLabel": "Profilnamn",
|
||||
"pinProtectionLabel": "PIN-skydd",
|
||||
"pinManagedByPlex": "PIN hanteras av Plex. Redigera på plex.tv.",
|
||||
"noPinSetEditOnPlex": "Ingen PIN angiven. För att kräva en, redigera Home-användaren på plex.tv.",
|
||||
"setPin": "Ange PIN",
|
||||
"setPinTitle": "Ange PIN",
|
||||
"confirmPinTitle": "Bekräfta PIN",
|
||||
"pinSet": "PIN angiven",
|
||||
"changePin": "Ändra",
|
||||
"removePin": "Ta bort",
|
||||
"connectionsLabel": "Anslutningar",
|
||||
"add": "Lägg till",
|
||||
"deleteProfileButton": "Ta bort profil",
|
||||
"noConnectionsHint": "Inga anslutningar — lägg till en för att använda den här profilen.",
|
||||
"noConnections": "Inga anslutningar",
|
||||
"plexHomeAccount": "Plex Home-konto",
|
||||
"connectionDefault": "Standard",
|
||||
"connectionAs": "som ${displayName}",
|
||||
"makeDefault": "Gör till standard",
|
||||
"removeConnection": "Ta bort",
|
||||
"profileRenamed": "Profilen har bytt namn.",
|
||||
"borrowAddTo": "Lägg till i ${displayName}",
|
||||
"borrowExplain": "Låna en annan profils anslutning. PIN-skyddade profiler kräver en PIN.",
|
||||
"borrowEmpty": "Inget att låna ännu.",
|
||||
"borrowEmptySubtitle": "Anslut Plex eller Jellyfin till en annan profil först.",
|
||||
"borrowFromProfile": "Från ${displayName}",
|
||||
"borrowConnectionBorrowed": "Anslutning lånad.",
|
||||
"borrowFailed": "Kunde inte låna anslutningen.",
|
||||
"incorrectPin": "Fel PIN.",
|
||||
"sourceProfileMissingParentAccount": "Källprofilen saknar sitt överordnade konto.",
|
||||
"failedToVerifyPin": "Kunde inte verifiera PIN.",
|
||||
"newProfile": "Ny profil",
|
||||
"profileNameHint": "t.ex. Gäster, Barn, Familjerum",
|
||||
"pinProtectionOptional": "PIN-skydd (valfritt)",
|
||||
"pinExplain": "4-siffrig PIN krävs för att byta profiler.",
|
||||
"continueButton": "Fortsätt",
|
||||
"pinsDontMatch": "PIN-koderna stämmer inte överens"
|
||||
},
|
||||
"connections": {
|
||||
"sectionTitle": "Anslutningar",
|
||||
"addConnection": "Lägg till anslutning",
|
||||
"addConnectionSubtitleNoProfile": "Logga in med Plex eller anslut en Jellyfin-server",
|
||||
"addConnectionSubtitleScoped": "Lägg till för ${displayName}: Plex, Jellyfin eller en annan profilanslutning",
|
||||
"sessionExpiredOne": "Sessionen har gått ut för ${name}",
|
||||
"sessionExpiredMany": "Sessionen har gått ut för ${count} servrar",
|
||||
"signInAgain": "Logga in igen"
|
||||
},
|
||||
"discover": {
|
||||
"title": "Upptäck",
|
||||
"switchProfile": "Byt profil",
|
||||
"noContentAvailable": "Inget innehåll tillgängligt",
|
||||
"addMediaToLibraries": "Lägg till media till dina bibliotek",
|
||||
"continueWatching": "Fortsätt titta",
|
||||
"continueWatchingIn": "Fortsätt titta i ${library}",
|
||||
"nextUp": "Nästa",
|
||||
"nextUpIn": "Nästa i ${library}",
|
||||
"recentlyAdded": "Nyligen tillagda",
|
||||
"recentlyAddedIn": "Nyligen tillagda i ${library}",
|
||||
"playEpisode": "S${season}E${episode}",
|
||||
"overview": "Översikt",
|
||||
"cast": "Rollbesättning",
|
||||
@@ -532,7 +614,7 @@
|
||||
"errors": {
|
||||
"searchFailed": "Sökning misslyckades: ${error}",
|
||||
"connectionTimeout": "Anslutnings-timeout vid laddning ${context}",
|
||||
"connectionFailed": "Kan inte ansluta till Plex-server",
|
||||
"connectionFailed": "Kan inte ansluta till mediaserver",
|
||||
"failedToLoad": "Misslyckades att ladda ${context}: ${error}",
|
||||
"noClientAvailable": "Ingen klient tillgänglig",
|
||||
"authenticationFailed": "Autentisering misslyckades: ${error}",
|
||||
@@ -540,7 +622,9 @@
|
||||
"pleaseEnterToken": "Vänligen ange en token",
|
||||
"invalidToken": "Ogiltig token",
|
||||
"failedToVerifyToken": "Misslyckades att verifiera token: ${error}",
|
||||
"failedToSwitchProfile": "Misslyckades att byta till ${displayName}"
|
||||
"failedToSwitchProfile": "Misslyckades att byta till ${displayName}",
|
||||
"failedToDeleteProfile": "Misslyckades att ta bort ${displayName}",
|
||||
"failedToRate": "Det gick inte att uppdatera betyget"
|
||||
},
|
||||
"libraries": {
|
||||
"title": "Bibliotek",
|
||||
@@ -595,17 +679,34 @@
|
||||
"seasons": "Säsonger",
|
||||
"episodes": "Avsnitt",
|
||||
"folders": "Mappar"
|
||||
},
|
||||
"filterCategories": {
|
||||
"genre": "Genre",
|
||||
"year": "År",
|
||||
"contentRating": "Åldersgräns",
|
||||
"tag": "Tagg"
|
||||
},
|
||||
"sortLabels": {
|
||||
"title": "Titel",
|
||||
"dateAdded": "Tillagd",
|
||||
"releaseDate": "Releasedatum",
|
||||
"rating": "Betyg",
|
||||
"lastPlayed": "Senast spelad",
|
||||
"playCount": "Antal spelningar",
|
||||
"random": "Slumpmässigt",
|
||||
"dateShared": "Delningsdatum",
|
||||
"latestEpisodeAirDate": "Senaste avsnittets sändningsdatum"
|
||||
}
|
||||
},
|
||||
"about": {
|
||||
"title": "Om",
|
||||
"openSourceLicenses": "Öppen källkod-licenser",
|
||||
"versionLabel": "Version ${version}",
|
||||
"appDescription": "En vacker Plex-klient för Flutter",
|
||||
"appDescription": "En vacker Plex- och Jellyfin-klient för Flutter",
|
||||
"viewLicensesDescription": "Visa licenser för tredjepartsbibliotek"
|
||||
},
|
||||
"serverSelection": {
|
||||
"allServerConnectionsFailed": "Misslyckades att ansluta till servrar. Kontrollera ditt nätverk och försök igen.",
|
||||
"allServerConnectionsFailed": "Kunde inte ansluta till några servrar. Kontrollera nätverket.",
|
||||
"noServersFoundForAccount": "Inga servrar hittades för ${username} (${email})",
|
||||
"failedToLoadServers": "Misslyckades att ladda servrar: ${error}"
|
||||
},
|
||||
@@ -642,6 +743,7 @@
|
||||
"reloadGuide": "Ladda om programguide",
|
||||
"now": "Nu",
|
||||
"today": "Idag",
|
||||
"tomorrow": "I morgon",
|
||||
"midnight": "Midnatt",
|
||||
"overnight": "Natt",
|
||||
"morning": "Morgon",
|
||||
@@ -655,7 +757,41 @@
|
||||
"joinSession": "Gå med i pågående session",
|
||||
"watchFromStart": "Titta från början (${minutes} min sedan)",
|
||||
"watchLive": "Titta live",
|
||||
"goToLive": "Gå till live"
|
||||
"goToLive": "Gå till live",
|
||||
"record": "Spela in",
|
||||
"recordEpisode": "Spela in avsnitt",
|
||||
"recordSeries": "Spela in serie",
|
||||
"recordOptions": "Inspelningsalternativ",
|
||||
"recordings": "Inspelningar",
|
||||
"scheduledRecordings": "Schemalagda",
|
||||
"recordingRules": "Inspelningsregler",
|
||||
"noScheduledRecordings": "Inga schemalagda inspelningar",
|
||||
"noRecordingRules": "Inga inspelningsregler än",
|
||||
"manageRecording": "Hantera inspelning",
|
||||
"cancelRecording": "Avbryt inspelning",
|
||||
"cancelRecordingTitle": "Avbryt denna inspelning?",
|
||||
"cancelRecordingMessage": "${title} kommer inte längre att spelas in.",
|
||||
"deleteRule": "Ta bort regel",
|
||||
"deleteRuleTitle": "Ta bort inspelningsregel?",
|
||||
"deleteRuleMessage": "Kommande avsnitt av ${title} kommer inte att spelas in.",
|
||||
"recordingScheduled": "Inspelning schemalagd",
|
||||
"alreadyScheduled": "Detta program är redan schemalagt",
|
||||
"dvrAdminRequired": "DVR-inställningar kräver ett administratörskonto",
|
||||
"recordingFailed": "Det gick inte att schemalägga inspelning",
|
||||
"recordingTargetMissing": "Det gick inte att hitta inspelningsbibliotek",
|
||||
"recordNotAvailable": "Inspelning är inte tillgänglig för detta program",
|
||||
"recordingCancelled": "Inspelning avbruten",
|
||||
"recordingRuleDeleted": "Inspelningsregel borttagen",
|
||||
"processRecordingRules": "Utvärdera regler igen",
|
||||
"loadingRecordings": "Laddar inspelningar ...",
|
||||
"recordingInProgress": "Spelar in nu",
|
||||
"recordingsCount": "${count} schemalagda",
|
||||
"editRule": "Redigera regel",
|
||||
"editRuleAction": "Redigera",
|
||||
"recordingRuleUpdated": "Inspelningsregel uppdaterad",
|
||||
"guideReloadRequested": "Begärde guidens uppdatering",
|
||||
"rulesProcessRequested": "Begärde regelutvärdering",
|
||||
"recordShow": "Spela in program"
|
||||
},
|
||||
"collections": {
|
||||
"title": "Samlingar",
|
||||
@@ -663,7 +799,7 @@
|
||||
"empty": "Samlingen är tom",
|
||||
"unknownLibrarySection": "Kan inte ta bort: okänd bibliotekssektion",
|
||||
"deleteCollection": "Ta bort samling",
|
||||
"deleteConfirm": "Är du säker på att du vill ta bort \"${title}\"? Detta går inte att ångra.",
|
||||
"deleteConfirm": "Ta bort \"${title}\"? Detta kan inte ångras.",
|
||||
"deleted": "Samling borttagen",
|
||||
"deleteFailed": "Det gick inte att ta bort samlingen",
|
||||
"deleteFailedWithError": "Det gick inte att ta bort samlingen: ${error}",
|
||||
@@ -747,11 +883,11 @@
|
||||
"pasteFromClipboard": "Klistra in från urklipp",
|
||||
"pleaseEnterCode": "Vänligen ange en sessionskod",
|
||||
"codeMustBe5Chars": "Sessionskod måste vara 5 tecken",
|
||||
"joinInstructions": "Ange sessionskoden som delats av värden för att gå med i deras tittarsession.",
|
||||
"joinInstructions": "Ange värdens sessionskod för att gå med.",
|
||||
"failedToCreate": "Det gick inte att skapa session",
|
||||
"failedToJoin": "Det gick inte att gå med i session",
|
||||
"sessionCodeCopied": "Sessionskod kopierad till urklipp",
|
||||
"relayUnreachable": "Reläservern kan inte nås. Detta kan bero på att din internetleverantör blockerar anslutningen. Du kan fortfarande försöka, men Watch Together kanske inte fungerar.",
|
||||
"relayUnreachable": "Relay-servern kan inte nås. ISP-blockering kan hindra Watch Together.",
|
||||
"reconnectingToHost": "Återansluter till värd...",
|
||||
"currentPlayback": "Aktuell uppspelning",
|
||||
"joinCurrentPlayback": "Gå med i aktuell uppspelning",
|
||||
@@ -766,7 +902,9 @@
|
||||
"waitingForParticipants": "Väntar på att andra laddar...",
|
||||
"recentRooms": "Senaste rum",
|
||||
"renameRoom": "Byt namn på rum",
|
||||
"removeRoom": "Ta bort"
|
||||
"removeRoom": "Ta bort",
|
||||
"guestSwitchUnavailable": "Kunde inte byta — server inte tillgänglig för synkronisering",
|
||||
"guestSwitchFailed": "Kunde inte byta — innehåll hittades inte på denna server"
|
||||
},
|
||||
"downloads": {
|
||||
"title": "Nedladdningar",
|
||||
@@ -779,10 +917,10 @@
|
||||
"deleteDownload": "Ta bort nedladdning",
|
||||
"retryDownload": "Försök igen",
|
||||
"downloadQueued": "Nedladdning köad",
|
||||
"serverErrorBitrate": "Serverfel — filen överskrider möjligen gränsen för fjärrströmning-bitrate",
|
||||
"serverErrorBitrate": "Serverfel: filen kan överskrida gränsen för fjärrbitrate",
|
||||
"episodesQueued": "${count} avsnitt köade för nedladdning",
|
||||
"downloadDeleted": "Nedladdning borttagen",
|
||||
"deleteConfirm": "Är du säker på att du vill ta bort \"${title}\"? Den nedladdade filen kommer att tas bort från din enhet.",
|
||||
"deleteConfirm": "Ta bort \"${title}\" från den här enheten?",
|
||||
"deletingWithProgress": "Tar bort ${title}... (${current} av ${total})",
|
||||
"deleting": "Tar bort...",
|
||||
"queuedTooltip": "I kö",
|
||||
@@ -817,6 +955,12 @@
|
||||
"editSyncFilter": "Synkroniseringsfilter",
|
||||
"syncAllItems": "Synkroniserar alla objekt",
|
||||
"syncUnwatchedItems": "Synkroniserar osedda objekt",
|
||||
"syncRuleServerContext": "Server: ${server} • ${status}",
|
||||
"syncRuleAvailable": "Tillgänglig",
|
||||
"syncRuleOffline": "Offline",
|
||||
"syncRuleSignInRequired": "Inloggning krävs",
|
||||
"syncRuleNotAvailableForProfile": "Inte tillgänglig för aktuell profil",
|
||||
"syncRuleUnknownServer": "Okänd server",
|
||||
"syncRuleListCreated": "Synkroniseringsregel skapad"
|
||||
},
|
||||
"shaders": {
|
||||
@@ -846,7 +990,7 @@
|
||||
"connected": "Ansluten",
|
||||
"serverRunning": "Fjärrserver aktiv",
|
||||
"serverStopped": "Fjärrserver stoppad",
|
||||
"serverRunningDescription": "Mobila enheter i ditt nätverk kan upptäcka och ansluta till denna app",
|
||||
"serverRunningDescription": "Mobila enheter i ditt nätverk kan ansluta till den här appen",
|
||||
"serverStoppedDescription": "Starta servern för att tillåta mobila enheter att ansluta",
|
||||
"usePhoneToControl": "Använd din mobila enhet för att styra denna app",
|
||||
"startServer": "Starta server",
|
||||
@@ -854,20 +998,20 @@
|
||||
"minimize": "Minimera"
|
||||
},
|
||||
"pairing": {
|
||||
"discoveryDescription": "Enheter i ditt nätverk som kör Plezy med samma Plex-konto visas automatiskt",
|
||||
"discoveryDescription": "Plezy-enheter med samma Plex-konto visas här",
|
||||
"hostAddressHint": "192.168.1.100:48632",
|
||||
"connecting": "Ansluter...",
|
||||
"searchingForDevices": "Söker efter enheter...",
|
||||
"noDevicesFound": "Inga enheter hittades i ditt nätverk",
|
||||
"noDevicesHint": "Se till att Plezy är öppet på din dator och att båda enheterna är på samma WiFi-nätverk",
|
||||
"noDevicesHint": "Öppna Plezy på desktop och använd samma WiFi",
|
||||
"availableDevices": "Tillgängliga enheter",
|
||||
"manualConnection": "Manuell anslutning",
|
||||
"cryptoInitFailed": "Kunde inte initiera säker anslutning. Se till att du är inloggad på ett Plex-konto.",
|
||||
"cryptoInitFailed": "Kunde inte starta säker anslutning. Logga in på Plex först.",
|
||||
"validationHostRequired": "Ange värdadress",
|
||||
"validationHostFormat": "Format måste vara IP:port (t.ex. 192.168.1.100:48632)",
|
||||
"connectionTimedOut": "Anslutningen tog för lång tid. Se till att båda enheterna är på samma nätverk.",
|
||||
"sessionNotFound": "Kunde inte hitta enheten. Se till att Plezy körs på värden.",
|
||||
"authFailed": "Autentisering misslyckades. Se till att båda enheterna använder samma Plex-konto.",
|
||||
"connectionTimedOut": "Anslutningen tog för lång tid. Använd samma nätverk på båda enheter.",
|
||||
"sessionNotFound": "Enhet hittades inte. Kontrollera att Plezy körs på värden.",
|
||||
"authFailed": "Autentisering misslyckades. Båda enheter behöver samma Plex-konto.",
|
||||
"failedToConnect": "Kunde inte ansluta: ${error}"
|
||||
},
|
||||
"remote": {
|
||||
@@ -915,7 +1059,7 @@
|
||||
"externalPlayer": {
|
||||
"title": "Extern spelare",
|
||||
"useExternalPlayer": "Använd extern spelare",
|
||||
"useExternalPlayerDescription": "Öppna videor i en extern app istället för den inbyggda spelaren",
|
||||
"useExternalPlayerDescription": "Öppna videor i en annan app",
|
||||
"selectPlayer": "Välj spelare",
|
||||
"customPlayers": "Anpassade spelare",
|
||||
"systemDefault": "Systemstandard",
|
||||
@@ -1009,7 +1153,7 @@
|
||||
"match": "Matcha...",
|
||||
"fixMatch": "Rätta matchning...",
|
||||
"unmatch": "Ta bort matchning",
|
||||
"unmatchConfirm": "Ta bort den aktuella matchningen för det här objektet? Plex behandlar det som omatchat tills du matchar det igen.",
|
||||
"unmatchConfirm": "Rensa denna matchning? Plex behandlar den som omatchad tills den matchas igen.",
|
||||
"unmatchSuccess": "Matchning borttagen",
|
||||
"unmatchFailed": "Det gick inte att ta bort matchningen",
|
||||
"matchApplied": "Matchning tillämpad",
|
||||
@@ -1029,7 +1173,7 @@
|
||||
"connected": "Ansluten",
|
||||
"connectedAs": "Ansluten som @${username}",
|
||||
"disconnectConfirm": "Koppla från Trakt-konto?",
|
||||
"disconnectConfirmBody": "Plezy slutar skicka uppspelningshändelser till Trakt. Du kan ansluta igen när som helst.",
|
||||
"disconnectConfirmBody": "Plezy slutar skicka händelser till Trakt. Du kan återansluta när som helst.",
|
||||
"scrobble": "Realtids-scrobbling",
|
||||
"scrobbleDescription": "Skicka uppspelnings-, paus- och stopphändelser till Trakt under uppspelning.",
|
||||
"watchedSync": "Synkronisera tittad-status",
|
||||
@@ -1037,13 +1181,13 @@
|
||||
},
|
||||
"trackers": {
|
||||
"title": "Spårare",
|
||||
"hubSubtitle": "Håll ditt tittarprogress synkroniserat med Trakt och andra tjänster.",
|
||||
"hubSubtitle": "Synka tittförlopp med Trakt och andra tjänster.",
|
||||
"notConnected": "Ej ansluten",
|
||||
"connectedAs": "Ansluten som @${username}",
|
||||
"scrobble": "Spåra framsteg automatiskt",
|
||||
"scrobbleDescription": "Uppdaterar din lista när du är klar med ett avsnitt eller en film.",
|
||||
"disconnectConfirm": "Koppla från ${service}?",
|
||||
"disconnectConfirmBody": "Plezy slutar uppdatera din ${service}-lista. Du kan ansluta igen när som helst.",
|
||||
"disconnectConfirmBody": "Plezy slutar uppdatera ${service}. Återanslut när som helst.",
|
||||
"connectFailed": "Kunde inte ansluta till ${service}. Försök igen.",
|
||||
"services": {
|
||||
"mal": "MyAnimeList",
|
||||
@@ -1059,7 +1203,7 @@
|
||||
},
|
||||
"oauthProxy": {
|
||||
"title": "Logga in på ${service}",
|
||||
"body": "Skanna den här QR-koden med din telefon, eller öppna URL:en nedan på en enhet med webbläsare.",
|
||||
"body": "Skanna den här QR-koden eller öppna URL:en på valfri enhet.",
|
||||
"openToSignIn": "Öppna ${service} för att logga in",
|
||||
"urlCopied": "URL kopierad"
|
||||
},
|
||||
@@ -1077,5 +1221,39 @@
|
||||
"libraries": "Bibliotek",
|
||||
"noLibraries": "Inga bibliotek tillgängliga"
|
||||
}
|
||||
},
|
||||
"addServer": {
|
||||
"addJellyfinTitle": "Lägg till Jellyfin-server",
|
||||
"jellyfinUrlIntro": "Ange server-URL, t.ex. `https://jellyfin.example.com`.",
|
||||
"serverUrl": "Server-URL",
|
||||
"findServer": "Hitta server",
|
||||
"username": "Användarnamn",
|
||||
"password": "Lösenord",
|
||||
"signIn": "Logga in",
|
||||
"change": "Ändra",
|
||||
"required": "Krävs",
|
||||
"couldNotReachServer": "Kunde inte nå servern: ${error}",
|
||||
"signInFailed": "Inloggning misslyckades: ${error}",
|
||||
"quickConnectFailed": "Quick Connect misslyckades: ${error}",
|
||||
"addPlexTitle": "Logga in med Plex",
|
||||
"plexAuthIntro": "Logga in med en webbläsare eller QR-kod.",
|
||||
"plexQRPrompt": "Skanna denna QR-kod för att logga in.",
|
||||
"waitingForPlexConfirmation": "Väntar på att plex.tv ska bekräfta inloggningen…",
|
||||
"pinExpired": "PIN-koden gick ut innan inloggning. Försök igen.",
|
||||
"duplicatePlexAccount": "Redan inloggad på Plex. Logga ut för att byta konto.",
|
||||
"failedToRegisterAccount": "Kunde inte registrera kontot: ${error}",
|
||||
"enterJellyfinUrlError": "Ange URL till din Jellyfin-server",
|
||||
"addConnectionTitle": "Lägg till anslutning",
|
||||
"addConnectionTitleScoped": "Lägg till i ${name}",
|
||||
"addConnectionIntroGlobal": "Lägg till en annan medieserver. Plex och Jellyfin visas tillsammans på Hem.",
|
||||
"addConnectionIntroScoped": "Lägg till en ny server, eller låna en från en annan profil.",
|
||||
"signInWithPlexCard": "Logga in med Plex",
|
||||
"signInWithPlexCardSubtitle": "Auktorisera den här enheten. Delade servrar läggs till.",
|
||||
"signInWithPlexCardSubtitleScoped": "Auktorisera ett Plex-konto. Home-användare blir profiler.",
|
||||
"connectToJellyfinCard": "Anslut till Jellyfin",
|
||||
"connectToJellyfinCardSubtitle": "Ange server-URL, användarnamn och lösenord.",
|
||||
"connectToJellyfinCardSubtitleScoped": "Logga in på en Jellyfin-server. Kopplas till ${name}.",
|
||||
"borrowFromAnotherProfile": "Låna från en annan profil",
|
||||
"borrowFromAnotherProfileSubtitle": "Återanvänd en annan profils anslutning. PIN-skyddade profiler kräver en PIN."
|
||||
}
|
||||
}
|
||||
|
||||
+245
-67
@@ -3,13 +3,22 @@
|
||||
"title": "Plezy"
|
||||
},
|
||||
"auth": {
|
||||
"signIn": "登录",
|
||||
"signInWithPlex": "使用 Plex 登录",
|
||||
"showQRCode": "显示二维码",
|
||||
"authenticate": "验证",
|
||||
"authenticationTimeout": "验证超时。请重试。",
|
||||
"scanQRToSignIn": "扫描二维码登录",
|
||||
"waitingForAuth": "等待验证中...\n请在你的浏览器中完成登录。",
|
||||
"useBrowser": "使用浏览器"
|
||||
"waitingForAuth": "正在等待认证...\n请在浏览器中登录。",
|
||||
"useBrowser": "使用浏览器",
|
||||
"or": "或",
|
||||
"connectToJellyfin": "连接到 Jellyfin",
|
||||
"useQuickConnect": "使用 Quick Connect",
|
||||
"quickConnectCode": "Quick Connect 代码",
|
||||
"quickConnectInstructions": "在 Jellyfin 中打开 Quick Connect 并输入此代码。",
|
||||
"quickConnectWaiting": "等待批准…",
|
||||
"quickConnectCancel": "取消",
|
||||
"quickConnectExpired": "Quick Connect 已过期。请重试。"
|
||||
},
|
||||
"common": {
|
||||
"cancel": "取消",
|
||||
@@ -43,9 +52,6 @@
|
||||
"mute": "静音",
|
||||
"ok": "确定",
|
||||
"reconnect": "重新连接",
|
||||
"exitConfirmTitle": "退出应用?",
|
||||
"exitConfirmMessage": "确定要退出吗?",
|
||||
"dontAskAgain": "不再询问",
|
||||
"exit": "退出",
|
||||
"viewAll": "查看全部",
|
||||
"checkingNetwork": "正在检查网络...",
|
||||
@@ -55,7 +61,8 @@
|
||||
"startingOfflineMode": "正在启动离线模式...",
|
||||
"loading": "加载中...",
|
||||
"fullscreen": "全屏",
|
||||
"exitFullscreen": "退出全屏"
|
||||
"exitFullscreen": "退出全屏",
|
||||
"pressBackAgainToExit": "再按一次返回退出"
|
||||
},
|
||||
"screens": {
|
||||
"licenses": "许可证",
|
||||
@@ -104,22 +111,22 @@
|
||||
"gridView": "网格视图",
|
||||
"listView": "列表视图",
|
||||
"showHeroSection": "显示主要精选区",
|
||||
"useGlobalHubs": "使用 Plex 主页布局",
|
||||
"useGlobalHubsDescription": "显示与官方 Plex 客户端相同的主页推荐。关闭时将显示按媒体库分类的推荐。",
|
||||
"useGlobalHubs": "使用主页布局",
|
||||
"useGlobalHubsDescription": "显示统一主页中心。否则使用资料库推荐。",
|
||||
"showServerNameOnHubs": "在推荐栏显示服务器名称",
|
||||
"showServerNameOnHubsDescription": "始终在推荐栏标题中显示服务器名称。关闭时仅在推荐栏名称重复时显示。",
|
||||
"showServerNameOnHubsDescription": "始终在中心标题中显示服务器名称。",
|
||||
"groupLibrariesByServer": "按服务器分组媒体库",
|
||||
"groupLibrariesByServerDescription": "当您连接到多个服务器时,在侧边栏中为每个 Plex 服务器显示一个标题。",
|
||||
"groupLibrariesByServerDescription": "按媒体服务器分组侧边栏资料库。",
|
||||
"alwaysKeepSidebarOpen": "始终保持侧边栏展开",
|
||||
"alwaysKeepSidebarOpenDescription": "侧边栏保持展开状态,内容区域自动调整",
|
||||
"showUnwatchedCount": "显示未观看数量",
|
||||
"showUnwatchedCountDescription": "在剧集和季上显示未观看的集数",
|
||||
"showEpisodeNumberOnCards": "在卡片上显示集数",
|
||||
"showEpisodeNumberOnCardsDescription": "在剧集卡片上,季号旁同时显示集数(例如 S2 E3)",
|
||||
"showEpisodeNumberOnCardsDescription": "在剧集卡片上显示季和集编号",
|
||||
"showSeasonPostersOnTabs": "在选项卡上显示季海报",
|
||||
"showSeasonPostersOnTabsDescription": "在剧集详情页中,每个季选项卡的上方显示该季的海报",
|
||||
"showSeasonPostersOnTabsDescription": "在每季标签上方显示该季海报",
|
||||
"hideSpoilers": "隐藏未看剧集的剧透内容",
|
||||
"hideSpoilersDescription": "模糊未观看剧集的缩略图并隐藏其描述",
|
||||
"hideSpoilersDescription": "模糊未观看剧集的缩略图和描述",
|
||||
"playerBackend": "播放器引擎",
|
||||
"exoPlayer": "ExoPlayer(推荐)",
|
||||
"mpv": "mpv",
|
||||
@@ -128,7 +135,7 @@
|
||||
"bufferSize": "缓冲区大小",
|
||||
"bufferSizeMB": "${size}MB",
|
||||
"bufferSizeAuto": "自动(推荐)",
|
||||
"bufferSizeWarning": "您的设备有 ${heap}MB 内存。${size}MB 的缓冲区可能导致播放问题。",
|
||||
"bufferSizeWarning": "可用内存 ${heap}MB。${size}MB 缓冲可能影响播放。",
|
||||
"defaultQualityTitle": "默认画质",
|
||||
"defaultQualityDescription": "开始播放时使用。较低的值可减少带宽。",
|
||||
"subtitleStyling": "字幕样式",
|
||||
@@ -140,16 +147,18 @@
|
||||
"defaultSleepTimer": "默认睡眠定时器",
|
||||
"minutesUnit": "${minutes} 分钟",
|
||||
"rememberTrackSelections": "记住每个剧集/电影的音轨选择",
|
||||
"rememberTrackSelectionsDescription": "在播放过程中更改音轨时自动保存音频和字幕语言偏好",
|
||||
"rememberTrackSelectionsDescription": "记住每个标题的音频和字幕选择",
|
||||
"showChapterMarkersOnTimeline": "在进度条上显示章节标记",
|
||||
"showChapterMarkersOnTimelineDescription": "按章节边界分段显示进度条",
|
||||
"clickVideoTogglesPlayback": "点击视频可切换播放/暂停",
|
||||
"clickVideoTogglesPlaybackDescription": "如果启用此选项,点击视频播放器将播放或暂停视频。否则,点击将显示或隐藏播放控件",
|
||||
"clickVideoTogglesPlaybackDescription": "点击视频进行播放/暂停,而不是显示控制项。",
|
||||
"videoPlayerControls": "视频播放器控制",
|
||||
"keyboardShortcuts": "键盘快捷键",
|
||||
"keyboardShortcutsDescription": "自定义键盘快捷键",
|
||||
"videoPlayerNavigation": "视频播放器导航",
|
||||
"videoPlayerNavigationDescription": "使用方向键导航视频播放器控件",
|
||||
"watchTogetherRelay": "一起看中继服务器",
|
||||
"watchTogetherRelayDescription": "设置一起看的自定义中继服务器。所有参与者必须使用相同的服务器。",
|
||||
"watchTogetherRelayDescription": "设置自定义中继。所有人必须使用同一服务器。",
|
||||
"watchTogetherRelayHint": "https://my-relay.example.com",
|
||||
"crashReporting": "崩溃报告",
|
||||
"crashReportingDescription": "发送崩溃报告以帮助改进应用",
|
||||
@@ -158,10 +167,10 @@
|
||||
"viewLogs": "查看日志",
|
||||
"viewLogsDescription": "查看应用程序日志",
|
||||
"clearCache": "清除缓存",
|
||||
"clearCacheDescription": "这将清除所有缓存的图片和数据。清除缓存后,应用程序加载内容可能会变慢。",
|
||||
"clearCacheDescription": "清除缓存的图片和数据。内容加载可能变慢。",
|
||||
"clearCacheSuccess": "缓存清除成功",
|
||||
"resetSettings": "重置设置",
|
||||
"resetSettingsDescription": "这会将所有设置重置为其默认值。此操作无法撤销。",
|
||||
"resetSettingsDescription": "恢复默认设置。此操作无法撤销。",
|
||||
"resetSettingsSuccess": "设置重置成功",
|
||||
"backup": "备份",
|
||||
"exportSettings": "导出设置",
|
||||
@@ -182,7 +191,7 @@
|
||||
"updateAvailable": "有可用更新",
|
||||
"checkForUpdates": "检查更新",
|
||||
"autoCheckUpdatesOnStartup": "启动时自动检查更新",
|
||||
"autoCheckUpdatesOnStartupDescription": "启动时如有新版本可用则显示通知",
|
||||
"autoCheckUpdatesOnStartupDescription": "启动时有可用更新则通知",
|
||||
"validationErrorEnterNumber": "请输入一个有效的数字",
|
||||
"validationErrorDuration": "时长必须介于 ${min} 和 ${max} ${unit} 之间",
|
||||
"shortcutAlreadyAssigned": "快捷键已被分配给 ${action}",
|
||||
@@ -192,6 +201,8 @@
|
||||
"autoSkipIntroDescription": "几秒钟后自动跳过片头标记",
|
||||
"autoSkipCredits": "自动跳过片尾",
|
||||
"autoSkipCreditsDescription": "自动跳过片尾并播放下一集",
|
||||
"forceSkipMarkerFallback": "强制使用备用标记",
|
||||
"forceSkipMarkerFallbackDescription": "即使 Plex 有标记,也使用章节标题模式",
|
||||
"autoSkipDelay": "自动跳过延迟",
|
||||
"autoSkipDelayDescription": "自动跳过前等待 ${seconds} 秒",
|
||||
"introPattern": "片头标记模式",
|
||||
@@ -213,8 +224,8 @@
|
||||
"downloadOnWifiOnly": "仅在 WiFi 时下载",
|
||||
"downloadOnWifiOnlyDescription": "使用蜂窝数据时禁止下载",
|
||||
"autoRemoveWatchedDownloads": "自动移除已观看的下载",
|
||||
"autoRemoveWatchedDownloadsDescription": "当剧集和电影被标记为已观看时自动删除下载内容",
|
||||
"cellularDownloadBlocked": "蜂窝数据下已禁用下载。请连接 WiFi 或更改设置。",
|
||||
"autoRemoveWatchedDownloadsDescription": "自动删除已观看的下载",
|
||||
"cellularDownloadBlocked": "蜂窝网络下已阻止下载。请使用 WiFi 或更改设置。",
|
||||
"maxVolume": "最大音量",
|
||||
"maxVolumeDescription": "允许音量超过 100% 以适应安静的媒体",
|
||||
"maxVolumePercent": "${percent}%",
|
||||
@@ -227,22 +238,20 @@
|
||||
"companionRemoteServer": "配套遥控服务器",
|
||||
"companionRemoteServerDescription": "允许网络上的移动设备控制此应用",
|
||||
"autoPip": "自动画中画",
|
||||
"autoPipDescription": "在播放期间离开应用时自动进入画中画模式",
|
||||
"autoPipDescription": "播放时离开会进入画中画",
|
||||
"matchContentFrameRate": "匹配内容帧率",
|
||||
"matchContentFrameRateDescription": "调整显示刷新率以匹配视频内容,减少画面抖动并节省电量",
|
||||
"matchContentFrameRateDescription": "将显示刷新率匹配到视频内容",
|
||||
"matchRefreshRate": "匹配刷新率",
|
||||
"matchRefreshRateDescription": "全屏时切换显示刷新率以匹配视频内容",
|
||||
"matchRefreshRateDescription": "全屏时匹配显示刷新率",
|
||||
"matchDynamicRange": "匹配动态范围",
|
||||
"matchDynamicRangeDescription": "自动为HDR内容启用HDR,退出播放器时恢复为SDR",
|
||||
"matchDynamicRangeDescription": "HDR 内容切换到 HDR,随后切回 SDR",
|
||||
"displaySwitchDelay": "显示切换延迟",
|
||||
"tunneledPlayback": "通道化播放",
|
||||
"tunneledPlaybackDescription": "使用硬件加速视频通道。如果在 HDR 内容上看到黑屏但有声音,请禁用此选项",
|
||||
"tunneledPlaybackDescription": "使用视频隧道。若 HDR 播放出现黑屏,请禁用。",
|
||||
"requireProfileSelectionOnOpen": "打开应用时询问配置文件",
|
||||
"requireProfileSelectionOnOpenDescription": "每次打开应用时显示配置文件选择",
|
||||
"confirmExitOnBack": "退出前确认",
|
||||
"confirmExitOnBackDescription": "按返回键退出应用时显示确认对话框",
|
||||
"forceTvMode": "强制 TV 模式",
|
||||
"forceTvModeDescription": "无论自动检测结果如何都使用 TV 布局。适用于未报告 leanback 功能的 Android TV 设备。更改后将重启应用。",
|
||||
"forceTvModeDescription": "强制 TV 布局。适用于无法自动检测的设备。需要重启。",
|
||||
"startInFullscreen": "以全屏模式启动",
|
||||
"startInFullscreenDescription": "启动时以全屏模式打开 Plezy",
|
||||
"autoHidePerformanceOverlay": "自动隐藏性能叠加层",
|
||||
@@ -251,15 +260,15 @@
|
||||
"showNavBarLabelsDescription": "在导航栏图标下方显示文字标签",
|
||||
"liveTvDefaultFavorites": "默认显示收藏频道",
|
||||
"liveTvDefaultFavoritesDescription": "打开直播电视时仅显示收藏频道",
|
||||
"display": "Display",
|
||||
"homeScreen": "Home Screen",
|
||||
"navigation": "Navigation",
|
||||
"window": "Window",
|
||||
"content": "Content",
|
||||
"player": "Player",
|
||||
"subtitlesAndConfig": "Subtitles & Configuration",
|
||||
"seekAndTiming": "Seek & Timing",
|
||||
"behavior": "Behavior"
|
||||
"display": "显示",
|
||||
"homeScreen": "主屏幕",
|
||||
"navigation": "导航",
|
||||
"window": "窗口",
|
||||
"content": "内容",
|
||||
"player": "播放器",
|
||||
"subtitlesAndConfig": "字幕与配置",
|
||||
"seekAndTiming": "跳转与计时",
|
||||
"behavior": "行为"
|
||||
},
|
||||
"search": {
|
||||
"hint": "搜索电影、系列、音乐...",
|
||||
@@ -330,7 +339,7 @@
|
||||
"shufflePlay": "随机播放",
|
||||
"fileInfo": "文件信息",
|
||||
"deleteFromServer": "从服务器删除",
|
||||
"confirmDelete": "这将永久删除此媒体及其文件。此操作无法撤销。",
|
||||
"confirmDelete": "要从服务器删除此媒体及其文件吗?",
|
||||
"deleteMultipleWarning": "这包括所有剧集及其文件。",
|
||||
"mediaDeletedSuccessfully": "媒体项已成功删除",
|
||||
"mediaFailedToDelete": "删除媒体项失败",
|
||||
@@ -414,7 +423,7 @@
|
||||
"pipErrors": {
|
||||
"androidVersion": "需要 Android 8.0 或更高版本",
|
||||
"iosVersion": "需要 iOS 15.0 或更高版本",
|
||||
"permissionDisabled": "画中画权限已禁用。请在设置 > 应用 > Plezy > 画中画中启用",
|
||||
"permissionDisabled": "画中画已禁用。请在系统设置中启用。",
|
||||
"notSupported": "此设备不支持画中画模式",
|
||||
"voSwitchFailed": "无法切换画中画的视频输出",
|
||||
"failed": "画中画启动失败",
|
||||
@@ -452,7 +461,7 @@
|
||||
"musicNotSupported": "尚不支持播放音乐",
|
||||
"noDescriptionAvailable": "暂无描述",
|
||||
"noProfilesAvailable": "没有可用的用户",
|
||||
"contactAdminForProfiles": "请联系您的 Plex 管理员添加用户",
|
||||
"contactAdminForProfiles": "请联系服务器管理员添加用户配置",
|
||||
"unableToDetermineLibrarySection": "无法确定此项目的库分区",
|
||||
"logsCleared": "日志已清除",
|
||||
"logsCopied": "日志已复制到剪贴板",
|
||||
@@ -474,7 +483,7 @@
|
||||
"failedPlayback": "无法${action}: ${error}",
|
||||
"switchingToCompatiblePlayer": "正在切换到兼容的播放器...",
|
||||
"serverLimitTitle": "播放失败",
|
||||
"serverLimitBody": "服务器返回了错误 (HTTP 500)。这通常意味着服务器所有者设置了带宽或转码限制,正在拒绝你的会话。客户端无法解决此问题 — 需要服务器所有者调整其设置。",
|
||||
"serverLimitBody": "服务器错误 (HTTP 500)。带宽/转码限制可能拒绝了此会话。请让所有者调整。",
|
||||
"logsUploaded": "日志已上传",
|
||||
"logsUploadFailed": "上传日志失败",
|
||||
"logId": "日志 ID"
|
||||
@@ -513,12 +522,85 @@
|
||||
"dialog": {
|
||||
"confirmAction": "确认操作"
|
||||
},
|
||||
"profiles": {
|
||||
"addPlezyProfile": "添加 Plezy 配置文件",
|
||||
"switchingProfile": "切换配置文件中…",
|
||||
"deleteThisProfileTitle": "删除此配置文件?",
|
||||
"deleteThisProfileMessage": "移除 ${displayName}。连接不会受影响。",
|
||||
"active": "活跃",
|
||||
"manage": "管理",
|
||||
"delete": "删除",
|
||||
"signOut": "退出登录",
|
||||
"signOutPlexTitle": "退出 Plex 登录?",
|
||||
"signOutPlexMessage": "要移除 ${displayName} 和所有 Plex Home 用户吗?可随时重新登录。",
|
||||
"signedOutPlex": "已退出 Plex 登录。",
|
||||
"signOutFailed": "退出登录失败。",
|
||||
"sectionTitle": "配置文件",
|
||||
"summarySingle": "添加配置文件以混合托管用户和本地身份",
|
||||
"summaryMultipleWithActive": "${count} 个配置文件 · 活跃:${activeName}",
|
||||
"summaryMultiple": "${count} 个配置文件",
|
||||
"removeConnectionTitle": "移除连接?",
|
||||
"removeConnectionMessage": "移除 ${displayName} 对 ${connectionLabel} 的访问。其他个人资料仍保留。",
|
||||
"deleteProfileTitle": "删除配置文件?",
|
||||
"deleteProfileMessage": "移除 ${displayName} 及其连接。服务器仍可用。",
|
||||
"profileNameLabel": "配置文件名称",
|
||||
"pinProtectionLabel": "PIN 保护",
|
||||
"pinManagedByPlex": "PIN 由 Plex 管理。在 plex.tv 上编辑。",
|
||||
"noPinSetEditOnPlex": "未设置 PIN。如需要求 PIN,请在 plex.tv 上编辑 Home 用户。",
|
||||
"setPin": "设置 PIN",
|
||||
"setPinTitle": "设置 PIN",
|
||||
"confirmPinTitle": "确认 PIN",
|
||||
"pinSet": "已设置 PIN",
|
||||
"changePin": "更改",
|
||||
"removePin": "移除",
|
||||
"connectionsLabel": "连接",
|
||||
"add": "添加",
|
||||
"deleteProfileButton": "删除配置文件",
|
||||
"noConnectionsHint": "没有连接 — 添加一个以使用此配置文件。",
|
||||
"noConnections": "没有连接",
|
||||
"plexHomeAccount": "Plex Home 账户",
|
||||
"connectionDefault": "默认",
|
||||
"connectionAs": "以 ${displayName} 身份",
|
||||
"makeDefault": "设为默认",
|
||||
"removeConnection": "移除",
|
||||
"profileRenamed": "个人资料已重命名。",
|
||||
"borrowAddTo": "添加到 ${displayName}",
|
||||
"borrowExplain": "借用另一个个人资料的连接。受 PIN 保护的个人资料需要 PIN。",
|
||||
"borrowEmpty": "暂无可借用的内容。",
|
||||
"borrowEmptySubtitle": "请先将 Plex 或 Jellyfin 连接到另一个个人资料。",
|
||||
"borrowFromProfile": "来自 ${displayName}",
|
||||
"borrowConnectionBorrowed": "已借用连接。",
|
||||
"borrowFailed": "无法借用连接。",
|
||||
"incorrectPin": "PIN 不正确。",
|
||||
"sourceProfileMissingParentAccount": "源个人资料缺少其父账号。",
|
||||
"failedToVerifyPin": "无法验证 PIN。",
|
||||
"newProfile": "新建配置文件",
|
||||
"profileNameHint": "例如:访客、儿童、家庭房",
|
||||
"pinProtectionOptional": "PIN 保护(可选)",
|
||||
"pinExplain": "切换个人资料需要 4 位 PIN。",
|
||||
"continueButton": "继续",
|
||||
"pinsDontMatch": "PIN 不匹配"
|
||||
},
|
||||
"connections": {
|
||||
"sectionTitle": "连接",
|
||||
"addConnection": "添加连接",
|
||||
"addConnectionSubtitleNoProfile": "使用 Plex 登录或连接 Jellyfin 服务器",
|
||||
"addConnectionSubtitleScoped": "添加到 ${displayName}: Plex、Jellyfin 或其他个人资料连接",
|
||||
"sessionExpiredOne": "${name} 的会话已过期",
|
||||
"sessionExpiredMany": "${count} 个服务器的会话已过期",
|
||||
"signInAgain": "重新登录"
|
||||
},
|
||||
"discover": {
|
||||
"title": "发现",
|
||||
"switchProfile": "切换用户",
|
||||
"noContentAvailable": "没有可用内容",
|
||||
"addMediaToLibraries": "请向你的媒体库添加一些媒体",
|
||||
"continueWatching": "继续观看",
|
||||
"continueWatchingIn": "${library} 中继续观看",
|
||||
"nextUp": "接下来",
|
||||
"nextUpIn": "${library} 中接下来",
|
||||
"recentlyAdded": "最近添加",
|
||||
"recentlyAddedIn": "${library} 中最近添加",
|
||||
"playEpisode": "S${season}E${episode}",
|
||||
"overview": "概述",
|
||||
"cast": "演员表",
|
||||
@@ -532,7 +614,7 @@
|
||||
"errors": {
|
||||
"searchFailed": "搜索失败: ${error}",
|
||||
"connectionTimeout": "加载 ${context} 时连接超时",
|
||||
"connectionFailed": "无法连接到 Plex 服务器",
|
||||
"connectionFailed": "无法连接到媒体服务器",
|
||||
"failedToLoad": "无法加载 ${context}: ${error}",
|
||||
"noClientAvailable": "没有可用客户端",
|
||||
"authenticationFailed": "验证失败: ${error}",
|
||||
@@ -540,7 +622,9 @@
|
||||
"pleaseEnterToken": "请输入一个令牌",
|
||||
"invalidToken": "令牌无效",
|
||||
"failedToVerifyToken": "无法验证令牌: ${error}",
|
||||
"failedToSwitchProfile": "无法切换到 ${displayName}"
|
||||
"failedToSwitchProfile": "无法切换到 ${displayName}",
|
||||
"failedToDeleteProfile": "无法删除 ${displayName}",
|
||||
"failedToRate": "无法更新评分"
|
||||
},
|
||||
"libraries": {
|
||||
"title": "媒体库",
|
||||
@@ -595,17 +679,34 @@
|
||||
"seasons": "季",
|
||||
"episodes": "集",
|
||||
"folders": "文件夹"
|
||||
},
|
||||
"filterCategories": {
|
||||
"genre": "类型",
|
||||
"year": "年份",
|
||||
"contentRating": "内容分级",
|
||||
"tag": "标签"
|
||||
},
|
||||
"sortLabels": {
|
||||
"title": "标题",
|
||||
"dateAdded": "添加日期",
|
||||
"releaseDate": "发行日期",
|
||||
"rating": "评分",
|
||||
"lastPlayed": "最近播放",
|
||||
"playCount": "播放次数",
|
||||
"random": "随机",
|
||||
"dateShared": "共享日期",
|
||||
"latestEpisodeAirDate": "最新一集播出日期"
|
||||
}
|
||||
},
|
||||
"about": {
|
||||
"title": "关于",
|
||||
"openSourceLicenses": "开源许可证",
|
||||
"versionLabel": "版本 ${version}",
|
||||
"appDescription": "一款精美的 Flutter Plex 客户端",
|
||||
"appDescription": "一款精美的 Flutter Plex 和 Jellyfin 客户端",
|
||||
"viewLicensesDescription": "查看第三方库的许可证"
|
||||
},
|
||||
"serverSelection": {
|
||||
"allServerConnectionsFailed": "无法连接到任何服务器。请检查你的网络并重试。",
|
||||
"allServerConnectionsFailed": "无法连接到任何服务器。请检查网络。",
|
||||
"noServersFoundForAccount": "未找到 ${username} (${email}) 的服务器",
|
||||
"failedToLoadServers": "无法加载服务器: ${error}"
|
||||
},
|
||||
@@ -642,6 +743,7 @@
|
||||
"reloadGuide": "重新加载节目指南",
|
||||
"now": "现在",
|
||||
"today": "今天",
|
||||
"tomorrow": "明天",
|
||||
"midnight": "午夜",
|
||||
"overnight": "凌晨",
|
||||
"morning": "上午",
|
||||
@@ -655,7 +757,41 @@
|
||||
"joinSession": "加入正在进行的会话",
|
||||
"watchFromStart": "从头观看(${minutes}分钟前开始)",
|
||||
"watchLive": "观看直播",
|
||||
"goToLive": "跳至直播"
|
||||
"goToLive": "跳至直播",
|
||||
"record": "录制",
|
||||
"recordEpisode": "录制单集",
|
||||
"recordSeries": "录制整部剧集",
|
||||
"recordOptions": "录制选项",
|
||||
"recordings": "录制内容",
|
||||
"scheduledRecordings": "已安排",
|
||||
"recordingRules": "录制规则",
|
||||
"noScheduledRecordings": "没有安排的录制",
|
||||
"noRecordingRules": "还没有录制规则",
|
||||
"manageRecording": "管理录制",
|
||||
"cancelRecording": "取消录制",
|
||||
"cancelRecordingTitle": "取消此次录制?",
|
||||
"cancelRecordingMessage": "将不再录制 ${title}。",
|
||||
"deleteRule": "删除规则",
|
||||
"deleteRuleTitle": "删除录制规则?",
|
||||
"deleteRuleMessage": "未来的 ${title} 剧集将不会被录制。",
|
||||
"recordingScheduled": "录制已安排",
|
||||
"alreadyScheduled": "此节目已安排录制",
|
||||
"dvrAdminRequired": "DVR 设置需要管理员账户",
|
||||
"recordingFailed": "无法安排录制",
|
||||
"recordingTargetMissing": "无法确定录制库",
|
||||
"recordNotAvailable": "此节目无法录制",
|
||||
"recordingCancelled": "录制已取消",
|
||||
"recordingRuleDeleted": "录制规则已删除",
|
||||
"processRecordingRules": "重新评估规则",
|
||||
"loadingRecordings": "正在加载录制内容...",
|
||||
"recordingInProgress": "正在录制",
|
||||
"recordingsCount": "已安排 ${count} 个",
|
||||
"editRule": "编辑规则",
|
||||
"editRuleAction": "编辑",
|
||||
"recordingRuleUpdated": "录制规则已更新",
|
||||
"guideReloadRequested": "已请求更新节目指南",
|
||||
"rulesProcessRequested": "已请求重新评估规则",
|
||||
"recordShow": "录制节目"
|
||||
},
|
||||
"collections": {
|
||||
"title": "合集",
|
||||
@@ -663,7 +799,7 @@
|
||||
"empty": "合集为空",
|
||||
"unknownLibrarySection": "无法删除:未知的媒体库分区",
|
||||
"deleteCollection": "删除合集",
|
||||
"deleteConfirm": "确定要删除\"${title}\"吗?此操作无法撤销。",
|
||||
"deleteConfirm": "要删除“${title}”吗?此操作无法撤销。",
|
||||
"deleted": "已删除合集",
|
||||
"deleteFailed": "删除合集失败",
|
||||
"deleteFailedWithError": "删除合集失败:${error}",
|
||||
@@ -747,11 +883,11 @@
|
||||
"pasteFromClipboard": "从剪贴板粘贴",
|
||||
"pleaseEnterCode": "请输入会话代码",
|
||||
"codeMustBe5Chars": "会话代码必须是5个字符",
|
||||
"joinInstructions": "输入主持人分享的会话代码以加入他们的观看会话。",
|
||||
"joinInstructions": "输入主持人的会话代码以加入。",
|
||||
"failedToCreate": "创建会话失败",
|
||||
"failedToJoin": "加入会话失败",
|
||||
"sessionCodeCopied": "会话代码已复制到剪贴板",
|
||||
"relayUnreachable": "无法连接到中继服务器。这可能是由于您的网络运营商屏蔽了连接。您仍然可以尝试,但一起观看功能可能无法正常使用。",
|
||||
"relayUnreachable": "无法访问中继服务器。ISP 阻止可能导致 Watch Together 不可用。",
|
||||
"reconnectingToHost": "正在重新连接到主持人...",
|
||||
"currentPlayback": "当前播放",
|
||||
"joinCurrentPlayback": "加入当前播放",
|
||||
@@ -766,7 +902,9 @@
|
||||
"waitingForParticipants": "等待其他人加载...",
|
||||
"recentRooms": "最近的房间",
|
||||
"renameRoom": "重命名房间",
|
||||
"removeRoom": "移除"
|
||||
"removeRoom": "移除",
|
||||
"guestSwitchUnavailable": "无法切换 — 服务器无法同步",
|
||||
"guestSwitchFailed": "无法切换 — 在此服务器上未找到内容"
|
||||
},
|
||||
"downloads": {
|
||||
"title": "下载",
|
||||
@@ -779,10 +917,10 @@
|
||||
"deleteDownload": "删除下载",
|
||||
"retryDownload": "重试下载",
|
||||
"downloadQueued": "下载已排队",
|
||||
"serverErrorBitrate": "服务器错误 — 文件可能超出远程流媒体比特率限制",
|
||||
"serverErrorBitrate": "服务器错误:文件可能超过远程比特率限制",
|
||||
"episodesQueued": "${count} 集已加入下载队列",
|
||||
"downloadDeleted": "下载已删除",
|
||||
"deleteConfirm": "确定要删除 \"${title}\" 吗?下载的文件将从您的设备中删除。",
|
||||
"deleteConfirm": "要从此设备删除“${title}”吗?",
|
||||
"deletingWithProgress": "正在删除 ${title}... (${current}/${total})",
|
||||
"deleting": "正在删除...",
|
||||
"queuedTooltip": "已排队",
|
||||
@@ -817,6 +955,12 @@
|
||||
"editSyncFilter": "同步筛选",
|
||||
"syncAllItems": "同步所有项目",
|
||||
"syncUnwatchedItems": "同步未观看项目",
|
||||
"syncRuleServerContext": "服务器: ${server} • ${status}",
|
||||
"syncRuleAvailable": "可用",
|
||||
"syncRuleOffline": "离线",
|
||||
"syncRuleSignInRequired": "需要登录",
|
||||
"syncRuleNotAvailableForProfile": "当前个人资料不可用",
|
||||
"syncRuleUnknownServer": "未知服务器",
|
||||
"syncRuleListCreated": "同步规则已创建"
|
||||
},
|
||||
"shaders": {
|
||||
@@ -846,7 +990,7 @@
|
||||
"connected": "已连接",
|
||||
"serverRunning": "远程服务器已启动",
|
||||
"serverStopped": "远程服务器已停止",
|
||||
"serverRunningDescription": "网络上的移动设备可以发现并连接到此应用",
|
||||
"serverRunningDescription": "网络上的移动设备可以连接到此应用",
|
||||
"serverStoppedDescription": "启动服务器以允许移动设备连接",
|
||||
"usePhoneToControl": "使用移动设备控制此应用",
|
||||
"startServer": "启动服务器",
|
||||
@@ -854,20 +998,20 @@
|
||||
"minimize": "最小化"
|
||||
},
|
||||
"pairing": {
|
||||
"discoveryDescription": "网络上使用相同Plex账户运行Plezy的设备将自动显示",
|
||||
"discoveryDescription": "使用同一 Plex 账号的 Plezy 设备会显示在这里",
|
||||
"hostAddressHint": "192.168.1.100:48632",
|
||||
"connecting": "正在连接...",
|
||||
"searchingForDevices": "正在搜索设备...",
|
||||
"noDevicesFound": "未在网络上找到设备",
|
||||
"noDevicesHint": "请确保桌面上已打开Plezy,且两台设备在同一WiFi网络上",
|
||||
"noDevicesHint": "在桌面端打开 Plezy 并使用同一 WiFi",
|
||||
"availableDevices": "可用设备",
|
||||
"manualConnection": "手动连接",
|
||||
"cryptoInitFailed": "无法初始化安全连接。请确保已登录Plex账户。",
|
||||
"cryptoInitFailed": "无法启动安全连接。请先登录 Plex。",
|
||||
"validationHostRequired": "请输入主机地址",
|
||||
"validationHostFormat": "格式必须为IP:端口(例如 192.168.1.100:48632)",
|
||||
"connectionTimedOut": "连接超时。请确保两台设备在同一网络上。",
|
||||
"sessionNotFound": "未找到设备。请确保Plezy正在主机上运行。",
|
||||
"authFailed": "认证失败。请确保两台设备使用相同的Plex账户。",
|
||||
"connectionTimedOut": "连接超时。请在两台设备上使用同一网络。",
|
||||
"sessionNotFound": "未找到设备。请确认 Plezy 正在主机上运行。",
|
||||
"authFailed": "认证失败。两台设备需要使用同一 Plex 账号。",
|
||||
"failedToConnect": "连接失败:${error}"
|
||||
},
|
||||
"remote": {
|
||||
@@ -915,7 +1059,7 @@
|
||||
"externalPlayer": {
|
||||
"title": "外部播放器",
|
||||
"useExternalPlayer": "使用外部播放器",
|
||||
"useExternalPlayerDescription": "在外部应用中打开视频,而不是使用内置播放器",
|
||||
"useExternalPlayerDescription": "在其他应用中打开视频",
|
||||
"selectPlayer": "选择播放器",
|
||||
"customPlayers": "自定义播放器",
|
||||
"systemDefault": "系统默认",
|
||||
@@ -1009,7 +1153,7 @@
|
||||
"match": "匹配...",
|
||||
"fixMatch": "修正匹配...",
|
||||
"unmatch": "取消匹配",
|
||||
"unmatchConfirm": "清除此项目的当前匹配吗?在重新匹配之前,Plex 会将其视为未匹配。",
|
||||
"unmatchConfirm": "清除此匹配?在重新匹配前,Plex 会将其视为未匹配。",
|
||||
"unmatchSuccess": "已取消匹配",
|
||||
"unmatchFailed": "无法取消匹配",
|
||||
"matchApplied": "匹配已应用",
|
||||
@@ -1029,7 +1173,7 @@
|
||||
"connected": "已连接",
|
||||
"connectedAs": "已以 @${username} 身份连接",
|
||||
"disconnectConfirm": "断开 Trakt 账户?",
|
||||
"disconnectConfirmBody": "Plezy 将停止向 Trakt 发送播放事件。您随时可以重新连接。",
|
||||
"disconnectConfirmBody": "Plezy 将停止向 Trakt 发送事件。你可随时重新连接。",
|
||||
"scrobble": "实时 Scrobble",
|
||||
"scrobbleDescription": "在播放时向 Trakt 发送播放、暂停和停止事件。",
|
||||
"watchedSync": "同步已观看状态",
|
||||
@@ -1037,13 +1181,13 @@
|
||||
},
|
||||
"trackers": {
|
||||
"title": "追踪器",
|
||||
"hubSubtitle": "让你的观看进度与 Trakt 及其他服务保持同步。",
|
||||
"hubSubtitle": "与 Trakt 和其他服务同步观看进度。",
|
||||
"notConnected": "未连接",
|
||||
"connectedAs": "已以 @${username} 身份连接",
|
||||
"scrobble": "自动记录进度",
|
||||
"scrobbleDescription": "观看完一集或一部电影后更新你的列表。",
|
||||
"disconnectConfirm": "断开 ${service} 连接?",
|
||||
"disconnectConfirmBody": "Plezy 将停止更新你的 ${service} 列表。你可以随时重新连接。",
|
||||
"disconnectConfirmBody": "Plezy 将停止更新 ${service}。可随时重新连接。",
|
||||
"connectFailed": "无法连接到 ${service}。请重试。",
|
||||
"services": {
|
||||
"mal": "MyAnimeList",
|
||||
@@ -1059,7 +1203,7 @@
|
||||
},
|
||||
"oauthProxy": {
|
||||
"title": "登录 ${service}",
|
||||
"body": "用手机扫描此二维码,或在任何带浏览器的设备上打开下方 URL。",
|
||||
"body": "扫描此二维码,或在任意设备上打开 URL。",
|
||||
"openToSignIn": "打开 ${service} 以登录",
|
||||
"urlCopied": "URL 已复制"
|
||||
},
|
||||
@@ -1077,5 +1221,39 @@
|
||||
"libraries": "媒体库",
|
||||
"noLibraries": "没有可用的媒体库"
|
||||
}
|
||||
},
|
||||
"addServer": {
|
||||
"addJellyfinTitle": "添加 Jellyfin 服务器",
|
||||
"jellyfinUrlIntro": "输入服务器 URL,例如 `https://jellyfin.example.com`。",
|
||||
"serverUrl": "服务器 URL",
|
||||
"findServer": "查找服务器",
|
||||
"username": "用户名",
|
||||
"password": "密码",
|
||||
"signIn": "登录",
|
||||
"change": "更改",
|
||||
"required": "必填",
|
||||
"couldNotReachServer": "无法连接到服务器: ${error}",
|
||||
"signInFailed": "登录失败: ${error}",
|
||||
"quickConnectFailed": "Quick Connect 失败: ${error}",
|
||||
"addPlexTitle": "使用 Plex 登录",
|
||||
"plexAuthIntro": "使用浏览器或二维码登录。",
|
||||
"plexQRPrompt": "扫描此 QR 码以登录。",
|
||||
"waitingForPlexConfirmation": "等待 plex.tv 确认登录…",
|
||||
"pinExpired": "PIN 在登录前已过期。请重试。",
|
||||
"duplicatePlexAccount": "已登录 Plex。请退出登录以切换账号。",
|
||||
"failedToRegisterAccount": "注册帐户失败: ${error}",
|
||||
"enterJellyfinUrlError": "输入你的 Jellyfin 服务器 URL",
|
||||
"addConnectionTitle": "添加连接",
|
||||
"addConnectionTitleScoped": "添加到 ${name}",
|
||||
"addConnectionIntroGlobal": "添加另一个媒体服务器。Plex 和 Jellyfin 会一起显示在主页。",
|
||||
"addConnectionIntroScoped": "添加新服务器,或从另一个配置文件借用。",
|
||||
"signInWithPlexCard": "使用 Plex 登录",
|
||||
"signInWithPlexCardSubtitle": "授权此设备。共享服务器会被添加。",
|
||||
"signInWithPlexCardSubtitleScoped": "授权一个 Plex 账号。Home 用户会成为个人资料。",
|
||||
"connectToJellyfinCard": "连接到 Jellyfin",
|
||||
"connectToJellyfinCardSubtitle": "输入服务器 URL、用户名和密码。",
|
||||
"connectToJellyfinCardSubtitleScoped": "登录到 Jellyfin 服务器。绑定到 ${name}。",
|
||||
"borrowFromAnotherProfile": "从另一个配置文件借用",
|
||||
"borrowFromAnotherProfileSubtitle": "复用另一个个人资料的连接。受 PIN 保护的个人资料需要 PIN。"
|
||||
}
|
||||
}
|
||||
|
||||
+341
-147
@@ -11,14 +11,27 @@ import 'package:window_manager/window_manager.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
import 'package:sentry_flutter/sentry_flutter.dart';
|
||||
import 'connection/connection.dart';
|
||||
import 'connection/connection_bootstrap.dart';
|
||||
import 'connection/connection_registry.dart';
|
||||
import 'profiles/active_profile_binder.dart';
|
||||
import 'profiles/active_profile_provider.dart';
|
||||
import 'profiles/profile.dart';
|
||||
import 'profiles/profile_connection_registry.dart';
|
||||
import 'profiles/profile_registry.dart';
|
||||
import 'mixins/mounted_set_state_mixin.dart';
|
||||
import 'profiles/plex_home_service.dart';
|
||||
import 'screens/main_screen.dart';
|
||||
import 'screens/auth_screen.dart';
|
||||
import 'screens/profile/pin_entry_dialog.dart';
|
||||
import 'screens/profile/profile_switch_screen.dart';
|
||||
import 'services/storage_service.dart';
|
||||
import 'services/macos_window_service.dart';
|
||||
import 'services/native_window_service.dart';
|
||||
import 'services/fullscreen_state_manager.dart';
|
||||
import 'services/settings_service.dart';
|
||||
import 'utils/platform_detector.dart';
|
||||
import 'services/apple_tv_remote_touch_service.dart';
|
||||
import 'services/discord_rpc_service.dart';
|
||||
import 'services/gamepad_service.dart';
|
||||
import 'services/trakt/trakt_scrobble_service.dart';
|
||||
@@ -29,34 +42,32 @@ import 'providers/trackers_provider.dart';
|
||||
import 'providers/user_profile_provider.dart';
|
||||
import 'providers/multi_server_provider.dart';
|
||||
import 'providers/theme_provider.dart';
|
||||
import 'providers/settings_provider.dart';
|
||||
import 'providers/hidden_libraries_provider.dart';
|
||||
import 'providers/libraries_provider.dart';
|
||||
import 'providers/playback_state_provider.dart';
|
||||
import 'providers/download_provider.dart';
|
||||
import 'providers/offline_mode_provider.dart';
|
||||
import 'providers/offline_watch_provider.dart';
|
||||
import 'providers/watch_state_overlay_provider.dart';
|
||||
import 'providers/companion_remote_provider.dart';
|
||||
import 'providers/shader_provider.dart';
|
||||
import 'utils/snackbar_helper.dart';
|
||||
import 'watch_together/providers/watch_together_provider.dart';
|
||||
import 'services/multi_server_manager.dart';
|
||||
import 'services/offline_watch_sync_service.dart';
|
||||
import 'services/server_connection_orchestrator.dart';
|
||||
import 'services/data_aggregation_service.dart';
|
||||
import 'services/in_app_review_service.dart';
|
||||
import 'services/server_registry.dart';
|
||||
import 'services/download_manager_service.dart';
|
||||
import 'services/pip_service.dart';
|
||||
import 'services/download_storage_service.dart';
|
||||
import 'package:connectivity_plus/connectivity_plus.dart';
|
||||
import 'services/jellyfin_api_cache.dart';
|
||||
import 'services/plex_api_cache.dart';
|
||||
import 'database/app_database.dart';
|
||||
import 'screens/video_player_screen.dart';
|
||||
import 'utils/app_logger.dart';
|
||||
import 'utils/plex_http_client.dart' show httpClient;
|
||||
import 'utils/media_server_http_client.dart' show httpClient;
|
||||
import 'utils/orientation_helper.dart';
|
||||
import 'utils/global_key_utils.dart';
|
||||
import 'utils/watch_state_notifier.dart';
|
||||
import 'i18n/strings.g.dart';
|
||||
import 'focus/input_mode_tracker.dart';
|
||||
@@ -69,7 +80,6 @@ import 'package:package_info_plus/package_info_plus.dart';
|
||||
const bool _enableSentry = bool.fromEnvironment('ENABLE_SENTRY', defaultValue: false);
|
||||
const String gitCommit = String.fromEnvironment('GIT_COMMIT');
|
||||
const String _sentryEnvironment = String.fromEnvironment('SENTRY_ENVIRONMENT');
|
||||
const String _plexTokenDefine = String.fromEnvironment('PLEX_TOKEN');
|
||||
|
||||
// Workaround for Flutter bug #177992: iPadOS 26.1+ misinterprets fake touch events
|
||||
// at (0,0) as barrier taps, causing modals to dismiss immediately.
|
||||
@@ -100,7 +110,10 @@ void _registerTvosPlatformPlugins() {
|
||||
}
|
||||
|
||||
Future<void> main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
final binding = WidgetsFlutterBinding.ensureInitialized();
|
||||
// Build the semantics tree in debug so Maestro/UI automation can locate
|
||||
// widgets by text. Zero cost in release builds.
|
||||
if (kDebugMode) binding.ensureSemantics();
|
||||
_installZeroOffsetPointerGuard(); // Workaround for iPadOS 26.1+ modal dismissal bug
|
||||
|
||||
// On tvOS, Flutter's generated plugin registrant doesn't run (no tvOS
|
||||
@@ -134,14 +147,11 @@ Future<void> main() async {
|
||||
}
|
||||
|
||||
Future<void> _bootstrapApp() async {
|
||||
// Initialize settings first to get saved locale
|
||||
final settings = await SettingsService.getInstance();
|
||||
final savedLocale = settings.read(SettingsService.appLocale);
|
||||
|
||||
// Initialize localization with saved locale
|
||||
unawaited(LocaleSettings.setLocale(savedLocale));
|
||||
|
||||
// Needed for formatting dates in different locales
|
||||
await initializeDateFormatting(savedLocale.languageCode, null);
|
||||
|
||||
// Configure image cache — keep budget modest to leave headroom for Skia decode buffers
|
||||
@@ -153,12 +163,14 @@ Future<void> _bootstrapApp() async {
|
||||
PaintingBinding.instance.imageCache.maximumSizeBytes = 100 << 20; // 100MB
|
||||
}
|
||||
|
||||
// Initialize services in parallel where possible
|
||||
final futures = <Future<void>>[];
|
||||
|
||||
// Initialize window_manager for desktop platforms
|
||||
if (PlatformDetector.isDesktopOS()) {
|
||||
futures.add(windowManager.ensureInitialized());
|
||||
if (Platform.isMacOS) {
|
||||
futures.add(windowManager.ensureInitialized().then((_) => MacOSWindowService.setupCustomTitlebar()));
|
||||
} else {
|
||||
futures.add(windowManager.ensureInitialized());
|
||||
}
|
||||
}
|
||||
|
||||
// Initialize TV detection (Android leanback or Apple TV) and PiP on Android.
|
||||
@@ -166,33 +178,23 @@ Future<void> _bootstrapApp() async {
|
||||
futures.add(TvDetectionService.getInstance(forceTv: settings.read(SettingsService.forceTvMode)));
|
||||
}
|
||||
if (Platform.isAndroid) {
|
||||
// Initialize PiP service to listen for PiP state changes (Android only).
|
||||
PipService();
|
||||
}
|
||||
|
||||
// Configure macOS window with custom titlebar (depends on window manager)
|
||||
futures.add(MacOSWindowService.setupCustomTitlebar());
|
||||
|
||||
// Hook Windows native fullscreen callback (no-op elsewhere).
|
||||
NativeWindowService.initialize();
|
||||
|
||||
// Initialize storage service
|
||||
futures.add(StorageService.getInstance());
|
||||
|
||||
// Wait for all parallel services to complete
|
||||
await Future.wait(futures);
|
||||
|
||||
// Seed Plex token from dart-define (used by screenshot automation)
|
||||
if (_plexTokenDefine.isNotEmpty) {
|
||||
final storage = await StorageService.getInstance();
|
||||
await storage.savePlexToken(_plexTokenDefine);
|
||||
}
|
||||
// The PLEX_TOKEN dart-define (screenshot automation) is consumed by
|
||||
// [ConnectionBootstrap.seedFromDevTokenDefine] later, when the registry
|
||||
// is available — keeps the deprecated legacy slots out of runtime paths.
|
||||
|
||||
// Initialize logger level based on debug setting
|
||||
final debugEnabled = settings.read(SettingsService.enableDebugLogging);
|
||||
setLoggerLevel(debugEnabled);
|
||||
|
||||
// Log app version and git commit at startup
|
||||
final packageInfo = await PackageInfo.fromPlatform();
|
||||
final commitSuffix = gitCommit.isNotEmpty ? ' (${gitCommit.substring(0, 7)})' : '';
|
||||
String renderer = '';
|
||||
@@ -201,10 +203,8 @@ Future<void> _bootstrapApp() async {
|
||||
}
|
||||
appLogger.i('Plezy v${packageInfo.version}+${packageInfo.buildNumber}$commitSuffix$renderer');
|
||||
|
||||
// Initialize download storage service with settings
|
||||
await DownloadStorageService.instance.initialize(settings);
|
||||
|
||||
// Start global fullscreen state monitoring
|
||||
FullscreenStateManager().startMonitoring();
|
||||
|
||||
// Apply "start in fullscreen" preference on Windows/Linux. macOS is
|
||||
@@ -217,18 +217,16 @@ Future<void> _bootstrapApp() async {
|
||||
// Initialize gamepad service (all platforms — universal_gamepad auto-registers
|
||||
// and intercepts input events, so we must listen to re-dispatch them)
|
||||
GamepadService.instance.start();
|
||||
if (PlatformDetector.isAppleTV()) {
|
||||
AppleTvRemoteTouchService.instance.start();
|
||||
}
|
||||
|
||||
// Desktop-only services
|
||||
if (PlatformDetector.isDesktopOS()) {
|
||||
unawaited(DiscordRPCService.instance.initialize());
|
||||
}
|
||||
|
||||
// Trakt scrobble service (all platforms)
|
||||
await TraktScrobbleService.instance.initialize();
|
||||
|
||||
// DTD service is available for MCP tooling connection if needed
|
||||
|
||||
// Register bundled shader licenses
|
||||
_registerShaderLicenses();
|
||||
|
||||
// In release mode, show a colored placeholder instead of a blank/white screen
|
||||
@@ -384,10 +382,25 @@ void _registerShaderLicenses() {
|
||||
});
|
||||
}
|
||||
|
||||
// Global RouteObserver for tracking navigation
|
||||
final RouteObserver<PageRoute> routeObserver = RouteObserver<PageRoute>();
|
||||
final rootNavigatorKey = GlobalKey<NavigatorState>();
|
||||
|
||||
@visibleForTesting
|
||||
bool shouldEnterOfflineModeAfterStartupBind({required bool bindingSucceeded, required bool hasOnlineServers}) {
|
||||
return !bindingSucceeded && !hasOnlineServers;
|
||||
}
|
||||
|
||||
/// Top-level PIN prompt used by [ActiveProfileBinder] when it runs above the
|
||||
/// per-screen widget tree. Routes through [rootNavigatorKey] so the dialog
|
||||
/// renders correctly whether the binder fires from the splash, MainScreen,
|
||||
/// or any future host. Returns `null` when no Navigator is available yet
|
||||
/// (early boot, post-dispose) so the binder treats it as "PIN cancelled".
|
||||
Future<String?> _rootPinPrompt(Profile profile, {String? errorMessage}) {
|
||||
final ctx = rootNavigatorKey.currentContext;
|
||||
if (ctx == null) return Future.value(null);
|
||||
return showPinEntryDialog(ctx, profile.displayName, errorMessage: errorMessage);
|
||||
}
|
||||
|
||||
class MainApp extends StatefulWidget {
|
||||
const MainApp({super.key});
|
||||
|
||||
@@ -396,7 +409,6 @@ class MainApp extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _MainAppState extends State<MainApp> with WidgetsBindingObserver {
|
||||
// Initialize multi-server infrastructure
|
||||
late final MultiServerManager _serverManager;
|
||||
late final DataAggregationService _aggregationService;
|
||||
late final AppDatabase _appDatabase;
|
||||
@@ -421,7 +433,6 @@ class _MainAppState extends State<MainApp> with WidgetsBindingObserver {
|
||||
super.initState();
|
||||
WidgetsBinding.instance.addObserver(this);
|
||||
|
||||
// On desktop, periodically check RSS and evict image cache if too high
|
||||
if (PlatformDetector.isDesktopOS()) {
|
||||
_memoryCheckTimer = Timer.periodic(const Duration(seconds: 30), (_) {
|
||||
final rss = ProcessInfo.currentRss;
|
||||
@@ -437,11 +448,16 @@ class _MainAppState extends State<MainApp> with WidgetsBindingObserver {
|
||||
_aggregationService = DataAggregationService(_serverManager);
|
||||
_appDatabase = AppDatabase();
|
||||
|
||||
// Initialize API cache with database
|
||||
PlexApiCache.initialize(_appDatabase);
|
||||
JellyfinApiCache.initialize(_appDatabase);
|
||||
|
||||
_downloadManager = DownloadManagerService(database: _appDatabase, storageService: DownloadStorageService.instance);
|
||||
_downloadManager.setClientResolver(_serverManager.getClient);
|
||||
_downloadManager.setClientResolver((serverId, {clientScopeId}) {
|
||||
if (clientScopeId != null && clientScopeId.isNotEmpty) {
|
||||
return _serverManager.getJellyfinClientByCompoundId(clientScopeId) ?? _serverManager.getClient(serverId);
|
||||
}
|
||||
return _serverManager.getClient(serverId);
|
||||
});
|
||||
_downloadManager.recoveryFuture = _downloadManager.recoverInterruptedDownloads();
|
||||
|
||||
_offlineWatchSyncService = OfflineWatchSyncService(database: _appDatabase, serverManager: _serverManager);
|
||||
@@ -457,9 +473,6 @@ class _MainAppState extends State<MainApp> with WidgetsBindingObserver {
|
||||
return AppExitResponse.exit;
|
||||
},
|
||||
);
|
||||
|
||||
// Start in-app review session tracking
|
||||
InAppReviewService.instance.startSession();
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -470,6 +483,7 @@ class _MainAppState extends State<MainApp> with WidgetsBindingObserver {
|
||||
_memoryCheckTimer?.cancel();
|
||||
_appLifecycleListener.dispose();
|
||||
_downloadManager.dispose();
|
||||
_serverManager.dispose();
|
||||
WidgetsBinding.instance.removeObserver(this);
|
||||
super.dispose();
|
||||
}
|
||||
@@ -536,10 +550,10 @@ class _MainAppState extends State<MainApp> with WidgetsBindingObserver {
|
||||
_isAutoDeleteRunning = true;
|
||||
try {
|
||||
await downloadProvider.refreshMetadataFromCache();
|
||||
final activeKey = VideoPlayerScreenState.activeRatingKey;
|
||||
final activeKey = VideoPlayerScreenState.activeId;
|
||||
final settings = SettingsService.instanceOrNull;
|
||||
if (settings != null && settings.read(SettingsService.autoRemoveWatchedDownloads)) {
|
||||
final deleted = await downloadProvider.autoDeleteWatchedDownloads(activeRatingKey: activeKey);
|
||||
final deleted = await downloadProvider.autoDeleteWatchedDownloads(activeId: activeKey);
|
||||
if (deleted.isNotEmpty) {
|
||||
final msg = deleted.length == 1
|
||||
? t.messages.autoRemovedWatchedDownload(title: deleted.first)
|
||||
@@ -572,10 +586,9 @@ class _MainAppState extends State<MainApp> with WidgetsBindingObserver {
|
||||
void didChangeAppLifecycleState(AppLifecycleState state) {
|
||||
switch (state) {
|
||||
case AppLifecycleState.resumed:
|
||||
// App came back to foreground - trigger sync check and start new session
|
||||
// App came back to foreground - trigger sync check
|
||||
_offlineWatchSyncService.onAppResumed();
|
||||
TraktSyncService.instance.flushQueue();
|
||||
InAppReviewService.instance.startSession();
|
||||
// Re-probe servers — mobile OS may have dropped TCP connections during doze/sleep.
|
||||
// On desktop, resumed fires on every window focus (alt-tab), so apply a cooldown
|
||||
// to avoid piling up network probes from rapid alt-tabbing.
|
||||
@@ -598,7 +611,6 @@ class _MainAppState extends State<MainApp> with WidgetsBindingObserver {
|
||||
// Closing here would kill the Drift isolate channel while services
|
||||
// (sync, downloads, cache) still hold references to the executor.
|
||||
// SQLite WAL mode handles process death; desktop uses onExitRequested.
|
||||
InAppReviewService.instance.endSession();
|
||||
if (PlatformDetector.isDesktopOS()) {
|
||||
if (ProcessInfo.currentRss > 1024 * 1024 * 1024) {
|
||||
// 1GB
|
||||
@@ -616,8 +628,68 @@ class _MainAppState extends State<MainApp> with WidgetsBindingObserver {
|
||||
Widget build(BuildContext context) {
|
||||
return MultiProvider(
|
||||
providers: [
|
||||
ChangeNotifierProvider(create: (context) => MultiServerProvider(_serverManager, _aggregationService)),
|
||||
// Offline mode provider - depends on MultiServerProvider
|
||||
// Expose AppDatabase + ConnectionRegistry so screens (Settings, Setup)
|
||||
// can manage stored Jellyfin/Plex connections without re-creating
|
||||
// the registry per-call site.
|
||||
Provider<AppDatabase>.value(value: _appDatabase),
|
||||
Provider<ConnectionRegistry>(create: (_) => ConnectionRegistry(_appDatabase)),
|
||||
Provider<ProfileRegistry>(create: (_) => ProfileRegistry(_appDatabase)),
|
||||
Provider<ProfileConnectionRegistry>(create: (_) => ProfileConnectionRegistry(_appDatabase)),
|
||||
Provider<PlexHomeService>(
|
||||
create: (context) {
|
||||
// start() resolves StorageService internally — the singleton was
|
||||
// already initialised eagerly during boot, so the await is a
|
||||
// microtask hop in practice.
|
||||
final service = PlexHomeService(
|
||||
connections: context.read<ConnectionRegistry>(),
|
||||
profileConnections: context.read<ProfileConnectionRegistry>(),
|
||||
);
|
||||
unawaited(service.start());
|
||||
return service;
|
||||
},
|
||||
dispose: (_, s) => s.dispose(),
|
||||
),
|
||||
ChangeNotifierProvider<ActiveProfileProvider>(
|
||||
create: (context) {
|
||||
final provider = ActiveProfileProvider(
|
||||
registry: context.read<ProfileRegistry>(),
|
||||
plexHome: context.read<PlexHomeService>(),
|
||||
connections: context.read<ConnectionRegistry>(),
|
||||
);
|
||||
unawaited(provider.initialize());
|
||||
return provider;
|
||||
},
|
||||
),
|
||||
ChangeNotifierProvider(
|
||||
create: (context) {
|
||||
_serverManager.onJellyfinConnectionUpdated = context.read<ConnectionRegistry>().upsert;
|
||||
return MultiServerProvider(_serverManager, _aggregationService);
|
||||
},
|
||||
),
|
||||
// Profile binder owns the cold-start client connect: Plex token
|
||||
// refresh + Jellyfin client creation. Hoisted out of MainScreen so
|
||||
// the splash can await its first settle — without this, MainScreen
|
||||
// mounts (and discover/libraries query) before any client exists.
|
||||
Provider<ActiveProfileBinder>(
|
||||
lazy: false,
|
||||
create: (context) {
|
||||
final activeProfile = context.read<ActiveProfileProvider>();
|
||||
return ActiveProfileBinder(
|
||||
activeProfile: activeProfile,
|
||||
connections: context.read<ConnectionRegistry>(),
|
||||
profileConnections: context.read<ProfileConnectionRegistry>(),
|
||||
serverManager: _serverManager,
|
||||
multiServerProvider: context.read<MultiServerProvider>(),
|
||||
pinPrompt: _rootPinPrompt,
|
||||
shouldDeferInitialBind: (_) async {
|
||||
final settings = await SettingsService.getInstance();
|
||||
return settings.read(SettingsService.requireProfileSelectionOnOpen) &&
|
||||
activeProfile.hasMultipleProfiles;
|
||||
},
|
||||
)..start();
|
||||
},
|
||||
dispose: (_, binder) => binder.dispose(),
|
||||
),
|
||||
ChangeNotifierProxyProvider<MultiServerProvider, OfflineModeProvider>(
|
||||
create: (_) {
|
||||
final provider = OfflineModeProvider(_serverManager);
|
||||
@@ -630,15 +702,33 @@ class _MainAppState extends State<MainApp> with WidgetsBindingObserver {
|
||||
return provider;
|
||||
},
|
||||
),
|
||||
// Download provider
|
||||
ChangeNotifierProvider(
|
||||
// Download provider. Downloads are shared, but sync rules are scoped to
|
||||
// the active profile and reload when the profile changes.
|
||||
ChangeNotifierProxyProvider<ActiveProfileProvider, DownloadProvider>(
|
||||
create: (context) => DownloadProvider(downloadManager: _downloadManager, database: _appDatabase),
|
||||
update: (context, activeProfile, previous) {
|
||||
final provider = previous ?? DownloadProvider(downloadManager: _downloadManager, database: _appDatabase);
|
||||
provider.setActiveProfileId(activeProfile.activeId);
|
||||
return provider;
|
||||
},
|
||||
),
|
||||
// Offline watch sync service
|
||||
ChangeNotifierProvider<OfflineWatchSyncService>(
|
||||
ChangeNotifierProxyProvider<ActiveProfileProvider, WatchStateOverlayProvider>(
|
||||
create: (_) => WatchStateOverlayProvider(),
|
||||
update: (_, activeProfile, previous) {
|
||||
final provider = previous ?? WatchStateOverlayProvider();
|
||||
provider.setActiveProfileId(activeProfile.activeId);
|
||||
return provider;
|
||||
},
|
||||
),
|
||||
ChangeNotifierProxyProvider<ActiveProfileProvider, OfflineWatchSyncService>(
|
||||
create: (context) {
|
||||
final offlineModeProvider = context.read<OfflineModeProvider>();
|
||||
final downloadProvider = context.read<DownloadProvider>();
|
||||
final activeProfile = context.read<ActiveProfileProvider>();
|
||||
_offlineWatchSyncService.setActiveProfileId(
|
||||
activeProfile.activeId,
|
||||
availableProfileCount: activeProfile.profiles.length,
|
||||
);
|
||||
|
||||
// Offline-sync drain replays a batch of queued watch actions without
|
||||
// per-item data, so we can't target rules — force a full pass.
|
||||
@@ -652,12 +742,9 @@ class _MainAppState extends State<MainApp> with WidgetsBindingObserver {
|
||||
// binge-watching coalesces into one pass.
|
||||
_watchStateSubscription = WatchStateNotifier().stream.listen((event) {
|
||||
if (event.changeType != WatchStateChangeType.watched) return;
|
||||
if (VideoPlayerScreenState.activeRatingKey == event.ratingKey) return;
|
||||
if (VideoPlayerScreenState.activeId == event.itemId) return;
|
||||
|
||||
_pendingSyncKeys.add(event.globalKey);
|
||||
for (final parentKey in event.parentChain) {
|
||||
_pendingSyncKeys.add(buildGlobalKey(event.serverId, parentKey));
|
||||
}
|
||||
_pendingSyncKeys.addAll(downloadProvider.syncRuleKeysForWatchEvent(event));
|
||||
|
||||
_syncDebounce?.cancel();
|
||||
_syncDebounce = Timer(const Duration(seconds: 5), () {
|
||||
@@ -676,8 +763,12 @@ class _MainAppState extends State<MainApp> with WidgetsBindingObserver {
|
||||
_offlineWatchSyncService.startConnectivityMonitoring(offlineModeProvider);
|
||||
return _offlineWatchSyncService;
|
||||
},
|
||||
update: (_, activeProfile, previous) {
|
||||
final provider = previous ?? _offlineWatchSyncService;
|
||||
provider.setActiveProfileId(activeProfile.activeId, availableProfileCount: activeProfile.profiles.length);
|
||||
return provider;
|
||||
},
|
||||
),
|
||||
// Offline watch provider - depends on sync service and download provider
|
||||
ChangeNotifierProxyProvider2<OfflineWatchSyncService, DownloadProvider, OfflineWatchProvider>(
|
||||
create: (context) => OfflineWatchProvider(
|
||||
syncService: _offlineWatchSyncService,
|
||||
@@ -687,14 +778,24 @@ class _MainAppState extends State<MainApp> with WidgetsBindingObserver {
|
||||
return previous ?? OfflineWatchProvider(syncService: syncService, downloadProvider: downloadProvider);
|
||||
},
|
||||
),
|
||||
// Existing providers
|
||||
ChangeNotifierProvider(create: (context) => UserProfileProvider()),
|
||||
ChangeNotifierProxyProvider2<ActiveProfileProvider, ConnectionRegistry, UserProfileProvider>(
|
||||
create: (_) => UserProfileProvider(),
|
||||
update: (context, activeProfile, connections, previous) {
|
||||
final provider = previous ?? UserProfileProvider();
|
||||
provider.attach(
|
||||
connections: connections,
|
||||
activeProfile: activeProfile,
|
||||
profileConnections: context.read<ProfileConnectionRegistry>(),
|
||||
serverManager: context.read<MultiServerProvider>().serverManager,
|
||||
);
|
||||
return provider;
|
||||
},
|
||||
),
|
||||
ChangeNotifierProvider(create: (context) => ThemeProvider()),
|
||||
// Tracker accounts — depend on UserProfileProvider for per-profile
|
||||
// session scoping. Hydrated and rebound by `_TrackerProfileBootstrap`.
|
||||
ChangeNotifierProvider(create: (context) => TraktAccountProvider()),
|
||||
ChangeNotifierProvider(create: (context) => TrackersProvider()),
|
||||
ChangeNotifierProvider(create: (context) => SettingsProvider(), lazy: true),
|
||||
ChangeNotifierProvider(create: (context) => HiddenLibrariesProvider(), lazy: true),
|
||||
ChangeNotifierProvider(create: (context) => LibrariesProvider()),
|
||||
ChangeNotifierProvider(create: (context) => PlaybackStateProvider()),
|
||||
@@ -739,6 +840,9 @@ class _MainAppState extends State<MainApp> with WidgetsBindingObserver {
|
||||
...WidgetsApp.defaultShortcuts,
|
||||
const SingleActivator(LogicalKeyboardKey.select): const ActivateIntent(),
|
||||
const SingleActivator(LogicalKeyboardKey.gameButtonA): const ActivateIntent(),
|
||||
const SingleActivator(LogicalKeyboardKey.goBack): const DismissIntent(),
|
||||
const SingleActivator(LogicalKeyboardKey.browserBack): const DismissIntent(),
|
||||
const SingleActivator(LogicalKeyboardKey.gameButtonB): const DismissIntent(),
|
||||
},
|
||||
builder: (context, child) => ScaffoldMessenger(
|
||||
key: rootScaffoldMessengerKey,
|
||||
@@ -809,15 +913,15 @@ class _AppleTvScale extends StatelessWidget {
|
||||
}
|
||||
}
|
||||
|
||||
/// Hydrates Trakt and MAL/AniList/Simkl providers with the active Plex
|
||||
/// profile's sessions and rebinds their services whenever the user switches.
|
||||
/// Hydrates Trakt and MAL/AniList/Simkl providers with the active profile's
|
||||
/// sessions and rebinds their services whenever the user switches profiles.
|
||||
///
|
||||
/// Lives high in the widget tree (above MaterialApp) so the listener survives
|
||||
/// route changes. [onFirstMount] runs exactly once after the first
|
||||
/// `didChangeDependencies`.
|
||||
class _TrackerProfileBootstrap extends StatefulWidget {
|
||||
final Widget child;
|
||||
final List<Future<void> Function(String? uuid)> onProfileChanged;
|
||||
final List<Future<void> Function(String? profileId)> onProfileChanged;
|
||||
final VoidCallback? onFirstMount;
|
||||
|
||||
const _TrackerProfileBootstrap({required this.child, required this.onProfileChanged, this.onFirstMount});
|
||||
@@ -827,19 +931,19 @@ class _TrackerProfileBootstrap extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _TrackerProfileBootstrapState extends State<_TrackerProfileBootstrap> {
|
||||
UserProfileProvider? _profile;
|
||||
String? _lastUuid;
|
||||
ActiveProfileProvider? _provider;
|
||||
String? _lastId;
|
||||
bool _initialized = false;
|
||||
|
||||
@override
|
||||
void didChangeDependencies() {
|
||||
super.didChangeDependencies();
|
||||
final profile = context.read<UserProfileProvider>();
|
||||
final provider = context.read<ActiveProfileProvider>();
|
||||
|
||||
if (!identical(_profile, profile)) {
|
||||
_profile?.removeListener(_onProfileChanged);
|
||||
_profile = profile;
|
||||
_profile!.addListener(_onProfileChanged);
|
||||
if (!identical(_provider, provider)) {
|
||||
_provider?.removeListener(_onProfileChanged);
|
||||
_provider = provider;
|
||||
_provider!.addListener(_onProfileChanged);
|
||||
}
|
||||
|
||||
if (!_initialized) {
|
||||
@@ -850,12 +954,12 @@ class _TrackerProfileBootstrapState extends State<_TrackerProfileBootstrap> {
|
||||
}
|
||||
|
||||
void _onProfileChanged() {
|
||||
final uuid = _profile?.currentUser?.uuid;
|
||||
if (uuid == _lastUuid) return;
|
||||
_lastUuid = uuid;
|
||||
final id = _provider?.activeId;
|
||||
if (id == _lastId) return;
|
||||
_lastId = id;
|
||||
for (final fn in widget.onProfileChanged) {
|
||||
unawaited(
|
||||
fn(uuid).catchError((Object e, StackTrace s) {
|
||||
fn(id).catchError((Object e, StackTrace s) {
|
||||
appLogger.w('Tracker profile bootstrap failed', error: e, stackTrace: s);
|
||||
}),
|
||||
);
|
||||
@@ -864,7 +968,7 @@ class _TrackerProfileBootstrapState extends State<_TrackerProfileBootstrap> {
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_profile?.removeListener(_onProfileChanged);
|
||||
_provider?.removeListener(_onProfileChanged);
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@@ -903,7 +1007,7 @@ class SetupScreen extends StatefulWidget {
|
||||
State<SetupScreen> createState() => _SetupScreenState();
|
||||
}
|
||||
|
||||
class _SetupScreenState extends State<SetupScreen> {
|
||||
class _SetupScreenState extends State<SetupScreen> with MountedSetStateMixin {
|
||||
String _statusMessage = '';
|
||||
|
||||
// Per-server connection status: serverId -> (name, connected?)
|
||||
@@ -916,7 +1020,7 @@ class _SetupScreenState extends State<SetupScreen> {
|
||||
}
|
||||
|
||||
void _setStatus(String message) {
|
||||
if (mounted) setState(() => _statusMessage = message);
|
||||
setStateIfMounted(() => _statusMessage = message);
|
||||
}
|
||||
|
||||
Future<void> _loadSavedCredentials() async {
|
||||
@@ -925,6 +1029,31 @@ class _SetupScreenState extends State<SetupScreen> {
|
||||
final storage = await StorageService.getInstance();
|
||||
final registry = ServerRegistry(storage);
|
||||
|
||||
// Idempotent: brings legacy SharedPreferences state (plexToken,
|
||||
// currentUserUUID, homeUsersCache) into the new ConnectionRegistry +
|
||||
// ProfileRegistry tables. No-op on subsequent launches.
|
||||
if (mounted) {
|
||||
try {
|
||||
final connRegistry = context.read<ConnectionRegistry>();
|
||||
final profileRegistry = context.read<ProfileRegistry>();
|
||||
final activeProfiles = context.read<ActiveProfileProvider>();
|
||||
final bootstrap = ConnectionBootstrap(
|
||||
storage: storage,
|
||||
connectionRegistry: connRegistry,
|
||||
serverRegistry: registry,
|
||||
profileRegistry: profileRegistry,
|
||||
);
|
||||
await bootstrap.run();
|
||||
// Provider initialization starts before this screen runs the legacy
|
||||
// migration. Reload after bootstrap so copied Plex Home users and the
|
||||
// selected active profile are visible before setup decides binding is
|
||||
// already settled and navigates to MainScreen.
|
||||
await activeProfiles.reloadFromStorage();
|
||||
} catch (e, st) {
|
||||
appLogger.w('Boot-time migration failed', error: e, stackTrace: st);
|
||||
}
|
||||
}
|
||||
|
||||
// Check network connectivity early to fast-path airplane mode.
|
||||
// Timeout guards against connectivity_plus hanging on some Android TV devices after force-close.
|
||||
bool hasNetwork;
|
||||
@@ -944,28 +1073,17 @@ class _SetupScreenState extends State<SetupScreen> {
|
||||
Sentry.addBreadcrumb(Breadcrumb(message: 'Network check done: hasNetwork=$hasNetwork', category: 'setup')),
|
||||
);
|
||||
|
||||
if (hasNetwork) {
|
||||
_setStatus(t.common.refreshingServers);
|
||||
|
||||
// Refresh servers from API to get updated connection info (IPs may change).
|
||||
// If the stored token is invalid (e.g. after removing a Plex profile PIN),
|
||||
// redirect to AuthScreen so the user can re-authenticate.
|
||||
final refreshResult = await registry.refreshServersFromApi();
|
||||
if (refreshResult == ServerRefreshResult.authError) {
|
||||
await storage.clearCredentials();
|
||||
if (mounted) {
|
||||
unawaited(Navigator.pushReplacement(context, fadeRoute(const AuthScreen())));
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
_setStatus(t.common.loadingServers);
|
||||
|
||||
// Load all configured servers
|
||||
final servers = await registry.getServers();
|
||||
if (!mounted) return;
|
||||
|
||||
if (servers.isEmpty) {
|
||||
// Snapshot ConnectionRegistry before we cross any awaits — Provider lookups
|
||||
// through `context` after async gaps trip the use_build_context_synchronously
|
||||
// lint, and reading early is safe because the registry is a singleton.
|
||||
final connectionRegistry = context.read<ConnectionRegistry>();
|
||||
final allConnections = await connectionRegistry.list();
|
||||
|
||||
if (allConnections.isEmpty) {
|
||||
if (mounted) {
|
||||
unawaited(Navigator.pushReplacement(context, fadeRoute(const AuthScreen())));
|
||||
}
|
||||
@@ -983,67 +1101,142 @@ class _SetupScreenState extends State<SetupScreen> {
|
||||
return;
|
||||
}
|
||||
|
||||
unawaited(
|
||||
Sentry.addBreadcrumb(Breadcrumb(message: 'Connecting to ${servers.length} server(s)', category: 'setup')),
|
||||
);
|
||||
_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);
|
||||
for (final conn in allConnections) {
|
||||
if (conn is PlexAccountConnection) {
|
||||
for (final s in conn.servers) {
|
||||
_serverStatus[s.clientIdentifier] = (s.name, null);
|
||||
}
|
||||
} else if (conn is JellyfinConnection) {
|
||||
_serverStatus[conn.serverMachineId] = (conn.serverName, null);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
try {
|
||||
final result = await ServerConnectionOrchestrator.connectAndInitialize(
|
||||
servers: servers,
|
||||
multiServerProvider: context.read<MultiServerProvider>(),
|
||||
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);
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
);
|
||||
final plexCount = allConnections.whereType<PlexAccountConnection>().fold<int>(0, (n, c) => n + c.servers.length);
|
||||
final jellyfinCount = allConnections.whereType<JellyfinConnection>().length;
|
||||
unawaited(
|
||||
Sentry.addBreadcrumb(
|
||||
Breadcrumb(
|
||||
message: 'Handing off to MainScreen with $plexCount Plex server(s) + $jellyfinCount Jellyfin',
|
||||
category: 'setup',
|
||||
),
|
||||
),
|
||||
);
|
||||
_setStatus(t.common.connectingToServers);
|
||||
|
||||
// Snapshot Provider refs before further awaits.
|
||||
final activeProfile = context.read<ActiveProfileProvider>();
|
||||
// Reading the binder here is enough — the Provider is `lazy: false` so
|
||||
// it has already constructed the binder and called `start()` during
|
||||
// MultiProvider build. We just need to wait for it.
|
||||
final binder = context.read<ActiveProfileBinder>();
|
||||
final downloadProvider = context.read<DownloadProvider>();
|
||||
|
||||
// Wait for the active profile to load from disk so the binder has a
|
||||
// profile to bind. `initialize` is fire-and-forget at provider creation,
|
||||
// so awaiting here pulls control through the same future and triggers
|
||||
// the listener-driven rebind synchronously.
|
||||
await activeProfile.reloadFromStorage();
|
||||
if (!mounted) return;
|
||||
|
||||
if (activeProfile.active == null && activeProfile.profiles.isEmpty) {
|
||||
appLogger.w('Setup: stored connections exist but no profiles resolved after bootstrap; returning to auth');
|
||||
unawaited(Navigator.pushReplacement(context, fadeRoute(const AuthScreen())));
|
||||
return;
|
||||
}
|
||||
|
||||
// Wire the per-server status listener before either branch so the splash
|
||||
// checkmarks fill in even while the user is choosing a profile.
|
||||
_bindServerStatusListener(activeProfile, _serverManagerFromContext);
|
||||
|
||||
// If "prompt for profile on launch" is on (or no profile is selected
|
||||
// yet), surface the picker BEFORE waiting for the previously-active
|
||||
// profile's bind to settle — otherwise the user sees the splash fully
|
||||
// connect before the prompt arrives. The picker's own `_switchTo` calls
|
||||
// `awaitBindingSettle` after activation, so by the time it pops, the
|
||||
// chosen profile's bind is settled.
|
||||
final settings = await SettingsService.getInstance();
|
||||
if (!mounted) return;
|
||||
final hasNoActive = activeProfile.active == null && activeProfile.profiles.isNotEmpty;
|
||||
final requireOnOpen =
|
||||
settings.read(SettingsService.requireProfileSelectionOnOpen) && activeProfile.hasMultipleProfiles;
|
||||
final shouldPrompt = hasNoActive || requireOnOpen;
|
||||
|
||||
var bindingSucceeded = activeProfile.lastBindingSucceeded;
|
||||
if (shouldPrompt) {
|
||||
await Navigator.of(
|
||||
context,
|
||||
).push(MaterialPageRoute(builder: (_) => const ProfileSwitchScreen(requireSelection: true)));
|
||||
if (!mounted) return;
|
||||
|
||||
if (result.hasConnections && result.firstClient != null) {
|
||||
// Resume any downloads that were interrupted by app kill
|
||||
final downloadProvider = context.read<DownloadProvider>();
|
||||
unawaited(
|
||||
downloadProvider.ensureInitialized().then((_) {
|
||||
downloadProvider.resumeQueuedDownloads(result.firstClient!);
|
||||
}),
|
||||
);
|
||||
|
||||
unawaited(Navigator.pushReplacement(context, fadeRoute(MainScreen(client: result.firstClient!))));
|
||||
} else {
|
||||
_setStatus(t.common.startingOfflineMode);
|
||||
await context.read<DownloadProvider>().ensureInitialized();
|
||||
bindingSucceeded = activeProfile.active != null && activeProfile.lastBindingSucceeded;
|
||||
} else {
|
||||
// Now wait for the binder to settle. This is the Plex/Jellyfin server
|
||||
// race: per-server status flips on the splash list as each client comes
|
||||
// online, and we don't push MainScreen until they're all done (success
|
||||
// or fail). Eliminates the "Failed to load discover content: No servers
|
||||
// available" race the old eager-navigate flow caused.
|
||||
bindingSucceeded = await activeProfile.awaitBindingSettle();
|
||||
if (!mounted) return;
|
||||
if (!bindingSucceeded) {
|
||||
appLogger.w('Setup: initial profile bind failed; retrying once before entering main screen');
|
||||
await binder.rebindActive();
|
||||
if (!mounted) return;
|
||||
unawaited(Navigator.pushReplacement(context, fadeRoute(const MainScreen(isOfflineMode: true))));
|
||||
}
|
||||
} catch (e, stackTrace) {
|
||||
appLogger.e('Error during multi-server connection', error: e, stackTrace: stackTrace);
|
||||
|
||||
if (mounted) {
|
||||
_setStatus(t.common.startingOfflineMode);
|
||||
await context.read<DownloadProvider>().ensureInitialized();
|
||||
if (!mounted) return;
|
||||
unawaited(Navigator.pushReplacement(context, fadeRoute(const MainScreen(isOfflineMode: true))));
|
||||
bindingSucceeded = activeProfile.lastBindingSucceeded;
|
||||
}
|
||||
}
|
||||
|
||||
if (shouldEnterOfflineModeAfterStartupBind(
|
||||
bindingSucceeded: bindingSucceeded,
|
||||
hasOnlineServers: _serverManagerFromContext().onlineServerIds.isNotEmpty,
|
||||
)) {
|
||||
appLogger.w('Setup: no servers online after startup bind; starting offline mode');
|
||||
await downloadProvider.ensureInitialized();
|
||||
if (!mounted) return;
|
||||
unawaited(Navigator.pushReplacement(context, fadeRoute(const MainScreen(isOfflineMode: true))));
|
||||
return;
|
||||
}
|
||||
|
||||
// Repopulate metadata for downloaded items now that per-backend caches
|
||||
// are resolvable (the Connections row + live JellyfinClient are in
|
||||
// place). Without this the downloads list and sync-rule titles render
|
||||
// empty until something forces a later refresh.
|
||||
await downloadProvider.refreshMetadataFromCache();
|
||||
if (!mounted) return;
|
||||
|
||||
unawaited(Navigator.pushReplacement(context, fadeRoute(MainScreen(initialPromptHandled: shouldPrompt))));
|
||||
}
|
||||
|
||||
/// Wire per-server status updates from [MultiServerManager] into the
|
||||
/// splash list so the user sees check/cross marks land as the binder
|
||||
/// brings each client online. Best-effort: stops listening when the
|
||||
/// state goes away.
|
||||
StreamSubscription<Map<String, bool>>? _statusSub;
|
||||
|
||||
void _bindServerStatusListener(ActiveProfileProvider _, MultiServerManager Function() resolveManager) {
|
||||
_statusSub?.cancel();
|
||||
final manager = resolveManager();
|
||||
_statusSub = manager.statusStream.listen((status) {
|
||||
if (!mounted) return;
|
||||
setState(() {
|
||||
for (final entry in status.entries) {
|
||||
final existing = _serverStatus[entry.key];
|
||||
if (existing != null) {
|
||||
_serverStatus[entry.key] = (existing.$1, entry.value);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
MultiServerManager _serverManagerFromContext() => context.read<MultiServerProvider>().serverManager;
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_statusSub?.cancel();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
Widget _buildStatusText(BuildContext context) {
|
||||
@@ -1085,6 +1278,7 @@ class _SetupScreenState extends State<SetupScreen> {
|
||||
statusIcon = const Icon(Icons.cancel, size: 14, color: failColor);
|
||||
}
|
||||
return Padding(
|
||||
key: ValueKey(entry.key),
|
||||
padding: const EdgeInsets.symmetric(vertical: 2),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
/// Backend-neutral download resolution types.
|
||||
///
|
||||
/// Returned by [MediaServerClient] download-resolution methods so the
|
||||
/// [DownloadManagerService] doesn't need to know whether it's talking to
|
||||
/// Plex or Jellyfin.
|
||||
library;
|
||||
|
||||
/// Spec for a single external subtitle track that should be downloaded
|
||||
/// alongside the video file.
|
||||
///
|
||||
/// `id` is a backend-stable integer used in the on-disk filename
|
||||
/// (Plex stream id, Jellyfin stream index).
|
||||
class DownloadSubtitleSpec {
|
||||
final int id;
|
||||
final String url;
|
||||
final String? codec;
|
||||
final String? language;
|
||||
final String? languageCode;
|
||||
final bool forced;
|
||||
final String? displayTitle;
|
||||
|
||||
const DownloadSubtitleSpec({
|
||||
required this.id,
|
||||
required this.url,
|
||||
this.codec,
|
||||
this.language,
|
||||
this.languageCode,
|
||||
this.forced = false,
|
||||
this.displayTitle,
|
||||
});
|
||||
}
|
||||
|
||||
/// Spec for a single artwork file. `localKey` is the deterministic key the
|
||||
/// storage service hashes to compute the on-disk filename — Plex passes the
|
||||
/// backend-relative path so cache deduplication works across items that
|
||||
/// reference the same blob; Jellyfin passes the absolute URL since artwork
|
||||
/// URLs are already unique per item after stripping auth query parameters.
|
||||
class DownloadArtworkSpec {
|
||||
final String localKey;
|
||||
final String url;
|
||||
|
||||
const DownloadArtworkSpec({required this.localKey, required this.url});
|
||||
}
|
||||
|
||||
/// Bundle of everything the download pipeline needs to fetch the primary
|
||||
/// video file and its companion subtitle sidecars for a chosen media
|
||||
/// version.
|
||||
class DownloadResolution {
|
||||
final String? videoUrl;
|
||||
final List<DownloadSubtitleSpec> externalSubtitles;
|
||||
|
||||
const DownloadResolution({required this.videoUrl, this.externalSubtitles = const []});
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
import 'media_filter.dart';
|
||||
|
||||
/// Combined filter listing result. Plex returns categories with no values
|
||||
/// pre-loaded; Jellyfin pre-populates [cachedValues] so the FiltersBottomSheet
|
||||
/// avoids a second round-trip per category.
|
||||
class LibraryFilterResult {
|
||||
final List<MediaFilter> filters;
|
||||
final Map<String, List<MediaFilterValue>> cachedValues;
|
||||
|
||||
const LibraryFilterResult({required this.filters, required this.cachedValues});
|
||||
|
||||
static const empty = LibraryFilterResult(filters: [], cachedValues: {});
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
/// One entry in the alpha-jump bar — a letter (or `#` bucket for items
|
||||
/// starting with a digit / non-letter) plus the count of items beginning
|
||||
/// with it.
|
||||
///
|
||||
/// Plex's `/library/sections/{id}/firstCharacter` endpoint returns these
|
||||
/// natively (counts let the UI scroll to a cumulative offset). Jellyfin
|
||||
/// has no equivalent endpoint, so [JellyfinClient.fetchFirstCharacters]
|
||||
/// synthesises a 27-letter alphabet with `size: 1` per entry — the bar
|
||||
/// then acts as a name-prefix filter rather than a scroll affordance.
|
||||
class LibraryFirstCharacter {
|
||||
final String key;
|
||||
final String title;
|
||||
final int size;
|
||||
|
||||
const LibraryFirstCharacter({required this.key, required this.title, required this.size});
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
import 'media_kind.dart';
|
||||
|
||||
/// Sort order applied to a library query.
|
||||
enum LibrarySortDirection { ascending, descending }
|
||||
|
||||
class LibrarySort {
|
||||
/// Backend-neutral sort field. Common values: `addedAt`, `originallyAvailableAt`,
|
||||
/// `lastViewedAt`, `title`, `rating`, `viewCount`, `random`.
|
||||
final String field;
|
||||
final LibrarySortDirection direction;
|
||||
|
||||
const LibrarySort({required this.field, this.direction = LibrarySortDirection.descending});
|
||||
}
|
||||
|
||||
/// A single filter clause. The semantics of `field` and `value` are
|
||||
/// backend-translated — the neutral query just carries the intent.
|
||||
class LibraryFilter {
|
||||
final String field;
|
||||
final String op; // "=", "!=", "contains", ">=", etc.
|
||||
final List<String> values;
|
||||
|
||||
const LibraryFilter({required this.field, this.op = '=', required this.values});
|
||||
}
|
||||
|
||||
/// Backend-neutral library content query. Each backend's adapter translates
|
||||
/// these into its own query DSL (Plex `/library/sections/{id}/all?type=...`
|
||||
/// or Jellyfin `/Items?ParentId=...&Filters=...`).
|
||||
class LibraryQuery {
|
||||
/// Restrict to a single kind (e.g. `MediaKind.movie`). Null = library default.
|
||||
final MediaKind? kind;
|
||||
|
||||
/// Pagination — zero-based offset.
|
||||
final int offset;
|
||||
final int limit;
|
||||
|
||||
final LibrarySort? sort;
|
||||
final List<LibraryFilter> filters;
|
||||
|
||||
/// Free-text search restricted to this library. Distinct from the global
|
||||
/// search endpoint.
|
||||
final String? search;
|
||||
|
||||
/// Whether to include items the active user has already watched.
|
||||
final bool includeWatched;
|
||||
|
||||
/// Restrict the result to items whose sort name starts with this string —
|
||||
/// the alpha-jump bar's filter UX. The literal `#` is a sentinel for
|
||||
/// "non-alphabetic" and translates to a `NameLessThan=A` query for backends
|
||||
/// that support it.
|
||||
final String? nameStartsWith;
|
||||
|
||||
/// Genre filter — used by the per-library filter sheet. Backends that
|
||||
/// take multiple values (Jellyfin) AND/intersect; those that take one
|
||||
/// (Plex's existing flow) consult `filters` instead.
|
||||
final List<String>? genres;
|
||||
final List<String>? officialRatings;
|
||||
final List<int>? years;
|
||||
final List<String>? tags;
|
||||
|
||||
const LibraryQuery({
|
||||
this.kind,
|
||||
this.offset = 0,
|
||||
this.limit = 50,
|
||||
this.sort,
|
||||
this.filters = const [],
|
||||
this.search,
|
||||
this.includeWatched = true,
|
||||
this.nameStartsWith,
|
||||
this.genres,
|
||||
this.officialRatings,
|
||||
this.years,
|
||||
this.tags,
|
||||
});
|
||||
|
||||
LibraryQuery copyWith({
|
||||
MediaKind? kind,
|
||||
int? offset,
|
||||
int? limit,
|
||||
LibrarySort? sort,
|
||||
List<LibraryFilter>? filters,
|
||||
String? search,
|
||||
bool? includeWatched,
|
||||
String? nameStartsWith,
|
||||
List<String>? genres,
|
||||
List<String>? officialRatings,
|
||||
List<int>? years,
|
||||
List<String>? tags,
|
||||
}) {
|
||||
return LibraryQuery(
|
||||
kind: kind ?? this.kind,
|
||||
offset: offset ?? this.offset,
|
||||
limit: limit ?? this.limit,
|
||||
sort: sort ?? this.sort,
|
||||
filters: filters ?? this.filters,
|
||||
search: search ?? this.search,
|
||||
includeWatched: includeWatched ?? this.includeWatched,
|
||||
nameStartsWith: nameStartsWith ?? this.nameStartsWith,
|
||||
genres: genres ?? this.genres,
|
||||
officialRatings: officialRatings ?? this.officialRatings,
|
||||
years: years ?? this.years,
|
||||
tags: tags ?? this.tags,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/// Page of items returned by [MediaServerClient.getLibraryContent].
|
||||
/// Carries the total count so the UI can render correct pagination affordances.
|
||||
class LibraryPage<T> {
|
||||
final List<T> items;
|
||||
final int totalCount;
|
||||
final int offset;
|
||||
|
||||
const LibraryPage({required this.items, required this.totalCount, this.offset = 0});
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user