Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
<GCKMediaControlChannelDelegate> 通訊協定
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
沿用 <GCKCastChannelNSObject>。
| - (void) mediaControlChannel: |
|
(GCKMediaControlChannel *) |
mediaControlChannel |
| didCompleteLoadWithSessionID: |
|
(NSInteger) |
sessionID |
|
|
| |
|
optional |
在載入媒體請求時呼叫。
- Parameters
-
| mediaControlChannel | The channel. |
| sessionID | The unique media session ID that has been assigned to this media item. |
當載入媒體的要求失敗時呼叫。
- Parameters
-
| mediaControlChannel | The channel. |
| error | The load error. |
收到最新的玩家狀態資訊時呼叫。
- Parameters
-
| mediaControlChannel | The channel. |
收到更新的佇列狀態資訊時呼叫。
- Parameters
-
| mediaControlChannel | The channel. |
在收到更新的預先載入狀態時呼叫。
- Parameters
-
| mediaControlChannel | The channel. |
在接收到更新媒體中繼資料時呼叫。
- Parameters
-
| mediaControlChannel | The channel. |
| - (void) mediaControlChannel: |
|
(GCKMediaControlChannel *) |
mediaControlChannel |
| requestDidCompleteWithID: |
|
(NSInteger) |
requestID |
|
|
| |
|
optional |
在要求成功時呼叫。
- Parameters
-
| mediaControlChannel | The channel. |
| requestID | The request ID that failed. This is the ID returned when the request was made. |
| - (void) mediaControlChannel: |
|
(GCKMediaControlChannel *) |
mediaControlChannel |
| didReplaceRequestWithID: |
|
(NSInteger) |
requestID |
|
|
| |
|
optional |
當應用程式發出了相同類型的另一個要求時,如果不再追蹤要求,則會呼叫此方法。
- Parameters
-
| mediaControlChannel | The channel. |
| requestID | The request ID that has been replaced. This is the ID returned when the request was made. |
| - (void) mediaControlChannel: |
|
(GCKMediaControlChannel *) |
mediaControlChannel |
| didCancelRequestWithID: |
|
(NSInteger) |
requestID |
|
|
| |
|
optional |
當已經明確被取消追蹤時,會呼叫此方法。
- Parameters
-
| mediaControlChannel | The channel. |
| requestID | The request ID that has been cancelled. This is the ID returned when the request was made. |
當要求失敗時呼叫。
- Parameters
-
| mediaControlChannel | The channel. |
| requestID | The request ID that failed. This is the ID returned when the request was made. |
| error | The error. If any custom data was associated with the error, it will be in the error's userInfo dictionary with the key . |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2022-12-05 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2022-12-05 (世界標準時間)。"],[],["The GCKMediaControlChannel delegate protocol updates on media operations. It notifies when media loading succeeds via `didCompleteLoadWithSessionID` or fails via `didFailToLoadMediaWithError`. It also provides updates on the player status, queue status, preload status, and metadata using `mediaControlChannelDidUpdateStatus`, `mediaControlChannelDidUpdateQueue`, `mediaControlChannelDidUpdatePreloadStatus`, and `mediaControlChannelDidUpdateMetadata` respectively. Furthermore, the protocol handles request statuses with `requestDidCompleteWithID`, `didReplaceRequestWithID`, `didCancelRequestWithID`, and `requestDidFailWithID`.\n"]]