Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Record activity of camera: return value false

8 views
Skip to first unread message

emil...@gmail.com

unread,
May 7, 2013, 12:06:51 PM5/7/13
to
Hello,

this is my first post here, and I was not sure if this was the proper way to communicate. The issue is fairly simple: taking a look at apps/camera/manifest.webapp, I saw that the registered activities are:

"activities": {
"record": {
"filters": {
"type": ["photos", "videos"]
},
"disposition": "window"
},
"pick": {
"filters": {
"type": ["image/*", "image/jpeg"]
},
"returnValue": true,
"disposition": "inline",
"href": "/index.html#pick"
}
},

I was hoping to make a simple web app that allows the user to press a button, record a video and upload it. This is easy for pictures, using the "pick" activity. But the "record" activity lacks "returnValue: true", so after recording a video, it never goes back to the web app.

Is this the intended behavior? Is it going to be changed soon? or maybe the "pick" activity should also handle recording single videos?

Thanks, and sorry if this was not the appropriate channel.

Best regards,

Emilio

Jonas Sicking

unread,
May 8, 2013, 7:07:14 PM5/8/13
to emil...@gmail.com, dev-webapi
I think the intent of the "record" activity was to "switch to a recording app".

I think the right fix here is to expand the set of supported types for
the "pick" activity so that "video/*" is also supported.

/ Jonas

Jonas Sicking

unread,
May 14, 2013, 2:39:10 AM5/14/13
to Emilio Javier García Escobar, Emilio Javier García Escobar, dev-webapi
On Thu, May 9, 2013 at 1:42 AM, Emilio Javier García Escobar
<e.j.g...@me.com> wrote:
> Hello Jonas,
>
> as I mentioned in another mail, I think that the 'pick' activity has already been modified to support videos. Even if it is not supported yet in my physical development divide (1.0.1), I have been able to test it successfully in the simulator. The 'problem' is that the applications registered for that are "Videos" and "Gallery", but not "Gaia::Camera": you can 'pick' an already recorded video, but not a new one recorded 'on-demand'.

That's what I'm suggesting we should fix. The camera app should
support the "pick" activity for video types as well.

> I tried to file a bug about this in bugzilla, but it is still waiting moderator approval. I'm afraid I am not yet an experienced FirefoxOS developer ;-)

I don't know what you mean by this. Bugzilla doesn't require moderator
approval for filing bugs.

/ Jonas
0 new messages