@flashphoner/websdk 2.0.215 → 2.0.218
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/conference/conference.js +9 -1
- package/examples/demo/streaming/video-chat-and-screen-sharing/video-chat-and-screen-sharing.js +12 -0
- package/flashphoner-no-flash.js +800 -588
- package/flashphoner-no-flash.min.js +2 -2
- package/flashphoner-no-webrtc.js +800 -588
- package/flashphoner-no-webrtc.min.js +2 -2
- package/flashphoner-no-wsplayer.js +800 -588
- package/flashphoner-no-wsplayer.min.js +2 -2
- package/flashphoner-room-api.js +783 -694
- package/flashphoner-room-api.min.js +2 -2
- package/flashphoner-temasys-flash-websocket-without-adapterjs.js +800 -588
- package/flashphoner-temasys-flash-websocket.js +800 -588
- package/flashphoner-temasys-flash-websocket.min.js +1 -1
- package/flashphoner-webrtc-only.js +800 -588
- package/flashphoner-webrtc-only.min.js +1 -1
- package/flashphoner.js +800 -588
- package/flashphoner.min.js +2 -2
- package/package.json +1 -1
- package/src/constants.d.ts +792 -1
- package/src/constants.js +790 -704
- package/src/flashphoner-core.d.ts +359 -212
- package/src/flashphoner-core.js +1 -1
- package/src/room-module.d.ts +2 -2
- package/src/util.js +3 -0
package/docTemplate/README.md
CHANGED
|
@@ -70,6 +70,7 @@ function onLeft() {
|
|
|
70
70
|
function start() {
|
|
71
71
|
var url = $('#url').val();
|
|
72
72
|
var username = $('#login').val();
|
|
73
|
+
var display = document.getElementById("localDisplay");
|
|
73
74
|
if (connection && connection.status() == SESSION_STATUS.ESTABLISHED) {
|
|
74
75
|
//check url and username
|
|
75
76
|
if (connection.getServerUrl() != url || connection.username() != username) {
|
|
@@ -81,7 +82,14 @@ function start() {
|
|
|
81
82
|
return;
|
|
82
83
|
}
|
|
83
84
|
}
|
|
84
|
-
|
|
85
|
+
// Requesting media access before connecting to the server #WCS-3449
|
|
86
|
+
Flashphoner.getMediaAccess(null, localDisplay).then(function() {
|
|
87
|
+
createConnection(url, username);
|
|
88
|
+
}).catch(function(error) {
|
|
89
|
+
console.error("User not allowed media access: "+error);
|
|
90
|
+
$("#failedInfo").text("User not allowed media access. Refresh the page");
|
|
91
|
+
onLeft();
|
|
92
|
+
});
|
|
85
93
|
}
|
|
86
94
|
|
|
87
95
|
function createConnection(url, username) {
|
package/examples/demo/streaming/video-chat-and-screen-sharing/video-chat-and-screen-sharing.js
CHANGED
|
@@ -140,6 +140,7 @@ function onLeft() {
|
|
|
140
140
|
function start() {
|
|
141
141
|
var url = $('#url').val();
|
|
142
142
|
var username = $('#login').val();
|
|
143
|
+
var display = document.getElementById("localDisplay");
|
|
143
144
|
if (connection && connection.status() == SESSION_STATUS.ESTABLISHED) {
|
|
144
145
|
//check url and username
|
|
145
146
|
if (connection.getServerUrl() != url || connection.username() != username) {
|
|
@@ -151,6 +152,17 @@ function start() {
|
|
|
151
152
|
return;
|
|
152
153
|
}
|
|
153
154
|
}
|
|
155
|
+
// Requesting media access before connecting to the server #WCS-3449
|
|
156
|
+
Flashphoner.getMediaAccess(null, localDisplay).then(function() {
|
|
157
|
+
createConnection(url, username);
|
|
158
|
+
}).catch(function(error) {
|
|
159
|
+
console.error("User not allowed media access: "+error);
|
|
160
|
+
$("#failedInfo").text("User not allowed media access. Refresh the page");
|
|
161
|
+
onLeft();
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
function createConnection(url, username) {
|
|
154
166
|
connection = RoomApi.connect({urlServer: url, username: username}).on(SESSION_STATUS.FAILED, function(session){
|
|
155
167
|
setStatus('#status', session.status());
|
|
156
168
|
onLeft();
|