@flashphoner/websdk 2.0.203 → 2.0.208
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/sip/phone/phone.js +7 -10
- package/examples/demo/streaming/hls-player/hls-player.html +1 -4
- package/examples/demo/streaming/hls-player/hls-player.js +19 -1
- package/examples/demo/streaming/hls-player/player-page.html +1 -1
- package/examples/demo/streaming/hls-player/video-js.css +142 -51
- package/examples/demo/streaming/hls-player/video.js +27294 -20390
- package/examples/demo/streaming/hls-player/video.min.js +27 -0
- package/examples/demo/streaming/media_devices_manager/manager.js +29 -6
- package/examples/demo/streaming/media_devices_manager/media_device_manager.html +7 -0
- package/examples/demo/streaming/screen-sharing/screen-sharing.html +1 -1
- package/examples/demo/streaming/screen-sharing/screen-sharing.js +1 -1
- package/examples/demo/streaming/stream-auto-restore/stream-auto-restore.css +23 -0
- package/examples/demo/streaming/stream-auto-restore/stream-auto-restore.html +76 -0
- package/examples/demo/streaming/stream-auto-restore/stream-auto-restore.js +356 -0
- package/flashphoner-no-flash.js +20 -20
- package/flashphoner-no-flash.min.js +2 -2
- package/flashphoner-no-webrtc.js +18 -18
- package/flashphoner-no-webrtc.min.js +1 -1
- package/flashphoner-no-wsplayer.js +21 -21
- package/flashphoner-no-wsplayer.min.js +2 -2
- package/flashphoner-room-api.js +7 -7
- package/flashphoner-room-api.min.js +2 -2
- package/flashphoner-temasys-flash-websocket-without-adapterjs.js +20 -20
- package/flashphoner-temasys-flash-websocket.js +20 -20
- package/flashphoner-temasys-flash-websocket.min.js +1 -1
- package/flashphoner-webrtc-only.js +18 -18
- package/flashphoner-webrtc-only.min.js +1 -1
- package/flashphoner.js +21 -21
- package/flashphoner.min.js +2 -2
- package/package.json +1 -1
- package/src/flashphoner-core.js +4 -4
- package/src/webrtc-media-provider.js +3 -3
- package/examples/demo/streaming/hls-player/videojs-hls.min.js +0 -27
package/package.json
CHANGED
package/src/flashphoner-core.js
CHANGED
|
@@ -534,7 +534,7 @@ var createSession = function (options) {
|
|
|
534
534
|
mediaProviders: Object.keys(MediaProvider),
|
|
535
535
|
keepAlive: keepAlive,
|
|
536
536
|
authToken:authToken,
|
|
537
|
-
clientVersion: "2.0.
|
|
537
|
+
clientVersion: "2.0.208",
|
|
538
538
|
clientOSVersion: window.navigator.appVersion,
|
|
539
539
|
clientBrowserVersion: window.navigator.userAgent,
|
|
540
540
|
msePacketizationVersion: 2,
|
|
@@ -719,7 +719,7 @@ var createSession = function (options) {
|
|
|
719
719
|
* @param {HTMLElement} options.localVideoDisplay Div element local video should be displayed in
|
|
720
720
|
* @param {HTMLElement} options.remoteVideoDisplay Div element remote video should be displayed in
|
|
721
721
|
* @param {Object=} options.custom User provided custom object that will be available in REST App code
|
|
722
|
-
* @param {
|
|
722
|
+
* @param {string=} options.stripCodecs Comma separated strings of codecs which should be stripped from WebRTC SDP (ex. "SILK,G722")
|
|
723
723
|
* @param {Array<string>=} options.sipSDP Array of custom SDP params (ex. bandwidth (b=))
|
|
724
724
|
* @param {Array<string>=} options.sipHeaders Array of custom SIP headers
|
|
725
725
|
* @param {string=} options.videoContentHint Video content hint for browser ('detail' by default to maintain resolution), {@link Flashphoner.constants.CONTENT_HINT_TYPE}
|
|
@@ -959,7 +959,7 @@ var createSession = function (options) {
|
|
|
959
959
|
* @param {Boolean=} answerOptions.receiveAudio Receive audio
|
|
960
960
|
* @param {Boolean=} answerOptions.receiveVideo Receive video
|
|
961
961
|
* @param {String=} answerOptions.constraints Answer call with constraints
|
|
962
|
-
* @param {
|
|
962
|
+
* @param {String=} answerOptions.stripCodecs Comma separated string of codecs which should be stripped from WebRTC SDP (ex. "SILK,G722")
|
|
963
963
|
* @param {Array<string>=} answerOptions.sipSDP Array of custom SDP params (ex. bandwidth (b=))
|
|
964
964
|
* @param {Array<string>=} answerOptions.sipHeaders Array of custom SIP headers
|
|
965
965
|
* @param {sdpHook} sdpHook The callback that handles sdp from the server
|
|
@@ -1472,7 +1472,7 @@ var createSession = function (options) {
|
|
|
1472
1472
|
* @param {HTMLElement} options.display Div element stream should be displayed in
|
|
1473
1473
|
* @param {Object=} options.custom User provided custom object that will be available in REST App code
|
|
1474
1474
|
* @param {Integer} [options.flashBufferTime=0] Specifies how long to buffer messages before starting to display the stream (Flash-only)
|
|
1475
|
-
* @param {
|
|
1475
|
+
* @param {String=} options.stripCodecs Comma separated string of codecs which should be stripped from WebRTC SDP (ex. "H264,PCMA,PCMU,G722")
|
|
1476
1476
|
* @param {string=} options.rtmpUrl Rtmp url stream should be forwarded to
|
|
1477
1477
|
* @param {Object=} options.mediaConnectionConstraints Stream specific constraints for underlying RTCPeerConnection
|
|
1478
1478
|
* @param {Boolean=} options.flashShowFullScreenButton Show full screen button in flash
|
|
@@ -417,14 +417,14 @@ var createConnection = function (options) {
|
|
|
417
417
|
if (!report.isRemote) {
|
|
418
418
|
if (report.type == 'outbound-rtp') {
|
|
419
419
|
fillStatObject(result.outboundStream, report);
|
|
420
|
-
if (report.mediaType == 'video') {
|
|
420
|
+
if (report.mediaType == 'video' && localVideo != undefined && localVideo != null) {
|
|
421
421
|
var vSettings = localVideo.srcObject.getVideoTracks()[0].getSettings();
|
|
422
422
|
result.outboundStream[report.mediaType].height = vSettings.height;
|
|
423
423
|
result.outboundStream[report.mediaType].width = vSettings.width;
|
|
424
424
|
}
|
|
425
425
|
} else if (report.type == 'inbound-rtp') {
|
|
426
426
|
fillStatObject(result.inboundStream, report);
|
|
427
|
-
if (report.mediaType == 'video' && remoteVideo != undefined) {
|
|
427
|
+
if (report.mediaType == 'video' && remoteVideo != undefined && remoteVideo != null) {
|
|
428
428
|
result.inboundStream[report.mediaType].height = remoteVideo.videoHeight;
|
|
429
429
|
result.inboundStream[report.mediaType].width = remoteVideo.videoWidth;
|
|
430
430
|
}
|
|
@@ -585,7 +585,7 @@ var createConnection = function (options) {
|
|
|
585
585
|
if (browserDetails.browser === 'firefox') {
|
|
586
586
|
clonedConstraints.video.mediaSource = source;
|
|
587
587
|
}
|
|
588
|
-
if (
|
|
588
|
+
if (woExtension) {
|
|
589
589
|
getScreenDeviceIdWoExtension(clonedConstraints).then(function (screenSharingConstraints) {
|
|
590
590
|
navigator.mediaDevices.getDisplayMedia(screenSharingConstraints).then(
|
|
591
591
|
(stream) => {
|