GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Video in GTK

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
tjma2001



Joined: 13 Oct 2006
Posts: 2
Location: Cape Town

PostPosted: Fri Oct 13, 2006 9:32 pm    Post subject: Video in GTK Reply with quote

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

PostPosted: Sat Oct 14, 2006 1:24 am    Post subject: Reply with quote

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

PostPosted: Sat Oct 14, 2006 10:51 am    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP