Welcome! Log In Create A New Profile

Advanced

Re: Nginx serving Large static files on windows

October 25, 2014 05:28PM
I just found something cool i am not sure if anyone knows but our browsers will always use the first supplied media file to play from.

<?php if ($params->get('mp4')) : ?><source src="<?php echo $params->get('mp4'); ?>" type="video/mp4" /><?php endif; ?>

<?php if ($params->get('webm')) : ?><source src="<?php echo $params->get('webm'); ?>" type="video/webm" /><?php endif; ?>

<?php if ($params->get('ogg')) : ?><source src="<?php echo $params->get('ogg'); ?>" type="video/ogg" /><?php endif; ?>

<?php if ($params->get('flv')) : ?><source src="<?php echo $params->get('flv'); ?>" type="video/flv" /><?php endif; ?>

So as you see the first media file to be delieverd for the media player to grab is the MP4.
If i switch and make the webm the first in line.

Now in my browser when i tell the media player to play it plays the webm file first. And it loads instantly aswell as the webm is also a smaller file than mp4 and higher quality.
Subject Author Posted

Nginx serving Large static files on windows

c0nw0nk October 24, 2014 11:36PM

Re: Nginx serving Large static files on windows

c0nw0nk October 25, 2014 12:15AM

Re: Nginx serving Large static files on windows

c0nw0nk October 25, 2014 12:54AM

Re: Nginx serving Large static files on windows

c0nw0nk October 25, 2014 01:13AM

Re: Nginx serving Large static files on windows

c0nw0nk October 25, 2014 01:50AM

Re: Nginx serving Large static files on windows

itpp2012 October 25, 2014 02:49AM

Re: Nginx serving Large static files on windows

c0nw0nk October 25, 2014 12:27PM

Re: Nginx serving Large static files on windows

c0nw0nk October 25, 2014 01:09PM

Re: Nginx serving Large static files on windows

itpp2012 October 25, 2014 01:41PM

Re: Nginx serving Large static files on windows

c0nw0nk October 25, 2014 01:51PM

Re: Nginx serving Large static files on windows

c0nw0nk October 25, 2014 05:28PM

RE: Nginx serving Large static files on windows

Lukas Tribus October 25, 2014 02:34PM

Re: RE: Nginx serving Large static files on windows

c0nw0nk October 25, 2014 02:37PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 122
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready