Initial upload: immich-tv-viewer
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
# Immich TV Viewer - V2.4.1 Fix Music Manifest
|
||||
|
||||
Projet cible :
|
||||
|
||||
D:\07-Logiciels\17-IMMICH-TV\immich_tv_viewer
|
||||
|
||||
## Fichiers modifiés
|
||||
|
||||
- lib/main.dart
|
||||
- pubspec.yaml
|
||||
- README_V2_4_1_FIX_MUSIC_MANIFEST.txt
|
||||
|
||||
## Correction
|
||||
|
||||
La V2.4 cherchait les musiques via :
|
||||
|
||||
```dart
|
||||
rootBundle.loadString('AssetManifest.json')
|
||||
```
|
||||
|
||||
Sur ta version Flutter / Android TV, ce fichier n'est pas disponible comme asset texte :
|
||||
|
||||
```text
|
||||
Unable to load asset: "AssetManifest.json"
|
||||
```
|
||||
|
||||
La V2.4.1 utilise maintenant l'API moderne Flutter :
|
||||
|
||||
```dart
|
||||
AssetManifest.loadFromAssetBundle(rootBundle)
|
||||
```
|
||||
|
||||
## Résultat attendu
|
||||
|
||||
Au lancement de la visionneuse photo ou de Surprends-moi, tu dois voir :
|
||||
|
||||
```text
|
||||
IMMICH_MUSIC found X tracks
|
||||
IMMICH_MUSIC play Music/nom_du_fichier.mp3
|
||||
```
|
||||
|
||||
## Vérification du dossier Music
|
||||
|
||||
Tes fichiers doivent être ici :
|
||||
|
||||
```text
|
||||
D:\07-Logiciels\17-IMMICH-TV\immich_tv_viewer\Music
|
||||
```
|
||||
|
||||
Exemples :
|
||||
|
||||
```text
|
||||
Music\track01.mp3
|
||||
Music\track02.mp3
|
||||
```
|
||||
|
||||
## Installation / test
|
||||
|
||||
```powershell
|
||||
cd D:\07-Logiciels\17-IMMICH-TV\immich_tv_viewer
|
||||
flutter clean
|
||||
flutter pub get
|
||||
flutter run -d 192.168.1.8:5555
|
||||
```
|
||||
|
||||
`flutter clean` est important ici, parce que les assets audio doivent être réembarqués dans l'APK.
|
||||
Reference in New Issue
Block a user