Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
mp4 files not playing in the browser after the application is hosted in iis.
MIME type is added in IIS

video tag is used.
<source type="video/mp4" codecs="avc1.42E01E, mp4a.40.2" src="../EduResource/480/01 Video Presentation/Jivram Bhatt-1_Opt.mp4" />

What I have tried:

tried adding MIME type in IIS and in webconfig
but still getting an error as internal error. Black screen is displayed
Posted
Comments
F-ES Sitecore 27-Nov-19 4:38am    
Are the files on the server or the client machine? If on the server try and provide an absolute url in the src, if on the client then this isn't going to work.
nivdeh 27-Nov-19 4:43am    
source is in the server machine only
MadMyche 27-Nov-19 6:26am    
Have you tried viewing that video directly in the browser (navigating to video's URL)?
nivdeh 30-Nov-19 2:10am    
IIS returns 404 not found for .mp4 files when I try to browse the video url ..
Error Code 0x80070002
Laxmidhar tatwa technologies 1-Dec-19 1:52am    
Look for IIS mime type settings MP4 Videos Require a MIME Type on Your Server to Play Properly
Right-click the site in IIS and select Properties.
Select the HTTP Headers Tab.
Select File Types.
Under the MIME Map section, select New Type.
Type ". mp4" as the associated extension and "video/mpeg" as the content type.
Click OK. the url for details https://articulate.com/support/article/mp4-videos-require-a-mime-type-on-your-server-to-play-properly

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900