I am currently utilizing a JW Player to stream a video through the rtmp protocol. Here is how the code appears:
<div id="mediaspace2" >This text will be replaced</div></div>
<script>
jwplayer("mediaspace2").setup({
flashplayer: "jwplayer.flash.swf",
file: "rtmp://192.168.1.146:1935/live/myStream",
height: 270,
width: 480,
skin: {
name:'skins/JW-SKIN-ROUNDSTER.css'
}
});
</script>
Upon implementation, the webpage displays correctly: https://i.sstatic.net/FOGAa.png
However, I now wish to display it in portrait mode by rotating it vertically. I added a simple div and modified its CSS as follows:
<div id="rotated" style=" -moz-transform:translate(-95px,95px) rotate(270deg);
-webkit-transform:translate(-95px,95px) rotate(270deg);
-o-transform: translate(-95px,95px) rotate(270deg);
-ms-transform:translate(-95px,95px) rotate(270deg);
transform:translate(-95px,95px) rotate(270deg);">
<div id="mediaspace2" >This text will be replaced</div></div>
<script>
jwplayer("mediaspace2").setup({
flashplayer: "jwplayer.flash.swf",
file: "rtmp://192.168.1.146:1935/live/myStream",
height: 270,
width: 480,
skin: {
name:'skins/JW-SKIN-ROUNDSTER.css'
}
});
</script>
As a result of this change, the component is indeed rotated, but the video appears shrunk: https://i.sstatic.net/bGsSs.png
Is there a solution to correct this issue?