โปรโตคอล <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 . |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2022-12-05 UTC
[[["เข้าใจง่าย","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 UTC"],[],["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"]]