[libvlc] How to redirect output and to check isRunning()?

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
bsrealm
New Cone
New Cone
Posts: 6
Joined: 22 Mar 2008 12:05

[libvlc] How to redirect output and to check isRunning()?

Postby bsrealm » 23 Mar 2008 00:13

Hello:

1: I got VLC to open up a media file and run it in a DirectX output window successfully :)
2: I would like to know how I can redirect the output to any other active window or something. Like if I can get a window handle, how to I redirect the output into that window, etc.
3: I tried looking at information from the wiki, but I couldn't quite locate the means. I apologize if I have been hasty, its just that I am working time-bound :|
4: I have seen viewtopic.php?f=14&t=45225. But its command-line based. I want some API thingy.
5: Also, how to check if the file is playing or done playing? An IsRunning() function or something?
6: Even if you can point me to some general place where I can lookup these API stuff, I'd be grateful. I have seen howto's and the wiki though.


Thanks,
Balki

[PS] The backstory is that I am making a game and I'd like to use VLC to play the intro cinematic videos, the credits and such. I know its mostly going to be fullscreen and there would be a command line argument for that I'm sure, but I'd still like to know how to redirect to a window using the handle. If I can get more into the depths of the rendering thingy, maybe I can write to some texture as well using VLC!

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: [libvlc] How to redirect output and to check isRunning()?

Postby Jean-Baptiste Kempf » 23 Mar 2008 08:52

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.

bsrealm
New Cone
New Cone
Posts: 6
Joined: 22 Mar 2008 12:05

Re: [libvlc] How to redirect output and to check isRunning()?

Postby bsrealm » 23 Mar 2008 19:42

Well ..

1: I knew that was coming! In fact, I hoped that the guy who wrote that would help me get started quickly :)
2: I would have gone on and tried working from that SDL thingy, but I get undeclared identifier for [libvlc_media_descriptor_t] and [libvlc_media_instance_t], so I couldn't proceed further on that.


Thanks,
Balki


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Bing [Bot] and 71 guests