Script error when we're streaming multiple cameras

We are getting following error :

Uncaught TypeError: Cannot read properties of null (reading 'currentTime')
at t.<anonymous> (flashphoner.js:13277:140560)
at n.emit (flashphoner.js:13272:221258)
at n.trigger (flashphoner.js:13277:115555)
at e.value (flashphoner.js:13277:119656)
 

Max

Administrator
Staff member
Good day.
Please reproduce the issue in Two Way Streaming example https://wcs:8444/client2/examples/demo/streaming/two_way_streaming/two_way_streaming.html. If this is not reproduced, please modify the example code minimally to reproduce the issue and send the code using this form.
 
We are using the same code as per the example and

When we tried more than 15+ cameras streaming on one flashphoner server we are getting the above error
 

Max

Administrator
Staff member
Hello

How exactly do you play 15 streams.
We need a code sample, screenshots, full browser console logs in text form.
5 lines of js logs are definitely not enough.
 

Max

Administrator
Staff member
Please also clarify: do you play 15 streams simyltaneously:
1. from one page in browser?
2. from one workstation (PC/Mac) in 15 tabs of one browser?
3. from 15 workstation (one strem per one PC)?
For both cases 1 and 2, seems local CPU resources are not enough to play, so local browser exceptions are expected behaviour.
 
How exactly do you play 15 streams.
We are using multiple cameras streaming as multiple instances in single Web page in one browser

from one page in browser?
Yes

from one workstation (PC/Mac) in 15 tabs of one browser?
Single tab only

from 15 workstation (one strem per one PC)
Out of 15 some are repeating cameras(one stream per one PC)

For both cases 1 and 2, seems local CPU resources are not enough to play, so local browser exceptions are expected behaviour.
Then What should be the suggested CPU config. required to stream upto 30 cameras in single browser same time

thanks
 

Max

Administrator
Staff member
Then What should be the suggested CPU config. required to stream upto 30 cameras in single browser same time
We made some tests almost an year ago. Up to 10 streams 320x240 may be played on the same page on Intel Core i5 8gen (8 HT cores) with 20 Gb RAM. But you have to play WebRTC: MSE can be played only 1 stream per session, so it is required to set up SSL certificates and open the page via HTTPS.
If you need more streams, you should perform tests on PC configurations you have.
Another option is to use stream mixer at server side. In this case, we recommend to use hardware (not virtual) server instance with 12 CPU cores (24 HT), 128 Gb RAM like we tested in this article. But client should play only one mixed stream, not 30, so there should not be a high requirements to clients workstation.
 
Top