Recently do an HTML page video playback function, found on the internet a lot of do not meet my requirements, most say what iisserver on the configuration of what bird, I really want to say, I am using Java development, tube IIS what matter, very helpless.
Go a lot of detours. First your HTML page <video id= "example_video_1" class= "Video-js Vjs-default-skin" Controls preload= "None" width= "1024" height= "><source src=" "type= ' Video/mp4 '/> </video>src is your video path test result: No video formats and MIME types were found. Grandma's This you can endure!? Continue the search found an article that says the path cannot be local, it has to be the video on your server,
I think, anyway, there is server, so the MP4 video uploaded to the server, and then nginx/mime.types join type
Application/ogg OGX;
Audio/ogg OGA Ogg SPX;
Video/ogg OGV;
VIDEO/WEBM WEBM;
AUDIO/WEBM Weba;
Video/mp4 mp4;
Audio/mpeg M4A;
You have to see clearly, there are some types in this file.
Then restart your Nginx service.
Find your Nginx installation file reboot:/nginx/sbin/nginx-s Reload
OK, we're done with the prep work, let's Test it tomorrow.
HTML5 video Playback