How to run wmv in <video> (Google Chrome) tag?

Asked

Viewed 86 times

-2

I am unable to run . wmv, . mpg for example, in Chrome via tag .

The code is more or less this,

<video id="video1" class="videos">
    <source src="temp/meuVideo.wmv" type="video/wmv" />
</video>

As image below, the video does not load in this format.

inserir a descrição da imagem aqui

Can anyone tell me if there’s any way to get them to turn?

1 answer

1


WMV is not natively supported by Chrome or Firefox

There is no way to make it work without each user installing on their own computer "additional" to be able to run the video, which is totally unfeasible.

I recommend converting video to wmv to open formats such as WebM and how fallback for older browsers and Safari browser create an MP4 (MPEG-4/H.264, not an open format).

Formats supported by Firefox:

How to detect support with Javascript:

To convert can use https://ffmpeg.org/

Browser other questions tagged

You are not signed in. Login or sign up in order to post.