Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WPE 2.38] Hlsjs PlayReady 4.0 Sample App is not working in Sagemcom VA #1427

Open
elanisinthan-e-infosys opened this issue Nov 15, 2024 · 7 comments
Labels

Comments

@elanisinthan-e-infosys
Copy link

Created a Sample App for Hlsjs PlayReady 4.0. The sample app is working fine in Microsoft Edge Browser. But in Sagemcom its showing Error loading playback.
So tried whitelisting url using following steps:

  • ssh into Sagemcom and vi /etc/WPEFramework/plugins/WebKitBrowser.json
  • added "mixedcontentwhitelist":"[{"origin":"https://.", "domain":["http://"]}, {"origin":"http://.", "domain":["http://"]},{"origin":"http://.", "domain":["https://*"]}]",
  • Restarted wpeframework: systemctl restart wpeframework
  • Using thunder UI I have ran the sample app

After whitelisting also its showing Error loading playback.
Sample app:
shaka3.zip
Logs after whitelisting:
sgm_wlsa_logs.txt
Logs before whitelisting:
sgmerror_samplelog.txt
Error loading playback image:
sgm_errorloading

After whitelisting also its showing Error loading playback.

@calvaris
Copy link
Member

calvaris commented Dec 3, 2024

I am getting here a 404 for https://cdnjs.cloudflare.com/ajax/libs/shaka-player/4.3.1/shaka-player.ui.css in the inspector so I wonder if this could be related.

@calvaris
Copy link
Member

calvaris commented Dec 4, 2024

First finding, this is not going to work if you don't enable the media capabilities API. Then you need to serve this from https because WebCrypto won't work. Then there are other errors I am still investigating, just commenting now as I suspect I will have to fiddle through several things like this and I don't want to forget the ones I am bypassing step by step.

@calvaris
Copy link
Member

calvaris commented Dec 4, 2024

Ah, and the first thing I did was switching to https://cdnjs.cloudflare.com/ajax/libs/shaka-player/4.3.1/shaka-player.compiled.debug.min.js as this gives more necessary information to debug.

@calvaris
Copy link
Member

calvaris commented Dec 5, 2024

I just pushed calvaris/1427 branch. Please try it and let me know if it works.

@modeveci
Copy link

@elanisinthan-e-infosys , Could you please try the proposed changes? Thank you!

@elanisinthan-e-infosys
Copy link
Author

Tested using the proposed changes and have tried with different versions(4.3.2, 4.3.6) of shaka player.
Issue is not resolved. Its showing Error loading playback.
Sample App used:
shaka4.3.6.zip

@calvaris
Copy link
Member

I just tried and the original version and 4.3.6 and both work well with that branch. I suspect that you might be missing something in your deployment. So please, ensure the following things:

  • That you're building the proper branch calvaris/1427
  • Ensure you are deploying and accessing through https for WebCrypto to work. If you are using plain http, WebCrypto won't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants