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

resizePlayer


NO WORK MY WP PAGE
<div id='player_101'></div>
<script type='text/javascript'>
jwplayer('player_101').setup({
width: 582,
height: 329,
primary: "html5",
abouttext: "player",
aboutlink: "https://www.mydomain.com/",
image: "https://mydomain.com/976x549.jpg",
file: "https://mydomain.com/htr.mp4",
skin : {
url:"https://www.mydomain.com/jwplayer7/skins/vapor.css",
name:"vapor"
},
advertising: {
client: "vast",
tag: "https://www.mydomain.com/advertisement720p.xml"
},
captions: {
color: '#FFFF00',
fontSize: 12,
backgroundOpacity: 4
}
});
playerInstance.addButton(
"https://www.watchdisneyabc.com/jwplayer7/expandButton.png",
"Expand/Contract",
function() {
if (!playerInstance.getFullscreen()) {
resizePlayer();
}
},
"expandContract"
);
</script>

My page : https://www.watchdisneyabc.com/test-page/

1 Community Answers

Alex

JW Player Support Agent  
0 rated :

Hi, there.

You do not have playerInstance defined anywhere. I would recommend changing the first line of your setup code from this:

jwplayer(‘player_101’).setup({

to:

var playerInstance = jwplayer(‘player_101’);
playerInstance.setup({

Please let me know if that works. Please let me know if you need any more help or have any other questions.

Thank you!

This question has received the maximum number of answers.