فئة GCKRemoteMediaClient

مرجع فئة GCKRemoteMediaClient

نظرة عامة

فئة للتحكّم في تشغيل الوسائط على جهاز استقبال البث

يوفّر هذا الصف الوظيفة نفسها التي يوفّرها الصف GCKMediaControlChannel المتوقّف نهائيًا، والذي يلتف حوله، ولكن مع توفير واجهة برمجة تطبيقات أكثر ملاءمة. في ما يلي الاختلافات الرئيسية:

  • يتم تمثيل كل طلب بكائن GCKRequest يمكن تتبّعه باستخدام مفوّض مخصّص.
  • تتيح GCKRemoteMediaClient إمكانية الاستماع إلى أحداث متعددة بدلاً من تفويض واحد.
منذ
3.0

تتضمّن NSObject.

ملخّص طرق المثيل

(void) - addListener:
 تضيف هذه الطريقة معالج أحداث إلى قائمة معالجات الأحداث الخاصة بهذا العنصر. المزيد...
 
(void) - removeListener:
 تزيل هذه الطريقة معالجًا من قائمة المعالجات الخاصة بهذا العنصر. المزيد...
 
(GCKRequest *) - loadMedia:
 تحميل عنصر وسائط جديد وبدء تشغيله المزيد...
 
(GCKRequest *) - loadMedia:autoplay:
 تحميل عنصر وسائط جديد وبدء تشغيله اختياريًا المزيد...
 
(GCKRequest *) - loadMedia:autoplay:playPosition:
 تحميل عنصر وسائط جديد وبدء تشغيله اختياريًا المزيد...
 
(GCKRequest *) - loadMedia:autoplay:playPosition:customData:
 تحميل عنصر وسائط جديد وبدء تشغيله اختياريًا المزيد...
 
(GCKRequest *) - loadMedia:autoplay:playPosition:activeTrackIDs:
 تحميل عنصر وسائط جديد وبدء تشغيله اختياريًا المزيد...
 
(GCKRequest *) - loadMedia:autoplay:playPosition:activeTrackIDs:customData:
 تحميل عنصر وسائط جديد وبدء تشغيله اختياريًا المزيد...
 
(GCKRequest *) - setActiveTrackIDs:
 تضبط هذه السمة المقاطع الصوتية النشطة. المزيد...
 
(GCKRequest *) - setTextTrackStyle:
 تضبط هذه السمة نمط مسار النص. المزيد...
 
(GCKRequest *) - pause
 يوقف تشغيل عنصر الوسائط الحالي مؤقتًا. المزيد...
 
(GCKRequest *) - pauseWithCustomData:
 يوقف تشغيل عنصر الوسائط الحالي مؤقتًا. المزيد...
 
(GCKRequest *) - stop
 يوقف تشغيل عنصر الوسائط الحالي. المزيد...
 
(GCKRequest *) - stopWithCustomData:
 يوقف تشغيل عنصر الوسائط الحالي. المزيد...
 
(GCKRequest *) - play
 يبدأ (أو يستأنف) تشغيل عنصر الوسائط الحالي. المزيد...
 
(GCKRequest *) - playWithCustomData:
 يبدأ (أو يستأنف) تشغيل عنصر الوسائط الحالي. المزيد...
 
(GCKRequest *) - seekToTimeInterval:
 للانتقال إلى موضع جديد ضمن عنصر الوسائط الحالي المزيد...
 
(GCKRequest *) - seekToTimeInterval:resumeState:
 للانتقال إلى موضع جديد ضمن عنصر الوسائط الحالي المزيد...
 
(GCKRequest *) - seekToTimeInterval:resumeState:customData:
 للانتقال إلى موضع جديد ضمن عنصر الوسائط الحالي المزيد...
 
(GCKRequest *) - queueLoadItems:startIndex:repeatMode:
 تحميل قائمة جديدة من عناصر الوسائط وبدء تشغيلها اختياريًا المزيد...
 
(GCKRequest *) - queueLoadItems:startIndex:repeatMode:customData:
 تحميل قائمة جديدة من عناصر الوسائط وبدء تشغيلها اختياريًا المزيد...
 
(GCKRequest *) - queueLoadItems:startIndex:playPosition:repeatMode:customData:
 تحميل قائمة جديدة من عناصر الوسائط وبدء تشغيلها اختياريًا المزيد...
 
(GCKRequest *) - queueInsertItems:beforeItemWithID:
 تُدرِج هذه الطريقة قائمة بعناصر الوسائط الجديدة في قائمة الانتظار. المزيد...
 
(GCKRequest *) - queueInsertItems:beforeItemWithID:customData:
 تُدرِج هذه الطريقة قائمة بعناصر الوسائط الجديدة في قائمة الانتظار. المزيد...
 
(GCKRequest *) - queueInsertItem:beforeItemWithID:
 طريقة ملائمة لإدراج عنصر واحد في قائمة الانتظار المزيد...
 
(GCKRequest *) - queueInsertAndPlayItem:beforeItemWithID:
 طريقة سهلة لإدراج عنصر واحد في قائمة الانتظار وجعله العنصر الحالي المزيد...
 
(GCKRequest *) - queueInsertAndPlayItem:beforeItemWithID:playPosition:customData:
 طريقة سهلة لإدراج عنصر واحد في قائمة الانتظار وجعله العنصر الحالي المزيد...
 
(GCKRequest *) - queueUpdateItems:
 تعديل قائمة الانتظار المزيد...
 
(GCKRequest *) - queueUpdateItems:customData:
 تعديل قائمة الانتظار المزيد...
 
(GCKRequest *) - queueRemoveItemsWithIDs:
 تزيل هذه الطريقة قائمة بعناصر الوسائط من قائمة الانتظار. المزيد...
 
(GCKRequest *) - queueRemoveItemsWithIDs:customData:
 تزيل هذه الطريقة قائمة بعناصر الوسائط من قائمة الانتظار. المزيد...
 
(GCKRequest *) - queueRemoveItemWithID:
 طريقة سهلة لإزالة عنصر واحد من قائمة الانتظار. المزيد...
 
(GCKRequest *) - queueReorderItemsWithIDs:insertBeforeItemWithID:
 تعيد هذه الطريقة ترتيب قائمة عناصر الوسائط في قائمة الانتظار. المزيد...
 
(GCKRequest *) - queueReorderItemsWithIDs:insertBeforeItemWithID:customData:
 إعادة ترتيب قائمة عناصر الوسائط في قائمة الانتظار المزيد...
 
(GCKRequest *) - queueMoveItemWithID:beforeItemWithID:
 طريقة ملائمة لنقل عنصر واحد في قائمة الانتظار المزيد...
 
(GCKRequest *) - queueJumpToItemWithID:
 ينتقِل إلى العنصر الذي يحمل رقم التعريف المحدّد في قائمة الانتظار. المزيد...
 
(GCKRequest *) - queueJumpToItemWithID:customData:
 ينتقِل إلى العنصر الذي يحمل رقم التعريف المحدّد في قائمة الانتظار. المزيد...
 
(GCKRequest *) - queueJumpToItemWithID:playPosition:customData:
 ينتقِل إلى العنصر الذي يحمل رقم التعريف المحدّد في قائمة الانتظار. المزيد...
 
(GCKRequest *) - queueNextItem
 الانتقال إلى العنصر التالي في قائمة الانتظار المزيد...
 
(GCKRequest *) - queuePreviousItem
 الانتقال إلى العنصر السابق في قائمة الانتظار المزيد...
 
(GCKRequest *) - queueSetRepeatMode:
 يضبط هذا الإجراء وضع تكرار قائمة الانتظار. المزيد...
 
(GCKRequest *) - setStreamVolume:
 تضبط هذه السمة مستوى صوت البث. المزيد...
 
(GCKRequest *) - setStreamVolume:customData:
 تضبط هذه السمة مستوى صوت البث. المزيد...
 
(GCKRequest *) - setStreamMuted:
 تضبط هذه السمة ما إذا كان البث مكتومًا. المزيد...
 
(GCKRequest *) - setStreamMuted:customData:
 تضبط هذه السمة ما إذا كان البث مكتومًا. المزيد...
 
(GCKRequest *) - requestStatus
 يطلب هذا الإجراء معلومات محدَّثة عن حالة الوسائط من جهاز الاستقبال. المزيد...
 
(NSTimeInterval) - approximateStreamPosition
 تعرض هذه السمة موضع البث التقريبي الذي يتم احتسابه من آخر معلومات تم تلقّيها عن البث والوقت المنقضي منذ آخر تحديث. المزيد...
 
(void) - notifyDidStartMediaSession
 يتم استدعاء هذه الطريقة من خلال الفئات الفرعية كلما بدأت جلسة وسائط، أي بعد تحميل وسائط جديدة بنجاح على مشغّل الوسائط البعيد. المزيد...
 
(void) - notifyDidUpdateMediaStatus
 يجب أن يتم استدعاؤها من خلال الفئات الفرعية في أي وقت تتغيّر فيه السمة mediaStatus الخاصة بالعميل. المزيد...
 
(void) - notifyDidUpdateQueue
 يتم استدعاؤها من خلال الفئات الفرعية في أي وقت تتغير فيه قائمة الوسائط التي يديرها العميل. المزيد...
 
(void) - notifyDidUpdatePreloadStatus
 يتم استدعاء هذه الطريقة من خلال الفئات الفرعية كلما تغيّرت قيمة GCKMediaStatus::preloadedItemID الخاصة بـ mediaStatus للعميل. المزيد...
 
(void) - notifyDidUpdateMetadata
 يتم استدعاؤها من خلال الفئات الفرعية في أي وقت تتغير فيه البيانات الوصفية. المزيد...
 

ملخّص الموقع

BOOL connected
 علامة تشير إلى ما إذا كان هذا العنصر مرتبطًا بجلسة. المزيد...
 
GCKMediaStatusmediaStatus
 حالة الوسائط الحالية، كما يتم إعداد تقارير بشأنها من خلال قناة التحكّم في الوسائط المزيد...
 
NSTimeInterval timeSinceLastMediaStatusUpdate
 مقدار الوقت الذي انقضى منذ تلقّي آخر تحديث لحالة الوسائط المزيد...
 
id< GCKRemoteMediaClientAdInfoParserDelegateadInfoParserDelegate
 مفوّض قادر على استخراج معلومات فواصل الإعلانات من البيانات المخصّصة في عنصر GCKMediaStatus. المزيد...
 

تفاصيل الطريقة

- (void) addListener: (id< GCKRemoteMediaClientListener >)  listener

تضيف هذه الطريقة معالج أحداث إلى قائمة معالجات الأحداث الخاصة بهذا العنصر.

Parameters
listenerThe listener to add.
- (void) removeListener: (id< GCKRemoteMediaClientListener >)  listener

تزيل هذه الطريقة معالجًا من قائمة المعالجات الخاصة بهذا العنصر.

Parameters
listenerThe listener to remove.
- (GCKRequest *) loadMedia: (GCKMediaInformation *)  mediaInfo

تحميل عنصر وسائط جديد وبدء تشغيله

Parameters
mediaInfoAn object describing the media item to load.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) loadMedia: (GCKMediaInformation *)  mediaInfo
autoplay: (BOOL)  autoplay 

تحميل عنصر وسائط جديد وبدء تشغيله اختياريًا

Parameters
mediaInfoAn object describing the media item to load.
autoplayWhether playback should start immediately.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) loadMedia: (GCKMediaInformation *)  mediaInfo
autoplay: (BOOL)  autoplay
playPosition: (NSTimeInterval)  playPosition 

تحميل عنصر وسائط جديد وبدء تشغيله اختياريًا

Parameters
mediaInfoAn object describing the media item to load.
autoplayWhether playback should start immediately.
playPositionThe initial playback position.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) loadMedia: (GCKMediaInformation *)  mediaInfo
autoplay: (BOOL)  autoplay
playPosition: (NSTimeInterval)  playPosition
customData: (id __nullable)  customData 

تحميل عنصر وسائط جديد وبدء تشغيله اختياريًا

Parameters
mediaInfoAn object describing the media item to load.
autoplayWhether playback should start immediately.
playPositionThe initial playback position.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) loadMedia: (GCKMediaInformation *)  mediaInfo
autoplay: (BOOL)  autoplay
playPosition: (NSTimeInterval)  playPosition
activeTrackIDs: (NSArray< NSNumber * > *__nullable)  activeTrackIDs 

تحميل عنصر وسائط جديد وبدء تشغيله اختياريًا

Parameters
mediaInfoAn object describing the media item to load.
autoplayWhether playback should start immediately.
playPositionThe initial playback position.
activeTrackIDsAn array of integers specifying the active tracks. May be nil.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) loadMedia: (GCKMediaInformation *)  mediaInfo
autoplay: (BOOL)  autoplay
playPosition: (NSTimeInterval)  playPosition
activeTrackIDs: (NSArray< NSNumber * > *__nullable)  activeTrackIDs
customData: (id __nullable)  customData 

تحميل عنصر وسائط جديد وبدء تشغيله اختياريًا

Parameters
mediaInfoAn object describing the media item to load.
autoplayWhether playback should start immediately.
playPositionThe initial playback position.
activeTrackIDsAn array of integers specifying the active tracks. May be nil.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) setActiveTrackIDs: (NSArray< NSNumber * > *__nullable)  activeTrackIDs

تضبط هذه السمة المقاطع الصوتية النشطة.

سيتعذّر تنفيذ الطلب إذا لم تكن هناك حالة وسائط حالية.

Parameters
activeTrackIDsAn array of integers specifying the active tracks. May be empty or nil to disable any currently active tracks.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) setTextTrackStyle: (GCKMediaTextTrackStyle *__nullable)  textTrackStyle

تضبط هذه السمة نمط مسار النص.

سيتعذّر تنفيذ الطلب إذا لم تكن هناك حالة وسائط حالية.

Parameters
textTrackStyleThe text track style. The style will not be changed if this is nil.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) pause

يوقف تشغيل عنصر الوسائط الحالي مؤقتًا.

سيتعذّر تنفيذ الطلب إذا لم تكن هناك حالة وسائط حالية.

المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) pauseWithCustomData: (id __nullable)  customData

يوقف تشغيل عنصر الوسائط الحالي مؤقتًا.

سيتعذّر تنفيذ الطلب إذا لم تكن هناك حالة وسائط حالية.

Parameters
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) stop

يوقف تشغيل عنصر الوسائط الحالي.

إذا كانت هناك قائمة تشغيل محملة حاليًا، ستتم إزالتها. سيتعذّر تنفيذ الطلب إذا لم تكن هناك حالة وسائط حالية.

المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) stopWithCustomData: (id __nullable)  customData

يوقف تشغيل عنصر الوسائط الحالي.

إذا كانت هناك قائمة تشغيل محملة حاليًا، ستتم إزالتها. سيتعذّر تنفيذ الطلب إذا لم تكن هناك حالة وسائط حالية.

Parameters
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) play

يبدأ (أو يستأنف) تشغيل عنصر الوسائط الحالي.

يبدأ التشغيل دائمًا من بداية البث. سيتعذّر تنفيذ الطلب إذا لم تكن هناك حالة وسائط حالية.

المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) playWithCustomData: (id __nullable)  customData

يبدأ (أو يستأنف) تشغيل عنصر الوسائط الحالي.

يبدأ التشغيل دائمًا من بداية البث. سيتعذّر تنفيذ الطلب إذا لم تكن هناك حالة وسائط حالية.

Parameters
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) seekToTimeInterval: (NSTimeInterval)  position

للانتقال إلى موضع جديد ضمن عنصر الوسائط الحالي

سيتعذّر تنفيذ الطلب إذا لم تكن هناك حالة وسائط حالية.

Parameters
positionThe new position from the beginning of the stream.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) seekToTimeInterval: (NSTimeInterval)  position
resumeState: (GCKMediaResumeState resumeState 

للانتقال إلى موضع جديد ضمن عنصر الوسائط الحالي

سيتعذّر تنفيذ الطلب إذا لم تكن هناك حالة وسائط حالية.

Parameters
positionThe new position interval from the beginning of the stream.
resumeStateThe action to take after the seek operation has finished.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) seekToTimeInterval: (NSTimeInterval)  position
resumeState: (GCKMediaResumeState resumeState
customData: (id __nullable)  customData 

للانتقال إلى موضع جديد ضمن عنصر الوسائط الحالي

سيتعذّر تنفيذ الطلب إذا لم تكن هناك حالة وسائط حالية.

Parameters
positionThe new position from the beginning of the stream.
resumeStateThe action to take after the seek operation has finished.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) queueLoadItems: (NSArray< GCKMediaQueueItem * > *)  queueItems
startIndex: (NSUInteger)  startIndex
repeatMode: (GCKMediaRepeatMode repeatMode 

تحميل قائمة جديدة من عناصر الوسائط وبدء تشغيلها اختياريًا

Parameters
queueItemsAn array of GCKMediaQueueItem instances to load. Must not be nil or empty.
startIndexThe index of the item in the items array that should be played first.
repeatModeThe repeat mode for playing the queue.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) queueLoadItems: (NSArray< GCKMediaQueueItem * > *)  queueItems
startIndex: (NSUInteger)  startIndex
repeatMode: (GCKMediaRepeatMode repeatMode
customData: (id __nullable)  customData 

تحميل قائمة جديدة من عناصر الوسائط وبدء تشغيلها اختياريًا

Parameters
queueItemsAn array of GCKMediaQueueItem instances to load. Must not be nil or empty.
startIndexThe index of the item in the items array that should be played first.
repeatModeThe repeat mode for playing the queue.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) queueLoadItems: (NSArray< GCKMediaQueueItem * > *)  queueItems
startIndex: (NSUInteger)  startIndex
playPosition: (NSTimeInterval)  playPosition
repeatMode: (GCKMediaRepeatMode repeatMode
customData: (id __nullable)  customData 

تحميل قائمة جديدة من عناصر الوسائط وبدء تشغيلها اختياريًا

Parameters
queueItemsAn array of GCKMediaQueueItem instances to load. Must not be nil or empty.
startIndexThe index of the item in the items array that should be played first.
playPositionThe initial playback position for the item when it is first played, relative to the beginning of the stream. This value is ignored when the same item is played again, for example when the queue repeats, or the item is later jumped to. In those cases the item's startTime is used.
repeatModeThe repeat mode for playing the queue.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) queueInsertItems: (NSArray< GCKMediaQueueItem * > *)  queueItems
beforeItemWithID: (NSUInteger)  beforeItemID 

تُدرِج هذه الطريقة قائمة بعناصر الوسائط الجديدة في قائمة الانتظار.

Parameters
queueItemsAn array of GCKMediaQueueItem instances to insert. Must not be nil or empty.
beforeItemIDThe ID of the item that will be located immediately after the inserted list. If the value is kGCKMediaQueueInvalidItemID, the inserted list will be appended to the end of the queue.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) queueInsertItems: (NSArray< GCKMediaQueueItem * > *)  queueItems
beforeItemWithID: (NSUInteger)  beforeItemID
customData: (id __nullable)  customData 

تُدرِج هذه الطريقة قائمة بعناصر الوسائط الجديدة في قائمة الانتظار.

Parameters
queueItemsAn array of GCKMediaQueueItem instances to insert. Must not be nil or empty.
beforeItemIDID of the item that will be located immediately after the inserted list. If the value is kGCKMediaQueueInvalidItemID, the inserted list will be appended to the end of the queue.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) queueInsertItem: (GCKMediaQueueItem *)  item
beforeItemWithID: (NSUInteger)  beforeItemID 

طريقة ملائمة لإدراج عنصر واحد في قائمة الانتظار

Parameters
itemThe item to insert.
beforeItemIDThe ID of the item that will be located immediately after the inserted item. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the inserted item will be appended to the end of the queue.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) queueInsertAndPlayItem: (GCKMediaQueueItem *)  item
beforeItemWithID: (NSUInteger)  beforeItemID 

طريقة سهلة لإدراج عنصر واحد في قائمة الانتظار وجعله العنصر الحالي

Parameters
itemThe item to insert.
beforeItemIDThe ID of the item that will be located immediately after the inserted item. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the inserted item will be appended to the end of the queue.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) queueInsertAndPlayItem: (GCKMediaQueueItem *)  item
beforeItemWithID: (NSUInteger)  beforeItemID
playPosition: (NSTimeInterval)  playPosition
customData: (id __nullable)  customData 

طريقة سهلة لإدراج عنصر واحد في قائمة الانتظار وجعله العنصر الحالي

Parameters
itemThe item to insert.
beforeItemIDThe ID of the item that will be located immediately after the inserted item. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the inserted item will be appended to the end of the queue.
playPositionThe initial playback position for the item when it is first played, relative to the beginning of the stream. This value is ignored when the same item is played again, for example when the queue repeats, or the item is later jumped to. In those cases the item's startTime is used.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) queueUpdateItems: (NSArray< GCKMediaQueueItem * > *)  queueItems

تعديل قائمة الانتظار

Parameters
queueItemsThe list of updated items.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) queueUpdateItems: (NSArray< GCKMediaQueueItem * > *)  queueItems
customData: (id __nullable)  customData 

تعديل قائمة الانتظار

Parameters
queueItemsThe list of updated items.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) queueRemoveItemsWithIDs: (NSArray< NSNumber * > *)  itemIDs

تزيل هذه الطريقة قائمة بعناصر الوسائط من قائمة الانتظار.

وإذا أصبحت قائمة الانتظار فارغة نتيجةً لذلك، سيتم إنهاء جلسة الوسائط الحالية.

Parameters
itemIDsAn array of media item IDs identifying the items to remove. Must not be nil or empty.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) queueRemoveItemsWithIDs: (NSArray< NSNumber * > *)  itemIDs
customData: (id __nullable)  customData 

تزيل هذه الطريقة قائمة بعناصر الوسائط من قائمة الانتظار.

وإذا أصبحت قائمة الانتظار فارغة نتيجةً لذلك، سيتم إنهاء جلسة الوسائط الحالية.

Parameters
itemIDsAn array of media item IDs identifying the items to remove. Must not be nil or empty.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) queueRemoveItemWithID: (NSUInteger)  itemID

طريقة سهلة لإزالة عنصر واحد من قائمة الانتظار.

Parameters
itemIDThe ID of the item to remove.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) queueReorderItemsWithIDs: (NSArray< NSNumber * > *)  queueItemIDs
insertBeforeItemWithID: (NSUInteger)  beforeItemID 

تعيد هذه الطريقة ترتيب قائمة عناصر الوسائط في قائمة الانتظار.

Parameters
queueItemIDsAn array of media item IDs identifying the items to reorder. Must not be nil or empty.
beforeItemIDID of the item that will be located immediately after the reordered list. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the reordered list will be appended at the end of the queue.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) queueReorderItemsWithIDs: (NSArray< NSNumber * > *)  queueItemIDs
insertBeforeItemWithID: (NSUInteger)  beforeItemID
customData: (id __nullable)  customData 

إعادة ترتيب قائمة عناصر الوسائط في قائمة الانتظار

Parameters
queueItemIDsAn array of media item IDs identifying the items to reorder. Must not be nil or empty.
beforeItemIDThe ID of the item that will be located immediately after the reordered list. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the reordered list will be moved to the end of the queue.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) queueMoveItemWithID: (NSUInteger)  itemID
beforeItemWithID: (NSUInteger)  beforeItemID 

طريقة ملائمة لنقل عنصر واحد في قائمة الانتظار

Parameters
itemIDThe ID of the item to move.
beforeItemIDThe ID of the item that will be located immediately after the reordered list. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the item will be moved to the end of the queue.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) queueJumpToItemWithID: (NSUInteger)  itemID

ينتقِل إلى العنصر الذي يحمل رقم التعريف المحدّد في قائمة الانتظار.

Parameters
itemIDThe ID of the item to jump to.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) queueJumpToItemWithID: (NSUInteger)  itemID
customData: (id __nullable)  customData 

ينتقِل إلى العنصر الذي يحمل رقم التعريف المحدّد في قائمة الانتظار.

Parameters
itemIDThe ID of the item to jump to.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) queueJumpToItemWithID: (NSUInteger)  itemID
playPosition: (NSTimeInterval)  playPosition
customData: (id __nullable)  customData 

ينتقِل إلى العنصر الذي يحمل رقم التعريف المحدّد في قائمة الانتظار.

Parameters
itemIDThe ID of the item to jump to.
playPositionThe initial playback position for the item when it is first played, relative to the beginning of the stream. This value is ignored when the same item is played again, for example when the queue repeats, or the item is later jumped to. In those cases the item's startTime is used.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) queueNextItem

الانتقال إلى العنصر التالي في قائمة الانتظار

المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) queuePreviousItem

الانتقال إلى العنصر السابق في قائمة الانتظار

المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) queueSetRepeatMode: (GCKMediaRepeatMode repeatMode

يضبط هذا الإجراء وضع تكرار قائمة الانتظار.

Parameters
repeatModeThe new repeat mode.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) setStreamVolume: (float)  volume

تضبط هذه السمة مستوى صوت البث.

سيتعذّر تنفيذ الطلب إذا لم تكن هناك جلسة وسائط حالية.

Parameters
volumeThe new volume, in the range [0.0 - 1.0].
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) setStreamVolume: (float)  volume
customData: (id __nullable)  customData 

تضبط هذه السمة مستوى صوت البث.

سيتعذّر تنفيذ الطلب إذا لم تكن هناك جلسة وسائط حالية.

Parameters
volumeThe new volume, in the range [0.0 - 1.0].
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) setStreamMuted: (BOOL)  muted

تضبط هذه السمة ما إذا كان البث مكتومًا.

سيتعذّر تنفيذ الطلب إذا لم تكن هناك جلسة وسائط حالية.

Parameters
mutedWhether the stream should be muted or unmuted.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) setStreamMuted: (BOOL)  muted
customData: (id __nullable)  customData 

تضبط هذه السمة ما إذا كان البث مكتومًا.

سيتعذّر تنفيذ الطلب إذا لم تكن هناك جلسة وسائط حالية.

Parameters
mutedWhether the stream should be muted or unmuted.
customDataCustom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil.
المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (GCKRequest *) requestStatus

يطلب هذا الإجراء معلومات محدَّثة عن حالة الوسائط من جهاز الاستقبال.

المرتجعات
كائن GCKRequest لتتبُّع هذا الطلب.
- (NSTimeInterval) approximateStreamPosition

تعرض هذه السمة موضع البث التقريبي الذي يتم احتسابه من آخر معلومات تم تلقّيها عن البث والوقت المنقضي منذ آخر تحديث.

تعرِض القيمة 0 إذا لم تكن القناة مرتبطة أو إذا لم يتم تحميل أي وسائط حاليًا.

- (void) notifyDidStartMediaSession

يتم استدعاء هذه الطريقة من خلال الفئات الفرعية كلما بدأت جلسة وسائط، أي بعد تحميل وسائط جديدة بنجاح على مشغّل الوسائط البعيد.

مقدَّم من الفئة GCKRemoteMediaClient(Protected).

- (void) notifyDidUpdateMediaStatus

يجب أن يتم استدعاؤها من خلال الفئات الفرعية في أي وقت تتغيّر فيه السمة mediaStatus الخاصة بالعميل.

مقدَّم من الفئة GCKRemoteMediaClient(Protected).

- (void) notifyDidUpdateQueue

يتم استدعاؤها من خلال الفئات الفرعية في أي وقت تتغير فيه قائمة الوسائط التي يديرها العميل.

مقدَّم من الفئة GCKRemoteMediaClient(Protected).

- (void) notifyDidUpdatePreloadStatus

يتم استدعاء هذه الطريقة من خلال الفئات الفرعية كلما تغيّرت قيمة GCKMediaStatus::preloadedItemID الخاصة بـ mediaStatus للعميل.

مقدَّم من الفئة GCKRemoteMediaClient(Protected).

- (void) notifyDidUpdateMetadata

يتم استدعاؤها من خلال الفئات الفرعية في أي وقت تتغير فيه البيانات الوصفية.

مقدَّم من الفئة GCKRemoteMediaClient(Protected).

تفاصيل الموقع

- (BOOL) connected
readnonatomicassign

علامة تشير إلى ما إذا كان هذا العنصر مرتبطًا بجلسة.

- (GCKMediaStatus*) mediaStatus
readnonatomicstrong

حالة الوسائط الحالية، كما يتم إعداد تقارير بشأنها من خلال قناة التحكّم في الوسائط

- (NSTimeInterval) timeSinceLastMediaStatusUpdate
readnonatomicassign

مقدار الوقت الذي انقضى منذ تلقّي آخر تحديث لحالة الوسائط

إذا كان طلب الحالة قيد التقدّم حاليًا، ستكون القيمة 0.

- (id<GCKRemoteMediaClientAdInfoParserDelegate>) adInfoParserDelegate
readwritenonatomicweak

مفوّض قادر على استخراج معلومات فواصل الإعلانات من البيانات المخصّصة في عنصر GCKMediaStatus.

Deprecated:
استخدِم GCKAdBreakStatus بدلاً من ذلك.