Giao thức <GCKMediaControlChannelDelegate>
Kế thừa <GCKCastChannelNSObject>.
- (void) mediaControlChannel: |
|
(GCKMediaControlChannel *) |
mediaControlChannel |
didCompleteLoadWithSessionID: |
|
(NSInteger) |
sessionID |
|
|
| |
|
optional |
Được gọi khi hoàn tất một yêu cầu tải nội dung nghe nhìn.
- Parameters
-
mediaControlChannel | The channel. |
sessionID | The unique media session ID that has been assigned to this media item. |
Được gọi khi yêu cầu tải nội dung nghe nhìn không thành công.
- Parameters
-
mediaControlChannel | The channel. |
error | The load error. |
Được gọi khi nhận được thông tin trạng thái người chơi đã cập nhật.
- Parameters
-
mediaControlChannel | The channel. |
Được gọi khi nhận được thông tin về trạng thái của hàng đợi đã cập nhật.
- Parameters
-
mediaControlChannel | The channel. |
Được gọi khi nhận được trạng thái tải trước đã cập nhật.
- Parameters
-
mediaControlChannel | The channel. |
Được gọi khi nhận được siêu dữ liệu phương tiện được cập nhật.
- Parameters
-
mediaControlChannel | The channel. |
- (void) mediaControlChannel: |
|
(GCKMediaControlChannel *) |
mediaControlChannel |
requestDidCompleteWithID: |
|
(NSInteger) |
requestID |
|
|
| |
|
optional |
Được gọi khi một yêu cầu thành công.
- Parameters
-
mediaControlChannel | The channel. |
requestID | The request ID that failed. This is the ID returned when the request was made. |
- (void) mediaControlChannel: |
|
(GCKMediaControlChannel *) |
mediaControlChannel |
didReplaceRequestWithID: |
|
(NSInteger) |
requestID |
|
|
| |
|
optional |
Được gọi khi một yêu cầu không còn được theo dõi vì một yêu cầu cùng loại đã được ứng dụng phát hành.
- Parameters
-
mediaControlChannel | The channel. |
requestID | The request ID that has been replaced. This is the ID returned when the request was made. |
- (void) mediaControlChannel: |
|
(GCKMediaControlChannel *) |
mediaControlChannel |
didCancelRequestWithID: |
|
(NSInteger) |
requestID |
|
|
| |
|
optional |
Được gọi khi một yêu cầu không còn được theo dõi nữa vì yêu cầu này đã bị huỷ một cách rõ ràng.
- Parameters
-
mediaControlChannel | The channel. |
requestID | The request ID that has been cancelled. This is the ID returned when the request was made. |
Được gọi khi yêu cầu không thành công.
- Parameters
-
mediaControlChannel | The channel. |
requestID | The request ID that failed. This is the ID returned when the request was made. |
error | The error. If any custom data was associated with the error, it will be in the error's userInfo dictionary with the key . |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2022-12-05 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2022-12-05 UTC."],[[["The `GCKMediaControlChannelDelegate` protocol defines methods that inform your application about the status of media playback and control requests."],["It provides callbacks for successful media loading, playback status updates, queue updates, metadata changes, and request completions."],["It also handles errors during media loading and request failures, providing details about the errors."],["Delegate methods are optional, allowing you to implement only the functionalities your application requires."]]],[]]