jaruba / wcjs-player

Node Player made for WebChimera.js (libVLC wrapper)
http://webchimera.org/
GNU Lesser General Public License v2.1
178 stars 46 forks source link

Setting poster of video #57

Open Calderis opened 8 years ago

Calderis commented 8 years ago

Hi, I would like to know if you plan to add a feature to your player such as adding a poster once we init player ?

Have a nice day

jaruba commented 8 years ago

That sounds hackable even without it being part of the player, just inject a <div> inside .wcjs-player, make it 100% width + height, change the image on every mediaChanged event, show it when the player is in the opening and first buffering states and hide it on the first playing state.

- by first, i mean first after mediaChanged

(pretty much exactly how I would do it in the player too, just that it wouldn't need any injection)

Calderis commented 8 years ago

Ok, I'll try and get back with a response.

Thank you !

jaruba commented 8 years ago

any luck?

Calderis commented 8 years ago

I'm very sorry :( , I did not have the time to try it yet. But i'll come back with a conclusion soon enough !