1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
package org.appspot.apprtc;
import org.webrtc.StatsReport;
import android.util.Log;
public class CallStatsAPI {
private static String TAG = "CallStatsAPI";
public void initAPIAUTH(String clientId,CallStatsAPIListener listener)
{
Log.d(TAG,"Authentication happening");
listener.onSucess();
}
public void onCallProgress(CallStatsAPIListener listener)
{
Log.d(TAG,"Call in progress");
listener.onSucess();
}
public void onCallEnded(CallStatsAPIListener listener)
{
Log.d(TAG,"Call disconnected");
listener.onSucess();
}
public void onCallStatsReceived(StatsReport[] report , CallStatsAPIListener listener)
{
//Log.d(TAG,"Call stats received");
for(int i = 0;i<report.length;i++)
{
//Log.d(TAG,"report "+report[i].toString());
}
listener.onSucess();
}
public void onConnectedtoRoom(String roomId,CallStatsAPIListener listener)
{
Log.d(TAG,"Call connected to "+roomId);
listener.onSucess();
}
}
|