Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #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

    #867397

    Hey dvalansi,

    Please, could you explain your question better?

    Best regards,
    John Torvik

    #867735

    I 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.

    #867979

    Hi,

    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,
    Rikard

    #868299

    I 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?

    #868588

    Hi,

    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,
    Rikard

    #868841

    Okay, 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

    #869875

    Hi,

    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,
    Ismael

    #869996

    Hi, 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

    #870778

    Hi,

    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,
    Ismael

    #870906

    Okay, 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)

    #871770

    Does 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

    #871959

    Hi,

    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,
    Ismael

    #872868
    This reply has been marked as private.
    #873241

    Hi 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,
    Victoria

    #873294

    Hello, I am not seeing it on IPAD pro, even with inspect element I do not see it.

    #873545

    Hi,

    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,
    Ismael

    #873556

    Hi, I gave you the login and pw, they said they would do it

    #873998

    Hi,

    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

Viewing 19 posts - 1 through 19 (of 19 total)
  • You must be logged in to reply to this topic.