Skip to content

Commit

Permalink
Use the IOS client to pull closed captions, instead of TVHTML5 (#819
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Tyrrrz authored Sep 27, 2024
1 parent 9a5ba50 commit e343d44
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions YoutubeExplode/Videos/ClosedCaptions/ClosedCaptionClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,7 @@ private async IAsyncEnumerable<ClosedCaptionTrackInfo> GetClosedCaptionTrackInfo
[EnumeratorCancellation] CancellationToken cancellationToken = default
)
{
// Use the TVHTML5 client instead of ANDROID_TESTSUITE because the latter doesn't provide closed captions
var playerResponse = await _controller.GetPlayerResponseAsync(
videoId,
null,
cancellationToken
);
var playerResponse = await _controller.GetPlayerResponseAsync(videoId, cancellationToken);

foreach (var trackData in playerResponse.ClosedCaptionTracks)
{
Expand Down

0 comments on commit e343d44

Please sign in to comment.