Html5 video sometimes can’t play the video, sometimes can load, how to monitor the video address loading failure, in the new loading time, the first post novice asked for advice!

  html5, question
< videoid = "video1" width = "100%" height = "250" autoplay = "autoplay" `please enter code`controls webkit-playsinline >
 <source src="a.php?  vid=1124" type="video/mp4"></source>

InvideoListen on elementerrorEvent, and then checkvideoelementaryreadyStateAttribute ornetworkStateProperty, called if the load fails.videoelementaryload()Method, this method is reloading. Please refer to the specific values of those two state.Here