AugmendTech / CrabGrab

🦀 🖥️ 🦀
Apache License 2.0
153 stars 11 forks source link

how to capture and return stream_event? #43

Closed qzd1989 closed 2 months ago

qzd1989 commented 2 months ago
//like this
fn capture() -> crabgrab::capture_stream::StreamEvent {
//...
if stream_event != crabgrab::capture_stream::StreamEvent::Video {
    return capture();
}
return stream_event;
}