why is my player not working?

By adam3000, 1 year ago.

I've got my player installed and working with the demo but not with my implementation on my site.

It's working on the demo with this code:
http://www.cravenswarren.com/insurance/plugins/osflv/demo.php

<script charset='ISO-8859-1' src='/insurance/plugins/osflv/rac.js' language='javascript'></script><script language='javascript'>
var src = 'player';
if(!DetectFlashVer(9, 0, 0) && DetectFlashVer(8, 0, 0))
src = 'player8';
AC_FL_RunContent('codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0', 'width', 400, 'height', 340, 'src', src, 'pluginspage', 'http://www.macromedia.com/go/getflashplayer', 'id', 'flvPlayer', 'allowFullScreen', 'true', 'movie', src, 'FlashVars','movie=video.flv&autoload=off&volume=70');
</script>
<noscript>
<object width='400' height='340' id='flvPlayer'>
<param name='allowFullScreen' value='true'>
<param name='movie' value='/insurance/plugins/osflv/player.swf?movie=video.flv&autoload=off&volume=70'>
<embed src='/insurance/plugins/osflv/player.swf?movie=video.flv&autoload=off&volume=70' width='400' height='340' allowFullScreen='true' type='application/x-shockwave-flash'>
</object>
</noscript>

But it's not working here with this code:
http://www.cravenswarren.com/insurance/mediaserve.php?serve=play|252|/insurance_videos/Property_Insurance_001.flv

<script charset='ISO-8859-1' src='/insurance/plugins/osflv/rac.js' language='javascript'></script><script language='javascript'>
var src = 'player';
if(!DetectFlashVer(9, 0, 0) && DetectFlashVer(8, 0, 0))
src = 'player8';
AC_FL_RunContent('codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0', 'width', 480, 'height', 310, 'src', src, 'pluginspage', 'http://www.macromedia.com/go/getflashplayer', 'id', 'flvPlayer', 'allowFullScreen', 'true', 'movie', src, 'FlashVars','movie=../../assets/files/insurance_videos/Property_Insurance_001.flv&fgcolor=0x601142&bgcolor=0x999999&autoload=off&volume=70');
</script>
<noscript>
<object width='480' height='310' id='flvPlayer'>
<param name='allowFullScreen' value='true'>
<param name='movie' value='/insurance/plugins/osflv/player.swf?movie=../../assets/files/insurance_videos/Property_Insurance_001.flv&fgcolor=0x601142&bgcolor=0x999999&autoload=off&volume=70'>
<embed src='/insurance/plugins/osflv/player.swf?movie=../../assets/files/insurance_videos/Property_Insurance_001.flv&fgcolor=0x601142&bgcolor=0x999999&autoload=off&volume=70' width='480' height='310' allowFullScreen='true' type='application/x-shockwave-flash'>
</object>
</noscript>

As you can see the code for both is nearly identical (only the flv files change)

The link to the player and file work by themselves...
http://www.cravenswarren.com/insurance/plugins/osflv/player.swf?movie=../../assets/files/insurance_videos/Property_Insurance_001.flv

So why aren't they working in the script?

Are you getting an error message or is the player not showing up at all?

Posted 1 year ago #

it's not showing up at all.

Posted 1 year ago #

why would it be able to see the movie when accessing the player only ...
http://www.cravenswarren.com/insurance/plugins/osflv/player.swf?movie=../../assets/files/insurance_videos/Property_Insurance_001.flv

but not show up when using the script?
http://www.cravenswarren.com/insurance/mediaserve.php?serve=play|252|/insurance_videos/Property_Insurance_001.flv

Posted 1 year ago #

Do you have the AC_Run js file or the rac js file hosted?

Posted 1 year ago #

Both files are hosted and available:
http://www.cravenswarren.com/insurance/plugins/osflv/AC_RunActiveContent.js
http://www.cravenswarren.com/insurance/plugins/osflv/rac.js

As you can see in the code above, the demo (working) and my video (not working) both use the rac js file.

Is that what you're asking about?

Posted 1 year ago #

Ok, I see. The only other thing I can suggest is that you host the flv and use an absolute path. It seems like it can't find the flv file.

Posted 1 year ago #

hmm ... I'll try the absolute path and see if that works ... back in a sec.

Posted 1 year ago #

I found the deal. Thanks for the tip on the absolute path.

Turns out the var src 'player' needed to be absoulte.


<script charset='ISO-8859-1' src='http://www.cravenswarren.com/insurance/plugins/osflv/rac.js' language='javascript'></script><script language='javascript'>
var src = 'http://www.cravenswarren.com/insurance/plugins/osflv/player';
if(!DetectFlashVer(9, 0, 0) && DetectFlashVer(8, 0, 0))
src = 'player8';
AC_FL_RunContent('codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0', 'width', 480, 'height', 310, 'src', src, 'pluginspage', 'http://www.macromedia.com/go/getflashplayer', 'id', 'flvPlayer', 'allowFullScreen', 'true', 'movie', src, 'FlashVars','movie=../../assets/files/insurance_videos/Property_Insurance_001.flv&fgcolor=0x601142&bgcolor=0x999999&autoload=off&volume=70');
</script>
<noscript>
<object width='480' height='310' id='flvPlayer'>
<param name='allowFullScreen' value='true'>
<param name='movie' value='http://www.cravenswarren.com/insurance/plugins/osflv/player.swf?movie=../../assets/files/insurance_videos/Property_Insurance_001.flv&fgcolor=0x601142&bgcolor=0x999999&autoload=off&volume=70'>
<embed src='http://www.cravenswarren.com/insurance/plugins/osflv/player.swf?movie=../../assets/files/insurance_videos/Property_Insurance_001.flv&fgcolor=0x601142&bgcolor=0x999999&autoload=off&volume=70' width='480' height='310' allowFullScreen='true' type='application/x-shockwave-flash'>
</object>
</noscript>

Posted 1 year ago #

thank you so much for your help!

Posted 1 year ago #

No problem, glad you got it working. Post your link on the gallery page!

Posted 1 year ago #


RSS feed for this topic

New Topic

You must log in to post.

Copyright Jambo Media, LLC 2009

Powered by WordPress - Created by Tommaso Baldovino