Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #882285

    Just updated site to WP 4.9 and it broke the auto-play of video backgrounds to my Color Sections on every page. :-(

    Console pulls this in Chrome:

    Uncaught TypeError: b(...).not(...).filter(...).mediaelementplayer is not a function
        at HTMLDocument.a (wp-mediaelement.min.js?ver=4.9:1)
        at c (jquery.min.js:4)
        at Object.fireWith [as resolveWith] (jquery.min.js:4)
        at Function.ready (jquery.min.js:4)
        at HTMLDocument.q (jquery.min.js:4)
    
    Uncaught TypeError: jQuery(...).magnificPopup is not a function
        at (index):113
        at dispatch (jquery.js?ver=1.12.4:3)
        at r.handle (jquery.js?ver=1.12.4:3)
    
    Uncaught TypeError: Cannot read property 'options' of undefined
        at $.AviaVideoAPI._html5_loop (shortcodes.js?ver=4.2:1298)
        at $.AviaVideoAPI.api (shortcodes.js?ver=4.2:1127)
        at $.AviaVideoAPI._bindEvents (shortcodes.js?ver=4.2:1091)
        at HTMLLIElement.<anonymous> (shortcodes.js?ver=4.2:999)
        at HTMLLIElement.dispatch (jquery.min.js:5)
        at HTMLLIElement.v.handle (jquery.min.js:5)
        at Object.trigger (jquery.min.js:5)
        at HTMLLIElement.<anonymous> (jquery.min.js:5)
        at Function.each (jquery.min.js:4)
        at init.each (jquery.min.js:4)

    And this in FF:

    TypeError: b(...).not(...).filter(...).mediaelementplayer is not a function
    wp-mediaelement.min.js:1:453
    
    TypeError: jQuery(...).magnificPopup is not a function
    events:113:2
    
    TypeError: this.player is undefined
    shortcodes.js:1298:4
    #882286

    Ironically I see the video playing fine in the new page editor of WP 4.9… but the site itself is broken.

    #882288

    It also appears my transparent header background isn’t working on top of that video… it should be clear and it’s a gray bar… FF actually shows a broken image icon on the far left. Figured this out… this was a different issue with WP 4.9 upgrade.

    • This reply was modified 6 years, 11 months ago by milkboy31.
    #882296

    Reverted to Enfold 4.1.2 and the problems persist… so it is definitely a WP 4.9 issue with the new media stuff, but it affects 4.1.2. and 4.2. How do we fix this???

    #882344

    bump

    #882575

    Hi milkboy31,

    Here is a thread for you to consider

    Please refrain from bumping or replying to your own thread because it gets pushed back to the end of the queue and moderators won’t be able to provide a response immediately. Please be patient while we go through the rest of the queue. Thank you for your understanding.

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #882808

    Hi Victoria. This is not the issue. In fact, I was one of the first (if not the first) to suggest the fix for the width issue when 4.2 was released. This isn’t a display/width issue with the videos… this is an auto-play issue. If you visit this page for example: https://cedarcreek.tv/experience/ You will see there is a video as the top background. Seeing it in Firefox actually has a giant play button (Chrome hides this) that can’t be clicked, and the video doesn’t play on either browser.

    What happened with local MP4 color section background videos and wordpress 4.9???

    #883238

    Ok I found the fix… I had to add this to my child theme functions.php file. I don’t know why…

    add_action('wp_enqueue_scripts', 'my_register_javascript', 100);
    
    function my_register_javascript() {
      wp_register_script('mediaelement', plugins_url('wp-mediaelement.min.js', __FILE__), array('jquery'), '4.8.2', true);
      wp_enqueue_script('mediaelement');
    }

    I found it via this thread: https://stackoverflow.com/questions/47346965/wordpress-media-library-not-working-mediaelementplayer-is-not-a-function

    Now background videos play again.

    #883702

    Hi milkboy31,

    Thanks a lot for sharing that, much appreciated. I’m not 100% sure yet as why videos are not working in 4.9, but I think it’s due to this issue: https://core.trac.wordpress.org/ticket/42574

    Btw, we really appreciate that you help out and contribute in other threads :-)

    Best regards,
    Rikard

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