Update server
This commit is contained in:
parent
e65b7e0d7c
commit
6c42814229
@ -20502,34 +20502,34 @@ let audioParams = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const streamSuccess = (stream) => {
|
const streamSuccess = (stream) => {
|
||||||
// console.log('[streamSuccess] device', device);
|
console.log('[streamSuccess] device', device);
|
||||||
// localVideo.srcObject = stream
|
|
||||||
// console.log('stream', stream);
|
|
||||||
// const videoTrack = stream.getVideoTracks()[0]
|
|
||||||
// const audioTrack = stream.getAudioTracks()[0]
|
|
||||||
|
|
||||||
// videoParams = {
|
|
||||||
// track: videoTrack,
|
|
||||||
// // codec : device.rtpCapabilities.codecs.find((codec) => codec.mimeType.toLowerCase() === 'video/vp9'),
|
|
||||||
// // codec : 'video/vp9',
|
|
||||||
// ...videoParams
|
|
||||||
// }
|
|
||||||
|
|
||||||
// audioParams = {
|
|
||||||
// track: audioTrack,
|
|
||||||
// ...audioParams
|
|
||||||
// }
|
|
||||||
|
|
||||||
// console.log('[streamSuccess] videoParams', videoParams, ' | audioParams', audioParams);
|
|
||||||
// goConnect()
|
|
||||||
console.log('[streamSuccess]');
|
|
||||||
localVideo.srcObject = stream
|
localVideo.srcObject = stream
|
||||||
const track = stream.getVideoTracks()[0]
|
console.log('stream', stream);
|
||||||
|
const videoTrack = stream.getVideoTracks()[0]
|
||||||
|
const audioTrack = stream.getAudioTracks()[0]
|
||||||
|
|
||||||
videoParams = {
|
videoParams = {
|
||||||
track,
|
track: videoTrack,
|
||||||
|
// codec : device.rtpCapabilities.codecs.find((codec) => codec.mimeType.toLowerCase() === 'video/vp9'),
|
||||||
|
// codec : 'video/vp9',
|
||||||
...videoParams
|
...videoParams
|
||||||
}
|
}
|
||||||
|
|
||||||
|
audioParams = {
|
||||||
|
track: audioTrack,
|
||||||
|
...audioParams
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log('[streamSuccess] videoParams', videoParams, ' | audioParams', audioParams);
|
||||||
goConnect()
|
goConnect()
|
||||||
|
// console.log('[streamSuccess]');
|
||||||
|
// localVideo.srcObject = stream
|
||||||
|
// const track = stream.getVideoTracks()[0]
|
||||||
|
// videoParams = {
|
||||||
|
// track,
|
||||||
|
// ...videoParams
|
||||||
|
// }
|
||||||
|
// goConnect()
|
||||||
}
|
}
|
||||||
|
|
||||||
const getLocalStream = () => {
|
const getLocalStream = () => {
|
||||||
|
@ -144,34 +144,34 @@ let audioParams = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const streamSuccess = (stream) => {
|
const streamSuccess = (stream) => {
|
||||||
// console.log('[streamSuccess] device', device);
|
console.log('[streamSuccess] device', device);
|
||||||
// localVideo.srcObject = stream
|
|
||||||
// console.log('stream', stream);
|
|
||||||
// const videoTrack = stream.getVideoTracks()[0]
|
|
||||||
// const audioTrack = stream.getAudioTracks()[0]
|
|
||||||
|
|
||||||
// videoParams = {
|
|
||||||
// track: videoTrack,
|
|
||||||
// // codec : device.rtpCapabilities.codecs.find((codec) => codec.mimeType.toLowerCase() === 'video/vp9'),
|
|
||||||
// // codec : 'video/vp9',
|
|
||||||
// ...videoParams
|
|
||||||
// }
|
|
||||||
|
|
||||||
// audioParams = {
|
|
||||||
// track: audioTrack,
|
|
||||||
// ...audioParams
|
|
||||||
// }
|
|
||||||
|
|
||||||
// console.log('[streamSuccess] videoParams', videoParams, ' | audioParams', audioParams);
|
|
||||||
// goConnect()
|
|
||||||
console.log('[streamSuccess]');
|
|
||||||
localVideo.srcObject = stream
|
localVideo.srcObject = stream
|
||||||
const track = stream.getVideoTracks()[0]
|
console.log('stream', stream);
|
||||||
|
const videoTrack = stream.getVideoTracks()[0]
|
||||||
|
const audioTrack = stream.getAudioTracks()[0]
|
||||||
|
|
||||||
videoParams = {
|
videoParams = {
|
||||||
track,
|
track: videoTrack,
|
||||||
|
// codec : device.rtpCapabilities.codecs.find((codec) => codec.mimeType.toLowerCase() === 'video/vp9'),
|
||||||
|
// codec : 'video/vp9',
|
||||||
...videoParams
|
...videoParams
|
||||||
}
|
}
|
||||||
|
|
||||||
|
audioParams = {
|
||||||
|
track: audioTrack,
|
||||||
|
...audioParams
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log('[streamSuccess] videoParams', videoParams, ' | audioParams', audioParams);
|
||||||
goConnect()
|
goConnect()
|
||||||
|
// console.log('[streamSuccess]');
|
||||||
|
// localVideo.srcObject = stream
|
||||||
|
// const track = stream.getVideoTracks()[0]
|
||||||
|
// videoParams = {
|
||||||
|
// track,
|
||||||
|
// ...videoParams
|
||||||
|
// }
|
||||||
|
// goConnect()
|
||||||
}
|
}
|
||||||
|
|
||||||
const getLocalStream = () => {
|
const getLocalStream = () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user