Skip to main content

completion_report_position

Function completion_report_position 

Source
fn completion_report_position(runtime: Option<f64>, last_position: f64) -> f64
Expand description

The position to report when a stream ends naturally.

The item’s runtime when we know it, because the point of the report is to say the episode finished and Jellyfin decides that by percentage — the last position actually observed can be seconds short, and on a handoff whose ticks stopped early it can be nowhere near the end. Without a runtime the best available answer is where playback got to.

TRACES: UR-025, UR-040 | DR-179 | UT-179