Re: Integrate IP Camera stream in GTK app

2017-06-14 Thread Rúben Rodrigues
Hi Eric,

I know that we can do with gstreamer, but i'm using an raspberry pi and what i 
tested dont't works because raspberry pi just shows an image of camera and 
don't play the stream. I get an error of "computer to slow", but just stay slow 
after run gstreamer.

I used vlc too, and in my computer works fine, but not in raspberry pi..

Thanks


Às 18:42 de 13/06/2017, cecas...@aol.com escreveu:

Hi Ruben,

I am sure you can do that with GTK and GStreamer. That way the code would be 
portable across platforms.

I don't have any examples of using GStreamer to get video from an ip camera. I 
have some test code that will show the video from the local webcam.

https://github.com/cecashon/OrderedSetVelociRaptor/blob/master/Misc/Sound/webcam3.c

There are a couple of other programs in the Sound folder that uses GStreamer 
with GTK if that is of any help. Also, I have an updated GStreamer 
basic-tutorial5 that will play local video or video from over the web if that 
would be of any help to you.

Eric




[https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif]
  Sem vírus. 
www.avast.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: turn on italics in TextView

2017-06-14 Thread Eric Cashon via gtk-app-devel-list

 
Here are a few things that might improve the above code a little. Use

gtk_button_set_focus_on_click(GTK_BUTTON(toggle1), FALSE);

instead of a grab. Also the global gboolean can be eliminated if you pass the 
toggle button pointer to the "insert-text" callback. Then you can just use

if(gtk_toggle_button_get_active(user_data))
  
For the sequence of events it is my understanding that the text changes will be 
made during the event cycle before the window gets re-painted.

https://developer.gnome.org/gtk3/stable/chap-drawing-model.html

Eric
 

 

 

-Original Message-
From: Doug McCasland 
To: cecashon 
Sent: Tue, Jun 13, 2017 4:09 pm
Subject: Re: turn on italics in TextView


cecashon, thanks so much for your great reply!


I had tried all those calls, but I hadn't put them together as you did, nor did 
I apply the tag in the way your code does.  And I didn't think of having one 
signal/function for the button-down and another for the apply_tag_by_name.  
Cool!  


So your code gets a signal after the character(s) is entered. Then the style is 
applied to that char, without moving the insert point.  Do you know if the 
un-tagged char is visibly displayed first, and then altered?  Or is all the 
processing somehow finished before the display changes, and then only the 
tagged char is put on the screen.






___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list