video device for iOS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Been using pjsip on iphone for a long time now, it's been a great
experience, and  I've been waiting anxiously to take a peek at the
latest video efforts.

Finally saw the freshly posted video driver for iPhone.

There is a slight problem with this implementation: the UI is updated
from a background thread. ?This should not be done - UI updates will
be unpredictable and lagging. ?It's good idea to perform actual image
conversion in the background, though.

A simple fix is to change line 331 from
[stream->imgView setImage:image];

to:

[stream->imgView performSelectorOnMainThread:@selector(setImage:)
? ? ? ? ? ? ? ? ? ? ? ? ? withObject:image
? ? ? ? ? ? ? ? ? ? ? ?waitUntilDone:NO];

Another architectural issue is the fact that the video output is added
directly to the main application window - this will need to change in
order for third-party developers to be able to incorporate video into
their own view hierarchy.

Thank you and keep up the great work!



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux