question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support multiple video "tag"

See original GitHub issue

Currently, 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:closed
  • Created 6 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
vtenqcommented, May 7, 2019

cool, thank you a lot!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found