mirror of
https://github.com/videojs/video.js.git
synced 2025-07-15 01:34:23 +02:00
Remove Extra Flash Switch
Get rid of the extra switching logic to force Flash tech. Worth noting: it has to exist as a separate script tag because we're using document.write to insert video.js scripts.
This commit is contained in:
committed by
Steve Heffernan
parent
6df5d30dff
commit
d21df1bc12
@ -2,7 +2,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>Video.js Sandbox</title>
|
<title>Video.js Plugin Example</title>
|
||||||
|
|
||||||
<link href="../src/css/video-js.css" rel="stylesheet" type="text/css">
|
<link href="../src/css/video-js.css" rel="stylesheet" type="text/css">
|
||||||
|
|
||||||
@ -26,24 +26,15 @@
|
|||||||
document.write( "<script src='" + root + sourcelist[i] + "'><\/script>" );
|
document.write( "<script src='" + root + sourcelist[i] + "'><\/script>" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Easy access to test Flash over HTML5. Add ?flash to URL
|
|
||||||
if (window.location.href.indexOf("?flash") !== -1) {
|
|
||||||
videojs.options.techOrder = ["Flash"];
|
|
||||||
videojs.options.flash.swf = "../src/swf/video-js.swf";
|
|
||||||
}
|
|
||||||
|
|
||||||
})()
|
})()
|
||||||
</script>
|
</script>
|
||||||
|
<script>
|
||||||
<script type="text/javascript" charset="utf-8">
|
// Easy access to test Flash over HTML5. Add ?flash to URL
|
||||||
// Easy access to test Flash over HTML5. Add ?flash to URL
|
if (window.location.href.indexOf("?flash") !== -1) {
|
||||||
if (window.location.href.indexOf("?flash") !== -1) {
|
videojs.options.techOrder = ["flash"];
|
||||||
videojs.options.techOrder = ["flash"];
|
videojs.options.flash.swf = "../src/swf/video-js.swf";
|
||||||
videojs.options.flash.swf = "../src/swf/video-js.swf";
|
}
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<p style="background-color:#eee; border: 1px solid #777; padding: 10px; font-size: .8em; line-height: 1.5em; font-family: Verdana, sans-serif;">This page shows you how to create, register and initialize a Video.js plugin.</p>
|
<p style="background-color:#eee; border: 1px solid #777; padding: 10px; font-size: .8em; line-height: 1.5em; font-family: Verdana, sans-serif;">This page shows you how to create, register and initialize a Video.js plugin.</p>
|
||||||
|
Reference in New Issue
Block a user