 |
GTK+ Forums Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
|
|
|
| Author |
Message |
|
|
tjma2001
Joined: 13 Oct 2006 Posts: 2 Location: Cape Town
|
Posted: Fri Oct 13, 2006 9:32 pm Post subject: Video in GTK |
|
|
Hey guys.
I dont see anything in the api relating to video. If I wanted to render I video in a gtk application what sort of widgets would I use in order to display/hold the video? I just need a point in the general direction and then see what I can do. This has been bugging me for a whole month now and I have been trying to rftm for a while now so that I dont sound like a complete n00b. PLease someone help |
|
| Back to top |
|
 |
openldev Never Seen the Sunlight
Joined: 21 Sep 2005 Posts: 386 Location: Fairfax, Virginia
|
Posted: Sat Oct 14, 2006 1:24 am Post subject: |
|
|
| There isn't anything built into the GTK+ libraries that I know of. I would recommend checking out the gxine source. I'm not sure how they do it, but I'm thinking that you might just want to find a ready-made library that does it for you. |
|
| Back to top |
|
 |
tjma2001
Joined: 13 Oct 2006 Posts: 2 Location: Cape Town
|
Posted: Sat Oct 14, 2006 10:51 am Post subject: |
|
|
Yes I have spent the night reverse engineering gxine and i am managing to understand most of their code.. the only problem is that i keep on getting this error
ltmp.c:(.text+0x63b): undefined reference to `gtk_video_new'
gtk_video_new is a method in gtkvideo.c with the following declaration
GtkWidget *gtk_video_new (xine_t *xine, xine_stream_t *stream,
xine_post_out_t *out,
const gchar *video_driver_id,
int default_width, int default_height,
int button_press_mask, int button_release_mask)
if have called it with the following
GtkWidget *playwidget = NULL;
playwidget = gtk_video_new (xine, stream, xine_get_video_source (stream),
"xshm", 480, 300,
0x04 /* press: button 2 */,
0x08 /* release: button 3 */);
Sorry if i seem like a c n00b but in computer science at my university we only learned c++ so if the answer is obvious sorry..
UPDATE
sorry the answer was pretty simple and i managed to figure it out. Its been such a long time since I have compiled c on the command line on a fairly big project so I kind of forgot out some args to put in when compiling. |
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group CodeBB 1.0 Beta 2
|