I have Parallels Plesk Panel 11.0.9 for Microsoft Windows host. I tried to play some short video using several solution including: camtasia, videojs and google youplay. but all of them can't play back my video on host; I mean it's play and show on local and everythings is ok on local.
I using asp.net 4.5 on local and asp.net 4.0 on remote host.
I downloaded test video on videojs and upload it to my host, but I confuse that there is nothing play from only my windows host. Are there any tip for playback video from windows host?
Depending on the video type, control panel should have proper MIME type added.
Log into your Control Panel.
Under the Domains tab, click on your domain name.
Navigate on Websites & Domains tab.
Click on Show Advanced Operations.
Click on the Virtual Directories icon.
Navigate on Mime Types tab.
Click the Add Mime Type icon.
Enter the file extension and Content.
example:
Extension: .m4v
Content: video/mp4
Click OK.
Thanks to Mitesh Gangaramanifor answering but there is no content as video/mp4 so I had to deeper search and find an guaranteed solution for this problem.
Just go to web.config and add these tags between <configuration></configuration> tag:
<system.webServer>
<staticContent>
<mimeMap fileExtension=".mp4" mimeType="video/mp4"></mimeMap>
<mimeMap fileExtension=".m4v" mimeType="video/m4v"></mimeMap>
</staticContent>
</system.webServer>
Then save and upload it to your httpdocs. I hope I could help who people had this problem.
Related
I have my resume linked in my home page.
But I found when I host the pdf file on two different storage server, the default behavior when click on the link differs: one directly download the pdf file bug the other preview in a new tab.
the two links are as below:
http://data-10045577.file.myqcloud.com/doc/Zhao.Kai_ShanghaiUniv.pdf
http://7xocv2.dl1.z0.glb.clouddn.com/doc/Zhao.Kai_ShanghaiUniv.pdf
I have tested on firefox chrome IE that this is not a browser issue.
For some price issue I have to switch to the storage server of which the default behavior is downloading pdf file.
what settings should I have so that click the pdf link then preview instead of downlod?
Additionally, the storage server provide a configure option that can set the "http header", I know little about the web, so can setting a header work, if so, how to ?
I googled it and it seems the content-disposition argument in http header account for this. But I add content-disposition='inline', doesn't help.
if not the browser's issue, then the download one is added programmatically with headers, and the preview one is just putting your file in that folder on the server
I have a webpage with a tag on it with the following markup:
<video width="456" height="360" controls autoplay>
<source src="Movies/Intro.mp4" type="video/mp4" />
<source src="Movies/Intro_H264.webm" type='video/webm; codecs="vp8.0, vorbis"'/>
<source src="Movies/Intro_H264.ogg" type='video/ogg; codecs="theora, vorbis"'/>
</video>
If I visit this page in IE10 it renders the video player but with an error message that reads: "Error: unsupported video type of invalid file path"
But what's odd is if I right-click on the video box and choose, Copy video URL, and then open a new tab in IE and paste in the direct URL to the video file (Movies/Intro.mp4) it plays in the browser without issue.
Also, I can visit the page using Chrome and it plays the MP4 video from the webpage without issue. All that to say, I don't think there's any issue with the video file itself or the encoding, but why is IE 10 not playing the video when it's in the tag, but it is playing it when requesting the video directly?
Any insights?
Thanks
I would check whether the mime-type is correctly being returned for the file.
Chrome will play correctly regardless of the MIME Type returned.
To check:
Press F12 to display the IE Tools Window/Pane.
Go to the Network Tab
Click Start Capturing
Browse to the page in question
Find the mp4 line
If the Type is displayed as application/octect-stream then this is your issue.
I had the same issue with IE 11 and the problem was the content type was application/octect-stream as stated by csmith. I was serving my videos from Azure storage and apparently that is the default content type.
You can change the type with Azure storage or using Azure api as shown in the post
Set Content-type of media files stored on Blob
Here is a guide for people on Amazon cloud (I did not test it)
Changing content type for Amazon
Make sure you set the web server to use MIME type video/mp4 for .mp4. I accidentally set .mp4 to use MIME type video/mpeg, the video plays in Chrome, but not in IE11.
I had this same issue which was a real pain in the ass. My solution was actually quite simple (after searching on the internet for about 4 hours).
Add this line (specific for IE) to your .htaccess file.
AddType video/mp4 .mp4 .m4v
When you paste the URL to your browser it doesn't use HTML5 player anymore, so it doesn't say that it is really a supported file; only that the file path should be valid.
According to wikipedia, IE10 supports (not only) H.264 for video and AAC for audio - these are very common formats for mp4 container. Chrome's support is much wider (video- and audio-wise).
The problem is that the Intro.mp4 file might have different formats altogether (the file could by just renamed or created using unsupported formats).
I'd look into the file using properties->details or third party programs (for example Media Info).
I don't think it is IE10's issue. The only similar one I've found is when the user was too specific using unsupported format of used codecs ([...] type='video/mp4; codecs="H.264, AAC"' [...]).
Now it is very easy to update mime type for your videos on amazon s3,
Just login and navigate to your file, under preferences you will see metadata, there you can edit content-type
Save it and reload your page.
If it directly plays find when you put the .mp4 URL into the browser make sure it's not running with the Quicktime plugin which you may have installed (especially if you use iTunes). Right click on the successfully playing video to rule that out. If it comes up with menu items related to Quicktime you may want to disable Quicktime plugin in adins and continue troubleshooting.
Sample MP4 video: http://www.w3schools.com/html/mov_bbb.mp4
Ektron 801 SP1
I am allowing users to upload MP3 files to their profile using the CommunityDocuments control. I want the user to be able to click the link and play the song. For some file types, such as .doc, the file downloads immediately because the URL of the link refrences "DownloadAsset.aspx". The MP3 files have a URL like http://www.domain.org/documents.aspx?id=242665652917&TaxonomyId=242665652152&LangType=1033&EkTB_iframe=true&height=520&width=790
How can I get these files to play? I have the following in the web.config
<add key="audio/mpeg" value="WindowsMedia"/>
As far as I know, Ektron doesn't provide any player / plugin support ootb for MP3 files. You can specify an additional MEDIA type in the web.config, perhaps. Or use HTML5 Audio. http://www.w3schools.com/html/html5_audio.asp
When using the HTML5 approach, pay attention to which codecs are supported by which browsers. You'll have to work out something else for older browsers via fallback or shim.
Adding a MEDIA type in the web.config will just tell the browser to load a plugin like quicktime or wmp, if it works at all.
As per eGandalf's answer, Ektron doesn't include an MP3 player. You should still be able to use Ektron to store and the serve up the MP3, by saving it into the library or as a DMS asset. You made need to update an Ektron config setting by adding ".MP3" to a file extension whitelist.
Regarding having a user player the MP3 in the browser, I would look at using JW Player - it's very popular and here is a tutorial on using it to play an MP3.
I have a site, hosted on Dreamhost, with several pdf files. When I try to open them in Chrome's pdf viewer, the viewer opens but I get a "Failed To Load PDF Document" message or sometimes the view doesn't open at all and I just get a 503 message. On another site that I know to be hosted on Dreamhost I get the same issue. All other content on these sites load fine.
If I use another browser to open with another PDF viewer (Preview or Adobe Reader) the pdfs from my site load fine.
If I try to open pdfs from other sources in Chrome's viewer they work fine.
Is there something I can do on my end to fix this? Is this something likely caused by Dreamhost? Has anybody else had an issue like this?
Although not recommended by Dreamhost, you can resolve this issue by unchecking the "Extra Web Security?" option under "Manage Domains" in the control panel. This feature uses Apache's mod_security to add request filtering and provide security for your site.
If you still want this feature enabled, you will have to add a .htaccess file in the root of your site to bypass some of the filtering. To allow access to a specific pdf, you would need add something like
<IfModule mod_security.c>
SetEnvIfNoCase Request_URI ^/example\.pdf$ MODSEC_ENABLE=Off
</IfModule>
Here's more information on Dreamhost's use of mod_security and writing custom .htaccess rules.
I have upgraded a SharePoint, excatly same code, but now links to pdfs always prompt to save and dont open from within the browser (which they do on the old server)
old server is named: localintranet
new server is my local machine: myserver:3200 (yes its on port 3200)
Any ideas?
I did try adding my server to the list of local intranet machines in internet explorer to no avail.
I have tried both href=file.pdf target=_blank and onclick=window.open('file.pdf');return false; in the anchor tag
driving me nuts!
Try to add
AddType application/pdf .pdf
line into your .htaccess file in the http root folder of your web server.
Two things:
to be sure check:
Adobe Reader.
Choose Edit > Preferences.
Select Internet in the list on the left.
Display PDF in Browser should be OK.
probably server sends header for .pdf to download it, instead open inline?
Header set Content-Disposition inline
You gotta love microsoft
http://blog.brainlitter.com/archive/2010/05/19/sharepoint-2010-treats-pdf-and-other-file-types-as-insecure.aspx