Skip to content

Commit

Permalink
Wrap Tokio types in a configurable runtime (#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikayla-maki authored Mar 28, 2024
1 parent 9f01f47 commit fa49b7e
Show file tree
Hide file tree
Showing 36 changed files with 10,284 additions and 179 deletions.
699 changes: 640 additions & 59 deletions Cargo.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ match event {
let rtc_track = audio_track.rtc_track();
let mut audio_stream = NativeAudioStream::new(rtc_track);
tokio::spawn(async move {
// Receive the audio frames in a new task
// Receive the audio frames in a new task
while let Some(audio_frame) = audio_stream.next().await {
log::info!("received audio frame - {audio_frame:#?}");
}
Expand All @@ -144,7 +144,7 @@ match event {
let rtc_track = video_track.rtc_track();
let mut video_stream = NativeVideoStream::new(rtc_track);
tokio::spawn(async move {
// Receive the video frames in a new task
// Receive the video frames in a new task
while let Some(video_frame) = video_stream.next().await {
log::info!("received video frame - {video_frame:#?}");
}
Expand Down
Loading

0 comments on commit fa49b7e

Please sign in to comment.