[flexcoders] Performing screen capture in Flex apps?

2008-04-01 Thread Yair Flicker
Hi there, I'd like to build my own custom collaboration tool for a
client and it needs to have the screen sharing capability a la BRIO.
Ideally the add-in in BRIO can be re-purposed and used in other
applications. Is that or will that be possible? If not, does anybody
know of any other component or add-in that can be used for performing
screen capture within Flex/AIR apps?

Thanks in advance! 



[flexcoders] Re: VideoDisplay.complete event doesn't get called when a video ends

2007-03-08 Thread Yair Flicker
Hi Bill - thanks for the response.

I haven't found the "proper" solution yet either, but I do have a
hack...

1) Attach an event listener to the VideoEvent.PLAYHEAD_UPDATE event
2) Inside that listener, check if the video is supposed to end within
0.5 seconds (or some threshold)
3) If video is supposed to be ending very soon, start a timer, attach
event listener to its TIMER_COMPLETE event
4) Once the TIMER_COMPLETE event fires, check if (a) the video claims
it's still playing and (b) the video that was playing 0.5 seconds ago is
the same video that is supposedly playing now, if yes, just dispatch the
videoDisplay's VideoEvent.COMPLETE event


Attach an event listener to the videodisplay's
VideoEvent.PLAYHEAD_UPDATE event

playheadUpdate() {
if (videoDisplay.totalTime - videoDisplay.playheadTime < .5) {
 // The video is supposed to end withing .5 seconds, and normally you
would expect
 // the complete event to fire
 set vidSource = videoDisplay.source
 start some timer that will fire in (videoDisplay.totalTime -
videoDisplay.playheadTime + .5) seconds, i.e. 0.5 seconds after the
complete event should fire.
 attach a TimerEvent.TIMER_COMPLETE event to the Timer
}
}

timerComplete() {
 if (videoDisplay.playing && videoDisplay.source = vidSource) {
   videoDisplay.dispatchEvent(new VideoEvent(VideoEvent.COMPLETE));
 }
}

What do you think about that?

Yair

--- In flexcoders@yahoogroups.com, "beecee1977" <[EMAIL PROTECTED]> wrote:
>
> Well you're not crazy, but I've no solution I'm afraid:
>
> http://tech.groups.yahoo.com/group/flexcomponents/message/1549
>
> I'd imagine it's something to do with how the flv is encoded? You
> could try catching a state change event when the video stops playing
> at the end, but I haven't tried that myself...
>
> Good luck.
> Bill
>
> --- In flexcoders@yahoogroups.com, "Yair Flicker" yair@ wrote:
> >
> > Hello again!
> >
> > I'm having ANOTHER problem with the VideoDisplay control where I
> set it
> > to play a video, attach an event handler to its complete event, but
> the
> > complete event never gets triggered/fired! Note this happens
> > consistently with select FLV's - it doesn't happen all the time. To
> > rephrase that, on certain FLV's the VideoDisplay control operates
> > properly and fires the complete event on completion, on other
> certain
> > FLV's the VideoDisplay control completes but doesn't fire the
> complete
> > event!!! Am I crazy? Or is this another blatant bug?
> >
> > Try this MXML (I'm using Flex 2.01):
> >
> > 
> > http://www.adobe.com/2006/mxml";
> > <http://www.adobe.com/2006/mxml%22>  layout="absolute">
> >
> > 
> > 
> > 
> >
> >  > source="http://ash-v14.ash.youtube.com/get_video?video_id=qP_3_NtG-
> lo"
> > <http://ash-v14.ash.youtube.com/get_video?video_id=qP_3_NtG-lo%22>
> > autoPlay="true" width="450" height="338" complete="complete()" />
> >
> >  > fontSize="16" color="0x00" visible="false" />
> >
> > 
> >
> > That's a 30 second clip btw. You will never see the "IF YOU SEE ME
> THE
> > VIDEODISPLAY COMPLETED!!!" text. Now, however, if you change the
> source
> > to http://www.mediacollege.com/video-
> gallery/testclips/barsandtone.flv
> > <http://www.mediacollege.com/video-
> gallery/testclips/barsandtone.flv>
> > (6 second clip), the clip completes and you WILL see "IF YOU SEE ME
> THE
> > VIDEODISPLAY COMPLETED!!!"
> >
> > Any suggestions as to what may be going on?  Thanks!
> >
>




[flexcoders] VideoDisplay.complete event doesn't get called when a video ends

2007-03-07 Thread Yair Flicker
Hello again!

I'm having ANOTHER problem with the VideoDisplay control where I set it
to play a video, attach an event handler to its complete event, but the
complete event never gets triggered/fired! Note this happens
consistently with select FLV's - it doesn't happen all the time. To
rephrase that, on certain FLV's the VideoDisplay control operates
properly and fires the complete event on completion, on other certain
FLV's the VideoDisplay control completes but doesn't fire the complete
event!!! Am I crazy? Or is this another blatant bug?

Try this MXML (I'm using Flex 2.01):


http://www.adobe.com/2006/mxml";
  layout="absolute">





http://ash-v14.ash.youtube.com/get_video?video_id=qP_3_NtG-lo";

autoPlay="true" width="450" height="338" complete="complete()" />





That's a 30 second clip btw. You will never see the "IF YOU SEE ME THE
VIDEODISPLAY COMPLETED!!!" text. Now, however, if you change the source
to http://www.mediacollege.com/video-gallery/testclips/barsandtone.flv
 
(6 second clip), the clip completes and you WILL see "IF YOU SEE ME THE
VIDEODISPLAY COMPLETED!!!"

Any suggestions as to what may be going on?  Thanks!


[flexcoders] I set VideoDisplay.source to a 404, but VideoDisplay simply says it's "loading"

2007-03-07 Thread Yair Flicker
Hello people,

I have a problem where I set the videoDisplay.source property to an
invalid URL - 404 - call the .play() method, and then the videoDisplay
simply says that it's loading. It doesn't give any indication of an
error, just sits there and says it's loading. It's the most annoying
thing in the worldhow the hell am I supposed to know when the
.source property points to an invalid URL?!?!?! I even have a timer in
there to output the state of the VideoDisplay every 2.5 seconds - all it
says is that it's loading. Am I crazy? Am I doing something wrong? Or is
this a blatant bug in Flex?

Try this MXML:


http://www.adobe.com/2006/mxml";
  layout="absolute">





http://sjc-v90.sjc.you1234tube.com/get_video?video_id=BTh8no91g5\
4E" 
autoPlay="true" width="450" height="338" stateChange="showInfo(event)"
/>




The trace debug output is as follows:
stateChange: loading [Event type="stateChange" bubbles=false
cancelable=false eventPhase=2]
timerComplete: loading [TimerEvent type="timer" bubbles=false
cancelable=false eventPhase=2]
timerComplete: loading [TimerEvent type="timer" bubbles=false
cancelable=false eventPhase=2]

timerComplete: loading [TimerEvent type="timer" bubbles=false
cancelable=false eventPhase=2]
timerComplete: loading [TimerEvent type="timer" bubbles=false
cancelable=false eventPhase=2]

And btw, if you set the source to
http://chi-v45.chi.youtube.com/get_video?video_id=n4Fwge2iqJ0
 
(another 404), Flex detects it immediately and the trace output is what
you would expect/hope.

Anybody else experience this problems?  Can anybody think of any
fixes/workarounds?  Am I doing something wrong?  Thanks!