Event listeners allow you to register a callback with a player when a certain state is reached. Currently two events are supported:
- video_loaded: when the video (in particular, the Flash file) has been completely downloaded.
- video_complete: when the end of the video has been reached.
Event listeners may be added and removed dynamically.