forked from nirvanatikku/jQuery-TubePlayer-Plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
72 lines (56 loc) · 2.43 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
//////////////////////////////////////////////////////////////////////////////////
// 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
//////////////////////////////////////////////////////////////////////////////////