@flashphoner/websdk 2.0.202 → 2.0.207
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 +27 -1
- package/examples/demo/streaming/media_devices_manager/media_device_manager.html +7 -0
- 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/examples/typescript/two-way-streaming-ts/.gitignore +23 -0
- package/examples/typescript/two-way-streaming-ts/README.md +36 -0
- package/examples/typescript/two-way-streaming-ts/package.json +45 -0
- package/examples/typescript/two-way-streaming-ts/public/favicon.ico +0 -0
- package/examples/typescript/two-way-streaming-ts/public/index.html +33 -0
- package/examples/typescript/two-way-streaming-ts/public/logo192.png +0 -0
- package/examples/typescript/two-way-streaming-ts/public/logo512.png +0 -0
- package/examples/typescript/two-way-streaming-ts/public/manifest.json +25 -0
- package/examples/typescript/two-way-streaming-ts/public/media/preloader.mp4 +0 -0
- package/examples/typescript/two-way-streaming-ts/public/robots.txt +3 -0
- package/examples/typescript/two-way-streaming-ts/src/TwoWayStreamingApp.css +23 -0
- package/examples/typescript/two-way-streaming-ts/src/TwoWayStreamingApp.tsx +371 -0
- package/examples/typescript/two-way-streaming-ts/src/fp-utils.ts +117 -0
- package/examples/typescript/two-way-streaming-ts/src/index.css +13 -0
- package/examples/typescript/two-way-streaming-ts/src/index.tsx +9 -0
- package/examples/typescript/two-way-streaming-ts/tsconfig.json +26 -0
- package/flashphoner-no-flash.js +19 -19
- 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 +20 -20
- package/flashphoner-no-wsplayer.min.js +2 -2
- package/flashphoner-room-api.js +6 -6
- 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 +17 -17
- package/flashphoner-webrtc-only.min.js +1 -1
- package/flashphoner.js +20 -20
- package/flashphoner.min.js +2 -2
- package/package.json +2 -1
- package/src/constants.d.ts +1 -0
- package/src/flashphoner-core.d.ts +192 -0
- package/src/flashphoner-core.js +4 -4
- package/src/room-module.d.ts +29 -0
- package/src/webrtc-media-provider.js +2 -2
- package/examples/demo/streaming/hls-player/videojs-hls.min.js +0 -27
package/flashphoner-room-api.js
CHANGED
|
@@ -10166,7 +10166,7 @@ var createSession = function (options) {
|
|
|
10166
10166
|
mediaProviders: Object.keys(MediaProvider),
|
|
10167
10167
|
keepAlive: keepAlive,
|
|
10168
10168
|
authToken:authToken,
|
|
10169
|
-
clientVersion: "2.0.
|
|
10169
|
+
clientVersion: "2.0.207",
|
|
10170
10170
|
clientOSVersion: window.navigator.appVersion,
|
|
10171
10171
|
clientBrowserVersion: window.navigator.userAgent,
|
|
10172
10172
|
msePacketizationVersion: 2,
|
|
@@ -10351,7 +10351,7 @@ var createSession = function (options) {
|
|
|
10351
10351
|
* @param {HTMLElement} options.localVideoDisplay Div element local video should be displayed in
|
|
10352
10352
|
* @param {HTMLElement} options.remoteVideoDisplay Div element remote video should be displayed in
|
|
10353
10353
|
* @param {Object=} options.custom User provided custom object that will be available in REST App code
|
|
10354
|
-
* @param {
|
|
10354
|
+
* @param {string=} options.stripCodecs Comma separated strings of codecs which should be stripped from WebRTC SDP (ex. "SILK,G722")
|
|
10355
10355
|
* @param {Array<string>=} options.sipSDP Array of custom SDP params (ex. bandwidth (b=))
|
|
10356
10356
|
* @param {Array<string>=} options.sipHeaders Array of custom SIP headers
|
|
10357
10357
|
* @param {string=} options.videoContentHint Video content hint for browser ('detail' by default to maintain resolution), {@link Flashphoner.constants.CONTENT_HINT_TYPE}
|
|
@@ -10591,7 +10591,7 @@ var createSession = function (options) {
|
|
|
10591
10591
|
* @param {Boolean=} answerOptions.receiveAudio Receive audio
|
|
10592
10592
|
* @param {Boolean=} answerOptions.receiveVideo Receive video
|
|
10593
10593
|
* @param {String=} answerOptions.constraints Answer call with constraints
|
|
10594
|
-
* @param {
|
|
10594
|
+
* @param {String=} answerOptions.stripCodecs Comma separated string of codecs which should be stripped from WebRTC SDP (ex. "SILK,G722")
|
|
10595
10595
|
* @param {Array<string>=} answerOptions.sipSDP Array of custom SDP params (ex. bandwidth (b=))
|
|
10596
10596
|
* @param {Array<string>=} answerOptions.sipHeaders Array of custom SIP headers
|
|
10597
10597
|
* @param {sdpHook} sdpHook The callback that handles sdp from the server
|
|
@@ -11104,7 +11104,7 @@ var createSession = function (options) {
|
|
|
11104
11104
|
* @param {HTMLElement} options.display Div element stream should be displayed in
|
|
11105
11105
|
* @param {Object=} options.custom User provided custom object that will be available in REST App code
|
|
11106
11106
|
* @param {Integer} [options.flashBufferTime=0] Specifies how long to buffer messages before starting to display the stream (Flash-only)
|
|
11107
|
-
* @param {
|
|
11107
|
+
* @param {String=} options.stripCodecs Comma separated string of codecs which should be stripped from WebRTC SDP (ex. "H264,PCMA,PCMU,G722")
|
|
11108
11108
|
* @param {string=} options.rtmpUrl Rtmp url stream should be forwarded to
|
|
11109
11109
|
* @param {Object=} options.mediaConnectionConstraints Stream specific constraints for underlying RTCPeerConnection
|
|
11110
11110
|
* @param {Boolean=} options.flashShowFullScreenButton Show full screen button in flash
|
|
@@ -14262,14 +14262,14 @@ var createConnection = function (options) {
|
|
|
14262
14262
|
if (!report.isRemote) {
|
|
14263
14263
|
if (report.type == 'outbound-rtp') {
|
|
14264
14264
|
fillStatObject(result.outboundStream, report);
|
|
14265
|
-
if (report.mediaType == 'video') {
|
|
14265
|
+
if (report.mediaType == 'video' && localVideo != undefined && localVideo != null) {
|
|
14266
14266
|
var vSettings = localVideo.srcObject.getVideoTracks()[0].getSettings();
|
|
14267
14267
|
result.outboundStream[report.mediaType].height = vSettings.height;
|
|
14268
14268
|
result.outboundStream[report.mediaType].width = vSettings.width;
|
|
14269
14269
|
}
|
|
14270
14270
|
} else if (report.type == 'inbound-rtp') {
|
|
14271
14271
|
fillStatObject(result.inboundStream, report);
|
|
14272
|
-
if (report.mediaType == 'video' && remoteVideo != undefined) {
|
|
14272
|
+
if (report.mediaType == 'video' && remoteVideo != undefined && remoteVideo != null) {
|
|
14273
14273
|
result.inboundStream[report.mediaType].height = remoteVideo.videoHeight;
|
|
14274
14274
|
result.inboundStream[report.mediaType].width = remoteVideo.videoWidth;
|
|
14275
14275
|
}
|