Android SDK API Reference

Classes | Public Member Functions | Public Attributes | List of all members
io.skyway.Peer.Browser.Canvas Class Reference

A renderer view object that displays video. More...

Inheritance diagram for io.skyway.Peer.Browser.Canvas:

Classes

enum  ScalingEnum
 Scaling type enum. More...
 

Public Member Functions

 Canvas (Context context)
 
 Canvas (Context context, AttributeSet attrs)
 
 Canvas (Context context, AttributeSet attrs, int defStyleAttr)
 
void requestLayout ()
 
void addSrc (MediaStream stream, int trackNo)
 Add media stream and track no. More...
 
void removeSrc (MediaStream stream, int trackNo)
 Remove media stream and track no. More...
 
void setZOrderMediaOverlay (final boolean isMediaOverlay)
 setZOrderMediaOverlay More...
 
void setZOrderOnTop (final boolean onTop)
 setZOrderOnTop More...
 
void onFirstFrameRendered ()
 
void onFrameResolutionChanged (int videoWidth, int videoHeight, int rotation)
 

Public Attributes

boolean mirror
 View in mirror. More...
 
ScalingEnum scaling
 Scaling type.
 

Detailed Description

A renderer view object that displays video.

Constructor & Destructor Documentation

◆ Canvas() [1/3]

io.skyway.Peer.Browser.Canvas.Canvas ( Context  context)
Parameters
context

◆ Canvas() [2/3]

io.skyway.Peer.Browser.Canvas.Canvas ( Context  context,
AttributeSet  attrs 
)
Parameters
context
attrs

◆ Canvas() [3/3]

io.skyway.Peer.Browser.Canvas.Canvas ( Context  context,
AttributeSet  attrs,
int  defStyleAttr 
)
Parameters
context
attrs
defStyleAttr

Member Function Documentation

◆ addSrc()

void io.skyway.Peer.Browser.Canvas.addSrc ( MediaStream  stream,
int  trackNo 
)

Add media stream and track no.

Parameters
streamMedia stream.
trackNoVideo track number.
Deprecated:
use MediaStream::addVideoRenderer(Canvas, int)

◆ removeSrc()

void io.skyway.Peer.Browser.Canvas.removeSrc ( MediaStream  stream,
int  trackNo 
)

Remove media stream and track no.

Parameters
streamMedia stream.
trackNoVideo track number.
Deprecated:
use MediaStream::removeVideoRenderer(Canvas, int)

◆ setZOrderMediaOverlay()

void io.skyway.Peer.Browser.Canvas.setZOrderMediaOverlay ( final boolean  isMediaOverlay)

setZOrderMediaOverlay

Parameters
isMediaOverlayisMediaOverlay

◆ setZOrderOnTop()

void io.skyway.Peer.Browser.Canvas.setZOrderOnTop ( final boolean  onTop)

setZOrderOnTop

Parameters
onToponTop

Member Data Documentation

◆ mirror

boolean io.skyway.Peer.Browser.Canvas.mirror

View in mirror.

View in mirror.