@flashphoner/websdk 2.0.218 → 2.0.222
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/Gruntfile.js +30 -1
- package/docTemplate/README.md +1 -1
- package/examples/demo/streaming/console/console.html +149 -1
- package/examples/demo/streaming/console/console.js +282 -2
- package/examples/demo/streaming/console/jquery.dataTables.css +604 -0
- package/examples/demo/streaming/console/jquery.dataTables.js +15562 -0
- package/examples/demo/streaming/media_devices_manager/manager.js +49 -30
- package/examples/demo/streaming/player/player.js +12 -2
- package/examples/demo/streaming/stream-snapshot/stream-snapshot.js +11 -11
- package/flashphoner-no-flash.js +49 -7
- package/flashphoner-no-flash.min.js +1 -1
- package/flashphoner-no-webrtc.js +4675 -6124
- package/flashphoner-no-webrtc.min.js +2 -2
- package/flashphoner-no-wsplayer.js +4100 -5549
- package/flashphoner-no-wsplayer.min.js +2 -2
- package/flashphoner-rest-api.js +9 -1
- package/flashphoner-room-api.js +82 -659
- package/flashphoner-room-api.min.js +2 -2
- package/flashphoner-temasys-flash-websocket-without-adapterjs.js +4162 -5611
- package/flashphoner-temasys-flash-websocket.js +4162 -5611
- package/flashphoner-temasys-flash-websocket.min.js +1 -1
- package/flashphoner-webrtc-only.js +48 -6
- package/flashphoner-webrtc-only.min.js +1 -1
- package/flashphoner.js +4170 -5619
- package/flashphoner.min.js +2 -2
- package/package.json +1 -1
- package/src/constants.js +28 -1
- package/src/flashphoner-core.js +12 -2
- package/src/media-source-media-provider.js +1 -1
- package/src/rest-module.js +9 -1
|
@@ -7892,6 +7892,7 @@ var STREAM_STATUS = Object.freeze({
|
|
|
7892
7892
|
PLAYBACK_PROBLEM: 'PLAYBACK_PROBLEM',
|
|
7893
7893
|
|
|
7894
7894
|
/**
|
|
7895
|
+
* @deprecated WCS-3228 moved to {@link STREAM_EVENT_TYPE}
|
|
7895
7896
|
* Fires if playing {@link Stream} picture resizing.
|
|
7896
7897
|
* @event RESIZE
|
|
7897
7898
|
* @memberof Flashphoner.constants.STREAM_STATUS
|
|
@@ -7899,6 +7900,7 @@ var STREAM_STATUS = Object.freeze({
|
|
|
7899
7900
|
RESIZE: 'RESIZE',
|
|
7900
7901
|
|
|
7901
7902
|
/**
|
|
7903
|
+
* @deprecated WCS-3228 moved to {@link STREAM_EVENT_TYPE}
|
|
7902
7904
|
* Fires when {@link Stream} snapshot becomes available.
|
|
7903
7905
|
* Snapshot is base64 encoded png available through {@link Stream.getInfo}
|
|
7904
7906
|
* @event SNAPSHOT_COMPLETE
|
|
@@ -7907,6 +7909,7 @@ var STREAM_STATUS = Object.freeze({
|
|
|
7907
7909
|
SNAPSHOT_COMPLETE: 'SNAPSHOT_COMPLETE',
|
|
7908
7910
|
|
|
7909
7911
|
/**
|
|
7912
|
+
* @deprecated WCS-3228 moved to {@link STREAM_EVENT_TYPE}
|
|
7910
7913
|
* Fires on playing {@link Stream} if bitrate is higher than available network bandwidth.
|
|
7911
7914
|
* @event NOT_ENOUGH_BANDWIDTH
|
|
7912
7915
|
* @memberof Flashphoner.constants.NOT_ENOUGH_BANDWIDTH
|
|
@@ -8605,7 +8608,35 @@ var STREAM_EVENT_TYPE = Object.freeze({
|
|
|
8605
8608
|
* @see Stream
|
|
8606
8609
|
* @memberOf Flashphoner.constants.STREAM_EVENT_TYPE
|
|
8607
8610
|
*/
|
|
8608
|
-
DATA: 'data'
|
|
8611
|
+
DATA: 'data',
|
|
8612
|
+
|
|
8613
|
+
/**
|
|
8614
|
+
* Stream snapshot is completed
|
|
8615
|
+
* @see Stream
|
|
8616
|
+
* @memberOf Flashphoner.constants.STREAM_EVENT_TYPE
|
|
8617
|
+
*/
|
|
8618
|
+
SNAPSHOT_COMPLETED: 'snapshotCompleted',
|
|
8619
|
+
|
|
8620
|
+
/**
|
|
8621
|
+
* Stream snapshot is failed
|
|
8622
|
+
* @see Stream
|
|
8623
|
+
* @memberOf Flashphoner.constants.STREAM_EVENT_TYPE
|
|
8624
|
+
*/
|
|
8625
|
+
SNAPSHOT_FAILED: 'snapshotFailed',
|
|
8626
|
+
|
|
8627
|
+
/**
|
|
8628
|
+
* Fires if playing {@link Stream} picture resizing.
|
|
8629
|
+
* @event RESIZE
|
|
8630
|
+
* @memberof Flashphoner.constants.STREAM_STATUS
|
|
8631
|
+
*/
|
|
8632
|
+
RESIZE: 'resize',
|
|
8633
|
+
|
|
8634
|
+
/**
|
|
8635
|
+
* Fires on playing {@link Stream} if bitrate is higher than available network bandwidth.
|
|
8636
|
+
* @event NOT_ENOUGH_BANDWIDTH
|
|
8637
|
+
* @memberof Flashphoner.constants.NOT_ENOUGH_BANDWIDTH
|
|
8638
|
+
*/
|
|
8639
|
+
NOT_ENOUGH_BANDWIDTH: 'notEnoughBandwidth'
|
|
8609
8640
|
});
|
|
8610
8641
|
/**
|
|
8611
8642
|
* WebRTC video content hint type
|
|
@@ -8780,9 +8811,10 @@ var init = function init(options) {
|
|
|
8780
8811
|
}
|
|
8781
8812
|
});
|
|
8782
8813
|
}
|
|
8783
|
-
}
|
|
8814
|
+
} // flashMediaProvider is disables by default due to end of support in the most browsers #WCS-3577
|
|
8784
8815
|
|
|
8785
|
-
|
|
8816
|
+
|
|
8817
|
+
var flashProvider = null;
|
|
8786
8818
|
|
|
8787
8819
|
if (flashProvider && flashProvider.hasOwnProperty('available') && flashProvider.available() && (!MediaProvider.WebRTC || options.preferredMediaProviders && options.preferredMediaProviders.indexOf("Flash") >= 0)) {
|
|
8788
8820
|
MediaProvider.Flash = flashProvider;
|
|
@@ -9280,7 +9312,7 @@ var createSession = function createSession(options) {
|
|
|
9280
9312
|
mediaProviders: Object.keys(MediaProvider),
|
|
9281
9313
|
keepAlive: keepAlive,
|
|
9282
9314
|
authToken: authToken,
|
|
9283
|
-
clientVersion: "2.0
|
|
9315
|
+
clientVersion: "2.0",
|
|
9284
9316
|
clientOSVersion: window.navigator.appVersion,
|
|
9285
9317
|
clientBrowserVersion: window.navigator.userAgent,
|
|
9286
9318
|
msePacketizationVersion: 2,
|
|
@@ -10582,6 +10614,15 @@ var createSession = function createSession(options) {
|
|
|
10582
10614
|
var stream = {};
|
|
10583
10615
|
|
|
10584
10616
|
streamEventRefreshHandlers[id_] = function (streamEvent) {
|
|
10617
|
+
if (streamEvent.type == STREAM_EVENT_TYPE.NOT_ENOUGH_BANDWIDTH) {
|
|
10618
|
+
var info = streamEvent.payload.info.split("/");
|
|
10619
|
+
remoteBitrate = info[0];
|
|
10620
|
+
networkBandwidth = info[1];
|
|
10621
|
+
} else if (streamEvent.type == STREAM_EVENT_TYPE.RESIZE) {
|
|
10622
|
+
resolution.width = streamEvent.payload.streamerVideoWidth;
|
|
10623
|
+
resolution.height = streamEvent.payload.streamerVideoHeight;
|
|
10624
|
+
}
|
|
10625
|
+
|
|
10585
10626
|
if (callbacks[STREAM_EVENT]) {
|
|
10586
10627
|
callbacks[STREAM_EVENT](streamEvent);
|
|
10587
10628
|
}
|
|
@@ -10617,7 +10658,8 @@ var createSession = function createSession(options) {
|
|
|
10617
10658
|
if (event == INBOUND_VIDEO_RATE || event == OUTBOUND_VIDEO_RATE) {
|
|
10618
10659
|
detectConnectionQuality(event, streamInfo);
|
|
10619
10660
|
return;
|
|
10620
|
-
}
|
|
10661
|
+
} //Depricated. WCS-3228: RESIZE, SNAPSHOT_COMPLETE and NOT_ENOUGH_BANDWIDTH moved to STREAM_EVENT
|
|
10662
|
+
|
|
10621
10663
|
|
|
10622
10664
|
if (event == STREAM_STATUS.RESIZE) {
|
|
10623
10665
|
resolution.width = streamInfo.streamerVideoWidth;
|
|
@@ -11794,7 +11836,7 @@ module.exports = {
|
|
|
11794
11836
|
Browser: util.Browser
|
|
11795
11837
|
};
|
|
11796
11838
|
|
|
11797
|
-
},{"./constants":38,"./
|
|
11839
|
+
},{"./constants":38,"./media-source-media-provider":1,"./temasys-media-provider":1,"./util":40,"./webrtc-media-provider":41,"./websocket-media-provider":1,"kalmanjs":2,"promise-polyfill":4,"uuid":8,"webrtc-adapter":23}],40:[function(require,module,exports){
|
|
11798
11840
|
'use strict';
|
|
11799
11841
|
|
|
11800
11842
|
var isEmptyObject = function isEmptyObject(obj) {
|