mdk library

Constants

ignoreAspectRatio → const double
Stretch video content to fill renderer viewport.
keepAspectRatio → const double
Keep video frame aspect ratio and scale as large as possible inside video renderer viewport.
keepAspectRatioCrop → const double
Keep frame aspect ratio and scale as small as possible to cover renderer viewport.
timeScaleForInt → const double
Float timestamp unit is second, integer timestamp(for example Player.position, seek) unit is millisecond.
timestampEOS → const double
a frame with timestampEOS indicates it's the last frame

Functions

setGlobalOption<T>(String name, T value) → void
Global options: https://github.com/wang-bin/mdk-sdk/wiki/Global-Options
setLogHandler(void cb(LogLevel, String)?) → void
Set log handler for mdk internal logs
version() int
libmdk version.

Typedefs

CallbackToken = MDK_CallbackToken