Handle ended state better in some occasions
Handle ended state better in some occasions

Fixes https://github.com/bfred-it/iphone-inline-video/issues/23

bfred-it/iphone-inline-video,bfred-it/iphone-inline-video