@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/package.json
CHANGED
package/src/flashphoner-core.js
CHANGED
|
@@ -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 ('
|
|
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 ('
|
|
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
|
-
|
|
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
|