Merge pull request #3078 from vanch3d/video

Fixing background video not playing on certain small factor devices (android)
This commit is contained in:
Hakim El Hattab 2021-11-24 10:56:43 +01:00 committed by GitHub
commit bded1f5d39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

2
dist/reveal.esm.js vendored

File diff suppressed because one or more lines are too long

2
dist/reveal.js vendored

File diff suppressed because one or more lines are too long

View File

@ -137,7 +137,7 @@ export default class SlideContent {
// Support comma separated lists of video sources
backgroundVideo.split( ',' ).forEach( source => {
video.innerHTML += '<source src="'+ source +'">';
video.innerHTML += '<source src="'+ source +'" type="video/' + source.split(".").pop() + '">';
} );
backgroundContent.appendChild( video );