@flashphoner/websdk 2.0.241 → 2.0.243

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashphoner/websdk",
3
- "version": "2.0.241",
3
+ "version": "2.0.243",
4
4
  "description": "Official Flashphoner WebCallServer WebSDK package",
5
5
  "main": "./src/flashphoner-core.js",
6
6
  "types": "./src/flashphoner-core.d.ts",
@@ -829,7 +829,7 @@ var createSession = function (options) {
829
829
  * @param {string=} options.stripCodecs Comma separated strings of codecs which should be stripped from WebRTC SDP (ex. "SILK,G722")
830
830
  * @param {Array<string>=} options.sipSDP Array of custom SDP params (ex. bandwidth (b=))
831
831
  * @param {Array<string>=} options.sipHeaders Array of custom SIP headers
832
- * @param {string=} options.videoContentHint Video content hint for browser ('detail' by default to maintain resolution), {@link Flashphoner.constants.CONTENT_HINT_TYPE}
832
+ * @param {string=} options.videoContentHint Video content hint for browser ('motion' by default to maintain bitrate and fps), {@link Flashphoner.constants.CONTENT_HINT_TYPE}
833
833
  * @param {Boolean=} options.useControls Use a standard HTML5 video controls (play, pause, fullscreen). May be a workaround for fullscreen mode to work in Safari 16
834
834
  * @param {Object=} options.logger Call logger options
835
835
  * @param {sdpHook} sdpHook The callback that handles sdp from the server
@@ -1619,7 +1619,7 @@ var createSession = function (options) {
1619
1619
  * @param {Boolean=} options.cvoExtension Enable rtp video orientation extension
1620
1620
  * @param {Integer=} options.playoutDelay Time delay between network reception of media and playout
1621
1621
  * @param {string=} options.useCanvasMediaStream EXPERIMENTAL: when publish bind browser's media stream to the canvas. It can be useful for image filtering
1622
- * @param {string=} options.videoContentHint Video content hint for browser ('detail' by default to maintain resolution), {@link Flashphoner.constants.CONTENT_HINT_TYPE}
1622
+ * @param {string=} options.videoContentHint Video content hint for browser ('motion' by default to maintain bitrate and fps), {@link Flashphoner.constants.CONTENT_HINT_TYPE}
1623
1623
  * @param {Boolean=} options.unmutePlayOnStart Unmute playback on start. May be used after user gesture only, so set 'unmutePlayOnStart: false' for autoplay
1624
1624
  * @param {Boolean=} options.useControls Use a standard HTML5 video controls (play, pause, fullscreen). May be a workaround for fullscreen mode to work in Safari 16
1625
1625
  * @param {Object=} options.logger Stream logger options
@@ -56,7 +56,8 @@ var createConnection = function (options) {
56
56
  var screenShare = false;
57
57
  var playoutDelay = options.playoutDelay;
58
58
  // Set video track contentHint to `detail` by default to workaround Chromium 91 bug #WCS-3257
59
- var videoContentHint = options.videoContentHint ? options.videoContentHint : 'detail';
59
+ // Set video track contentHint to `motion` by default to keep bitrate and fps for better camera stream quality #WCS-4109
60
+ var videoContentHint = options.videoContentHint ? options.videoContentHint : 'motion';
60
61
  // Pass the option to unmute automatically (true by default) #WCS-2425
61
62
  var unmutePlayOnStart = options.unmutePlayOnStart !== undefined ? options.unmutePlayOnStart : true;
62
63
  // Use a standard HTML5 video controls if needed (to enable fullscreen in Safari 16 for example) #WCS-3606