[Live-devel] interactive support
hornsby
adrian_hornsby at yahoo.co.uk
Fri Sep 30 09:36:08 PDT 2005
Hi,
Thanks a lot for the answer.
On Thursday 29 September 2005 21:46, Ross Finlayson wrote:
> >I'm having little trouble to understand the watchVariable variable.
>
> Remember, You Have Complete Source Code.
>
> >But how then I get that a or b is pressed, do I have to use another
> > function like control.keydown event (in windows world) but for linux ??
> > or is it already implemented with this watchVariable thing?
> >
> > > Then, elsewhere in your program, do
> > > if (/* key 'a' is pressed*/) {
> > > watchVariable = 'a';
> > > }
>
> That's something you're going to have to figure out - it depends on your
> OS.
>
> One thing you *could* do is start a new thread that waits for key
> presses, and then sets "watchVariable" as appropriate when a key
> press is noticed. (Because this thread would interact with the
> "LIVE555 Streaming Media" code only via setting "watchVariable", this
> would be an acceptable use of threads.)
>
That is what I was thinking to do, I'm glad you second that :)
> Alternatively, you could write your own event loop ("TaskScheduler"
> subclass) that includes key presses among the events to be acted
> upon. But, as I noted earlier, that would be more work.
>
>
> Ross Finlayson
> Live Networks, Inc. (LIVE555.COM)
> <http://www.live555.com/>
>
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
More information about the live-devel
mailing list