Jump to content

DirectX SDK

- - - - -

  • Please log in to reply
10 replies to this topic

#1
Tonchi

Tonchi

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 471 posts
  • Location:Varaždin
  • Programming Language:C, C++, C#
I've downloaded and installed DirectX SDK and when I open a new project and try to add a Microsoft.DirectX.AudioVideoPlayback reference on it I can't. Because it isn't on .NET reference list. What should I do to add it???

#2
Momerath

Momerath

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 242 posts
It would only be on the .NET reference list if was installed in the GAC. Choose the DLL tab and browse to where you installed the SDK and add the references you need from there.

#3
Tonchi

Tonchi

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 471 posts
  • Location:Varaždin
  • Programming Language:C, C++, C#
there is a lot of dll's but i don't know which to chose because there is no AudioVideoPlayback

#4
sam_coder

sam_coder

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 372 posts
was it the managed directx sdk?

If so, it should have added some directx templates to your visual studio. Not sure if it works on the express editions like that.

those templates would show you the references needed.

#5
Tonchi

Tonchi

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 471 posts
  • Location:Varaždin
  • Programming Language:C, C++, C#
then suggest me what to do to make video player...

#6
sam_coder

sam_coder

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 372 posts
well, one option
this is VB.NET, but easily translatable to C#

How to create media player application in VB.Net

#7
Tonchi

Tonchi

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 471 posts
  • Location:Varaždin
  • Programming Language:C, C++, C#
how can i managed my player to play with subtitles???

#8
Tonchi

Tonchi

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 471 posts
  • Location:Varaždin
  • Programming Language:C, C++, C#
And how can I manage progress bar for playing video? I want to pushing progress during video timeline. For example if video is 2 minutes long to be on the half of progress bar on 1 minute?

#9
sam_coder

sam_coder

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 372 posts
in theory, I guess that could be managed with just simple caclulations

eg
if there are 2 minutes (or 120 seconds)
then you set the progress bar to min 0, max 120, and each second you increment it's value.

obviously if you pause, you'd have to stop moving it.

I assume the control would have some sort of seek to method, so if you moved the bar, you could seek to it's new location.

But anyways, I haven't worked with the control. I might take a look at it in a bit though, see what I cant come up with.

Building a video player from scratch is going to be a lot of work, and these things you're talking about now, are going to be some of the setbacks of using someone else's control.

#10
sam_coder

sam_coder

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 372 posts
You know what tonchi? You should go download VLC Player (by videolan)

and when you install it, it installs the VLC Plugin Control, as COM. (you add it the same way, just add the component to the toolbox, its under the COM tab)

Now understandably, this is a COM component, which is not managed, and visual studio would have to generate interop assemblies, but the functionality and power of this are quite good.

Once you get the control on your form, you'll notice you have full access to the playlist, so you can add multiple files,
and it has approximately 13 thousand events you can hook, so you can be notified of play stop, skipp, or whatever.

looks promising.

also, VLC is known to play pretty well anything under the sun...

#11
sam_coder

sam_coder

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 372 posts
actually, on that note, I ran into a wall,
looks like some nice folk are working on this, so you'd want to refer here, if you want to try this.

.Net Interface to VLC - VideoLAN Wiki




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users