Home > SharePoint 2010 > Playing Flash Shockwave video in SharePoint 2010

Playing Flash Shockwave video in SharePoint 2010

I recently had a request from a client to help out with a problem they were having getting a Flash video to play in the browser.

The issue here is the AllowedInlineDownloadedMimeTypes list, this is predefined list of files that SharePoint considers safe for displaying in the browser.

If your file extension is not in this list then SharePoint 2010 will not open it in the browser.

You can change the file handling from strict to permissive on your Web App to address this issue, but as we had already updated the list for PDF’s we decided to do the same for Flash Shockwave files.

https://spandps.com/2012/07/06/hardware-load-balancing-aams-and-a-few-other-bits-of-fun/

Three simple lines of PowerShell does the trick

$webApp = Get-SPWebApplication("http://webappurl")
$webApp.AllowedInlineDownloadedMimeTypes.Add("application/x-shockwave-flash")
$webApp.Update()

If you then call the AllowedInlineDownloadedMimeTypes list again without .Add parameter, you will see the extra file type appended to the bottom of the list.

image

Once that was done we could use the content link property of a editor web part to call a simple piece of HTML saved as text to wrapper our video.

The final step was a add a shockwave icon to SharePoint and update the DOCICON file.

 

Job Done.

Happy SharePointing

Advertisement
Categories: SharePoint 2010 Tags:

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: