Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Schema Markup Incuded in video


Hi Guys,

I have 2 videos that play on this page http://www.bagpipe-tutorials.com/monymusk.html

I added some schema markup to the video and audio and only one video presents on the browser. Please see this page URL: http://www.bagpipe-tutorials.com/test.html

The script below shows the markup I used. Can anyone advise me on how to get both videos presenting.

<div id="myElement" itemprop="video" itemscope itemtype="http://schema.org/VideoObject">
<span itemprop="name">Monymusk</span>
<span itemprop="description">Pipe Major Bill Robertson's lesson for the strathspey Monymusk</span>
<!-- JW Player ver. 6.12 -->
<script type="text/javascript">
jwplayer("myElement").setup({
file: "http://www.bdot-inc.com/video-files/Monymusk.mp4",
image: "http://www.bagpipe-tutorials.com/images/monymusk.jpg",
skin: "bekle",
title: "Monymusk",
width: "100%",
aspectratio: "16:9",
});
</script>
</div>

<div class="clear10"></div>

<div id="myElement2" itemprop="video" itemscope itemtype="http://schema.org/VideoObject">
<span itemprop="name">Thick Lies the Mist on Yonder Hill</span>
<span itemprop="description">Pipe Major Bill Robertson's lesson for the strathspey Thick Lies the Mist on Yonder Hill</span>
<!-- JW Player ver. 6.12 -->
<script type="text/javascript">
jwplayer("myElement").setup({
file: "http://www.bdot-inc.com/video-files/thick-lies-the-mist.mp4",
image: "http://www.bagpipe-tutorials.com/images/thick-lies-the-mist.jpg",
skin: "bekle",
title: "Thick Lies the Mist on Yonder Hill",
width: "100%",
aspectratio: "16:9",
});
</script>
</div>

3 Community Answers

jherrieven

User  
0 rated :

Both setups are targeting "myElement".

Change the second one to:

jwplayer("myElement2").setup({...})

I'd also move the JW Setup javascript to outside the DIV which is being replaced, so:

<div id="myElement">

</div>
<script>jwplayer("myElement").setup({...})</script>

rather than:

<div id="myElement">
<script>jwplayer("myElement").setup({...})</script>
</div>

James Herrieven

greg.barnes

User  
0 rated :

Thanks James, I should have seen that.

Cooper Reid

JW Player Support Agent  
0 rated :

Well done, James!

This question has received the maximum number of answers.