No video with supported format and MIME type found

后端 未结 2 1307
青春惊慌失措
青春惊慌失措 2020-12-16 04:03

I have the next code in my index for a video:

相关标签:
2条回答
  • 2020-12-16 04:31

    Are the paths valid?

    • https://root/folder/video/v1.ogv
    • https://root/folder/video/v1.webm

    Firefox doesn't support .mp4 files which explains the Specified "type" attribute of "video/mp4" is not supported. error.

    If you are using Apache, you can force it to use the correct MIME type. Add the following to your .htaccess file.

    # MIME types for Video
    AddType video/mp4 mp4 m4v f4v f4p
    AddType video/ogg ogv
    AddType video/webm webm
    AddType video/x-flv flv
    
    0 讨论(0)
  • 2020-12-16 04:35

    @Gonzalo- As @Daniel has pointed out in his answer - make sure that /video folder in source tag is accessible. For example - you are accessing your page at

    https://abcdomain/approot/somepage

    and assuming that you have this video folder inside approot, then you need to modify the source tag and it would be something like -

    <source src="/approot/video/v1.ogv" type="video/ogg">

    Hope, this helps.

    0 讨论(0)
提交回复
热议问题