The connection to the video stream address reported an error, but direct access to MP4 files is fine

I don’t understand what you mean, are there any reference examples