Mảng mã theo dõi cần hoạt động. Nếu bạn không cung cấp mảng, các kênh mặc định sẽ hoạt động.
Nếu bạn cung cấp 2 mã theo dõi không tương thích (ví dụ: 2 bản âm thanh đang hoạt động), thì lệnh sẽ không thành công với INVALID_param.
atvCredentials
(chuỗi hoặc không xác định)
Thông tin đăng nhập Android TV thay thế.
Nếu được đặt, thuộc tính này sẽ ghi đè giá trị được đặt trong thông tin xác thực nếu trình thu nhận là một ứng dụng Android TV. Ở phía trình thu, bạn có thể truy cập vào các thông tin xác thực này từ MediaLoadRequestData#getCredentials().
atvCredentialsType
(chuỗi hoặc không xác định)
Loại thông tin đăng nhập Android TV thay thế.
Nếu được đặt, thuộc tính này sẽ ghi đè giá trị đặt trong credentialsType nếu trình thu nhận là một ứng dụng Android TV. Ở phía trình thu, bạn có thể truy cập vào loại thông tin xác thực từ MediaLoadRequestData#getCredentialsType().
tự động phát
boolean
Liệu nội dung nghe nhìn có tự động phát hay không.
thông tin xác thực
(chuỗi hoặc không xác định)
Thông tin xác thực không bắt buộc của người dùng.
credentialsType
(chuỗi hoặc không xác định)
Loại thông tin xác thực không bắt buộc.
"Đám mây" là một loại dành riêng được sử dụng cho những yêu cầu tải bắt nguồn từ các lệnh của trợ lý thoại.
currentTime
số rỗng
Số giây tính từ đầu nội dung nghe nhìn để bắt đầu phát.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\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"]]