add render_public_edits
This commit is contained in:
parent
4dcf945a62
commit
f96815c175
3 changed files with 142 additions and 0 deletions
0
edits/index.html
Normal file
0
edits/index.html
Normal file
25
edits/player.html
Normal file
25
edits/player.html
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<body></body>
|
||||
<script>
|
||||
var mp4 = document.location.hash.substr(1)
|
||||
var vtt = mp4.replace(/.mp4/, '.vtt')
|
||||
var video = document.createElement('video')
|
||||
video.src = mp4
|
||||
video.controls = true
|
||||
var track = document.createElement('track')
|
||||
track.label = 'English'
|
||||
track.kind = 'subtitles'
|
||||
track.srclang = 'en'
|
||||
track.default = true
|
||||
track.src = vtt
|
||||
video.appendChild(track)
|
||||
document.body.appendChild(video)
|
||||
document.body.style.background = 'black'
|
||||
document.body.style.textAlign = 'center'
|
||||
document.body.style.display = 'flex'
|
||||
document.body.style.height = '100vh'
|
||||
document.body.style.overflow = 'hidden'
|
||||
document.body.style.margin = '0'
|
||||
document.body.style.padding = '0'
|
||||
video.style.width = '100%'
|
||||
video.style.height = '100%'
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue