@flashphoner/websdk 2.0.223 → 2.0.225
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/embed_player/images/stop.png +0 -0
- package/examples/demo/streaming/embed_player/player.css +40 -428
- package/examples/demo/streaming/embed_player/player.html +5 -63
- package/examples/demo/streaming/embed_player/player.js +235 -377
- package/examples/demo/streaming/embed_player/sample.html +0 -4
- package/examples/demo/streaming/embed_player/utils.js +80 -0
- package/examples/demo/streaming/player/player.js +40 -7
- package/flashphoner-no-flash.js +920 -2894
- package/flashphoner-no-flash.min.js +2 -2
- package/flashphoner-no-webrtc.js +793 -2599
- package/flashphoner-no-webrtc.min.js +2 -2
- package/flashphoner-no-wsplayer.js +913 -2585
- package/flashphoner-no-wsplayer.min.js +2 -2
- package/flashphoner-room-api.js +112 -22
- package/flashphoner-room-api.min.js +2 -2
- package/flashphoner-temasys-flash-websocket-without-adapterjs.js +843 -2843
- package/flashphoner-temasys-flash-websocket.js +842 -2842
- package/flashphoner-temasys-flash-websocket.min.js +1 -1
- package/flashphoner-webrtc-only.js +912 -2584
- package/flashphoner-webrtc-only.min.js +1 -1
- package/flashphoner.js +920 -2894
- package/flashphoner.min.js +2 -2
- package/package.json +1 -1
- package/src/flashphoner-core.js +11 -3
- package/src/media-source-media-provider.js +1 -1
- package/src/util.js +40 -2
- package/src/webrtc-media-provider.js +60 -16
package/package.json
CHANGED
package/src/flashphoner-core.js
CHANGED
|
@@ -210,9 +210,9 @@ var playFirstSound = function(noise) {
|
|
|
210
210
|
*
|
|
211
211
|
* @memberof Flashphoner
|
|
212
212
|
*/
|
|
213
|
-
var playFirstVideo = function (display, isLocal, src) {
|
|
213
|
+
var playFirstVideo = function (display, isLocal, src, useControls) {
|
|
214
214
|
for (var mp in MediaProvider) {
|
|
215
|
-
return MediaProvider[mp].playFirstVideo(display, isLocal, src);
|
|
215
|
+
return MediaProvider[mp].playFirstVideo(display, isLocal, src, useControls);
|
|
216
216
|
}
|
|
217
217
|
};
|
|
218
218
|
|
|
@@ -819,6 +819,7 @@ var createSession = function (options) {
|
|
|
819
819
|
* @param {Array<string>=} options.sipSDP Array of custom SDP params (ex. bandwidth (b=))
|
|
820
820
|
* @param {Array<string>=} options.sipHeaders Array of custom SIP headers
|
|
821
821
|
* @param {string=} options.videoContentHint Video content hint for browser ('detail' by default to maintain resolution), {@link Flashphoner.constants.CONTENT_HINT_TYPE}
|
|
822
|
+
* @param {Boolean=} options.useControls Use a standard HTML5 video controls (play, pause, fullscreen). May be a workaround for fullscreen mode to work in Safari 16
|
|
822
823
|
* @param {Object=} options.logger Call logger options
|
|
823
824
|
* @param {sdpHook} sdpHook The callback that handles sdp from the server
|
|
824
825
|
* @returns {Call} Call
|
|
@@ -883,6 +884,7 @@ var createSession = function (options) {
|
|
|
883
884
|
var sipSDP = options.sipSDP;
|
|
884
885
|
var sipHeaders = options.sipHeaders;
|
|
885
886
|
var videoContentHint = options.videoContentHint;
|
|
887
|
+
var useControls = options.useControls;
|
|
886
888
|
/**
|
|
887
889
|
* Represents sip call.
|
|
888
890
|
*
|
|
@@ -979,6 +981,7 @@ var createSession = function (options) {
|
|
|
979
981
|
connectionConfig: mediaOptions,
|
|
980
982
|
audioOutputId: audioOutputId,
|
|
981
983
|
videoContentHint: videoContentHint,
|
|
984
|
+
useControls: useControls,
|
|
982
985
|
logger: logger
|
|
983
986
|
}).then(function (newConnection) {
|
|
984
987
|
mediaConnection = newConnection;
|
|
@@ -1117,7 +1120,8 @@ var createSession = function (options) {
|
|
|
1117
1120
|
login: cConfig.sipLogin,
|
|
1118
1121
|
constraints: constraints,
|
|
1119
1122
|
connectionConfig: mediaOptions,
|
|
1120
|
-
audioOutputId: audioOutputId
|
|
1123
|
+
audioOutputId: audioOutputId,
|
|
1124
|
+
useControls: useControls
|
|
1121
1125
|
}).then(function (newConnection) {
|
|
1122
1126
|
mediaConnection = newConnection;
|
|
1123
1127
|
return mediaConnection.setRemoteSdp(sdp);
|
|
@@ -1595,6 +1599,7 @@ var createSession = function (options) {
|
|
|
1595
1599
|
* @param {string=} options.useCanvasMediaStream EXPERIMENTAL: when publish bind browser's media stream to the canvas. It can be useful for image filtering
|
|
1596
1600
|
* @param {string=} options.videoContentHint Video content hint for browser ('detail' by default to maintain resolution), {@link Flashphoner.constants.CONTENT_HINT_TYPE}
|
|
1597
1601
|
* @param {Boolean=} options.unmutePlayOnStart Unmute playback on start. May be used after user gesture only, so set 'unmutePlayOnStart: false' for autoplay
|
|
1602
|
+
* @param {Boolean=} options.useControls Use a standard HTML5 video controls (play, pause, fullscreen). May be a workaround for fullscreen mode to work in Safari 16
|
|
1598
1603
|
* @param {Object=} options.logger Stream logger options
|
|
1599
1604
|
* @param {sdpHook} sdpHook The callback that handles sdp from the server
|
|
1600
1605
|
* @returns {Stream} Stream
|
|
@@ -1705,6 +1710,7 @@ var createSession = function (options) {
|
|
|
1705
1710
|
var useCanvasMediaStream = options.useCanvasMediaStream;
|
|
1706
1711
|
var videoContentHint = options.videoContentHint;
|
|
1707
1712
|
var unmutePlayOnStart = options.unmutePlayOnStart;
|
|
1713
|
+
var useControls = options.useControls;
|
|
1708
1714
|
|
|
1709
1715
|
var audioState_;
|
|
1710
1716
|
var videoState_;
|
|
@@ -1890,6 +1896,7 @@ var createSession = function (options) {
|
|
|
1890
1896
|
remoteVideo: remoteVideo,
|
|
1891
1897
|
playoutDelay: playoutDelay,
|
|
1892
1898
|
unmutePlayOnStart: unmutePlayOnStart,
|
|
1899
|
+
useControls: useControls,
|
|
1893
1900
|
logger: logger
|
|
1894
1901
|
}, streamRefreshHandlers[id_]).then(function (newConnection) {
|
|
1895
1902
|
mediaConnection = newConnection;
|
|
@@ -1979,6 +1986,7 @@ var createSession = function (options) {
|
|
|
1979
1986
|
connectionConstraints: mediaConnectionConstraints,
|
|
1980
1987
|
customStream: constraints && constraints.customStream ? constraints.customStream : false,
|
|
1981
1988
|
videoContentHint: videoContentHint,
|
|
1989
|
+
useControls: useControls,
|
|
1982
1990
|
logger: logger
|
|
1983
1991
|
}).then(function (newConnection) {
|
|
1984
1992
|
mediaConnection = newConnection;
|