Stump the Panel: SharePoint Q&A

Immediate solutions for common SharePoint questions
It is currently Mon May 20, 2013 1:59 pm

All times are UTC - 5 hours [ DST ]


Forum rules


What you are viewing is an archive of Stump the Panel. It remains for reference purposes. Please post all new questions on NothingButSharePoint.com
https://www.nothingbutsharepoint.com/sites/eusp/Forum



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 
Author Message
 Post subject: Playing videos in wikis with SP Foundation 2010
PostPosted: Tue May 03, 2011 4:23 pm 
Offline

Joined: Thu Jan 07, 2010 5:51 pm
Posts: 13
Anyone know how to embed and play videos in a wiki page? We don't have SP 2010 with the media player webpart.

Thanks!!
Dave


Top
 Profile  
 
 Post subject: Re: Playing videos in wikis with SP Foundation 2010
PostPosted: Tue May 03, 2011 11:37 pm 
Offline
User avatar

Joined: Sat Jan 02, 2010 6:02 pm
Posts: 1035
Location: Silver Spring, MD
Hrmmm... I've thought enough about how to answer this question. It simply depends...

It depends mainly on what you want to do. Do you want to have multiple videos on demand or just one? What type of media are you looking to embed? There's a few more questions that I have, but these would be a good starting point.

Let me know these answers and I'll steer you in the right direction.


Top
 Profile  
 
 Post subject: Re: Playing videos in wikis with SP Foundation 2010
PostPosted: Wed May 04, 2011 9:15 am 
Offline

Joined: Thu Jan 07, 2010 5:51 pm
Posts: 13
Matt,
Thanks for tackling my question. We only allow swf videos to be placed in SP. Per company policy all other formats are stored outside of SP and we link to them for playing.

We would like for people to play an swf video directly from a wiki page. A video box would be displayed and all the user has to do is hit the start button.

For the most part I would guess that there would only be one video per page. But there could be more than one.

Thanks!!
Dave


Top
 Profile  
 
 Post subject: Re: Playing videos in wikis with SP Foundation 2010
PostPosted: Wed May 04, 2011 5:26 pm 
Offline
User avatar

Joined: Sat Jan 02, 2010 6:02 pm
Posts: 1035
Location: Silver Spring, MD
There are many ways to embed video directly into your website and alternatively many other files can be embedded as well. Check out my Document Dashboard demo for some more ideas:

http://spdwiki.com/SitePages/DocumentDa ... x?docUID=2

While the XSL template doesn't specifically handle .swf files, you can embed these into your page. In wiki pages on 2010, there is an option to Edit HTML. This option is located on the far right of the ribbon and only appears while editing the page. Once you are editing the HTML directly, you can add the embed code for your .swf file.
Code:
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="320" HEIGHT="240" id="Yourfilename" ALIGN="">
<PARAM NAME=movie VALUE="Yourfilename.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#333399> <EMBED src="Yourfilename.swf" quality=high bgcolor=#333399 WIDTH="320" HEIGHT="240" NAME="Yourfilename" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED> </OBJECT>

To use this code, you'll need to update the filename to the appropriate URL.

There are some things to consider using this. If you are going to possibly need multiple videos to be played on the fly, then I would look at using http://code.google.com/p/swfobject/ or follow my example to build your own "Youtube". Either way works, just depends on your target audience and the level of control you have over the users' browser(s). If you are unfamiliar with how to use either approach, I would start small and use the code sample provided above. When you get oooh's and ahhh's, then you can ramp up your development for a more advanced "Youtube".


Top
 Profile  
 
 Post subject: Re: Playing videos in wikis with SP Foundation 2010
PostPosted: Fri May 06, 2011 10:36 am 
Offline

Joined: Thu Jan 07, 2010 5:51 pm
Posts: 13
Matt,
I was able to enter the code and the player appeared while in edit mode. It even played while in edit mode. However, when I saved the page, the code disappeared. Any suggestions?

Dave


Top
 Profile  
 
 Post subject: Re: Playing videos in wikis with SP Foundation 2010
PostPosted: Fri May 06, 2011 11:46 am 
Offline
User avatar

Joined: Sat Jan 02, 2010 6:02 pm
Posts: 1035
Location: Silver Spring, MD
Hrm.... That's a bit odd, however, there are always workarounds. :D

Let's try both of these techniques:
    CEWP (Content Editor Web Part)
    HTML Form Web Part
Both of these will allow you to add HTML to your page. One of these should work. If not, let me know and I'll test it on my own 2010 wiki playland.


Top
 Profile  
 
 Post subject: Re: Playing videos in wikis with SP Foundation 2010
PostPosted: Fri May 06, 2011 12:53 pm 
Offline

Joined: Thu Jan 07, 2010 5:51 pm
Posts: 13
Matt,
I tried a CEWP and the HTML part. Both worked. I found the HTML to easier to use. The CEWP required several extra steps. One last question. The ability to make the screen fullsize did not work. How can I get that to work?

Thanks for your help!! Our users will be very happy to have this capability.

Dave


Top
 Profile  
 
 Post subject: Re: Playing videos in wikis with SP Foundation 2010
PostPosted: Fri May 06, 2011 2:59 pm 
Offline
User avatar

Joined: Sat Jan 02, 2010 6:02 pm
Posts: 1035
Location: Silver Spring, MD
For complete control over your control (no pun intended), you'll probably want to use the swfobject I referenced earlier or write your own XSLT to handle the control like the Doc Dashboard demo. I'm assuming full screen isn't working currently b/c you're code lives within the confines of the web part. A different coding approach may be needed...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group