PortSIP VoIP SDK Manual for Android  16.2
PortSIP features our newest, supported, quality-assured VoIP SDK used by Several hundred companies around the world for easy VoIP application develop and quality-assured code.
Classes | Public Member Functions | Public Attributes | List of all members
com.portsip.PortSIPVideoRenderer Class Reference

Inherits SurfaceViewRenderer.

Classes

enum  ScalingType
 

Public Member Functions

 PortSIPVideoRenderer (Context context)
 
 PortSIPVideoRenderer (Context context, AttributeSet attrs)
 
void setScalingType (ScalingType scalingType)
 
void release ()
 
void surfaceDestroyed (SurfaceHolder holder)
 
void renderFrame (VideoRenderer.I420Frame frame)
 

Public Attributes

long nativeVideoRenderer = 0
 

Detailed Description

Display the video stream on a SurfaceView.

Constructor & Destructor Documentation

◆ PortSIPVideoRenderer() [1/2]

com.portsip.PortSIPVideoRenderer.PortSIPVideoRenderer ( Context  context)

Standard View constructor. In order to render something, you must first call init().

◆ PortSIPVideoRenderer() [2/2]

com.portsip.PortSIPVideoRenderer.PortSIPVideoRenderer ( Context  context,
AttributeSet  attrs 
)

Standard View constructor. In order to render something, you must first call init().

Member Function Documentation

◆ release()

void com.portsip.PortSIPVideoRenderer.release ( )

Block until any pending frame is returned and all GL resources released, even if an interrupt occurs. If an interrupt occurs during release(), the interrupt flag will be set. This function should be called before the Activity is destroyed and the EGLContext is still valid. If you don't call this function, the GL resources might leak.


The documentation for this class was generated from the following file: