Interface ShowHideController
- All Known Implementing Classes:
BrightcoveMediaController
,BrightcoveShowHideController
public interface ShowHideController
Defines the facilities for managing media controls visibility.
After showing or hiding media controls, a DID_SHOW_MEDIA_CONTROLS or DID_HIDE_MEDIA_CONTROLS SDK event will be
emitted with event properties containing the current animation style and timeout value.
To determine programmatically if the Brighcove media controls are being displayed, the isShowing() method can be
used.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Use a fading animation style whereby ...static final String
Use a sliding animation style whereby ...static final String
The name for the DID_SHOW_MEDIA_CONTROLS event's controls height property.static final String
Standard event type used to notify an app that media controls are hidden.static final String
Standard event type used to notify an app that media controls are showing.static final String
Standard event type used to emit and listen for hiding media controls.static final String
Event property key selecting an animation style, a String constant.static final String
Event property key specifying the Android resource identifiers to either show or hide.static final String
Event property key specifying delay (in milliseconds, default is three seconds) from showing to hiding the media controls.static final String
Standard event type used to emit and listen for showing media controls. -
Method Summary
-
Field Details
-
SHOW_MEDIA_CONTROLS
Standard event type used to emit and listen for showing media controls.- See Also:
-
HIDE_MEDIA_CONTROLS
Standard event type used to emit and listen for hiding media controls.- See Also:
-
DID_SHOW_MEDIA_CONTROLS
Standard event type used to notify an app that media controls are showing.- See Also:
-
DID_HIDE_MEDIA_CONTROLS
Standard event type used to notify an app that media controls are hidden.- See Also:
-
CONTROLS_HEIGHT
The name for the DID_SHOW_MEDIA_CONTROLS event's controls height property.- See Also:
-
SHOW_HIDE_ANIMATION_STYLE
Event property key selecting an animation style, a String constant. See the default supported styles below.- See Also:
-
SHOW_HIDE_TIMEOUT
Event property key specifying delay (in milliseconds, default is three seconds) from showing to hiding the media controls.- See Also:
-
SHOW_HIDE_RESOURCES
Event property key specifying the Android resource identifiers to either show or hide.- See Also:
-
ANIMATION_STYLE_FADE
Use a fading animation style whereby ...- See Also:
-
ANIMATION_STYLE_SLIDE
Use a sliding animation style whereby ...- See Also:
-
-
Method Details
-
show
void show()Shows the media controls. -
hide
void hide()Hides the media controls. -
isShowing
boolean isShowing()Determines whether or not the media controls are showing.- Returns:
TRUE
iff the media controls are showing, false otherwise.
-