[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-25 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,["cast.[framework](/cast/docs/reference/web_receiver/cast.framework).[events](/cast/docs/reference/web_receiver/cast.framework.events).ClipEndedEvent \nclass static\n\nEvent data for the `cast.framework.events.EventType.CLIP_ENDED` event.\n\nConstructor\n\nClipEndedEvent\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\ncurrentMediaTime \nconstant\n\nnumber\n\nThe time in media (in seconds) when clip ended.\n\nendedReason \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."]]