forked from 0x2620/oxjs
add 'DRM'
This commit is contained in:
parent
087305a650
commit
1954a7a799
5 changed files with 123 additions and 14 deletions
|
|
@ -18,7 +18,8 @@ Ox.VideoElement = function(options, self) {
|
|||
preload: 'none',
|
||||
src: []
|
||||
})
|
||||
.options(options || {});
|
||||
.options(options || {})
|
||||
.css({width: '100%', height: '100%'});
|
||||
|
||||
Ox.print('VIDEO ELEMENT OPTIONS', self.options)
|
||||
|
||||
|
|
@ -190,6 +191,13 @@ Ox.VideoElement = function(options, self) {
|
|||
item.videos = item.$videos.map(function($video) {
|
||||
return $video[0];
|
||||
});
|
||||
self.$brightness = $('<div>').css({
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
background: 'rgb(0, 0, 0)',
|
||||
opacity: 0
|
||||
})
|
||||
.appendTo(that.$element);
|
||||
return item;
|
||||
}
|
||||
|
||||
|
|
@ -284,6 +292,20 @@ Ox.VideoElement = function(options, self) {
|
|||
return that;
|
||||
};
|
||||
|
||||
/*@
|
||||
brightness <f> get/set brightness
|
||||
@*/
|
||||
that.brightness = function() {
|
||||
var ret;
|
||||
if (arguments.length == 0) {
|
||||
ret = 1 - parseFloat(self.$brightness.css('opacity'));
|
||||
} else {
|
||||
self.$brightness.css({opacity: 1 - arguments[0]});
|
||||
ret = that;
|
||||
}
|
||||
return ret;
|
||||
};
|
||||
|
||||
/*@
|
||||
buffered <f> buffered
|
||||
@*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue