W3C home > Mailing lists > Public > public-media-fragment@w3.org > May 2011

Re: Build a Media Fragment URI Parser In JavaScript (ACTION-203)

From: Silvia Pfeiffer <silviapfeiffer1@gmail.com>
Date: Fri, 6 May 2011 21:25:51 +1000
Message-ID: <BANLkTinY=xKmyLCH6W+=nbCD-Uxt9OiC_w@mail.gmail.com>
To: Thomas Steiner <tsteiner@google.com>
Cc: RaphaŽl Troncy <raphael.troncy@eurecom.fr>, Thomas Steiner <tomac@google.com>, Media Fragment <public-media-fragment@w3.org>, Malte Ubl <malteubl@google.com>
Hi Thomas,

It already does almost everything that would be required by a
validator: parse the thing and return the components.

All it needs to do is state whether it's valid/invalid and when it's
invalid what errors it found parsing the URL. This would implement
some of the errors that we are currently discussing - at least all of
those that a UA cannot parse. (Of course it cannot actually check if a
start/end time is within the duration of a file etc.)

Don't make it any more complicated than that.


On Fri, May 6, 2011 at 3:13 PM, Thomas Steiner <tsteiner@google.com> wrote:
> Hi Silvia,
> It could be turned into a validator service, yes. What interface would
> you imagine?
> validator.example.org/{uri} and the thing returns boolean, or the
> parsed dime sions in JSON form? Or something with a real UI (more like
> an app)?
> What do you/all others think?
> Thanks,
> Tom
> Thank God not sent from a BlackBerry, but from my iPhone
> On 06.05.2011, at 07:00, Silvia Pfeiffer <silviapfeiffer1@gmail.com> wrote:
>> 2011/3/22 RaphaŽl Troncy <raphael.troncy@eurecom.fr>:
>>> Hi Thomas,
>>>> OK, found the issues:
>>>> - Strict mode (https://developer.mozilla.org/en/JavaScript/Strict_mode)
>>>> caused more issues than it solved. Removed for now.
>>> I have tried http://tomayac.com/mediafragments/mediafragments.html this
>>> morning. It still works on Chrome, *not* on Firefox 3.6+, Opera 11+, IE8+.
>>>> - Safari (not even 5.0.4) does not support ISO 8601 dates (shame).
>>>> Handling this correctly in the library now.
>>> I have seen your tweet about this. Did you file somewhere a bug report? Did
>>> you get an answer from Apple? We have Dave and Eric in the group who might
>>> help to follow up this bug.
>>> The home page of the media fragment includes now the announcement of this
>>> implementation.
>> Is this eventually going to be turned into a validator for media fragment URIs?
>> It would be nice to capture all our recent discussions about error
>> handling in such an application...
>> Silvia.
Received on Friday, 6 May 2011 11:26:38 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:52:46 UTC