מחלקת 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
 דגל שמציין אם האובייקט הזה מקושר לסשן. עוד...
 
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.
החזרות
The GCKRequest object for tracking this request.
- (GCKRequest *) loadMedia: (GCKMediaInformation *)  mediaInfo
autoplay: (BOOL)  autoplay 

טעינה של פריט מדיה חדש והתחלת ההפעלה שלו (אופציונלי).

Parameters
mediaInfoAn object describing the media item to load.
autoplayWhether playback should start immediately.
החזרות
The GCKRequest object for tracking this request.
- (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.
החזרות
The GCKRequest object for tracking this request.
- (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.
החזרות
The GCKRequest object for tracking this request.
- (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.
החזרות
The GCKRequest object for tracking this request.
- (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.
החזרות
The GCKRequest object for tracking this request.
- (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.
החזרות
The GCKRequest object for tracking this request.
- (GCKRequest *) setTextTrackStyle: (GCKMediaTextTrackStyle *__nullable)  textTrackStyle

הגדרת הסגנון של רצועת הטקסט.

הבקשה תיכשל אם אין סטטוס מדיה נוכחי.

Parameters
textTrackStyleThe text track style. The style will not be changed if this is nil.
החזרות
The GCKRequest object for tracking this request.
- (GCKRequest *) pause

השהיית ההפעלה של פריט המדיה הנוכחי.

הבקשה תיכשל אם אין סטטוס מדיה נוכחי.

החזרות
The GCKRequest object for tracking this request.
- (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.
החזרות
The GCKRequest object for tracking this request.
- (GCKRequest *) stop

הפסקת ההפעלה של פריט המדיה הנוכחי.

אם תור ההשמעה טעון כרגע, הוא יוסר. הבקשה תיכשל אם אין סטטוס מדיה נוכחי.

החזרות
The GCKRequest object for tracking this request.
- (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.
החזרות
The GCKRequest object for tracking this request.
- (GCKRequest *) play

מתחיל (או ממשיך) את ההפעלה של פריט המדיה הנוכחי.

ההפעלה תמיד מתחילה בתחילת השידור. הבקשה תיכשל אם אין סטטוס מדיה נוכחי.

החזרות
The GCKRequest object for tracking this request.
- (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.
החזרות
The GCKRequest object for tracking this request.
- (GCKRequest *) seekToTimeInterval: (NSTimeInterval)  position

מעבר למיקום חדש בפריט המדיה הנוכחי.

הבקשה תיכשל אם אין סטטוס מדיה נוכחי.

Parameters
positionThe new position from the beginning of the stream.
החזרות
The GCKRequest object for tracking this request.
- (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.
החזרות
The GCKRequest object for tracking this request.
- (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.
החזרות
The GCKRequest object for tracking this request.
- (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.
החזרות
The GCKRequest object for tracking this request.
- (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.
החזרות
The GCKRequest object for tracking this request.
- (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.
החזרות
The GCKRequest object for tracking this request.
- (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.
החזרות
The GCKRequest object for tracking this request.
- (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.
החזרות
The GCKRequest object for tracking this request.
- (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.
החזרות
The GCKRequest object for tracking this request.
- (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.
החזרות
The GCKRequest object for tracking this request.
- (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.
החזרות
The GCKRequest object for tracking this request.
- (GCKRequest *) queueUpdateItems: (NSArray< GCKMediaQueueItem * > *)  queueItems

עדכון התור.

Parameters
queueItemsThe list of updated items.
החזרות
The GCKRequest object for tracking this request.
- (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.
החזרות
The GCKRequest object for tracking this request.
- (GCKRequest *) queueRemoveItemsWithIDs: (NSArray< NSNumber * > *)  itemIDs

הסרת רשימה של פריטי מדיה מהתור.

אם התור מתרוקן כתוצאה מכך, סשן המדיה הנוכחי יסתיים.

Parameters
itemIDsAn array of media item IDs identifying the items to remove. Must not be nil or empty.
החזרות
The GCKRequest object for tracking this request.
- (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.
החזרות
The GCKRequest object for tracking this request.
- (GCKRequest *) queueRemoveItemWithID: (NSUInteger)  itemID

שיטה נוחה להסרת פריט יחיד מהתור.

Parameters
itemIDThe ID of the item to remove.
החזרות
The GCKRequest object for tracking this request.
- (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.
החזרות
The GCKRequest object for tracking this request.
- (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.
החזרות
The GCKRequest object for tracking this request.
- (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.
החזרות
The GCKRequest object for tracking this request.
- (GCKRequest *) queueJumpToItemWithID: (NSUInteger)  itemID

מעבר לפריט עם המזהה שצוין בתור.

Parameters
itemIDThe ID of the item to jump to.
החזרות
The GCKRequest object for tracking this request.
- (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.
החזרות
The GCKRequest object for tracking this request.
- (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.
החזרות
The GCKRequest object for tracking this request.
- (GCKRequest *) queueNextItem

מעבר לפריט הבא בתור.

החזרות
The GCKRequest object for tracking this request.
- (GCKRequest *) queuePreviousItem

מעבר לפריט הקודם בתור.

החזרות
The GCKRequest object for tracking this request.
- (GCKRequest *) queueSetRepeatMode: (GCKMediaRepeatMode repeatMode

הגדרת מצב החזרה של התור.

Parameters
repeatModeThe new repeat mode.
החזרות
The GCKRequest object for tracking this request.
- (GCKRequest *) setStreamVolume: (float)  volume

הגדרת עוצמת הקול של הזרם.

הבקשה תיכשל אם אין סשן מדיה פעיל.

Parameters
volumeThe new volume, in the range [0.0 - 1.0].
החזרות
The GCKRequest object for tracking this request.
- (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.
החזרות
The GCKRequest object for tracking this request.
- (GCKRequest *) setStreamMuted: (BOOL)  muted

קובעת אם השידור מושתק.

הבקשה תיכשל אם אין סשן מדיה פעיל.

Parameters
mutedWhether the stream should be muted or unmuted.
החזרות
The GCKRequest object for tracking this request.
- (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.
החזרות
The GCKRequest object for tracking this request.
- (GCKRequest *) requestStatus

שולח בקשה לקבלת מידע עדכני על סטטוס המדיה מהמקבל.

החזרות
The GCKRequest object for tracking this request.
- (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.