[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003e\u003ccode\u003echrome.cast.media.LoadRequest\u003c/code\u003e is used to load new media into a Cast player.\u003c/p\u003e\n"],["\u003cp\u003eIt requires a \u003ccode\u003eMediaInfo\u003c/code\u003e object describing the media to be loaded.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties to control playback behavior like \u003ccode\u003eautoplay\u003c/code\u003e, \u003ccode\u003ecurrentTime\u003c/code\u003e, and \u003ccode\u003eactiveTrackIds\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eLoadRequest\u003c/code\u003e can handle user credentials and custom data for the receiver application.\u003c/p\u003e\n"],["\u003cp\u003eIt can be used to load media into a specific application session using \u003ccode\u003esessionId\u003c/code\u003e.\u003c/p\u003e\n"]]],["`LoadRequest` class is used to load new media into the player. It requires a `mediaInfo` object describing the media. Key properties include `activeTrackIds` to specify active tracks, `autoplay` to control immediate playback, and `currentTime` to set the starting playback time. It accepts credentials and their type, including specific Android TV overrides (`atvCredentials`, `atvCredentialsType`). `customData` allows for receiver-specific data. Optional fields also includes playbackRate, queueData and sessionId.\n"],null,["# Class: LoadRequest\n\nchrome.[cast](/cast/docs/reference/web_sender/chrome.cast).[media](/cast/docs/reference/web_sender/chrome.cast.media).LoadRequest\n=================================================================================================================================\n\nclass static\n\nA request to load new media into the player.\n\nConstructor\n-----------\n\n### LoadRequest\n\nnew\nLoadRequest(mediaInfo)\n\n| #### Parameter ||\n|-----------|---------------------------------------------------------------------------------------------------------------------------------------|\n| mediaInfo | [chrome.cast.media.MediaInfo](/cast/docs/reference/web_sender/chrome.cast.media.MediaInfo) Media description. Value must not be null. |\n\nProperties\n----------\n\n### activeTrackIds\n\nnullable Array of number\n\nArray of Track trackIds that should be active. If the array is not\nprovided, the default tracks will be active.\nIf two incompatible trackIds are provided (for example two active audio\ntracks) the command will fail with INVALID_PARAMETER.\n\n### atvCredentials\n\n(string or undefined)\n\nAlternate Android TV credentials.\n\nIf set, this will override the value set in credentials if the receiver\nis an Android TV app. On the receiver side, these credentials can be\naccessed from MediaLoadRequestData#getCredentials().\n\n### atvCredentialsType\n\n(string or undefined)\n\nAlternate Android TV credentials type.\n\nIf set, this will override the value set in credentialsType if the\nreceiver is an Android TV app. On the receiver side, the credentials type\ncan be accessed from MediaLoadRequestData#getCredentialsType().\n\n### autoplay\n\nboolean\n\nWhether the media will automatically play.\n\n### credentials\n\n(string or undefined)\n\nOptional user credentials.\n\n### credentialsType\n\n(string or undefined)\n\nOptional credentials type.\nThe type 'cloud' is a reserved type used by load requests that were\noriginated by voice assistant commands.\n\n### currentTime\n\nnullable number\n\nSeconds from the beginning of the media to start playback.\n\n### customData\n\nnullable Object\n\nCustom data for the receiver application.\n\n### media\n\nnon-null [chrome.cast.media.MediaInfo](/cast/docs/reference/web_sender/chrome.cast.media.MediaInfo)\n\nMedia description.\n\n### playbackRate\n\n(number or undefined)\n\nThe media playback rate.\n\n### queueData\n\n(non-null [chrome.cast.media.QueueData](/cast/docs/reference/web_sender/chrome.cast.media.QueueData) or undefined)\n\nQueue data.\n\n### requestId\n\nnumber\n\n### sessionId\n\nnullable string\n\nIdentifies the application session that will load the media.\n\n### type\n\nstring"]]