When videojs plays rtmp video stream, an error occurs: VIDEOJS: ERROR: (CODE:0 MEDIA_ERR_CUSTOM)

problem description

previously, in the react framework, videojs was used to play rtmp video streams normally.
is suddenly unable to play today, and the console throws the error VIDEOJS: ERROR: (CODE:0 MEDIA_ERR_CUSTOM) MediaError {code: 0, message: ""}.
what causes the MEDIA_ERR_CUSTOM error and how to fix it? Thank you!

the environmental background of the problems and what methods you have tried

there is no problem with the playback source. The VLC player can play normally.

src: "rtmp://192.168.135.217:10064/live/res=37.10000000001311000004.IV.0.0"
type: "rtmp/flv"

related codes

/ / Please paste the code text below (do not replace the code with pictures)

       <video
          id="my-video"
          ref={this.video}
          width="800px"
          height="500px"
        >
          <track kind="captions" />
          <source src={url} type={type} />
        </video>

what result do you expect? What is the error message actually seen

expected result: videojs can play rtmp video stream normally
actual error message: VIDEOJS: ERROR: (CODE:0 MEDIA_ERR_CUSTOM) MediaError {code: 0, message: ""}

breakpoint debugging

Jun.13,2022
Menu