JW Player for Flash & HTML5 Video
[Plugin: JW Player for WordPress – Flash & HTML5 Video Player] addModelListener causing error (2 posts)

  1. jynk
    Posted 3 years ago #

    won't load flash player due to js error and defaulting to html. Autostart is not being added to jwplayer.setup() either. Also tried updating to licensed version but player is still stuck on JW Player 5.7.1896 (Licensed version).

    Would be good to get this sorted!


    index.php:14TypeError: 'undefined' is not a function (evaluating 'player[id].addModelListener("STATE", "stateListener")')

    generated js code
    [Code moderated as per the Forum Rules. Please use the pastebin]


  2. JW Player
    Plugin Author

    Posted 3 years ago #


    Looks like the forum automatically moderated your code. Any chance you could use the pastebin like they recommend? Autostart should be added to the config xml file that is loaded in the setup block.

    If you're writing event listener code in JavaScript I recommend you refer to your API documentation: http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12540/javascript-api-reference#Events


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic