Skip to main content

prepare_load

Function prepare_load 

Source
pub fn prepare_load(mpv: &Mpv, subtitle_urls: &[&str]) -> Result<(), String>
Expand description

Prepare the next loadfile: these subtitle files will be loaded with it, no subtitle is shown, and the file’s default audio track plays.

sid/aid set while idle become the options the next file opens with, so a track chosen for the previous item cannot leak into this one.

TRACES: UR-020, UR-021 | DR-023, DR-024 | UT-275