You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by Becky Gibson <gi...@gmail.com> on 2012/03/06 18:20:54 UTC

Unified JS - Media create api

In the Unified JS implementation, there is now an exec call out to a Media
create api in the media constructor.   This is new.  Previously, the Media
constructor just created the JS Media object - there was no call out to the
device.   Android has not implemented this create api, but just returns
silently.  BlackBerry doesn't implement the Media object.  iOS doesn't need
the create api, either.   However, iOS is not currently implemented to
ignore calls to api's that do not exist.

Is there a reason this was added?   One could argue that the device could
verify the file supplied however, if you don't know if the next call is
going to be play or record, what would you validate?

Any objections to removing this?

-becky

Re: Unified JS - Media create api

Posted by Filip Maj <fi...@adobe.com>.
No objections - if not needed axe it!

On 3/6/12 9:20 AM, "Becky Gibson" <gi...@gmail.com> wrote:

>In the Unified JS implementation, there is now an exec call out to a Media
>create api in the media constructor.   This is new.  Previously, the Media
>constructor just created the JS Media object - there was no call out to
>the
>device.   Android has not implemented this create api, but just returns
>silently.  BlackBerry doesn't implement the Media object.  iOS doesn't
>need
>the create api, either.   However, iOS is not currently implemented to
>ignore calls to api's that do not exist.
>
>Is there a reason this was added?   One could argue that the device could
>verify the file supplied however, if you don't know if the next call is
>going to be play or record, what would you validate?
>
>Any objections to removing this?
>
>-becky