1
0
Fork 0
mirror of https://api.glitch.com/git/yaswvc synced 2026-01-12 05:08:11 +00:00

🎀 Checkpoint

./public/main.js:5975361/318
This commit is contained in:
Glitch (peerjs-video) 2020-09-12 21:38:28 +00:00
parent db1970526a
commit 41d233581c

View file

@ -130,7 +130,10 @@ var app = new Vue({
console.log('Call', call); console.log('Call', call);
call.peerConnection.onaddstream = (stream) => { call.peerConnection.onaddstream = (stream) => {
console.log('stream add', stream); console.log('stream add', stream);
// stream. console.log('getRemoteStreams', stream.currentTarget.getRemoteStreams()[0]);
stream.currentTarget.getRemoteStreams()[0].ontrack = (a,b) => {
console.log('got track', a, b)
};
}; };
call.peerConnection.onremovestream = (stream) => { call.peerConnection.onremovestream = (stream) => {
console.log('stream remove', stream); console.log('stream remove', stream);