-
I have a autolooping playlist that I want to display inside a branded tv screen graphic. I cannot find the .css info on this. You display an example on the FV Player plugin settings. Appreciate some help.
Foliovision › Forums › FV Player › How to … › insert FV player inside a graphic such as a branded TV screen .png
I have a autolooping playlist that I want to display inside a branded tv screen graphic. I cannot find the .css info on this. You display an example on the FV Player plugin settings. Appreciate some help.
Hello William,
I wouldn’t use border-image in CSS, as it has many issues and the results might be different in each browser. And since it’s important, that the video fits nicely into the graphic, it would be best to wrap it in a DIV that has your custom background. Than you can use background-size: cover; so it spreads nicely around the whole player. Since you know the size of the player, you can easily create that graphic to fit pixel perfect. The wrapping DIV itself can include some padding around, this way you can center the player vertically and horizontally.
thanks
vk
Hi William,
Here’s an example on our page – Custom Frame in Background. It also includes the used the sample of the code used for styling.
Thanks,
Eduard
Hi William,
Here is also a full guide in our FV Player Documentation – How to Make a Frame Around Video.
Thanks,
Eduard
Thanks, it was helpful. The added fun was that the player had to be viewed at an angle and with perspective. No parallel sides. So the below worked. Can’t include the image used, but you’ll get the idea. Enjoy !!
<div id=”hv1″>
<style>
#hv1 {
position: relative;
background-image: url(‘/media/backgrounds/Waiting_Room.png’);
height: 405px;
width: 720px;
}
#hv2 {
position: relative;
top: 33px;
left: 455px;
height: 96px;
width: 152px;
-ms-transform: rotate(-2.5deg); /* IE 9 */
-webkit-transform: rotate(-2.5deg); /* Safari */
transform: rotate(-2.5deg); /* Standard syntax */
}
#hv3 {
height: 96px;
width: 152px;
-webkit-perspective: 19px; /* Chrome, Safari, Opera */
perspective: 19px;
}
#hv4 {
position: relative;
height: 96px;
width: 152px;
-webkit-transform: rotateY(-.65deg); /* Chrome, Safari, Opera */
transform: rotateY(-.65deg);
}
</style><div id=”hv2″>
<div id=”hv3″>
<div id=”hv4″>[fvplayer src="/media/stuff,mp4" width="152" height="96" autoplay="true" liststyle="prevnext" controlbar="no" loop="true" playlist="/media/stuff2.mp4" hflip="true"]</div>
</div>
</div>
</div>
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
Strictly Necessary Cookie allow you to log in and download your software or post to forums.
We use the WordPress login cookie and the session cookie.
If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.
Foliovision.com uses self-hosted Rocket.chat and self-hosted Freescout support desk to provide support for FV Player users. These cookies allow our visitors to chat with us and/or submit support tickets.
We are delighted to recommend self-hosted Rocket.chat and especially Freescout to other privacy-conscious independent publishers who would prefer to self-host support.
Please enable Strictly Necessary Cookies first so that we can save your preferences!
This website uses Google Analytics and Statcounter to collect anonymous information such as the number of visitors to the site, and the most popular pages.
Keeping this cookie enabled helps us to improve our website.
We reluctantly use Google Analytics as it helps us to test FV Player against popular Google Analytics features. Feel free to turn off these cookies if they make you feel uncomfortable.
Statcounter is an independent Irish stats service which we have been using since the beginning of recorded time, sixteen years ago.
Please enable Strictly Necessary Cookies first so that we can save your preferences!