com.cisco.jabber.guest.sdk.PreviewView Class Reference

A view that represents the local user's video before a call is placed. More...

Inheritance diagram for com.cisco.jabber.guest.sdk.PreviewView:
com.cisco.jabber.guest.sdk.BaseTextureViewLayout com.cisco.jabber.guest.sdk.RenderCallbacks

Public Member Functions

 PreviewView (Context context)
 Construct a new PreviewView. More...
 
 PreviewView (Context context, AttributeSet attrs)
 Construct a new PreviewView. More...
 
 PreviewView (Context context, AttributeSet attrs, int defStyle)
 Construct a new PreviewView. More...
 
void onFirstFrame ()
 Called when the first frame is delivered to the TextureView.
 
void onFramesDropped ()
 Called when frames are no longer being delivered to the TextureView.
 
void onFramesResumed ()
 Called when frames have resumed being delivered to the TextureView.
 
void setProgressBarVisibility (int visibility)
 Controls whether or not the indefinite progress bar is visible or not for this PreviewView. More...
 
void onFrameSizeChanged (int width, int height)
 Called when the size of the frames being delivered to the TextureView has changed. More...
 
- Public Member Functions inherited from com.cisco.jabber.guest.sdk.BaseTextureViewLayout
 BaseTextureViewLayout (Context context, int layout)
 Construct a new BaseTextureViewLayout. More...
 
 BaseTextureViewLayout (Context context, AttributeSet attrs, int layout)
 Construct a new BaseTextureViewLayout. More...
 
 BaseTextureViewLayout (Context context, AttributeSet attrs, int defStyle, int layout)
 Construct a new BaseTextureViewLayout. More...
 
TextureView getTextureView ()
 Gets the TextureView contained within this view. More...
 
void onFramesDropped ()
 Called when frames are no longer being delivered to the TextureView.
 
void onFramesResumed ()
 Called when frames have resumed being delivered to the TextureView.
 
void onFrameSizeChanged (int width, int height)
 Called when the size of the frames being delivered to the TextureView has changed. More...
 
void onFirstFrame ()
 Called when the first frame is delivered to the TextureView.
 

Protected Member Functions

void resetSelfTextureView ()
 This function is called when the TextureView contained in this PreviewView needs to be reset, for example when the app is returning from the background to the foreground.
 
- Protected Member Functions inherited from com.cisco.jabber.guest.sdk.BaseTextureViewLayout
void processNewInstanceAvailable (Intent intent)
 This function is called from the internal registered BroadcastReceiver whenever this view receives notification from JabberGuestCall that there is a new instance of this class available. More...
 
void processCallStateChanged (Intent intent)
 This function is called from the internal registered BroadcastReceiver whenever this view receives notification from JabberGuestCall that a call state change has taken place on the current instance of JabberGuestCall. More...
 
void processCallControlEvent (Intent intent)
 This function is called from the internal registered BroadcastReceiver whenever this view receives notification from JabberGuestCall that a call control event has taken place on the current instance of JabberGuestCall. More...
 
void processCallErrorEvent (Intent intent)
 This function is called from the internal registered BroadcastReceiver whenever this view receives notification from JabberGuestCall that a call error event has taken place on the current instance of JabberGuestCall. More...
 
JabberGuestCall getJabberGuestCallFromReference ()
 Returns the current JabberGuestCall instance from the internal WeakReference stored by this view if it exists. More...
 

Additional Inherited Members

- Protected Attributes inherited from com.cisco.jabber.guest.sdk.BaseTextureViewLayout
WeakReference< JabberGuestCallmJabberCallReference = null
 Stores a WeakReference to the current JabberGuestCall instance during a call.
 
BroadcastReceiver mBroadcastReceiver
 Broadcast Receiver that is registered to JabberGuestCall instance in order to receive notifications. More...
 
TextureView mTextureView = null
 Represents the contained TextureView in this BaseTextureViewLayout class.
 
int mFrameWidth = 0
 The current frame width received from the internal media engine for this view.
 
int mFrameHeight = 0
 The current frame height received from the internal media engine for this view.
 
int mMaxWidth = Integer.MAX_VALUE
 The maximum allowable frame width for this view.
 
int mMaxHeight = Integer.MAX_VALUE
 The maximum allowable frame height for this view.
 

Detailed Description

A view that represents the local user's video before a call is placed.

Constructor & Destructor Documentation

com.cisco.jabber.guest.sdk.PreviewView.PreviewView ( Context  context)
inline

Construct a new PreviewView.

Parameters
contextThe Context the view is running in, through which it can access the current theme, resources, etc.
com.cisco.jabber.guest.sdk.PreviewView.PreviewView ( Context  context,
AttributeSet  attrs 
)
inline

Construct a new PreviewView.

Parameters
contextThe Context the view is running in, through which it can access the current theme, resources, etc.
attrsThe attributes of the XML tag that is inflating the view.
com.cisco.jabber.guest.sdk.PreviewView.PreviewView ( Context  context,
AttributeSet  attrs,
int  defStyle 
)
inline

Construct a new PreviewView.

Parameters
contextThe Context the view is running in, through which it can access the current theme, resources, etc.
attrsThe attributes of the XML tag that is inflating the view.
defStyleAn attribute in the current theme that contains a reference to a style resource that supplies default values for the view. Can be 0 to not look for defaults.

Member Function Documentation

void com.cisco.jabber.guest.sdk.PreviewView.onFrameSizeChanged ( int  width,
int  height 
)
inline

Called when the size of the frames being delivered to the TextureView has changed.

Parameters
widthThe new width of the received frames.
heightThe new height of the received frames.

Implements com.cisco.jabber.guest.sdk.RenderCallbacks.

void com.cisco.jabber.guest.sdk.PreviewView.setProgressBarVisibility ( int  visibility)
inline

Controls whether or not the indefinite progress bar is visible or not for this PreviewView.

Parameters
visibilityAn android.view.View constant controlling the visibility of the indefinite progress bar (VISIBLE, GONE, etc.).