Jump to content

HTML5 video tag problem


web_master

Recommended Posts

Hi, I got a problem.

I use the html5 and <video> tag. List 2 videos from database, and happen some interesting thing. Please look at the site, maybe well be easier to explain: http://k23tv.com/index.php?lg=sr&c=list_musorok&slider_none=true

 

The first video looks like this:

<video width="286" height="240" class="sublime" controls poster="video_musorok/1_musorok_poster.png">

<source src="video_musorok/1_musorok.mp4" type="video/mp4" codecs="avc1.42E01E, mp4a.40.2">

<source src="video_musorok/1_musorok.webm" type="video/webm" codecs="vp8, vorbis">

<source src="video_musorok/1_musorok.ogv" type="video/ogg" codecs="theora, vorbis">

</video>

 

the second:

<video width="286" height="240" class="sublime" controls poster="video_musorok/2_musorok_poster.png">

<source src="video_musorok/2_musorok.mp4" type="video/mp4" codecs="avc1.42E01E, mp4a.40.2">

<source src="video_musorok/2_musorok.webm" type="video/webm" codecs="vp8, vorbis">

<source src="video_musorok/2_musorok.ogv" type="video/ogg" codecs="theora, vorbis">

</video>

 

As You see there is a different sources, but if You play the second video, that will play first the first video, than a second... I cant find where is a problem????

 

Thanks in advanced.

Link to comment
Share on other sites

  • 1 year later...

Hiya its just a guess but you may try differentiating between the two videos using the id tag. e.g:

 

<video id="name1" width="286" height="240" class="sublime" controls poster="video_musorok/1_musorok_poster.png">

 

<video id ="name2" width="286" height="240" class="sublime" controls poster="video_musorok/1_musorok_poster.png">

 

:)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.