public abstract class

VideoView

extends FrameLayout
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.FrameLayout
         ↳ com.glia.androidsdk.comms.VideoView

Class Overview

A view that renders video stream.

Ensure to call release() once the view is not used anymore, for example when activity is destroyed or video communication has ended.

It is also recommended to call to call pauseRendering(), resumeRendering() on related lifecycle methods of your Activity/Fragment to improve your app performance.

Summary

Nested Classes
enum VideoView.ScalingType Contains types of video scaling that can be applied to VideoView  
[Expand]
Inherited Constants
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
VideoView(Context context)
Public Methods
abstract void pauseRendering()
Stops video rendering.
abstract void release()
Required to be called to release used memory.
abstract void resumeRendering()
Resumes video rendering.
abstract void setGravity(int gravity)
The gravity to apply to the video position inside this view.
abstract void setScalingType(VideoView.ScalingType scalingType)
Changes how video is displayed inside this view by applying different scaling options.
abstract void setZOrderMediaOverlay(boolean isMediaOverlay)
Controls whether the video view's surface is placed on top of another regular surface view in the window (but still behind the window itself).
[Expand]
Inherited Methods
From class android.widget.FrameLayout
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.ViewManager
From interface android.view.ViewParent
From interface android.view.accessibility.AccessibilityEventSource

Public Constructors

public VideoView (Context context)

Public Methods

public abstract void pauseRendering ()

Stops video rendering.

public abstract void release ()

Required to be called to release used memory. Be sure to call this on your Activity/Fragment `onDestroy` method.

public abstract void resumeRendering ()

Resumes video rendering.

public abstract void setGravity (int gravity)

The gravity to apply to the video position inside this view.

The default value is CENTER

Parameters
gravity see Gravity for possible values

public abstract void setScalingType (VideoView.ScalingType scalingType)

Changes how video is displayed inside this view by applying different scaling options.

Default behavior is ASPECT_FILL

Parameters
scalingType see VideoView.ScalingType for possible values

public abstract void setZOrderMediaOverlay (boolean isMediaOverlay)

Controls whether the video view's surface is placed on top of another regular surface view in the window (but still behind the window itself). This is typically used to place overlays on top of an underlying media surface view.

Note that this must be set before the surface view's containing window is attached to the window manager.