Skip to content

Commit

Permalink
Merge pull request #3078 from vanch3d/video
Browse files Browse the repository at this point in the history
Fixing background video not playing on certain small factor devices (android)
  • Loading branch information
hakimel authored Nov 24, 2021
2 parents 2d050a8 + 907ec73 commit bded1f5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/reveal.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/reveal.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/controllers/slidecontent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down Expand Up @@ -471,4 +471,4 @@ export default class SlideContent {

}

}
}

0 comments on commit bded1f5

Please sign in to comment.