Closed Bug 854823 Opened 12 years ago Closed 11 years ago

[Buri][Facebook]Cannot view videos on Facebook

Categories

(Tech Evangelism Graveyard :: Preinstalled B2G Apps, defect, P1)

ARM
Gonk (Firefox OS)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sync-1, Assigned: colby, NeedInfo)

References

Details

(Whiteboard: [apps watch list1])

Attachments

(4 files)

+++ This bug was initially created as a clone of Bug #429589 +++
 
 DEFECT DESCRIPTION:
 [Facebook]Cannot view videos on Facebook
 
 REPRODUCING PROCEDURES:
 1.connect to phone-wifi2
 2.click Facebook icon,and log in 
 3.menu->News feed->view the news which contains videos,click the "Play" icon, the video does not start plays--KO
 
 EXPECTED BEHAVIOUR:
 3.click the play icon, the video can play normally.
 
 ASSOCIATE SPECIFICATION:
 
 TEST PLAN REFERENCE:
 
 TOOLS AND PLATFORMS USED:
 
 USER IMPACT:
 
 REPRODUCING RATE:5/5
 
 For FT PR, Please list reference mobile's behavior:
 For martell, browse the m.facebook.com,can play the video of News feed.
 
 ++++++++++ end of initial bug #429589 description ++++++++++
 
 AU_LINUX_GECKO_ICS_STRAWBERRY_V1.01.00.01.19.044
 Firefox os  v1.0.1
 Mozilla build ID: 20130319070203
blocking-b2g: --- → tef?
This sounds bad. I need to know:

1. What is the video specifically in question?
2. Does this happen with all videos on facebook?
3. Can you attach a logcat?
Component: Gaia → General
(In reply to comment #1)
 > Comment from Mozilla:This sounds bad. I need to know:
 > 1. What is the video specifically in question?
 > 2. Does this happen with all videos on facebook?
 > 3. Can you attach a logcat?
 1.The video is uploaded by users.refer to screenshot
 2.yes,it happens with all videos,click the \"Play\"icon, it just blink and does not start play.
 3.refer to the attached netlog.
Created an attachment (id=375154)
 screenshot
Attached image screenshot β€”
Created an attachment (id=375154)
 screenshot
Created an attachment (id=375158)
 netlog of facebook
Attached file netlog of facebook β€”
Created an attachment (id=375158)
 netlog of facebook
is this a facebook website problem?
Flags: needinfo?(bfrancis)
Keywords: qawanted
I think we should probably also check if it's flash or some other format as well.
video seems to play if it's webm, though it's choppy.

youtube flash launches the video app and then you have to click play to have it play the video in the video app

Could we get the link to the video please?  It might be the video type itself?


Gecko  http://hg.mozilla.org/releases/mozilla-b2g18/rev/879324d41588
Gaia   e7e7c1a473b4069544f2dad779b1c9b1bab91663
BuildID 20130327070202
Version 18.0
Unagi
This might be a buri bug.  I also tried on unagi for 1.0.1 and I cannot replicate.  webm video seems to play smoother on 1.0.1?  ( Perhaps less apps are open. )

Gecko  http://hg.mozilla.org/releases/mozilla-b2g18_v1_0_1/rev/4931ec89ebbe
Gaia   c33b1f8b60edc223ba86dd22f912effee990132a
BuildID 20130327070203
Version 18.0
Please provide the link to the video.
Flags: needinfo?(sync-1)
Keywords: qawanted
On Buri, all the videos can not be played. No response when press the play button on the video, try this:
http://fbcdn-video-a.akamaihd.net/hvideo-ak-prn1/v/757011_234040653402221_1745554848_n.mp4?oh=5b75e306fe2a1d3050b118c6f50a721e&oe=5155A78E&__gda__=1364608906_ccf6709a0272c5a1138b182bc607f583
Flags: needinfo?(sync-1)
(In reply to comment #9)
 > Comment from Mozilla:Please provide the link to the video.
 
 http://video.ak.fbcdn.net/hvideo-ak-ash3/v/763338_446555578758352_1308239741_n.mp4?oh=28d833e34d942c9b56e3e803a2ec480a&oe=51544658&__gda__=1364478477_efdbbd9877d92055f00c64a014fd4831
 
 The video url.
 It can play successfully on Telsa orange.
I cannot play videos embedded in FB. 

Please note that I can play videos linked to youtube through Facebook.

Naoki, can you try to reproduce it again?
Flags: needinfo?(nhirata.bugzilla)
I think these links are flash?  I can reproduce with flash videos.

Gecko  http://hg.mozilla.org/releases/mozilla-b2g18/rev/68c8a883cfc0
Gaia   1c38c91bb16f2bf0d5066c4787d2249463f61bb3
BuildID 20130402070204
Version 18.0
Unagi

Gecko  http://hg.mozilla.org/releases/mozilla-b2g18_v1_0_1/rev/ccec751a468e
Gaia   ee0bef61c0a25c806dd1eec5a4e047bc418a5f73
BuildID 20130402070202
Version 18.0
Flags: needinfo?(nhirata.bugzilla)
The links provided didn't work for me, I tried pointing to vimeo instead and I can reproduce.  Once one of those links are clicked, then the ones that do work for me no longer work.
Speaking with dcoloma via irc, it looks like there needs to be testing done on different formats on facebook.  Some videos will show, others will not.

Playing a video will work within the browser itself; on facebook's webpage, the video does not play:
https://www.facebook.com/photo.php?v=138773492971484&set=vb.100005165014711&type=3&theater

If you long tap on the video, and then open in a new tab, the video will play.

Changing the UA to android seems to allow it to play.  Looks like a possible UA issue?  We should probably test w/ other videos other than the mp4 format, webm, and flash...
Attached is a script to change user agents courtesy of AaronMT.

chmod +x the file, and run the script : ./changeUA.sh android 
to set to android UA.
Component: General → Mobile
Product: Boot2Gecko → Tech Evangelism
Version: unspecified → Firefox 18
I don't know whether it's a Facebook web site problem, sorry. As has already been stated, Flash video isn't expected to work but if Facebook are using HTML5 video then the videos should play.
Flags: needinfo?(bfrancis)
(In reply to Ben Francis [:benfrancis] from comment #19)
> I don't know whether it's a Facebook web site problem, sorry. As has already
> been stated, Flash video isn't expected to work but if Facebook are using
> HTML5 video then the videos should play.

It seems they are HTML5 videos. Ben, do you know who could help to check what is happening here?
Flags: needinfo?(bfrancis)
We could land this as-is, but bear in mind that if we take the direction described in the meta bug (bug 848371) and this thread https://groups.google.com/d/msg/mozilla.dev.gaia/_gxHb_0RjTw/o_z_kEw4X-YJ we may have to re-factor it in future.
Flags: needinfo?(bfrancis)
Ignore comment #21, wrong bug.

We'd need to find someone from the platform team who works on video and I'm afraid I'm not sure who that is.
I asked in IRC and was told  maybe doublec or "edwin on #media"
Images don't display in Facebook on Firefox OS for me either. Is it a related issue?
Is there any way to view the source of the page served to Firefox OS for the URL in comment 17? It looks like the page has no HTML video on it and is just a link to an MP4 file, which is why long pressing takes you to it. Not sure why a single click on it doesn't work which is why I'd like to see the source.
(In reply to Chris Double (:doublec) from comment #25)
> Is there any way to view the source of the page served to Firefox OS for the
> URL in comment 17? It looks like the page has no HTML video on it and is
> just a link to an MP4 file, which is why long pressing takes you to it. Not
> sure why a single click on it doesn't work which is why I'd like to see the
> source.

Changing the UA in nightly provides me the following snippet (the vidoe cannot be played either), does it help?

<div class="storyAttachmentMedia">
  <div class="_6qj" data-sigil="touchable videoThumb">
     <img src="http://vthumb.ak.fbcdn.net/hvthumb-ak-prn1/158587_138773602971473_138773492971484_59181_1246_b.jpg" class="_6ql img" height="175">
     <i class="img _6qk img" style="background-image: url(&quot;http://static.ak.fbcdn.net/rsrc.php/v2/yL/r/MFF1BhGOQ7Y.png&quot;);background-repeat:no-repeat;background-size:100% 100%;-webkit-background-size:100% 100%;width:72px;height:72px;">
     </i>
     <video src="http://video.ak.fbcdn.net/hvideo-ak-frc1/v/759861_138773572971476_781150888_n.mp4?oh=2bcafb35bdfb19ba38b0d94c2e339eab&amp;oe=51643E65&amp;__gda__=1365524461_27e2606586a557a0f255248e88574429" class=" _6qh" id="mInlineVideoPlayer" controls="">
     </video>
  </div>
</div>
<div class="storyAttachmentTitle">3 de abril de 2013 6:41</div>
<div class="clear"></div>
Flags: needinfo?(chris.double)
Can it be related with https://bugzilla.mozilla.org/show_bug.cgi?id=857510?
See Also: → 857510
When testing as per comment 26, in Firefox NIghtly I get the following log in the console:

"--
[20:23:31.561] HTTP "Content-Type" of "video/mp4" is not supported. Load of media resource http://video.ak.fbcdn.net/hvideo-ak-frc1/v/759861_138773572971476_781150888_n.mp4?oh=6c77ffffe979a1605f874bd006d179a4&oe=516476A5&__gda__=1365538861_9d2e6a12e4abc81a68a69f05f279c210 failed."
Using a Firefox Nightly build with H.264 support (Linux using Gstreamer) and with the user agent set to the B2G user agent the videos play.
Flags: needinfo?(chris.double)
(In reply to Chris Double (:doublec) from comment #29)
> Using a Firefox Nightly build with H.264 support (Linux using Gstreamer) and
> with the user agent set to the B2G user agent the videos play.

So, any idea why this does not work on FirefoxOS?
Flags: needinfo?(chris.double)
>  ++++++++++ end of initial bug #429589 description ++++++++++
>  
>  AU_LINUX_GECKO_ICS_STRAWBERRY_V1.01.00.01.19.044
>  Firefox os  v1.0.1
>  Mozilla build ID: 20130319070203

In FirefoxOS v1.01, normal apps and web pages can not play mp4 videos. It is a restriction of FirefoxOS. Only some certified apps(camera app, video app) can play mp4 videos. 

In Bug 803471, the restriction is removed. It is enabled from Firefox OS v1.1. I cofirmed that the video could be played on FirefoxOS v1.1 on unagi.
Why is this restriction enforced?
Flags: needinfo?(chris.double) → needinfo?(sotaro.ikeda.g)
In v1.01, hw codec is directly loaded within app's process. It need very high privilege to app's process. It could be a very high security risk. Therefore it is permitted only to some certified apps. software codec is disabled in Bug 834150.
Flags: needinfo?(sotaro.ikeda.g)
https://github.com/sotaroikeda/firefox-diagrams/wiki/Firefox-Diagrams

In the above url there are following diagrams. They might help to understand the difference between v1.1 and v1.01
- nsMediaOmxDecoder(Firefox OS v1.1 gonk)
- nsMediaOmxDecoder(Firefox OS v1.01 gonk)
For youtube playback, Firefox OS implements a dedicated url hook. And playing videos by using video app.
Whiteboard: [apps watch list1]
Chris, where you aware of this? It sound like at this stage this would be a new feature request, but it is very unfortunate we do not support this.
Flags: needinfo?(clee)
For background See Bug 791164 and  bug 793034.
Based on those comments I'd say is tef-
Component: Mobile → General
Product: Tech Evangelism → Boot2Gecko
Version: Firefox 18 → unspecified
blocking-b2g: tef? → -
hi,I want to know that if you fix this bug?
Component: General → Mobile
Product: Boot2Gecko → Tech Evangelism
Version: unspecified → Trunk
Jason, my understanding is that this bug is due to a limitation in Firefox OS v1.0.1. This same limitation has been fixed in v1.1. If this is the case, I don't see that there is a request for Facebook. We should mark this bug as a dup of the h.264 hardware bug and note that it is fixed in v1.1. Do you agree?
(In reply to Lawrence Mandel [:lmandel] from comment #40)
> Jason, my understanding is that this bug is due to a limitation in Firefox
> OS v1.0.1. This same limitation has been fixed in v1.1. If this is the case,
> I don't see that there is a request for Facebook. We should mark this bug as
> a dup of the h.264 hardware bug and note that it is fixed in v1.1. Do you
> agree?

In the general case, I would agree. But we've got a problem in the fact that there are stiff requirements for apps preinstalled on the device to be high quality.

Bouncing this over to Preinstalled B2G Apps given that from a compat perspective, I think this is less important to us right now. But there's still the open concern about the high quality app requirement for preinstalls.

Product team - what should we do here?
Component: Mobile → Preinstalled B2G Apps
Flags: needinfo?(clee) → needinfo?(ffos-product)
Daniel, I was aware of this, but given the high risk to make a change of this nature now for v1.0.1, this was the tradeoff we made.  It's definitely suboptimal, but given this is fixed in v1.1, we need to do our best to push all users to v1.1 asap when it becomes available.
Clearing needsinfo from product.
Flags: needinfo?(ffos-product)
so,what's your opinion?
I'm not sure who's opinion you're requesting but as Chris said in comment 42, this change is too risky for v1.0.1. As such, we should not block on this for v1.0.1. This issue has been fixed in v1.1.
Unless we want to try outreach to facebook here for 1.01 to use web activities, I'm arguing for a WONTFIX on this bug.
Blocks: 759986
Blocks: b2g-facebook
No longer blocks: 759986
Prioritized by Telefoncia for v1.1. Ok to close for v1.0.1
blocking-b2g: - → leo?
Shouldn't this already be working on 1.1? We support h264 media content viewed in web apps.
Amelie Kong,

Mozilla QA confirmed this should not be an issue in 1.1 .CAn you please renominate this if you are still able to reproduce this with the latest 1.1 build with STR.Thanks !
blocking-b2g: leo? → ---
Flags: needinfo?(mei.kong)
Blocks: 916311
No longer blocks: 916311
Assignee: nobody → hkirschner
Status: NEW → ASSIGNED
Updated app committed by FB for Oct 23 (WURFL 1.5)
Tested on a ZTE with build 20130828 and FFOS v1.1 and the problem is persisting where I tap on the play button, and the video does not play. Sometimes the video does start playing, but the big white play button gets stuck in the middle of the video.
Severity: normal → major
This bug is independent of 916201 (which refers specifically to the issue of the play button getting stuck on the screen and user not being able to pause the video)

Today I verified on a Keon Geeksphone device using FFOS v1.1 that videos uploaded directly to Facebook do not play when hitting the play button. 

Colby, could you please provide a fix date for this bug?
Assignee: hkirschner → colby
Response from Colby@fb.com: I’m hoping to have a fix out for these next week, but that may be hindered by the holiday next week. I will keep you posted.
As of this week, all videos on Facebook should open in a new window on Firefox clients which should resolve this issue.
Colby, it's solved but if you put the device on landscape version the video is cut.See attachement: 2013-12-12-07-57-55
Attached image 2013-12-12-07-57-55.png β€”
Verified bug fixed on Helix device v1.1hd. Closing bug. Opening a new bug for Jose Enrique's comment #55 about the landscape problem.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: