Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Error when calling stop and play functions

No replies
Reply

The javascript API for jwplayer errors in these conditions.

If the video was already stopped and I call jwplayer('video').stop().

or

if the video was already running and I call jwplayer('video').play().

I want to stop the video whether it is buffering, playing or paused. What is the best way to do that. I tried calling getState() but that isn't accessible while the video is buffering.

Thanks.

Post new comment

  • Allowed HTML tags: <code> <blockquote> <em> <strong> <strike> <ul> <li> <ol>
  • You may post code using <code>...</code> .
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options