Watermarks
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
watermark
リソースは、指定したチャンネルの動画の再生中に表示される画像を識別します。画像のリンク先ターゲット チャンネルや、動画の再生中に透かしを表示するタイミングとその長さを指定することもできます。
Methods
API は、watermarks
リソースに対して次のメソッドをサポートしています。
- セット
- 透かし画像を YouTube にアップロードし、チャンネルに設定します。
- 未設定
- チャンネルの透かし画像を削除します。
今すぐ試す
プロパティ
次の表は、このリソースで使用されているプロパティの定義を示したものです。
プロパティ |
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。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は 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"]]