////////////////////////////////////////////////////////////////////////////////// // jQuery TubePlayer Plugin ////////////////////////////////////////////////////////////////////////////////// Latest version: v1.0.4 (12/Nov/2011) http://www.tikku.com/jquery-youtube-tubeplayer-plugin Author: Nirvana Tikku (ntikku@gmail.com, @ntikku) Dual licensed under the MIT or GPL Version 2 licenses. ////////////////////////////////////////////////////////////////////////////////// The TubePlayer plugin simplifies the process for developers to control and work with the YouTube player. The plugin exposes methods enabling control for three cases: upon triggering events, when the players state changes are triggered and when errors are fired from the player. ////////////////////////////////////////////////////////////////////////////////// Events Subscribed: onPlay, onPause, onStop, onSeek, onMute, onUnMute onPlayerUnstarted, onPlayerEnded, onPlayerPlaying, onPlayerPaused, onPlayerBuffering, onPlayerCued, onQualityChange onErrorNotFound, onErrorNotEmbeddable, onErrorInvalidParameter ////////////////////////////////////////////////////////////////////////////////// TubePlayer Methods: jQuery("#player").tubeplayer("cue", playerId); jQuery("#player").tubeplayer("play"); jQuery("#player").tubeplayer("play", videoId); jQuery("#player").tubeplayer("play", {id: videoId, time: 0}); jQuery("#player").tubeplayer("pause"); jQuery("#player").tubeplayer("stop"); jQuery("#player").tubeplayer("seek",100); jQuery("#player").tubeplayer("mute"); jQuery("#player").tubeplayer("unmute"); jQuery("#player").tubeplayer("isMuted"); jQuery("#player").tubeplayer("volume"); jQuery("#player").tubeplayer("volume",50); jQuery("#player").tubeplayer("quality"); jQuery("#player").tubeplayer("quality", "hd720"); jQuery("#player").tubeplayer("data"); jQuery("#player").tubeplayer("videoId"); jQuery("#player").tubeplayer("size"); jQuery("#player").tubeplayer("size",{width:400,height:300}); jQuery("#player").tubeplayer("destroy"); jQuery("#player").tubeplayer("player"); ////////////////////////////////////////////////////////////////////////////////// To minify: java -jar compiler.jar --js=jQuery.tubeplayer.js > jQuery.tubeplayer.min.js //////////////////////////////////////////////////////////////////////////////////