embed mp4 no ff/ie
This commit is contained in:
parent
c20b8f2081
commit
67dc1848e7
1 changed files with 13 additions and 0 deletions
13
src/embed.js
13
src/embed.js
|
@ -37,6 +37,19 @@ function mistembed(streamname) {
|
||||||
function html5_video_type(type) {
|
function html5_video_type(type) {
|
||||||
var support = false;
|
var support = false;
|
||||||
|
|
||||||
|
|
||||||
|
if (type == 'mp4') {
|
||||||
|
if (navigator.userAgent.indexOf('Firefox') > -1) {
|
||||||
|
//firefox claims to support MP4 but doesn't
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else if ((navigator.userAgent.indexOf('MSIE') > -1) && (parseInt(navigator.userAgent.split('MSIE')[1]) <= 9)) {
|
||||||
|
//IE <= 9 doesn't either
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
var v = document.createElement('video');
|
var v = document.createElement('video');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue