|
|
|
@ -20,6 +20,7 @@ import {
@@ -20,6 +20,7 @@ import {
|
|
|
|
|
import { |
|
|
|
|
URL_CONFIG, |
|
|
|
|
URL_STATUS, |
|
|
|
|
URL_VIEWER_PING, |
|
|
|
|
TIMER_STATUS_UPDATE, |
|
|
|
|
TIMER_STREAM_DURATION_COUNTER, |
|
|
|
|
TEMP_IMAGE, |
|
|
|
@ -119,6 +120,12 @@ export default class VideoOnly extends Component {
@@ -119,6 +120,12 @@ export default class VideoOnly extends Component {
|
|
|
|
|
this.handleOfflineMode(); |
|
|
|
|
this.handleNetworkingError(`Stream status: ${error}`); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
// Ping the API to let them know we're an active viewer
|
|
|
|
|
fetch(URL_VIEWER_PING).catch((error) => { |
|
|
|
|
this.handleOfflineMode(); |
|
|
|
|
this.handleNetworkingError(`Viewer PING error: ${error}`); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
setConfigData(data = {}) { |
|
|
|
|