Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get codec by webrtc api: pc.getStats #4310

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

duiniuluantanqin
Copy link
Member

@duiniuluantanqin duiniuluantanqin commented Mar 25, 2025

  1. It cannot retrieve codec information on Firefox by getSenders/getReceivers

  2. It can retrieve codec information on Chrome by getReceivers, but incorrect, like this:
    image

  3. So, we retrieve codec information from getStats, and it works well.

  4. The timer is used because sometimes the codec cannot be retrieved when iceGatheringState is complete.

  5. Testing has been completed on the browsers listed below.

    • Chrome
    • Edge
    • Safari
    • Firefox

@winlinvip winlinvip added the EnglishNative This issue is conveyed exclusively in English. label Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EnglishNative This issue is conveyed exclusively in English.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants