Videos on Android are black using UaaL, works fine in pure Unity build.

Aperta
#49 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
android, unity
Ambito
mobile

Direzione di ricerca

The report names Unity 2020.3.14f1, AR Foundation 4.1.7, and the Unity VideoPlayer, and cites Unity's issue about compressed asset bundles. Start by checking how UaaL packages sharedassets0.resource and compare it with the working pure Unity build and the StreamingAssets workaround. Done means identifying why Android cannot open the video in the UaaL build and documenting or fixing the cause; the issue gives no file or test entry point.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hi, I'm using UaaL with Unity 2020.3.14f1 and AR Foundation 4.1.7 and the video I'm trying to play is just a VideoClip using the Unity VideoPlayer component and it shows a black screen where the video should be. the video plays fine in an Android build built directly from Unity. In the logcat, it's spewing this message:

W/Unity: AndroidVideoMedia::OpenExtractor could not translate sharedassets0.resource to local file. Make sure file exists, is on disk (not in memory) and not compressed.
AndroidVideoMedia: Error opening extractor: -10004

I found it's similar to this issue playing video in compressed asset bundles, they have to be uncompressed.
https://issuetracker.unity3d.com/issues/android-loading-videos-from-assetbundles-fails-unless-its-uncompressed-and-loaded-from-file

So I'm wondering if it needs to be extracted and/or uncompressed first from sharedassets0? I did confirm there a workaround of putting the video in StreamingAssets and playing it from a URL. Not ideal but it works.
Thanks,
Alan

Lingua principale
Objective-C++
Stelle
815
Fork
252
Merge medio
21h 42m
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Unity-Technologies/uaal-example

Tutte le issue di Unity-Technologies/uaal-example

Issue simili

Altre issue su Mobile Dev

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.