Skip to content
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

Can not play subtitle file for audio file. #651

Open
LiveIsLive opened this issue Aug 23, 2023 · 0 comments
Open

Can not play subtitle file for audio file. #651

LiveIsLive opened this issue Aug 23, 2023 · 0 comments

Comments

@LiveIsLive
Copy link

This is my code, It is work for video file, but can not display subtitle for audio file.

public partial class VideoTest : Window
{
	public VideoTest()
	{
		InitializeComponent();
		this.MediaElement.Open(new System.Uri(@"Test.mp3"));
	}

	private void MediaElement_MediaOpening(object sender, Unosquare.FFME.Common.MediaOpeningEventArgs e)
	{
		e.Options.SubtitlesSource = @"Subtitle.srt";
	}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant