VideoRules class

What a store accepts in a preview video, named after whose rules they are.

A class rather than four constants for the reason store_image.dart's rules are: the second store to grow a preview uploader names whose rules it publishes under and cannot omit a check it never had to write out.

Constructors

VideoRules({required String store, required Map<String, String> codecs, required double maxFrameRate, required Duration minDuration, required Duration maxDuration, required int maxFileSize, int? requiredAudioChannels, bool ambiguousMegabytes = false})
const

Properties

ambiguousMegabytes → bool
Whether maxFileSize is one reading of a limit the store states without units, so a file just over it may still be accepted.
final
codecs → Map<String, String>
Accepted sample-description formats, mapped to how the store names them, so a refusal can say hvc1 (HEVC) and then say what is accepted in the words the specification page uses.
final
hashCode → int
The hash code for this object.
no setterinherited
maxDuration → Duration
final
maxFileSize → int
final
maxFrameRate → double
final
minDuration → Duration
final
requiredAudioChannels → int?
Channels the store requires, or null when it states no rule.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
store → String
For the message: "the App Store", not this object's name.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited