[xiph-commits] r18853 - websites/xiph.org/video
xiphmont at svn.xiph.org
xiphmont at svn.xiph.org
Tue Feb 26 06:47:35 PST 2013
Author: xiphmont
Date: 2013-02-26 06:47:35 -0800 (Tue, 26 Feb 2013)
New Revision: 18853
Modified:
websites/xiph.org/video/vid1.shtml
websites/xiph.org/video/vid2.shtml
websites/xiph.org/video/video.js
Log:
attempt at fixing spider problem
Modified: websites/xiph.org/video/vid1.shtml
===================================================================
--- websites/xiph.org/video/vid1.shtml 2013-02-26 11:26:37 UTC (rev 18852)
+++ websites/xiph.org/video/vid1.shtml 2013-02-26 14:47:35 UTC (rev 18853)
@@ -28,7 +28,7 @@
onpause="undimpage()"
onended="undimpage()">
- <!--#include virtual="fallback.include" -->
+ <div><img src="vid1-poster-360.jpg"></div>
</video>
</div>
Modified: websites/xiph.org/video/vid2.shtml
===================================================================
--- websites/xiph.org/video/vid2.shtml 2013-02-26 11:26:37 UTC (rev 18852)
+++ websites/xiph.org/video/vid2.shtml 2013-02-26 14:47:35 UTC (rev 18853)
@@ -28,7 +28,7 @@
onpause="undimpage()"
onended="undimpage()">
- <!--#include virtual="fallback.include" -->
+ <div><img src="vid2-poster-360.jpg"></div>
</video>
</div>
Modified: websites/xiph.org/video/video.js
===================================================================
--- websites/xiph.org/video/video.js 2013-02-26 11:26:37 UTC (rev 18852)
+++ websites/xiph.org/video/video.js 2013-02-26 14:47:35 UTC (rev 18853)
@@ -10,17 +10,15 @@
if ((video.canPlayType &&
(video.canPlayType("video/ogg; codecs=\"theora, vorbis\"") == "probably" ||
video.canPlayType("video/webm; codecs=\"vp8, vorbis\"") == "probably"))) {
+ video.innerHTML="";
videoElement = true;
}
if (!videoElement) {
- // replace <video> with its contents
- while (video.firstChild) {
- video.parentNode.insertBefore(video.firstChild, video);
- }
- video.parentNode.removeChild(video);
-
+ var fallback=$.get("fallback.include", function(data) {
+ video.parentNode.innerHTML=data;
+ });
// Also kill off the HTML5-specific vid controls
var controls = $(".vidcontrols");
More information about the commits
mailing list