VideoPlayback

interface VideoPlayback

Common playback contract for the JVM video textures (VLCJ, JavaCV, FFmpeg, JavaFX). Every JVM *VideoTexture exposes the same minimal API; this interface formalizes that so tutorial / app code can target one type instead of carrying a per-backend adapter.

The engine doesn't depend on this interface — it's a convenience for callers that want to swap backends at runtime.

Inheritors

Properties

Link copied to clipboard
abstract val timeMs: Long

Current playback time in milliseconds since playback started.

Functions

Link copied to clipboard
abstract fun pause()

Pause playback. The current frame stays on the texture; resumable via play.

Link copied to clipboard
abstract fun play()

Start (or resume) playback. Re-entrant — calling on an already-running player is a no-op.

Link copied to clipboard
abstract fun release()

Free decoder + native resources. After release the texture is unusable.

Link copied to clipboard
abstract fun stop()

Stop playback and rewind to the start.