MediaPlayer Methods |
The MediaPlayer type exposes the following members.
Name | Description | |
---|---|---|
adapterForType |
Returns an object of the specified type, if such an object is currently registered in the default group.
(Inherited from KRHub.) | |
adapterForTypeInGroup |
Returns an object of the specified type, if such an object is currently registered in the specified group.
(Inherited from KRHub.) | |
adaptersForGroup |
Returns the list of available registered objects for a specified group.
(Inherited from KRHub.) | |
addTrackingEventHandler | ||
back |
Proceeds to the previous unit in the playlist.
| |
controlsOverlay | ||
createTimer | ||
currentPlaybackTime |
Returns the current playback time.
| |
currentPlaybackTime(Boolean) |
Returns the current playback time.
| |
currentUnit |
Returns the currently playing MediaUnit.
| |
duration | ||
durationAvailable | ||
emitEvent | ||
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
finish | ||
getCurrentPlayingUrl | ||
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
getInstance | ||
getMainView |
The container UIElement of the player.
| |
getOverlayContainer | ||
getPage | ||
getPlaylist | ||
getRendererView | ||
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
hideHud |
Hides the player activity indicator.
| |
init | ||
isFullscreen | ||
isMediaEvent | ||
isMediaUnit | ||
isPlaying |
Returns a bool value specifing if the player is currently playing a playlist of units (read-only).
| |
isProcessing |
Returns a Boolean value specifing if the player is currently rendering a playlist of units (read-only).
| |
isStreamingUrl | ||
loadStatePlayable |
Checks the state of the unit to be played
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
movieSourceTypeIsLiveStream | ||
next |
Proceeds to the next unit in the playlist and sends an exit event.
| |
openURL |
Instructs the player that a new URL needs to be interpreted and executed. This method will first ask the actionDelegate to respond to the given URL. If the actionDelegate declines to respond and the URL has a web scheme (`http://� or 'https://') then an in-app web browser window will be displayed modally.
| |
pause |
Pauses playback of the current unit.
| |
performPostTapAction |
Call this method in the onActivityResult callback of the activity linked to the player.
| |
play |
Starts playback of the current unit.
| |
playbackState |
Returns the current unit's playback state.
| |
playbackStateChanged | ||
player | ||
playMediaUnits |
Sets and begins playback of an list of MediaUnit.
| |
playVideo | ||
registerAdapter |
Registers a new adapter to the default group.
(Inherited from KRHub.) | |
registerAdapterInGroup |
Registers a new adapter to a specific group
(Inherited from KRHub.) | |
registerClass |
Registers a class to the default group, under a specific type. Upon requesting a new object from this type from the default group, a new object of the registered class will be instantiated and returned.
(Inherited from KRHub.) | |
registerClassInGroup |
Registers a class to a specific group and a specific type. Upon requesting a new object from this group and type, a new object of the registered class will be instantiated and returned.
(Inherited from KRHub.) | |
removeMediaUnits | ||
removeTrackingEventHandler | ||
resetDisplayedOverlays | ||
resumePlay |
Resumes playback of the current unit.
| |
seekTo |
Sets the current playback time. (In miliseconds)
| |
setMediaUnits |
Sets new units to the playlist, clearing any old ones.
| |
setSize | ||
shouldAutoplay |
Checks if currentUnit is not null
| |
showHud |
Shows the player activity indicator.
| |
skip |
Proceeds to the next unit in the playlist and sends a skip event.
| |
startVideoPlayback | ||
step | ||
stop |
Stops playback of the current unit.
| |
toggleFullscreen |
Toggle the current fullscreen status
| |
togglePlayback |
Toggles playback of the current unit.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
unitFinished | ||
updateDisplayedOverlays | ||
updateOverlay |