Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add rtmp client session timeout option #152

Merged
merged 1 commit into from
Sep 20, 2024
Merged

Conversation

vaptu
Copy link

@vaptu vaptu commented Sep 20, 2024

The timeout that can be used for supported RTMP pull.

The ClientSession provides a set_timeout function that allows setting a customizable timeout.

e.g.

let mut client_session = ClientSession::new(
    stream,
    ClientSessionType::Pull,
    address.clone(),
    app_name.clone(),
    stream_name.clone(),
    producer.clone(),
    0,
);

// set timeout
client_session.set_timeout((Duration::from_secs(3));

@harlanc
Copy link
Owner

harlanc commented Sep 20, 2024

thanks.

@harlanc harlanc merged commit f4a8595 into harlanc:master Sep 20, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants