Преглед изворни кода

Merge pull request #3078 from vanch3d/video

Fixing background video not playing on certain small factor devices (android)
Hakim El Hattab пре 3 година
родитељ
комит
bded1f5d39
3 измењених фајлова са 2 додато и 2 уклоњено
  1. 0 0
      dist/reveal.esm.js
  2. 0 0
      dist/reveal.js
  3. 2 2
      js/controllers/slidecontent.js

Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/reveal.esm.js


Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/reveal.js


+ 2 - 2
js/controllers/slidecontent.js

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

Неке датотеке нису приказане због велике количине промена