I'm using Orchard 1.7.2. I created widget with MediaPickerField for video file. On the front-end i trying to get this video by url (../Media/Default/Video/video.mp4) and play it using html5 video player. But i get 404 error when trying to load it. I tried fix it like here but after that i get 500 error. I got this errors only on video files and only on server. On local machine everything working fine.
Well, i fix it by adding MIME Type on IIS. There were no mime type for mp4. So i added .mp4 extension and video\mp4 mime type.
Related
Working in IIS7.0(7.5.7600.16385) on Windows Server 2008 R2
Trying to get a video of the type .MP4 to play on a webpage.
IF the URL is specified using the actual server path, the video will play:
\\myproductionserver\wwwroot\Video\Activevideos\videotestpage.html
This is true for our production and development servers.
However if i use the actual URL:
http://example.com/Video/ActiveVideos/videotestpage.html
...it will not play
Per various information sources, I have added .MP4 as video/mp4 to my IIS MIME Types (via GUI).
Nothing works.
Thoughts on getting this to work?
==================
UPDATE:
I went to HTML5TEST.com and it says under the video section that MPEG 4 is not supported. following some suggestions from this post for IE 9 HTML5 - mp4 video does not play in IE9
I replaced my video tag with the one that shows "Your browser does not support the video tag."
When I ran my page, Your browser does not support the video tag. came up.
So...what is that telling me? Especially since if I execute the url using the actual server paths, it works?
Got it to work by putting the following in the page:
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" /
You can add this code in the webconfig:
<remove fileExtension=".mp4v" />
<mimeMap fileExtension=".mp4v" mimeType="video/mp4v" />
After restart App pool and open you website or web app
I'm using IIS to serve mp4 videos. I get a 404 on mac/safari. It works in chrome and firefox on the same macs. The MIME is video/mp4 .
I've ran tests locally to rule out the video encoding, and the videojs. I've taken the request path directly as well, skipping the html and js, with the same results. Safari will not load the direct url to the video either.
I'm not sure where to look next?
It turns out Safari does range requests for media. IIS itself can handle this, but we are using mvc routing - and we didn't provide any handling for this. The solution is to build an action result that handles range request. We're pulling a solution based on this article
I'm on a Hostgator server, trying to display a svg image, but the image doesn't display, I only get a 'broken image' icon.
When I'm accessing the svg-file directly, it shows a 403 - forbidden error.
Does this only occur on Hostgator servers? I didn't have have a any problems displaying it on my local machine, before upload.
I have searched Google and Stack Overflow, but had no luck in finding a fix for this.
Make sure that the file permission is correct and their aren't any firewall role that blocks the SVG files.
you can try another svg file.
also you can try to upload a test file with SVG extension to see that is the problem.
I made a Website using Web Matrix.
I added that site to IIS web server under websites in Windows 8.
I added MIME Type for .cshtml file as text/html in IIS web server?
Razor code is not getting executed and getting rendered as plain text in browser.
Am I getting error because of wrong MIME type ?
How should I resolve this ?
Yes, that's exactly why it's not showing correctly. The MIME type shouldn't be added, that comes directly from the Handler Mappings section, so just delete the MIME type you added and it should work fine.
I have soundmanager2 as player for mp3 sounds.
When I loading .swf file from same server as webapp its playing mp3 files normally
When I load .swf file from another server its not okay
The only change i added is:
soundManager.setup({
url: 'http://s3.amazonaws.com/mybucket/swf/'
})
In firebug>Net bookmark i can see that swf loaded but no mp3 load (when i click play in site)
I added crossdomain.xml but this not helped.
Worked according to this sample: http://www.schillmania.com/projects/soundmanager2/doc/getstarted/
Assume my webapp running locally at: http://local.dev
and swf served in another localapp running under http://local.media
so when i do:
url: 'http://local.media/swf/'
from local.dev app, its not loading nor playing.
Even for amazon it has to have crossdomain.xml :-\ even if i managed ACL well