Multi Media player webpart in sharepoint 2007 out of the box
Hi, How can i play multiple media files(*.flv,*.wma,*.dat..etc) in moss2007 OOTB i have many videos in my document library on click of any video it should play in the media webpart. please suggest me an approach ASAP. Regards, Aneel
November 10th, 2010 12:18am

By default you are dependent on the codecs installed on the client (visitor's) machine so this makes it difficult in most scenarios to support multiple audio/video format. If you want to be sure that the visitor can play the media file, I'd suggest you use a Silverlight/Flash player which will take responsibility of providing the media file to the user. In such scenario all the visitor will have to have installed is the Silverlight/Flash plugin.w: http://blog.mastykarz.nl | t: @waldekm | c: http://mavention.codeplex.com | c: http://mavention.nl
Free Windows Admin Tool Kit Click here and download it now
November 10th, 2010 1:27am

OOTB there is no web part to play videos, you can always install some of these community solutions. http://mpwp.codeplex.com/ http://slmp4sp.codeplex.com/ http://gileshmediaplayer.codeplex.com/-tom daly
November 11th, 2010 1:10am

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
Free Windows Admin Tool Kit Click here and download it now
November 12th, 2010 12:06am

Yes they are ready to install flash plugin.... please tell me how can i achieve flash player in my share point site such that on click of any video thumbnail it should play... Regards, Aneel
November 15th, 2010 10:03pm

i hope those are customized and third party solutions which is not accepted..i want it in OOTB CEWP some thing like that. Regards, Aneel
Free Windows Admin Tool Kit Click here and download it now
November 15th, 2010 10:04pm

Aneel, You can use some jquery type solutions that would go right into the CEWP.. check the demos here. I've used this before. http://jquery.malsup.com/media/#-tom daly
November 18th, 2010 2:43am

Hi Thomas, As i am new to Jquery...sorry to ask you like this can you please send me the documentation/steps to achieve this....... Regards, Aneel
Free Windows Admin Tool Kit Click here and download it now
November 18th, 2010 5:22am

There are alot of tutorials out there especially on the JQuery site. Start with some of those basic ones. The main way to utilize jquery on your site is to to add 1) the reference to jquery + any addtional scripts or plugins and 2) add your custom jquery code to do actual work. so in your CEWP edit it in source view you would start off like so this will load the base jquery api, you can also download this file and host it somewhere on your server. <script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js'></script> Since you want to use the media plug in to play .swf files or some other media you would have to reference that as well. <script type='text/javascript' src='/link to media.js file'></script> that takes care of part 1 - the references. Now you want to do some actually stuff :) This is the most basic way to get going. If this first reference is working once your page is loaded it will execute the jquery/javascript inside the function. <script type='text/javascript'> $(document).ready(function(){ alert("ready"); }); </script> Basically thats all you need to get started. So to run the malsup media plugin you would have to go to their site and view their examples and source. -tom daly
November 18th, 2010 9:22pm

There are alot of tutorials out there especially on the JQuery site. Start with some of those basic ones. The main way to utilize jquery on your site is to to add 1) the reference to jquery + any addtional scripts or plugins and 2) add your custom jquery code to do actual work. so in your CEWP edit it in source view you would start off like so this will load the base jquery api, you can also download this file and host it somewhere on your server. <script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js'></script> Since you want to use the media plug in to play .swf files or some other media you would have to reference that as well. <script type='text/javascript' src='/link to media.js file'></script> that takes care of part 1 - the references. Now you want to do some actually stuff :) This is the most basic way to get going. If this first reference is working once your page is loaded it will execute the jquery/javascript inside the function. <script type='text/javascript'> $(document).ready(function(){ alert("ready"); }); </script> Basically thats all you need to get started. So to run the malsup media plugin you would have to go to their site and view their examples and source. -tom daly
Free Windows Admin Tool Kit Click here and download it now
November 18th, 2010 9:22pm

Hi thomas, 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> The similar kind of code works for my media player but for flash some parameters are changes....Please let me know the solution.
November 19th, 2010 1:11am

I can only recommend to use the jquery media plugin. If you do the same technique the media pluging player should play your video. I have not attempted something like that with just plain javascript. best of luck!-tom daly
Free Windows Admin Tool Kit Click here and download it now
November 27th, 2010 8:18pm

I can only recommend to use the jquery media plugin. If you do the same technique the media pluging player should play your video. I have not attempted something like that with just plain javascript. best of luck!-tom daly
November 27th, 2010 8:18pm

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

Other recent topics Other recent topics