Search code examples
jqueryvimeo

Using jquery to dynamically load Vimeo videos


I would like to create a function that would allow me to embed my Vimeo videos on my website and run it like a YouTube playlist i.e. when a video link is clicked, rather than reloading the page it only reloads the video. So for example, this being a film website, I have a trailer for the project as well as a few promo clips, I would like to be able to show all of those by simply having the user click a link which loads a new video. How would I do this?


Solution

  • this should work too.

    $('#some_video_container').html('<iframe src="http://player.vimeo.com/video/12345?
                                     title=1&amp;byline=1&amp;portrait=1" width="643"
                                     height="360" frameborder="0"></iframe>');