Check that the session is running before trying to process frames - fixes crash when backgrounding app
Notify delegate that play has finished in more cases
Change delegate to call back in end processing
Merge pull request #1165 from jjxtra/master

Fixes for crash when backgrounding app and for delegate callback for movie player