@flashphoner/sfusdk-examples 2.0.322 → 2.0.323
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/package.json
CHANGED
|
@@ -133,7 +133,7 @@ const onConnected = async function(state, pc, session) {
|
|
|
133
133
|
// Display error state
|
|
134
134
|
setStatus(playErrorInfo, e, "red");
|
|
135
135
|
}).on(constants.SFU_ROOM_EVENT.OPERATION_FAILED, function (e) {
|
|
136
|
-
onOperationFailed(state);
|
|
136
|
+
onOperationFailed(state, e);
|
|
137
137
|
}).on(constants.SFU_ROOM_EVENT.ENDED, function () {
|
|
138
138
|
// Publishing is stopped, dispose playback and close connection
|
|
139
139
|
setStatus(playErrorInfo, "ABR stream is stopped", "red");
|
|
@@ -184,7 +184,7 @@ const onStopClick = async function(state) {
|
|
|
184
184
|
|
|
185
185
|
const onOperationFailed = function(state, event) {
|
|
186
186
|
if (event.operation && event.error) {
|
|
187
|
-
setStatus(playErrorInfo,
|
|
187
|
+
setStatus(playErrorInfo, event.operation + " failed: " + event.error, "red");
|
|
188
188
|
} else {
|
|
189
189
|
setStatus(playErrorInfo, event, "red");
|
|
190
190
|
}
|