jQuery insert quicktime video player

By Sam Deering

jQuery demo + code snippet to insert a quicktime video player into your webpage dynamically. This is a raw video play with minimal controls, if you want to customise you can set the parameters in the player object quite easily. To use the code remember to change the url of the video and you’ll need a div with id=”player”. In my demo I included a screenshot of the video to use as a thumbnail but quite easily just be a hyperlink with id=”start-movie-btn”, these can be changed accordingly.


Note: You will need quicktime installed to play the movie.

The Code

//dynamically load in a movie using Quicktime player
    var JQUERY4U = {};

        play: function(movieUrl)
            //quicktime video html
            var output = '';
            output += '';
            output += '';
            output += '';
            output += '';
            output += '';

            //insert the player

        $('#start-movie-btn').live('click', function(e)
  'location of movie'); //.mov .mp4 etc

})(jQuery, window, document);

Movie source:

Free Guide:

7 Habits of Successful CTOs

"What makes a great CTO?" Engineering skills? Business savvy? An innate tendency to channel a mythical creature (ahem, unicorn)? All of the above? Discover the top traits of the most successful CTOs in this free guide.

  • phomsopheak

    why no download and also no full description

Because We Like You
Free Ebooks!

Grab SitePoint's top 10 web dev and design ebooks, completely free!

Get the latest in JavaScript, once a week, for free.