-
AuthorPosts
-
October 22, 2017 at 8:43 am #867168
Hi, I was wondering how i can get a video element on ipad pro? I have it on everything but the ipad pro? Is there a way I can do this?
Thank you
October 23, 2017 at 2:17 am #867397Hey dvalansi,
Please, could you explain your question better?
Best regards,
John TorvikOctober 23, 2017 at 5:29 pm #867735I used the video slider to display an autoplay video. I know that autoplay does not work on mobile. So for mobile, I hid the video slider element, and had the video element only on mobile. I cannont show the video slider element on ipad pro, since its mobile. but if I show the video element, it will show on desktop. I basically want the video element to show on Ipad pro screen size, but not desktop screen size.
October 24, 2017 at 6:05 am #867979Hi,
Thanks for the clarification. Are you using media queries? If so you should be able to target the ipad pro using these queries:
/* ----------- iPad Pro ----------- */ /* Portrait and Landscape */ @media only screen and (min-device-width: 1024px) and (max-device-width: 1366px) and (-webkit-min-device-pixel-ratio: 1.5) { } /* Portrait */ @media only screen and (min-device-width: 1024px) and (max-device-width: 1366px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 1.5) { } /* Landscape */ @media only screen and (min-device-width: 1024px) and (max-device-width: 1366px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 1.5) { }
Best regards,
RikardOctober 24, 2017 at 5:28 pm #868299I was using the video element and using the “screen options” however, there is nothing for an ipad pro. How would I go about setting this up with a video element and the media queries?
October 25, 2017 at 8:22 am #868588Hi,
Did you activate the custom CSS field for builder elements? If not then please following this: http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/. You can then assign a class to the element, for instance your-class. Then you can target the element in the media queries like this:
@media only screen and (min-device-width: 1024px) and (max-device-width: 1366px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 1.5) { .your-class { display:none; } }
Best regards,
RikardOctober 25, 2017 at 5:34 pm #868841Okay, Im not sure you are understanding. If you look at the link I provided, on desktop, the autoplay version is there, which is fine, however, on mobile, it switches to a regular video( no autoplay) however, on ipad pro, there is no video, and it asks for a fall back image, I would like the video to play on ipad pro, it doesn’t need to be autoplay, it can be click to play,
Thank you
October 28, 2017 at 12:52 pm #869875Hi,
Looks like you’re using an easy slider. Please note that video slides are disabled on mobile devices including the iPad Pro so you can either provide a fallback image or replace the easy slider with an actual Video element. You can use the css media query above to toggle the display property of the elements.
Best regards,
IsmaelOctober 28, 2017 at 7:05 pm #869996Hi, yes, Ive tried.
I am using the easy slider for desktop( as I want autoplay) and I am using video elements for mobile, minus the Ipad pro, because the Ipad pro is still big enough to think its on desktop. So I want to use a video element on the ipad pro size, keep easy slider on desktop, and use video element on all other elements.
If this is possible, can you write it out for me? Cause I am a bit confused on how to do this.
Thanks
October 31, 2017 at 7:52 am #870778Hi,
Please turn on the custom css class field then edit the video element. Add a custom css class attribute (ex: “custom-video”) to it and then enable every settings in the Screen Options. We will use the following css code to display the element when the screen size is equal or less tan 1366px which is the native resolution of an iPad Pro device.
@media only screen and (max-device-width: 1366px) and (-webkit-min-device-pixel-ratio: 1.5) { .custom-video { display: block !important; } }
Best regards,
IsmaelOctober 31, 2017 at 5:36 pm #870906Okay, I did that, but it is now displaying 2 videos( the easy slider and the video element ) on desktop, I only want the easy slider to display on desktop, not the video element.
Easy Slider is for desktop.
Video element is for mobile( including ipad pro)November 2, 2017 at 5:27 pm #871770Does that make sense? The video element needs to display on ipad pro and below, the video slider is for desktop. I’ve done the changes you showed, but it does not work, it is on the link that I sent.
Thanks
November 3, 2017 at 4:40 am #871959Hi,
Yes, we understand what you’re trying to do. Please post the login details in the private field so that we can apply the proper css class attribute values and the css codes.
Best regards,
IsmaelNovember 6, 2017 at 12:06 am #872868This reply has been marked as private.November 6, 2017 at 6:16 pm #873241Hi dvalansi,
I am seeing the slider video on desktop and the other video on small screen. Could you please clear the cache, check again and get back to us.
Best regards,
VictoriaNovember 6, 2017 at 7:16 pm #873294Hello, I am not seeing it on IPAD pro, even with inspect element I do not see it.
November 7, 2017 at 5:21 am #873545Hi,
I don’t think you’re following our suggestions. The custom css class attribute field is not enabled yet.
// http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/
Best regards,
IsmaelNovember 7, 2017 at 6:08 am #873556Hi, I gave you the login and pw, they said they would do it
November 8, 2017 at 5:34 am #873998Hi,
Alright. We added the following css class attribute and modified the css code in the Quick CSS field. The video is visible and the easy slider is hidden when the screen width is equal or less than 1366px. Please remove browser cache or hard refresh before checking the page.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.