public class FlowplayerSupportFragment
A simple way of adding Flowplayer in an application. This fragment is a wrapper around class FlowplayerView
and handles automatically lifecycle events and orientation changes.
It extends the support library's Fragment and it's therefore assumed that the container activity inherits (directly or indirectly) from
AppCompatActivity.
class FlowplayerView
,
Fragment,
AppCompatActivityModifier and Type | Class and Description |
---|---|
static class |
FlowplayerSupportFragment.Companion |
Modifier and Type | Field and Description |
---|---|
static FlowplayerSupportFragment.Companion |
Companion |
Constructor and Description |
---|
FlowplayerSupportFragment()
A simple way of adding Flowplayer in an application. This fragment is a wrapper around
class FlowplayerView and handles automatically lifecycle events and orientation changes.
It extends the support library's Fragment and it's therefore assumed that the container activity inherits (directly or indirectly) from
AppCompatActivity. |
Modifier and Type | Method and Description |
---|---|
FlowplayerView |
getPlayer()
Returns the instance of
class FlowplayerView that is used in this fragment. |
void |
onAttach(android.content.Context context) |
void |
onConfigurationChanged(android.content.res.Configuration newConfig) |
void |
onCreate(android.os.Bundle savedInstanceState) |
android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState) |
void |
onPause() |
void |
onResume() |
void |
setForceFullscreenOnLandscape(boolean forceFullscreenOnLandscape)
If set to true, the player will automatically enter fullscreen whenever the device is rotated to landscape and it will exit from fullscreen when the device is rotated to portrait.
This will also set
FlowplayerView.setFullscreenControlOrientation to true. |
public static FlowplayerSupportFragment.Companion Companion
public FlowplayerSupportFragment()
A simple way of adding Flowplayer in an application. This fragment is a wrapper around class FlowplayerView
and handles automatically lifecycle events and orientation changes.
It extends the support library's Fragment and it's therefore assumed that the container activity inherits (directly or indirectly) from
AppCompatActivity.
class FlowplayerView
,
Fragment,
AppCompatActivity@NotNull public FlowplayerView getPlayer()
Returns the instance of class FlowplayerView
that is used in this fragment.
class FlowplayerView
public void setForceFullscreenOnLandscape(boolean forceFullscreenOnLandscape)
If set to true, the player will automatically enter fullscreen whenever the device is rotated to landscape and it will exit from fullscreen when the device is rotated to portrait.
This will also set FlowplayerView.setFullscreenControlOrientation
to true.
forceFullscreenOnLandscape
- Whether or not to force fullscreen on landscape. The default value is true.FlowplayerView.setFullscreenControlOrientation
public void onAttach(@NotNull android.content.Context context)
public void onCreate(@Nullable android.os.Bundle savedInstanceState)
@Nullable public android.view.View onCreateView(@NotNull android.view.LayoutInflater inflater, @Nullable android.view.ViewGroup container, @Nullable android.os.Bundle savedInstanceState)
public void onConfigurationChanged(@NotNull android.content.res.Configuration newConfig)
public void onResume()
public void onPause()