create custom RTCRtpSender, i need overwrite _run_rtp for stream frame and ignore when frame is None #962
Unanswered
JesusZerpa
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone, I am continuing my video streaming project, currently I have managed to remove the buffer that I am using in an opencv application and send it to the track of the aiortc library by creating my own object that I inherit from MediaStreamTrack, everything is great, but I find myself with the problem that for reasons of my implementation there are times when the frame will arrive in None to the track and this breaks in the decoding stage of the RTCRtpSender in the _run_rtp method, doing some exploration in the library I managed the part of the code exactly the _next_encoded_frame method with a try except and the implementation worked as I needed it to, but this is something I did just for testing, I would like to override the _run_rtp method of the RTCRtpSender or handle in some correct way that part of the code that I need, the The problem I have encountered is that the traceivers and other parts of the code are made as private methods or attributes for which I cannot make the adaptation I need.
The code that works for me looks like this
and originally it is like this
my custom track looks like this
Beta Was this translation helpful? Give feedback.
All reactions