readium / playground

🛝 Play with the capabilities of Readium Web & Readium CSS
https://playground.readium.org
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Shareability of links to Playground and their parameters #27

Open JayPanoz opened 1 week ago

JayPanoz commented 1 week ago

Right now Playground is only checking for a manifest but longer term, it should support more search parameters e.g. text fragment to share more precisely into an OpenAccess publication for instance.

We will try listing and documenting all these params in this issue.

HadrienGardeur commented 1 week ago

I think that in the case of mobile, shareability could also extend to support the share() method as an action: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/share

On desktop, this is not supported in a useful way and should be avoided IMO, in favor of copying to the clipboard.

JayPanoz commented 1 week ago

support the share() method as an action

I'm assuming this could also take different forms? E.g. action, entry in popover menu when highlighting text, buttons in a list of saved highlights, etc.?

So same logic, but the actual output is contextual (publication as a whole, text fragment in a resource, etc.).

HadrienGardeur commented 1 week ago

That's right. Initially, we could implement this as an action where the user can include the current position as an option.

The nature of what is shared (URL, text, media…) has an impact on what the native share intent/screen displays to the user on Android and iOS.