You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/11/14 18:53:55 UTC

[GitHub] wspresto commented on issue #194: onDestroy and dealloc ambiguity

wspresto commented on issue #194: onDestroy  and dealloc ambiguity
URL: https://github.com/apache/cordova-plugin-media/issues/194#issuecomment-438776438
 
 
   Sure. 
   For Android specifically, When the success callback is triggered, there is client JavaScript code that is executed on the WebCore thread. This JS code is unaware of the _reason_ why the success callback was triggered.  The reason could be either that the playback has ended because EOF was reached, **OR** that the underlying Operating System signaled the activity to be "destroyed".
   
   These are 2 distinct reasons that both trigger the success callback equally. I will be submitting a PR shortly in order to suggest a solution, but I wanted to get feedback first.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org