Class VdoPlayerFragment
- 
                    
                    - All Implemented Interfaces:
- 
                            
                            android.content.ComponentCallbacks,android.content.ComponentCallbacks2,android.view.View.OnCreateContextMenuListener,com.vdocipher.aegis.player.PlayerHost
 
 @Deprecated() public final class VdoPlayerFragment extends Fragment implements PlayerHost A VdoPlayerFragment hosts a VdoPlayer for media playback. It can be dropped into your activity layout and initialized using initialize to obtain a VdoPlayer instance. 
- 
                
                    
                    - 
                                
                            
                                Field SummaryFields Modifier and Type Field Description public intvideoStretchMode
 - 
                                
                            
                                Constructor SummaryConstructors Constructor Description VdoPlayerFragment()
 - 
                                
                            
                                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. voidonAttach(Context context)voidonCreate(Bundle savedInstanceState)ViewonCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)voidonActivityCreated(Bundle savedInstanceState)voidonViewStateRestored(Bundle savedInstanceState)voidonStart()voidonResume()voidonPause()voidonSaveInstanceState(Bundle outState)voidonStop()voidonDestroyView()voidonDestroy()voidonDetach()voidsetAspectRatio(float widthToHeightRatio)Set aspect ratio for the fragment view. 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. - 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        getVideoStretchModeint getVideoStretchMode() Return currently set video stretch mode. 
 - 
                                        setVideoStretchModevoid setVideoStretchMode(int videoStretchMode) Set stretch mode for video scaling inside the fragment layout. - Parameters:
- videoStretchMode- one of PlayerHost.
 
 - 
                                        onCreateViewView onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) 
 - 
                                        onActivityCreatedvoid onActivityCreated(Bundle savedInstanceState) 
 - 
                                        onViewStateRestoredvoid onViewStateRestored(Bundle savedInstanceState) 
 - 
                                        onStartvoid onStart() 
 - 
                                        onResumevoid onResume() 
 - 
                                        onPausevoid onPause() 
 - 
                                        onSaveInstanceStatevoid onSaveInstanceState(Bundle outState) 
 - 
                                        onStopvoid onStop() 
 - 
                                        onDestroyViewvoid onDestroyView() 
 - 
                                        onDestroyvoid onDestroy() 
 - 
                                        onDetachvoid onDetach() 
 - 
                                        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
 
 - 
                                        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. 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-