getChannelByVideo method
Implementation
Future<googleapis_client_scheme.YoutubeChannel> getChannelByVideo({
required String video_id,
}) async {
Channel channel_result = await () async {
return await youtubeExplode.channels.getByVideo(video_id);
}.call();
Map jsonData = {
"@type": "youtubeChannel",
"id": channel_result.id.value,
"title": channel_result.title,
"url": channel_result.url,
"subscribers_count": channel_result.subscribersCount,
"profile_banner": channel_result.bannerUrl,
"profile_picture": channel_result.logoUrl,
};
return googleapis_client_scheme.YoutubeChannel(jsonData);
}