public sealed class FileVideoContentSourceVideos that are files under a directory.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
The ordinary arrangement, and not a fallback for one. A video is streamed rather than loaded, so it is one of the few things a shipping title has a reason to leave loose beside the executable instead of packing into a bundle — a bundle's whole purpose is to make many small assets one read, and a cutscene is already one read.
⚠ The address is joined to the root and then checked to be under it. An address comes out of content the game shipped rather than out of a player, so this is not a security boundary; what it catches is a build that wrote an absolute path into a clip, which otherwise works on the machine that built it and on no other.
Methods (4)
public FileVideoContentSource(string root, string extension = ".webm")Videos that are files under a directory.
public string PathOf(string address)Where an address's file is.
public bool Exists(string address)Whether there is anything at an address, without opening it.
public Stream Open(string address)Opens a video's bytes.
Used by (1)
- VideoPlaybackTestsVixen.Video.Tests