Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

JW Player in Sharepoint 2010?


Hi. I'm working with Sharepoint 2010 and wondered if there's a web part for the JW Player to easily integrate into Sharepoint. Thanks :)

20 Community Answers

Ethan Feldman

JW Player Support Agent  
-1 rated :

I have not personally done this before.

JW Player

User  
0 rated :

Thanks, Ethan. After posting, I found a web part that enables this: http://www.amrein.com/apps/page.asp?Q=5747 They're using an older version of the JW Player to do this (4.3).

Also, here's a blog post on how to use the JW Player inside Sharepoint: http://geekswithblogs.net/karskip/archive/2009/12/22/137162.aspx

P.S. I love cats and I love your profile image :) Very cute!

Ethan Feldman

JW Player Support Agent  
0 rated :

Np, thanks! :-)

JW Player

User  
0 rated :

Alex C,

I cannot get JW Player to work inside sharepoint,

Can anyone please help me???

Thank you

JW Player

User  
0 rated :

I have got it working but can anyone help me with the captions...

s1.addVariable('plugins','/SiteAssets/Player/captions-2.swf');

But i do not know where to add the rest

Ethan Feldman

JW Player Support Agent  
0 rated :

@Jazz – Under that line, add:

s1.addVariable(‘captions.file’,‘/SiteAssets/Player/your_file.xml’);

JW Player

User  
0 rated :

s1.addVariable('plugins','/SiteAssets/Player/captions-2.swf');
s1.addVariable('captions.file','/SiteAssets/Player/captions-ESP.srt');

The above is the code I have but I have two sets of subtitles so I will need to intergrate the label fucnation as well, something like this?

s1.addVariable('captions.labels', 'English','Spanish');

Any help please

Thanks

Ethan Feldman

JW Player Support Agent  
0 rated :

s1.addVariable(‘captions.labels’, ‘English,Spanish’);

JW Player

User  
0 rated :

Hi Ethan,

I have a issue while implementing JW Player in sharepoint.

I have captured all <a> tags and and attached click event to all of them.

From Click event I call runVideo method, which is created to show JW Player, This works smoothly.

However while running JW Video Player there is default media player of sharepoint 2010 is shown.

Do you have any idea on how to supress default sharepoint media player.

Thanks,
Mandar Oak

Ethan Feldman

JW Player Support Agent  
0 rated :

Hmm, I have never used Sharepoint before…do you have a link that I can take a look at though?

JW Player

User  
0 rated :

No, I dont have link as I am working on local environment.

But it will be good if you dig through this, as this is going to be common issue who are using JWPlayer in Sharepoint 2010 and once resolved you will have sinlge solution for this issue.

BTW, thank you for making such wonderful video player for web :-)

Thanks,
Mandar Oak

Ethan Feldman

JW Player Support Agent  
0 rated :

Np :) But, I’ve never used SP before…some of the links above might be helpful, though.

JW Player

User  
0 rated :

Hi Ethan,

Thanks for your help on provious posts.

While skinning JWPlayer I came across that if we use .png files as skin icons the player do not display anything, If I convert same files to JPG it shows player with proper files.

We want to make control bar semi transperent hence we are using .png files.

Is this default behaviour of player or we are missing anything ?

Is there any other option to make player semi transperent ?

Thanks,
Mandar Oak

Ethan Feldman

JW Player Support Agent  
0 rated :

Our player will work fine with PNG files.

http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/14/building-skins

We use pngs here.

JW Player

User  
0 rated :

Thanks Ethan,

I got it working. Somehow it was not working previously.

Thanks for your help.

I have one more issue, I want to fix width of ControlBar in fullscreen.

i.e. I want to see controlbar of same width when it is in normal mode and fullscreen mode as well.

Is it possible ? and How can I achieve that ?

Thanks,
Mandar Oak

Ethan Feldman

JW Player Support Agent  
0 rated :

Np.

That would require source code changes, as the player shows the controlbar in over mode in fullscreen mode.

JW Player

User  
0 rated :

What kind of source code changes ? Can I do it using javascript ?

Is source code available of JWPlayer ?

Thanks,
Mandar Oak

Ethan Feldman

JW Player Support Agent  
0 rated :

It would be done in AS3.

Source – http://developer.longtailvideo.com/trac/browser/tags/mediaplayer-5.9

JW Player

User  
0 rated :

Just wanted to mention that you do not require any special webpart to use jwplayer with sharepoint. I did this a while ago with sharepoint 2007, but the process is basically the same with sharepoint 2010.

First of all you need to copy the jw player files to a location that everyone with have read access to. You can either use a document library in sharepoint or create a folder in the layouts folder in the sharepoint 12 or 14 hive depending on the version of sharepoint. Note you must do this on all web front ends.

Here is an example of where i extracted the jw player files.
C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions12TEMPLATELAYOUTSJW_Player

Now on the page that you want to add a video, use a content editor webpart and html code mode enter the following.

<script type='text/javascript' src='http://yoursharepointsite/_layouts/JW_Player/swfobject.js'></script>
<div id='media1'>JW Player</div>

<script type='text/javascript'>
var so = new SWFObject('http://yoursharepointurl/_layouts/JW_Player/player.swf','player','400','300','9.0.115');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file', 'http://url to your video');
so.addVariable('skin', 'http://yoursharepointsite/_layouts/JW_Player/skins/stormtrooper/stormtrooper.zip');
so.addVariable('controlbar.position', 'over');
so.write('media1');
</script>

as for the video you can put that in a document library or the layouts folder in the sharepoint hive. Just remember that you might need to increase the default maximum file size in sharepoint.

Enjoy :)

Ethan Feldman

JW Player Support Agent  
0 rated :

Thanks :) Very helpful!

This question has received the maximum number of answers.