videoElementCreated

Hi!
I’m using vue.js (vue/cli 4.4.4)
openVidu version (2.14.0)

sometimes this part of code never run:

publisher.on(‘videoElementCreated’, (event) => { …}

so video doesn’t publish and participant only subscribe.for example when A and B are in conference,A doesn’t publish video but B does.so A and B have only B in conference.

but most of the times it works properly and A and B both are in conference.

when i inspect in chrome,<div id=“video-container” has style when everything works fine but when publisher.on(‘videoElementCreated’, (event) => { …} doesn’t fire,<div id=“video-container” has no style.

Sounds like a typical concurrency problem, but we have never seen something like it. I wouldn’t know how to reproduce the issue, so I’m afraid with this little information I cannot help you. I’m not sure if this might be a problem with openvidu-browser library itself, your applciation’s code or even Vue’s particular behavior.

Can you post here a consistent way of replicating the problem?

Thanks for reply

I didn’t find the issue.

Is there any way to check if publishers have video or not?

I want to unsubscribe the user who has not video.

@pabloFuente
do you have any recommendations?

https://docs.openvidu.io/en/2.15.0/api/openvidu-browser/classes/stream.html#hasvideo