PlayerJS class

Annotations
  • @JS('Player')

Constructors

PlayerJS(MediaElement element, [Function? dependencyInjector])

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
version String
no setter

Methods

addChaptersTrack(String uri, String language, [String? mimeType]) JSPromise<JSAny?>
addEventListener(String event, Function callback) → void
addTextTrackAsync(String uri, String language, String kind, [bool? mimeType, bool? codec, bool? label, bool? forced]) JSPromise<JSAny?>
addThumbnailsTrack(String uri, [String? mimeType]) JSPromise<JSAny?>
attach(MediaElement mediaElement, [bool? initializeMediaSource]) JSPromise<JSAny?>
attachCanvas(CanvasElement canvas) → void
cancelTrickPlay() → void
configure(dynamic config, [dynamic value]) bool
destroy() JSPromise<JSAny?>
detach() JSPromise<JSAny?>
drmInfo() DrmInfo
getActiveSessionsMetadata() List
getAdManager() → dynamic
getAssetUri() String
getAudioLanguages() List
getAudioLanguagesAndRoles() List
getBufferedInfo() BufferedInfo
getBufferFullness() num
getChapters(String language) List
getChaptersTracks() List
getConfiguration() PlayerConfiguration
getExpiration() num
getImageTracks() List
getKeyStatuses() Map<String, String>
getLoadMode() num
getManifest() Manifest
getManifestParserFactory() JsFunction
JsFunction is shaka.extern.ManifestParser.Factory
getManifestType() String
getMediaElement() MediaElement
getNetworkingEngine() NetworkingEngineJS
getPlaybackRate() num
getPlayheadTimeAsDate() DateTime
getPresentationStartTimeAsDate() DateTime
getStats() Stats
getTextLanguages() List
getTextLanguagesAndRoles() List
getTextTracks() List
getThumbnails(num trackId, num time) JSPromise<JSAny?>
getVariantTracks() List
goToLive() → void
isAudioOnly() bool
isBuffering() bool
isInProgress() bool
isLive() bool
isTextTrackVisible() bool
keySystem() String
load(String assetUri, [num? startTile, String? mimeType]) JSPromise<JSAny?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
probeSupport(bool promptsOkay) SupportType
registerSupportPlugin(String name, JsFunction callback) → void
resetConfiguration() → void
retryStreaming([num? retryDelaySeconds]) bool
seekRange() Map<String, num>
selectAudioLanguage(String language, [String? role, num? channelsCount, num? safeMargin]) → void
selectTextLanguage(String language, [String? role, bool? forced]) → void
selectTextTrack(Track language) → void
selectVariantsByLabel(String label, [bool? clearBuffer, num? safeMargin]) → void
selectVariantTrack(Track track, [bool? clearBuffer, num? safeMargin]) → void
setAdManagerFactory(JsFunction factory) → void
JsFunction is shaka.extern.IAdManager.Factory
setMaxHardwareResolution(num width, num height) → void
setTextTrackVisibility(bool isVisible) → void
setVideoContainer(Element videoContainer) → void
toString() String
A string representation of this object.
inherited
trickPlay(num rate) → void
unload([bool? initializeMediaSource]) JSPromise<JSAny?>
updateStartTime(num startTime) → void

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

LoadMode num
no setter

Static Methods

isBrowserSupported() bool