Foliovision › Forums › FV Player › Troubleshooting › Simple and quick lightbox: class=”colorbox” for images
-
I am trying to link an image with the quick and simple way to get a video into a lighbox using the following code:
<a href="video.mp4"><img src="splash.png" alt="" /></a>
On this page:
http://content2conversion.com/3286-2
But for some reason, it doesn’t seem to render or work with an image. But it works fine with a regular text link.
-
-
Hello Michael,
I see the logic behind what you tried to do, however at this point the anchor link works only for text items.
<a href="video.mp4" class="colorbox">lightbox</a>
If you want to use an image, then you should be using the [fvplayer] shortcode, as documented here: https://foliovision.com/player/how-to-use-lightbox
Thanks,
MartinHello Michael,
we want to improve that, however could you please be more specific about what is the look you are going for? When we improve this functionality, it will look the same. That means a simple image will open a white lightbox overlay when clicked and that will play the video.
Thanks,
MartinMartin,
That’s the look I’m going for, just having a simple image that you click (not a thumbnail) and it opens up the lightbox. Very simple, nothing fancy.
Is this in the works? Do you have an ETA? I need to get this implemented this week so if your solution won’t be available, I will have to look elsewhere (which wouldn’t be ideal because I just purchased a license for your product for $75.
Hello Michael,
yes, that’s what it will look like.
However the output of the above will be the same as of the following:
[fvplayer src="video.mp4" splash="image.png" lightbox="true"]
Could you please confirm if that’s it? You said that it doesn’t reproduce the look which you need. Could you please write some more about that?
Thanks,
MartinHey Martin,
Here’s the look I want to go for:
http://content2conversion.com/3286-2/
The top image/button is what I want it to look like. Once you click it, the popup/lightbox appears.
The image below it is what your plugin produces- looks more like a video thumbnail/window which doesn’t fit in with the overall design and functionality I wanted. What Alec had previously suggested is exactly what I’m looking for and need.
Hello Michael,
when I click the top image/button my browser simply opens the MP4 file (the location bar URL changes to the MP4 file) and then you have to use the back button to go pack to the page. Although different browser may treat this differently.
So it’s not a lightbox, but a simple link to the video file. You can put up a link like that by just using HTML, no need for any plugin or any class attribute:
However if you need Amazon S3 signed URLs, then this won’t suffice and some plugin still needs to append the signature to the URL.
I also had a look at our plugin on that page. It appears that there is some CSS conflict and it doesn’t appear right. We will work on that. Or it might be because of your CSS minify.
Here’s a demo of what our video lightbox should look like: https://foliovision.com/player/demos/fv-flowplayer-lightbox
Here’s another demo in which we removed the lightbox styling – perhaps that’s what you are really after, could you please check? https://foliovision.com/player/demos/flowplayer-lightbox-borders
Thanks,
MartinHey Martin,
That’s my point, I can’t get just an image to link up to a lightbox. Your colleague Alec had suggested exactly what I was referring to “Let’s make clicking the video thumbnail open up the lightbox please with just a class on it (like class=”video-lightbox”).”
My thought is I want it to look like the top image (not the second image that the plugin produces) and when you click the top image, it opens the video in the lightbox.
Does that make sense?
Hello Michael,
here’s another attempt, please have a look at the “Simple image linking to the video” here: https://foliovision.com/player/demos/flowplayer-lightbox-borders
Is that it? I’m attaching a screenshot: https://foliovision.com/images/support/video-link-opened-in-chrome.png Is that what you are after?
That is not a lightbox however, but a barebones MP4 file opened in the browser. In case the browser doesn’t support the MP4 playback in HTML5 (probably any Linux browser, Firefox on Mac and old Windows, Opera), it would probably show a message to install a plugin to play the video or a download dialog.
So it’s not clear to me why do you want such feature. Are you perhaps using Amazon S3 signed URLs and do you want to generate these for your users for video download?
Please let us know.
Thanks,
MartinHi Martin,
I’m a bit confused- it doesn’t seem like you’re understanding my messages.
I think your colleague Alec in his message pretty much nailed it. All I want is to have an image that links to a video, but instead of opening the MP4 file directly, I want it to show up in a lightbox with your plugin. Right now, your plugin does some extra styling to the image (thumbnail) like add a play button, among other things.
All I want, and I think it’s pretty simple, is to have a non altered image, that when you click it, it brings up a video in a lightbox.
Please refer to Alec’s message because he seemed to be in tune with what I was asking for:
“Hi Martin,
Let’s make clicking the video thumbnail open up the lightbox please with just a class on it (like class=”video-lightbox”).”
Does that make sense?
Hello Michael,
I see, so I think I finally understood that you don’t want any play icon on the image which opens the lightbox. So here’s an updated demo: https://foliovision.com/player/demos/flowplayer-lightbox-borders
You mention that our player adds some other things. Does that mean that in your desired lightbox view, there should be no video controls or share bar (can be disabled globally).
Thanks,
MartinHello Alden,
sorry about the delay, I was on vacation and our team was bogged down by other work.
You can post your video like this:
`[fvplayer src="{your-video.mp4}" width="640" height="360" splash="{your-button-image.png}" lightbox="true;{button width};{button height}"]`
You also need to include a CSS like this in your theme:
.flowplayer.lightbox-starter .fp-ui { background: none repeat scroll 0 0 transparent; } .flowplayer.lightbox-starter { background-color: transparent !important; }
Making it work with a HTML like this is on our list:
`<a href="video.mp4"><img src="image.png" /></a>`
Update: this has been added in FV Player 6.0.5.18
Thanks,
Martin5 years later and I can’t get it to work either.
I would like to have an image on my website (full screen and with an hover-effect on it) and when the user clicks on it the fv video player pops up in a lightbox.
Adding the class “colorbox”, “lightbox”, “lightbox-starter” and so on doesn’t give me any result.
I can get the video to play in a lightbox with this code:
<a href=”/test.mp4″
data-fancybox=”images”
data-caption=”My caption”>
But then the lightbox opens without fv player of course.
How do I achieve this please?
5 years later and I can’t get it to work either.
I would like to have an image on my website (full screen and with an hover-effect on it) and when the user clicks on it the fv video player pops up in a lightbox.
Adding the class “colorbox”, “lightbox”, “lightbox-starter” and so on doesn’t give me any result.
I can get the video to play in a lightbox with this code:
<a href=”/test.mp4″
data-fancybox=”images”
data-caption=”My caption”>
But then the lightbox opens without fv player of course.
How do I achieve this please?
Hello Paul,
if the video has a splash screen, it already looks like an image – the splash screen is the image. It’s the default mode of operation.
If you would like to remove the play button from top of it, you can use CSS like this:
.flowplayer.lightbox-starter .fp-ui > .fp-play { display: none; }
Remember to read the introduction from our guide too: https://foliovision.com/player/advanced/css-tips-and-fixes
Thanks,
MartinThe Splash screen does not work for me, as my picture I want to display on my website is a really wide one. The video itself is 16:9.
So if I set my custom image as the splash screen in the plugin, there will be black bars added to compensate for the different aspect ratio of the image. So using the splash screen does not work for me.
All I need is a simple link for an already existing image on my website that will open the video with FV Player in a lightbox. Is that possible?Additional info:
I am working with X-Theme.
Adding data-fancybox=”images” to my video-link will give me my standard theme-lightbox, but of course not the FL-Player lightbox.Adding class=”colorbox” to my video-link does not work. Then the video just opens as a separate link and I have to go back to the previous page with my browser.
Just noticed that the video lightbox feature is a pro-feature. So I guess there is no way for me to test the fvplayer in a lightbox without paying for the Pro-Version?
Displaying the videos in a lightbox is the only way I am able to built the website as intended. Is there any way for me to test this for free? I’m not willing to pay $75 for test purposes.Hello Paul,
I see the issue with the wide image you are running into. However the lightbox size can be different from the splash size on the page: https://foliovision.com/player/basic-setup/using-lightbox#setting-dimensions Doesn’t that fix the issue for you?
Actually I found that the video width and height it not saving, so we will fix that.
The lightbox feature is in the free FV Player.
Thanks,
Martin