forked from 0x2620/oxjs
add some docstrings
This commit is contained in:
parent
204f083e98
commit
4768dcfe8e
5 changed files with 108 additions and 1 deletions
|
|
@ -386,37 +386,58 @@ Ox.VideoEditorPlayer = function(options, self) {
|
|||
}
|
||||
}
|
||||
|
||||
/*@
|
||||
mute <f> mute
|
||||
@*/
|
||||
that.mute = function() {
|
||||
self.$video.mute();
|
||||
return that;
|
||||
};
|
||||
|
||||
/*@
|
||||
pause <f> pause
|
||||
@*/
|
||||
that.pause = function() {
|
||||
self.$video.pause();
|
||||
return that;
|
||||
};
|
||||
|
||||
/*@
|
||||
play <f> play
|
||||
@*/
|
||||
that.play = function() {
|
||||
self.$video.play();
|
||||
return that;
|
||||
};
|
||||
|
||||
/*@
|
||||
playInToOut <f> playInToOut
|
||||
@*/
|
||||
that.playInToOut = function() {
|
||||
self.$video.paused() && self.$playButton.toggleTitle();
|
||||
self.$video.playInToOut();
|
||||
return that;
|
||||
};
|
||||
|
||||
/*@
|
||||
toggleMute <f> toggleMute
|
||||
@*/
|
||||
that.toggleMute = function() {
|
||||
self.$muteButton.trigger('click');
|
||||
return that;
|
||||
}
|
||||
|
||||
/*@
|
||||
togglePlay <f> togglePlay
|
||||
@*/
|
||||
that.togglePlay = function() {
|
||||
self.$playButton.trigger('click');
|
||||
return that;
|
||||
}
|
||||
|
||||
/*@
|
||||
unmute <f> unmute
|
||||
@*/
|
||||
that.unmute = function() {
|
||||
self.$video.unmute();
|
||||
return that;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue