-
- All Implemented Interfaces:
-
android.content.ComponentCallbacks
,android.content.ComponentCallbacks2
,android.view.View.OnCreateContextMenuListener
@ListensFor(events = {EventType.FRAGMENT_SAVE_INSTANCE_STATE}) public class BrightcovePlayerFragment extends Fragment
A Fragment with basic life cycle and full screen support. The onCreateView() should be extended to wire up the activity's layout to the brightcoveVideoView instance variable before calling super.onCreateView(). For example:
brightcoveVideoView = (BaseVideoView) findViewById(R.id.brightcove_video_view);
-
-
Method Summary
Modifier and Type Method Description BaseVideoView
getBaseVideoView()
void
fullScreen()
Expands the BrightcoveVideoView layout parameters to match the parent and hides the ActionBar. void
normalScreen()
Returns the BrightcoveVideoView to it's original layout parameters and restores the ActionBar. void
onActivityCreated(Bundle savedInstanceState)
View
onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
void
onStart()
void
onPause()
void
onResume()
void
onDestroy()
void
onDestroyView()
void
onDetach()
void
onStop()
void
onSaveInstanceState(Bundle bundle)
void
onViewStateRestored(Bundle savedInstanceState)
void
onPictureInPictureModeChanged(boolean isInPictureInPictureMode, Configuration newConfig)
-
Methods inherited from class android.app.Fragment
dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLayoutInflater, getLoaderManager, getParentFragment, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, hashCode, instantiate, isAdded, isDetached, isHidden, isInLayout, isRemoving, isResumed, isStateSaved, isVisible, onActivityCreated, onActivityResult, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreate, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onCreateView, onDestroy, onDestroyOptionsMenu, onDestroyView, onDetach, onGetLayoutInflater, onHiddenChanged, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPictureInPictureModeChanged, onPrepareOptionsMenu, onRequestPermissionsResult, onResume, onSaveInstanceState, onStart, onStop, onTrimMemory, onViewCreated, onViewStateRestored, postponeEnterTransition, registerForContextMenu, requestPermissions, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getBaseVideoView
BaseVideoView getBaseVideoView()
-
fullScreen
void fullScreen()
Expands the BrightcoveVideoView layout parameters to match the parent and hides the ActionBar.
-
normalScreen
void normalScreen()
Returns the BrightcoveVideoView to it's original layout parameters and restores the ActionBar.
-
onActivityCreated
void onActivityCreated(Bundle savedInstanceState)
-
onCreateView
View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
-
onStart
void onStart()
-
onPause
void onPause()
-
onResume
void onResume()
-
onDestroy
void onDestroy()
-
onDestroyView
void onDestroyView()
-
onDetach
void onDetach()
-
onStop
void onStop()
-
onSaveInstanceState
void onSaveInstanceState(Bundle bundle)
-
onViewStateRestored
void onViewStateRestored(Bundle savedInstanceState)
-
onPictureInPictureModeChanged
void onPictureInPictureModeChanged(boolean isInPictureInPictureMode, Configuration newConfig)
-
-
-
-