Videos on Android are black using UaaL, works fine in pure Unity build.
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 30/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- android, unity
- 领域
- mobile
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Objective-C++
- 星标
- 815
- 派生
- 252
- 平均合并
- 21 小时 42 分钟
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Unity-Technologies/uaal-example 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 25/100
Unity-Technologies/uaal-example#123 · 4 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
Unity-Technologies/uaal-example#122 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 15/100
Unity-Technologies/uaal-example#120 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 28/100
Unity-Technologies/uaal-example#118 · 4 条评论 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 25/100
Unity-Technologies/uaal-example#116 · 1 条评论 ·
查看 Unity-Technologies/uaal-example 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
gluestack/gluestack-ui#3469 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
jhaizhou-ops/S2Arm#1967 · 2 条评论 ·
维护者通常 1 天内回复
-
[Bug]: AppiumDriver.PlatformName fails with Appium 4可能已有人在做 @Dor-bl 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 62/100
appium/dotnet-client#1177 · 1 个 reaction ·
维护者通常 2 天内回复
-
bug from-app needs-triage
难度 1/5 1 小时以内 新手友好度 74/100
nightly-labs/openbot#14320 ·
维护者通常 1 天内回复
-
area:focus area:ui cluster:focus-remote effort:s platform:android-tv platform:fire-tv priority:critical type:bug
难度 2/5 1-3 小时 新手友好度 78/100
fatihmutluu/elv-iptv#425 ·
维护者通常 1 天内回复