वह समय जब मीडिया खत्म हुआ (सेकंड में). सूची में मौजूद आइटम के लिए,
यह वैल्यू उस सूची के आइटम के समय को दिखाती है जो मौजूदा समय में चल रही है.
जहां 0 का मतलब है कि सूची में आइटम अभी शुरू हुआ है.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[[["\u003cp\u003e\u003ccode\u003eMediaFinishedEvent\u003c/code\u003e provides data for the \u003ccode\u003ecast.framework.events.EventType.MEDIA_FINISHED\u003c/code\u003e event, indicating the completion of media playback.\u003c/p\u003e\n"],["\u003cp\u003eIt includes the \u003ccode\u003ecurrentMediaTime\u003c/code\u003e (in seconds) and the \u003ccode\u003eendedReason\u003c/code\u003e (e.g., ended by user, reached end, error).\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can access these properties to understand why and when the media finished playing within the Cast framework.\u003c/p\u003e\n"]]],["The `MediaFinishedEvent` class provides data for the `MEDIA_FINISHED` event. It's initialized with `currentMediaTime` and `endedReason`. `currentMediaTime` is the time in seconds when media concluded, relative to the current queue item if applicable. `endedReason` indicates why the media finished, using an enumerated `EndedReason` value. Both parameters, if present, provide context as to what time the media finished, and why.\n"],null,["# Class: MediaFinishedEvent\n\ncast.[framework](/cast/docs/reference/web_receiver/cast.framework).[events](/cast/docs/reference/web_receiver/cast.framework.events).MediaFinishedEvent\n=======================================================================================================================================================\n\nclass static\n\nEvent data for a `cast.framework.events.EventType.MEDIA_FINISHED` event.\n\nConstructor\n-----------\n\n### MediaFinishedEvent\n\nnew\nMediaFinishedEvent(currentMediaTime, endedReason)\n\n| #### Parameter ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------|\n| currentMediaTime | Optional number |\n| endedReason | Optional [cast.framework.events.EndedReason](/cast/docs/reference/web_receiver/cast.framework.events#.EndedReason) Value must not be null. |\n\nProperties\n----------\n\n### currentMediaTime\n\nconstant\n\n(number or undefined)\n\nThe time when the media finished (in seconds). For an item in a queue,\nthis value represents the time in the currently-playing queue item (\nwhere 0 means the queue item has just started).\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 media finished."]]