Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TIMOB-16134-make sure that exception is caught while calling isPlaying #5855

Merged
merged 1 commit into from Jul 23, 2014

Conversation

salachi
Copy link
Contributor

@salachi salachi commented Jun 26, 2014

https://jira.appcelerator.org/browse/TIMOB-16134

Looking at the Android source for mediaplayer, the error message about "subtitle controller" is just a information message saying that the subtitle controller is not set and doesn't cause any problem. The real issue is correctly described in TC-4236. If the timer event get executed during media player is releasing, calling isPlaying will throw IllegalStateException as described in the Android documentation.
The changes are
Just like in other places, handle the exception while calling isPlaying.
Stop the progress timer in 'onDestroy' and 'release' before media player is released.

@vishalduggal
Copy link
Contributor

Code Reviewed and ACCEPTED

vishalduggal added a commit that referenced this pull request Jul 23, 2014
TIMOB-16134-make sure that exception is caught while calling isPlaying
@vishalduggal vishalduggal merged commit 3e262ae into tidev:master Jul 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants