I am using Unity 2019.4.9f1, exported to Xcode 12 beta targeting tvOS 14, following the example provided from Unity - Scripting API: VideoPlayer , setting URL to a video located in StreamingAssets folder will have the video reporting the correct length at the first frame after videoPlayer.Play() is called, and then 0 length from second frame onwards.
Initialize engine version: 2019.4.9f1 (50fe8a171dd9)
2020-08-28 15:48:11.253403+0800 appname[204:8184] Errors found! Invalidating cache...
2020-08-28 15:48:11.362273+0800 appname[204:8184] Errors found! Invalidating cache...
UnloadTime: 0.206750 ms
prepared video player - False
Example:VideoPlayerPrepareCompleted(VideoPlayer)
UnityEngine.Video.EventHandler:Invoke(VideoPlayer)
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
0/27.0166664123535
Example:Update()
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
0/0
Example:Update()
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
0/0
Example:Update()
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
0/0
Example:Update()
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
0/0
Example:Update()
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
0/0
Example:Update()
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
can I know is there any workaround at the moment?
harini
August 28, 2020, 10:02am
2
fakegood:
I am using Unity 2019.4.9f1, exported to Xcode 12 beta targeting tvOS 14, following the example provided from https://docs.unity3d.com/2019.1/Documentation/ScriptReference/Video.VideoPlayer.html , setting URL to a video located in StreamingAssets folder will have the video reporting the correct length at the first frame after videoPlayer.Play() is called, and then 0 length from second frame onwards.
Initialize engine version: 2019.4.9f1 (50fe8a171dd9)
2020-08-28 15:48:11.253403+0800 appname[204:8184] Errors found! Invalidating cache...
2020-08-28 15:48:11.362273+0800 appname[204:8184] Errors found! Invalidating cache...
UnloadTime: 0.206750 ms
prepared video player - False
Example:VideoPlayerPrepareCompleted(VideoPlayer)
UnityEngine.Video.EventHandler:Invoke(VideoPlayer)
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
0/27.0166664123535
Example:Update()
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
0/0
Example:Update()
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
0/0
Example:Update()
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
0/0
Example:Update()
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
0/0
Example:Update()
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
0/0
Example:Update()
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
can I know is there any workaround at the moment?
Hi,
Can you please let us know if this also happens when the target platform is Mac standalone or is this specific to TvOS?
Thanks and regards,
Harini
harini:
Hi,
Can you please let us know if this also happens when the target platform is Mac standalone or is this specific to TvOS?
Thanks and regards,
Harini
Hello! This happened only on tvOS. Tested on macOS and iOS and both don’t have problem with it.
Update: if I call videoPlayer.Stop() and videoPlayer.Play() again, it will be playing again.