ben on Nostr: if you want a very rough example of this, take a look at #[7] - a micro app for ...
if you want a very rough example of this, take a look at
stemstr (npub1ste…mul5) - a micro app for sharing and remixing audio tracks, of which media is core.
the media protocol is experimental and a WIP but we’re closer to your ideas than b64’d binary in json:
- we built a custom nostr relay that exposes a couple of non-websocket HTTP endpoints
- we upload media using multipart-form data. this is simple for clients to implement and chunks data on the way up
- since our relay powers a music streaming app we transcode the audio uploads for streaming (HLS). the relay currently doubles as the streaming fileserver
- our webapp emits a note on successful upload which includes the media urls
- when listening to media in stemstr, each note is rendered with a custom audio player that buffers in the audio as needed (streaming)
again, this is still a WIP and has lots of room for improvement but I wanted to add this data point to the discussion as this is a real world example of streaming media on nostr.
Published at
2023-04-30 14:32:44Event JSON
{
"id": "deaa1ea82b71c4c873e072bb487cb9a3176728e4a74fa5a468238a3794634d98",
"pubkey": "7bdef7bdebb8721f77927d0e77c66059360fa62371fdf15f3add93923a613229",
"created_at": 1682865164,
"kind": 1,
"tags": [
[
"e",
"8dac807a67d484e23bdc819ebcc03fa64c2ec3a2162b68476804627470302fcc"
],
[
"p",
"76c71aae3a491f1d9eec47cba17e229cda4113a0bbb6e6ae1776d7643e29cafa"
],
[
"p",
"3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d"
],
[
"p",
"00000000827ffaa94bfea288c3dfce4422c794fbb96625b6b31e9049f729d700"
],
[
"p",
"bf943b7165fca616a483c6dc701646a29689ab671110fcddba12a3a5894cda15"
],
[
"p",
"4523be58d395b1b196a9b8c82b038b6895cb02b683d0c253a955068dba1facd0"
],
[
"p",
"489ac583fc30cfbee0095dd736ec46468faa8b187e311fda6269c4e18284ed0c"
],
[
"p",
"82f3b82c7f855340fc1905b20ac50b95d64c700d2b9546507415088e81535425"
]
],
"content": "if you want a very rough example of this, take a look at #[7] - a micro app for sharing and remixing audio tracks, of which media is core.\n\nthe media protocol is experimental and a WIP but we’re closer to your ideas than b64’d binary in json:\n\n- we built a custom nostr relay that exposes a couple of non-websocket HTTP endpoints\n- we upload media using multipart-form data. this is simple for clients to implement and chunks data on the way up\n- since our relay powers a music streaming app we transcode the audio uploads for streaming (HLS). the relay currently doubles as the streaming fileserver\n- our webapp emits a note on successful upload which includes the media urls\n- when listening to media in stemstr, each note is rendered with a custom audio player that buffers in the audio as needed (streaming)\n\nagain, this is still a WIP and has lots of room for improvement but I wanted to add this data point to the discussion as this is a real world example of streaming media on nostr. ",
"sig": "4ac8477ca16669ed5587755bae0a21aab0a7115a6075edf5160e371fa93b56b66ff8cb16e86b2b647fa03161f7fce2a3ad33091faffd393105c90d86a4fdc2f4"
}