Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

C# Video player

Name: Anonymous 2010-10-16 20:29

/prog/ how possible that I can display video in other monitor and display the player on other monitor using c#.

Name: Anonymous 2010-10-16 21:39

Go see if the Windows API has a function that allows you to arbitrarily move windows to screens. I'm not going to do the homework for you because I'm using Linux, ``faggot''.

Name: Anonymous 2010-10-16 21:44

1. Make sure you have two monitors.
2. Open the video in a video playing program like VLC.
3. Separate the controls from the video by finding the relevant option in a menu somewhere.
4. Drag the controls' window over to the monitor where the video is NOT being played (This is important).
5. Operate the controls on one monitor whilst viewing the video on the other.

Name: Anonymous 2010-10-16 21:57

>>2
He should be looking into DirectShow, but his question is pointless in general, because C# is a language and what he wants to do is very platform-specific: it would have to be done differently in Windows/CLR (using either DirectShow, ActiveMovie or one of the newer interfaces, or some crappy portable renderer which does not output directly to the GPU, or one that just uses OpenGL instead), Linux (ffmpeg+vdpau), Mac OS X (QuickTime, GStreamer, ...). Even within specific platforms, there's countless ways to achieve it. It is however preferable, that you do use the platform's facilities as they tend to integrate better with the hardware and give the user more flexibility (for example, with DirectShow, the user may be able to control what filter decodes the video or even change the renderer or how the video is processed, how RGB conversion is performed and much more).

tl;dr: You should be asking how to display video in general on a specific platform, not how to do it in some specific language.

Name: Anonymous 2010-10-16 22:09

Name: Anonymous 2010-10-16 22:41

I need to write a program to display video in one monitor then a playlist in other monitor then make a queue in a database.

Name: Anonymous 2010-10-16 23:34

>>5
But I don't sing English!

Name: Anonymous 2010-10-17 0:58

>>4
Someone doesn't understand abstraction.

Name: >>4 2010-10-17 1:09

>>8
Of course, you can make an abstract interface which allows you to perform the action(displaying video in this case), and then implement this interface/API/... in such a way that it works for a finite set of platforms. However, regardless if you implement such an interface or you use someone else's, you will be making a choice beyond your interface which will affect how the user sees the video (differences between platforms and rendering methods used). I should also note that I'm not aware of any such specific interface existing for C# (which is what OP asked for) that is entirely portable. If OP is to succeed with this problem in practice, he will have to deal with platform-specific stuff, even if in the end he could just use the same interface to perform the same action in a variety of OSes, however that does not lessen the problem that he has to solve the problem for each OS, or use a solution provided by someone else.

Name: Anonymous 2010-10-17 3:11

Coding for Windows
Writing in C Hash
Now you have two problems.
(C Sharp is a musical note, in computers the "#" is the hash symbom, get over it Microsofties)

Name: Anonymous 2010-10-17 6:16

>>10
GEE EN YU SLASH LIE NUX.

Name: Anonymous 2010-10-17 7:23

>>10
Somebody doesn't get the joke.

Name: Anonymous 2010-10-17 10:13

>>10
I hate music majors.

Name: Anonymous 2010-10-17 10:35

>>13
Whatsamatter, not atonal enough for ya?

Name: Anonymous 2010-10-17 10:55

>>10
It's called cis, DUMBASS

Name: Anonymous 2010-10-17 10:59

coctothorpe

Name: Anonymous 2010-10-17 13:23

>>16
I prefer this term over other names such as "Seshup" because it provides a convenient parallel term for F#, "Fucktothorpe". Though I suppose "Fuckshup" would work as well.

Name: Anonymous 2010-10-18 0:01

>>16,17 I dids't chortle a wee bit.

Don't change these.
Name: Email:
Entire Thread Thread List