Closed
Bug 1166169
Opened 9 years ago
Closed 9 years ago
[FFOS] [Regression] MSE cannot work on B2G
Categories
(Core :: Audio/Video, defect)
Tracking
()
RESOLVED
FIXED
mozilla41
Tracking | Status | |
---|---|---|
firefox41 | --- | fixed |
People
(Reporter: bwu, Assigned: bwu)
References
Details
Attachments
(1 file, 1 obsolete file)
This is a regression bug since it can work well previously. I am going to check what is the cause.
Assignee | ||
Comment 1•9 years ago
|
||
Repro steps: 1. Go to youtube and change it to be desktop version via setting. 2. Choose one video to play 3. Once it plays, long press the video frame and select "stats for nerds". 4. Check the "DASH" field. Actual result: It shows "no (18)" Expected result: It should show "yes"
Assignee | ||
Comment 2•9 years ago
|
||
One of root causes is MOZ_GONK_MEDIACODEC is not defined in gecko/dom/media/fmp4 which makes IsGonkMP4DecoderAvailable() return false[1]. This patch is to add MOZ_GONK_MEDIACODEC to configure.in and add the define in its required makefile. [1]https://dxr.mozilla.org/mozilla-central/source/dom/media/fmp4/MP4Decoder.cpp?from=MP4Decoder.cpp&case=true#199
Attachment #8607935 -
Flags: review?(mh+mozilla)
Attachment #8607935 -
Flags: review?(jyavenard)
Assignee | ||
Updated•9 years ago
|
Blocks: MSE-FxOS
Summary: [FFOS] MSE cannot work on B2G → [FFOS] [Regression] MSE cannot work on B2G
Assignee | ||
Comment 3•9 years ago
|
||
(In reply to Blake Wu [:bwu][:blakewu] from comment #2) > Created attachment 8607935 [details] [diff] [review] > Add-MOZ_GONK_MEDIACODEC-in-configure-and-define-it-in-moz.build.patch > > One of root causes is MOZ_GONK_MEDIACODEC is not defined in > gecko/dom/media/fmp4 which makes IsGonkMP4DecoderAvailable() return > false[1]. It looks like Bug 1163458 causes this.
Comment 4•9 years ago
|
||
As the PlatformDecoderModule can now be used outside FMP4, defining MOZ_GONK_MEDIACODEC when MOZ_FMP4 wasn't defined caused a compilation on B2G L try run. So now, MOZ_GONK_MEDIACODEC is defined when: if CONFIG['MOZ_FMP4'] and CONFIG['ANDROID_VERSION'] >= '18'and CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': MOZ_FMP4 isn't defined on B2G L
Comment 5•9 years ago
|
||
Comment on attachment 8607935 [details] [diff] [review] Add-MOZ_GONK_MEDIACODEC-in-configure-and-define-it-in-moz.build.patch Review of attachment 8607935 [details] [diff] [review]: ----------------------------------------------------------------- I got compilation failure on B2G L when MOZ_GONK_CODEC was defined when MOZ_FMP4 wasn't. MOZ_FMP4 isn't set on B2G L. Here is an example: https://treeherder.mozilla.org/#/jobs?repo=try&revision=b4931df04bfa (which is what I changed to only set MOZ_GONK_CODEC when FMP4 is set) cpearce knows the build system much better than I do.
Attachment #8607935 -
Flags: review?(jyavenard) → review?(cpearce)
Assignee | ||
Comment 6•9 years ago
|
||
(In reply to Jean-Yves Avenard [:jya] from comment #5) > Comment on attachment 8607935 [details] [diff] [review] > Add-MOZ_GONK_MEDIACODEC-in-configure-and-define-it-in-moz.build.patch > > Review of attachment 8607935 [details] [diff] [review]: > ----------------------------------------------------------------- > > I got compilation failure on B2G L when MOZ_GONK_CODEC was defined when > MOZ_FMP4 wasn't. > MOZ_FMP4 isn't set on B2G L. > > Here is an example: > https://treeherder.mozilla.org/#/jobs?repo=try&revision=b4931df04bfa > (which is what I changed to only set MOZ_GONK_CODEC when FMP4 is set) Thanks for your info! I will test my patch and check how to fix this problem. Gonk's PDM is based on Android's MediaCodec (L supports, but MOZ_FMP4 is not enabled on it), so if MOZ_GONK_MEDIACODEC is not defined, the codes related to it should not be to build.
Assignee | ||
Comment 7•9 years ago
|
||
The build looks good for all versions. https://treeherder.mozilla.org/#/jobs?repo=try&revision=ecccd62a03c0
Assignee | ||
Comment 8•9 years ago
|
||
With this patch, attachment 8607935 [details] [diff] [review], MSE still cannot work well on Youtube; it continually shows the spinner which is similar to bug 1163227.
Depends on: 1163227
Comment 9•9 years ago
|
||
(In reply to Blake Wu [:bwu][:blakewu] from comment #8) > With this patch, attachment 8607935 [details] [diff] [review], MSE still > cannot work well on Youtube; it continually shows the spinner which is > similar to bug 1163227. To test if it's bug 1163227 you can set media.mediasource.format-reader.mp4 to false If it still doesn't play, it's unlikely to be due to 1163227
Assignee | ||
Comment 10•9 years ago
|
||
(In reply to Jean-Yves Avenard [:jya] from comment #9) > (In reply to Blake Wu [:bwu][:blakewu] from comment #8) > > With this patch, attachment 8607935 [details] [diff] [review], MSE still > > cannot work well on Youtube; it continually shows the spinner which is > > similar to bug 1163227. > > To test if it's bug 1163227 you can set media.mediasource.format-reader.mp4 > to false > > If it still doesn't play, it's unlikely to be due to 1163227 Thanks for this info. I found no matter I set media.mediasource.format-reader.mp4 false or true, that spinner does not continually show at first time, but if I refresh the browser, sometimes (repro rate: 25%) the spinner continually shows and playback will not start (have wait for over 5 mins). It maybe result from other cause, not bug 1163227. But would like to wait bug 1163227 to be fixed first and then continue to check further.
Comment 11•9 years ago
|
||
Comment on attachment 8607935 [details] [diff] [review] Add-MOZ_GONK_MEDIACODEC-in-configure-and-define-it-in-moz.build.patch Review of attachment 8607935 [details] [diff] [review]: ----------------------------------------------------------------- ::: configure.in @@ +5303,4 @@ > MOZ_EME=1 > fi; > > +if test "$MOZ_WIDGET_TOOLKIT" = "gonk" -a "$MOZ_FMP4" -eq "1" -a "$ANDROID_VERSION" -ge "18"; then replace "$MOZ_FMP4" -eq "1" with -n "$MOZ_FMP4"
Attachment #8607935 -
Flags: review?(mh+mozilla) → review+
Updated•9 years ago
|
Attachment #8607935 -
Flags: review?(cpearce) → review+
Assignee | ||
Comment 12•9 years ago
|
||
1. Have changes per comment 11. 2. Carry r+ from glandium and cpearce.
Attachment #8607935 -
Attachment is obsolete: true
Attachment #8609133 -
Flags: review+
Assignee | ||
Comment 13•9 years ago
|
||
Try server: https://treeherder.mozilla.org/#/jobs?repo=try&revision=e96559c059a5 https://treeherder.mozilla.org/#/jobs?repo=try&revision=047802b2b09d
Keywords: checkin-needed
Comment 14•9 years ago
|
||
https://hg.mozilla.org/integration/b2g-inbound/rev/d02884b7a126
Keywords: checkin-needed
Comment 15•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/d02884b7a126
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox41:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
Comment 16•9 years ago
|
||
Shouldn't we enable mochitests on b2g so regressions like this are caught on try run? Including webref tests.
Assignee | ||
Comment 17•9 years ago
|
||
(In reply to Jean-Yves Avenard [:jya] from comment #16) > Shouldn't we enable mochitests on b2g so regressions like this are caught on > try run? > Including webref tests. Yeah, we should and will. Bug 1107678 is intended to enable tests on b2g emulator KK which MSE and PDM can work on.
Assignee | ||
Comment 18•9 years ago
|
||
Bug 1168996 should have nothing to do with this bug.
No longer depends on: 1168996
You need to log in
before you can comment on or make changes to this bug.
Description
•