rdkcentral / Lightning-SDK

SDK for Lightning framework
Apache License 2.0
130 stars 69 forks source link

HLS.js library integration not working on stb #261

Closed aditya-agarwal closed 3 years ago

aditya-agarwal commented 3 years ago

I am trying to play an HLS stream using the hls.js library and I am getting audio locally in the browser but its not working on the stb. Lightning-web works: https://pf-ui-lng-dev.xreapps.net/aagarw202/hls-debug/index8-lng.html simple HTML page works : https://pf-ui-lng-dev.xreapps.net/aagarw202/hls-debug/index9-hls.html but lightning-sdk does not : https://pf-ui-lng-dev.xreapps.net/aagarw202/lng-hls/index.html Also tried updating to use the <video> tag instead of audio and still no luck : https://pf-ui-lng-dev.xreapps.net/aagarw202/lng-hls-5/index.html

aditya-agarwal commented 3 years ago

the problem is in the latest version of HLS.js. Its not an issue with the lightning-sdk

This version works on stb : https://cdnjs.cloudflare.com/ajax/libs/hls.js/0.7.6/hls.min.js

But if i point to there latest version it does not work : https://cdnjs.cloudflare.com/ajax/libs/hls.js/1.0.10/hls.min.js

so when doing npm i hls.js its installing the latest version and that does not work

but installing npm i hls.js@0.7.6 works