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???
10 replies to this topic
#1
Posted 11 June 2011 - 11:08 AM
|
|
|
#2
Posted 11 June 2011 - 12:38 PM
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
Posted 11 June 2011 - 01:11 PM
there is a lot of dll's but i don't know which to chose because there is no AudioVideoPlayback
#4
Posted 11 June 2011 - 02:33 PM
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.
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
Posted 11 June 2011 - 03:07 PM
then suggest me what to do to make video player...
#6
Posted 11 June 2011 - 03:39 PM
well, one option
this is VB.NET, but easily translatable to C#
How to create media player application in VB.Net
this is VB.NET, but easily translatable to C#
How to create media player application in VB.Net
#7
Posted 12 June 2011 - 02:33 AM
how can i managed my player to play with subtitles???
#8
Posted 12 June 2011 - 03:39 AM
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
Posted 12 June 2011 - 05:22 AM
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.
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
Posted 12 June 2011 - 05:33 AM
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...
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
Posted 12 June 2011 - 05:39 AM
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
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


Sign In
Create Account


Back to top









