incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Berk, Matthew P" <>
Subject RE: Question about Platform development
Date Wed, 15 Aug 2012 17:14:21 GMT
Ah, great to hear!
Onto the question...

In the incubator-cordova-js  repo, in lib/common/plugin/Media.js, it defines Media.onStatus.
When should this function be called? I call it and send the correct arguments when the media
is stopped, when the duration is found, and when the position is found. However, I am unsure
of what to do for two situations. when should I call it for a media error? It seems like the
code already handles the errors and calling this function will add unneeded calls. 
For the second situation, the code lists:
	if (msg === Media.MEDIA_STATE) {
		if (value === Media.MEDIA_STOPPED) {
			if (media.successCallback) {
		if (media.statusCallback) { // HERE
For the noted (// HERE) 'if' statement, when should I call this? The api does not describe
it, and I have not found any clear definition of it. Any suggestions?

-----Original Message-----
From: [] On Behalf Of Brian LeRoux
Sent: Wednesday, August 15, 2012 9:57 AM
Subject: Re: Question about Platform development

right here!

On Wed, Aug 15, 2012 at 9:48 AM, Berk, Matthew P <> wrote:
> I am currently working on adding Win8 as a platform. I have some questions about the
APIs. Where would be the best place to ask these questions?
> Thanks for the help!
> -Matt Berk

View raw message