I am trying to play video from a URL that does not end in “.mp4”.
There is some internal check in the VideoPlayer code that ensures the file extension is within a predefined set (e.g. “.mp4” or “.webm”).
Renaming the file to anything different but maintaining the same file signature causes the VideoPlayer to fail playback.
It would be nice to not be constricted by this arbitrary detail, since the file signature can be checked in the initial bytes of the file stream to determine if the file is compatible or not.
3 years after… I still have the same problem.
It would be nice if video player API also takes some argument like VIdeoType(similar to AudioType for loading audioClips)
I have encountered the same problem. Unity video player failed to play video file without extension.
This issue cause troubles in the resource updating system of my game.
The file name of all updatable game resources (asset bundles & video files etc.) in my game is SHA-1 checksum of the resource file.
Apologies for the +1.
Came across this issue today. Noticed that the player stops working when I removed the extension.
I guess the developer of that component is a Windows user.
The only workaround I have is to symlink the file (or copy it locally) before I feed the file::// url to the video component.
I’m pretty new to the Unity community, does anyone know if this “bug” has been reported yet?