James Cridland on Nostr: Interesting. I thought that CORS issues meant that I could only display WebVTT ...
Interesting. I thought that CORS issues meant that I could only display WebVTT subtitles on web pages if both the AUDIO and the SUBTITLES were from the same domain. Turns out, that's not true - the SUBTITLES must be from the same domain, but the AUDIO can be hosted anywhere.
Which means that I should be able to add display of transcripts from anywhere - particularly since I've just cobbled-together a SRT->VTT translator.
Published at
2024-07-11 01:31:06Event JSON
{
"id": "92ccc099bec727a28610690773e0ade6239bd748e04fc1d294b6307b8c40a5d5",
"pubkey": "452fa1bb618154a61b5b88d325446577ed6095a21bb29e1049b4acb04d2e61bb",
"created_at": 1720661466,
"kind": 1,
"tags": [
[
"proxy",
"https://bne.social/users/james/statuses/112765269849735055",
"activitypub"
]
],
"content": "Interesting. I thought that CORS issues meant that I could only display WebVTT subtitles on web pages if both the AUDIO and the SUBTITLES were from the same domain. Turns out, that's not true - the SUBTITLES must be from the same domain, but the AUDIO can be hosted anywhere.\n\nWhich means that I should be able to add display of transcripts from anywhere - particularly since I've just cobbled-together a SRT-\u003eVTT translator.",
"sig": "f4f8f94ff3f12d7582b2d35a1ba7ec42fd5ca2baf0388bad628a1ae9844f5e8492bb006f32aa4185997d200db310521ac4ce4c22e3246cbc703f76f958d711f8"
}