OvenPlayer icon indicating copy to clipboard operation
OvenPlayer copied to clipboard

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

Open tanero opened this issue 3 months ago • 3 comments

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"}

tanero avatar Mar 11 '24 16:03 tanero

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.

erhanky avatar Mar 16 '24 18:03 erhanky

https://github.com/video-dev/hls.js/issues/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 ?

tanero avatar Mar 17 '24 08:03 tanero

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.

SangwonOh avatar Mar 22 '24 10:03 SangwonOh