<GCKRemoteMediaClientListener> پروتکل
پروتکل شنونده GCKRemoteMediaClient .
- از آنجا که
- 3.0
<NSObjectNSObject> را به ارث می برد.
- (void) remoteMediaClient: |
|
( GCKRemoteMediaClient *) |
client |
didStartMediaSessionWithID: |
|
(NSInteger) |
sessionID |
|
|
| |
|
optional |
هنگامی که یک جلسه رسانه جدید در گیرنده شروع شده است، فراخوانی می شود.
- Parameters
-
client | The client. |
sessionID | The ID of the new session. |
هنگامی که وضعیت رسانه به روز شده از گیرنده دریافت شده باشد، تماس گرفته می شود.
- Parameters
-
client | The client. |
mediaStatus | The updated media status. The status can also be accessed as a property of the player. |
هنگامی که فراداده رسانه به روز شده از گیرنده دریافت شده باشد، تماس گرفته می شود.
- Parameters
-
هنگامی که صف پخش رسانه در گیرنده به روز شده باشد، فراخوانی می شود.
- Parameters
-
هنگامی که وضعیت پیش بارگذاری رسانه در گیرنده به روز شده باشد، تماس گرفته می شود.
- Parameters
-
- (void) remoteMediaClient: |
|
( GCKRemoteMediaClient *) |
client |
didReceiveQueueItemIDs: |
|
(NSArray< NSNumber * > *) |
queueItemIDs |
|
|
| |
|
optional |
زمانی که لیست شناسه های آیتم صف رسانه دریافت شده باشد، تماس گرفته می شود.
- Parameters
-
client | The client. |
queueItemIDs | The list of media queue item IDs. |
- از آنجا که
- 4.1
زمانی فراخوانی می شود که یک دنباله به هم پیوسته از آیتم ها در صف رسانه درج شده باشد.
- 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. |
- از آنجا که
- 4.1
- (void) remoteMediaClient: |
|
( GCKRemoteMediaClient *) |
client |
didUpdateQueueItemsWithIDs: |
|
(NSArray< NSNumber * > *) |
queueItemIDs |
|
|
| |
|
optional |
زمانی که موارد موجود در صف رسانه به روز شده باشد، تماس گرفته می شود.
- Parameters
-
client | The client. |
queueItemIDs | The item IDs of the updated items. |
- از آنجا که
- 4.1
- (void) remoteMediaClient: |
|
( GCKRemoteMediaClient *) |
client |
didRemoveQueueItemsWithIDs: |
|
(NSArray< NSNumber * > *) |
queueItemIDs |
|
|
| |
|
optional |
زمانی فراخوانی می شود که دنباله ای از موارد به هم پیوسته از صف رسانه حذف شده باشد.
- Parameters
-
client | The client. |
queueItemIDs | The item IDs of the removed items. |
- از آنجا که
- 4.1
زمانی فراخوانی می شود که اطلاعات دقیقی برای یک یا چند مورد در صف دریافت شده باشد.
- Parameters
-
client | The client. |
queueItems | The queue items. |
- از آنجا که
- 4.1
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-10-30 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-10-30 بهوقت ساعت هماهنگ جهانی."],[[["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."]]],["The `GCKRemoteMediaClientListener` protocol defines methods for monitoring media playback on a Cast receiver. Key actions include receiving updates on: new media session starts with `didStartMediaSessionWithID:`, media status changes via `didUpdateMediaStatus:`, and metadata updates through `didUpdateMediaMetadata:`. It also handles queue modifications with methods like `remoteMediaClientDidUpdateQueue:`, `didReceiveQueueItemIDs:`, `didInsertQueueItemsWithIDs:beforeItemWithID:`, `didUpdateQueueItemsWithIDs:`, `didRemoveQueueItemsWithIDs:`, `didReceiveQueueItems:`, and `remoteMediaClientDidUpdatePreloadStatus:`. Each method is linked to the client and relevant identifiers.\n"]]