Watermarks
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
watermark
리소스는 지정된 채널의 동영상을 재생하는 동안 표시되는 이미지를 식별합니다. 또한 동영상 재생 중 워터마크가 표시되는 시기와 표시되는 시간의 길이를 정하는 타이밍 세부정보뿐 아니라 이미지가 연결되는 타겟 채널도 지정할 수 있습니다.
방법
API는 watermarks
리소스에 다음 메서드를 지원합니다.
- 세트
- YouTube에 워터마크 이미지를 업로드하고 채널에 설정합니다.
- unset
- 채널의 워터마크 이미지를 삭제합니다.
지금 사용해보기
속성
다음 표는 이 리소스에 표시되는 속성을 정의합니다.
속성 |
timing |
object
timing 객체는 동영상 재생 중 채널의 워터마크 이미지가 표시되는 시간에 대한 정보를 요약합니다. |
timing.type |
string
동영상 재생 중에 워터마크 이미지를 표시할 시점을 결정하는 타이밍 메서드입니다. 값이 offsetFromStart 인 경우 offsetMs 필드는 동영상 시작 부분으로부터의 오프셋을 나타냅니다. 값이 offsetFromEnd 인 경우 offsetMs 필드는 동영상 끝으로부터의 오프셋을 나타냅니다. |
timing.offsetMs |
unsigned long
동영상 재생 중 프로모션 항목이 표시되는 시점을 결정하는 시간 오프셋(밀리초 단위)입니다. type 속성의 값은 동영상의 시작 또는 끝 중 어디부터 오프셋을 측정할지를 결정합니다. |
timing.durationMs |
unsigned long
워터마크 이미지가 표시되어야 하는 시간(밀리초)입니다. |
position |
object
position 객체는 워터마크 이미지가 표시될 동영상 내 공간 위치에 대한 정보를 요약합니다. |
position.type |
string
프로모션 항목이 동영상 플레이어에 배치되는 방식입니다.
이 속성에 유효한 값은 다음과 같습니다. |
position.cornerPosition |
string
프로모션 항목이 표시되는 플레이어의 모서리입니다. 아이템은 항상 플레이어의 오른쪽 상단에 표시됩니다.
이 속성에 유효한 값은 다음과 같습니다. |
imageUrl |
string
채널의 워터마크 이미지 URL입니다. YouTube는 이 URL을 생성하여 watermark.set 요청에 대한 API 응답에 반환합니다. |
imageBytes |
bytes
워터마크 이미지의 크기(바이트)입니다. |
targetChannelId |
string
워터마크 이미지가 연결된 채널의 YouTube 채널 ID입니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-04-26(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"]],["최종 업데이트: 2024-04-26(UTC)"],[[["A watermark resource displays an image during a channel's video playbacks, with the option to link to a target channel."],["The API provides `set` and `unset` methods to upload and delete watermark images respectively."],["The `timing` object controls when a watermark appears, using `type` to determine if it's measured from the start or end of a video and `offsetMs` for the time offset, with `durationMs` defining its display length."],["The `position` object defines the watermark's location within the video, with `cornerPosition` specifically determining the corner."],["The `targetChannelId` property is used to indicate the YouTube channel ID that the image links to when interacted with."]]],["A watermark resource is an image displayed during a channel's video playbacks. Key actions include setting a watermark by uploading an image and specifying its `targetChannelId` for linking. The `timing` object defines when the image appears using `type`, `offsetMs`, and `durationMs`. The `position` object, set to 'corner', determines the spatial location, specifically `topRight`. Watermarks can be removed using the `unset` method. The API response provides an `imageUrl` and `imageBytes`.\n"]]