Click or drag to resize
MediaPlayer Methods

The MediaPlayer type exposes the following members.

Methods
  NameDescription
Public methodadapterForType
Returns an object of the specified type, if such an object is currently registered in the default group.
(Inherited from KRHub.)
Public methodadapterForTypeInGroup
Returns an object of the specified type, if such an object is currently registered in the specified group.
(Inherited from KRHub.)
Public methodadaptersForGroup
Returns the list of available registered objects for a specified group.
(Inherited from KRHub.)
Public methodaddTrackingEventHandler
Public methodback
Proceeds to the previous unit in the playlist.
Public methodcontrolsOverlay
Public methodcreateTimer
Public methodcurrentPlaybackTime
Returns the current playback time.
Public methodcurrentPlaybackTime(Boolean)
Returns the current playback time.
Public methodcurrentUnit
Returns the currently playing MediaUnit.
Public methodduration
Public methoddurationAvailable
Public methodemitEvent
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodfinish
Public methodgetCurrentPlayingUrl
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodStatic membergetInstance
Public methodgetMainView
The container UIElement of the player.
Public methodgetOverlayContainer
Public methodgetPage
Public methodgetPlaylist
Public methodgetRendererView
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodhideHud
Hides the player activity indicator.
Public methodinit
Public methodisFullscreen
Public methodisMediaEvent
Public methodisMediaUnit
Public methodisPlaying
Returns a bool value specifing if the player is currently playing a playlist of units (read-only).
Public methodisProcessing
Returns a Boolean value specifing if the player is currently rendering a playlist of units (read-only).
Public methodisStreamingUrl
Public methodloadStatePlayable
Checks the state of the unit to be played
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodmovieSourceTypeIsLiveStream
Public methodnext
Proceeds to the next unit in the playlist and sends an exit event.
Public methodopenURL
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.
Public methodpause
Pauses playback of the current unit.
Public methodperformPostTapAction
Call this method in the onActivityResult callback of the activity linked to the player.
Public methodplay
Starts playback of the current unit.
Public methodplaybackState
Returns the current unit's playback state.
Public methodplaybackStateChanged
Public methodplayer
Public methodplayMediaUnits
Sets and begins playback of an list of MediaUnit.
Public methodplayVideo
Public methodregisterAdapter
Registers a new adapter to the default group.
(Inherited from KRHub.)
Public methodregisterAdapterInGroup
Registers a new adapter to a specific group
(Inherited from KRHub.)
Public methodregisterClass
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.)
Public methodregisterClassInGroup
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.)
Public methodremoveMediaUnits
Public methodremoveTrackingEventHandler
Public methodresetDisplayedOverlays
Public methodresumePlay
Resumes playback of the current unit.
Public methodseekTo
Sets the current playback time. (In miliseconds)
Public methodsetMediaUnits
Sets new units to the playlist, clearing any old ones.
Public methodsetSize
Public methodshouldAutoplay
Checks if currentUnit is not null
Public methodshowHud
Shows the player activity indicator.
Public methodskip
Proceeds to the next unit in the playlist and sends a skip event.
Public methodstartVideoPlayback
Public methodstep
Public methodstop
Stops playback of the current unit.
Public methodtoggleFullscreen
Toggle the current fullscreen status
Public methodtogglePlayback
Toggles playback of the current unit.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodunitFinished
Public methodupdateDisplayedOverlays
Public methodupdateOverlay
Top
See Also