this post was submitted on 18 Jun 2023
3 points (100.0% liked)

Lemmy.nz Support

345 readers
1 users here now

Ask your questions here

founded 1 year ago
MODERATORS
 

The Create Post page says that it can accept videos in the html, but when I just tried to upload an mp4 I got this error:

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

Are we supposed to be able to upload videos here?

you are viewing a single comment's thread
view the rest of the comments
[–] cloventt 3 points 1 year ago (2 children)

Gonna open a PR to fix video embeds. Any feature requests you'd like me to look at?

[–] RaoulDuke 2 points 1 year ago (1 children)

Oh cool, thanks! Yeah, beyond being able to embed PeerTube & YouTube, it would be cool if we could do it with Reddit posts too, especially videos and images. I haven't looked into Reddit embeds, but there's some documentation on them here (it's a pdf‽). Someone also made this, which hasn't been updated for a couple of years but still seems to work.

[–] cloventt 3 points 1 year ago

Ugh, not great docs on getting set up so I'm struggling to get a test env working.

[–] RaoulDuke 2 points 1 year ago

I just realised PeerTube videos are already being embedded, they're just hard to find. You have to either click the book icon or open the post, then click the Expand here button. So it's about displaying that where the preview image is. Don't know if it's the same with YouTube.