Opened 8 years ago

Closed 8 years ago

#2832 closed defect (fixed)

HTML5 Youtube no workee

Reported by: pstumpf Owned by: mikeperry
Priority: Very High Milestone:
Component: Applications/Torbutton Version: Torbutton: 1.3.0-alpha
Severity: Keywords: MikePerryIteration20110417
Cc: Actual Points: 1
Parent ID: Points: 1
Reviewer: Sponsor:

Description

HTML5 video works perfectly with most sites using Torbutton + Firefox 4, for example http://www.html5video.org/. However, the Youtube HTML5 Beta programme does not. I have no idea why: I’ve flipped just about every setting there is in Torbutton, but no dice. Strangely, Youtube videos embedded into other sites work, and youtube.com also does when not using Torbutton, but setting the proxy manually.

Looking at the source code of any youtube page loaded via Torbutton, it seems like Youtube is having trouble detecting either the html5 opt-in or browser capabilities and presents the flash version instead. But as I said, no idea why. Javascript and cookies are enabled.

Child Tickets

Change History (7)

comment:1 in reply to:  description Changed 8 years ago by rransom

Replying to pstumpf:

Looking at the source code of any youtube page loaded via Torbutton, it seems like Youtube is having trouble detecting either the html5 opt-in or browser capabilities and presents the flash version instead. But as I said, no idea why. Javascript and cookies are enabled.

Torbutton changes the browser's ‘User-Agent’ string to match Firefox 3.6.3 running on Windows NT 6.1 (the version marketed as ‘Windows 7’).

comment:2 Changed 8 years ago by mikeperry

Points: 1
Priority: normalcritical

This should be a quick thing to verify. And we should update our user agent string anyway.

comment:3 Changed 8 years ago by mikeperry

Keywords: MikePerryIteration20110417 added

comment:4 Changed 8 years ago by mikeperry

Status: newaccepted

I confirm this was the user agent. Preferences->Security Settings->Headers->Set user agent for Tor usage (uncheck).

I just watched http://www.youtube.com/watch?v=8LsxmQV8AXk in HTML5 in FF4 in Tor on Linux. It totally changed my love life.

It was easy. I just had to config it.. run a shell script... tweak some settings.. update my rpms.. check my version dependencies - probably do that once or twice...

It was just so easy. I can't believe more people don't watch HTML5 videos in FF4 over Tor on Linux. Thank god they don't, because then they'd all be super-villains...

I'll update the spoofed user agent of 1.3.3/1.4.0 to match FF4.0 on Windows. Wouldn't want anyone to know we're super-villains.

comment:5 Changed 8 years ago by mikeperry

The relevant cookie appears to be: PREF f1=5000000&f2=40000000

If I do not opt in to the html5 trial, I only have: PREF f1=50000000

As soon as opt-in is done, I get the &f2=40000000 added on. I do not appear to need any other cookies.

We can easily ship these pref cookies w/ torbutton so youtube will work by default in FF4.. should we?

comment:6 Changed 8 years ago by mikeperry

Actual Points: 1

Ok, I think we shouldn't mess with the cookie until we're closer to a stable release. It's possible the trial may end before we get something we call stable.

However, the change to spoof our useragent as FF4.0 on Windows is in origin/master. That should appear in 1.3.3/1.4.0.

comment:7 Changed 8 years ago by mikeperry

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.