Quote from: claytonk at Nov 19, 2008, 03:27 PM
Can’t get it to run multiple videos. Using a very simple call on an uncached page:
<div class="picBox">[[JWPlayer? &src=`assets/flash/01.flv`]]</div>
<div class="picBox">[[JWPlayer? &src=`assets/flash/02.flv`]]</div>
It plays the second video inside the first call. Sure I’m doing something wrong, need someone smarter than me to tell me what that is.
Page is here: http://adventistwomensministries.org/index.php?id=137
I’ve had the same problem. To fix this you need to edit two lines in a snippet:
Line 95. Instead of :
echo "<div id=\"player\"></div>\n<script type=\"text/javascript\"> \n";
will work:
echo "<div id=\"$file\"></div>\n<script type=\"text/javascript\"> \n";
Line 100. Instead of:
echo "so.write('player'); \n";
should be:
echo "so.write(\"$file\"); \n";
This won’t work if you call the same file in the same location twice or more on the same page (which is quite strange idea

). For example:
[[JWPlayer? &src=`01.flv`]]
[[JWPlayer? &src=`01.flv`]] ....will result single video output
But:
[[JWPlayer? &src=`01.flv`]]
[[JWPlayer? &src=`/blah/01.flv`]] ... will create two outputs