Sign in to follow this  
Fani

Cry for help about Microsoft DirectX usage

Recommended Posts

Hello! I just need to know whether to use Microsoft's DirectX in a certain application that I want to create. This is the case: I want to create a network application that sends a video file (eg. an MPEG file) over the Internet. I want my application to play out each received frame with a variable duration. The duration of each frame playout is going to be specified at the receiver's side and it is going to depend on the frame's time of reception. Can I use DirectX to do this? What are the components of DirectX that I should use in order to do this? (Would DirectShow suffice?) Thanks!

Share this post


Link to post
Share on other sites
Hey! It seems like you would like to do streaming video. Why do you want to bother yourself with reinventing a wheel?

Google it and I'm sure you will find answer
-----

If you want to do it on your own then DPlay can send messages over Inet but it's intended to use in games.

'Sockets' might be good for you.

Share this post


Link to post
Share on other sites
You can use DirectPlay in any internet-application. But it depends on your needs. If the server is only sending data to 1 client at the time, then I'd say WinSock. If it's supposed to send data to multiple clients at one time, go for DirectPlay/WinSock. In the second situation, I'd recommend you to go for DirectPlay because development time. DirectPlay is meant to be easily set up as server/multi-client, where WinSock is more server/client based and you have to code a work-around to make it server/multi-client.

As for video-output, yes, you can use DirectX (to be precise: DirectShow) to output frames. I don't know about the streaming though. Try searching the DirectX documentation. (available online)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this