You can attach audio, video or photos to Mastodon posts. To do this click on the attachment logo (which is a paperclip πŸ“Ž on the web, apps will usually have a photo icon).

Attachments can be:

-Up to four PNG, JPG or GIF images of 8 megabytes

OR

-One MP4, M4V, MOV or WebM video of 40 megabytes

OR

-One MP3, OGG, WAV, FLAC, OPUS, AAC, M4A or 3GP audio file of 40 megabytes

There is no length limit on audio or video, only a file size limit. Remember to add text descriptions for attachments! πŸ‘

p.s. As @jherazob has just pointed out, an alternative method is to embed media from another site. You can do this by just including the link in your post, it will automatically turn into an embedded player.

For example, to include a YouTube video just include the video's link in your post. This also works with Bandcamp, PeerTube, Giphy etc.

Here's a PeerTube example:

https://video.blender.org/w/5ruRYckTcQMTMQvyqMnVsr

Note that it may take a few mins for embedded players to appear, and some apps may not support them.

Caminandes 3: Llamigos - Funny 3D Animated Short

PeerTube
@feditips @jherazob
Lately Youtube has been doing this though
@SmartmanApps @feditips @jherazob you can change the link to a yewtu.be link.
@juandesant @feditips @jherazob
I just tried that and it no longer embeds - just displays as a link.

@SmartmanApps @juandesant @jherazob

Does this display correctly?

https://www.youtube.com/watch?v=IPSbNdBmWKE

EDIT: Apparently it doesn't, intresting.

This has happened before, perhaps YouTube have changed something which has broken its embedding on here?

YouTube was embedding correctly for me a couple of days ago, so it seems to be a very recent thing.

What is Mastodon?

Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.

YouTube
It’s a Hit or Miss. The video is sometimes embedded, sometimes it isn’t.

@Deus @juandesant @SmartmanApps @jherazob

Now it's embedded for me 😁

I guess we can say this is either intermittent or else the server is taking a longer than usual time to generate the embedded version.

@feditips @Deus @juandesant @jherazob
Yes, your link works for me. I first saw the issue on Twitter, and thought Youtube had decided to block their video being played on Twitter, πŸ˜‚ but then it started happenning here too. ATM looks like whatever Youtube did they have now undone it.
πŸ˜‚ It’s the same case with me for Twitter links - sometimes the OG works, sometimes it doesn’t.