Closed Bug 879881 Opened 11 years ago Closed 11 years ago

[Camera][MMS] Limit size of "pick" activity captured video for MMS

Categories

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

All
Gonk (Firefox OS)
defect

Tracking

(blocking-b2g:leo+, b2g18 fixed, b2g-v1.1hd fixed)

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

People

(Reporter: gnarf, Assigned: daleharvey)

References

Details

(Whiteboard: TaipeiWW)

Attachments

(1 file, 1 obsolete file)

Per https://bugzilla.mozilla.org/show_bug.cgi?id=868225#c2:

- For video capture, an MMS Video Limit mode is supported The camera application must support video capture that stops automatically before the file reaches a maximum size to match the handset's maximum MMS attachment file size, being configurable as part of the variant process according to the network provider's network limits.

The SMS side will add a "maxFileSize" property to the "pick" MozActivity, we need to make sure that the video capture in camera uses this.
blocking-b2g: leo? → leo+
Assignee: nobody → dale
share some investigation,

currently camera app did not support pick video,
and not support open in record mode yet
(camera always open as camera mode, tap video icon to switch to record mode).

bug 853349 'open in record mode when trigger camera with 'record' activity by video type' is similar to that 'pick' video action.
Attached file Pointer to GH (obsolete) (deleted) —
I used the label 'maxFileSizeBytes' to be consistent with previous usage, I also think its clearer
Attachment #759577 - Flags: review?(dflanagan)
Comment on attachment 759577 [details]
Pointer to GH

r=djf for github commit 3ce908c55452cfb26d8e25408a0aae8e962e5344
Attachment #759577 - Flags: review?(dflanagan) → review+
Hrm, we already committed maxFileSize as a key in SMS - I suppose we can sneak the word "Bytes" in there...  I think that is a tad redundant though don't you?  What else would you measure FileSize in?
(In reply to Corey Frang (@ conference until Jun 14) [:gnarf] [:gnarf37] from comment #4)
>
> Hrm, we already committed maxFileSize as a key in SMS - I suppose we can
> sneak the word "Bytes" in there...  I think that is a tad redundant though
> don't you?  What else would you measure FileSize in?

Kilobytes? Megabytes?

My intention was for it to parallel maxVideoLengthMs member, which is much more ambiguous without the units on it.
Depends on: 853349
Does this need checkin-needed added? What are we waiting on if this is r+?
Flags: needinfo?(dale)
It is waiting on https://bugzilla.mozilla.org/show_bug.cgi?id=853349 to be landed, its a fairly minor ammendment that can be committed as soon as that patch lands (I will probably do the patch for sms at the same time once it has landed)
Flags: needinfo?(dale)
Whiteboard: TaipeiWW
Attached file Pointer to GH (deleted) —
The previous patch was r+'d, but this has some further changes so requesting new review.
Attachment #759577 - Attachment is obsolete: true
Attachment #767026 - Flags: review?(dflanagan)
r=djf for github commit 882778c

You didn't attached that github PR to this bug, so I can't actually set an r+ flag here.

The code looks good. I was unable to actually exercise it, however. It looks like maybe the contacts app is not actually setting a size limit?  I'm using gaia master with b2g18, so my build may be incorrect.

If you've tested it and it works, then go ahead and land.
Comment on attachment 767026 [details]
Pointer to GH

Mid-air collision with the new PR attachment. Now I can set a real r+
Attachment #767026 - Flags: review?(dflanagan) → review+
Marking branch status per comment 11
1.1hd: 05ff7b42362ac81216921b97f1f606568156dfb1
Attachment mime type: text/plain → text/x-github-pull-request
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: