بروتوكول <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 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2023-12-01 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2023-12-01 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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"]]