mirror of
https://github.com/videojs/video.js.git
synced 2025-02-08 12:05:47 +02:00
313 Save all video tag attributes while moving media element in DOM
This commit is contained in:
parent
a84d1f85b8
commit
ecb7fb6b3e
@ -65,14 +65,13 @@ vjs.Html5.prototype.createEl = function(){
|
||||
// If the original tag is still there, remove it.
|
||||
if (el) {
|
||||
player.el().removeChild(el);
|
||||
el = el.cloneNode(false);
|
||||
} else {
|
||||
el = _V_.createElement('video', {
|
||||
id:player.id() + '_html5_api',
|
||||
className:'vjs-tech'
|
||||
});
|
||||
}
|
||||
|
||||
newEl = vjs.createElement('video', {
|
||||
id: el.id || player.id() + '_html5_api',
|
||||
className: el.className || 'vjs-tech'
|
||||
});
|
||||
|
||||
el = newEl;
|
||||
vjs.insertFirst(el, player.el());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user