Genel Bakış
Medya kontrolü işlemleri için GCKCastChannel alt sınıfı.
Şu anda etkin olan bir akışa uygulanan tüm işlemler (oynatma, duraklatma, arama, durdurma vb.) geçerli (yani boş olmayan) bir medya durumu gerektirir. Aksi takdirde kGCKInvalidRequestID döndürülür ve istek gönderilmez. Kanal bağlandığında otomatik olarak medya durumu istenir, başarılı bir yükleme tamamlandı yanıtıyla birlikte gönderilir ve istenildiği zaman güncellenebilir. Medya durumu da herhangi bir zamanda boş olabilir. Bu durum, örneğin kanalın geçici olarak bağlantısının kesilmesi halinde gerçekleşir. Bu kanal kullanılırken medya durumu değişiklikleri mediaControlChannelDidUpdateStatus: (GCKMediaControlChannelDelegate-p) geri çağırma işlevi aracılığıyla izlenmeli ve akışlar üzerinde işlem yapan yöntemler yalnızca medya durumu sıfır değilken çağrılmalıdır.
Bir istek başarıyla başlatılırsa ilgili yöntem, bu isteğe atanan istek kimliğini döndürür. İstek başlatılamazsa yöntem kGCKInvalidRequestID değerini döndürür ve başarısızlığın nedenini belirtmek için lastError özelliğini ayarlar. Bir istek başarıyla başlatılır ancak sonunda başarısız olursa başarısızlığı belirtmek için mediaControlChannel:requestDidFailWithID:error: (GCKMediaControlChannelDelegate-p) geri çağırma işlemi çağrılır.
Temsilci protokolü için GCKMediaControlChannelDelegate adresine bakın.
- Deprecated:
- Medya oynatmayı kontrol etmek için GCKCastSession öğesinin GCKRemoteMediaClient özelliğini kullanın.
GCKCastChannel öğesini devralır.
Örnek Yöntem Özeti | |
(instancetype) | - init |
Belirlenmiş başlatıcı. Diğer... | |
(NSInteger) | - loadMedia: |
Yeni bir medya öğesini yükler ve oynatmaya başlar. Diğer... | |
(NSInteger) | - loadMedia:autoplay: |
Yeni bir medya öğesini yükler ve isteğe bağlı olarak oynatmaya başlar. Diğer... | |
(NSInteger) | - loadMedia:autoplay:playPosition: |
Yeni bir medya öğesini yükler ve isteğe bağlı olarak oynatmaya başlar. Diğer... | |
(NSInteger) | - loadMedia:autoplay:playPosition:customData: |
Yeni bir medya öğesini yükler ve isteğe bağlı olarak oynatmaya başlar. Diğer... | |
(NSInteger) | - loadMedia:autoplay:playPosition:activeTrackIDs: |
Yeni bir medya öğesini yükler ve isteğe bağlı olarak oynatmaya başlar. Diğer... | |
(NSInteger) | - loadMedia:autoplay:playPosition:activeTrackIDs:customData: |
Yeni bir medya öğesini yükler ve isteğe bağlı olarak oynatmaya başlar. Diğer... | |
(NSInteger) | - setActiveTrackIDs: |
Etkin parçaları ayarlar. Diğer... | |
(NSInteger) | - setTextTrackStyle: |
Metin parçası stilini ayarlar. Diğer... | |
(NSInteger) | - pause |
Geçerli medya öğesinin oynatılmasını duraklatır. Diğer... | |
(NSInteger) | - pauseWithCustomData: |
Geçerli medya öğesinin oynatılmasını duraklatır. Diğer... | |
(NSInteger) | - stop |
Mevcut medya öğesinin oynatılmasını durdurur. Diğer... | |
(NSInteger) | - stopWithCustomData: |
Mevcut medya öğesinin oynatılmasını durdurur. Diğer... | |
(NSInteger) | - play |
Mevcut medya öğesinin oynatılmasını başlatır (veya devam ettirir). Diğer... | |
(NSInteger) | - playWithCustomData: |
Mevcut medya öğesinin oynatılmasını başlatır (veya devam ettirir). Diğer... | |
(NSInteger) | - seekToTimeInterval: |
Geçerli medya öğesinde yeni bir konuma gitmek için kullanılır. Diğer... | |
(NSInteger) | - seekToTimeInterval:resumeState: |
Geçerli medya öğesinde yeni bir konuma gitmek için kullanılır. Diğer... | |
(NSInteger) | - seekToTimeInterval:resumeState:customData: |
Geçerli medya öğesinde yeni bir konuma gitmek için kullanılır. Diğer... | |
(NSInteger) | - queueLoadItems:startIndex:repeatMode: |
Yeni bir medya öğeleri sırasını yükler ve isteğe bağlı olarak oynatmaya başlar. Diğer... | |
(NSInteger) | - queueLoadItems:startIndex:repeatMode:customData: |
Yeni bir medya öğeleri sırasını yükler ve isteğe bağlı olarak oynatmaya başlar. Diğer... | |
(NSInteger) | - queueLoadItems:startIndex:playPosition:repeatMode:customData: |
Yeni bir medya öğeleri sırasını yükler ve isteğe bağlı olarak oynatmaya başlar. Diğer... | |
(NSInteger) | - queueInsertItems:beforeItemWithID: |
Kuyruğa yeni medya öğelerinin listesini ekler. Diğer... | |
(NSInteger) | - queueInsertItems:beforeItemWithID:customData: |
Kuyruğa yeni medya öğelerinin listesini ekler. Diğer... | |
(NSInteger) | - queueInsertItem:beforeItemWithID: |
Sıraya tek bir öğe ekleyen kolaylık yöntemi. Diğer... | |
(NSInteger) | - queueInsertAndPlayItem:beforeItemWithID: |
Tek bir öğeyi sıraya ekleyip geçerli öğe yapan kolaylık yöntemi. Diğer... | |
(NSInteger) | - queueInsertAndPlayItem:beforeItemWithID:playPosition:customData: |
Tek bir öğeyi sıraya ekleyip geçerli öğe yapan kolaylık yöntemi. Diğer... | |
(NSInteger) | - queueUpdateItems: |
Sırayı günceller. Diğer... | |
(NSInteger) | - queueUpdateItems:customData: |
Sırayı günceller. Diğer... | |
(NSInteger) | - queueRemoveItemsWithIDs: |
Sıradan bir medya öğeleri listesini kaldırır. Diğer... | |
(NSInteger) | - queueRemoveItemsWithIDs:customData: |
Sıradan bir medya öğeleri listesini kaldırır. Diğer... | |
(NSInteger) | - queueRemoveItemWithID: |
Sıradan tek bir öğeyi kaldıran kolaylık yöntemi. Diğer... | |
(NSInteger) | - queueReorderItemsWithIDs:insertBeforeItemWithID: |
Kuyruktaki medya öğeleri listesini yeniden sıralar. Diğer... | |
(NSInteger) | - queueReorderItemsWithIDs:insertBeforeItemWithID:customData: |
Kuyruktaki medya öğeleri listesini yeniden sıralama Diğer... | |
(NSInteger) | - queueMoveItemWithID:beforeItemWithID: |
Sıradaki tek bir öğeyi taşıyan kolaylık yöntemi. Diğer... | |
(NSInteger) | - queueJumpToItemWithID: |
Kuyrukta belirtilen kimliğe sahip öğeye atlar. Diğer... | |
(NSInteger) | - queueJumpToItemWithID:customData: |
Kuyrukta belirtilen kimliğe sahip öğeye atlar. Diğer... | |
(NSInteger) | - queueJumpToItemWithID:playPosition:customData: |
Kuyrukta belirtilen kimliğe sahip öğeye atlar. Diğer... | |
(NSInteger) | - queueNextItem |
Sıradaki bir sonraki öğeye gider. Diğer... | |
(NSInteger) | - queuePreviousItem |
Kuyruktaki önceki öğeye gider. Diğer... | |
(NSInteger) | - queueSetRepeatMode: |
Sıra tekrarlama modunu ayarlar. Diğer... | |
(NSInteger) | - setStreamVolume: |
Akış sesini ayarlar. Diğer... | |
(NSInteger) | - setStreamVolume:customData: |
Akış sesini ayarlar. Diğer... | |
(NSInteger) | - setStreamMuted: |
Akışın sesi kapatılıp kapatılmayacağını ayarlar. Diğer... | |
(NSInteger) | - setStreamMuted:customData: |
Akışın sesi kapatılıp kapatılmayacağını ayarlar. Diğer... | |
(NSInteger) | - requestStatus |
Alıcıdan güncellenmiş medya durumu bilgilerini ister. Diğer... | |
(NSTimeInterval) | - approximateStreamPosition |
Son alınan yayın bilgileri ve bu güncellemeden bu yana geçen süreye göre hesaplanan yaklaşık yayın konumunu döndürür. Diğer... | |
(BOOL) | - cancelRequestWithID: |
Devam eden bir isteği iptal eder. Diğer... | |
(instancetype) | - initWithNamespace: |
Belirlenmiş başlatıcı. Diğer... | |
(void) | - didReceiveTextMessage: |
Bu kanalda kısa mesaj alındığında çağrılır. Diğer... | |
(BOOL) | - sendTextMessage: |
Bu kanalda kısa mesaj gönderir. Diğer... | |
(BOOL) | - sendTextMessage:error: |
Bu kanalda kısa mesaj gönderir. Diğer... | |
(NSInteger) | - generateRequestID |
Yeni bir mesaj için istek kimliği oluşturur. Diğer... | |
(NSNumber *__nullable) | - generateRequestNumber |
generateRequestID sonucunu NSNumber ile sarmalayan bir kolaylık yöntemi. Diğer... | |
(void) | - didConnect |
Bu kanal bağlandığında çağrılır. Bu kanal üzerinden Cast cihazıyla artık mesaj alışverişi yapılabileceğini belirtir. Diğer... | |
(void) | - didDisconnect |
Bu kanalın bağlantısı kesildiğinde çağrılır. Bu kanal üzerinden Cast cihazıyla artık mesaj alışverişi yapılamayacağını belirtir. Diğer... | |
Tesis Özeti | |
GCKMediaStatus * | mediaStatus |
Şu anda yüklenen medyanın medya durumu (varsa); aksi takdirde nil . Diğer... | |
NSTimeInterval | timeSinceLastMediaStatusUpdate |
Son medya durumu güncellemesinin alınmasından bu yana geçen süre. Diğer... | |
GCKError * | lastError |
Varsa son isteğin hata ayrıntısı veya son istek başarılıysa nil . Diğer... | |
id< GCKMediaControlChannelDelegate > | delegate |
Kanalın durumundaki değişikliklerle ilgili bildirimleri alacak temsilci. Diğer... | |
NSString * | protocolNamespace |
Kanalın ad alanı. Diğer... | |
BOOL | isConnected |
Bu kanalın şu anda bağlı olup olmadığını gösteren işaret. Diğer... | |
GCKDeviceManager * | deviceManager |
Bu kanalın kayıtlı olduğu cihaz yöneticisi (varsa). Diğer... | |
Yöntem Ayrıntıları
- (instancetype) init |
Belirlenmiş başlatıcı.
GCKCastChannel uyguluyor.
- (NSInteger) loadMedia: | (GCKMediaInformation *) | mediaInfo |
Yeni bir medya öğesini yükler ve oynatmaya başlar.
- Parameters
-
mediaInfo An object describing the media item to load.
- İadeler
- İstek kimliği veya ileti gönderilemediyse kGCKInvalidRequestID.
- (NSInteger) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
Yeni bir medya öğesini yükler ve isteğe bağlı olarak oynatmaya başlar.
- Parameters
-
mediaInfo An object describing the media item to load. autoplay Whether playback should start immediately.
- İadeler
- İstek kimliği veya ileti gönderilemediyse kGCKInvalidRequestID.
- (NSInteger) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
playPosition: | (NSTimeInterval) | playPosition | |
Yeni bir medya öğesini yükler ve isteğe bağlı olarak oynatmaya başlar.
- Parameters
-
mediaInfo An object describing the media item to load. autoplay Whether playback should start immediately. playPosition The initial playback position.
- İadeler
- İstek kimliği veya ileti gönderilemediyse kGCKInvalidRequestID.
- (NSInteger) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
playPosition: | (NSTimeInterval) | playPosition | |
customData: | (id __nullable) | customData | |
Yeni bir medya öğesini yükler ve isteğe bağlı olarak oynatmaya başlar.
- Parameters
-
mediaInfo An object describing the media item to load. autoplay Whether playback should start immediately. playPosition The initial playback position. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- İadeler
- İstek kimliği veya ileti gönderilemediyse kGCKInvalidRequestID.
- (NSInteger) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
playPosition: | (NSTimeInterval) | playPosition | |
activeTrackIDs: | (NSArray< NSNumber * > *__nullable) | activeTrackIDs | |
Yeni bir medya öğesini yükler ve isteğe bağlı olarak oynatmaya başlar.
- Parameters
-
mediaInfo An object describing the media item to load. autoplay Whether playback should start immediately. playPosition The initial playback position. activeTrackIDs An array of integers specifying the active tracks. May be nil
.
- İadeler
- İstek kimliği veya ileti gönderilemediyse kGCKInvalidRequestID.
- (NSInteger) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
playPosition: | (NSTimeInterval) | playPosition | |
activeTrackIDs: | (NSArray< NSNumber * > *__nullable) | activeTrackIDs | |
customData: | (id __nullable) | customData | |
Yeni bir medya öğesini yükler ve isteğe bağlı olarak oynatmaya başlar.
- Parameters
-
mediaInfo An object describing the media item to load. autoplay Whether playback should start immediately. playPosition The initial playback position. activeTrackIDs An array of integers specifying the active tracks. May be nil
.customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- İadeler
- İstek kimliği veya ileti gönderilemediyse kGCKInvalidRequestID.
- (NSInteger) setActiveTrackIDs: | (NSArray< NSNumber * > *__nullable) | activeTrackIDs |
Etkin parçaları ayarlar.
Mevcut medya durumu yoksa istek başarısız olur.
- Parameters
-
activeTrackIDs An array of integers specifying the active tracks.
- İadeler
- İstek kimliği veya ileti gönderilemediyse kGCKInvalidRequestID. Etkin parçaları boş listeye ayarlamak için
nil
veya boş bir dizi olabilir.
- (NSInteger) setTextTrackStyle: | (GCKMediaTextTrackStyle *__nullable) | textTrackStyle |
Metin parçası stilini ayarlar.
Mevcut medya durumu yoksa istek başarısız olur.
- Parameters
-
textTrackStyle The text track style. The style will not be changed if this is nil
.
- İadeler
- İstek kimliği veya ileti gönderilemediyse kGCKInvalidRequestID.
- (NSInteger) pause |
Geçerli medya öğesinin oynatılmasını duraklatır.
Mevcut medya durumu yoksa istek başarısız olur.
- İadeler
- İstek kimliği veya ileti gönderilemediyse kGCKInvalidRequestID.
- (NSInteger) pauseWithCustomData: | (id __nullable) | customData |
Geçerli medya öğesinin oynatılmasını duraklatır.
Mevcut medya durumu yoksa istek başarısız olur.
- Parameters
-
customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- İadeler
- İstek kimliği veya ileti gönderilemediyse kGCKInvalidRequestID.
- (NSInteger) stop |
Mevcut medya öğesinin oynatılmasını durdurur.
Mevcut medya durumu yoksa istek başarısız olur. Şu anda yüklenmiş bir sıra varsa kaldırılır.
- İadeler
- İstek kimliği veya ileti gönderilemediyse kGCKInvalidRequestID.
- (NSInteger) stopWithCustomData: | (id __nullable) | customData |
Mevcut medya öğesinin oynatılmasını durdurur.
Mevcut medya durumu yoksa istek başarısız olur. Şu anda yüklenmiş bir sıra varsa kaldırılır.
- Parameters
-
customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- İadeler
- İstek kimliği veya ileti gönderilemediyse kGCKInvalidRequestID.
- (NSInteger) play |
Mevcut medya öğesinin oynatılmasını başlatır (veya devam ettirir).
Oynatma her zaman akışın başından başlar. Mevcut medya durumu yoksa istek başarısız olur.
- İadeler
- İstek kimliği veya ileti gönderilemediyse kGCKInvalidRequestID.
- (NSInteger) playWithCustomData: | (id __nullable) | customData |
Mevcut medya öğesinin oynatılmasını başlatır (veya devam ettirir).
Oynatma her zaman akışın başından başlar. Mevcut medya durumu yoksa istek başarısız olur.
- Parameters
-
customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- İadeler
- İstek kimliği veya ileti gönderilemediyse kGCKInvalidRequestID.
- (NSInteger) seekToTimeInterval: | (NSTimeInterval) | position |
Geçerli medya öğesinde yeni bir konuma gitmek için kullanılır.
Mevcut medya durumu yoksa istek başarısız olur.
- Parameters
-
position The new position from the beginning of the stream.
- İadeler
- İstek kimliği veya ileti gönderilemediyse kGCKInvalidRequestID.
- (NSInteger) seekToTimeInterval: | (NSTimeInterval) | position | |
resumeState: | (GCKMediaControlChannelResumeState) | resumeState | |
Geçerli medya öğesinde yeni bir konuma gitmek için kullanılır.
Mevcut medya durumu yoksa istek başarısız olur.
- Parameters
-
position The new position interval from the beginning of the stream. resumeState The action to take after the seek operation has finished.
- İadeler
- İstek kimliği veya ileti gönderilemediyse kGCKInvalidRequestID.
- (NSInteger) seekToTimeInterval: | (NSTimeInterval) | position | |
resumeState: | (GCKMediaControlChannelResumeState) | resumeState | |
customData: | (id __nullable) | customData | |
Geçerli medya öğesinde yeni bir konuma gitmek için kullanılır.
Mevcut medya durumu yoksa istek başarısız olur.
- Parameters
-
position The new position from the beginning of the stream. resumeState The action to take after the seek operation has finished. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- İadeler
- İstek kimliği veya ileti gönderilemediyse kGCKInvalidRequestID.
- (NSInteger) queueLoadItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
startIndex: | (NSUInteger) | startIndex | |
repeatMode: | (GCKMediaRepeatMode) | repeatMode | |
Yeni bir medya öğeleri sırasını yükler ve isteğe bağlı olarak oynatmaya başlar.
- Parameters
-
queueItems An array of GCKMediaQueueItem instances to load. Must not be nil
or empty.startIndex The index of the item in the items array that should be played first. repeatMode The repeat mode for playing the queue.
- İadeler
- Bu isteğin istek kimliği veya kGCKInvalidRequestID mesaj gönderilemediyse ya da parametrelerden herhangi biri geçersizse.
- (NSInteger) queueLoadItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
startIndex: | (NSUInteger) | startIndex | |
repeatMode: | (GCKMediaRepeatMode) | repeatMode | |
customData: | (id __nullable) | customData | |
Yeni bir medya öğeleri sırasını yükler ve isteğe bağlı olarak oynatmaya başlar.
- Parameters
-
queueItems An array of GCKMediaQueueItem instances to load. Must not be nil
or empty.startIndex The index of the item in the items array that should be played first. repeatMode The repeat mode for playing the queue. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- İadeler
- Bu isteğin istek kimliği veya kGCKInvalidRequestID mesaj gönderilemediyse ya da parametrelerden herhangi biri geçersizse.
- (NSInteger) queueLoadItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
startIndex: | (NSUInteger) | startIndex | |
playPosition: | (NSTimeInterval) | playPosition | |
repeatMode: | (GCKMediaRepeatMode) | repeatMode | |
customData: | (id __nullable) | customData | |
Yeni bir medya öğeleri sırasını yükler ve isteğe bağlı olarak oynatmaya başlar.
- Parameters
-
queueItems An array of GCKMediaQueueItem instances to load. Must not be nil
or empty.startIndex The index of the item in the items array that should be played first. playPosition The 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. repeatMode The repeat mode for playing the queue. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- İadeler
- Bu isteğin istek kimliği veya kGCKInvalidRequestID mesaj gönderilemediyse ya da parametrelerden herhangi biri geçersizse.
- (NSInteger) queueInsertItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
Kuyruğa yeni medya öğelerinin listesini ekler.
- Parameters
-
queueItems An array of GCKMediaQueueItem instances to insert. Must not be nil
or empty.beforeItemID The 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.
- İadeler
- Bu isteğin istek kimliği veya kGCKInvalidRequestID mesaj gönderilemediyse ya da parametrelerden herhangi biri geçersizse.
- (NSInteger) queueInsertItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
customData: | (id __nullable) | customData | |
Kuyruğa yeni medya öğelerinin listesini ekler.
- Parameters
-
queueItems An array of GCKMediaQueueItem instances to insert. Must not be nil
or empty.beforeItemID 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. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- İadeler
- Bu isteğin istek kimliği veya kGCKInvalidRequestID mesaj gönderilemediyse ya da parametrelerden herhangi biri geçersizse.
- (NSInteger) queueInsertItem: | (GCKMediaQueueItem *) | item | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
Sıraya tek bir öğe ekleyen kolaylık yöntemi.
- Parameters
-
item The item to insert. beforeItemID The 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.
- İadeler
- Bu isteğin istek kimliği veya kGCKInvalidRequestID mesaj gönderilemediyse ya da parametrelerden herhangi biri geçersizse.
- (NSInteger) queueInsertAndPlayItem: | (GCKMediaQueueItem *) | item | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
Tek bir öğeyi sıraya ekleyip geçerli öğe yapan kolaylık yöntemi.
- Parameters
-
item The item to insert. beforeItemID The 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.
- İadeler
- Bu isteğin istek kimliği veya kGCKInvalidRequestID mesaj gönderilemediyse ya da parametrelerden herhangi biri geçersizse.
- (NSInteger) queueInsertAndPlayItem: | (GCKMediaQueueItem *) | item | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
playPosition: | (NSTimeInterval) | playPosition | |
customData: | (id __nullable) | customData | |
Tek bir öğeyi sıraya ekleyip geçerli öğe yapan kolaylık yöntemi.
- Parameters
-
item The item to insert. beforeItemID The 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. playPosition The 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. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- İadeler
- Bu isteğin istek kimliği veya kGCKInvalidRequestID mesaj gönderilemediyse ya da parametrelerden herhangi biri geçersizse.
- (NSInteger) queueUpdateItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems |
Sırayı günceller.
- Parameters
-
queueItems The list of updated items.
- İadeler
- Bu isteğin istek kimliği veya kGCKInvalidRequestID mesaj gönderilemediyse ya da parametrelerden herhangi biri geçersizse.
- (NSInteger) queueUpdateItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
customData: | (id __nullable) | customData | |
Sırayı günceller.
- Parameters
-
queueItems The list of updated items. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- İadeler
- Bu isteğin istek kimliği veya kGCKInvalidRequestID mesaj gönderilemediyse ya da parametrelerden herhangi biri geçersizse.
- (NSInteger) queueRemoveItemsWithIDs: | (NSArray< NSNumber * > *) | itemIDs |
Sıradan bir medya öğeleri listesini kaldırır.
Bu durumda kuyruk boşalırsa mevcut medya oturumu sonlandırılır.
- Parameters
-
itemIDs An array of media item IDs identifying the items to remove. Must not be nil
or empty.
- İadeler
- Bu isteğin istek kimliği veya kGCKInvalidRequestID mesaj gönderilemediyse ya da parametrelerden herhangi biri geçersizse.
- (NSInteger) queueRemoveItemsWithIDs: | (NSArray< NSNumber * > *) | itemIDs | |
customData: | (id __nullable) | customData | |
Sıradan bir medya öğeleri listesini kaldırır.
Bu durumda kuyruk boşalırsa mevcut medya oturumu sonlandırılır.
- Parameters
-
itemIDs An array of media item IDs identifying the items to remove. Must not be nil
or empty.customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- İadeler
- Bu isteğin istek kimliği veya kGCKInvalidRequestID mesaj gönderilemediyse ya da parametrelerden herhangi biri geçersizse.
- (NSInteger) queueRemoveItemWithID: | (NSUInteger) | itemID |
Sıradan tek bir öğeyi kaldıran kolaylık yöntemi.
- Parameters
-
itemID The ID of the item to remove.
- İadeler
- Bu isteğin istek kimliği veya kGCKInvalidRequestID mesaj gönderilemediyse ya da parametrelerden herhangi biri geçersizse.
- (NSInteger) queueReorderItemsWithIDs: | (NSArray< NSNumber * > *) | queueItemIDs | |
insertBeforeItemWithID: | (NSUInteger) | beforeItemID | |
Kuyruktaki medya öğeleri listesini yeniden sıralar.
- Parameters
-
queueItemIDs An array of media item IDs identifying the items to reorder. Must not be nil
or empty.beforeItemID 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 appended at the end of the queue.
- İadeler
- Bu isteğin istek kimliği veya kGCKInvalidRequestID mesaj gönderilemediyse ya da parametrelerden herhangi biri geçersizse.
- (NSInteger) queueReorderItemsWithIDs: | (NSArray< NSNumber * > *) | queueItemIDs | |
insertBeforeItemWithID: | (NSUInteger) | beforeItemID | |
customData: | (id __nullable) | customData | |
Kuyruktaki medya öğeleri listesini yeniden sıralama
- Parameters
-
queueItemIDs An array of media item IDs identifying the items to reorder. Must not be nil
or empty.beforeItemID The 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. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- İadeler
- Bu isteğin istek kimliği veya kGCKInvalidRequestID mesaj gönderilemediyse ya da parametrelerden herhangi biri geçersizse.
- (NSInteger) queueMoveItemWithID: | (NSUInteger) | itemID | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
Sıradaki tek bir öğeyi taşıyan kolaylık yöntemi.
- Parameters
-
itemID The ID of the item to move. beforeItemID The 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.
- İadeler
- Bu isteğin istek kimliği veya kGCKInvalidRequestID mesaj gönderilemediyse ya da parametrelerden herhangi biri geçersizse.
- (NSInteger) queueJumpToItemWithID: | (NSUInteger) | itemID |
Kuyrukta belirtilen kimliğe sahip öğeye atlar.
- Parameters
-
itemID The ID of the item to jump to.
- İadeler
- Bu isteğin istek kimliği veya mesaj gönderilemediyse kGCKInvalidRequestID.
- (NSInteger) queueJumpToItemWithID: | (NSUInteger) | itemID | |
customData: | (id __nullable) | customData | |
Kuyrukta belirtilen kimliğe sahip öğeye atlar.
- Parameters
-
itemID The ID of the item to jump to. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- İadeler
- Bu isteğin istek kimliği veya mesaj gönderilemediyse kGCKInvalidRequestID.
- (NSInteger) queueJumpToItemWithID: | (NSUInteger) | itemID | |
playPosition: | (NSTimeInterval) | playPosition | |
customData: | (id __nullable) | customData | |
Kuyrukta belirtilen kimliğe sahip öğeye atlar.
- Parameters
-
itemID The ID of the item to jump to. playPosition The 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. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- İadeler
- Bu isteğin istek kimliği veya mesaj gönderilemediyse kGCKInvalidRequestID.
- (NSInteger) queueNextItem |
Sıradaki bir sonraki öğeye gider.
- İadeler
- Bu isteğin istek kimliği veya mesaj gönderilemediyse kGCKInvalidRequestID.
- (NSInteger) queuePreviousItem |
Kuyruktaki önceki öğeye gider.
- İadeler
- Bu isteğin istek kimliği veya mesaj gönderilemediyse kGCKInvalidRequestID.
- (NSInteger) queueSetRepeatMode: | (GCKMediaRepeatMode) | repeatMode |
Sıra tekrarlama modunu ayarlar.
- Parameters
-
repeatMode The new repeat mode.
- İadeler
- Bu isteğin istek kimliği veya kGCKInvalidRequestID mesaj gönderilemediyse ya da parametrelerden herhangi biri geçersizse.
- (NSInteger) setStreamVolume: | (float) | volume |
Akış sesini ayarlar.
Mevcut bir medya oturumu yoksa istek başarısız olur.
- Parameters
-
volume The new volume, in the range [0.0 - 1.0].
- İadeler
- İstek kimliği veya ileti gönderilemediyse kGCKInvalidRequestID.
- (NSInteger) setStreamVolume: | (float) | volume | |
customData: | (id __nullable) | customData | |
Akış sesini ayarlar.
Mevcut bir medya oturumu yoksa istek başarısız olur.
- Parameters
-
volume The new volume, in the range [0.0 - 1.0]. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- İadeler
- İstek kimliği veya ileti gönderilemediyse kGCKInvalidRequestID.
- (NSInteger) setStreamMuted: | (BOOL) | muted |
Akışın sesi kapatılıp kapatılmayacağını ayarlar.
Mevcut bir medya oturumu yoksa istek başarısız olur.
- Parameters
-
muted Whether the stream should be muted or unmuted.
- İadeler
- İstek kimliği veya ileti gönderilemediyse kGCKInvalidRequestID.
- (NSInteger) setStreamMuted: | (BOOL) | muted | |
customData: | (id __nullable) | customData | |
Akışın sesi kapatılıp kapatılmayacağını ayarlar.
Mevcut bir medya oturumu yoksa istek başarısız olur.
- Parameters
-
muted Whether the stream should be muted or unmuted. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- İadeler
- İstek kimliği veya ileti gönderilemediyse kGCKInvalidRequestID.
- (NSInteger) requestStatus |
Alıcıdan güncellenmiş medya durumu bilgilerini ister.
- İadeler
- İstek kimliği veya ileti gönderilemediyse kGCKInvalidRequestID.
- (NSTimeInterval) approximateStreamPosition |
Son alınan yayın bilgileri ve bu güncellemeden bu yana geçen süreye göre hesaplanan yaklaşık yayın konumunu döndürür.
Kanal bağlı değilse veya şu anda medya yüklenmemişse 0 değerini döndürür.
- (BOOL) cancelRequestWithID: | (NSInteger) | requestID |
Devam eden bir isteği iptal eder.
Bir isteğin iptal edilmesi, isteğin yürütülmesini engellemez. Yalnızca çağıran uygulamanın artık isteğin sonuçlarıyla ilgilenmediğini belirtir. Bu nedenle, isteğin izlenmesiyle ilişkili tüm durumlar temizlenir.
- Parameters
-
requestID The ID of the request to cancel.
- İadeler İstek iptal edildiyse
YES
, belirtilen kimlikle izlenen bir istek yoksaNO
döndürülür.
- (instancetype) initWithNamespace: | (NSString *) | protocolNamespace |
Belirlenmiş başlatıcı.
Belirtilen ad alanıyla yeni bir GCKCastChannel oluşturur.
- Parameters
-
protocolNamespace The namespace.
GCKGenericChannel sürümünde uygulandı.
- (void) didReceiveTextMessage: | (NSString *) | message |
Bu kanalda kısa mesaj alındığında çağrılır.
Varsayılan uygulama, işlem yapmaz.
- Parameters
-
message The message.
- (BOOL) sendTextMessage: | (NSString *) | message |
Bu kanalda kısa mesaj gönderir.
- Parameters
-
message The message.
- İadeler Başarılı olursa
YES
, ileti gönderilemezse (kanal bağlı olmadığı veya gönderim arabelleği şu anda çok dolu olduğu için)NO
döndürülür.
- Deprecated: Ayrıntılı hata bilgileri sağlayan
- aracını kullanın.sendTextMessage:error:
- (BOOL) sendTextMessage: | (NSString *) | message | |
error: | (GCKError *__nullable *__nullable) | error | |
Bu kanalda kısa mesaj gönderir.
- Parameters
-
message The message. error A pointer at which to store the error result. May be nil
.
- İadeler Başarılı olursa
YES
, ileti gönderilemezseNO
simgesi gösterilir.
- (NSInteger) generateRequestID |
Yeni bir mesaj için istek kimliği oluşturur.
- İadeler Oluşturulan kimlik veya kanal şu anda bağlı değilse kGCKInvalidRequestID.
- (NSNumber * __nullable) generateRequestNumber |
generateRequestID sonucunu NSNumber ile sarmalayan bir kolaylık yöntemi.
- İadeler Oluşturulan kimlik veya kanal şu anda bağlı değilse
nil
.- (void) didConnect |
Bu kanal bağlandığında çağrılır. Bu kanal üzerinden Cast cihazıyla artık mesaj alışverişi yapılabileceğini belirtir.
Varsayılan uygulama, işlem yapmaz.
- (void) didDisconnect |
Bu kanalın bağlantısı kesildiğinde çağrılır. Bu kanal üzerinden Cast cihazıyla artık mesaj alışverişi yapılamayacağını belirtir.
Varsayılan uygulama, işlem yapmaz.
Tesis Ayrıntıları
|
readnonatomicstrong |
Şu anda yüklenen medyanın medya durumu (varsa); aksi takdirde nil
.
|
readnonatomicassign |
Son medya durumu güncellemesinin alınmasından bu yana geçen süre.
Şu anda devam eden bir durum isteği varsa bu değer 0 olur.
|
readnonatomiccopy |
Varsa son isteğin hata ayrıntısı veya son istek başarılıysa nil
.
|
readwritenonatomicweak |
Kanalın durumundaki değişikliklerle ilgili bildirimleri alacak temsilci.
|
readnonatomiccopyinherited |
Kanalın ad alanı.
|
readnonatomicassigninherited |
Bu kanalın şu anda bağlı olup olmadığını gösteren işaret.
|
readnonatomicweakinherited |
Bu kanalın kayıtlı olduğu cihaz yöneticisi (varsa).
- Deprecated:
- Bu kanal, desteği sonlandırılan GCKDeviceManager sınıfına kaydedilmediyse bu
nil
olur.