Open hennysmafter opened 8 years ago
Anyone???
Hmmm... could you possibly post your html markup? I've got a hunch that there is something mixed-up with you use of #lsss-video and .lsss-video... I need this functionality too, and have the time to dig a bit :-)
As I read your code you add #lsss-video to multiple elements (if you have more than one video element that is...) - It's not allowed to have multiple elements with the same ID...
Has anyone achieved playing HTML5 video in cycle2? I've found that the audio plays and not the video on most browsers.
I got video to play by putting it in a div
<div><video width="700" height="550" controls><source src="../Assets/xxxxxx.mp4" type="video/mp4"></video></div>
But it doesn't pause when you advance beyond. Hennysmafter, I'm about to try your code, but if anybody has this working perfectly, I'd love to hear about it
Thanks! J
@jhadley Thanks for the reply. Could you try and repost the code? The link provided doesn't lead anywhere. I'm really interested to learn how to get HTML5 video working with cycle2.
@hennysmafter I couldn't get your code to work as is... But then again I'm not a coder! If you have a version that works for any site, not just that existing application, I'd be really interested in seeing it
Thanks to you and to @malsup!
Dear Malsup and other users,
First of all @malsup thank you very much for all the hours you have put into Cycle & Cycle2. I am really happy with the result.
Currently I try to make it work with HTML 5 video and started writing my own plugin for this. Below you can find the code: (I am trying this in an existing application therefore the classes and id's called
lsss-video
in the final plugin version this is going to be changed to work with all cycle-slideshows)What is working:
First slide video autoplay, if video is finished it automatically goes to next slide. If that next slide is a video it autoplays that one. If you switch between slides then the previous video slide is paused and the new slide is played. Timeout is disabled on video slides so the entire video gets played
What is not working: Play/Pauze video element when clicking on the
.cycle-slideshow
. This is partially working! What happens is that p/p works perfect the first time you see a slide but the 2nd time you see that slide it ain't working. The 3rd time it does. The 4th time it does not.So on ODD it works and on EVEN it does not!