Closed Bug 870158 Opened 11 years ago Closed 11 years ago

[MMS] Implement attachment of generic media

Categories

(Firefox OS Graveyard :: Gaia::SMS, defect, P1)

x86
Linux
defect

Tracking

(blocking-b2g:leo+, b2g18 fixed)

RESOLVED FIXED
1.1 QE3 (26jun)
blocking-b2g leo+
Tracking Status
b2g18 --- fixed

People

(Reporter: jugglinmike, Assigned: jugglinmike)

References

Details

Attachments

(1 file)

The latest MMS UI specification includes an "attach" button that allows the user to attach media of any type. Currently, the `pick` MozActivity does not support selecting generic media. Extend the `pick` activity once the MozActivity API supports it.
Depends on: 870157
As discussed in Bug 870157, the `pick` MozActivity does indeed support multiple media types. The API for requesting multiple types is specification of an array of type strings, e.g.:

```
new MozActivity({
  name: 'pick',
  data: {
    type: ['image/*', 'video/*', 'audio/*']
  }
})
```
Blocks: 868225
Blocks: 868190
Depends on: 879452
We also need to add "maxFileSize" to the data for this activity to support the video capture clause in bug 868225 - see bug 878042
Severity: normal → blocker
blocking-b2g: --- → leo?
Priority: -- → P1
Target Milestone: --- → 1.1 QE3
We should also try to tackle the "file too big" scenarios in this patch
blocking-b2g: leo? → leo+
Assignee: nobody → mike
Attachment #759899 - Flags: review?(gnarf37)
Blocks: 880813
I've created Bug 880813 to track the changes surrounding maximum file size that Corey requested in comment 2 and comment 3.
Comment on attachment 759899 [details] [diff] [review]
Implement attachment of generic media

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

r=me.

We know there are some problems here, but most of them are not gaia's fault.

After a short discussion with Dietrich about this in IRC, we have decided to land this and get it on train ASAP so that QA and the gecko team can both test with these attachment types enabled.
Attachment #759899 - Flags: review?(gnarf37) → review+
Landed at commit fbbd63bee46225a1bc6ea7a62daa296802825863

By enabling audio and video, Corey and I identified two issues that we believe to be at the Gecko layer:

- Bug 880825 - [MMS] Unable to Open audio and video immediately after attaching
- Bug 880828 - [MMS] Sending audio and video attachments fails

Thanks for the review, Corey!
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
I was not able to uplift this bug to v1-train.  If this bug has dependencies which are not marked in this bug, please comment on this bug.  If this bug depends on patches that aren't approved for v1-train, we need to re-evaluate the approval.  Otherwise, if this is just a merge conflict, you might be able to resolve it with:

  git checkout v1-train
  git cherry-pick -x  fbbd63bee46225a1bc6ea7a62daa296802825863
  <RESOLVE MERGE CONFLICTS>
  git commit
Flags: needinfo?(mike)
Uplifted fbbd63bee46225a1bc6ea7a62daa296802825863 to:
v1-train: 928c27e714f447b468fbd05e8f7b76024cc8648e
Flags: needinfo?(mike)
Thanks for resolving the conflict, Corey!
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: