PLT-5071: Client side component of Telemetry. (#5516)

Этот коммит содержится в:
George Goldberg
2017-02-24 17:34:21 +00:00
коммит произвёл GitHub
родитель f182d196ff
Коммит 97cc0a0d73
23 изменённых файлов: 280 добавлений и 129 удалений

Просмотреть файл

@@ -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();