mirror of
https://github.com/koush/scrypted.git
synced 2026-09-20 02:30:39 +01:00
webrtc: use standard mid values
This commit is contained in:
4
plugins/webrtc/package-lock.json
generated
4
plugins/webrtc/package-lock.json
generated
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user