[Xerte] VideoIcon -> playheadTime

Peter Huppertz peter.huppertz at baselgovernance.org
Thu Jun 24 11:06:45 BST 2010


This is what I am trying to do ... and unfortunately they don't bubble. E.g I wanted to listen to the metadataReceived event to get the duration of my video. I tried to add an eventListener to the videoIcon but the listener won't dispatch (the documentation says that it don't bubbles). Any other possibility to grab the metadata?

Peter



On 24.06.2010, at 11:53, Julian Tenney wrote:

> VideoDisplayIcon inherits from Canvas, and has a public property videoDisplay. For some reason I've missed the VideoDisplay class out of the ASDocs, but I'll add that in. For now, use the Flex 4 docs online.
>  
> The one problem I foresee is getting event listeners onto the VideoDisplay itself - but they should bubble, so you can still attch listeners to the icon..?
> 
> From: xerte-bounces at lists.nottingham.ac.uk on behalf of Julian Tenney
> Sent: Thu 24/06/2010 10:30
> To: Xerte discussion list
> Subject: RE: [Xerte] VideoIcon -> playheadTime
> 
> You should be able to - what does it say VideoIcon inherits from? UICOmponent? Then it's a UI component. It has a member VideoDisplay - thats the thing doing the actual video presentation. I haven't looked, but unless somethig is wron, tha's how the documentation should be...
> 
> From: xerte-bounces at lists.nottingham.ac.uk on behalf of Peter Huppertz
> Sent: Thu 24/06/2010 09:25
> To: Xerte discussion list
> Subject: Re: [Xerte] VideoIcon -> playheadTime
> 
> I think wrapping is not needed, because it creates a whole lot of more work on your side?!
> 
> But how can I see, regarding the documentation, the difference between properties I can apply directly to the videoicon and the properties that I need to apply to videoicon.videoDisplay?
> 
> myVideoIcon.iconID works, myVideoIcon.playheadTime does not work. But I can't see a difference in the documentation.
> 
> Peter
> 
> On 22.06.2010, at 12:34, Julian Tenney wrote:
> 
> >> At the moment one really thinks it is a property of the VideoIcon.
> >
> > Because that's what it is. Now you're getting into the OO debate -
> > should we wrap the VideoDisplay class's methods / properties (there are
> > a lot), or should the icon itself inherit from VideoDisplay? If you
> > extend VideoDisplay I don't know if you can still do
> > addChild(myControls) to build the interface?
> >
> > Mostly OO good practice says favour composition over inheritance.
> >
> > In any case, it's a job for another day,
> >
> >
> >
> > On 22.06.2010, at 11:45, Julian Tenney wrote:
> >
> >> myIcon.videoDisplay.playheadTime;
> >>
> >> The icon itself is all the things you see - the video playback, the
> >> button, slider and so on - you need to reach in there for what you
> > want.
> >> Eventually it might be nice to wrap all those methods and expose them
> >> via myIcon
> >>
> >> -----Original Message-----
> >> From: xerte-bounces at lists.nottingham.ac.uk
> >> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Peter
> >> Huppertz
> >> Sent: 22 June 2010 10:44
> >> To: Xerte discussion list
> >> Subject: [Xerte] VideoIcon -> playheadTime
> >>
> >> Another question: I want to use the property playheadTime to jump to
> >> various points in my video. But if I enter myVideoIcon.playheadTime =
> > 30
> >> it does not jump to 30 seconds in my video. Also regardless of where I
> >> am in the video if I check debug(myVideoIcon.playheadTime) it always
> >> displays 0. Any ideas?
> >>
> >> Peter
> >>
> >> ==================================
> >> Peter Huppertz
> >> E-learning and IT Specialist
> >> International Centre for Asset Recovery
> >> Basel Institute on Governance
> >> Phone: +41 61 205 55 18
> >> Fax: +41 61 267 55 19
> >>
> >> _______________________________________________
> >> Xerte mailing list
> >> Xerte at lists.nottingham.ac.uk
> >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> >> _______________________________________________
> >> Xerte mailing list
> >> Xerte at lists.nottingham.ac.uk
> >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> >
> > ==================================
> > Peter Huppertz
> > E-learning and IT Specialist
> > International Centre for Asset Recovery
> > Basel Institute on Governance
> > Phone: +41 61 205 55 18
> > Fax: +41 61 267 55 19
> >
> > _______________________________________________
> > Xerte mailing list
> > Xerte at lists.nottingham.ac.uk
> > http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> > _______________________________________________
> > Xerte mailing list
> > Xerte at lists.nottingham.ac.uk
> > http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> 
> ==================================
> Peter Huppertz
> E-learning and IT Specialist
> International Centre for Asset Recovery
> Basel Institute on Governance
> Phone: +41 61 205 55 18
> Fax: +41 61 267 55 19
> 
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> 
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte

==================================
Peter Huppertz
E-learning and IT Specialist
International Centre for Asset Recovery
Basel Institute on Governance
Phone: +41 61 205 55 18
Fax: +41 61 267 55 19

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20100624/ec3e5c91/attachment.html


More information about the Xerte mailing list