Class VdoPlayerView
- 
                    
                    - All Implemented Interfaces:
- 
                            
                            android.graphics.drawable.Drawable.Callback,android.view.KeyEvent.Callback,android.view.ViewManager,android.view.ViewParent,android.view.accessibility.AccessibilityEventSource,com.vdocipher.aegis.player.PlayerHost
 
 public class VdoPlayerView extends AutoSizeFrameLayout implements PlayerHost 
- 
                
                    
                    - 
                                
                            
                                Field SummaryFields Modifier and Type Field Description public final static StringVDO_PLAYER_VIEW_IDpublic final static StringVDO_PLAYER_ANNOTATIONpublic final static StringVDO_PLAYER_ANNOTATION_FILTERpublic intvideoStretchModepublic intresizeMode
 - 
                                
                            
                                Constructor SummaryConstructors Constructor Description VdoPlayerView(Context context)VdoPlayerView(Context context, AttributeSet attributeSet)VdoPlayerView(Context context, AttributeSet attributeSet, int defStyleAttr)
 - 
                                
                            
                                Method SummaryModifier and Type Method Description intgetVideoStretchMode()Return currently set video stretch mode. voidsetVideoStretchMode(int videoStretchMode)Set stretch mode for video scaling inside the fragment layout. intgetResizeMode()Returns the resize mode. voidsetResizeMode(int resizeMode)Sets the resize mode. voiddisableAlbumArt()voidsetAlbumArt(@Nullable() String albumArtUrl, @Nullable() Uri albumArtUri)voidaddInitializationListener(PlayerHost.InitializationListener initListener)Register a listener for initialization callbacks from this PlayerHost voidremoveInitializationListener(PlayerHost.InitializationListener initListener)Remove a registered InitializationListener VdoPlayergetPlayer()Get the VdoPlayer hosted by this PlayerHost. voidinitialize(PlayerHost.InitializationListener listener)Initializes the PlayerHost with an InitializationListener to listen for initialization callbacks. voidsetAspectRatio(float widthToHeightRatio)Set aspect ratio for the fragment view. voidrestore(PlaybackState lastPlaybackState)voidresume()PlaybackStategetLastPlaybackState()voidpackUp()Internally releases the player without using the public release api, so it can be restored. voidreleasePlayer()Release exo player instance and saved data. voidpausePlayer()pause video - 
                    
                    
                    - 
                                
                            
                                Constructor Detail- 
                                        VdoPlayerViewVdoPlayerView(Context context) 
 - 
                                        VdoPlayerViewVdoPlayerView(Context context, AttributeSet attributeSet) 
 - 
                                        VdoPlayerViewVdoPlayerView(Context context, AttributeSet attributeSet, int defStyleAttr) 
 
- 
                                        
 - 
                                
                            
                                Method Detail- 
                                        getVideoStretchMode@Deprecated() int getVideoStretchMode() Return currently set video stretch mode. 
 - 
                                        setVideoStretchMode@Deprecated() void setVideoStretchMode(int videoStretchMode) Set stretch mode for video scaling inside the fragment layout. - Parameters:
- videoStretchMode- one of PlayerHost.
 
 - 
                                        getResizeModeint getResizeMode() Returns the resize mode. 
 - 
                                        setResizeModevoid setResizeMode(int resizeMode) Sets the resize mode. - Parameters:
- resizeMode- The resize mode.
 
 - 
                                        disableAlbumArtvoid disableAlbumArt() 
 - 
                                        setAlbumArtvoid setAlbumArt(@Nullable() String albumArtUrl, @Nullable() Uri albumArtUri) 
 - 
                                        addInitializationListenervoid addInitializationListener(PlayerHost.InitializationListener initListener) Register a listener for initialization callbacks from this PlayerHost - Parameters:
- initListener- listener for initialization callbacks
 
 - 
                                        removeInitializationListenervoid removeInitializationListener(PlayerHost.InitializationListener initListener) Remove a registered InitializationListener - Parameters:
- initListener- the listener to remove
 
 - 
                                        getPlayerVdoPlayer getPlayer() Get the VdoPlayer hosted by this PlayerHost. This may only be called after an onInitializationSuccess callback following initialize - Returns:
- VdoPlayer hosted by this PlayerHost 
 
 - 
                                        initializevoid initialize(PlayerHost.InitializationListener listener) Initializes the PlayerHost with an InitializationListener to listen for initialization callbacks. 
 - 
                                        setAspectRatiovoid setAspectRatio(float widthToHeightRatio) Set aspect ratio for the fragment view. The dimension (width or height) that is fixed in layout will be kept and the other dimension will be increased or decreased to match the aspect ratio. - Parameters:
- widthToHeightRatio- the desired aspect ratio
 
 - 
                                        restorevoid restore(PlaybackState lastPlaybackState) 
 - 
                                        resumevoid resume() 
 - 
                                        getLastPlaybackStatePlaybackState getLastPlaybackState() 
 - 
                                        packUpvoid packUp() Internally releases the player without using the public release api, so it can be restored. 
 - 
                                        releasePlayervoid releasePlayer() Release exo player instance and saved data. 
 - 
                                        pausePlayervoid pausePlayer() pause video 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-