Informations sur le contenu multimédia en cours de chargement.
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\u003e\u003ccode\u003eLoadEvent\u003c/code\u003e provides data for events related to loading or preloading media in the player.\u003c/p\u003e\n"],["\u003cp\u003eIt's constructed with a type (\u003ca href=\"/cast/docs/reference/web_receiver/cast.framework.events#.EventType\"\u003ecast.framework.events.EventType\u003c/a\u003e) and optional media information (\u003ca href=\"/cast/docs/reference/web_receiver/cast.framework.messages.MediaInformation\"\u003ecast.framework.messages.MediaInformation\u003c/a\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003emedia\u003c/code\u003e property offers details about the media being loaded.\u003c/p\u003e\n"]]],["The `LoadEvent` class handles data for load or preload requests made to the player. It's initialized using a constructor with two parameters: `type`, representing the event type, and an optional `media` parameter containing `MediaInformation`. This `media` property, accessible as a constant, holds details about the media being loaded and must be non-null. The `type` value also can't be null.\n"],null,["# Class: LoadEvent\n\ncast.[framework](/cast/docs/reference/web_receiver/cast.framework).[events](/cast/docs/reference/web_receiver/cast.framework.events).LoadEvent\n==============================================================================================================================================\n\nclass static\n\nEvent data for all events pertaining to processing a load or preload request.\nmade to the player.\n\nConstructor\n-----------\n\n### LoadEvent\n\nnew\nLoadEvent(type, media)\n\n| #### Parameter ||\n|-------|---------------------------------------------------------------------------------------------------------------------------------------------------------|\n| type | [cast.framework.events.EventType](/cast/docs/reference/web_receiver/cast.framework.events#.EventType) Value must not be null. |\n| media | Optional [cast.framework.messages.MediaInformation](/cast/docs/reference/web_receiver/cast.framework.messages.MediaInformation) Value must not be null. |\n\nProperty\n--------\n\n### media\n\nconstant\n\n(non-null [cast.framework.messages.MediaInformation](/cast/docs/reference/web_receiver/cast.framework.messages.MediaInformation) or undefined)\n\nInformation about the media being loaded."]]