NIP-94: Add optional 'download' flag - #645
Conversation
In Stemstr, we have notes that present the same audio file as both a downloadable wav file and a streamable m3u8. We would like other clients to know that the wav is meant to be downloaded and the m3u8 is meant to be played inline. The proposed change is adding a "download" flag to NIP-94 to signal this intent.
|
I think it is a good addition and is similar to HTTP Content-Disposition header that is either "inline" or "attachment", so |
|
Didn't know about that header. This might be redundant if we can just set a Content-Disposition header. I guess the question is are clients likely to honor that header? |
|
Browsers honor it but custom clients may not. And a NIP-94 event received by websocket won't have a header. If you were thinking of using urls directly instead of NIP-94, you could use NIP-54 - Inline Resource Metadata that accepts all NIP-94 tags and make an url like So it's good to add it to NIP-94 so to make it available to NIP-54. |
|
I would invert this. I'd keep the |
| * `magnet` (optional) URI to magnet file | ||
| * `i` (optional) torrent infohash | ||
| * `blurhash`(optional) the [blurhash](https://github.com/woltapp/blurhash) to show while the file is being loaded by the client | ||
| * `download` (optional) expresses that this file is intended to be presented as a download link, rather than played inline. Client's may choose to ignore this. Use "1" for true, "0" for false. |
There was a problem hiding this comment.
what about the tag being present instead?
There was a problem hiding this comment.
that makes sense
In Stemstr, we have notes that present the same audio file as both a downloadable wav file and a streamable m3u8. We would like other clients to know that the wav is meant to be downloaded and the m3u8 is meant to be played inline.
The proposed change is adding a "download" flag to NIP-94 to signal this intent.