@flashphoner/websdk 2.0.206 → 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/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 +16 -16
- package/flashphoner-no-flash.min.js +2 -2
- package/flashphoner-no-webrtc.js +15 -15
- package/flashphoner-no-webrtc.min.js +1 -1
- package/flashphoner-no-wsplayer.js +17 -17
- package/flashphoner-no-wsplayer.min.js +2 -2
- package/flashphoner-room-api.js +3 -3
- package/flashphoner-room-api.min.js +2 -2
- package/flashphoner-temasys-flash-websocket-without-adapterjs.js +17 -17
- package/flashphoner-temasys-flash-websocket.js +17 -17
- package/flashphoner-temasys-flash-websocket.min.js +1 -1
- package/flashphoner-webrtc-only.js +14 -14
- package/flashphoner-webrtc-only.min.js +1 -1
- package/flashphoner.js +17 -17
- package/flashphoner.min.js +2 -2
- package/package.json +1 -1
- package/src/flashphoner-core.js +1 -1
- package/src/webrtc-media-provider.js +2 -2
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.207",
|
|
538
538
|
clientOSVersion: window.navigator.appVersion,
|
|
539
539
|
clientBrowserVersion: window.navigator.userAgent,
|
|
540
540
|
msePacketizationVersion: 2,
|
|
@@ -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
|
}
|