Can't make onFinished callback on Okvideo plugin to work
Hi,
Im using Okvideo plugin to show some random videos in the background of a site. My question is, with this code:
- <script>
- $(function(){
- var videos = ['url01', 'url02', 'url03'];
- var index = Math.floor(Math.random() * videos.length);
- $.okvideo(videos[index]);
- });
- </script>
How can I insert a onFinished callback to (when a video ends) switch to another random video in the array and so on?
I read the documentation on
https://github.com/okfocus/okvideo but I couldnt figure out how to insert this callback on this random video array code, the okvideo doc deals with only one video source.
Thanks!