Can't get waNewVIDEO() to work

This is the forum if you are looking for help in using/configuring our player in your site.

Can't get waNewVIDEO() to work

Postby iandunn » Sun Jan 24, 2010 3:26 am

I have a main player window, and then several thumbnails for additional videos. I want a new video to start playing when the user clicks on each of the thumbnails.

Here's what the video player looks like:
Code: Select all
<div id="videoPlayer">
   <script type="text/javascript">
      var VideoID = "video=http://www.level-3-media.com/new/wp-content/uploads/reel/main-reel.flv";
      var Width = 740;
      var Height = 416;
   </script>
   <script src="http://www.level-3-media.com/new/wp-content/themes/2009-rebrand/web-anatomy/einterface.php" type="text/javascript"></script>
</div>


Here's what the links looks like:

Code: Select all
<a href="javascript:waNewVIDEO('0', 'http://www.level-3-media.com/new/wp-content/uploads/reel/test1.flv', 'null')">
   <img src="http://www.level-3-media.com/new/wp-content/uploads/reel/test1.jpg" alt="" />
</a>


Nothing happens when I click on the link. There aren't any errors, I just get no response at all. I've got JavaScript turned on in the WA settings. You can view the site at http://www.level-3-media.com/new/.
iandunn
 
Posts: 8
Joined: Fri Jan 23, 2009 4:15 pm

Re: Can't get waNewVIDEO() to work

Postby iandunn » Tue Feb 09, 2010 3:30 pm

bump
iandunn
 
Posts: 8
Joined: Fri Jan 23, 2009 4:15 pm

Re: Can't get waNewVIDEO() to work

Postby Nabu » Fri Feb 12, 2010 1:16 am

Code: Select all
<script type="text/javascript">
   var VideoID = "video=http://www.level-3-media.com/new/wp-content/uploads/reel/main-reel.flv";
   var Width = 740;
   var Height = 416;
</script>
<script src="http://www.level-3-media.com/new/wp-content/themes/2009-rebrand/web-anatomy/einterface.php" type="text/javascript"></script>

<a href="javascript:myNewCoolVideo('http://www.level-3-media.com/new/wp-content/uploads/reel/test1.flv')">
   <img src="http://www.level-3-media.com/new/wp-content/uploads/reel/test1.jpg" alt="" />
</a>


<script type="text/javascript">

function myNewCoolVideo($videoUrl){ // it's easier to control a single function with 1 parameter
   waNewVIDEO(0, $videoUrl, null)
   waPlayNOW(0) // forces player to start playing

}

</script>



Try this one!
Nabu
Site Admin
 
Posts: 51
Joined: Sat Jan 17, 2009 12:23 pm
Location: Bielsko-Biala

Re: Can't get waNewVIDEO() to work

Postby iandunn » Fri Feb 12, 2010 4:27 pm

That worked. Thanks :)
iandunn
 
Posts: 8
Joined: Fri Jan 23, 2009 4:15 pm


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron