Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional ShareData types? #182

Closed
plinss opened this issue Sep 23, 2020 · 6 comments
Closed

Additional ShareData types? #182

plinss opened this issue Sep 23, 2020 · 6 comments
Labels
tag-needs-resolution Issue the Technical Architecture Group has raised and looks for a response on.

Comments

@plinss
Copy link
Member

plinss commented Sep 23, 2020

From the TAG review:

We accept this is likely limited by existing OS APIs, but during the review we thought about sharing other common data types, such as vCard, vCalendar, other structured data types, etc.

While those can be encoded into Blobs, it may be useful to allow sharing other data types, like a byte array, data which would be JSON serialized, or a raw string, accompanied by a content-type, without requiring the author to do the Blob encoding. If the OS share API doesn't support those types directly, the UA may auto-convert some common cases into files as necessary.

As the ShareData dictionary is inherently extensible, we don't feel this is required for V1, but just wanted to raise the issue.

@plinss plinss added the tag-needs-resolution Issue the Technical Architecture Group has raised and looks for a response on. label Sep 23, 2020
@ewilligers
Copy link
Collaborator

If we adopt #181, users will be able to share any blobs.

I see limited value in inventing a new input format for (data + content-type), when the web platform already has Blob's constructor.

@marcoscaceres
Copy link
Member

In the future, it might be nice to share HTMLImageElement, HTMLAudioElement, HTMLVideoElement, etc. that would take a lot of pain out of using the API.

@saschanaz
Copy link
Member

In the future, it might be nice to share HTMLImageElement, HTMLAudioElement, HTMLVideoElement, etc. that would take a lot of pain out of using the API.

What would happen when the sources were MediaStream or just multiple <source>? 👀

@marcoscaceres
Copy link
Member

I guess we will figure those out if we ever add them. Even HTMLImageElement is annoying because there is no direct way to get to the image data.

@marcoscaceres
Copy link
Member

Closing as there is nothing actionable here.

@marcoscaceres
Copy link
Member

marcoscaceres commented Aug 1, 2022

Sent request to TAG to remove label https://lists.w3.org/Archives/Public/www-tag/2022Aug/0000.html

@plinss plinss removed the tag-needs-resolution Issue the Technical Architecture Group has raised and looks for a response on. label Aug 15, 2022
@w3cbot w3cbot added the tag-needs-resolution Issue the Technical Architecture Group has raised and looks for a response on. label Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tag-needs-resolution Issue the Technical Architecture Group has raised and looks for a response on.
Projects
None yet
Development

No branches or pull requests

5 participants