VideoPlayerFFMPEG

Video player based on FFMPEG

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun dispose()

Destroy the video player, this releases all allocated resources

Link copied to clipboard
fun draw(drawer: Drawer, blind: Boolean = false, update: Boolean = true)

Draw the current frame

fun draw(drawer: Drawer, source: Rectangle, target: Rectangle, blind: Boolean = false, update: Boolean = true)

Draw the current frame using source and target rectangles

fun draw(drawer: Drawer, x: Double = 0.0, y: Double = 0.0, width: Double = this.width.toDouble(), height: Double = this.height.toDouble(), blind: Boolean = false, update: Boolean = true)

Draw the current frame at given position and size

Link copied to clipboard
fun pause()
Link copied to clipboard
fun play()

Start playing the stream

Link copied to clipboard
fun restart()
Link copied to clipboard
fun resume()
Link copied to clipboard
fun seek(positionInSeconds: Double)

Seek in the video

Properties

Link copied to clipboard

Controls the gain of the audio

Link copied to clipboard
Link copied to clipboard

The video duration in seconds

Link copied to clipboard

Listenable event, emitted when video ended

Link copied to clipboard
val height: Int
Link copied to clipboard

Listenable event, emitted when a new frame arrived

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val width: Int