Package com.banuba.sdk.output
Class ViewOutput
java.lang.Object
com.banuba.sdk.player.VerifyCloseable
com.banuba.sdk.output.ViewOutput
- All Implemented Interfaces:
- IOutput,- Closeable,- AutoCloseable
- Direct Known Subclasses:
- SurfaceOutput,- TextureOutput
Displaying the result of work 
Player on the view- 
Field SummaryFields inherited from class com.banuba.sdk.player.VerifyCloseablemIsClosed, mTag
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()protected abstract WindowSurfacecreateWindowSurface(EglCore eglCore) Сreates and configures a unique WindowSurfaceprotected voiddestroy()Destroy the WindowSurface and remove callbackprotected abstract voiddestroyWindowSurface(WindowSurface windowSurface) Destroys the given WindowSurfaceprotected abstract android.graphics.RectRetrieve the current size of the surfaceprotected abstract booleanCheck if surface is availablevoidpresent(IRenderTargetPresentable renderTarget) Presenting the processed frame to the surfacevoidsetContentMode(ContentMode contentMode) By default the content mode is set to ASPECT_FILLvoidstart()Start using output by thePlayervoidstop()Stop using output by thePlayerMethods inherited from class com.banuba.sdk.player.VerifyCloseablefinalize
- 
Constructor Details- 
ViewOutput
 
- 
- 
Method Details- 
setContentModeBy default the content mode is set to ASPECT_FILL- Parameters:
- contentMode- rendering logic when the size of the surface and size of the frame are different
- See Also:
 
- 
presentPresenting the processed frame to the surface
- 
isSurfaceAvailableprotected abstract boolean isSurfaceAvailable()Check if surface is available- Returns:
- true if surface holds a physical surface
 
- 
createWindowSurfaceСreates and configures a unique WindowSurface- Parameters:
- eglCore- EGL state
- Returns:
- a new instance of the WindowSurface
 
- 
destroyWindowSurfaceDestroys the given WindowSurface- Parameters:
- windowSurface- surface to be destroyed
 
- 
getSurfaceFrameprotected abstract android.graphics.Rect getSurfaceFrame()Retrieve the current size of the surface- Returns:
- Rect the surface's dimensions
 
- 
destroyprotected void destroy()Destroy the WindowSurface and remove callback
- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- VerifyCloseable
 
- 
startpublic void start()Description copied from interface:IOutputStart using output by thePlayer
- 
stoppublic void stop()Description copied from interface:IOutputStop using output by thePlayer
 
-