@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/docTemplate/README.md +1 -1
- package/examples/demo/dependencies/js/stats.js +105 -0
- package/examples/demo/dependencies/js/utils.js +95 -6
- package/examples/demo/streaming/hls-js-player/hls-js-player.html +1 -4
- package/examples/demo/streaming/hls-js-player/hls-js-player.js +147 -55
- package/examples/demo/streaming/hls-native/hls-native.html +1 -4
- package/examples/demo/streaming/hls-native/hls-native.js +148 -56
- package/examples/demo/streaming/hls-player/hls-player.html +1 -4
- package/examples/demo/streaming/hls-player/hls-player.js +55 -4
- package/examples/demo/streaming/hls-player/player-page.html +33 -3
- package/flashphoner-no-flash.js +4 -3
- package/flashphoner-no-flash.min.js +1 -1
- package/flashphoner-no-webrtc.js +2 -2
- package/flashphoner-no-wsplayer.js +4 -3
- package/flashphoner-no-wsplayer.min.js +1 -1
- package/flashphoner-room-api.js +4 -3
- package/flashphoner-room-api.min.js +1 -1
- package/flashphoner-temasys-flash-websocket-without-adapterjs.js +2 -2
- package/flashphoner-temasys-flash-websocket.js +2 -2
- package/flashphoner-webrtc-only.js +4 -3
- package/flashphoner-webrtc-only.min.js +1 -1
- package/flashphoner.js +4 -3
- package/flashphoner.min.js +1 -1
- package/package.json +1 -1
- package/src/flashphoner-core.js +2 -2
- package/src/webrtc-media-provider.js +2 -1
package/flashphoner-room-api.js
CHANGED
|
@@ -9965,7 +9965,7 @@ var createSession = function (options) {
|
|
|
9965
9965
|
* @param {string=} options.stripCodecs Comma separated strings of codecs which should be stripped from WebRTC SDP (ex. "SILK,G722")
|
|
9966
9966
|
* @param {Array<string>=} options.sipSDP Array of custom SDP params (ex. bandwidth (b=))
|
|
9967
9967
|
* @param {Array<string>=} options.sipHeaders Array of custom SIP headers
|
|
9968
|
-
* @param {string=} options.videoContentHint Video content hint for browser ('
|
|
9968
|
+
* @param {string=} options.videoContentHint Video content hint for browser ('motion' by default to maintain bitrate and fps), {@link Flashphoner.constants.CONTENT_HINT_TYPE}
|
|
9969
9969
|
* @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
|
|
9970
9970
|
* @param {Object=} options.logger Call logger options
|
|
9971
9971
|
* @param {sdpHook} sdpHook The callback that handles sdp from the server
|
|
@@ -10755,7 +10755,7 @@ var createSession = function (options) {
|
|
|
10755
10755
|
* @param {Boolean=} options.cvoExtension Enable rtp video orientation extension
|
|
10756
10756
|
* @param {Integer=} options.playoutDelay Time delay between network reception of media and playout
|
|
10757
10757
|
* @param {string=} options.useCanvasMediaStream EXPERIMENTAL: when publish bind browser's media stream to the canvas. It can be useful for image filtering
|
|
10758
|
-
* @param {string=} options.videoContentHint Video content hint for browser ('
|
|
10758
|
+
* @param {string=} options.videoContentHint Video content hint for browser ('motion' by default to maintain bitrate and fps), {@link Flashphoner.constants.CONTENT_HINT_TYPE}
|
|
10759
10759
|
* @param {Boolean=} options.unmutePlayOnStart Unmute playback on start. May be used after user gesture only, so set 'unmutePlayOnStart: false' for autoplay
|
|
10760
10760
|
* @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
|
|
10761
10761
|
* @param {Object=} options.logger Stream logger options
|
|
@@ -13757,7 +13757,8 @@ var createConnection = function (options) {
|
|
|
13757
13757
|
var screenShare = false;
|
|
13758
13758
|
var playoutDelay = options.playoutDelay;
|
|
13759
13759
|
// Set video track contentHint to `detail` by default to workaround Chromium 91 bug #WCS-3257
|
|
13760
|
-
|
|
13760
|
+
// Set video track contentHint to `motion` by default to keep bitrate and fps for better camera stream quality #WCS-4109
|
|
13761
|
+
var videoContentHint = options.videoContentHint ? options.videoContentHint : 'motion';
|
|
13761
13762
|
// Pass the option to unmute automatically (true by default) #WCS-2425
|
|
13762
13763
|
var unmutePlayOnStart = options.unmutePlayOnStart !== undefined ? options.unmutePlayOnStart : true;
|
|
13763
13764
|
// Use a standard HTML5 video controls if needed (to enable fullscreen in Safari 16 for example) #WCS-3606
|