Skip to main content

repository_get_video_stream_url

Function repository_get_video_stream_url 

Source
pub async fn repository_get_video_stream_url(
    manager: State<'_, RepositoryManagerWrapper>,
    handle: String,
    item_id: String,
    media_source_id: Option<String>,
    audio_stream_index: Option<i32>,
) -> Result<String, String>
Expand description

Get a video stream URL.

There is no start-position parameter on purpose: the URL is an HLS playlist covering the whole item, and a position on it makes the server reject every segment with 400 (DR-181). Callers resume by seeking after load.

TRACES: UR-004 | DR-181 | UT-182