Fixed unimplemented methods.
Full brightness on videocall activity.
This commit is contained in:
parent
720a8aa7a9
commit
454d70d2d9
2 changed files with 15 additions and 1 deletions
|
@ -24,7 +24,10 @@ import org.linphone.core.AndroidCameraRecordManager;
|
||||||
import org.linphone.core.LinphoneCore;
|
import org.linphone.core.LinphoneCore;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
|
import android.content.Context;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
import android.os.PowerManager;
|
||||||
|
import android.os.PowerManager.WakeLock;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.Menu;
|
import android.view.Menu;
|
||||||
import android.view.MenuInflater;
|
import android.view.MenuInflater;
|
||||||
|
@ -37,6 +40,7 @@ public class VideoCallActivity extends Activity {
|
||||||
AndroidCameraRecordManager recordManager;
|
AndroidCameraRecordManager recordManager;
|
||||||
private static final String tag = "Linphone";
|
private static final String tag = "Linphone";
|
||||||
public static boolean launched = false;
|
public static boolean launched = false;
|
||||||
|
private WakeLock mWakeLock;
|
||||||
|
|
||||||
public void onCreate(Bundle savedInstanceState) {
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
Log.d(tag, "onCreate VideoCallActivity");
|
Log.d(tag, "onCreate VideoCallActivity");
|
||||||
|
@ -55,6 +59,9 @@ public class VideoCallActivity extends Activity {
|
||||||
mVideoCaptureView.setZOrderOnTop(true);
|
mVideoCaptureView.setZOrderOnTop(true);
|
||||||
|
|
||||||
if (!recordManager.isMuted()) sendStaticImage(false);
|
if (!recordManager.isMuted()) sendStaticImage(false);
|
||||||
|
PowerManager pm = (PowerManager)getSystemService(Context.POWER_SERVICE);
|
||||||
|
mWakeLock = pm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK|PowerManager.ON_AFTER_RELEASE,"Linphone");
|
||||||
|
mWakeLock.acquire();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -126,7 +133,7 @@ public class VideoCallActivity extends Activity {
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onDestroy() {
|
protected void onDestroy() {
|
||||||
|
@ -139,6 +146,7 @@ public class VideoCallActivity extends Activity {
|
||||||
@Override
|
@Override
|
||||||
protected void onPause() {
|
protected void onPause() {
|
||||||
Log.d(tag, "onPause VideoCallActivity");
|
Log.d(tag, "onPause VideoCallActivity");
|
||||||
|
mWakeLock.release();
|
||||||
super.onPause();
|
super.onPause();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -121,4 +121,10 @@ class LinphoneProxyConfigImpl implements LinphoneProxyConfig {
|
||||||
throw new LinphoneCoreException("cannot set route ["+routeUri+"]");
|
throw new LinphoneCoreException("cannot set route ["+routeUri+"]");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public void enablePublish(boolean enable) {
|
||||||
|
throw new RuntimeException("not implemented");
|
||||||
|
}
|
||||||
|
public boolean publishEnabled() {
|
||||||
|
throw new RuntimeException("not implemented");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue