shaka-player: webOS 4032 error in compiled version but not debug version

Have you read the FAQ and checked for duplicate open issues? Yes

What version of Shaka Player are you using?

4.8.x

Can you reproduce the issue with our latest release version? Yes

Can you reproduce the issue with the latest code from main? Yes

Are you using the demo app or your own custom app? Both

If custom app, can you reproduce the issue using our demo app? Yes

What browser and OS are you using? LG webOS

For embedded devices (smart TVs, etc.), what model and firmware version are you using? webOS3-2024

What are the manifest and license server URIs? webOS is returning 4032 for manifest media types HLS: https://demo.unified-streaming.com/k8s/features/stable/usp-s3-storage/tears-of-steel/tears-of-steel.ism/.m3u8 MPD: https://storage.googleapis.com/shaka-demo-assets/angel-one/dash.mpd

What configuration are you using? What is the output of player.getConfiguration()? Default

What did you do? Attempted to playback DASH and HLS manifest

What did you expect to happen? Playback to occur

What actually happened? Playback results in startup error with code 4032. When switching to debug player shaka-player.compiled.debug.js Playback is fine and error is not reported.

Playback for any stream type is failing for all webOS devices using the compiled version of Shaka Player 4.8 + When attempting to debug the issue with the debug version the error is no longer there and playback is as expected.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 22 (9 by maintainers)

Commits related to this issue

Most upvoted comments

We have the same issue: 4032 with compiled version on webOS, but ok on Tizen and with debug version on webOS.

I can’t say anything about the Hisense case, because I can’t test it right now and I don’t have access to its documentation, but I think it’s the same case with WebOS. This is normally due (at least in Europe), because even if the TV is 720, the broadcast broadcasts can be at 1080 and have to support them.

Sorry, I don’t think it’s correct in the case of WebOS, looking at the specifications all versions since WebOS 3.0 support a minimum of 1080p: https://webostv.developer.lge.com/develop/specifications/video-audio-30

Once the PR is merged it, I’ll release 4.8.3 asap.

Ah, I see. JSON.parse returns the correct thing in every mode, but the compiler sees the type as something it can minify. So the compiled version would be something like:

const a = JSON.parse(window.PalmSystem.deviceInfo);
const b = a.b;
const c = a.c;

The solution is to move the parsed type to the externs or to use ['screenWidth'] to access instead of .screenWidth.