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

Embed jwplayer with social icons


Hello,

I have set up jwplayer here which is working fine. http://kollegekidd.com/dev/index.php/cnv/kollegekidd/video/3716-shantanu-1

Now, I want to embed this video in my blog but it should be loaded in jwplayer with social icons. What is the code to do it ?

I also see that on social sharing it shows embed code. Why it is iframe and html file ? What should be the content of that hml file ?

I tried to put that code in my blog, but its not showing jwplayer and social icons are missing on it.

Here is the code I am using.

var pathname = document.location.toString().toLowerCase();

jwplayer("player").setup({
'id': 'player',
'wmode': 'transparent',
'icons': 'true',
'allowscriptaccess': 'always',
'allownetworking': 'all',
'image': "http://kollegekidd.com/dev/images/videos/64/thumbs/OxgDr43LHos.jpg",
'file': "http://kollegekidd.com/dev/images/originalvideos/64/OxgDr43LHos.mp4",
'abouttext':'kollegekidd.com',
'aboutlink':'http://kollegekidd.com/',
'width': '640', 'height': '360',
'controlbar': 'bottom',
'stretching':"exactfit",
'dock': 'false',
sharing: {
code: encodeURI('<iframe src="'+pathname+'" width="480" height="270" frameborder="0" scrolling="auto" ></iframe>'),
link: ''
}
});

This code I put in my blog.

<iframe src="http://kollegekidd.com/dev/images/originalvideos/2452/wObquiEpJXx.mp4" width="480" height="270" frameborder="0" scrolling="auto" ></iframe>

Here is blog link - http://shantanupanse14.blogspot.in/

I want embed code to put in any site with jwplayer and social icons on it.

5 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

The iframe source needs to have a player on it, not an mp4 file.

JW Player

User  
0 rated :

Means it will be a html file having jwplayer code ? In my case I am generating dynamic playlist. You want to say
there should be separate html file for each video ?

Ethan Feldman

JW Player Support Agent  
0 rated :

It will be a html file with jwplayer code. Make it with a playlist, then.

JW Player

User  
0 rated :

Thanks, this issue is solved !

Ethan Feldman

JW Player Support Agent  
0 rated :

Np!

This question has received the maximum number of answers.