Click here to Skip to main content
15,891,633 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I have a problem while playing video on IIS. If I am running my application from visual studio it works perfectly alright while I play video on localhost but as soon as I deploy it only my player.aspx gets launched but it doesnt play my video.
This is my code
HTML
$("#someVideo").append('<source src="<%=ResolveUrl("~/Uploads/Videos/' + urlParams['practice'] + '/' + filename[0] + '.mp4") %>" type="video/mp4">');


I have checked path using firebug it gives me right path but it doesn't play video at all. Please help me with that. I tried in google chrome as well but it doesnt work at all.
Posted
Updated 10-Sep-12 0:50am
v4
Comments
sjelen 10-Sep-12 6:55am    
Firebug should also give you status code for that request, what is it?
If it's 404 double check your paths and files on IIS deployed application.
Also check if ".mp4" extension is registered in IIS with StaticFileHandler.

1 solution

Hi,

Have you check that MIME type added in the IIS where you host the application?

http:
//www.hosting.com/support/dedicated/IIS/newmime/
[^]

http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/cd72c0dc-c5b8-42e4-96c2-b3c656f99ead.mspx?mfr=true[^]

See the above link how to add MIME Type.

Thanks,
Viprat
 
Share this answer
 
Comments
abhijit80 10-Sep-12 10:19am    
Hello Viprat,
Though I had found exact solution before your post I really appreciate your solution. It was perfect hit for my question.
abhijit80 10-Sep-12 10:21am    
Video works perfectly fine now but when I try to access it on iphone It doesnt work. Do you have any idea about it?
VIPR@T 11-Sep-12 0:24am    
Sorry i have no idea about Iphone..
abhijit80 11-Sep-12 3:17am    
Alright..anyways thank you for your help. very much appreciated..:-)

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