کلاس GCKRemoteMediaClient

مرجع کلاس GCKRemoteMediaClient

بررسی اجمالی

کلاسی برای کنترل پخش رسانه در گیرنده Cast.

این کلاس عملکردی مشابه GCKMediaControlChannel منسوخ را ارائه می‌کند، که آن را پیچیده می‌کند، اما با یک API راحت‌تر. تفاوت های اصلی عبارتند از:

  • هر درخواست توسط یک شی 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
پرچمی که نشان می دهد آیا این شی به یک جلسه متصل است یا خیر. بیشتر...
GCKMediaStatus mediaStatus
وضعیت فعلی رسانه طبق گزارش کانال کنترل رسانه. بیشتر...
NSTimeInterval  timeSinceLastMediaStatusUpdate
مدت زمانی که از آخرین به‌روزرسانی وضعیت رسانه دریافت شده است. بیشتر...
id< GCKRemoteMediaClientAdInfoParserDelegate adInfoParserDelegate
نماینده ای که قادر به استخراج اطلاعات وقفه تبلیغاتی از داده های سفارشی در یک شی 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
read nonatomic assign

پرچمی که نشان می دهد آیا این شی به یک جلسه متصل است یا خیر.

- ( GCKMediaStatus *) mediaStatus
read nonatomic strong

وضعیت فعلی رسانه طبق گزارش کانال کنترل رسانه.

- (NSTimeInterval) timeSinceLastMediaStatusUpdate
read nonatomic assign

مدت زمانی که از آخرین به‌روزرسانی وضعیت رسانه دریافت شده است.

اگر یک درخواست وضعیت در حال حاضر در حال انجام است، این 0 خواهد بود.

- (id< GCKRemoteMediaClientAdInfoParserDelegate >) adInfoParserDelegate
read write nonatomic weak

نماینده ای که قادر به استخراج اطلاعات وقفه تبلیغاتی از داده های سفارشی در یک شی GCKMediaStatus است.

Deprecated:
به جای آن از GCKAdBreakStatus استفاده کنید.