Headphones unplugged during video playback: app stucked

Hi

In my app I play a video to explain children how it works.

This app is for classroom, and children use headphones.

If the headphones is unplugged during video playback, the video stops and the app is stucked.

I’ve got this problem with native.newVideo and media.playVideo.

Any help would be appreciated

Thank you

Best

Olivier

In other words:

Is there a way to detect the plugged/unplugged event on headphone Jack in Corona SDK?

There is no way in Corona to detect that. However since you have enterprise, there is probably a native way to do so.

See: http://stackoverflow.com/questions/4452441/is-there-an-event-for-when-the-headphones-are-unplugged

And: http://stackoverflow.com/questions/19338612/doing-something-if-it-detects-that-headphones-are-plugged-in

This could be a useful plugin!

Rob

Thank you Rob

Olivier

In other words:

Is there a way to detect the plugged/unplugged event on headphone Jack in Corona SDK?

There is no way in Corona to detect that. However since you have enterprise, there is probably a native way to do so.

See: http://stackoverflow.com/questions/4452441/is-there-an-event-for-when-the-headphones-are-unplugged

And: http://stackoverflow.com/questions/19338612/doing-something-if-it-detects-that-headphones-are-plugged-in

This could be a useful plugin!

Rob

Thank you Rob

Olivier