이 가이드에서는 IMA DAI SDK를 사용하여 북마크를 구현하는 방법을 보여줍니다.
을 사용해야 합니다.
위의 예제에 표시된 것과 같이 작동하는 IMA DAI 구현이
시작하기
북마크란 무엇인가요?
북마크는 저장한 다음 특정 지점으로 돌아갈 수 있는 기능입니다.
콘텐츠를 스트리밍할 수 있습니다. 사용자가 콘텐츠를 5분 동안 시청한다고 가정해 보겠습니다.
동영상 스트림을 나갔다가 돌아옵니다. 북마크를 추가하면
스트림 내 사용자의 위치를 뜻합니다.
시청자에게 원활한 경험을 제공합니다.
DAI 북마크 심층 분석
DAI 스트림을 북마크에 추가할 때 스트림 ID와 시간을 기록해야 합니다.
사용자가 동영상에서 나갈 때 사용자가 돌아오면
스트리밍하고 저장된 시간을 탐색합니다. 요청된 각 인스턴스가
스트림을 저장하면 재생 시간이 다른 광고 시점을 사용할 수 있음
소용이 없을 거에요. 정말로 하고 싶은 일은
콘텐츠 시간
필요한 변환 방법
IMA DAI SDK는 콘텐츠 시간을 요청하는 메서드 쌍을 제공합니다.
특정 스트리밍 시간 및 특정 콘텐츠의 스트리밍 시간
있습니다. 이러한 전환 방법을 사용하면 북마크한 데이터를
콘텐츠 시간 다음 스트림 시간까지 탐색
스트림의 새 인스턴스를 반환합니다. 이 접근 방식은 다음과 같습니다.
작동하는 북마크 구현을 보여주는 샘플 앱으로 이동합니다.
스트림을 다시 요청할 때 북마크를 로드합니다. Cloud Functions는
VideoStreamPlayer 인터페이스
publicvoidloadUrl(Stringurl,List<HashMap<String,String>>subtitles){//Setvideoplayer's stream URL and subtitles, and play the stream....//Bookmarking.if(bookmarkTime > 0){doublestreamTime=streamManager.getStreamTimeForContentTime(bookmarkTime);videoPlayer.seek((long)(streamTime*1000.0));//stoms.}}
[[["이해하기 쉬움","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 stream time, to ensure accurate playback resumption."],["The IMA DAI SDK provides methods to convert between stream time and content time for bookmarking purposes."],["Developers can save bookmarks when the activity is paused and load them when the stream is re-requested."],["A sample app demonstrating bookmarking implementation is available on GitHub."]]],["Bookmarking in IMA DAI involves saving the user's position in a video stream for later continuation. Instead of recording the stream time, the key is to save the content time. When a user leaves, record the stream ID and convert the current stream time to content time using `getContentTimeForStreamTime()`. Upon return, re-request the stream and use `getStreamTimeForContentTime()` to find the corresponding stream time to seek to. Bookmarks are saved when the `Activity` pauses and loaded when re-requesting a stream.\n"]]