@flashphoner/websdk 2.0.206 → 2.0.210
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/2players/2players.js +0 -5
- package/examples/demo/streaming/canvas_streaming/canvas_streaming.js +0 -12
- package/examples/demo/streaming/embed_player/player.js +127 -198
- package/examples/demo/streaming/firewall-traversal-streaming/firewall-traversal-streaming.js +0 -12
- package/examples/demo/streaming/mcu_client/mcu_client.js +0 -8
- package/examples/demo/streaming/media_devices_manager/manager.js +2 -17
- package/examples/demo/streaming/player/player.js +10 -9
- package/examples/demo/streaming/screen-sharing/screen-sharing.html +1 -1
- package/examples/demo/streaming/screen-sharing/screen-sharing.js +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 +152 -0
- package/examples/demo/streaming/stream-auto-restore/stream-auto-restore.js +744 -0
- package/examples/demo/streaming/stream-diagnostic/stream-diagnostic.js +0 -8
- package/examples/demo/streaming/stream-local-snapshot/stream-local-snapshot.js +0 -6
- package/examples/demo/streaming/stream-snapshot/stream-snapshot.js +0 -6
- package/examples/demo/streaming/stream_recording/recording.js +0 -6
- package/examples/demo/streaming/streamer/streamer.js +0 -8
- package/examples/demo/streaming/two_way_streaming/two_way_streaming.js +0 -11
- package/examples/demo/streaming/webrtc-as-rtmp-republishing/webrtc-as-rtmp-republishing.js +0 -6
- package/flashphoner-no-flash.js +131 -29
- package/flashphoner-no-flash.min.js +2 -2
- package/flashphoner-no-webrtc.js +103 -19
- package/flashphoner-no-webrtc.min.js +1 -1
- package/flashphoner-no-wsplayer.js +132 -30
- package/flashphoner-no-wsplayer.min.js +2 -2
- package/flashphoner-room-api.js +105 -12
- package/flashphoner-room-api.min.js +2 -2
- package/flashphoner-temasys-flash-websocket-without-adapterjs.js +105 -21
- package/flashphoner-temasys-flash-websocket.js +105 -21
- package/flashphoner-temasys-flash-websocket.min.js +1 -1
- package/flashphoner-webrtc-only.js +129 -27
- package/flashphoner-webrtc-only.min.js +1 -1
- package/flashphoner.js +132 -30
- package/flashphoner.min.js +2 -2
- package/package.json +1 -1
- package/src/flashphoner-core.d.ts +22 -5
- package/src/flashphoner-core.js +79 -3
- package/src/webrtc-media-provider.js +26 -9
|
@@ -45,14 +45,6 @@ function onStopped() {
|
|
|
45
45
|
|
|
46
46
|
function publishBtnClick() {
|
|
47
47
|
$(this).prop('disabled', true);
|
|
48
|
-
if (Browser.isSafariWebRTC()) {
|
|
49
|
-
Flashphoner.playFirstVideo(localVideo, true, PRELOADER_URL).then(function () {
|
|
50
|
-
Flashphoner.playFirstVideo(remoteVideo, false, PRELOADER_URL).then(function () {
|
|
51
|
-
start();
|
|
52
|
-
});
|
|
53
|
-
});
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
48
|
start();
|
|
57
49
|
}
|
|
58
50
|
|
|
@@ -113,12 +113,6 @@ function onUnpublished() {
|
|
|
113
113
|
|
|
114
114
|
function publishBtnClick() {
|
|
115
115
|
$(this).prop('disabled', true);
|
|
116
|
-
if (Browser.isSafariWebRTC()) {
|
|
117
|
-
Flashphoner.playFirstVideo(localVideo, true, PRELOADER_URL).then(function() {
|
|
118
|
-
start()
|
|
119
|
-
});
|
|
120
|
-
return;
|
|
121
|
-
}
|
|
122
116
|
start()
|
|
123
117
|
}
|
|
124
118
|
|
|
@@ -64,12 +64,6 @@ function onUnpublished() {
|
|
|
64
64
|
|
|
65
65
|
function publishBtnClick() {
|
|
66
66
|
$(this).prop('disabled', true);
|
|
67
|
-
if (Browser.isSafariWebRTC()) {
|
|
68
|
-
Flashphoner.playFirstVideo(localVideo, true, PRELOADER_URL).then(function() {
|
|
69
|
-
start()
|
|
70
|
-
});
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
67
|
start()
|
|
74
68
|
}
|
|
75
69
|
|
|
@@ -40,12 +40,6 @@ function publishBtnClick() {
|
|
|
40
40
|
$(this).prop('disabled', true);
|
|
41
41
|
$('#url').prop('disabled', true);
|
|
42
42
|
$("#downloadDiv").hide();
|
|
43
|
-
if (Browser.isSafariWebRTC()) {
|
|
44
|
-
Flashphoner.playFirstVideo(localVideo, true, PRELOADER_URL).then(function() {
|
|
45
|
-
startRecording();
|
|
46
|
-
});
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
43
|
startRecording();
|
|
50
44
|
}
|
|
51
45
|
}
|
|
@@ -40,14 +40,6 @@ function onStopped() {
|
|
|
40
40
|
|
|
41
41
|
function publishBtnClick() {
|
|
42
42
|
$(this).prop('disabled', true);
|
|
43
|
-
if (Browser.isSafariWebRTC()) {
|
|
44
|
-
Flashphoner.playFirstVideo(localVideo, true, PRELOADER_URL).then(function() {
|
|
45
|
-
Flashphoner.playFirstVideo(remoteVideo, false, PRELOADER_URL).then(function() {
|
|
46
|
-
start();
|
|
47
|
-
});
|
|
48
|
-
});
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
43
|
start();
|
|
52
44
|
}
|
|
53
45
|
|
|
@@ -103,12 +103,6 @@ function publishBtnClick() {
|
|
|
103
103
|
if (validateForm("streamerForm")) {
|
|
104
104
|
$('#publishStream').prop('disabled', true);
|
|
105
105
|
$(this).prop('disabled', true);
|
|
106
|
-
if (Browser.isSafariWebRTC()) {
|
|
107
|
-
Flashphoner.playFirstVideo(localVideo, true, PRELOADER_URL).then(function() {
|
|
108
|
-
publishStream();
|
|
109
|
-
});
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
106
|
publishStream();
|
|
113
107
|
}
|
|
114
108
|
}
|
|
@@ -145,11 +139,6 @@ function playBtnClick() {
|
|
|
145
139
|
$(this).prop('disabled', true);
|
|
146
140
|
if (Flashphoner.getMediaProviders()[0] === "WSPlayer") {
|
|
147
141
|
Flashphoner.playFirstSound();
|
|
148
|
-
} else if (Browser.isSafariWebRTC() || Flashphoner.getMediaProviders()[0] === "MSE") {
|
|
149
|
-
Flashphoner.playFirstVideo(remoteVideo, false, PRELOADER_URL).then(function () {
|
|
150
|
-
playStream();
|
|
151
|
-
});
|
|
152
|
-
return;
|
|
153
142
|
}
|
|
154
143
|
playStream();
|
|
155
144
|
}
|
|
@@ -43,12 +43,6 @@ function onStopped() {
|
|
|
43
43
|
function publishBtnClick() {
|
|
44
44
|
if (validateForm()) {
|
|
45
45
|
$(this).prop('disabled', true);
|
|
46
|
-
if (Browser.isSafariWebRTC()) {
|
|
47
|
-
Flashphoner.playFirstVideo(localVideo, true, PRELOADER_URL).then(function() {
|
|
48
|
-
start();
|
|
49
|
-
});
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
46
|
start();
|
|
53
47
|
}
|
|
54
48
|
}
|