DiveMediaSource class

Represents a ffmpeg_source media source.

Inheritance

Constructors

DiveMediaSource(String name, {DiveMediaSourceSettings? settings, int stateSyncInterval = 500})

Properties

controller DiveTextureController?
read-onlyinherited
hashCode int
The hash code for this object.
read-onlyinherited
inputType DiveInputType?
finalinherited
monitoringType DiveCoreMonitoringType
Get the monitoring type.
read / writeinherited
name String?
finalinherited
pointer ↔ DivePointer?
read / writeinherited
provider → StateProvider<DiveMediaSourceState>
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
settings DiveSettings?
finalinherited
stateSyncInterval int
The state syncing interval (msec).
final
trackingUUID String
A RFC4122 V1 UUID (time-based)
read-onlyinherited
volume DiveCoreLevel
Get the volume level (dB).
read / writeinherited
volumeMeter DiveAudioMeterSource?
read / write

Methods

dispose() bool
Release the resources associated with this source.
override
getDuration() Future<int>
getState() Future<DiveMediaSourceState>
Get the media source state for this media source.
getTime() Future<int>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() Future<bool>
play() Future<bool>
releaseController() → void
Release the texture controller.
inherited
restart() Future<bool>
setTime(int ms) Future<bool>
setupTexture(String trackingUUID) Future<void>
This must be called right after this class is instantiated and before doing anything else.
inherited
sourceDefaults() DiveSettings
inherited
stop() Future<bool>
syncState({int delay = 100}) Future<void>
Sync the media state from the media source to the state provider, delaying if necessary.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

create({String name = 'my media', required DiveMediaSourceSettings settings, bool requiresVideoMonitor = true}) Future<DiveMediaSource?>
override