app/src/main/java/org/appspot/apprtc/CallActivity.java
// Should be called from UI thread
Should be called from UI thread
Should be called from UI thread
private void callConnected() {
        final long delta = System.currentTimeMillis() - callStartedTimeMs;
        Log.i(TAG, "Call connected: delay=" + delta + "ms");
        if (peerConnectionClient == null || isError) {
            Log.w(TAG, "Call is connected in closed or error state");
            return;
        }
        updateVideoView();
        peerConnectionClient.enableStatsEvents(true, STAT_CALLBACK_PERIOD);
        callFragment.hideCallerId();
        WebRtcPhone.getInstance().tg.stopTone();
    }
private void callConnected ( ) { final long delta = System . currentTimeMillis ( ) - callStartedTimeMs ; Log . i ( TAG , "Call connected: delay=" + delta + "ms" ) ; if ( peerConnectionClient == null || isError ) { Log . w ( TAG , "Call is connected in closed or error state" ) ; return ; } updateVideoView ( ) ; peerConnectionClient . enableStatsEvents ( true , STAT_CALLBACK_PERIOD ) ; callFragment . hideCallerId ( ) ; WebRtcPhone . getInstance ( ) . tg . stopTone ( ) ; }
Should be called from UI thread
Should be called from UI thread
// Update video view. // Enable statistics callback.