Property mapping

Review a table representing property mapping for Web SDK.

AMP1 propertyAMP2 accessStatusMigration notes
currentTimegetCurrentTime()/seek()AlternativeAMP1: property
AMP2: methods
absoluteCurrentTimegetCurrentTime()PartialAMP2 doesn't distinguish absolute vs transformed
durationgetDuration()AlternativeAMP1: property
AMP2: method
absoluteDurationgetDuration()PartialAMP2 doesn't distinguish absolute vs transformed
pausedisPaused()AlternativeAMP1: property
AMP2: method
endedhasEnded()AlternativeAMP1: property
AMP2: method with different name
seekingN/A✗ MissingMonitor seek/seeked events instead
waitingN/AAlternativeMonitor stallstarted/stallended events
bufferingN/AAlternativeMonitor stallstarted/stallended events
isLiveisLive()✓ CompatibleDirect mapping
errorN/AAlternativeMonitor error events instead
mouseOverN/A✗ MissingHandle with DOM events on container
mouseXN/A✗ MissingHandle with DOM events on container
mouseYN/A✗ MissingHandle with DOM events on container
volumegetVolume()/setVolume()AlternativeAMP1: 0-1 scale property
AMP2: 0-100 scale methods
mutedisMuted()/mute()/unmute()AlternativeAMP1: property
AMP2: separate methods
playbackRategetPlaybackSpeed()/setPlaybackSpeed()AlternativeAMP1: property
AMP2: methods
autoplayN/AAlternativeSet in player config only
loopN/AAlternativeSet in player config only
controlsN/AAlternativeSet in UI config only
hiddenN/AAlternativeControl via CSS display property
languageN/AAlternativeSet in UI config as locale
busyN/A✗ MissingHandle via custom UI implementation
srcload()AlternativeAMP1: property,
AMP2: method with source object
sourceload()AlternativeDifferent structure. Use source object.
mediaload()AlternativeAMP1: uses media object
AMP2: uses source object
mediaElementN/AAlternativeAccess via DOM: container.querySelector('video')
preloadN/AAlternativeSet in player config as adaptation.preload
playbackTargetN/A✗ MissingCasting handled separately via Cast API
containergetContainer()AlternativeAMP1: property
AMP2: method
widthN/AAlternativeGet from container.offsetWidth
heightN/AAlternativeGet from container.offsetHeight
leftN/AAlternativeGet from container.getBoundingClientRect().left
topN/AAlternativeGet from container.getBoundingClientRect().top
rightN/AAlternativeGet from container.getBoundingClientRect().right
bottomN/AAlternativeGet from container.getBoundingClientRect().bottom
videoWidthN/AAlternativeGet from video element.videoWidth
videoHeightN/AAlternativeGet from video element.videoHeight
displayStateN/A✗ MissingDisplay state not supported
audioTracksgetAvailableAudio()AlternativeDifferent API structure and methods
textTracksgetAvailableSubtitles()AlternativeDifferent API structure and methods
chapterTracksN/A✗ MissingChapter tracks not supported
previewTracksN/A✗ MissingPreview tracks not supported
qualitygetVideoQuality()AlternativeAMP1: uses bitrate
AMP2: uses quality ID
qualityLevelsgetAvailableVideoQualities()AlternativeDifferent data structure
qualityModeN/AAlternativeControl via adaptation configuration
maxBitrateN/AAlternativeSet via adaptation.maxSelectableVideoBitrate
maxQualityLevelN/AAlternativeControl via adaptation configuration
configN/A✗ MissingConfig not accessible after player creation
settingsN/A✗ MissingUser settings not exposed via API
captioningsubtitlesAlternativeDifferent API structure for subtitle management
cuesN/A✗ MissingCue points not supported in Bitmovin Player
timersN/A✗ MissingTimer system not provided
paramsN/A✗ MissingCustom parameters not supported
versionversion✓ CompatibleBoth provide version information
autoplayPolicyN/A✗ MissingAutoplay policy not exposed
autoplayThresholdN/A✗ MissingAutoplay threshold not exposed
defaultMediaTransformN/A✗ MissingTransform system not available

Did this page help you?