WordPress.org

Ready to get started?Download WordPress

Forums

MediaElement.js - HTML5 Video & Audio Player
Notice:Undefined Variable (4 posts)

  1. marion2999
    Member
    Posted 3 years ago #

    Hi,

    i try to use mediaelement.js, which i think is a great player solution, but the problem is that above the video player (which displays well) i get these warnings :

    Notice: Undefined variable: type_attribute in /homez.110/.../media-element-html5-video-and-audio-player/mediaelement-js-wp.php on line 275

    (and for the others variables too :poster_attribute, autoplay_attribute , mp4_source, mp3_source, flv_source, wmv_source , ogg_source, captions_source, loop_option, videohtml)

    Where is my mistake?

    thanks in advance

  2. marion2999
    Member
    Posted 3 years ago #

    ok, i put some "else" and removed one "." in mediaelement-js-wp.php and now it works...

  3. pucka
    Member
    Posted 3 years ago #

    on line 274 in mediaelement-js-wp.php you can also put a @ before $videohtml to suppress warnings and notices for just that line.

    @$videohtml .= <<<_end_ ...

  4. marion2999
    Member
    Posted 3 years ago #

    Ok, thank you !
    I didn't understand all these notices... but I just "forgot" that I was using debug mode...
    XD

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic