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

Forums

/

Newbie trying to do the examples

1 reply [Last post]
Reply

Hello all!

I'm just following step by step how to make controls from the example over here: http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/16022/controlling-the-player-u...

The problem is that I copy EXACTLY the same code con my page and I change the paths for where my example videos are. This is my code:

<div id="container"></div>

<script type="text/javascript">
  jwplayer("container").setup({
    file: 'jwplayer/video.mp4',
    flashplayer: 'jwplayer/player.swf',
    height: 270,
    width: 480
  });
</script>

<ul>
  <li><a href="#" onclick="jwplayer().play();">Toggle the playback</a></li>
  <li><a href="#" onclick="jwplayer().setMute();">Toggle the audio</a></li>
  <li><a href="#" onclick="jwplayer().stop();">Stop playback</a></li>
</ul>

I'm running the web locally (file:///C:/Users.......)
I dont know what I am missing, seriously. The player works fine but the links don't! Why?
And the example in the page worked for me properly.
I just really don't know what I'm missing.

Reply

Ok, I found it!
The problem is that I cannot run the website in local.

Thank you.

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