Playing videos
So far, we've covered a great deal of theory around using jQuery UI's Tooltip; in this example and the next, we will take a look at some practical uses of tooltips that you can use as a starting point for your own projects. Before continuing, make sure you have a copy of the code download available, as we will be using files from it for this exercise.
One possible use for tooltips is to mimic the like or dislike buttons you might find on social media sites, such as YouTube, where you can register your preference for videos you have enjoyed watching. Let's take a look at how you could replicate the functionality, in your own projects, but using tooltips and a number of other jQuery UI widgets that we've covered so far in this book.
Note
This demonstration uses a video from the open source project The Big Buck Bunny, created by the Blender Foundation, and available from http://www.bigbuckbunny.org.
From the code download, extract a copy of tooltipVideo.js
; this will provide the...