VLCController class

Inheritance
Implemented types

Constructors

VLCController({List<String>? args})

Properties

hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
onEvent Stream<VLCEvent>
For listening to player events
no setter
onPlayerState Stream<VLCState>
For listening to the player status
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textureId Future<int>
no setter
value VLCValue
The current value of the object. When the value changes, the callbacks registered with addListener will be invoked.
getter/setter pairoverride-getter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
addSlave({int type = 0, String uri = '', String path = '', bool select = true}) Future<bool>
Add a slave (or subtitle) to the current media player.
dispose() → void
Release resources
override
getAspectRatio() Future<String>
Get current video aspect ratio
getLength() Future<int>
Gets current movie's length in ms.
getPlayerState() Future<VLCState>
Get player state.
getPosition() Future<double>
Gets the movie position. return the movie position, or -1 for any error.
getRate() Future<double>
Get the current playback speed
getScale() Future<double>
Get the current video scaling factor
getTime() Future<int>
Gets the current movie time (in ms). return the movie time (in ms), or -1 if there is no media.
getVideoScale() Future<ScaleType>
Get the current video scale type return the current ScaleType used by MediaPlayer
getVolume() Future<int>
Gets volume as integer
isPlaying() Future<bool>
Returns true if any media is playing
isSeekable() Future<bool>
Returns true if any media is seekable
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
pause() → void
Pauses any playing media
play({String uri = '', String path = ''}) Future<void>
Play the media
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
setAspectRatio(String aspect) → void
Set new video aspect ratio.
setBufferSize(int width, int height) Future<void>
setDataSource({String uri = '', String path = ''}) Future<void>
Setting the data source
setPosition(double pos) → void
Sets the movie position.
setRate(double rate) → void
Sets the speed of playback (1 being normal speed, 2 being twice as fast)
setScale(double scale) → void
Set the video scaling factor
setTime(int time) Future<int>
Sets the movie time (in ms), if any media is being played. time Time in ms. return the movie time (in ms), or -1 if there is no media.
setVideoScale(ScaleType type) → void
Set the video scale type, by default, scaletype is set to ScaleType.SURFACE_BEST_FIT ScaleType to rule the video surface filling
setVideoTitleDisplay(int position, int timeout) → void
Set if, and how, the video title will be shown when media is played
setVolume(int volume) Future<int>
Sets volume as integer volume Volume level passed as integer
startRecord(String directory) Future<bool>
Start recording
stop() → void
Stops the playing media
stopRecord() Future<bool>
Stop recording
toString() String
A string representation of this object.
inherited

Operators

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