Media RSS can be used in both RSS and ATOM feeds to display media content like images and video.
Embedding media content
The <media:content>
tag is used for embedding images and videos in articles. This tag cannot be combined with HTML elements, so it must be specified at the item’s root level. Media RSS tags must be specified as immediate children of <item>
in RSS or <entry>
in ATOM feeds, or they will be ignored.
Embedded image
<media:content url="https://contoso.com/image-source.jpg" type="image/jpeg" medium="image"> <media:title>Image title</media:title> <media:text>Image1 alt-text</media:text> <media:credit>Joe Gargery/Fabrikam Images</media:credit></media:content>
Embedded video
<media:content url="https://contoso.com/video.mp4" duration="91" type="video/mp4" medium="video"> <media:title>Video title</media:title> <media:description>Video abstract/description</media:description> <media:credit>Joe Gargery/Fabrikam Videos</media:credit></media:content>
Embedding galleries
Galleries can be embedded in articles using the <media:group>
tag. This acts as a container for slides tagged as <media:content>.
Embedded slideshow
<media:group> <media:title>Slideshow title</media:title> <media:credit role="author">Slideshow author</media:credit> <media:content url="https://contoso.com/image1.jpg" type="image/jpeg" medium="image"> <media:title>Slide 1 title</media:title> <media:text>Slide 1 alt-text</media:text> <media:description>Slide 1 description</media:description> </media:content> <media:content url="https://contoso.com/image2.jpg" type="image/jpeg" medium="image"> <media:title>Slide 2 title</media:title> <media:text>Slide 2 alt-text</media:text> <media:description>Slide 2 description</media:description> </media:content></media:group
Supported Links
Video files need to be saved in an approved format, such as an MP4 file. Files are allowed if they are from your own website or hosted on a server such as AWS.
Unsupported Links
Dropbox links, YouTube links, etc., are not supported in RSS feeds. This is because the video cannot easily nor immediately pull from those links as they are ‘gated’.
For more details, refer to the Feed content specifications.