deanm / plask

Plask is a multimedia programming environment.
www.plask.org
Other
443 stars 38 forks source link

Add AVPlayer onended callback #34

Open vorg opened 9 years ago

vorg commented 9 years ago

What would be a good way to know that playback of video or audio has finished? The currentTime value jumps to 0 after file is finished so it's hard to know that we've reached the end.. Can we emit some JS event on AVPlayerItemDidPlayToEndTimeNotification?