DiveMediaSource class

Represents a ffmpeg_source media source.

Inheritance

Constructors

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

Properties

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

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