Mohamad A. Hasan
Mohamad A. Hasan

Reputation: 91

Phonegap Alternative

Is there an alternative for phonegap that supports changing playback rate for media (esp. audio)?

it looks that they don't have a property for that: http://docs.phonegap.com/en/1.0.0/phonegap_media_media.md.html

Upvotes: 0

Views: 1242

Answers (1)

mzedeler
mzedeler

Reputation: 4369

The audio and video elements in HTML5 supports changing playback rates according to the spec. Unfortunately, this doesn't work in all players. I've managed to make it work everywhere except on Android and I expect wide browser support to be available soon, since the android developer team is working on it.

If you get into the nitty gritty details, note that setting playback rate only works on all platforms after you have received a timeupdate event where the currentTime attribute has been set to a nonzero number, except on iOS where it only works if currentTime is zero (so to make it work cross platform, you have to set it twice).

Upvotes: 1

Related Questions