This is a basic implementation of the igVideoPlayer widget in JavaScript.