fix broken compilation and update linphone submodule
This commit is contained in:
parent
05ff060458
commit
3dd56231ff
6 changed files with 71 additions and 37 deletions
|
@ -393,34 +393,28 @@ public class DialerActivity extends SoftVolumeActivity implements LinphoneGuiLis
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (state) {
|
if (state==LinphoneCall.State.OutgoingInit){
|
||||||
case OutgoingInit:
|
enterIncallMode(lc);
|
||||||
|
if (!LinphoneManager.getInstance().shareMyCamera())
|
||||||
|
call.enableCamera(false);
|
||||||
|
LinphoneActivity.instance().startOrientationSensor();
|
||||||
|
}else if (state==LinphoneCall.State.IncomingReceived){
|
||||||
|
callPending(call);
|
||||||
|
if (!LinphoneManager.getInstance().shareMyCamera())
|
||||||
|
call.enableCamera(false);
|
||||||
|
LinphoneActivity.instance().startOrientationSensor();
|
||||||
|
}else if (state==LinphoneCall.State.Connected){
|
||||||
|
if (call.getDirection() == CallDirection.Incoming) {
|
||||||
enterIncallMode(lc);
|
enterIncallMode(lc);
|
||||||
if (!LinphoneManager.getInstance().shareMyCamera())
|
}
|
||||||
call.enableCamera(false);
|
}else if (state==LinphoneCall.State.Error){
|
||||||
LinphoneActivity.instance().startOrientationSensor();
|
if (mWakeLock.isHeld()) mWakeLock.release();
|
||||||
break;
|
showToast(R.string.call_error, message);
|
||||||
case IncomingReceived:
|
exitCallMode();
|
||||||
callPending(call);
|
LinphoneActivity.instance().stopOrientationSensor();
|
||||||
if (!LinphoneManager.getInstance().shareMyCamera())
|
}else if (state==LinphoneCall.State.CallEnd){
|
||||||
call.enableCamera(false);
|
exitCallMode();
|
||||||
LinphoneActivity.instance().startOrientationSensor();
|
LinphoneActivity.instance().stopOrientationSensor();
|
||||||
break;
|
|
||||||
case Connected:
|
|
||||||
if (call.getDirection() == CallDirection.Incoming) {
|
|
||||||
enterIncallMode(lc);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case Error:
|
|
||||||
if (mWakeLock.isHeld()) mWakeLock.release();
|
|
||||||
showToast(R.string.call_error, message);
|
|
||||||
exitCallMode();
|
|
||||||
LinphoneActivity.instance().stopOrientationSensor();
|
|
||||||
break;
|
|
||||||
case CallEnd:
|
|
||||||
exitCallMode();
|
|
||||||
LinphoneActivity.instance().stopOrientationSensor();
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -287,11 +287,9 @@ public class LinphoneActivity extends TabActivity implements SensorEventListener
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onAccuracyChanged(Sensor sensor, int accuracy) {
|
public void onAccuracyChanged(Sensor sensor, int accuracy) {
|
||||||
|
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public void onSensorChanged(SensorEvent event) {
|
public void onSensorChanged(SensorEvent event) {
|
||||||
if (event==null || event.sensor == mAccelerometer) {
|
if (event==null || event.sensor == mAccelerometer) {
|
||||||
// WARNING : getRotation() is SDK > 5
|
// WARNING : getRotation() is SDK > 5
|
||||||
|
|
|
@ -66,23 +66,19 @@ public class VideoCallActivity extends SoftVolumeActivity {
|
||||||
androidVideoWindowImpl = new AndroidVideoWindowImpl(mVideoView, mVideoCaptureView);
|
androidVideoWindowImpl = new AndroidVideoWindowImpl(mVideoView, mVideoCaptureView);
|
||||||
androidVideoWindowImpl.setListener(new AndroidVideoWindowImpl.VideoWindowListener() {
|
androidVideoWindowImpl.setListener(new AndroidVideoWindowImpl.VideoWindowListener() {
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onVideoRenderingSurfaceReady(AndroidVideoWindowImpl vw) {
|
public void onVideoRenderingSurfaceReady(AndroidVideoWindowImpl vw) {
|
||||||
LinphoneManager.getLc().setVideoWindow(vw);
|
LinphoneManager.getLc().setVideoWindow(vw);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onVideoRenderingSurfaceDestroyed(AndroidVideoWindowImpl vw) {
|
public void onVideoRenderingSurfaceDestroyed(AndroidVideoWindowImpl vw) {
|
||||||
Log.d("VIDEO WINDOW destroyed!\n");
|
Log.d("VIDEO WINDOW destroyed!\n");
|
||||||
LinphoneManager.getLc().setVideoWindow(null);
|
LinphoneManager.getLc().setVideoWindow(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onVideoPreviewSurfaceReady(AndroidVideoWindowImpl vw) {
|
public void onVideoPreviewSurfaceReady(AndroidVideoWindowImpl vw) {
|
||||||
LinphoneManager.getLc().setPreviewWindow(mVideoCaptureView);
|
LinphoneManager.getLc().setPreviewWindow(mVideoCaptureView);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onVideoPreviewSurfaceDestroyed(AndroidVideoWindowImpl vw) {
|
public void onVideoPreviewSurfaceDestroyed(AndroidVideoWindowImpl vw) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,7 +80,6 @@ class LinphoneCallImpl implements LinphoneCall {
|
||||||
public void enableCamera(boolean enabled) {
|
public void enableCamera(boolean enabled) {
|
||||||
enableCamera(nativePtr, enabled);
|
enableCamera(nativePtr, enabled);
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public boolean cameraEnabled() {
|
public boolean cameraEnabled() {
|
||||||
return cameraEnabled(nativePtr);
|
return cameraEnabled(nativePtr);
|
||||||
}
|
}
|
||||||
|
@ -127,4 +126,8 @@ class LinphoneCallImpl implements LinphoneCall {
|
||||||
public boolean areStreamsEncrypted() {
|
public boolean areStreamsEncrypted() {
|
||||||
return areStreamsEncrypted(nativePtr);
|
return areStreamsEncrypted(nativePtr);
|
||||||
}
|
}
|
||||||
|
public boolean isInConference() {
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,7 @@ package org.linphone.core;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.util.List;
|
||||||
import java.util.Vector;
|
import java.util.Vector;
|
||||||
|
|
||||||
import org.linphone.LinphoneManager;
|
import org.linphone.LinphoneManager;
|
||||||
|
@ -491,16 +492,58 @@ class LinphoneCoreImpl implements LinphoneCore {
|
||||||
public void enableEchoLimiter(boolean val) {
|
public void enableEchoLimiter(boolean val) {
|
||||||
enableEchoLimiter(nativePtr,val);
|
enableEchoLimiter(nativePtr,val);
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public void setVideoDevice(int id) {
|
public void setVideoDevice(int id) {
|
||||||
Log.i("Setting camera id :", id);
|
Log.i("Setting camera id :", id);
|
||||||
if (setVideoDevice(nativePtr, id) != 0) {
|
if (setVideoDevice(nativePtr, id) != 0) {
|
||||||
Log.e("Failed to set video device to id:", id);
|
Log.e("Failed to set video device to id:", id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public int getVideoDevice() {
|
public int getVideoDevice() {
|
||||||
return getVideoDevice(nativePtr);
|
return getVideoDevice(nativePtr);
|
||||||
}
|
}
|
||||||
|
public void addAllToConference() {
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
|
}
|
||||||
|
public void addToConference(LinphoneCall call) {
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
|
}
|
||||||
|
public void enterConference() {
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
|
}
|
||||||
|
public List getCalls() {
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
public int getCallsNb() {
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
public int getConferenceSize() {
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
public boolean isInConference() {
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
public void leaveConference() {
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
|
}
|
||||||
|
public void removeFromConference(LinphoneCall call) {
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
|
}
|
||||||
|
public void terminateAllCalls() {
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
|
}
|
||||||
|
public void terminateConference() {
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit b6a5ffcec94e10b026982fbccc29031e811c519c
|
Subproject commit ce9780dcb8114a3d4def3ed14fbb129ff786fba2
|
Loading…
Reference in a new issue