GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Wed Jul 30, 2014 7:14 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Video in GTK
PostPosted: Fri Oct 13, 2006 9:32 pm 
Offline

Joined: Fri Oct 13, 2006 9:06 pm
Posts: 2
Location: Cape Town
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


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 14, 2006 1:24 am 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 3:07 am
Posts: 384
Location: Fairfax, Virginia
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.

_________________
Andrew Krause

Foundations of GTK+ Development: Buy now for only $31.49!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 14, 2006 10:51 am 
Offline

Joined: Fri Oct 13, 2006 9:06 pm
Posts: 2
Location: Cape Town
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group