I run Directadmin on CentOS 6 VPS. I have a number of site's that run perfectly.
I have just created a Wordpress site that uses HTML5 video on the home page. Initially, I have coded the video to load one of three file's in order of preference: .webm, .mp4, .ogg, dependant of what the browser supports.
There are two issue's with my Directadmin server:-
1) I have set the HTML5 video to automatically loop. With Google Chrome (latest version as of today V50.0.2661.75 m), when loading video format .webm, the video plays once and stops. All other browsers, the video loops as expected. When taking a look at the headers by using the Google Chrome console (press F12), Chrome should expect a "206 Partial Content" response, but instead with Directadmin get instead the "200 OK" response” when serving .webm video, which makes Chrome only play the video once and not loop.
2) As a temporary fix, I changed the order of preference so that .mp4 is preferred over .webm. The .mp4 video does actually loop, however, the server responses are such that the file is being sent every time the video restarts, which eventually maxes out the bandwidth of the client account on the Directadmin server. This happens even when I use Cloudflare CDN.
Now I am not an expert on HTML headers, but doing a little background reading, it seems that I need to ensure the server supports HTTP Byte Serving, and needs to honor requests that contain a "Range" header with a 206 "Partial Content" response instead of the "200 OK" response as mentioned above.
Can someone kindly please explain what I need to install on the server to correct the above problems I am facing?
Regards
TheMadGuru
I have just created a Wordpress site that uses HTML5 video on the home page. Initially, I have coded the video to load one of three file's in order of preference: .webm, .mp4, .ogg, dependant of what the browser supports.
There are two issue's with my Directadmin server:-
1) I have set the HTML5 video to automatically loop. With Google Chrome (latest version as of today V50.0.2661.75 m), when loading video format .webm, the video plays once and stops. All other browsers, the video loops as expected. When taking a look at the headers by using the Google Chrome console (press F12), Chrome should expect a "206 Partial Content" response, but instead with Directadmin get instead the "200 OK" response” when serving .webm video, which makes Chrome only play the video once and not loop.
2) As a temporary fix, I changed the order of preference so that .mp4 is preferred over .webm. The .mp4 video does actually loop, however, the server responses are such that the file is being sent every time the video restarts, which eventually maxes out the bandwidth of the client account on the Directadmin server. This happens even when I use Cloudflare CDN.
Now I am not an expert on HTML headers, but doing a little background reading, it seems that I need to ensure the server supports HTTP Byte Serving, and needs to honor requests that contain a "Range" header with a 206 "Partial Content" response instead of the "200 OK" response as mentioned above.
Can someone kindly please explain what I need to install on the server to correct the above problems I am facing?
Regards
TheMadGuru