Closed Bug 1084441 Opened 10 years ago Closed 9 years ago

Fix up test_can_play_type_mpeg.html for Android

Categories

(Core :: Audio/Video, defect)

All
Android
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla39
Tracking Status
firefox39 --- fixed

People

(Reporter: snorp, Assigned: snorp)

Details

Attachments

(1 file, 2 obsolete files)

Bug 1014614 adds fragmented MP4 support for Android Jelly Bean and higher. We need to handle that correctly in test_can_play_type_mpeg.html
OS: Mac OS X → Android
Hardware: x86 → All
Assignee: nobody → snorp
Status: NEW → ASSIGNED
Attachment #8507002 - Flags: review?(cpearce)
Attachment #8507002 - Flags: review?(cpearce) → review+
Will we be using the MP4Reader on Android on our build/mochitest machines? With this change, will we no longer have test coverage for the old MP4 backend on android?
(In reply to Chris Pearce (:cpearce) from comment #2)
> Will we be using the MP4Reader on Android on our build/mochitest machines?
> With this change, will we no longer have test coverage for the old MP4
> backend on android?

No, we actually have no Jelly Bean devices in our infrastructure, so we can't test the new code currently.
This version should test both the old omx-plugin backend as well as the new one (whichever is enabled)
Attachment #8507002 - Attachment is obsolete: true
Attachment #8507125 - Flags: review?(cpearce)
This patch fails against current m-c, which is good, I think:

https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=f4d979f67638

Here's a run that has the fix from bug 1082550, which should be green (no results yet):

https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=f5d2ec0e76e1
Summary: Fix up test_can_play_type_mpeg.html for Android Jelly Bean and later → Fix up test_can_play_type_mpeg.html for Android
Attachment #8507125 - Flags: review?(cpearce) → review+
(In reply to James Willcox (:snorp) (jwillcox@mozilla.com) from comment #3)
> (In reply to Chris Pearce (:cpearce) from comment #2)
> > Will we be using the MP4Reader on Android on our build/mochitest machines?
> > With this change, will we no longer have test coverage for the old MP4
> > backend on android?
> 
> No, we actually have no Jelly Bean devices in our infrastructure, so we
> can't test the new code currently.

Shipping without regression testing in place seems unwise to me.
(In reply to Chris Pearce (:cpearce) from comment #6)
> (In reply to James Willcox (:snorp) (jwillcox@mozilla.com) from comment #3)
> > (In reply to Chris Pearce (:cpearce) from comment #2)
> > > Will we be using the MP4Reader on Android on our build/mochitest machines?
> > > With this change, will we no longer have test coverage for the old MP4
> > > backend on android?
> > 
> > No, we actually have no Jelly Bean devices in our infrastructure, so we
> > can't test the new code currently.
> 
> Shipping without regression testing in place seems unwise to me.

Indeed. We are working on getting mochitest (or rather, a subset) going on Autophone, though, which should cover this area.
My try run that enabled the MP4 checks for OmxPlugin failed. Some logcat messages indicate that maybe OMX is not present or busted on the pandaboards:

12:39:58     INFO -  01-01 00:00:14.992 E/        ( 1294): android::TIOMXPlugin::TIOMXPlugin(): failed to load libOMX_Core.so
12:39:58     INFO -  01-01 00:00:14.992 E/        ( 1294): mLibHandle is NULL!
12:39:58     INFO -  01-01 00:00:14.992 E/OMXMaster( 1294): OMX plugin failed w/ error 0x80001001 after registering 0 components

So...that's not good. We're going to want to run those media mochitests in Autophone on everything.
I'm going to wait until we have something running our tests than can actually play mp4 before doing something here.
Attachment #8507125 - Attachment is obsolete: true
Autophone is running video tests for the new stuff available on Jelly Bean and above. Make sure we assert that MP4 works there.
Comment on attachment 8571599 [details] [diff] [review]
Test for ability to  play MP4 on Android Jelly Bean and higher

Review of attachment 8571599 [details] [diff] [review]:
-----------------------------------------------------------------

I don't see a androidVersion variable defined anywhere, so I'll assume it's defined in something included...
Attachment #8571599 - Flags: review?(cpearce) → review+
(In reply to Chris Pearce (:cpearce) from comment #13)
> Comment on attachment 8571599 [details] [diff] [review]
> Test for ability to  play MP4 on Android Jelly Bean and higher
> 
> Review of attachment 8571599 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> I don't see a androidVersion variable defined anywhere, so I'll assume it's
> defined in something included...

Yeah, actually I think that's wrong now that I'm looking for where that would be defined...
https://hg.mozilla.org/mozilla-central/rev/9d8115c1906a
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: