131 / h264-live-player

A live h264 player for the browser (ideal for raspberrypi / raspicam )
MIT License
1.08k stars 251 forks source link

How to use live player as worker #61

Closed Esser50K closed 6 years ago

Esser50K commented 6 years ago

This is more of a question as I saw in the code that the brodway code was included in the file so it could be used as a worker.

How exactly can that be done?

The way I understood it was that if I want to display more than one canvas I could use multiple workers, right?

131 commented 6 years ago

I've never used web workers at this time, i'm not sure i'll have good advices here. Have a great day

Esser50K commented 6 years ago

Humm the reason I asked was that this code runs pretty well for a single stream per page. Multiple streams on same page run with much worse performance but two streams on seperate pages run smoothly.

So basically I think I need more workers on the same page.