Skip to content

Commit

Permalink
更新zlmrtcclient.js 播放客户端,增加状态改变通知
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongguangjie committed Jan 8, 2022
1 parent afc7b01 commit c22644a
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 6 deletions.
11 changes: 9 additions & 2 deletions www/ZLMRTCClient.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion www/ZLMRTCClient.js.map

Large diffs are not rendered by default.

11 changes: 9 additions & 2 deletions www/webrtc/ZLMRTCClient.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion www/webrtc/ZLMRTCClient.js.map

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions www/webrtc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@

console.log('获取本地流失败')
});

player.on(ZLMRTCClient.Events.WEBRTC_ON_CONNECTION_STATE_CHANGE,function(state)
{// RTC 状态变化 ,详情参考 https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/connectionState
console.log('当前状态==>',state)
});
}

function start()
Expand Down

0 comments on commit c22644a

Please sign in to comment.