LiveCuepoints: insert
このメソッドは非推奨になり、liveBroadcasts.cuepoint
メソッドに置き換えられました。
ライブ ブロードキャストにキューポイントを挿入します。現在、このメソッドへのリクエストは YouTube コンテンツ所有者に関連付けられたアカウントで承認される必要があります。
リクエスト
HTTP リクエスト
POST https://www.googleapis.com/youtube/partner/v1/liveCuepoints
承認
このリクエストは、少なくとも次のうち 1 つのスコープでの承認が必要です(認証と承認の詳細をご確認ください)。
範囲 |
https://www.googleapis.com/auth/youtubepartner |
パラメータ
次の表に、このクエリがサポートするパラメータを示します。このリストのパラメータはすべてクエリ パラメータです。
パラメータ |
必須パラメータ |
channelId |
string
channelId パラメータは、キューポイントが挿入されるブロードキャストを所有するチャンネルを識別します。 |
onBehalfOfContentOwner |
string
onBehalfOfContentOwner パラメータは、ユーザーが代理を務めるコンテンツ所有者を識別します。 |
リクエスト本文
リクエストの本文に liveCuepoint リソースを指定します。対象リソース:
-
以下のプロパティの値を指定する必要があります。
broadcastId
settings.cueType
-
以下のプロパティの値を設定することができます。
settings.offsetTimeMs
settings.walltime
settings.durationSecs
エラー
次の表に、このメソッドの呼び出しに応じて API から返される可能性のあるエラー メッセージを示します。詳細については、エラー メッセージのドキュメントを参照してください。
エラーのタイプ |
エラーの詳細 |
説明 |
invalidValue (400) |
conflictingTimeFields |
offsetTimeMs と walltime のどちらか一方のみを指定できます。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2023-02-22 UTC。
[null,null,["最終更新日 2023-02-22 UTC。"],[[["This API method for inserting a cuepoint into a live broadcast has been deprecated and is now replaced by the `liveBroadcasts.cuepoint` method."],["Using this method requires authorization with the `https://www.googleapis.com/auth/youtubepartner` scope and being associated with a YouTube Content Owner."],["The required parameters for this method are `channelId`, which identifies the channel owning the broadcast, and `onBehalfOfContentOwner`, which identifies the content owner."],["The request body must include a `liveCuepoint` resource with specified values for `broadcastId` and `settings.cueType`, and can optionally set `settings.offsetTimeMs`, `settings.walltime`, or `settings.durationSecs`."],["The API returns a `liveCuepoint` resource upon success, and an error, such as `invalidValue (400)` for `conflictingTimeFields` is returned if there are any errors."]]],["This API method, now deprecated, was used to insert a cuepoint into a live broadcast via a POST request to `https://www.googleapis.com/youtube/partner/v1/liveCuepoints`. Authorization via the `https://www.googleapis.com/auth/youtubepartner` scope was required. Requests needed the `channelId` and `onBehalfOfContentOwner`. The request body required the `broadcastId` and `settings.cueType` properties to be set in a `liveCuepoint` resource. One of `offsetTimeMs` and `walltime` is valid. A successful response returned the `liveCuepoint` resource.\n"]]