
width setting is not working for jwplayer
I am embedding jwplayer on a liferay portal page. Below is the html and js part:
<div id="videoDisplay">Loading the player...</div>
<script type="text/javascript">
jwplayer("videoDisplay").setup({
playlist: [{
sources: [
{ file: "rtmp://IP:1935/live/test1.stream" },
{ file: "http://IP1935/live/test1.stream/playlist.m3u8" },
{ file: "rtsp://IP:1935/live/test1.stream" }
],
width: "380",
aspectratio: "16:9"
}]
}); </script>
The issue is the width does not have any affect. Below is the resulting html source:
<div id="videoDisplay-aspen1_wrapper" style="position: relative; display: block; width: 480px; height: 270px;">...</div>
video plays fine. just the width is working. my goal is to make it responsive by setting with to 100%, but it does not seem to have an affect no matter what i put in for the width.
I am using licensed locally hosted jwplayer.js version 6.12
thanks,
chuck