内网开发

This commit is contained in:
2023-10-26 21:02:51 +08:00
parent 368ca335fe
commit 4e190cec87
308 changed files with 7135 additions and 2175 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -68,6 +68,8 @@ function SrsRtcPublisherAsync() {
// @see https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addStream#Migrating_to_addTrack
stream.getTracks().forEach(function (track) {
console.log("获取到一个流")
console.log(track.kind);
self.pc.addTrack(track);
// Notify about local track when stream is ok.