Jump to Content
Platform Docs
Players Docs
Release Notes
Developer Guides
Recipes
API Reference
Platform Docs
Players Docs
Release Notes
System Status
Submit a Case
Dashboard Login
Company Site
API Reference
System Status
Submit a Case
Dashboard Login
Company Site
Moon (Dark Mode)
Sun (Light Mode)
Developer Guides
Recipes
API Reference
getPlaylistIndex()
JUMP TO
JavaScript Player API
Introduction
Setup
jwplayer(div).setup(options)
remove()
setConfig()
getProvider()
getContainer()
getEnvironment()
getPlugin()
Setup Events
All
on('all')
Advertising
getAdBlock()
pauseAd(state)
loadAdTag(tag)
loadAdXml(xml)
playAd(tag)
skipAd()
skipAdBreak()
Advertising Events
Audio Tracks
getAudioTracks()
getCurrentAudioTrack()
setCurrentAudioTrack(index)
Audio Tracks Events
Buffer
getBuffer()
Buffer Events
Captions
getCaptions(styles)
setCaptions(styles)
getCaptionsList()
getCurrentCaptions()
setCurrentCaptions(index)
Captions Events
Cast
requestCast()
stopCasting()
Cast Events
Controls
addButton(img, tooltip, callback, id, btnClass)
addCues([cues])
getControls()
getCues()
getSafeRegion()
removeButton(id)
setAllowFullscreen(allowFullscreen)
setControls(state)
setCues([cues])
Control Events
Floating Player
getFloating()
setFloating(shouldFloat)
Floating Player Events
Metadata
Metadata Events
Playback
getPlaybackRate()
setPlaybackRate(rate)
getState()
play()
pause()
stop()
Playback Events
Playlist
next()
getPlaylist()
getPlaylistItem(index)
getPlaylistIndex()
load(playlist)
playlistItem(index)
setPlaylistItemCallback(callback)
removePlaylistItemCallback()
getPlaylistItemPromise(index)
Playlist Events
Quality
getQualityLevels()
getCurrentQuality()
getVisualQuality()
setCurrentQuality(index)
Quality Events
Related
relatedPlugin.open()
relatedPlugin.close()
Related Events
Resize
getFullscreen()
getHeight()
getWidth()
resize(width, height)
Resize Events
Seek
getPosition()
getAbsolutePosition()
getDuration()
seek(position)
Seek Events
Sharing
sharingPlugin.open()
sharingPlugin.close()
Sharing Events
Viewability
getContainerPercentViewable()
getContainerViewable()
getPercentViewable()
getViewable()
Viewability Events
Volume
getMute()
getVolume()
setMute(state)
setVolume(volume)
Volume Events
Configuration Options
Getting started
Options
Setup Options
Advertising
Auto Pause
Captions
Casting
Common Media Client Data
Do Not Save Cookies
DRM
Float on scroll
Google Analytics (ga)
Internationalization
Logo
Playlists
Related
Sharing
Skin
Time slider
CSS Reference
CSS Skin Reference
getPlaylistIndex()
Description
Type
The numerical index of the currently loaded playlist item.
Number