[Xerte] VideoIcon -> playheadTime
Peter Huppertz
peter.huppertz at baselgovernance.org
Thu Jun 24 09:25:16 BST 2010
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
More information about the Xerte
mailing list