Skip to content

[Unity WebGL] HLS video hangs on slow internet (Error: Shaka Error 1003). #45

@SwenRanj

Description

@SwenRanj

Describe the issue
HLS video hangs on Unity WebGL when users have a slow but steady internet connection. My HLS playlist consists of 1080p, 720p, 480p and 360p.
When I throttle my connection (e.g., in Chrome devtools) I see that:

  1. The video starts buffering (to be expected).
  2. In the 'Network tab' the rest of the .ts (HLS files) are loading. Weirdly enough it does download some of them double.
  3. The .ts files are loaded successfully, but if this takes 'too long' the video hangs. It doesn't continue playing like it normally does when it buffers for a few seconds.
  4. Console error log: {"severity":2,"category":1,"code":1003,"data":["{URL}", 1], "handled":false,"message":"Shaka Error 1003","stack":"Error: Shaka Error 1003\n at new _0x503e04 (https://url.com/hisplayer.js:2:69926)\n at _0x5c48d8.h (https://url.com/hisplayer.js:2:1190848)\n at _0x1b5f27 (https://url.com/hisplayer.js:2:28864)\n at _0x40006b.throw (https://url.com/hisplayer.js:2:29788)\n at _0x1e732e (https://url.com/hisplayer.js:2:30442)"}.

Your system and development environment:

To Reproduce
Steps to reproduce the issue:

  1. Play a HLS video with HISPlayer.
  2. Throttle internet connection, in Chrome you can throttle this in the devtools (Network -> change 'No Throttling' to 3G).
  3. If you throttle it down enough, so that it has to buffer for more than a few seconds you get an error and the video hangs.

Screenshots

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions