added support for media completed event