| Issue | 1470 |
|---|---|
| Created | 2015-07-27 |
| Updated | 2017-10-30 |
| Comments | 41 |
| Locked | no |
URL: http://trailers.apple.com/
Browser / Version: Firefox 42.0
Operating System: Mac OS X 10.10
Problem type: Video doesn't play
Steps to Reproduce
trailers.apple.com requires the QuickTime plugin for Firefox but serves HTML5 video (M4V) to Chrome.
- On a Windows machine without Apple's QuickTime plugin installed, navigate to: http://trailers.apple.com/
- Try to watch a movie trailer, such as http://trailers.apple.com/trailers/disney/thegooddinosaur/
Expected Behavior:
The video should play.
Actual Behavior:
The play will display a blank gray rectangle instead of the video or an error message saying "A plugin is required to display this content." But if you fake Chrome's User-Agent and reload the movie trailer page, then the video will play correctly.
- Install the "User Agent Switcher" add-on: https://addons.mozilla.org/en-US/firefox/addon/user-agent-switcher/ There are multiple User-Agent switching add-ons, but it is important to use this one because it changes both Firefox's User-Agent header and navigator.userAgent property. Apple's trailer site checks the navigator.userAgent property.
- Switch your User-Agent string from Firefox to Chrome, e.g. "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36"
- Reload the same movie trailer page.
RESULT:
The video now plays in Firefox even though the QuickTime plugin is not installed.
ok. Thanks a lot @cpeterso
So using fake Chrome UA
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.1 Safari/537.36on MacOS X 10.10.4
in Gecko browser (42.0a1 (2015-07-27))
I get a green square
I sent an email to my contacts at Apple yesterday, but no reply yet.
I also get a green square, but audio works fine.
So far I got a big silence from my previous contacts at Apple.
I wonder if I should try to find new contacts.
Could @jonathandavis help us find the right contact at Apple?
seeAlso: #427 duplicate?
Note that Firefox 40 enabled OS X hardware acceleration for video and the Apple trailers can crash Firefox or even the OS. This is Firefox bug 1187103. The trailers play using fine using HTML5 on Windows or Firefox 39 on OS X.
I tweeted to @jonathandavis -- perhaps he doesn't read GitHub notifications:
https://twitter.com/miketaylr/status/631105717420716037
Filed Radar 22234592: trailers.apple.com serving QuickTime movies to Firefox
Thanks Jonathan!
Thanks, @jonathandavis!
Firefox bug 1187103 has been fixed in Firefox (Nightly) 42, so trailers.apple.com's MP4 videos no longer crash Firefox on OS X.
Confirmed that Firefox 42+ is now working with the code sent to Chrome browser User Agent.
Currently Firefox is at version 40.0.2 So I guess in around 12 weeks it would be safer for Apple to move Firefox users to the Chrome code.
trailers.apple.com also serves HTML5 video to MS Edge, but QuickTime to IE.
I told yesterday to @hober about it at TPAC 2015.
He told me that he will fill a bug at Apple for us.
/me points also @hober to #427 an issue for Opera browsers (blink) that @andreasbovens reported.
@karlcow and @hober: note that @jonathandavis filed Apple Radar issue 22234592 ("trailers.apple.com serving QuickTime movies to Firefox") back in August.
Related or duplicate of this bug
https://bugzilla.mozilla.org/show_bug.cgi?id=1262149
@jonathandavis and @hober any news about this issue.
Contacted also someone else at Apple.
My contact said he found the right person. They will come back to me later.
Related #427
I have been told it was fixed. I went today with Firefox.
http://trailers.apple.com/trailers/sony/ourlittlesister/
And got a
To view this video please use the latest version of Safari.I will contact again to see if it was deployed.
OK 9 days later. Still an issue.
http://trailers.apple.com/trailers/global/v4/scripts/app/app.js
isFirefoxis defined by:which in my case right now returns:
fireVer = 11which is strange because it is more… about macosx.
so for macosx version > 10.10 like 11, we get an error message. No idea why. I would love someone from Apple to explain. Also does that mean that Firefox on Windows gets a free ticket? Or do we hit an issue elsewhere?
Faking a firefox windows user agent and reloading the page…
wooot!?
we get a player on top… of an insert of the trailers homepage… !!!

ok some weird things happening there.
After the
<embed…>there is an insert indeed of… the trailers home page.to note that the original HTML (through HTTP) contains nothing. Everything is done through JavaScript
Probably code is coming from
http://trailers.apple.com/trailers/global/v4/scripts/libs/ac_quicktime.js
So now I wonder if they blocked Firefox on mac because it was creating an issue with the DOM.
I'm switching it back to needsdiagnosis so @miketaylr can have a look before I ping again Apple with it.
Same issue by faking
Mac OS X 10.10on Mac OS X 10.11.What is currently sent to Safari on the same OS.
What is sent to Chrome (faking the UA) on Firefox.
The video is working
So we could fix this with a UA override, correct?
@miketaylr using the Chrome UA in Firefox OSX the video's will play which is a big win considering the current situation. But the movie controls in full screen mode are absent. You can still pause the video with space bar, but clicking does nothing.
No longer getting the warning about Firefox, but when I click to play the video we get the console error:
"HTTP "Content-Type" of "text/html" is not supported. Load of media resource http://movietrailers.apple.com/movies/independent/thewailing/thewailing-tlr1_i320.m4v failed."
The cause of that error is the redirect from the video URL to the home page (but getting a console error means they are now actually trying to use a VIDEO element instead of OBJECT..which I guess is progress..?)
The trailers now play correctly for me in Firefox 46 on OS X and Windows! I think this bug is fixed.👍
Sweet! Works for me as well. Closing.
Wow, that's awesome. Thanks Apple! @jonathandavis🍎 ❤️
fabulous! It finally happened. Thanks.