DVMediaSource class final

What is played. The box owns size and gestures; this owns content.

Constructors

DVMediaSource.asset(String key, {DVMediaStreaming streaming = DVMediaStreaming.auto, String? progressive, DVDrmProtection? protection, bool cache = true})
const
DVMediaSource.file(String path, {DVMediaStreaming streaming = DVMediaStreaming.auto, String? progressive, DVDrmProtection? protection, bool cache = true})
const
DVMediaSource.url(String url, {DVMediaStreaming streaming = DVMediaStreaming.auto, String? progressive, DVDrmProtection? protection, bool cache = true})
const

Properties

cache → bool
Whether a progressive http:/https: source is read through the disk cache. Off for content that must not be kept on the device; ignored for adaptive streams, assets and files.
final
hashCode → int
The hash code for this object.
no setteroverride
isAdaptive → bool
Whether this is an HLS or DASH stream.
no setter
kind → DVMediaSourceKind
final
progressive → String?
A single-file rendition of the same content, for a target that cannot play the adaptive stream. Without one such a target refuses the source rather than guessing at a URL.
final
progressiveRendition → DVMediaSource?
The progressive rendition as a source of its own, or null.
no setter
protection → DVDrmProtection?
Set when the content is protected.
final
reference → String
The URL, asset key or file path, depending on kind.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
streaming → DVMediaStreaming
final

Methods

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

Operators

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