W3C home > Mailing lists > Public > public-html-media@w3.org > September 2015

[media-source] createObjectURL() not up-to-date with File API

From: None via GitHub <sysbot+gh@w3.org>
Date: Wed, 30 Sep 2015 20:10:23 +0000
To: public-html-media@w3.org
Message-ID: <issues.opened-109169485-1443643822-sysbot+gh@w3.org>
phantom10111 has just created a new issue for 

== createObjectURL() not up-to-date with File API ==
The description of `createObjectURL()` has the following note:

> This algorithm is intended to mirror the behavior of the 
createObjectURL()[FILE-API] method with autoRevoke set to true.

The note follows with an algorithm similar to the one in a [draft from
 25 October 

The issue is that the [current version of File 
API](http://www.w3.org/TR/FileAPI/#dfn-createObjectURL) has reworded 
the description of the algorithm and removed the `autoRevoke` 
parameter from that function. `createObjectURL()` will now always 
create non auto revoking URLs. `createFor()` was added to create auto 
revoking URLs.

I suggest that `createFor()` should be added to the specification and 
that the behaviour of both functions should mirror the appropriate 
functions from the current File API. If for some reason you only want 
to provide the auto revoking version, I suggest that the function 
should be called `createFor()` to avoid confusion with File API.

I personally think that forcing users to deal with the URL auto 
revoking at an unspecified time isn't a great thing to do and that 
both versions should be provided.

See https://github.com/w3c/media-source/issues/10
Received on Wednesday, 30 September 2015 20:10:28 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 15:49:05 UTC