We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
To reproduce
The loop will carry on, so if you're streaming live video, it will never exit even if the client has closed the window.
loop { let nal = match h264.next_nal() { Ok(nal) => nal, Err(err) => { println!("All video frames parsed and sent: {err}"); break; } }; video_track .write_sample(&Sample { data: nal.data.freeze(), duration: Duration::from_secs(1), ..Default::default() }) .await.unwrap(); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
To reproduce
The loop will carry on, so if you're streaming live video, it will never exit even if the client has closed the window.
The text was updated successfully, but these errors were encountered: