feat(sub): demo to subtitles
This commit is contained in:
parent
d18ea10e1f
commit
d7846e5fbe
18
demo/demo.js
18
demo/demo.js
|
|
@ -65,7 +65,23 @@ function initPlayers() {
|
|||
thumbnails: 'https://i.loli.net/2019/06/06/5cf8c5d9cec8510758.jpg'
|
||||
},
|
||||
subtitle: {
|
||||
url: 'https://s-sh-17-dplayercdn.oss.dogecdn.com/hikarunara.vtt'
|
||||
url: [
|
||||
{
|
||||
subtitle: 'https://s-sh-17-dplayercdn.oss.dogecdn.com/hikarunara.vtt',
|
||||
lang: 'zh-CN',
|
||||
name: '光',
|
||||
},
|
||||
{
|
||||
subtitle: 'https://gist.githubusercontent.com/samdutton/ca37f3adaf4e23679957b8083e061177/raw/e19399fbccbc069a2af4266e5120ae6bad62699a/sample.vtt',
|
||||
lang: 'en-US',
|
||||
name: 'github',
|
||||
},
|
||||
],
|
||||
defaultSubtitle: 7,
|
||||
type: 'webvtt',
|
||||
fontSize: '25px',
|
||||
bottom: '10%',
|
||||
color: '#b7daff'
|
||||
},
|
||||
danmaku: {
|
||||
id: '9E2E3368B56CDBB4',
|
||||
|
|
|
|||
Loading…
Reference in New Issue