W3C home > Mailing lists > Public > public-device-apis@w3.org > May 2012

Re: Gallery API draft review request

From: Greg Billock <gbillock@google.com>
Date: Tue, 22 May 2012 11:52:01 -0700
Message-ID: <CAAxVY9c6RUL9e-rL+nxRdjPX9W7AvBXbGBZk-Xf-ck9mOZY=Qw@mail.gmail.com>
To: "SULLIVAN, BRYAN L" <bs3131@att.com>
Cc: Wonsuk Lee <wonsuk73@gmail.com>, Jungkee Song <jungkee.song@samsung.com>, DAP <public-device-apis@w3.org>, "public-web-intents@w3.org" <public-web-intents@w3.org>, ̿ Lee <wonsuk11.lee@samsung.com>
On Fri, May 4, 2012 at 10:07 AM, SULLIVAN, BRYAN L <bs3131@att.com> wrote:
> Greg,
>
> Is there a way in your proposal to add an attribute "readonly attribute DOMString headers[];" so that an array of headers related to the content (as metadata) can be provided as well?

Those can be provided as extra data. I specified one such header
('url'), and suggested another ('filename'), but there could be more.

One piece of feedback we've gotten on the API is that we should be
able to enumerate the extra data fields (i.e. returning a dictionary
there instead of the getExtra() function). My concern about that is
that it's a bit ambiguous how that relates to Javascript, and that's
why we don't see APIs use that pattern. Is there a good way around
that difficulty?

> Thanks,
> Bryan Sullivan
>
> -----Original Message-----
> From: Greg Billock [mailto:gbillock@google.com]
> Sent: Thursday, May 03, 2012 4:40 PM
> To: Wonsuk Lee
> Cc: Jungkee Song; DAP; public-web-intents@w3.org; ̿ Lee
> Subject: Re: Gallery API draft review request
>
> I have a question about synchronizing this work with the proposal for
> passing MIME types through web intents at [1].
>
> There I describe how to prepare MIME typed data on the client side,
> and didn't address returning data from the service as MIME type. I
> think it'd be best to coordinate this so that any MIME type specifier
> produced a common expectation for any action. For example, something
> that builds on this would be:
>
> A service returning MIME type data MUST prepare it in a dictionary as follows:
>
> dictionary MimeTypeData {
>  readonly attribute any content;
>  readonly attribute DOMString url;
>  readonly attribute DOMString filename;
>  // (other attributes may be present?)
> };
>
> If the MIME type is binary (application/*, image/*, video/*, audio/*),
> then the "content" field MUST be of type Blob. If the MIME type is
> text (text/*, message/*, multipart/*), then the "content" field MUST
> be text.
>
> Either the content or the url field may be filled.
>
> If present, the "filename" field may refer to the service-side
> filename of the resource passed back, as a hint to the client.
>
> ---
>
> This mimics the usage I described for passing MIME types. Do you agree
> that something like this would be a good overall MIME passing
> convention? If so, do you want to add this to the wiki page [1]?
>
>
> [1] http://www.w3.org/wiki/WebIntents/MIME_Types
>
>
>
> On Thu, May 3, 2012 at 1:59 AM, Wonsuk Lee <wonsuk73@gmail.com> wrote:
>> Hi. All.
>>
>> Below link is pretty version ;)
>> https://dvcs.w3.org/hg/dap/raw-file/16185b62381d/gallery/index.html
>>
>> best regards,
>> Wonsuk.
>>
>> 2012/5/3 Jungkee Song <jungkee.song@samsung.com>:
>>> (DAP) ACTION-533: Jungkee Song to Gather use cases for Gallery API
>>>
>>> Hi,
>>>
>>> Since the last DAP F2F meeting, Wonsuk and I have prepared a draft for the
>>> Gallery API, a shelved item for a while.
>>>
>>> In this draft work, we propose to use Web Intents to locate media galleries
>>> (no matter whether they are on web or local) and deliver media contents
>>> with metadata. We think that the advantage of this approach is that it
>>> makes integrating with popular services like Flickr, Youtube, SoundCloud a
>>> lot easier. We tried to stay with the simple and practical use cases.
>>>
>>> Your review on the draft will be appreciated. Especially, see the section
>>> "3.2 Discussion".
>>> Let's discuss.
>>>
>>> * I uploaded the file in the DAP repo:
>>> https://dvcs.w3.org/hg/dap/gallery/index.html
>>>
>>>   Dave, Dom,
>>>     Could you let me know how to put this file on the main page?
>>>
>>>
>>> Regards,
>>> Jungkee
>>>
>>>
>>> Jungkee Song
>>> Samsung Electronics
>>
>>
>>
>> --
>>
>> =========================================
>>    (Wonsuk, Lee) / Principal Engineer, Ph.D
>> SAMSUNG ELECTRONICS Co., LTD. (߲)
>> Mobile: +82-10-5800-3997
>> E-mail: wonsuk11.lee@samsung.com, wonsuk73@gmail.com
>> http://www.wonsuk73.com/, twitter: @wonsuk73
>> -----------------------------------------
>> Inspire the World, Create the Future !!!
>> =========================================
>>
>
Received on Tuesday, 22 May 2012 18:52:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 18:52:59 GMT