Squid + HAVP + HTML 5 Video tag

July 1, 2009 at 11:12 am (linux, Technology) (, , , )

Ok, so Fire Fox 3.5 came out yesterday and it now fully supports embedded video objects via the HTML 5 video tag.

Excitedly, I went to test the functionality of this new feature.  However, when testing again this URL: http://www.mozilla.com/en-US/firefox/video/ I found that the browser began to load the video but it appeared to just hang.   Now, I am using this browser on a network that sends all http traffic through a proxy server which runs Squid, HAVP and SquidGuard.

After further investigation I determined that there was a default setting in the HAVP configuration file (/usr/local/etc/havp/havp.config) that was causing this issue.

Look for this section in the config file:

# Allowing Range is a security risk, because partial
# HTTP requests may not be properly scanned.
#
# Whitelisted sites are allowed to use Range in any case.
#
# Default:
# RANGE false

Change RANGE to:

RANGE true

Remember to restart your HAVP processes.

Now, the browser will be able to play videos since it needs to request files via ranges.

Let me know if this helped you out.

Advertisements

1 Comment

  1. fatterhow-getto said,

    Hello! this blog is the best example of one fine wp design right? seems all so organized that it even makes me think its more than perfect! good luck on your next posts!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: