Skip to content

Commit

Permalink
Add minor version due to feature addition
Browse files Browse the repository at this point in the history
  • Loading branch information
SangwonOh committed Mar 13, 2023
1 parent 825bd93 commit 9a7f232
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
7 changes: 5 additions & 2 deletions src/OvenLiveKit.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const OvenLiveKit = {};

const version = '1.0.5';
const version = '1.1.0';
const logHeader = 'OvenLiveKit.js :';
const logEventHeader = 'OvenLiveKit.js ====';

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 9a7f232

Please sign in to comment.