Unable to load PlayBack videos

Include the following details (edit as applicable):

  • Issue category: Sample
  • Device type & OS version: iOS17.7.1
  • Host machine & OS version: Mac on Ventura 13.7.8
  • Issue Environment : Unity Remote
  • Xcode version:
  • ARDK version:3.16.0
  • Unity version:Unity6000.053f1

Description of the issue:I set a video in PlayBack, but when I run it in Unity, it doesn’t load the video and shows a black screen.

Please tell me how to fix this.

Hi Noriko,

Thank you for reaching out.

It appears that part of your script is encountering a NullReferenceException on line 33 which could be the cause of the playback set not running as expected.

Are you able to share your full DepthDisplayDemo script so we can get to the bottom of this together? In the meantime, please review the How to Set Up Playback guide in our documentation to ensure your playback set is configured properly.

I look forward to hearing from you!

Kind regards,
Maverick L.

Thank you for your message.

After re-downloading the sample from GitHub

and reconfiguring everything from scratch,

the Playback function became usable.

All errors disappeared.

However, I encountered a different issue.

When running DepthDisplayDemo with the playback feature,

compared to ver3.15.0, everything appears too dark,

making the depth display unrecognizable.

Running ver3.16.0 on an iPhone device produced the same result.

I’ve attached photos and videos of the phenomenon.

① DepthDisplayDemo ver 3.15.0 Unity (Photo)

② DepthDisplayDemo ver 3.16.0 Unity (Photo)

③ DepthDisplayDemo ver 3.16.0 iPhone (Video)

Please advise on the cause.

I look forward to your response.

Sincerely,

① DepthDisplayDemo ver 3.15.0 Unity (Photo)

② DepthDisplayDemo ver 3.16.0 Unity (Photo)

③ DepthDisplayDemo ver 3.16.0 iPhone (Video)

Hi Noriko,

I’m happy to hear you’ve made some progress!

Both runs were performed on Unity 6, correct?

I am definitely using Unity 6.

And, is this a built-in render pipeline or URP project?

After checking,
it was set a built-in render pipeline.

Error when opening UnitySample

Depth error

❶[Failed to load ‘/Users/______/Unity/ARDKSamples3160Unity6000053f1/Assets/XR/UserSimulationSettings/SimulationEnvironmentAssetsManager.asset’. File may be corrupted or was serialized with a newer version of Unity.

UnityEditor.AssetDatabase:LoadAssetAtPath<UnityEditor.XR.Simulation.SimulationEnvironmentAssetsManager> (string)

Unity.XR.CoreUtils.Editor.EditorScriptableSettings`1<UnityEditor.XR.Simulation.SimulationEnvironmentAssetsManager>:CreateAndLoad () (at ./Library/PackageCache/com.unity.xr.core-utils@5b282bc7378d/Editor/EditorScriptableSettings.cs:56)

Unity.XR.CoreUtils.Editor.EditorScriptableSettings`1<UnityEditor.XR.Simulation.SimulationEnvironmentAssetsManager>:get_Instance () (at ./Library/PackageCache/com.unity.xr.core-utils@5b282bc7378d/Editor/EditorScriptableSettings.cs:27)

UnityEditor.XR.Simulation.XREnvironmentViewManager:OnEnable ()]

❷[System.ArgumentException: JSON parse error: Invalid value.

at (wrapper managed-to-native) UnityEngine.JsonUtility.FromJsonInternal_Injected(UnityEngine.Bindings.ManagedSpanWrapper&,object,System.Type)

at UnityEngine.JsonUtility.FromJsonInternal (System.String json, System.Object objectToOverwrite, System.Type type) [0x0002a] in :0

at UnityEngine.JsonUtility.FromJsonOverwrite (System.String json, System.Object objectToOverwrite) [0x00051] in /Users/bokken/build/output/unity/unity/Modules/JSONSerialize/Public/JsonUtility.bindings.cs:56

at UnityEditor.XR.Management.XRPackageInitializationSettings.LoadSettings () [0x00023] in ./Library/PackageCache/com.unity.xr.management@20be87dea580/Editor/XRPackageInitializationSettings.cs:68

at UnityEditor.XR.Management.XRPackageInitializationSettings.get_Instance () [0x00034] in ./Library/PackageCache/com.unity.xr.management@20be87dea580/Editor/XRPackageInitializationSettings.cs:41

at UnityEditor.XR.Management.Legacy.XRLegacyUninstaller..cctor () [0x00108] in ./Library/PackageCache/com.unity.xr.management@20be87dea580/Editor/Legacy/XRLegacyUninstaller.cs:121

UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes (System.Type) (at /Users/bokken/build/output/unity/unity/Editor/Mono/EditorAssemblies.cs:126)]

Thank you for providing that information.

Could you provide the shader and the depth demo script you’re using so we can investigate this further?

I’m sorry to hear you’re also encountering a problem with the simulation environment as well. How did you set up this project? Did you import it via the Unity Hub and change the Unity version associated with it? What about the simulation environment: Did you download it at the same time or was this one you generated or modified?

If it’s easier, feel free to share your project here or in private messages. Thank you for bearing with me while we work together to resolve these issues.

Kind regards,
Maverick L.

Sorry for the delayed response.

Here are my answers to your questions:

『How did you set up this project? Did you import it via the Unity Hub and change the Unity version associated with it? 』→

① Downloaded the ARDK Sample from GitHub

② Unzipped the ARDK Sample

③ Imported it via the Unity Hub

④ Associated Unity version

Used Unity 6.0 (6000.0.53f1)

『What about the simulation environment: Did you download it at the same time or was this one you generated or modified?』→ I created it myself using Recording.

『If it’s easier, feel free to share your project here or in private messages.』→

I will send it via private messages.

Thank you for providing that information. I followed up with you via PMs.

Hi Noriko,

Thank you for your patience.

Because depth relies on the occlusion extension, this is most likely due to the incompatibility between Lightship Occlusion Extension and AR Foundation 6.

Kind regards,
Maverick L.

This topic was automatically closed 2 hours after the last reply. New replies are no longer allowed.