How to embed flash player to Sharepoint 2007 OOTB CEWP and view videos as thumbnails?
I need it like a youtube kind of thing with thumbnails I mean to say can how can we embed a flash player into sharepoint 2007 by using javascript/xslt(CEWP OOTB) etc... Such that i can play all flash files Regards, Aneel
November 12th, 2010 12:09am

I think you should create custom webpart for this. CEWP is not suitable for your case.w: http://www.worldofsharepoint.com | t: @sharesandip
Free Windows Admin Tool Kit Click here and download it now
November 12th, 2010 4:18am

Hi, you can use the CEWP to do that. to the CEWP and click on source editor. Next paste this code into the web part <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" WIDTH="550" HEIGHT="400" id="myFlashMovieName"> <PARAM NAME=movie VALUE="myFlash.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="/support/flash/ts/documents/myFlashMovie.swf" quality=high bgcolor=#FFFFFF WIDTH="550" HEIGHT="400" NAME="myFlashMovieName" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"> </EMBED> </OBJECT> Replace myFlash.swf with the url of your SWF file. Thats it! Hope it helps Best regards Rodrigo Pinto, SharePoint Specialist,Evangelist SharePointPt Founder
November 12th, 2010 5:31am

Hi, i have already tried it is showing empty on CEWP...i tried in different browsers also no use. Regards, Aneel
Free Windows Admin Tool Kit Click here and download it now
November 15th, 2010 9:57pm

We should not use custom web part as part of client requirement it is OOTB CEWP etc. Regards, Aneel
November 15th, 2010 9:59pm

Hi, did u change the src attribute pointing to the plaace you have the falsh file ? <EMBED src="/support/flash/ts/documents/myFlashMovie.swf" quality=high bgcolor=#FFFFFF WIDTH="550" Rodrigo Pinto, SharePoint Specialist,Evangelist SharePointPt Founder
Free Windows Admin Tool Kit Click here and download it now
November 16th, 2010 5:44am

Hi ANIL, just remeber something important SP2010 has restrictions on displaying SWF files. Go to central administration and check the "Browser File Handling" to "Permissive" for that web application's general settings. Hope it helps Rodrigo Pinto, SharePoint Specialist,Evangelist SharePointPt Founder
November 16th, 2010 6:26am

Hi Scoutman, It gives me blank white screen.....on CEWP in sharepoint 2007
Free Windows Admin Tool Kit Click here and download it now
November 16th, 2010 7:36am

Hi Anil, just realized you were talking about sps2007 . Anyway Anil, can you send me the flash file you are tring to use? Send to this email:stationsolutions@gmail.com Rodrigo Pinto, SharePoint Specialist,Evangelist SharePointPt Founder
November 16th, 2010 8:22am

Hi Scoutman, <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" WIDTH="550" HEIGHT="400" id="myMovieName"> <PARAM NAME=movie VALUE="http://moss-demo-vm:23272/player/Shared%20Documents/barsandtone.flv"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="/support/flash/ts/documents/barsandtone.flv" quality=high bgcolor=#FFFFFF WIDTH="550" HEIGHT="400" NAME="myMovieName" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"> </EMBED> </OBJECT>
Free Windows Admin Tool Kit Click here and download it now
November 16th, 2010 9:01am

Hi , try this <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" WIDTH="550" HEIGHT="400" id="myMovieName"> <PARAM NAME=movie VALUE="/player/Shared%20Documents/barsandtone.flv"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="/player/Shared%20Documents/barsandtone.flv" quality=high bgcolor=#FFFFFF WIDTH="550" HEIGHT="400" NAME="myMovieName" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"> </EMBED> </OBJECT> can you send me the flv also? Rodrigo Pinto, SharePoint Specialist,Evangelist SharePointPt Founder
November 16th, 2010 1:06pm

Scoutman, i sent to your mail.... Thanks, Aneel
Free Windows Admin Tool Kit Click here and download it now
November 16th, 2010 10:12pm

Hi scoutman, Even that is not working for me.... but finally after googling i got it now it is working fine. <object id="player1" width="200" height="200"> <param name="movie" value="http://quest01:4422/Media/player.swf"> <param name="allowfullscreen" value="true"> <param name="allowscriptaccess" value="always"> <param name="flashvars" value="file=http://quest01:4422/Media/20051210-w50s.flv&autostart=true"> <embed id="player1" name="player1" src="http://quest01:4422/Media/player.swf" width="480" height="270" allowscriptaccess="always" allowfullscreen="true" flashvars="file=http://quest01:4422/Media/20051210-w50s.flv&autostart=true" /> </object>
November 17th, 2010 7:02am

Hi, I need a help. scenario is like this, 1. I have two CEWP(contentEditorWebpart) in my sharepoint page. 2. In first CEWP I have a image and second CWEP has a flashplayer. 3.In click of the image i am passing a video url to second cewp through java script.and it should play. Problem : I am able to pass the url to the second CEWP but unable to play. First CEWP script -------------------------------- <IMG style="BORDER-RIGHT: 0px solid; BORDER-TOP: 0px solid; BORDER-LEFT: 0px solid; BORDER-BOTTOM: 0px solid" onclick=ItemClick('http://moss-demo-vm:13629/Shared%20Documents/video.flv'); src="http://moss-demo-vm:13629/Shared%20Documents/pdf.bmp" border=0 href="http://moss-demo-vm:13629/SharePointSandBoxMediaPlayerVideos/lilly_flash.swf"> Second CEWP script --------------------------------- <script type="text/javascript"> function ItemClick(urlvalue) { alert(urlvalue); // I am getting the video url here but flash player not able to play, but if i will hard code the url its working. } </script> <object id="PlayerEx2" width="200" height="200"> <param name="movie" value="http://moss-demo-vm:13629/Shared%20Documents/player.swf"> <param name="allowscriptaccess" value="always"> <param name="flashvars" value="file="'+urlvalue+'""> // hard coded here insted of the "urlvalue" <embed id="PlayerEx2" name="PlayerEx2" src="http://moss-demo-vm:13629/Shared%20Documents/player.swf" width="480" height="270" allowscriptaccess="always" allowfullscreen="true" flashvars="file="'+urlvalue+'""/> // hard coded here insted of the "urlvalue" </object> Please let me know the solution.
Free Windows Admin Tool Kit Click here and download it now
November 19th, 2010 1:06am

Hurrah i got it Media player Wp OOTB ............... <script src="/SiteCollectionDocuments/jquery-1.4.2.min.js" type="text/javascript"></script> <script src="/SiteCollectionDocuments/AC_RunActiveContent.js" type="text/javascript"></script> <div id="playerDiv" style="width:700px; height:400px; align:center;"> <script type='text/javascript'> Test('http://16.138.44.100:32452/SiteCollectionDocuments/Animation.swf') var Name; var str; function Test(name) { Print(name); $("#playerDiv").html(str); } function Print(FileName) { if (AC_FL_RunContent == 0) { alert("This page requires AC_RunActiveContent.js."); } else { str = AC_FL_RunContent( 'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0', 'width', '500', 'height', '380', 'src', 'http://16.138.44.100:32452/SiteCollectionDocuments/player.swf', 'quality', 'high', 'pluginspage', 'http://www.macromedia.com/go/getflashplayer', 'align', 'left', 'play', 'true', 'loop', 'true', 'scale', 'showall', 'devicefont', 'false', 'id', 'id1', 'bgcolor', '#000000', 'name', 'player1', 'menu', 'true', 'allowFullScreen', 'true', 'allowScriptAccess','sameDomain', 'movie', 'http://16.138.44.100:32452/SiteCollectionDocuments/player?file='+FileName, 'salign', ''); } } </script> </div>
November 30th, 2010 10:19pm

Hurrah i got it Media player Wp OOTB ............... <script src="/SiteCollectionDocuments/jquery-1.4.2.min.js" type="text/javascript"></script> <script src="/SiteCollectionDocuments/AC_RunActiveContent.js" type="text/javascript"></script> <div id="playerDiv" style="width:700px; height:400px; align:center;"> <script type='text/javascript'> Test('http://16.138.44.100:32452/SiteCollectionDocuments/Animation.swf') var Name; var str; function Test(name) { Print(name); $("#playerDiv").html(str); } function Print(FileName) { if (AC_FL_RunContent == 0) { alert("This page requires AC_RunActiveContent.js."); } else { str = AC_FL_RunContent( 'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0', 'width', '500', 'height', '380', 'src', 'http://16.138.44.100:32452/SiteCollectionDocuments/player.swf', 'quality', 'high', 'pluginspage', 'http://www.macromedia.com/go/getflashplayer', 'align', 'left', 'play', 'true', 'loop', 'true', 'scale', 'showall', 'devicefont', 'false', 'id', 'id1', 'bgcolor', '#000000', 'name', 'player1', 'menu', 'true', 'allowFullScreen', 'true', 'allowScriptAccess','sameDomain', 'movie', 'http://16.138.44.100:32452/SiteCollectionDocuments/player?file='+FileName, 'salign', ''); } } </script> </div>
Free Windows Admin Tool Kit Click here and download it now
November 30th, 2010 10:19pm

Hurrah i got it Media player Wp OOTB ............... <script src="/SiteCollectionDocuments/jquery-1.4.2.min.js" type="text/javascript"></script> <script src="/SiteCollectionDocuments/AC_RunActiveContent.js" type="text/javascript"></script> <div id="playerDiv" style="width:700px; height:400px; align:center;"> <script type='text/javascript'> Test('http://16.138.44.100:32452/SiteCollectionDocuments/Animation.swf') var Name; var str; function Test(name) { Print(name); $("#playerDiv").html(str); } function Print(FileName) { if (AC_FL_RunContent == 0) { alert("This page requires AC_RunActiveContent.js."); } else { str = AC_FL_RunContent( 'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0', 'width', '500', 'height', '380', 'src', 'http://16.138.44.100:32452/SiteCollectionDocuments/player.swf', 'quality', 'high', 'pluginspage', 'http://www.macromedia.com/go/getflashplayer', 'align', 'left', 'play', 'true', 'loop', 'true', 'scale', 'showall', 'devicefont', 'false', 'id', 'id1', 'bgcolor', '#000000', 'name', 'player1', 'menu', 'true', 'allowFullScreen', 'true', 'allowScriptAccess','sameDomain', 'movie', 'http://16.138.44.100:32452/SiteCollectionDocuments/player?file='+FileName, 'salign', ''); } } </script> </div>
November 30th, 2010 10:19pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics