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/28 (UTC).
[null,null,["Dernière mise à jour le 2025/07/28 (UTC)."],[[["\u003cp\u003e\u003ccode\u003ecast.framework.messages.VideoInformation\u003c/code\u003e provides details about video content, including resolution and HDR type.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties for width, height, and HDR type, which are specified during object creation using the constructor.\u003c/p\u003e\n"],["\u003cp\u003eHDR type must be a value from \u003ccode\u003ecast.framework.messages.HdrType\u003c/code\u003e and cannot be null.\u003c/p\u003e\n"]]],["The `VideoInformation` class provides details about video resolution and High Dynamic Range (HDR). It's initialized using `width`, `height`, and `hdrType` parameters. Key properties include `width` and `height`, both numbers representing dimensions, and `hdrType`, which specifies the HDR format. The `hdrType` property cannot have a null value. These properties allow to define and get information about the video format.\n"],null,["# Class: VideoInformation\n\ncast.[framework](/cast/docs/reference/web_receiver/cast.framework).[messages](/cast/docs/reference/web_receiver/cast.framework.messages).VideoInformation\n=========================================================================================================================================================\n\nclass static\n\nVideo information such as video resolution and High Dynamic Range (HDR).\n\nConstructor\n-----------\n\n### VideoInformation\n\nnew\nVideoInformation(width, height, hdrType)\n\n| #### Parameter ||\n|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------|\n| width | number Width. |\n| height | number Height. |\n| hdrType | [cast.framework.messages.HdrType](/cast/docs/reference/web_receiver/cast.framework.messages#.HdrType) High Dynamic Range type. Value must not be null. |\n\nProperties\n----------\n\n### hdrType\n\nnon-null [cast.framework.messages.HdrType](/cast/docs/reference/web_receiver/cast.framework.messages#.HdrType)\n\nHDR type\n\n### height\n\nnumber\n\nVideo height.\n\n### width\n\nnumber\n\nVideo width."]]