GCKUIStreamPositionController クラス
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
通常の UISlider、UIProgressView、UILabel コントロールでは不十分な場合に、カスタムのストリーム位置の実装や UI のシークに使用できるクラスです。
アプリは、このクラスをサブクラス化して GCKUIStreamPositionController::streamPosition、GCKUIStreamPositionController::streamDuration、GCKUIStreamPositionController::inputEnabled のセッターをオーバーライドするか、KVO を使用してこれらのプロパティの変更をリッスンし、それに応じてストリーム位置の更新や UI コントロールのシークを行うことができます。
- 開始:
- 3.4
NSObject を継承します。
- (NSTimeInterval) streamPosition |
|
readwritenonatomicassign |
- (NSTimeInterval) streamDuration |
|
readwritenonatomicassign |
GCKUIMediaController は、このプロパティを書き込み、このコントローラが管理する UI コントロールを有効または無効にします。
メディア コマンドの実行中は、メディア関連の UI コントロールが一時的に無効になります。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 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"]],["最終更新日 2025-07-25 UTC。"],[[["\u003cp\u003eThe \u003ccode\u003eGCKUIStreamPositionController\u003c/code\u003e class facilitates the creation of custom stream position and seek UI elements for media playback on Cast receivers.\u003c/p\u003e\n"],["\u003cp\u003eIt provides properties like \u003ccode\u003estreamPosition\u003c/code\u003e, \u003ccode\u003estreamDuration\u003c/code\u003e, and \u003ccode\u003einputEnabled\u003c/code\u003e that reflect the current media playback state.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can subclass and override setters or use KVO to listen for changes to these properties and update their custom UI accordingly.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGCKUIMediaController\u003c/code\u003e manages the values of these properties, reflecting the state of the \u003ccode\u003eGCKRemoteMediaClient\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis class is particularly useful when standard UI controls like UISlider, UIProgressView, and UILabel are insufficient for the desired user interface.\u003c/p\u003e\n"]]],["The `GCKUIStreamPositionController` class allows custom UI implementation for stream position and seeking, especially when standard controls are insufficient. Developers can either subclass it, overriding `streamPosition`, `streamDuration`, and `inputEnabled` setters, or use KVO to monitor changes. Key properties include `streamPosition` (current playback time), `streamDuration` (total stream length), and `inputEnabled` (UI control interactivity). The `GCKUIMediaController` manages these, updating them and observing changes to issue media commands.\n"],null,[]]