Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>The <a href="http://flowplayer.org/documentation/configuration/player.html#playerevents" rel="nofollow noreferrer"><strong>Flowplayer Configuration Page</strong></a> shows a <strong>Player Event Listener</strong> named <a href="http://flowplayer.org/documentation/configuration/player.html#playerevents" rel="nofollow noreferrer"><strong>onError</strong></a> that's useful: <br /><br /></p> <p><img src="https://i.stack.imgur.com/kf8K0.png" alt="enter image description here"><br /><br /> <img src="https://i.stack.imgur.com/G8qmg.png" alt="enter image description here"></p> <p><strong>Practical Example:</strong><br /> Whenever the <code>onError Player Event Listener</code> is invoked, it will fire your function. Then, you can test via <code>if statements</code> or if many codes are needed use <code>switch-case conditional</code> to see what error was triggered <strong>and take the appropriate action</strong> from there (e.g., different rules depending on what error code was detected can be done).</p> <p><a href="https://stackoverflow.com/a/3630804/1195891"><strong>Reference</strong></a> example of using <code>FlowPlayer onError Player Event Listener</code> for error <code>200</code>: </p> <pre><code>onError: function(errorCode, errorMessage) { this.unload(); switch (errorCode) { case 200: $('#myPlayer a').attr('src', StreamNotFound.jpg); break; } } </code></pre> <p><strong>The Delivery:</strong><br /> If you already have a multimedia <strong>lightbox type script</strong> on the website, you can take advantage of that to trigger an <strong>image</strong>, <strong>video</strong>, <strong>HTML webpage</strong> via iframe, etc. to relay any directions to the viewer instead of the <code>.jpg</code> image method above. Many lightbox scripts have <em>callback options</em> and that can be used to log the successful delivery of error messages (logged via AJAX post for example) to take this "<strong><em>damage-control</em></strong>" even further.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload