Unable to get closed captions with this code ? #195
akhil-nair-1
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
var yt = YoutubeExplode();
var trackManifest = await yt.videos.closedCaptions.getManifest('_QdPW8JrYzQ')
var trackInfo = manifest.getByLanguage('en'); // Get english caption.
if (trackInfo != null)
{
// Get the actual closed caption track.
var track = await youtube.videos.closedCaptions.get(trackInfo);
}
Beta Was this translation helpful? Give feedback.
All reactions