Page 1 of 1

Help creating simple DVD-player, C#

Posted: 01 Jan 2010 13:59
by Gildebrand
Hi everybody!

This is probably pretty simple to do, but i haven't figured out how yet. What i want to do is to create a simple DVD-player in my Winforms project (C#). I have successfuly added VLC ActiveX plugin V1 & V2 to my toolbox, and add the ActiveX control to the form.

So now, what i want to do is to tell the ActiveX control to play a DVD in the F drive.
And then i also want to add the playback-controls. But that looked pretty simple to do, by using the play and pause functions.

I also want four drop down menus, one for Title, Chapter, Audio selection, Subtitle selection.

So it would be great if you guys could help me get started

/Anton Gildebrand
(Swedish so sorry for bad english)

Re: Help creating simple DVD-player, C#

Posted: 04 Jan 2010 11:57
by Gildebrand
Hi again!

I have succesfuly create da simple dvd-player using the VLC ActiveX V2.
What i want to do now is to add a function to get all the dvd-subtitles available.

I tried to set subtitle and it works just fine just bo doing this: axVLCPlugin21.video.subtitle = 1;
But i want to get all the languages available and list it in a combobox. How do i do that?

Re: Help creating simple DVD-player, C#

Posted: 07 Jan 2010 16:03
by Gildebrand
It's only the subtitle-thing i need help with now, so if you guys could help me it would be great.

Re: Help creating simple DVD-player, C#

Posted: 07 Jan 2010 17:48
by Jean-Baptiste Kempf
It's only the subtitle-thing i need help with now, so if you guys could help me it would be great.
You need the track names of subtitles?

Re: Help creating simple DVD-player, C#

Posted: 07 Jan 2010 20:43
by Gildebrand
Exactly!

I read on this page :http://wiki.videolan.org/Documentation: ... tle_object
But there it says "supported in vlc version >= 1.1.0" about the subtitle features that i want. But there is no VLC 1.1!!??

Re: Help creating simple DVD-player, C#

Posted: 08 Jan 2010 14:20
by Jean-Baptiste Kempf
Exactly!

I read on this page :http://wiki.videolan.org/Documentation: ... tle_object
But there it says "supported in vlc version >= 1.1.0" about the subtitle features that i want. But there is no VLC 1.1!!??
You will have to wait for the release or use nightly builds.

Re: Help creating simple DVD-player, C#

Posted: 09 Jan 2010 01:44
by Gildebrand
Ok! Then i'll do so! :)

Just curios, what is nightly builds?

Re: Help creating simple DVD-player, C#

Posted: 09 Jan 2010 11:54
by Jean-Baptiste Kempf

Re: Help creating simple DVD-player, C#

Posted: 09 Jan 2010 14:57
by Gildebrand
Is it 1.1 that has very many bugs or is it just me doing wrong.

I am trying ut some new features in 1.1 but just gets "Error HRESULT E_FAIL has been returned from a call to a COM component." from visual studio when calling them.

Im trying: int s = axVLCPlugin21.subtitle.count;
Allways returns 0.

Im trying: axVLCPlugin21.video.marquee.text("Hello world!!");
And gets error HRESULT E_FAIL

Im trying: string subs = axVLCPlugin21.subtitle.description(s);
Which also returns HRESULT E_FAIL

Re: Help creating simple DVD-player, C#

Posted: 09 Jan 2010 15:40
by Jean-Baptiste Kempf
It probably has many issues, since it is in development. File bugs.

Re: Help creating simple DVD-player, C#

Posted: 10 Jan 2010 16:57
by Gildebrand
I have two other questions.

1. I want to add "arrows" to my form that i use when navigating in a dvd, how could i do that?

2. In my final application i need to have the main ActiveX control on the secondary screen, and thats pretty easy to do, but i also want a "thumbnail" of the activex-control on the primary screen, that shows exactly what the ActiveX control shows. Would it be possible to do this in someway?

Re: Help creating simple DVD-player, C#

Posted: 11 Jan 2010 12:26
by Jean-Baptiste Kempf
1. no idea
2. use clone?