@flashphoner/websdk 2.0.259 → 2.0.260
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-zoom/stream-zoom.css +23 -0
- package/examples/demo/streaming/stream-zoom/stream-zoom.html +59 -0
- package/examples/demo/streaming/stream-zoom/stream-zoom.js +166 -0
- package/flashphoner-no-flash.js +156 -0
- package/flashphoner-no-flash.min.js +2 -2
- package/flashphoner-no-webrtc.js +62 -0
- package/flashphoner-no-webrtc.min.js +1 -1
- package/flashphoner-no-wsplayer.js +156 -0
- package/flashphoner-no-wsplayer.min.js +2 -2
- package/flashphoner-room-api-webrtc-only.js +156 -0
- package/flashphoner-room-api-webrtc-only.min.js +1 -1
- package/flashphoner-room-api.js +100 -0
- package/flashphoner-room-api.min.js +2 -2
- package/flashphoner-temasys-flash-websocket-without-adapterjs.js +62 -0
- package/flashphoner-temasys-flash-websocket.js +62 -0
- package/flashphoner-temasys-flash-websocket.min.js +1 -1
- package/flashphoner-webrtc-only.js +156 -0
- package/flashphoner-webrtc-only.min.js +1 -1
- package/flashphoner.js +156 -0
- package/flashphoner.min.js +2 -2
- package/package.json +1 -1
- package/src/flashphoner-core.js +45 -0
- package/src/webrtc-media-provider.js +55 -0
|
@@ -12415,6 +12415,65 @@ var createSession = function createSession(options) {
|
|
|
12415
12415
|
throw new Error("This function available for publishing stream only");
|
|
12416
12416
|
}
|
|
12417
12417
|
};
|
|
12418
|
+
|
|
12419
|
+
/**
|
|
12420
|
+
* Get camera zoom capabilities
|
|
12421
|
+
*
|
|
12422
|
+
* @return {Object} zoom capabilities object: max, min, step or null if zoom is not supported
|
|
12423
|
+
* @memberof Stream
|
|
12424
|
+
*/
|
|
12425
|
+
var getZoomCapabilities = function getZoomCapabilities() {
|
|
12426
|
+
if (published() && mediaConnection) {
|
|
12427
|
+
return mediaConnection.getZoomCapabilities();
|
|
12428
|
+
} else {
|
|
12429
|
+
throw new Error("This function available for publishing stream only");
|
|
12430
|
+
}
|
|
12431
|
+
};
|
|
12432
|
+
|
|
12433
|
+
/**
|
|
12434
|
+
* Get current camera zoom value if supported
|
|
12435
|
+
*
|
|
12436
|
+
* @return {number} current camera zoom value
|
|
12437
|
+
* @memberof Stream
|
|
12438
|
+
*/
|
|
12439
|
+
var getZoom = function getZoom() {
|
|
12440
|
+
if (published() && mediaConnection) {
|
|
12441
|
+
return mediaConnection.getZoom();
|
|
12442
|
+
} else {
|
|
12443
|
+
throw new Error("This function available for publishing stream only");
|
|
12444
|
+
}
|
|
12445
|
+
};
|
|
12446
|
+
|
|
12447
|
+
/**
|
|
12448
|
+
* Set camera zoom value if supported
|
|
12449
|
+
*
|
|
12450
|
+
* @param {number} desired camera zoom value
|
|
12451
|
+
* @memberof Stream
|
|
12452
|
+
*/
|
|
12453
|
+
var setZoom = /*#__PURE__*/function () {
|
|
12454
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(value) {
|
|
12455
|
+
return _regenerator().w(function (_context2) {
|
|
12456
|
+
while (1) switch (_context2.n) {
|
|
12457
|
+
case 0:
|
|
12458
|
+
if (!(published() && mediaConnection)) {
|
|
12459
|
+
_context2.n = 2;
|
|
12460
|
+
break;
|
|
12461
|
+
}
|
|
12462
|
+
_context2.n = 1;
|
|
12463
|
+
return mediaConnection.setZoom(value);
|
|
12464
|
+
case 1:
|
|
12465
|
+
return _context2.a(2, _context2.v);
|
|
12466
|
+
case 2:
|
|
12467
|
+
throw new Error("This function available for publishing stream only");
|
|
12468
|
+
case 3:
|
|
12469
|
+
return _context2.a(2);
|
|
12470
|
+
}
|
|
12471
|
+
}, _callee2);
|
|
12472
|
+
}));
|
|
12473
|
+
return function setZoom(_x2) {
|
|
12474
|
+
return _ref2.apply(this, arguments);
|
|
12475
|
+
};
|
|
12476
|
+
}();
|
|
12418
12477
|
stream.play = play;
|
|
12419
12478
|
stream.publish = publish;
|
|
12420
12479
|
stream.stop = _stop;
|
|
@@ -12456,6 +12515,9 @@ var createSession = function createSession(options) {
|
|
|
12456
12515
|
stream.getLogger = getLogger;
|
|
12457
12516
|
stream.updateVideoSettings = updateVideoSettings;
|
|
12458
12517
|
stream.updateVideoResolution = updateVideoResolution;
|
|
12518
|
+
stream.getZoomCapabilities = getZoomCapabilities;
|
|
12519
|
+
stream.getZoom = getZoom;
|
|
12520
|
+
stream.setZoom = setZoom;
|
|
12459
12521
|
streams[id_] = stream;
|
|
12460
12522
|
return stream;
|
|
12461
12523
|
};
|
|
@@ -19170,6 +19170,65 @@ var createSession = function createSession(options) {
|
|
|
19170
19170
|
throw new Error("This function available for publishing stream only");
|
|
19171
19171
|
}
|
|
19172
19172
|
};
|
|
19173
|
+
|
|
19174
|
+
/**
|
|
19175
|
+
* Get camera zoom capabilities
|
|
19176
|
+
*
|
|
19177
|
+
* @return {Object} zoom capabilities object: max, min, step or null if zoom is not supported
|
|
19178
|
+
* @memberof Stream
|
|
19179
|
+
*/
|
|
19180
|
+
var getZoomCapabilities = function getZoomCapabilities() {
|
|
19181
|
+
if (published() && mediaConnection) {
|
|
19182
|
+
return mediaConnection.getZoomCapabilities();
|
|
19183
|
+
} else {
|
|
19184
|
+
throw new Error("This function available for publishing stream only");
|
|
19185
|
+
}
|
|
19186
|
+
};
|
|
19187
|
+
|
|
19188
|
+
/**
|
|
19189
|
+
* Get current camera zoom value if supported
|
|
19190
|
+
*
|
|
19191
|
+
* @return {number} current camera zoom value
|
|
19192
|
+
* @memberof Stream
|
|
19193
|
+
*/
|
|
19194
|
+
var getZoom = function getZoom() {
|
|
19195
|
+
if (published() && mediaConnection) {
|
|
19196
|
+
return mediaConnection.getZoom();
|
|
19197
|
+
} else {
|
|
19198
|
+
throw new Error("This function available for publishing stream only");
|
|
19199
|
+
}
|
|
19200
|
+
};
|
|
19201
|
+
|
|
19202
|
+
/**
|
|
19203
|
+
* Set camera zoom value if supported
|
|
19204
|
+
*
|
|
19205
|
+
* @param {number} desired camera zoom value
|
|
19206
|
+
* @memberof Stream
|
|
19207
|
+
*/
|
|
19208
|
+
var setZoom = /*#__PURE__*/function () {
|
|
19209
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(value) {
|
|
19210
|
+
return _regenerator().w(function (_context2) {
|
|
19211
|
+
while (1) switch (_context2.n) {
|
|
19212
|
+
case 0:
|
|
19213
|
+
if (!(published() && mediaConnection)) {
|
|
19214
|
+
_context2.n = 2;
|
|
19215
|
+
break;
|
|
19216
|
+
}
|
|
19217
|
+
_context2.n = 1;
|
|
19218
|
+
return mediaConnection.setZoom(value);
|
|
19219
|
+
case 1:
|
|
19220
|
+
return _context2.a(2, _context2.v);
|
|
19221
|
+
case 2:
|
|
19222
|
+
throw new Error("This function available for publishing stream only");
|
|
19223
|
+
case 3:
|
|
19224
|
+
return _context2.a(2);
|
|
19225
|
+
}
|
|
19226
|
+
}, _callee2);
|
|
19227
|
+
}));
|
|
19228
|
+
return function setZoom(_x2) {
|
|
19229
|
+
return _ref2.apply(this, arguments);
|
|
19230
|
+
};
|
|
19231
|
+
}();
|
|
19173
19232
|
stream.play = play;
|
|
19174
19233
|
stream.publish = publish;
|
|
19175
19234
|
stream.stop = _stop;
|
|
@@ -19211,6 +19270,9 @@ var createSession = function createSession(options) {
|
|
|
19211
19270
|
stream.getLogger = getLogger;
|
|
19212
19271
|
stream.updateVideoSettings = updateVideoSettings;
|
|
19213
19272
|
stream.updateVideoResolution = updateVideoResolution;
|
|
19273
|
+
stream.getZoomCapabilities = getZoomCapabilities;
|
|
19274
|
+
stream.getZoom = getZoom;
|
|
19275
|
+
stream.setZoom = setZoom;
|
|
19214
19276
|
streams[id_] = stream;
|
|
19215
19277
|
return stream;
|
|
19216
19278
|
};
|