Repository navigation
1.0.0-beta.6
Pre-release
Pre-release
·
103 commits
to main
since this release
Breaking
LycheeVideo, andLycheePlayerViewon Apple and Android, now draw
text subtitles too. If your app drawssubtitleitself, pass
subtitleStyle: null(Apple:subtitleStyle = nil).- Windows:
LYCHEE_FRAME_D3D11_TEXTUREtextures are reused for later
frames, from 100 ms after the frame holding one is released. Keep the
lychee_frameuntil you have drawn from it, not only a texture opened
from its shared handle; the Flutter plugin already does.
New
- Add subtitle files and URLs (SubRip, WebVTT, ASS/SSA) to what plays with
addSubtitle()(lychee_player_add_subtitle()in C): the file becomes
a subtitle track, selected once loaded, its times counted from the
start of the media. Tracks say whether they came from one (external).
Files in GBK, Big5 or windows-1252 are recognized; passencoding
(such as'Shift_JIS') for others. - Shift all subtitles later or earlier with
setSubtitleDelay()
(lychee_player_set_subtitle_delay()in C). - Style the text subtitles the views draw with
subtitleStyle: font,
size, color, outline, background and margin. - Apple:
LycheePlayer.subtitlePictures(width:height:unlessId:)copies
nothing while the pictures on screen are stillunlessId, so it can be
called every frame;LycheePlayerViewno longer copies picture
subtitles every frame. - PGS (Blu-ray) bitmap subtitles in Matroska and M2TS show without
FFmpeg, the default on Android, iOS, macOS and Windows; before, only
builds withLYCHEE_WITH_FFMPEG=ONshowed them. DVB and VobSub still
need FFmpeg.
Fixed
- Damaged or crafted files no longer crash the player, run it out of
memory or hang it: Matroska (on 32-bit Android,armeabi-v7a), MP4,
MPEG-TS, HLS playlists, SubRip and picture subtitles. - Media can no longer make the player open what its source may not
reach: an HLS stream from the network refuses local files as segments,
keys or playlists, and on Windows no HLS playlist or IMSC subtitle
opens a share (//host/share) on another machine, which would send it
the user's Windows login. - Live audio whose timestamps jump hours ahead no longer hangs the
player; it waits in silence while the video plays on. - Live audio no longer breaks up after a pause in the sender's audio or a
change in its delay when Android, Apple or Windows decoders decode it. - Video no longer stutters while the audio device starts or stops:
pausing, resuming, seeking and switching tracks no longer hold up
frames or other player calls. - Software-decoded video handed out as CPU frames (Linux, Windows with
CPU frames,hw: false) converts several times faster: 4K HDR no
longer plays at a few frames per second. - Builds without FFmpeg (Android's base AAR): fragmented MP4 without an
index opens without reading every fragment, MP4 and Matroska without
cues seek in a few reads, and poorly interleaved MP4 plays over HTTP
without a new request for each switch between audio and video. - HLS: fragmented MP4 segments play as they download, byte-range
playlists no longer make a request per segment, and the next segment
downloads while the current one plays. LycheeVideono longer rebuilds five times a second while playing:
LycheePlayernotifies only when its value changes, and
LycheePlayerValuenow compares by value.- Windows: software-decoded video in Flutter no longer holds up drawing
while its frames upload. - Windows: HLS reuses its HTTP connection for playlists and segments
instead of a new TLS handshake for each. - Seeking in MPEG-TS, Matroska and MP4 over HTTP downloads much less: on
Apple about a third as much for a large TS file, and it finishes
sooner; on Windows about half; on Android it no longer downloads far
past what it reads. - Live HLS with subtitles no longer uses more memory the longer it plays:
subtitles that ended over a minute ago are let go. - MP3 audio no longer starts up to 70 ms late after a seek, nor Opus on
Android up to 80 ms. - Android: MP3 audio no longer plays 11 ms ahead of the video.