LiveCuepoints: insert
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Ta metoda została wycofana i zastąpiona metodą liveBroadcasts.cuepoint
.
Powoduje wstawienie punktu wstawienia do transmisji na żywo. Obecnie prośby o dostęp do tej metody muszą być autoryzowane przez konto powiązane z właścicielem treści w YouTube.
Żądanie
Żądanie HTTP
POST https://www.googleapis.com/youtube/partner/v1/liveCuepoints
Parametry
W poniższej tabeli podano parametry obsługiwane przez to zapytanie. Wszystkie wymienione parametry są parametrami zapytania.
Parametry |
Parametry wymagane |
channelId |
string Parametr channelId wskazuje kanał, do którego należy transmisja, do której wstawiono punkt wstawienia. |
onBehalfOfContentOwner |
string Parametr onBehalfOfContentOwner wskazuje właściciela treści, w imieniu którego działa użytkownik. |
Treść żądania
Podaj zasób LiveCuepoint w treści żądania.
Dla tego zasobu:
Błędy
W tabeli poniżej znajdziesz komunikaty o błędach, które interfejs API może zwrócić w odpowiedzi na wywołanie tej metody. Więcej informacji znajdziesz w dokumentacji komunikatów o błędach.
Typ błędu |
Szczegóły błędu |
Opis |
invalidValue (400) |
conflictingTimeFields |
Możesz podać tylko jedną wartość offsetTimeMs i walltime . |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2023-02-22 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 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"]]