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

Videos not resizing small enough on smartphones in portrait view


I have JW Player premium (not sure of the version -- how can I tell?) and I'm trying to get my videos to work on our new responsive site we have in development. The videos resize appropriately on tablets but in smartphone portrait views they are not small enough. You can see this at https://or.529stage.com/tools/videos/

Here's the code we're using for one of the videos:

<!-- START OF THE PLAYER EMBEDDING TO COPY-PASTE -->
<div id="myElement1">The Cost of College</div>

<script type="text/javascript">
jwplayer("myElement1").setup({
file: "Cost-of-College_REV.mp4",
image: "or-video-cost-of-college.png",
width: "100%",
aspectratio: "16:9"
});
</script>
<!-- END OF THE PLAYER EMBEDDING -->


How do I get them to resize for smartphone portrait? Thanks.

1 Community Answers

jherrieven

User  
0 rated :

@kevin

The reason your videos won't go any smaller on mobile is because they are in fact in a table which has a fixed width of 550px.

Because of this they are not actually responding responsively on any browser/device!

FYI: You have JW6.4 (right click on the player to see this). I'd suggest you upgrade to the latest version (JW6.12) as JW6.4 was the first version to offer responsive design features and has evolved a fair bit since then.

James

This question has received the maximum number of answers.