W3C home > Mailing lists > Public > public-webtiming@w3.org > August 2015

Re: [timingobject] Chaining timing objects

From: François Daoust via GitHub <sysbot+gh@w3.org>
Date: Fri, 28 Aug 2015 10:28:33 +0000
To: public-webtiming@w3.org
Message-ID: <issue_comment.created-135729448-1440757712-sysbot+gh@w3.org>
But then you wouldn't be able to associate that wrapper object 
directly with a media element, would you?

In other words, the `timingsrc` property that the spec defines expects
 a "Platform object" [1], something that JS code cannot produce by 
itself (other than by calling the `TimingObject` constructor). A 
wrapper object, created by authors, would be a "User Object".

What can be done right now is to define a `TimingProvider` object that
 wraps a `TimingObject`, does the transformations, and that is in turn
 associated with another `TimingObject`. That is a bit convoluted 
though, and could in the future become more convoluted if the 
`TimingProvider` code ends up being separated (as in #10, although 
we're not there yet...)

[1] http://heycam.github.io/webidl/#dfn-platform-object

GitHub Notif of comment by tidoust
Received on Friday, 28 August 2015 10:28:35 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:25:14 UTC