stremio-shell-ng/src/stremio_app/stremio_player
Claude e25dc1fd02
fix(Player): stop fabricating end-file on transient mpv event errors
Commit 0b882f3 synthesized an Event::EndFile(Error) whenever
event_context.wait_event returned libmpv2::Error::Raw and forwarded it
to the web layer. MPV is fully able to continue playback after such
transient errors (its demuxer cache is intact), so fabricating an
end-of-file caused long-running HTTP streams (e.g. RealDebrid) to flip
to a blocking "Loading failed" overlay mid-playback. Revert that branch
to the prior log-and-continue behavior.

Also downgrade PlayerEnded errors from critical:true to critical:false
so genuine mpv_end_file_reason::Error surfaces as a 3s toast in
stremio-web (Player.js), letting the user retry, instead of an
unrecoverable full-screen overlay.
2026-04-22 22:07:54 +00:00
..
communication.rs fix(Player): stop fabricating end-file on transient mpv event errors 2026-04-22 22:07:54 +00:00
communication_tests.rs fix(Player): stop fabricating end-file on transient mpv event errors 2026-04-22 22:07:54 +00:00
mod.rs Fix formatting 2024-03-07 17:47:32 +02:00
player.rs fix(Player): stop fabricating end-file on transient mpv event errors 2026-04-22 22:07:54 +00:00