mirror of
https://github.com/narrrl/proton-stream.git
synced 2026-12-03 20:01:50 +01:00
- The media session gets a new playback state only when the status, the actions or the clock's course change, and new metadata only when the episode, duration or poster change. It was rebuilt with the poster on every 250 ms poll, so SystemUI and the lock screen redrew four times a second. - The poll runs every second while paused, stopped or ended and only reports changes then; transport calls wake it at once. The track list is read when mpv says it or the pick changed, not every second. - Without a surface, vid=no stops video decoding (iOS already does); attaching a surface turns it back on. - surfaceChanged only redraws instead of re-creating the EGL surface, and a new surface draws the current picture, so a paused picture no longer stays black after a rotation. - The resume point is mpv's start option, set before loadfile, instead of a time-pos seek after the file loaded. B75.