VideoPlayerFFMPEG

class 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
var audioGain: Double

Controls the gain of the audio

Link copied to clipboard
var colorBuffer: ColorBuffer? = null
Link copied to clipboard
var duration: Double
Link copied to clipboard
val ended: Event<VideoEvent>

Listenable event, emitted when video ended

Link copied to clipboard
val height: Int
Link copied to clipboard
val newFrame: Event<FrameEvent>

Listenable event, emitted when a new frame arrived

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

Sources

Link copied to clipboard