webrtc: use standard mid values

This commit is contained in:
Koushik Dutta
2022-09-03 11:29:08 -05:00
parent 07428a9028
commit e2aac68906
3 changed files with 5 additions and 5 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "@scrypted/webrtc",
"version": "0.0.63",
"version": "0.0.64",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@scrypted/webrtc",
"version": "0.0.63",
"version": "0.0.64",
"dependencies": {
"@koush/werift": "file:../../external/werift/packages/webrtc",
"@scrypted/common": "file:../../common",

View File

@@ -1,6 +1,6 @@
{
"name": "@scrypted/webrtc",
"version": "0.0.63",
"version": "0.0.64",
"scripts": {
"scrypted-setup-project": "scrypted-setup-project",
"prescrypted-setup-project": "scrypted-package-json",

View File

@@ -78,7 +78,7 @@ export async function createRTCPeerConnectionSource(options: {
const pc = await peerConnection.promise;
audioTransceiver = pc.addTransceiver("audio", setup.audio as any);
// audioTransceiver.mid = '0';
audioTransceiver.mid = '0';
audioTransceiver.onTrack.subscribe((track) => {
track.onReceiveRtp.subscribe(rtp => {
if (!gotAudio) {
@@ -91,7 +91,7 @@ export async function createRTCPeerConnectionSource(options: {
});
const videoTransceiver = pc.addTransceiver("video", setup.video as any);
// videoTransceiver.mid = '1';
videoTransceiver.mid = '1';
videoTransceiver.onTrack.subscribe((track) => {
track.onReceiveRtp.subscribe(rtp => {
if (!gotVideo) {