Lens error when I publish filter related to playing video texture
hi,
Lens ID: 6a60a177-ff20-44c3-b519-9722410aed66
filter get approved sometimes and disapproved sometime not able to figure it out what is the reason behind...and the reason for rejection is "lens error check log "
Please do help to resolve this issue
Here is code snippet:am trying to play 11 video textures in an array with some videos playing after 2sec delay
// @input Asset.Texture[] texture;
for(i=0;i<script.texture.length-6;i++){
if (script.texture[i].control.getStatus() != VideoStatus.Preparing) {
if (script.texture[i].control.getStatus() == VideoStatus.Playing) {
script.texture[i].control.stop();
}
if (script.texture[i].control.getStatus() != VideoStatus.Playing) {
script.texture[i].control.play(-1);
}
}
}
var delayedEvent = script.createEvent("DelayedCallbackEvent");
delayedEvent.bind(function(eventData)
{
for(i=5;i<script.texture.length;i++){
if (script.texture[i].control.getStatus() != VideoStatus.Preparing) {
if (script.texture[i].control.getStatus() == VideoStatus.Playing) {
script.texture[i].control.stop();
}
if (script.texture[i].control.getStatus() != VideoStatus.Playing) {
script.texture[i].control.play(-1);
}
}
}
});
delayedEvent.reset(2);