-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support loading subtitle-only URLs #55
Comments
It would be awesome to have this feature! Do you think it is complex to implement? |
Hi, This would be awesome. Any ideas on when we can expect this? Right now I'm loading and adding subtitles separately as an overlay. Would be cool to be able to select external subtitle files. Thanx, this is by far the best MediaElement alternative I've used. Cheers, |
No exact target date yet. I need to release the 2.0 version this weekend. I will start working on 3.0 features soon enough. If it is any help to you, the Mediaelement contains a good subtitles control already that displays the subtitle stream inside a media file |
Hi @mariodivece, Thanx. That might be much better than having a separate textbox. But how would I access and update the text value of the existing control? Would that be possible? Could you point me in the right direction? Cheers, |
In my latest NuGet (3.4.200) you are able to set the attached property like this: Subtitles.SetText(Media, "HEY THERE!"); |
Latest Commit. See example of side-loading subtitles: private void Media_MediaOpening(object sender, MediaOpeningRoutedEventArgs e)
{
// Example of automatically side-loading SRT subs
try
{
var inputUrl = e.Info.InputUrl;
var url = new Uri(inputUrl);
if (url.IsFile || url.IsUnc)
{
inputUrl = System.IO.Path.ChangeExtension(url.LocalPath, "srt");
if (System.IO.File.Exists(inputUrl))
e.Options.SubtitlesUrl = inputUrl;
}
}
catch { }
} |
Currently, there is no way to specify or automatically load a subtitle file. Implement a SubtitleInputContext in the container supporting Play, Stop, Pause and seek operations.
The text was updated successfully, but these errors were encountered: