How to set and call titleEvent and ChapterEvent?

I followed the spec example (Z.6) and put a titleEndHandler(evt) in my script file. And added EventListener (addEventListener("title_end", titleEndHandler, false) on top of my script file. But after my title play through, the event is not called. I thought the event should automatically fired. Do I need to do anything on the playlist too



Answer this question

How to set and call titleEvent and ChapterEvent?

  • JRQ

    The event is automatically fired when you leave the title - either by playing through to the end or jumping into a new title.

    How are you confirming that your titleEndHandler function isn't being triggered

    Have you added any other event handlers Are they firing


  • j2associates

    Also make sure it is a PlaylistApplication -- if it is a title application it will probably be shut down before the end event is fired.

  • How to set and call titleEvent and ChapterEvent?