csharp
public sealed class DelegatedVideoContentSourceA source made out of a function, for everything that is not a file.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
What an addressable game uses. AssetManager.Open hands back a seekable stream over a bundle entry, so the whole of the wiring is: var content = new DelegatedVideoContentSource(assets.Open, assets.Exists); which is the amount of glue a seam this narrow should need. It is also what a test uses to serve a video it generated in memory.
Methods (3)
public DelegatedVideoContentSource(Func<string, Stream> open, Func<string, bool>? exists = null)A source made out of a function, for everything that is not a file.
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