blackboard / lambda-selenium

Use Selenium Webdriver and Chrome inside AWS Lambda
MIT License
229 stars 52 forks source link

Live Video / Upgrade Chrome #47

Open CarlosUvaSilva opened 5 years ago

CarlosUvaSilva commented 5 years ago

Hello

I'm trying to use Selenium+Lambda to screenshot live videos (i.e youtube "live" channels). I can screenshot normal videos just fine but Live doesn't work on any platform I tried youtube, twitch etc.

Is this even possible? if so can someone help me make it work

I would also like to upgrade chrome to v68 but can't setup the binary linked by @wesmcouch or @tsu-denim in https://github.com/blackboard/lambda-selenium/issues/44

Thanks

tsu-denim commented 5 years ago

Glad you are up and running! Regarding the ‘live’ video streams there is a good chance they need flash, twitch used to at one point, not sure if we put flash in there, so test that somewhere. AWS does not let lambda containers to listen on any ports, but allows all outbound traffic except smtp port. A lot of real streaming relies on rtp, which is not part of http traffic, that could very well be blocked by amazon.

To test the blocked traffic theory, try doing the live streams using a selenium docker image with full chromium and xvfb.

Lame that they aren’t doing this over webrtc, it wouldn’t have that problem.

Also could be an issue with the chrome flags we set.

Hope that helps!

On Fri, Feb 15, 2019 at 6:07 AM CarlosUvaSilva notifications@github.com wrote:

Hello

I'm trying to use Selenium+Lambda to screenshot live videos (i.e youtube "live" channels). I can screenshot normal videos just fine but Live doesn't work on any platform I tried youtube, twitch etc.

Is this even possible? if so can someone help me make it work

I would also like to upgrade chrome to v68 but can't setup the binary linked by @wesmcouch https://github.com/wesmcouch or @tsu-denim https://github.com/tsu-denim in #44 https://github.com/blackboard/lambda-selenium/issues/44

Thanks

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/blackboard/lambda-selenium/issues/47, or mute the thread https://github.com/notifications/unsubscribe-auth/AYLSCqYgHORpH0hfGxNO3CTATwJSv9KXks5vNpT0gaJpZM4a9b1P .

CarlosUvaSilva commented 5 years ago

Hello @tsu-denim

I can do it just fine if I use a normal selenium image so I think it must be something being blocked no? Do you think there's anyway to bypass this?

thanks