Working on https://issues.apache.org/jira/browse/CB-3783, it appears that
there is no documentation on how the media plugin should handle subsequent
calls of the same function.

An example would be calling my_media.play() multiple times when the
my_media is already playing. Should this be swallowed by the plugin and
ignored? Should we respond with a
MediaError<http://cordova.apache.org/docs/en/3.0.0/cordova_media_media.md.html#MediaError>.MEDIA_ERR_ABORTED
and a message saying the media is already playing? What about subsequent
calls to my_media.pause() when the media is already paused?

Was just wondering what other platforms have implemented for this and what
the proper way of handling subsequent calls is.

~Benn

Reply via email to