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().on('ready')
API
Setup
videogplayer().on('ready', handler(
eventObject
))
プレーヤーが初期化され、再生準備が整ったことを示します。
戻り値
なし
引数
属性
説明
タイプ
必須/任意
handler
コールバック関数。
function
必須
イベントオブジェクト
値
説明
タイプ
setupTime
値は何も返しません
なし
results matching "
"
No results matching "
"