Skip to content
This repository has been archived by the owner on Dec 2, 2023. It is now read-only.

about the uid binding in ontrackevent and ontrack #595

Open
ClockworkChen opened this issue Dec 23, 2021 · 1 comment
Open

about the uid binding in ontrackevent and ontrack #595

ClockworkChen opened this issue Dec 23, 2021 · 1 comment

Comments

@ClockworkChen
Copy link

Summary

about the uid binding in ontrackevent and ontrack

Motivation

Recently, when testing the sfu function, I found that ontrack and ontrackevent events are not in sequence. Therefore, ontrack is not bound with uid when used in business, only trackevent has a uid binding, which is a bit troublesome to handle the business. Currently, I use streamid to compare and obtain uid information. I don't know if there is a better way to solve this problem.

My current considered

Currently, if is ontrackevent event first trigger, I'll use variable save uid and video stream binding information, but if is video stream ontrack first, currently, I use the audio trackid saved by ontrackevent to compare the audio track id obtained by the track to obtain the uid corresponding to the current video stream.
solv1
solv2
solv3

@flyingdove
Copy link
Contributor

Totally agree, it's not very comfortable to do such mappings. I think would be much better to unify this two events to one with uid, track and stream.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants