I got this following error while playing a video file (.m3u8 format ) in asp.net mvc application.
SOLUTION:
1.Open the web.config file in the ASP.NET MVC application.
2.Add the following configuration inside the <system.webServer> element:
MIME Type is used for HTTP Live Streaming HLS playlist file which is used for streaming video content.By adding the configuration in web.config file for .m3u8 extenstion which will identify the HLS
playlist file and handle it appropriately.
Web.config:
<system.webServer> <staticContent> <mimeMap fileExtension=".m3u8" mimeType="application/x-mpegURL"/> </staticContent> </system.webServer>
VIDEO GUIDE:
Post your comments / questions
Recent Article
- How to get domain name information from a Domain using Python
- ModulenotFoundError: no module named 'debug_toolbar' -SOLUTION
- How to create superuser in django project hosted in cPanel without terminal
- CSS & images not loading in django admin | cpanel without terminal
- Could not build wheels for mysqlclient, which is required to install pyproject.toml-based projects
- How to sell domain name on Godaddy (2023)
- TemplateSyntaxError at / Could not parse the remainder: ' + 1' from 'forloop.counter0 + 1'
- urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.0
Related Article