@flashphoner/websdk 2.0.209 → 2.0.210
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/streaming/2players/2players.js +0 -5
- package/examples/demo/streaming/canvas_streaming/canvas_streaming.js +0 -12
- package/examples/demo/streaming/embed_player/player.js +127 -198
- package/examples/demo/streaming/firewall-traversal-streaming/firewall-traversal-streaming.js +0 -12
- package/examples/demo/streaming/mcu_client/mcu_client.js +0 -8
- package/examples/demo/streaming/media_devices_manager/manager.js +0 -12
- package/examples/demo/streaming/player/player.js +10 -9
- package/examples/demo/streaming/stream-diagnostic/stream-diagnostic.js +0 -8
- package/examples/demo/streaming/stream-local-snapshot/stream-local-snapshot.js +0 -6
- package/examples/demo/streaming/stream-snapshot/stream-snapshot.js +0 -6
- package/examples/demo/streaming/stream_recording/recording.js +0 -6
- package/examples/demo/streaming/streamer/streamer.js +0 -8
- package/examples/demo/streaming/two_way_streaming/two_way_streaming.js +0 -11
- package/examples/demo/streaming/webrtc-as-rtmp-republishing/webrtc-as-rtmp-republishing.js +0 -6
- package/flashphoner-no-flash.js +32 -11
- package/flashphoner-no-flash.min.js +2 -2
- package/flashphoner-no-webrtc.js +6 -3
- package/flashphoner-no-webrtc.min.js +1 -1
- package/flashphoner-no-wsplayer.js +32 -11
- package/flashphoner-no-wsplayer.min.js +2 -2
- package/flashphoner-room-api.js +29 -9
- package/flashphoner-room-api.min.js +2 -2
- package/flashphoner-temasys-flash-websocket-without-adapterjs.js +6 -3
- package/flashphoner-temasys-flash-websocket.js +6 -3
- package/flashphoner-temasys-flash-websocket.min.js +1 -1
- package/flashphoner-webrtc-only.js +32 -11
- package/flashphoner-webrtc-only.min.js +1 -1
- package/flashphoner.js +32 -11
- package/flashphoner.min.js +2 -2
- package/package.json +1 -1
- package/src/flashphoner-core.d.ts +18 -4
- package/src/flashphoner-core.js +6 -3
- package/src/webrtc-media-provider.js +23 -6
|
@@ -12804,7 +12804,7 @@ var createSession = function createSession(options) {
|
|
|
12804
12804
|
mediaProviders: Object.keys(MediaProvider),
|
|
12805
12805
|
keepAlive: keepAlive,
|
|
12806
12806
|
authToken: authToken,
|
|
12807
|
-
clientVersion: "2.0.
|
|
12807
|
+
clientVersion: "2.0.210",
|
|
12808
12808
|
clientOSVersion: window.navigator.appVersion,
|
|
12809
12809
|
clientBrowserVersion: window.navigator.userAgent,
|
|
12810
12810
|
msePacketizationVersion: 2,
|
|
@@ -13948,7 +13948,7 @@ var createSession = function createSession(options) {
|
|
|
13948
13948
|
* @param {HTMLElement} options.display Div element stream should be displayed in
|
|
13949
13949
|
* @param {Object=} options.custom User provided custom object that will be available in REST App code
|
|
13950
13950
|
* @param {Integer} [options.flashBufferTime=0] Specifies how long to buffer messages before starting to display the stream (Flash-only)
|
|
13951
|
-
* @param {
|
|
13951
|
+
* @param {string=} options.stripCodecs Comma separated string of codecs which should be stripped from WebRTC SDP (ex. "H264,PCMA,PCMU,G722")
|
|
13952
13952
|
* @param {string=} options.rtmpUrl Rtmp url stream should be forwarded to
|
|
13953
13953
|
* @param {Object=} options.mediaConnectionConstraints Stream specific constraints for underlying RTCPeerConnection
|
|
13954
13954
|
* @param {Boolean=} options.flashShowFullScreenButton Show full screen button in flash
|
|
@@ -13957,6 +13957,7 @@ var createSession = function createSession(options) {
|
|
|
13957
13957
|
* @param {Integer=} options.playoutDelay Time delay between network reception of media and playout
|
|
13958
13958
|
* @param {string=} options.useCanvasMediaStream EXPERIMENTAL: when publish bind browser's media stream to the canvas. It can be useful for image filtering
|
|
13959
13959
|
* @param {string=} options.videoContentHint Video content hint for browser ('detail' by default to maintain resolution), {@link Flashphoner.constants.CONTENT_HINT_TYPE}
|
|
13960
|
+
* @param {Boolean=} options.unmutePlayOnStart Unmute playback on start. May be used after user gesture only, so set 'unmutePlayOnStart: false' for autoplay
|
|
13960
13961
|
* @param {sdpHook} sdpHook The callback that handles sdp from the server
|
|
13961
13962
|
* @returns {Stream} Stream
|
|
13962
13963
|
* @throws {TypeError} Error if no options provided
|
|
@@ -14068,6 +14069,7 @@ var createSession = function createSession(options) {
|
|
|
14068
14069
|
var playoutDelay = options.playoutDelay;
|
|
14069
14070
|
var useCanvasMediaStream = options.useCanvasMediaStream;
|
|
14070
14071
|
var videoContentHint = options.videoContentHint;
|
|
14072
|
+
var unmutePlayOnStart = options.unmutePlayOnStart;
|
|
14071
14073
|
var audioState_;
|
|
14072
14074
|
var videoState_;
|
|
14073
14075
|
var connectionQuality;
|
|
@@ -14244,7 +14246,8 @@ var createSession = function createSession(options) {
|
|
|
14244
14246
|
connectionConstraints: mediaConnectionConstraints,
|
|
14245
14247
|
audioOutputId: audioOutputId,
|
|
14246
14248
|
remoteVideo: remoteVideo,
|
|
14247
|
-
playoutDelay: playoutDelay
|
|
14249
|
+
playoutDelay: playoutDelay,
|
|
14250
|
+
unmutePlayOnStart: unmutePlayOnStart
|
|
14248
14251
|
}, streamRefreshHandlers[id_]).then(function (newConnection) {
|
|
14249
14252
|
mediaConnection = newConnection;
|
|
14250
14253
|
|
|
@@ -19559,7 +19559,7 @@ var createSession = function createSession(options) {
|
|
|
19559
19559
|
mediaProviders: Object.keys(MediaProvider),
|
|
19560
19560
|
keepAlive: keepAlive,
|
|
19561
19561
|
authToken: authToken,
|
|
19562
|
-
clientVersion: "2.0.
|
|
19562
|
+
clientVersion: "2.0.210",
|
|
19563
19563
|
clientOSVersion: window.navigator.appVersion,
|
|
19564
19564
|
clientBrowserVersion: window.navigator.userAgent,
|
|
19565
19565
|
msePacketizationVersion: 2,
|
|
@@ -20703,7 +20703,7 @@ var createSession = function createSession(options) {
|
|
|
20703
20703
|
* @param {HTMLElement} options.display Div element stream should be displayed in
|
|
20704
20704
|
* @param {Object=} options.custom User provided custom object that will be available in REST App code
|
|
20705
20705
|
* @param {Integer} [options.flashBufferTime=0] Specifies how long to buffer messages before starting to display the stream (Flash-only)
|
|
20706
|
-
* @param {
|
|
20706
|
+
* @param {string=} options.stripCodecs Comma separated string of codecs which should be stripped from WebRTC SDP (ex. "H264,PCMA,PCMU,G722")
|
|
20707
20707
|
* @param {string=} options.rtmpUrl Rtmp url stream should be forwarded to
|
|
20708
20708
|
* @param {Object=} options.mediaConnectionConstraints Stream specific constraints for underlying RTCPeerConnection
|
|
20709
20709
|
* @param {Boolean=} options.flashShowFullScreenButton Show full screen button in flash
|
|
@@ -20712,6 +20712,7 @@ var createSession = function createSession(options) {
|
|
|
20712
20712
|
* @param {Integer=} options.playoutDelay Time delay between network reception of media and playout
|
|
20713
20713
|
* @param {string=} options.useCanvasMediaStream EXPERIMENTAL: when publish bind browser's media stream to the canvas. It can be useful for image filtering
|
|
20714
20714
|
* @param {string=} options.videoContentHint Video content hint for browser ('detail' by default to maintain resolution), {@link Flashphoner.constants.CONTENT_HINT_TYPE}
|
|
20715
|
+
* @param {Boolean=} options.unmutePlayOnStart Unmute playback on start. May be used after user gesture only, so set 'unmutePlayOnStart: false' for autoplay
|
|
20715
20716
|
* @param {sdpHook} sdpHook The callback that handles sdp from the server
|
|
20716
20717
|
* @returns {Stream} Stream
|
|
20717
20718
|
* @throws {TypeError} Error if no options provided
|
|
@@ -20823,6 +20824,7 @@ var createSession = function createSession(options) {
|
|
|
20823
20824
|
var playoutDelay = options.playoutDelay;
|
|
20824
20825
|
var useCanvasMediaStream = options.useCanvasMediaStream;
|
|
20825
20826
|
var videoContentHint = options.videoContentHint;
|
|
20827
|
+
var unmutePlayOnStart = options.unmutePlayOnStart;
|
|
20826
20828
|
var audioState_;
|
|
20827
20829
|
var videoState_;
|
|
20828
20830
|
var connectionQuality;
|
|
@@ -20999,7 +21001,8 @@ var createSession = function createSession(options) {
|
|
|
20999
21001
|
connectionConstraints: mediaConnectionConstraints,
|
|
21000
21002
|
audioOutputId: audioOutputId,
|
|
21001
21003
|
remoteVideo: remoteVideo,
|
|
21002
|
-
playoutDelay: playoutDelay
|
|
21004
|
+
playoutDelay: playoutDelay,
|
|
21005
|
+
unmutePlayOnStart: unmutePlayOnStart
|
|
21003
21006
|
}, streamRefreshHandlers[id_]).then(function (newConnection) {
|
|
21004
21007
|
mediaConnection = newConnection;
|
|
21005
21008
|
|