AirenSoft / OvenPlayer

OvenPlayer is JavaScript-based LLHLS and WebRTC Player for OvenMediaEngine.
https://OvenMediaEngine.com/ovenplayer
MIT License
498 stars 124 forks source link

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

Open tanero opened 3 months ago

tanero commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

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 ?

SangwonOh commented 3 months ago

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.