提交 47d848e9 编写于 作者: N nicolo.carpignoli

added event for video loaded

上级 7af4c281
......@@ -5909,10 +5909,17 @@ ARjs.Source.prototype.init = function(onReady, onError){
this.domElement.style.top = '0px'
this.domElement.style.left = '0px'
this.domElement.style.zIndex = '-2'
this.domElement.setAttribute('id', 'arjs-video');
return this
function onSourceReady(){
document.body.appendChild(_this.domElement);
window.addEventListener('arjs-video-loaded', function(ev) {console.log('ss',ev)})
window.dispatchEvent(new CustomEvent('arjs-video-loaded', {
detail: {
component: document.querySelector('#arjs-video'),
},
}));
_this.ready = true
因为 它太大了无法显示 source diff 。你可以改为 查看blob
......@@ -5909,10 +5909,17 @@ ARjs.Source.prototype.init = function(onReady, onError){
this.domElement.style.top = '0px'
this.domElement.style.left = '0px'
this.domElement.style.zIndex = '-2'
this.domElement.setAttribute('id', 'arjs-video');
return this
function onSourceReady(){
document.body.appendChild(_this.domElement);
window.addEventListener('arjs-video-loaded', function(ev) {console.log('ss',ev)})
window.dispatchEvent(new CustomEvent('arjs-video-loaded', {
detail: {
component: document.querySelector('#arjs-video'),
},
}));
_this.ready = true
......@@ -3175,10 +3175,17 @@ ARjs.Source.prototype.init = function(onReady, onError){
this.domElement.style.top = '0px'
this.domElement.style.left = '0px'
this.domElement.style.zIndex = '-2'
this.domElement.setAttribute('id', 'arjs-video');
return this
function onSourceReady(){
document.body.appendChild(_this.domElement);
window.addEventListener('arjs-video-loaded', function(ev) {console.log('ss',ev)})
window.dispatchEvent(new CustomEvent('arjs-video-loaded', {
detail: {
component: document.querySelector('#arjs-video'),
},
}));
_this.ready = true
......
因为 它太大了无法显示 source diff 。你可以改为 查看blob
因为 它太大了无法显示 source diff 。你可以改为 查看blob
......@@ -54407,10 +54407,17 @@ ARjs.Source.prototype.init = function(onReady, onError){
this.domElement.style.top = '0px'
this.domElement.style.left = '0px'
this.domElement.style.zIndex = '-2'
this.domElement.setAttribute('id', 'arjs-video');
return this
function onSourceReady(){
document.body.appendChild(_this.domElement);
window.addEventListener('arjs-video-loaded', function(ev) {console.log('ss',ev)})
window.dispatchEvent(new CustomEvent('arjs-video-loaded', {
detail: {
component: document.querySelector('#arjs-video'),
},
}));
_this.ready = true
因为 它太大了无法显示 source diff 。你可以改为 查看blob
......@@ -73,10 +73,16 @@ ARjs.Source.prototype.init = function(onReady, onError){
this.domElement.style.top = '0px'
this.domElement.style.left = '0px'
this.domElement.style.zIndex = '-2'
this.domElement.setAttribute('id', 'arjs-video');
return this
function onSourceReady(){
document.body.appendChild(_this.domElement);
window.dispatchEvent(new CustomEvent('arjs-video-loaded', {
detail: {
component: document.querySelector('#arjs-video'),
},
}));
_this.ready = true
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册