<GCKRemoteMediaClientListener> Giao thức
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Giao thức trình nghe GCKRemoteMediaClient.
- Năm thành lập
- 3
Kế thừa <NSObjectNSObject>.
- (void) remoteMediaClient: |
|
(GCKRemoteMediaClient *) |
client |
didStartMediaSessionWithID: |
|
(NSInteger) |
sessionID |
|
|
| |
|
optional |
Được gọi khi một phiên phát nội dung đa phương tiện mới bắt đầu trên thiết bị nhận.
- Parameters
-
client | The client. |
sessionID | The ID of the new session. |
Được gọi khi nhận trạng thái nội dung nghe nhìn cập nhật từ thiết bị nhận.
- Parameters
-
client | The client. |
mediaStatus | The updated media status. The status can also be accessed as a property of the player. |
Được gọi khi nhận được siêu dữ liệu đa phương tiện đã cập nhật từ receiver.
- Parameters
-
Được gọi khi hàng đợi phát nội dung đa phương tiện đã được cập nhật trên thiết bị nhận.
- Parameters
-
Được gọi khi trạng thái tải trước nội dung nghe nhìn đã được cập nhật trên receiver.
- Parameters
-
- (void) remoteMediaClient: |
|
(GCKRemoteMediaClient *) |
client |
didReceiveQueueItemIDs: |
|
(NSArray< NSNumber * > *) |
queueItemIDs |
|
|
| |
|
optional |
Được gọi khi nhận được danh sách mã mục trong hàng đợi nội dung đa phương tiện.
- Parameters
-
client | The client. |
queueItemIDs | The list of media queue item IDs. |
- Năm thành lập
- 4,1
Được gọi khi một chuỗi mục liền kề được chèn vào hàng đợi nội dung đa phương tiện.
- Parameters
-
client | The client. |
queueItemIDs | The item IDs of the inserted items. |
beforeItemID | The item ID of the item in front of which the new items have been inserted. If the value is kGCKMediaQueueInvalidItemID, it indicates that the items were appended at the end of the queue. |
- Năm thành lập
- 4,1
- (void) remoteMediaClient: |
|
(GCKRemoteMediaClient *) |
client |
didUpdateQueueItemsWithIDs: |
|
(NSArray< NSNumber * > *) |
queueItemIDs |
|
|
| |
|
optional |
Được gọi khi các mục hiện có đã được cập nhật trong hàng đợi nội dung đa phương tiện.
- Parameters
-
client | The client. |
queueItemIDs | The item IDs of the updated items. |
- Năm thành lập
- 4,1
- (void) remoteMediaClient: |
|
(GCKRemoteMediaClient *) |
client |
didRemoveQueueItemsWithIDs: |
|
(NSArray< NSNumber * > *) |
queueItemIDs |
|
|
| |
|
optional |
Được gọi khi một chuỗi mục liền kề đã bị xoá khỏi hàng đợi nội dung đa phương tiện.
- Parameters
-
client | The client. |
queueItemIDs | The item IDs of the removed items. |
- Năm thành lập
- 4,1
Được gọi khi nhận được thông tin chi tiết về một hoặc nhiều mục trong hàng đợi.
- Parameters
-
client | The client. |
queueItems | The queue items. |
- Năm thành lập
- 4,1
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: 2023-12-01 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2023-12-01 UTC."],[[["The `GCKRemoteMediaClientListener` protocol defines methods to receive updates on media playback and queue status from a Cast receiver."],["It provides notifications for media session start, status changes, metadata updates, and queue modifications."],["Developers can implement this protocol to build Cast-enabled applications that respond to playback events on the receiver."],["This protocol includes methods for handling queue item insertion, update, removal, and retrieval of detailed information."],["Introduced in version 3.0 and continually enhanced with features like queue management in later versions."]]],[]]