Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start AD Break (Partners) #1

Open
gitagogaming opened this issue Aug 21, 2022 · 1 comment
Open

Start AD Break (Partners) #1

gitagogaming opened this issue Aug 21, 2022 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@gitagogaming
Copy link
Owner

gitagogaming commented Aug 21, 2022

https://developers.google.com/youtube/v3/live/docs/liveCuepoints/

This is not currently integrated and may be in the future after we get some user requests.

@gitagogaming gitagogaming added the enhancement New feature or request label Aug 23, 2022
@gitagogaming gitagogaming changed the title Start AD Break (Partners) https://developers.google.com/youtube/v3/live/docs/liveCuepoints/ Start AD Break (Partners) Aug 23, 2022
@gitagogaming
Copy link
Owner Author

gitagogaming commented Sep 3, 2022

I've tried to integrate this for quite some time today and was unsuccessful

Details and Examples for future:
https://stackoverflow.com/questions/63279888/insert-livecuepoints-in-live-broadcast-getting-error-403-forbidden
https://stackoverflow.com/questions/19398303/youtube-data-api-returns-accessnotconfigured-when-inserting-livecuepoints
May need to access a special Content ID API that is unavailable to 'everyone' https://developers.google.com/youtube/partner


## Example Curl command This may work, but I am clueless to Curl commands and how to get it rollin.
curlUrl="https://www.googleapis.com/youtube/partner/v1/liveCuepoints?part=id,status&broadcastType=persistent&mine=true&access_token=$accessToken"
curlData=""
curlData+="{"
curlData+="\"broadcastId\": \"$broadcastId\","
curlData+="\"settings\": "
curlData+="{"
curlData+="\"cueType\": \"ad\""
curlData+="\"walltime\": \"$cuePointWallTime\""
curlData+="}"
curlData+="}"

# Do not log strings which contain credentials or access tokens, even in debug mode.
# LogMessage "dbg" "curlUrl: $curlUrl"
# LogMessage "dbg" "curlData: $curlData"


# Perform the API call to add the cuePoint.
# cuePointInsertionOutput=$( curl -s -m 20 -X POST -H "Content-Type: application/json" -d "$curlData" $curlUrl )
#cuePointInsertionOutput=$( curl -s -m 20 -H "Content-Type: application/json" -d "$curlData" $curlUrl )

print(curlData)

@gitagogaming gitagogaming added the help wanted Extra attention is needed label Sep 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant