Web SDK : why video not stable while playing multiple video sessions in a single web page?

Derrick Tew

New Member
Greeting Flashphoner Support,

Hope you are well

I am trying to implement multiple video session in a single web page using flashphoner js for wsplayer & MSE, but it seem like intermittently the newest created video session will cause the previous video sessions hang there with last video image. it happen mostly on wsplayer compare to MSE.

But it works well with just one single session in a web page

Please advise!

Thanks

Regards
Derrick
 

Max

Administrator
Staff member
Hello.
We reproduced the problem, internal case WCS-1487. We will let you know when we fix it.
 

Max

Administrator
Staff member
Sorry, this is a restriction. You cannot use WSPlayer and MSE if you create more then one video session on single page.
So, you should use WebRTC for multiple video sessions, or you can try place each player to its own iframe. Note, that JavaScript perfomance may be not enough for two WSPlayers.
 

Derrick Tew

New Member
Hello. Thanks for the fast respond.
is flashphoner-js running on web workers?
will web workers improve performance for multiple sessions?
 

Max

Administrator
Staff member
You can also use mixer to play multiple streams in one. In this case, the channel from server to viewers will be less loaded, but server CPU load will be higher.
 

Max

Administrator
Staff member
is flashphoner-js running on web workers?
No, flashphoner API is not running on web workers.
However WSPlayer and MSE use web workers for performance of stream depacketization and rendering.
will web workers improve performance for multiple sessions?
Multiple sessions are not currently supported by design for WSPlayer and MSE.
So workers won't help to get this working.
WebRTC media provider works on multiple video elements.
Therefore for now we offer following options:
1. WebRTC
2. Mixer - several streams can be mixed on server-side and played as MSE or WSPlayer single stream
3. iframe - not tested but it may work
 
Top