Vixen
02b45cc4
csharp
public record class VideoPlaybackOptions

How to open a clip.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

A class rather than a record struct, deliberately. VideoPlayerOptions is a record struct whose default skips its field initialisers and hands out a queue capacity of zero — a trap that cost a test to find — and repeating the shape here would repeat the trap on a type whose whole job is to be passed as .

Fields and properties (6)

  • public bool Loop

    Whether the video restarts when it ends.

  • public bool AutoPlay

    Whether to start playing as soon as it is open.

  • public bool OpenAudio

    Whether to open the audio track at all.

  • public VideoPlayerOptions Player

    How the picture's own decoding is configured.

  • public bool? SeparateAudioReader

    Whether the sound gets a reader of its own rather than sharing the picture's.

  • public bool AudioNeedsOwnReader

    What SeparateAudioReader works out to.

Used by (2)

  • VideoPlaybackVixen.Video
  • VideoPlaybackTestsVixen.Video.Tests