Support multiple video "tag"
See original GitHub issueCurrently, if we create a sitemap like this :
sitemap.add({
// [ ... ]
video: [{
// [ ... ]
tag: ['one', 'two'], // assuming that multiple video tags are passed as an array
// [ ... ]
}]
});
the actual sitemap output is :
// [ ... ]
<video:tag>one,two</video:tag>
// [ ... ]
but should be this, according to Google :
// [ ... ]
<video:tag>one</video:tag>
<video:tag>two</video:tag>
// [ ... ]
Which means this code must loop through the tag and insert a new <video:tag>
for each tag.
Anyway, thanks for this lib, it has been very helpful to me 👍
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
HTML5 video how to play two videos in one video element
Why do you need it in one video tag? When can't you use 2 tags? · I want the video to be the...
Read more >The Video Embed element - HTML - MDN Web Docs - Mozilla
The HTML element embeds a media player which supports video ... all support the same video formats; you can provide multiple sources inside ......
Read more >HTML5 Video Tag Guide [2022]: Back to basics - Bitmovin
Check out our advanced HTML5-compatible video player with support for ads, DRM, multiple codecs, and smart TVs. We hope you found this guide ......
Read more >Video tag doesn't work with multiple sources - Google Groups
I tried to use HTML5 sytanx for multiple sources as desribed in http://dev.w3.org/html5/spec/video.html. <video autoplay> <source src='video1.mp4'>
Read more >How to play multiple videos one after another using HTML5 ...
Here I will explain how you can play multiple videos using HTML5 and JavaScript. Table of Contents. Play Multiple Videos using JavaScript; Step ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I opened a PR : https://github.com/ekalinin/sitemap.js/pull/172
cool, thank you a lot!