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

Subtitles are found but cannot be selected #191

Closed
Kempeth opened this issue Mar 9, 2017 · 1 comment
Closed

Subtitles are found but cannot be selected #191

Kempeth opened this issue Mar 9, 2017 · 1 comment

Comments

@Kempeth
Copy link

Kempeth commented Mar 9, 2017

I'm trying to display subtitles. After some digging I've found these Properties:

VlcPlayer.VlcMediaPlayer.Subtitle
VlcPlayer.VlcMediaPlayer.SubtitleCount
VlcPlayer.VlcMediaPlayer.SubtitleDescription

SubtitleCount shows me I have 11 Subtitle Tracks which matches what VLC shows when I open the file there. However when I set the Subtitle property to any value it stays at -1 (for deactivated).

@LarsWesselius
Copy link
Contributor

What you could try is setting it manually through libvlc.

[DllImport("lib/libvlc.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern int libvlc_video_set_spu(IntPtr mp, int spu);

Then call it as such;

int result = libvlc_video_set_spu(myVlcMediaPlayerInstance.InstancePointer, 1);
and have a look at the result. Documentation for this function can be found here; https://www.videolan.org/developers/vlc/doc/doxygen/html/group__libvlc__video.html#gac0594ad8db60a38a19eca5858f087e9d

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

3 participants