内网开发
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user