From 9a7f2322d32dccb7b52e558061190a7b282509fd Mon Sep 17 00:00:00 2001 From: Sangwon Oh Date: Mon, 13 Mar 2023 09:01:05 +0900 Subject: [PATCH] Add minor version due to feature addition --- package-lock.json | 4 ++-- package.json | 2 +- src/OvenLiveKit.js | 7 +++++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index a7b214e..c389299 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ovenlivekit", - "version": "1.0.5", + "version": "1.1.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ovenlivekit", - "version": "1.0.5", + "version": "1.1.0", "license": "MIT", "devDependencies": { "webpack": "^5.48.0", diff --git a/package.json b/package.json index 6604ed5..73f30b0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ovenlivekit", - "version": "1.0.5", + "version": "1.1.0", "description": "OvenLiveKit for Web is an open source JavaScript SDK suite for live streaming from web browsers to OvenMediaEngine.", "main": "dist/OvenLiveKit.min.js", "scripts": { diff --git a/src/OvenLiveKit.js b/src/OvenLiveKit.js index a2b0fd5..78d2f08 100644 --- a/src/OvenLiveKit.js +++ b/src/OvenLiveKit.js @@ -1,6 +1,6 @@ const OvenLiveKit = {}; -const version = '1.0.5'; +const version = '1.1.0'; const logHeader = 'OvenLiveKit.js :'; const logEventHeader = 'OvenLiveKit.js ===='; @@ -621,7 +621,10 @@ function addMethod(instance) { answer.sdp = appendFmtp(answer.sdp); } - answer.sdp = setPreferredVideoFormat(answer.sdp, instance.connectionConfig.preferredVideoFormat) + if (instance.connectionConfig.preferredVideoFormat) { + answer.sdp = setPreferredVideoFormat(answer.sdp, instance.connectionConfig.preferredVideoFormat) + } + console.info(logHeader, 'Modified answer sdp\n\n' + answer.sdp); peerConnection.setLocalDescription(answer)