Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
456 views
in Technique[技术] by (71.8m points)

php - Uncaught GoogleServiceException: error: "errors": [ { "message": "Not Found", "domain": "global", "reason": "notFound" } ]

I am trying to insert livecuepoint in my youtube live video. I am but getting following error on My Code is follow:

$youtubePartner = new Google_Service_YouTubePartner($client);
$liveCuePoint = new Google_Service_YouTubePartner_LiveCuepoint();
$liveCueSettings = new Google_Service_YouTubePartner_CuepointSettings();
$liveCueSettings->setCueType('ad');
$liveCueSettings->setOffsetTimeMs(50);
$liveCueSettings->setDurationSecs(50);
$liveCuePoint->setSettings($liveCueSettings);
$liveCuePoint->setBroadcastId("MY BROADCAST VIDEO ID"); 
$liveCuePoint->setKind('youtubePartner#liveCuepoint');
$response = $youtubePartner->liveCuepoints->insert('UC7ebHfM2xnCZfLUfh7saLgA', $liveCuePoint);

Error:

Uncaught GoogleServiceException: { "error": { "code": 404, "message": "Not Found", "errors": [ { "message": "Not Found", "domain": "global", "reason": "notFound" } ] } } in /domains/test/public_html/Google/src/Http/REST.php:128 Stack trace: #0 /domains/test/public_html/Google/src/Http/REST.php(103): GoogleHttpREST::decodeHttpResponse(Object(GuzzleHttpPsr7Response), Object(GuzzleHttpPsr7Request), 'Google_Service_...') #1 [internal function]: GoogleHttpREST::doExecute(Object(GuzzleHttpClient), Object(GuzzleHttpPsr7Request), 'Google_Service_...') #2 /domains/test/public_html/Google/src/Task/Runner.php(181): call_user_func_array(Array, Array) #3 /domains/test/public_html/Google/src/Http/REST.php(66): GoogleTaskRunner->run() #4 /domains/test/public_html/Google/src/Client.php(898): GoogleHttpREST::execute(Object(GuzzleHttpClient), Object( in /domains/test/public_html/Google/src/Http/REST.php on line 128


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...