Infeasible
Status Update
Comments
sn...@google.com <sn...@google.com> #2
Hi, this support channel is intended for YouTube API related issues. For anything specific to Youtube website, Android or iOS app, please follow the guide posted in the link below.
You may also ask this question through our community forum:
in...@gmail.com <in...@gmail.com> #3
May i know the clear reason? why it is happening...!
Description
Hi there,
Im MERN full stack developer. since couple of days im trying to solve the issue like when i try to implement and excute this code im getting error like invalid embed settings... for my project i want to use unlisted(even i tried with private and public) videos with default embedded true, so that i can use few of them to show in my web page. i tried in studio i didn't found any option to allow all streamings embedded. i noticed only individual option is available in studio to allow embedding manually. but this need to done by backend, Also i tried with one scenario like first i created a stream without embed paramater then i got response as embeded as false then again i tried to update it using broadcast id not worked. kindly give the solution
FROM HERE CODE ---->
import { youtube_v3, youtube } from '@googleapis/youtube';
export class YouTubeService implements OnModuleInit { private youtube: youtube_v3.Youtube; private oauth2Client: OAuth2Client; // Step 1: Create the live broadcast const broadcastResponse = await this.youtube.liveBroadcasts.insert({ part: ['snippet', 'status', 'contentDetails'], requestBody: { snippet: { title, description, scheduledStartTime, // Combined date and time in ISO 8601 format }, status: { privacyStatus: 'unlisted',// 'private', 'public', or 'unlisted' selfDeclaredMadeForKids: false, }, contentDetails: { monitorStream: { enableMonitorStream: true, }, enableEmbed:true, enableAutoStart: true, enableAutoStop: true, }, }, });
});
....... }