forked from 0x2620/oxjs
cleanup VideoElement
This commit is contained in:
parent
b487da90a1
commit
03cbb92654
2 changed files with 7 additions and 16 deletions
|
|
@ -49,7 +49,6 @@ Ox.VideoPlayer <f> Generic Video Player
|
|||
position <n|0> Initial position (sec)
|
||||
poster <s|''> Poster URL
|
||||
posterFrame <n|-1> Position of poster frame (sec)
|
||||
preload <s|'auto'> 'auto', 'metadata' or 'none'
|
||||
out <n> Out point (sec)
|
||||
resolution <n|0> resolution
|
||||
rewind <b|false> If true, video will rewind when ended
|
||||
|
|
@ -146,7 +145,6 @@ Ox.VideoPlayer = function(options, self) {
|
|||
position: 0,
|
||||
poster: '',
|
||||
posterFrame: -1,
|
||||
preload: 'auto',
|
||||
out: 0,
|
||||
resolution: 0,
|
||||
rewind: false,
|
||||
|
|
@ -416,18 +414,9 @@ Ox.VideoPlayer = function(options, self) {
|
|||
dragend: dragend
|
||||
});
|
||||
|
||||
self.$video = Ox.VideoElement(
|
||||
// autoplay seems to always play from the beginning,
|
||||
// and poster doesn't seem to work at all
|
||||
Ox.extend({
|
||||
preload: self.options.preload,
|
||||
items: self.video,
|
||||
}, !self.options.paused && !self.options.playInToOut ? {
|
||||
/*autoplay: 'autoplay'*/
|
||||
} : {}/*, self.options.poster ? {
|
||||
poster: self.options.poster
|
||||
} : {}*/)
|
||||
)
|
||||
self.$video = Ox.VideoElement({
|
||||
items: self.video
|
||||
})
|
||||
.bindEvent(Ox.extend({
|
||||
durationchange: durationchange,
|
||||
ended: ended,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue