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

Some of the media could not be downloaded due to a network error #415

Open
tanero opened this issue Mar 11, 2024 · 3 comments
Open

Some of the media could not be downloaded due to a network error #415

tanero opened this issue Mar 11, 2024 · 3 comments

Comments

@tanero
Copy link

tanero commented Mar 11, 2024

I have been using the player for about 6 months without any problem, but in the last week we started to receive the below error message at different times. Video url format HLS multibitrate and server network is stable. What could be the reason ?

{"code":302,"message":"Some of the media could not be downloaded due to a network error.","reason":"Error occurred when downloading.","error":"internalException"}

@erhanky
Copy link

erhanky commented Mar 16, 2024

I have same problem,

The player stops and gets an error;
Firstly;
{"code":302,"message":"Some of the media could not be downloaded due to a network error.","reason":"Error occurred when downloading.","error":"bufferStalledError"}

Secondly;
{"code":302,"message":"Some of the media could not be downloaded due to a network error.","reason":"Error occurred when downloading.","error":"internalException"}

Please help me for this issues.

@tanero
Copy link
Author

tanero commented Mar 17, 2024

video-dev/hls.js#5904

I saw a message like the one in the link above, it mentions the hls.js error detail. However, when I examine the ovenplayer codes, I see that the error return message details are missing in the provider section.

https://github.com/AirenSoft/OvenPlayer/blob/master/src/js/api/provider/html5/providers/Hls.js

hls.js Error Example :

{
  "type": "mediaError",
  "details": "bufferStalledError",
  "error":
    {
      "message": "Playhead still not moving while enough data buffered @37.961094 after 3 nudges",
      stack:"Error: Playhead still not moving while enough data buffered @37.961094 after 3 nudges ....",
    },
  "fatal": true
}

OvenPlayer Error Example:

{
   "code":302,
   "message":"Some of the media could not be downloaded due to a network error.",
   "reason":"Error occurred when downloading.",
   "error":"bufferStalledError"
}

That's why I can't see the actual detailed error coming to the player.

How can I see the error details ?

@SangwonOh
Copy link
Member

In version v0.10.35, all errors in hls.js were added as follows.

{
    "code": 302,
    "message": "Some of the media could not be downloaded due to a network error.",
    "reason": "Error occurred when downloading.",
    "error": {
        "type": "networkError",
        "details": "manifestLoadError",
        "fatal": true,
        "url": "https://clips.vorwaerts-gmbh.de/big_buck_bunny.m3u8",
        "error": {},
        "networkDetails": {},
        "response": {
            "url": "https://clips.vorwaerts-gmbh.de/big_buck_bunny.m3u8",
            "code": 0,
            "text": ""
        }
        // and more
    }
}

Is the problem of your stream suddenly not playing being caused by the latest update to hls.js?
Let’s look at all the added hls.js errors and figure out the cause.

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

No branches or pull requests

3 participants