Skip to main content

## adopt_video_play_session

# Function adopt_video_play_session

Source

    pub fn adopt_video_play_session(session_id: String) -> Option<String>

Expand description

Take ownership of a transcode this process did not build a URL for, returning the session it replaces.

When `PlaybackInfo` answers with a `TranscodingUrl` the server has already started the job and named the session; that id is the only handle on it we will ever have. Without adopting it, the first re-open of that stream has no previous session to stop and collides with the very job that was playing.

TRACES: UR-074 | DR-177 | UT-173