mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-11-13 23:39:08 -05:00
NIP-94: Add optional 'download' flag
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.
This commit is contained in:
parent
141197c564
commit
2b3f5ba0eb
4
94.md
4
94.md
|
@ -21,6 +21,7 @@ This NIP specifies the use of the `1063` event type, having in `content` a descr
|
|||
* `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` expresses that this file is intended to be presented as a download link, rather than played inline. Client's may choose to ignore this.
|
||||
|
||||
```json
|
||||
{
|
||||
|
@ -37,7 +38,8 @@ This NIP specifies the use of the `1063` event type, having in `content` a descr
|
|||
["dim", <size of file in pixels>],
|
||||
["magnet",<magnet URI> ],
|
||||
["i",<torrent infohash>],
|
||||
["blurhash", <value>]
|
||||
["blurhash", <value>],
|
||||
["download", <boolean>]
|
||||
],
|
||||
"content": <description>,
|
||||
"sig": <64-bytes hex of the signature of the sha256 hash of the serialized event data, which is the same as the "id" field>
|
||||
|
|
Loading…
Reference in New Issue
Block a user