VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) No compatible source was found for

created at 12-22-2021 views: 2

Error message

VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) No compatible source was found for this media.
No source compatible with this media was found.

reason

When building a dom node, the value of video src is empty.

Solution

You can give src an initial default value

Please log in to leave a comment.