GCKUIStreamPositionController 클래스
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
일반적인 UISlider, UIProgressView 및 UILabel 컨트롤로는 충분하지 않은 상황에서 맞춤 스트림 위치 및 탐색 UI를 구현하는 데 사용할 수 있는 클래스입니다.
애플리케이션은 이 클래스를 서브클래스화하고 GCKUIStreamPositionController::streamPosition, GCKUIStreamPositionController::streamDuration, GCKUIStreamPositionController::inputEnabled setter를 재정의하거나 KVO를 사용하여 이러한 속성의 변경사항을 수신 대기하고 스트림 위치를 업데이트하거나 그에 따라 UI 컨트롤을 탐색할 수 있습니다.
- 다음 이후:
- 3.4
NSObject를 상속합니다.
- (NSTimeInterval) streamPosition |
|
readwritenonatomicassign |
- (NSTimeInterval) streamDuration |
|
readwritenonatomicassign |
GCKUIMediaController는 이 속성을 작성하여 이 컨트롤러에서 관리하는 UI 컨트롤을 사용 설정하거나 사용 중지합니다.
미디어 명령어 실행 중에는 미디어 관련 UI 컨트롤이 일시적으로 사용 중지됩니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 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,[]]