API
Introduction
Setup
videogplayer().on('ready')
videogplayer().remove()
Playlist
videogplayer().next()
videogplayer().load(playlist)
videogplayer().playlistItem(index)
videogplayer().getPlaylist()
videogplayer().getPlaylistItem(index)
videogplayer().getPlaylistIndex()
videogplayer().on('playlistComplete')
Playback
videogplayer().play()
videogplayer().pause()
videogplayer().stop()
videogplayer().getState()
videogplayer().on('contentplay')
videogplayer().on('pause')
videogplayer().on('complete')
videogplayer().on('error')
videogplayer().getPlaybackRate()
videogplayer().setPlaybackRate(rate)
videogplayer().on(‘playbackRate’)
Seek
videogplayer().seek(position)
videogplayer().getPosition()
videogplayer().on('seek')
videogplayer().on('seeked')
videogplayer().on('time')
Volume
videogplayer().setMute(state)
videogplayer().setVolume(volume)
videogplayer().getMute()
videogplayer().getVolume()
videogplayer().on('mute')
videogplayer().on('volume')
Controls
videogplayer().addButton(img, tooltip, callback, id, btnClass)
videogplayer().setFullscreen(state)
Advertising
videogplayer().playAd(tag)
videogplayer().pauseAd()
videogplayer().on('adClick')
videogplayer().on('adComplete')
videogplayer().on('adSkipped')
videogplayer().on('adPlay')
videogplayer().on('adPause')
Captions
videogplayer().setCurrentCaptions(index)
videogplayer().setCaption(state)
ビデオグプレイヤーとは
Published with GitBook
videogplayer().setCurrentCaptions(index)
API
Captions
videogplayer().setCurrentCaptions(
index
)
字幕設定を指定されたインデックスの字幕に変更します。
属性
説明
タイプ
必須/任意
index
設定したい字幕のインデックス
number
必須
results matching "
"
No results matching "
"