I have a background transparent webm video that has to be played using a Video Player Component.
The video was imported (with Keep Alpha) and played without problem in Unity 2018.1.4f1. But when I upgraded the project to 2019.4.6f1, the import shows the errors:
VideoClip import error for Assets/Ricky/Resources/SaveableData/VideoClips/effect_BatsFlyBy 2.webm
UnityEditorInternal.InternalEditorUtility: ProjectWindowDrag(HierarchyProperty, Boolean)
UnityEngine.GUIUtility: ProcessEvent(Int32, IntPtr)
VideoClip import error for Assets/Ricky/Resources/SaveableData/VideoClips/effect_BatsFlyBy 2.webm
UnityEngine.GUIUtility: ProcessEvent(Int32, IntPtr)
And it cannot be dragged into the Video Player’s Video Clip field. Then I tried to use the Transcode property, set it to the VP8 codec. It is then able to be dragged into the Video Clip field.
Since the video has to be played in front of any game object, so the Render Mode has to be Camera Near Plane. The video can now be played. But when it plays, every game object in & in front of the Default sorting layer disappear, and reappear after the clip is finished.
I have tried different codecs, bitrate mode, spatial quality, deinterface, but none works. Please help.