[Xerte] VideoIcon -> playheadTime

Julian Tenney Julian.Tenney at nottingham.ac.uk
Tue Jun 22 11:34:48 BST 2010


> 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


More information about the Xerte mailing list