Closed
Bug 865091
Opened 12 years ago
Closed 11 years ago
Videos don't play on YouTube
Categories
(Firefox OS Graveyard :: Gaia::Video, defect)
Firefox OS Graveyard
Gaia::Video
Tracking
(blocking-b2g:tef+, b2g18 verified, b2g18-v1.0.0 wontfix, b2g18-v1.0.1 verified)
People
(Reporter: simon.callan, Assigned: fabrice)
References
Details
(Keywords: regression, Whiteboard: [apps watch list1])
Attachments
(2 files)
55.02 KB,
image/png
|
Details | |
596 bytes,
patch
|
daleharvey
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.65 Safari/537.31
Steps to reproduce:
Open YouTube app and try to play a video
Actual results:
You only see a blank screen - no video gets played
Expected results:
The video should play
Updated•12 years ago
|
Component: Gaia → Preinstalled B2G Apps
Product: Boot2Gecko → Tech Evangelism
Version: unspecified → Trunk
Comment 2•12 years ago
|
||
Needs more information. Specifically:
1. What device is this reproducing on?
2. Which YouTube videos?
The general YouTube video functionality is already tested generally, so I'm wondering if this is video-specific (e.g. h264 requested) vs. device-specific.
Flags: needinfo?(simon.callan)
Reporter | ||
Comment 3•12 years ago
|
||
This is on ZTE Open. Go to YouTube search for e.g. Cat Jumps Off Building FAIL by chendalson.
Or go to the home screen and try to play any of the videos. Some give a message "watch on your PC later" some simply give a black screen. I've not found a single video that plays yet..
Flags: needinfo?(simon.callan)
Reporter | ||
Comment 4•12 years ago
|
||
I've just tried testing on the LG device and the same videos work - but not on the ZTE Open
Comment 5•12 years ago
|
||
(In reply to Simon Callan, Telefonica from comment #4)
> I've just tried testing on the LG device and the same videos work - but not
> on the ZTE Open
Hmm...what I think you might be doing then is consuming a video that contains embedded h264 content in the web. 1.1 supports this, 1.01 does not.
The part that's weird is why you are not getting the vnd protocol served that takes you out to the video app.
Just to confirm - Are you getting sent to the video app here when you try to view a YouTube video?
Reporter | ||
Comment 6•12 years ago
|
||
NO it stays inside the app - well as far as I can see..
The wierd thing now, is that all the videos pop up with an error page "YouTube won't play video" (on both the ZTE and LG and the Simulator)..
Updated•12 years ago
|
Component: Preinstalled B2G Apps → Gaia::Video
Product: Tech Evangelism → Boot2Gecko
Version: Trunk → unspecified
Comment 8•12 years ago
|
||
Confirmed by another person. Looks like a vnd protocol parsing regression.
blocking-b2g: --- → tef?
Keywords: regression
Updated•12 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 9•12 years ago
|
||
See dupe for video of the problem.
Comment 10•12 years ago
|
||
leo device has same problem, "YouTube won't play video".
Since request.open('GET', query) in youtube.js returns error, the streaming cannot be started.
By TCP dump, it received OK response from the server.
Comment 12•12 years ago
|
||
So we've got an automated test here for this:
https://github.com/mozilla/gaia-ui-tests/blob/master/gaiatest/tests/videoplayer/test_video_youtube.py
Zac - Is our automation failing right now due to this bug? If not, can you find out why?
I'm wondering if our current automated coverage would be able to catch this bug.
Flags: needinfo?(zcampbell)
Comment 13•12 years ago
|
||
Jason, yes this has been failing on our automation for the last 18 hrs but we haven't enough people in that timezone to investigate/report it.
On Unagi/v1-train build we get the message that leo reports in comment #10.
Flags: needinfo?(zcampbell)
Comment 14•12 years ago
|
||
I tested on an earlier known good leo build. A week ago youtube videos were playing fine on this archived build. Now they all show the "YouTube won't play video". I don't think it's a regression per se. I think something changed in m.youtube.com that broke it on b2g.
Comment 15•12 years ago
|
||
(In reply to Diego Wilson [:diego] from comment #14)
> I tested on an earlier known good leo build. A week ago youtube videos were
> playing fine on this archived build. Now they all show the "YouTube won't
> play video". I don't think it's a regression per se. I think something
> changed in m.youtube.com that broke it on b2g.
Well, that's really bad then. I should have known this would eventually happen, given that we're relying on an unpublished API.
Chris - Can someone outreach to YouTube here?
Flags: needinfo?(clee)
Comment 16•12 years ago
|
||
Hmm...I tested this on Fx Android Nightly and it works fine. So it's probably something that changed on the site side in how we're interpreting the VND protocol then.
Given the bustage here though, we probably still need someone to establish with YouTube that we're consuming this API.
Comment 17•12 years ago
|
||
Issue still reproduses. Repro frequency: 100%, on 3 different devices
See video: http://youtu.be/g6lT16ymo3E and screenshot for more info.
User is unable to watch any YouTube videos on Inari device going directly via browser to m.youtube.com or go via Everything.me section and selecting YouTube music videos.
Repro Steps:
1) Updated to Inari Build ID: 20130424070201
2) Open the browser and navigate to youtube.com
3) Select a video to play
Actual: User is getting message “YouTube won’t play video:” with blue “OK” button on a bottom
Expected: The video plays with audio and no glitches is observed.
Repro frequency: 100%, on 3 different devices
See video: http://youtu.be/g6lT16ymo3E and screenshot for more info.
Environmental Variables:
Inari Build ID: 20130425070201
Kernel Date: Feb 21
Gecko: http://hg.mozilla.org/releases/mozilla-b2g18_v1_0_1/rev/5d454864b668
Gaia: 052253176f3ad495a1086e47a28fffbf07613388
Updated•12 years ago
|
Blocks: youtube.com
Comment 18•12 years ago
|
||
A community member mentioned on IRC yesterday that they'd noticed a change on YouTube's server within the last week. They were using the same mechanism we use to launch YouTube videos in the app they were developing.
Comment 19•12 years ago
|
||
(In reply to Ben Francis [:benfrancis] from comment #18)
> A community member mentioned on IRC yesterday that they'd noticed a change
> on YouTube's server within the last week. They were using the same mechanism
> we use to launch YouTube videos in the app they were developing.
I was using an external library to expose the raw stream URL for the video, using a similar method of what youtube.js uses on the gaia video app. Someone on github noted that youtube changed / dropped the CORS headers for the http://www.youtube.com/get_video_info endpoint.
Sure enough while reproducing this bug youtube.js throws a query error for http://www.youtube.com/get_video_info
Comment 20•12 years ago
|
||
Good analysis in comment 19 - that confirms some of my theories I had on the problem here. Sounds like what we should do here is:
1. Adjust our youtube.js to take into account youtube's changes
2. Get help from Business Development (given this is a preinstalled app for v1.01 ship) to lock down a deal about our usage of the VND protocol API with YouTube. Going to redirect the needinfo request to Tom now as a result.
Flags: needinfo?(clee) → needinfo?(telin)
Comment 21•12 years ago
|
||
If we can't lock down #2, I suggested a mitigation strategy in bug 843334 that involves setting up a Mozilla owned server side service and piping the YouTube vnd content through it. This should allow us to respond to changes in YouTube content without the need to update B2G. The solution isn't free but may be preferable to shipping without the ability to respond to future YouTube changes.
Updated•12 years ago
|
blocking-b2g: tef? → tef+
Target Milestone: --- → 1.0.1 Cert2 (28may)
Updated•12 years ago
|
Assignee: nobody → dale
Comment 22•12 years ago
|
||
I'm happy to go to Youtube but need a clear direction of next steps and how to fix this issue. Harald can act as my proxy until we have something to share with them.
Flags: needinfo?(telin)
Assignee | ||
Comment 23•12 years ago
|
||
Use system XHR to bypass CORS limitation from Youtube...
Assignee: dale → fabrice
Assignee | ||
Updated•12 years ago
|
Attachment #742623 -
Flags: review?(dflanagan)
Comment 24•12 years ago
|
||
(In reply to Fabrice Desré [:fabrice] from comment #23)
> Created attachment 742623 [details] [diff] [review]
> patch
>
> Use system XHR to bypass CORS limitation from Youtube...
That seems to have fixed youtube.js... It's returning a source correctly now
Comment 25•12 years ago
|
||
Comment on attachment 742623 [details] [diff] [review]
patch
Stolen the review, tested this and works great
Attachment #742623 -
Flags: review?(dflanagan) → review+
Comment 26•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Comment 27•12 years ago
|
||
Uplifted 8757b15adc8a9e3cfeed4283fc7802964af9c35e to:
v1-train: cb6c6e9e25c313dd7fd339d83528c0b7a940f630
v1.0.1: 09046df332cd217cf4fad55c48ce9ce3f14ee5a4
Comment 29•12 years ago
|
||
Our automation is passing this test on a 5/1 build.
Comment 32•12 years ago
|
||
Tested on Inari. Commercial RIL: 094. Build Id: 20130506003326
It is possible to play videos from YouTube APP, and from the site www.youtube.com
Status: RESOLVED → VERIFIED
Resolution: FIXED → WORKSFORME
Comment 33•12 years ago
|
||
Works for me is inappropriate to use here - we've confirmed a fix here. You want to set the status flag in this case to verified.
Status: VERIFIED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: WORKSFORME → FIXED
Updated•12 years ago
|
Whiteboard: [apps watch list1]
Comment 34•11 years ago
|
||
Seems this fix doesn't work on master (gaia master and gecko master) - has anyone else tried?
Comment 35•11 years ago
|
||
(In reply to Chris Lord [:cwiiis] from comment #34)
> Seems this fix doesn't work on master (gaia master and gecko master) - has
> anyone else tried?
Probably not. No one really tests on master these days unless you are doing gaia development.
Comment 36•11 years ago
|
||
On master before this patch I used to see an "unable to play video" message. With the patch I can't play the video but I don't see the message either. I think the issue affecting all branches was fixed, but it uncovered some further problem in master.
Comment 37•11 years ago
|
||
This problem was at least not appearing on the 5/13 partner build which we were checking against for IOT certification in Chile.
Comment 38•11 years ago
|
||
Apparently, it reappears on 5/17 build however in IOT. Reopening.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 39•11 years ago
|
||
Please do not reopen bugs. There are new youtube bugs filed right now that followed the fix here. It's already landed at this point too.
If you are seeing this bug again, then file a new bug for the specific device. I'm a bit surprised though - I tested this on a 5/17 1.01 inari build yesterday and this was working fine. So double check the build ID of the device you are testing on.
Status: REOPENED → RESOLVED
Closed: 12 years ago → 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•