Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a video I want to display on my SharePoint 2010 public facing site and at the moment I am using Silverlight, however, I would like to replace this with flash (youtube actually) if the users are using an unsupported browser which I am guessing is anything other than IE.

Anyone know of a web part that would do this or a little Javascript / JQuery?

Any help is appreciated.

Thanks

Matthew Hughes

share|improve this question
    
Nitpick: Your guess is wrong in that on Windows, Silverlight works on Chrome, Firefox and Safari as well. Also apparently on OS X, but reports of that are varying. If it doesn't work in anything other than IE, it's not really Silverlight's fault. –  Rytmis Nov 10 '11 at 14:26
add comment

1 Answer

up vote 10 down vote accepted

Ahh, now I see what you're doing. While your approach will work, I tend to prefer the "use a supported method for everyone" approach. The issue with doing this client side is that even if you remove the Silverlight container with Javascript, the browser is still initially going to try and load it.

This is one of my gripes with the SharePoint team; while I understand that Silverlight is a Microsoft product, they've put so much work into making SharePoint 2010 cross browser compatible, but they're still grasping onto the straw that is Silverlight. A nice cross browser compatible video web part would have been far more useful.

All that said, in my opinion, you're better off ditching the Silverlight component, and using something like VideoJS in a Content Editor Web Part. It's certainly a bit more "work" to get stood up than just dragging in a web part, but it handles everything cross browser, unlike the OOTB Silverlight player.

share|improve this answer
2  
Just to add too, there's a great post here that discusses a bunch of HTML5 video players, and which ones work on the iPad and what the features are: webmonkey.com/2011/01/… –  webdes03 Nov 10 '11 at 13:26
3  
If you dump VideoJS into a CEWP, then Export it, modify the .webpart definition to make it more defined (ie, set the Title, etc), and upload into the Web Part Gallery, you have a pre-configured web part good to go! :) –  James Love Nov 10 '11 at 13:34
1  
Very good point James. I've also done a few implementations where I've used SPServices to read from a "Video Playlist" list, to build a playlist attached to the player. –  webdes03 Nov 10 '11 at 13:35
    
Cant speak for any other video player but I suggest flowplayer as well, which suprisingly is missing from the list on webmonkey. I'd recommend it as it just worked and was easy to incorporate and skin. –  BinaryJam Nov 10 '11 at 13:40
    
Flowplayer was actually the one I used last time I did this, but couldn't remember the name (youdaman BinaryJam). It is one of the easiest to integrate I've seen... great support too (and it has a slick little customization wizard). flowplayer.org –  webdes03 Nov 10 '11 at 13:42
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.