PLT-5071: Client side component of Telemetry. (#5516)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
f182d196ff
Коммит
97cc0a0d73
@@ -13,6 +13,7 @@ import SearchBox from '../search_bar.jsx';
|
||||
import WebrtcHeader from './components/webrtc_header.jsx';
|
||||
import ConnectingScreen from 'components/loading_screen.jsx';
|
||||
|
||||
import {trackEvent} from 'actions/diagnostics_actions.jsx';
|
||||
import * as WebrtcActions from 'actions/webrtc_actions.jsx';
|
||||
|
||||
import * as Utils from 'utils/utils.jsx';
|
||||
@@ -600,6 +601,8 @@ export default class WebrtcController extends React.Component {
|
||||
}
|
||||
|
||||
onFailed() {
|
||||
trackEvent('api', 'api_users_webrtc_failed');
|
||||
|
||||
this.setState({
|
||||
isCalling: false,
|
||||
isAnswering: false,
|
||||
@@ -733,6 +736,7 @@ export default class WebrtcController extends React.Component {
|
||||
}
|
||||
|
||||
doAnswer(jsep) {
|
||||
trackEvent('api', 'api_users_webrtc_start');
|
||||
this.videocall.createAnswer({
|
||||
jsep,
|
||||
stream: this.localMedia,
|
||||
@@ -747,6 +751,7 @@ export default class WebrtcController extends React.Component {
|
||||
}
|
||||
|
||||
doHangup(error, manual) {
|
||||
trackEvent('api', 'api_users_webrtc_end');
|
||||
if (this.videocall && this.state.callInProgress) {
|
||||
this.videocall.send({message: {request: 'hangup'}});
|
||||
this.videocall.hangup();
|
||||
|
||||
Ссылка в новой задаче
Block a user