summaryrefslogtreecommitdiffstats
path: root/webapp/components/webrtc
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2017-02-24 17:34:21 +0000
committerGitHub <noreply@github.com>2017-02-24 17:34:21 +0000
commit97cc0a0d73dcacfefcdff785c802762e2a0a60d6 (patch)
treec584bb28511980bde3bf09a6fffc1f8feacf9ddf /webapp/components/webrtc
parentf182d196fffc9da89ad63bdbd7bbb2e41da3146e (diff)
downloadchat-97cc0a0d73dcacfefcdff785c802762e2a0a60d6.tar.gz
chat-97cc0a0d73dcacfefcdff785c802762e2a0a60d6.tar.bz2
chat-97cc0a0d73dcacfefcdff785c802762e2a0a60d6.zip
PLT-5071: Client side component of Telemetry. (#5516)
Diffstat (limited to 'webapp/components/webrtc')
-rw-r--r--webapp/components/webrtc/webrtc_controller.jsx5
1 files changed, 5 insertions, 0 deletions
diff --git a/webapp/components/webrtc/webrtc_controller.jsx b/webapp/components/webrtc/webrtc_controller.jsx
index b8d3d4db6..0fab0d2e7 100644
--- a/webapp/components/webrtc/webrtc_controller.jsx
+++ b/webapp/components/webrtc/webrtc_controller.jsx
@@ -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();