C# API Wrapper for the Universal Subtitles service
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
UniversalSubtitles
.gitignore
README.md

README.md

universalsubtitles-csharp

C# 5.0 API Wrapper for the Universal Subtitles service.

Usage is simple:

using UniversalSubtitles;
...
var api = new UniversalSubtitles.v1.Api();

string video_url = "http://www.youtube.com/watch?v=W0VWO4asgmk&feature=youtube_gdata_player";

SubtitleLine[] subtitles = await api.SubtitlesAsync(video_url);
// returns the subtitles in the video's spoken language

You can also give the user a list of available languages that are available for this video

Language[] languages = await api.LanguagesAsync(video_url);
// display the list of available languages

SubtitleLine[] subtitles = await api.SubtitlesAsync(video_url, "it"); // or you can pass an instance of Language

This is being initially built to add subtitles to the Khan Academy for Windows RT app and initially supports only the v1 API calls as that is what's being used by the Khan Academy