• 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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter marion2999

    (@marion2999)

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

    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_ …

    Thread Starter marion2999

    (@marion2999)

    Ok, thank you !
    I didn’t understand all these notices… but I just “forgot” that I was using debug mode…
    XD

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: MediaElement.js – HTML5 Video & Audio Player] Notice:Undefined Variable’ is closed to new replies.