[null,null,["Last updated 2024-09-18 UTC."],[[["\u003cp\u003e\u003ccode\u003eClipEndedEvent\u003c/code\u003e provides data for the \u003ccode\u003ecast.framework.events.EventType.CLIP_ENDED\u003c/code\u003e event, signaling when a media clip has finished playing.\u003c/p\u003e\n"],["\u003cp\u003eIt includes \u003ccode\u003ecurrentMediaTime\u003c/code\u003e indicating the playback time when the clip ended and \u003ccode\u003eendedReason\u003c/code\u003e specifying why the clip ended (e.g., naturally, skipped, etc.).\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can access these properties to understand the context of the clip ending and implement corresponding logic in their web receiver application.\u003c/p\u003e\n"]]],["The `ClipEndedEvent` class provides data for the `CLIP_ENDED` event. It's initialized with `currentMediaTime`, a number representing the clip's end time in seconds, and an optional `endedReason`, specifying why the clip ended. The class also contains two constant properties: `currentMediaTime`, the end time in seconds, and `endedReason`, indicating the reason for clip termination. This is essential data in the event the event `CLIP_ENDED` is triggered.\n"],null,["# Class: ClipEndedEvent\n\ncast.[framework](/cast/docs/reference/web_receiver/cast.framework).[events](/cast/docs/reference/web_receiver/cast.framework.events).ClipEndedEvent\n===================================================================================================================================================\n\nclass static\n\nEvent data for the `cast.framework.events.EventType.CLIP_ENDED` event.\n\nConstructor\n-----------\n\n### ClipEndedEvent\n\nnew\nClipEndedEvent(currentMediaTime, endedReason)\n\n| #### Parameter ||\n|------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| currentMediaTime | number |\n| endedReason | Optional [cast.framework.events.EndedReason](/cast/docs/reference/web_receiver/cast.framework.events#.EndedReason) The reason the clip ended Value must not be null. |\n\nProperties\n----------\n\n### currentMediaTime\n\nconstant\n\nnumber\n\nThe time in media (in seconds) when clip ended.\n\n### endedReason\n\nconstant\n\n(non-null [cast.framework.events.EndedReason](/cast/docs/reference/web_receiver/cast.framework.events#.EndedReason) or undefined)\n\nThe reason the clip ended."]]