Events related with the youtube player are emitted inside a . function to make sure they are run in the Angular context