Update html.js

This commit is contained in:
Karl Chen 2017-12-11 15:36:37 +08:00 committed by GitHub
parent e907566adc
commit a6912d3bdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ const html = {
video: (current, pic, screenshot, preload, url, subtitle) => {
const enableSubtitle = subtitle && subtitle.type === 'webvtt';
return `
<video class="dplayer-video ${current ? `dplayer-video-current"` : ``}" ${pic ? `poster="${pic}"` : ``} webkit-playsinline playsinline ${screenshot || enableSubtitle ? `crossorigin="anonymous"` : ``} ${preload ? `preload="${preload}"` : ``} src="${url}">
<video class="dplayer-video ${current ? `dplayer-video-current` : ``}" ${pic ? `poster="${pic}"` : ``} webkit-playsinline playsinline ${screenshot || enableSubtitle ? `crossorigin="anonymous"` : ``} ${preload ? `preload="${preload}"` : ``} src="${url}">
${enableSubtitle ? `<track kind="metadata" default src="${subtitle.url}"></track>` : ``}
</video>`;
},