Cast 프레임워크는 현재 콘텐츠 목록 생성을 지원하는 큐 API를 제공합니다.
웹에서 순서대로 재생될 동영상 또는 오디오 스트림 등의 콘텐츠 항목
수신자입니다. 콘텐츠 항목의 대기열은 수정, 재정렬, 업데이트 등을 할 수 있으며
합니다.
웹 수신기 SDK는 큐를 유지하고
있는 경우 현재 재생목록에 현재 하나 이상의 항목 (재생 중 또는
일시중지됨). 발신자는 세션에 참여하고 항목을 대기열에 추가할 수 있습니다. 수신자
마지막 항목이 재생을 완료할 때까지 또는
발신자가 재생을 중지하고 세션을 종료하거나, 또는 발신자가
수신자에 새 큐를 로드합니다. 수신자는
기본적으로 종료된 큐에 대한 정보 대기열의 마지막 항목이
완료되면 미디어 세션이 종료되고 대기열이 사라집니다.
미디어 대기열 항목 만들기 및 로드
iOS에서 미디어 큐 항목은 Cast 프레임워크에서
GCKMediaQueueItem 인스턴스
적응형 콘텐츠로 미디어 대기열 항목을 만들 때
미리 로드 시간을 사용하여 플레이어가 미디어 대기열 항목 버퍼링을 시작할 수 있도록 합니다.
재생이 완료될 때까지 기다릴 필요가 없습니다. 다음에서 미리 로드에 관해 자세히 알아보기
웹 수신기 미리 로드 가이드
항목의 자동재생 설정
속성을 true로 설정하면 웹 수신기가 동영상을 자동으로 재생할 수 있습니다. 예를 들어
다음과 같이 빌더 패턴을 사용하여 미디어 대기열 항목을 만들 수 있습니다.
<ph type="x-smartling-placeholder"></ph>
<ph type="x-smartling-placeholder"></ph>
Swift
웹 수신기는 미디어 대기열 항목을 로드할 때
세션 기간 (및 대기열의 수명) 동안 지속되는 항목입니다.
현재 로드되어 있는 항목을 나타내는 대기열의 상태를 알 수 있습니다.
로드 중 또는 미리 로드되어 있지 않을 수 있습니다. 또한 주문 상품을
할 수 있습니다. 이
GCKMediaStatus 드림
클래스는 다음 상태 정보를 제공합니다.
이 회원을 다른 미디어 상태 구성원과 함께 사용하여
앱에 대기열 상태 및 항목의 상태를 알립니다. 또한
미디어 상태 업데이트를 수신하면
-[remoteMediaClientDidUpdateQueue:]를 구현하여 큐에
GCKRemoteMediaClientListener
현재 재생목록 수정
큐의 항목으로 작업하려면
GCKRemoteMediaClient
API가 여러 개 있습니다 이를 통해 항목 배열을 새 큐에 로드하고
기존 대기열에 항목을 삽입하거나,
대기열에서 항목을 앞뒤로 건너뛰게 하고,
큐 자체 (예: 다음 객체를 선택하는 repeatMode 변경)
항목을 찾고, 대기열에서 항목을 삭제한 다음, 대기열의 항목을 재정렬하는 것입니다.
[[["이해하기 쉬움","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 Google Cast framework enables the creation and management of media queues on Web Receivers for sequential playback of audio or video content.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can build media queue items, set autoplay and preload times, and load them into the queue using the \u003ccode\u003eGCKRemoteMediaClient\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGCKMediaStatus\u003c/code\u003e class provides information about the queue's status, including the currently playing, loading, and preloaded items.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGCKRemoteMediaClient\u003c/code\u003e offers various methods to edit the queue, such as inserting, updating, removing, and reordering items, as well as controlling queue behavior.\u003c/p\u003e\n"],["\u003cp\u003eSender applications should display the upcoming autoplay item from the queue in their user interface to enhance the user experience.\u003c/p\u003e\n"]]],["The Cast framework enables sequential playback of content items (like audio/video) via queueing APIs. Senders can create, edit, reorder, and update queues. The Web Receiver manages the queue as long as it has an active item, maintaining session until the last item finishes or the session is terminated. In iOS, `GCKMediaQueueItem` represents queue items, with options for autoplay and preloading. `GCKMediaStatus` provides information about the loaded, loading, or preloaded item and the queue status. `GCKRemoteMediaClient` allows to load, insert, update, remove, and reorder items.\n"],null,[]]