简体   繁体   中英

HTML5 Video Not Working, IE11

I am in Windows Server 2012. I uploaded a site that works fine in my laptop, but has problems when I test it on the server's IE 11.0.9600.16384.

I have this code to insert html5 videos in the site

document.getElementById("videogal").innerHTML=' ';

elemv.src=mplv[0];

document.getElementById("videogal").appendChild(elemv); 

videogal is a div

elemv is a global var :

 var elemv = document.createElement("video");

mplv is an array that contains literals, such as "myFolder/myvideo.mp4" .

As I said, it works fine in my laptop, but not in server's IE. IE's console says Not Implemented and marks this line elemv.src=mplv[0];

I dont know how to handle that. I alert the mplv[0] and has the proper value.

Most important : will this bug appear in client's browsers also? Or is just locally on server. I connect to the server as Admin and have turned off all the security restrictions of the IE.

Windows Server does not by default include certain "desktop" functionality, which includes the ability to play HTML5 video in Internet Explorer. Typically you wouldn't want users using server resources to play video. The "Desktop Experience" feature can be installed to add that functionality.

Installing this has no bearing on another machine's ability to play video served from this server. Other browsers (eg Chrome) running on the server have their own capability to play video and are unaffected by this feature being installed or not.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM