lychee_player library

Classes

LycheeLog
The library's own log: decoders opened and rejected, network retries, stalls. By default it goes to the platform's log (logcat on Android, stderr elsewhere).
LycheePlayer
LycheePlayerStats
Playback statistics, read on demand with LycheePlayer.getStats.
LycheePlayerValue
LycheeSeekableRange
The positions LycheePlayer.seek reaches.
LycheeSubtitlePicture
A subtitle picture and where it goes on the video, in pixels of its display size after rotation.
LycheeSubtitleStyle
How LycheeVideo draws text subtitles. Sizes are fractions of the video's height, so the text scales with the picture.
LycheeThumbnailer
Pictures of a file or URL at given positions, for seek bar previews where the media has no sprite sheet: decoded apart from any player, with a demuxer and a decoder of its own. The input opens with the first thumbnailAt and stays open for the next.
LycheeTrack
An audio, video or subtitle stream of the open media.
LycheeVariant
A variant of an HLS master playlist that this build can play.
LycheeVideo
Shows the video of player, keeping its aspect ratio and rotation, with its subtitles over it: the pictures of bitmap subtitles (LycheePlayerValue.subtitlePictures), and text subtitles (LycheePlayerValue.subtitle) in subtitleStyle.

Enums

LycheeErrorKind
What a LycheePlayerValue.error is about, for deciding what to do next. Matches lychee_error_kind.
LycheeLogLevel
How much the library logs; each level includes the ones before it.
LycheePlayerState
Matches lychee_state.
LycheeTrackRole
What a track is for, as the container says. Matches lychee_track_role.
LycheeTrackType
Matches lychee_track_type.

Functions

audioSpectrum(Float32List samples) → Float32List
The magnitude spectrum of samples (a power of two long): half as many bands from 0 to half the sample rate, each its share of full scale (a full-scale sine reads about 1 in its band), from a Hann-windowed FFT.