diff options
Diffstat (limited to 'java/com/android/incallui/videotech')
4 files changed, 23 insertions, 0 deletions
diff --git a/java/com/android/incallui/videotech/VideoTech.java b/java/com/android/incallui/videotech/VideoTech.java index e3753bc65..410c35762 100644 --- a/java/com/android/incallui/videotech/VideoTech.java +++ b/java/com/android/incallui/videotech/VideoTech.java @@ -39,6 +39,14 @@ public interface VideoTech { boolean shouldUseSurfaceView(); + /** + * Returns true if the video is paused. This is different than if the video stream has been turned + * off. + * + * <p>See {@link #isTransmitting()} + */ + boolean isPaused(); + VideoCallScreenDelegate createVideoCallScreenDelegate( Context context, VideoCallScreen videoCallScreen); diff --git a/java/com/android/incallui/videotech/empty/EmptyVideoTech.java b/java/com/android/incallui/videotech/empty/EmptyVideoTech.java index 76766dfe8..f156a14ad 100644 --- a/java/com/android/incallui/videotech/empty/EmptyVideoTech.java +++ b/java/com/android/incallui/videotech/empty/EmptyVideoTech.java @@ -49,6 +49,11 @@ public class EmptyVideoTech implements VideoTech { } @Override + public boolean isPaused() { + return false; + } + + @Override public VideoCallScreenDelegate createVideoCallScreenDelegate( Context context, VideoCallScreen videoCallScreen) { throw Assert.createUnsupportedOperationFailException(); diff --git a/java/com/android/incallui/videotech/ims/ImsVideoTech.java b/java/com/android/incallui/videotech/ims/ImsVideoTech.java index c12474dc3..0ef07d667 100644 --- a/java/com/android/incallui/videotech/ims/ImsVideoTech.java +++ b/java/com/android/incallui/videotech/ims/ImsVideoTech.java @@ -108,6 +108,11 @@ public class ImsVideoTech implements VideoTech { } @Override + public boolean isPaused() { + return paused; + } + + @Override public VideoCallScreenDelegate createVideoCallScreenDelegate( Context context, VideoCallScreen videoCallScreen) { // TODO move creating VideoCallPresenter here diff --git a/java/com/android/incallui/videotech/lightbringer/LightbringerTech.java b/java/com/android/incallui/videotech/lightbringer/LightbringerTech.java index 4b6f5ec5a..1ddf3716e 100644 --- a/java/com/android/incallui/videotech/lightbringer/LightbringerTech.java +++ b/java/com/android/incallui/videotech/lightbringer/LightbringerTech.java @@ -104,6 +104,11 @@ public class LightbringerTech implements VideoTech, LightbringerListener { } @Override + public boolean isPaused() { + return false; + } + + @Override public VideoCallScreenDelegate createVideoCallScreenDelegate( Context context, VideoCallScreen videoCallScreen) { throw Assert.createUnsupportedOperationFailException(); |