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

変更提案です #1

Open
murata- opened this issue Nov 28, 2022 · 0 comments
Open

変更提案です #1

murata- opened this issue Nov 28, 2022 · 0 comments

Comments

@murata-
Copy link

murata- commented Nov 28, 2022

初めまして。
以前よりソースを参考にさせていただいています、ありがとうございます。

chromeのstat.idに入る文字列の規則が変更になっていたようで、
最初の配列におさめる箇所のロジックが機能しなくなっていました。

こちらでは、typeの文字列を基準にするように変更しました。
script.js
getRTCStats関数の箇所です。
例一部)
212行目

if(stat.id.indexOf('RTCTransport') !== -1){

if(stat.type === 'transport') {

215行目
if(stat.id.indexOf('RTCIceCandidatePair') !== -1){

if(stat.type === 'candidate-pair'){

227行目
if(stat.id.indexOf('RTCOutboundRTPAudioStream') !== -1){

if((stat.type === 'outbound-rtp') && (stat.kind === 'audio')){

などです、一部だけで恐縮です。

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

No branches or pull requests

1 participant