Package com.brightcove.player.view
Class BrightcovePlayerFragment
- java.lang.Object
-
- android.app.Fragment
-
- com.brightcove.player.view.BrightcovePlayerFragment
-
- All Implemented Interfaces:
android.content.ComponentCallbacks
,android.content.ComponentCallbacks2
,android.view.View.OnCreateContextMenuListener
@ListensFor(events="fragmentSaveInstanceState") public class BrightcovePlayerFragment extends android.app.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);
-
-
Field Summary
Fields Modifier and Type Field Description protected BaseVideoView
brightcoveVideoView
static java.lang.String
TAG
-
Constructor Summary
Constructors Constructor Description BrightcovePlayerFragment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fullScreen()
Expands the BrightcoveVideoView layout parameters to match the parent and hides the ActionBar.BaseVideoView
getBaseVideoView()
BrightcoveVideoView
getBrightcoveVideoView()
void
normalScreen()
Returns the BrightcoveVideoView to it's original layout parameters and restores the ActionBar.void
onActivityCreated(android.os.Bundle savedInstanceState)
android.view.View
onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
void
onDestroy()
void
onDestroyView()
void
onDetach()
void
onPause()
void
onPictureInPictureModeChanged(boolean isInPictureInPictureMode, android.content.res.Configuration newConfig)
void
onResume()
void
onSaveInstanceState(android.os.Bundle bundle)
void
onStart()
void
onStop()
void
onViewStateRestored(android.os.Bundle savedInstanceState)
-
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, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, hashCode, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isRemoving, isResumed, isStateSaved, isVisible, onActivityResult, onAttach, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreate, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroyOptionsMenu, onGetLayoutInflater, onHiddenChanged, onInflate, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPictureInPictureModeChanged, onPrepareOptionsMenu, onRequestPermissionsResult, onTrimMemory, onViewCreated, postponeEnterTransition, registerForContextMenu, requestPermissions, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivity, startActivityForResult, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu
-
-
-
-
Field Detail
-
TAG
public static final java.lang.String TAG
-
brightcoveVideoView
protected BaseVideoView brightcoveVideoView
-
-
Method Detail
-
getBrightcoveVideoView
public BrightcoveVideoView getBrightcoveVideoView()
-
getBaseVideoView
public BaseVideoView getBaseVideoView()
-
fullScreen
public void fullScreen()
Expands the BrightcoveVideoView layout parameters to match the parent and hides the ActionBar.
-
normalScreen
public void normalScreen()
Returns the BrightcoveVideoView to it's original layout parameters and restores the ActionBar.
-
onActivityCreated
public void onActivityCreated(android.os.Bundle savedInstanceState)
- Overrides:
onActivityCreated
in classandroid.app.Fragment
-
onCreateView
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
- Overrides:
onCreateView
in classandroid.app.Fragment
-
onStart
public void onStart()
- Overrides:
onStart
in classandroid.app.Fragment
-
onPause
public void onPause()
- Overrides:
onPause
in classandroid.app.Fragment
-
onResume
public void onResume()
- Overrides:
onResume
in classandroid.app.Fragment
-
onDestroy
public void onDestroy()
- Overrides:
onDestroy
in classandroid.app.Fragment
-
onDestroyView
public void onDestroyView()
- Overrides:
onDestroyView
in classandroid.app.Fragment
-
onDetach
public void onDetach()
- Overrides:
onDetach
in classandroid.app.Fragment
-
onStop
public void onStop()
- Overrides:
onStop
in classandroid.app.Fragment
-
onSaveInstanceState
public void onSaveInstanceState(android.os.Bundle bundle)
- Overrides:
onSaveInstanceState
in classandroid.app.Fragment
-
onViewStateRestored
public void onViewStateRestored(android.os.Bundle savedInstanceState)
- Overrides:
onViewStateRestored
in classandroid.app.Fragment
-
onPictureInPictureModeChanged
public void onPictureInPictureModeChanged(boolean isInPictureInPictureMode, android.content.res.Configuration newConfig)
- Overrides:
onPictureInPictureModeChanged
in classandroid.app.Fragment
-
-