이 가이드에서는 IMA DAI SDK를 사용하여 북마크를 구현하는 방법을 보여줍니다.
을 사용해야 합니다.
위의 예제에 표시된 것과 같이 작동하는 IMA DAI 구현이
시작하기
북마크란 무엇인가요?
북마크는 저장한 다음 특정 지점으로 돌아갈 수 있는 기능입니다.
콘텐츠를 스트리밍할 수 있습니다. 사용자가 콘텐츠를 5분 동안 시청한다고 가정해 보겠습니다.
동영상 스트림을 나갔다가 돌아옵니다. 북마크를 추가하면
스트림 내 사용자의 위치를 뜻합니다.
시청자에게 원활한 경험을 제공합니다.
DAI 북마크 심층 분석
DAI 스트림을 북마크에 추가할 때 스트림 ID와 시간을 기록해야 합니다.
사용자가 동영상에서 나갈 때 사용자가 돌아오면
스트리밍하고 저장된 시간을 탐색합니다. 요청된 각 인스턴스가
스트림을 저장하면 재생 시간이 다른 광고 시점을 사용할 수 있음
소용이 없을 거에요. 정말로 하고 싶은 일은
콘텐츠 시간
필요한 변환 방법
IMA DAI SDK는 콘텐츠 시간을 요청하는 메서드 쌍을 제공합니다.
특정 스트리밍 시간 및 특정 콘텐츠의 스트리밍 시간
있습니다. 이러한 전환 방법을 사용하면 북마크한 데이터를
콘텐츠 시간 다음 스트림 시간까지 탐색
스트림의 새 인스턴스를 반환합니다. 이 접근 방식은 다음과 같습니다.
작동하는 북마크 구현을 보여주는 샘플 앱으로 이동합니다.
북마크 저장
활동이 일시중지되면 북마크를 저장합니다.
-(void)viewWillDisappear:(BOOL)animated{[superviewWillDisappear:animated];[self.contentPlayerpause];// Ignore this if you're presenting a modal view (e.g. in-app clickthrough).if([self.navigationController.viewControllersindexOfObject:self]==NSNotFound){NSTimeIntervalcontentTime=[self.streamManagercontentTimeForStreamTime:CMTimeGetSeconds(self.contentPlayer.currentTime)];self.video.savedTime=contentTime;...}}}
북마크 로드 중
스트림을 다시 요청할 때 북마크를 로드합니다. Cloud Functions는
VideoStreamPlayer 인터페이스
[[["이해하기 쉬움","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-08-01(UTC)"],[[["This guide explains how to implement bookmarking in video-on-demand (VOD) streams using the IMA DAI SDK for a seamless viewing experience."],["Bookmarking involves saving the user's content time, not just the stream time, to ensure accurate resumption upon return."],["The IMA DAI SDK provides methods to convert between stream time and content time, which are crucial for bookmarking functionality."],["Saving bookmarks involves recording the content time when the user pauses the video, while loading bookmarks requires seeking to the corresponding stream time in the new stream instance."],["A sample app demonstrating bookmarking implementation is available on GitHub."]]],["Bookmarking in Dynamic Ad Insertion (DAI) involves saving a user's position in a video stream and resuming from that point. Instead of saving stream time, the system records the content time using conversion methods provided by the IMA DAI SDK. When the user leaves, the content time is saved. Upon return, the saved content time is used to calculate the new stream time, allowing seeking to the correct point in the stream. The process is demonstrated with sample code and a provided sample application.\n"]]