The failure to play flv/MP4 and other video files on the website is related to the MIME type.

The failure to play flv/MP4 and other video files on the website is related to the MIME type.
When making a website, I found that video files, such as flv and MP4 formats, can be played normally locally, but they cannot be played when transferred to the development machine. The file address of the player is correct, but there is no response.
After a long period of experimentation, I found that the problem was with the IIS settings. IIS does not allow video files to be played by default. The solution is as follows:

Open the IIS Manager on the server, find the corresponding website under [Website] under the server, right-click and click Properties.
(You can also right-click [Default Website] and click Properties)
After opening the property setting window, click the HTTP Header tab and click the [MIME Type] button below it.
Create a new MIME type with the extension: .flv MIME type: flv-application/octet-stream

<<:  What is TypeScript?

>>:  Steps to create a CentOS container through Docker

Recommend

Reasons and solutions for MySQL sql_mode modification not taking effect

Table of contents Preface Scenario simulation Sum...

Introduction to the usage of common XHTML tags

There are many tags in XHTML, but only a few are ...

How to write beautiful HTML code

What Beautiful HTML Code Looks Like How to write ...

Solution to CSS anchor positioning being blocked by the top fixed navigation bar

Many websites have a navigation bar fixed at the ...

Vue implements left and right sliding effect example code

Preface The effect problems used in personal actu...

...

How to mount a disk in Linux and set it to automatically mount on boot

Knowing that everyone's time is precious, I w...

Use of Linux sed command

1. Function Introduction sed (Stream EDitor) is a...

CentOS IP connection network implementation process diagram

1. Log in to the system and enter the directory: ...

CSS3 realizes draggable Rubik's Cube 3D effect

Mainly used knowledge points: •css3 3d transforma...

HTML Basics - Simple Example of Setting Hyperlink Style

*** Example of setting the style of a hyperlink a...

Introduction to ufw firewall in Linux

Let's take a look at ufw (Uncomplicated Firew...

How to set the border of a web page table

<br />Previously, we learned how to set cell...

Analysis of the operating principle and implementation process of Docker Hub

Similar to the code hosting service provided by G...