Package org.linphone.mediastream.video
Class AndroidVideoWindowImpl
java.lang.Object
org.linphone.mediastream.video.AndroidVideoWindowImpl
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Utility listener interface providing callback for Android events useful to Mediastreamer. -
Constructor Summary
ConstructorDescriptionAndroidVideoWindowImpl
(android.view.SurfaceView renderingSurface, android.view.SurfaceView previewSurface) Deprecated.Use the new constructor insteadAndroidVideoWindowImpl
(android.view.SurfaceView renderingSurface, android.view.SurfaceView previewSurface, AndroidVideoWindowImpl.VideoWindowListener listener) Constructor -
Method Summary
Modifier and TypeMethodDescriptionandroid.graphics.Bitmap
android.view.SurfaceView
android.view.Surface
void
init()
Deprecated.It is now automatically called by the new constructorvoid
release()
void
static int
rotationToAngle
(int r) void
Deprecated.Specify pass a listener to the constructor instead.void
setOpenGLESDisplay
(long ptr) void
update()
-
Constructor Details
-
AndroidVideoWindowImpl
public AndroidVideoWindowImpl(android.view.SurfaceView renderingSurface, android.view.SurfaceView previewSurface, AndroidVideoWindowImpl.VideoWindowListener listener) Constructor- Parameters:
renderingSurface
- Surface created by the application that will be used to render decoded video streampreviewSurface
- Surface created by the application used by Android's Camera preview frameworklistener
- Specified a listener. null is accepted
-
AndroidVideoWindowImpl
public AndroidVideoWindowImpl(android.view.SurfaceView renderingSurface, android.view.SurfaceView previewSurface) Deprecated.Use the new constructor instead- Parameters:
renderingSurface
- Surface created by the application that will be used to render decoded video streampreviewSurface
- Surface created by the application used by Android's Camera preview framework
-
-
Method Details
-
init
public void init()Deprecated.It is now automatically called by the new constructor -
release
public void release() -
setListener
Deprecated.Specify pass a listener to the constructor instead.Set a listener- Parameters:
l
- A listener
-
getSurface
public android.view.Surface getSurface() -
getPreviewSurfaceView
public android.view.SurfaceView getPreviewSurfaceView() -
getBitmap
public android.graphics.Bitmap getBitmap() -
setOpenGLESDisplay
public void setOpenGLESDisplay(long ptr) -
requestRender
public void requestRender() -
update
public void update() -
rotationToAngle
public static int rotationToAngle(int r)
-