Update server
This commit is contained in:
parent
ba63fb20bf
commit
fcbc28c801
@ -20502,25 +20502,33 @@ let audioParams = {
|
||||
}
|
||||
|
||||
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
|
||||
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
|
||||
const track = stream.getVideoTracks()[0]
|
||||
params = {
|
||||
track,
|
||||
...params
|
||||
}
|
||||
|
||||
audioParams = {
|
||||
track: audioTrack,
|
||||
...audioParams
|
||||
}
|
||||
|
||||
console.log('[streamSuccess] videoParams', videoParams, ' | audioParams', audioParams);
|
||||
goConnect()
|
||||
}
|
||||
|
||||
|
@ -144,25 +144,33 @@ let audioParams = {
|
||||
}
|
||||
|
||||
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
|
||||
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
|
||||
const track = stream.getVideoTracks()[0]
|
||||
params = {
|
||||
track,
|
||||
...params
|
||||
}
|
||||
|
||||
audioParams = {
|
||||
track: audioTrack,
|
||||
...audioParams
|
||||
}
|
||||
|
||||
console.log('[streamSuccess] videoParams', videoParams, ' | audioParams', audioParams);
|
||||
goConnect()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user