Skip to content

Reading RTCP? How? #150

Answered by robashton
robashton asked this question in Q&A
Discussion options

You must be logged in to vote

Answer: Given a receiver in the on_track callback, you indeed call read_rtcp and when rtcp arrives, you will get rtcp. It wasn't working because of a bug and the bug will be fixed if anybody in the future is reading this.

                    tokio::spawn(async move {
                        loop{
                            tokio::select! {
                                result = receiver.read_rtcp() => { 
                                    println!("RTCP {:?}". result);
                                }
                            }
                        }
                    });
        ```

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by robashton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant