Video from detail page disappears on iOS

This topic contains 6 replies, has 2 voices, and was last updated by  Kor 8 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #356887

    Roman
    Buyer
    Post count: 232

    Hi, I’ve recently noticed that embedded youtube videos in video tab on detail pages disappear while playing on iPad Air 2 and iPhone 5s

    Example: https://www.dancelifemap.com/classes-studios/united-states/north-carolina/raleigh/jazz/expressions-in-rhythm-studio/

    Is there a way to fix it? Thank you.

    #356894

    Kor
    Moderator
    Post count: 16516

    Hi Roman,

    The video is displaying fine on iPhone 5s when I inspected this page https://www.dancelifemap.com/classes-studios/united-states/north-carolina/raleigh/jazz/expressions-in-rhythm-studio/ . Here’s a screenshot for your reference. http://prnt.sc/e60rht

    Thanks!

    #356898

    Roman
    Buyer
    Post count: 232

    Hi Kor,

    Try playing, it disappears while playing.

    #356901

    Roman
    Buyer
    Post count: 232

    Here is the screenshot.

    #356924

    Roman
    Buyer
    Post count: 232

    Hey, Kor, I’ve found the problem. It was the custom CSS I was using to have responsive video on blog posts. But after I removed it everything was ok, except embedded videos on my blog posts.

    So what I did is changed the php snippet you gave some time ago from functions.php to this one

    
    
    add_filter( 'embed_oembed_html', 'geodir_oembed_filter', 10, 4 ) ;
    function geodir_oembed_filter($html, $url, $attr, $post_ID) {
        $return = '<div id="post_video-wrap">'.$html.'</div>';
        return $return;
    }

    But it seems that the Detail Page videos stop being visible again.

    How can I alter this wrapping code from above to work only for posts and not within video tab on detail page?

    Thank you.

    #356998

    Roman
    Buyer
    Post count: 232

    Ok, no worries, I’ve solved it by specifying the css for responsive embeds to be used only on blog posts.
    Thanks.

    #357025

    Kor
    Moderator
    Post count: 16516

    Hi Roman,

    Glad that you sorted it yourself. Let us know if you need anything else.

    Thanks!

Viewing 7 posts - 1 through 7 (of 7 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount