Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/25 (UTC).
[null,null,["Dernière mise à jour le 2025/07/25 (UTC)."],[[["\u003cp\u003eThe \u003ccode\u003eLiveStatusEvent\u003c/code\u003e class provides data for live stream events, specifically for changes in the moving window or when a live stream ends.\u003c/p\u003e\n"],["\u003cp\u003eIt includes information about the event type and the updated live seekable range, enabling developers to handle live stream status changes in their web receiver applications.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eliveSeekableRange\u003c/code\u003e property provides access to the updated live status, represented by a \u003ccode\u003ecast.framework.messages.LiveSeekableRange\u003c/code\u003e object.\u003c/p\u003e\n"]]],["The `LiveStatusEvent` class provides event data for `LIVE_IS_MOVING_WINDOW_CHANGED` or `LIVE_ENDED` events. It's constructed with a non-null event `type` and an updated non-null `liveSeekableRange`. The `liveSeekableRange` property, also non-null, contains the updated live status, represented by the `cast.framework.messages.LiveSeekableRange` object. This information is critical for handling changes in the live stream's seekable range or the conclusion of a live event.\n"],null,["# Class: LiveStatusEvent\n\ncast.[framework](/cast/docs/reference/web_receiver/cast.framework).[events](/cast/docs/reference/web_receiver/cast.framework.events).LiveStatusEvent\n====================================================================================================================================================\n\nclass static\n\nEvent data for a\n`cast.framework.events.EventType.LIVE_IS_MOVING_WINDOW_CHANGED` event or a\n`cast.framework.events.EventType.LIVE_ENDED` event.\n\nConstructor\n-----------\n\n### LiveStatusEvent\n\nnew\nLiveStatusEvent(type, liveSeekableRange)\n\n| #### Parameter ||\n|-------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| type | [cast.framework.events.EventType](/cast/docs/reference/web_receiver/cast.framework.events#.EventType) Type of this event. Value must not be null. |\n| liveSeekableRange | [cast.framework.messages.LiveSeekableRange](/cast/docs/reference/web_receiver/cast.framework.messages.LiveSeekableRange) Updated live status. Value must not be null. |\n\nProperty\n--------\n\n### liveSeekableRange\n\nconstant\n\nnon-null [cast.framework.messages.LiveSeekableRange](/cast/docs/reference/web_receiver/cast.framework.messages.LiveSeekableRange)\n\nUpdated live status."]]