Fixed whip test that is broken because of library change.#569
Fixed whip test that is broken because of library change.#569
Conversation
|
Hi @master312 I prefer to resolve this issue by writing less code and less maintenance as in the following PR Thank you for your proactive approach FYI |
|
Hi @mekya I 100% agree with “less is better” philosophy, but I’ve got a couple of concerns about pulling libraries from external services in an enterprise project. First thing I tried was exactly what you did. I just added Second thing is security. Pulling from external sources leaves us wide open to supply chain attacks. We’ve already seen several large-scale NPM attacks this year alone, and I don’t have much confidence in relying on a small third-party service for this. Here’s the most recent one. If this were a bleeding-edge library that needs constant updates, we would have no choice, but since it’s just WHIP negotiation code that hardly changes, I don’t see the upside. Also, by hitting esm.sh directly, we’re leaving fingerprints of our test server activity all over their logs, which isn’t great either. If ems.sh gets compromised, it might lead to a lot more headic then just copying library to project it self. That’s why I still lean towards keeping the library in the repo. We could just copy entire '@eyevinn/whip-web-client' library into 'js/external', instead of using the hacky one i added. Cheers :) |
|
Hi @master312 Thank you for your explanation We may discuss further in a meeting about your concerns and their impact onto us with @burak-58. Thank you dear friend 👏 I fully appreciate the way you work 👏 Cheers |
This fixes WHIP test (whip.html).
Submitted under 'drm-cluster-play' branch name in order to make CI pass for task ant-media/Ant-Media-Server#7439, but this fix is not directly related to DRM issue, it's a general fix.
Test page previously imported externally hosted NodeJS library which has changed. I was not able to find working version hosted on public CDS, so i added "/webapp/js/SimpleWhipClient.js" file to replace its functionality.