Change poster image with jQuery - video.js

Is there any way to chage the poster image dinamically?
I tried like this:
jQuery('#example_video_1').attr('poster', 'http://video-js.zencoder.com/oceans-clip.jpg');
but not working.
I need because im changing myPlayer.src, so i need to change also poster image, in my video gallery.
Thanks

This works.
$("#example_video_1 .vjs-poster").css('background-image', 'url(http://video-js.zencoder.com/oceans-clip.jpg)').show();

Related

How to add a ID or a class to slider background image in slider revolution

Im trying to change the background image of slider revolution using media queries. I want to change the image to a different one for mobile devices. Is there a way to do this within slider revolution editor? So far I couldn't find any setting to do that.
If not, is there a way to add an ID or a class to the background image of the slider?
thanks!
T
Please try using the method from this article https://www.sliderrevolution.com/faq/display-different-images-on-different-screen-sizes/ to achieve what you needed there.

impresspages -- Is there a simple way to align images center, left, or right?

I see it's easy to change the image size, make it link to something, or change the title and description, but what I don't see is an option to align the image right, left, or center. Am I missing something?
I'm using the Air theme, if that matters. I'm new to Impresspages.
Thanks!
Edit:
Just to make it absolutely clear what I'm asking:
I'm using Impresspages. I want to insert an image and make it align to the right, for example.
I have no trouble dragging and dropping the image widget to where I want it to go. I have no trouble uploading the image. If I wanted to, it is quite clear how to change the image size, how to add a link, and how to change the title and description of the image.
However -- I would have thought there would have been an option to align the image to the left, right, or center, but there is no such option. I have checked Stackoverflow very carefully, as well as the Impresspages site, and I don't see anywhere how to do what should be a really simple thing.
Am I missing something? Or do I need to just learn how to do without right aligning my images?
Thanks!
You can do that by dragging image widget next to other widget on any side. It that case it will align where you want. Here's an example - http://cdn.impresspages.org/core/file/2014/04/03/Impresspages_no_colum_01_1_2.gif
To make it centered is a bit tricky. There are no straightforward way of doing it.
If you really really need this, you can try using RichText widget. It allows to insert image into a text as it is in any text documents.
You can create additional skin for Image widget to be centered http://www.impresspages.org/docs/widgets#skin
Geeky way. But going to work.

Image picker on slider

I want to create image slider [Same like an bellow image].I got some example but those are not fulfilling my requirement. Please help me to solve this issue.
UICollectionView is the best choice for your task. See example here.

How to give a fixed size to image in magnific-popup pluggin

I am using magnific-popup pluggin to display some image links in my application. It displays all the images with their actual size. However, I want to display those images with my custom width and height.. How can I do that.. Is there option to give size of content in the magnific-popup during initialization..? Do any one have an idea..
Thanks in advance.
I found the answer. It can be done by changing the respective class's css properties manually. But, that is also fixed for all images.
Thanks.

Changing size of UIWebView text

I'm trying to change text size in UIWebView, but I don't know how. Help me please.
Take a look at this question; it provides a JavaScript based solution.