پروتکل <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 . |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2022-12-05 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2022-12-05 بهوقت ساعت هماهنگ جهانی."],[[["The `GCKMediaControlChannelDelegate` protocol defines methods that inform your application about the status of media playback and control requests."],["It provides callbacks for successful media loading, playback status updates, queue updates, metadata changes, and request completions."],["It also handles errors during media loading and request failures, providing details about the errors."],["Delegate methods are optional, allowing you to implement only the functionalities your application requires."]]],["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"]]