- From: François Daoust via GitHub <sysbot+gh@w3.org>
- Date: Fri, 28 Aug 2015 10:28:33 +0000
- To: public-webtiming@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 See https://github.com/webtiming/timingobject/issues/13#issuecomment-135729448
Received on Friday, 28 August 2015 10:28:35 UTC