Help creating simple DVD-player, C#

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
Gildebrand
New Cone
New Cone
Posts: 9
Joined: 10 Jun 2009 16:28

Help creating simple DVD-player, C#

Postby Gildebrand » 01 Jan 2010 13:59

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)

Gildebrand
New Cone
New Cone
Posts: 9
Joined: 10 Jun 2009 16:28

Re: Help creating simple DVD-player, C#

Postby Gildebrand » 04 Jan 2010 11:57

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?

Gildebrand
New Cone
New Cone
Posts: 9
Joined: 10 Jun 2009 16:28

Re: Help creating simple DVD-player, C#

Postby Gildebrand » 07 Jan 2010 16:03

It's only the subtitle-thing i need help with now, so if you guys could help me it would be great.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Help creating simple DVD-player, C#

Postby Jean-Baptiste Kempf » 07 Jan 2010 17:48

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?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Gildebrand
New Cone
New Cone
Posts: 9
Joined: 10 Jun 2009 16:28

Re: Help creating simple DVD-player, C#

Postby Gildebrand » 07 Jan 2010 20:43

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!!??

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Help creating simple DVD-player, C#

Postby Jean-Baptiste Kempf » 08 Jan 2010 14:20

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.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Gildebrand
New Cone
New Cone
Posts: 9
Joined: 10 Jun 2009 16:28

Re: Help creating simple DVD-player, C#

Postby Gildebrand » 09 Jan 2010 01:44

Ok! Then i'll do so! :)

Just curios, what is nightly builds?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Help creating simple DVD-player, C#

Postby Jean-Baptiste Kempf » 09 Jan 2010 11:54

Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Gildebrand
New Cone
New Cone
Posts: 9
Joined: 10 Jun 2009 16:28

Re: Help creating simple DVD-player, C#

Postby Gildebrand » 09 Jan 2010 14:57

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Help creating simple DVD-player, C#

Postby Jean-Baptiste Kempf » 09 Jan 2010 15:40

It probably has many issues, since it is in development. File bugs.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Gildebrand
New Cone
New Cone
Posts: 9
Joined: 10 Jun 2009 16:28

Re: Help creating simple DVD-player, C#

Postby Gildebrand » 10 Jan 2010 16:57

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?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Help creating simple DVD-player, C#

Postby Jean-Baptiste Kempf » 11 Jan 2010 12:26

1. no idea
2. use clone?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 13 guests