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

Forums

/

FLV Player - swfobject conflict - no fvideo

18 replies [Last post]

is the flvplayer using the latest swfobject build?

the swfobject in this player is like 7kb.. the one on google docs is 10k..

Using this player swfobject cause all my other flash swf to not show at all

IF i replace the google docs version (latest build).. this flvplayer now wont show the video.. however all my others are working properly agian..

so to get this player to work.. i have to use 2 separate swfobject?

...

1) load swfobject v2.1 from here: <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js"></script>

2) convert your JW FLV Media Player to swfobject v2.x code. If you don't know how to do that, post your player code and I'll do it for you.

i juse the code generated from this site:

the header script tag:

<script src="js/swfobject1.js" type="text/javascript"></script>

i named it swfobject1.js so it wont mess up my other flash file.

the code:
<script type="text/javascript">
var so = new SWFObject('player.swf','mpl','536','302','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addParam("wmode", "opaque");
so.addParam("width", "536");
so.addParam("height", "302");
so.addParam("controlbar", "over");
so.addParam('flashvars','&file=videos/slamdunk.movℑ=images/flashpreview.jpg&skin=modieus.swf&stretching=fill&backcolor=000000');
so.write('flashvideo');
</script>

<!-- END - Flash -->

it has dynamic content.. so each flash video i pass in has a different preivew images .. so the script cannot be in the header?

any tips to do this is appreciated!

thx lefTy

ok

using the google wiki.. and scripting all in the header works..

<script type="text/javascript">
var flashvars = {};
flashvars.image = "images/flashpreview.jpg";
flashvars.file = "videos/slamdunk.mov";
flashvars.skin = "modieus.swf";
flashvars.stretching = "fill";
flashvars.backcolor = "000000";
var params = {};
params.play = "false";
params.wmode = "opaque";
var attributes = {};
swfobject.embedSWF("player.swf", "myAlternativeContent", "536", "302", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
</script>

now need to figure why no sound now lol

hi, I have the same problem, when the player loads my flash menu disappears. Can some one please tell me how can I fix this?

this is my code...

<div id="player"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div>

<script type="text/javascript" src="mediaplayer/swfobject.js"></script>
<script type="text/javascript">

var s1 = new SWFObject("mediaplayer/mediaplayer.swf","mediaplayer","200","150","9");

s1.addParam('allowscriptaccess','always');

s1.addParam("allowfullscreen","false");

s1.addVariable("width","200");

s1.addVariable("height","150");

s1.addVariable('bufferlength','5');

s1.addVariable('quality','true');

s1.addVariable('controlbar','none');

s1.addVariable('showstop','true');

s1.addVariable('showdigits','false');

s1.addVariable('autostart','false');

s1.addVariable('displayheight','150');
s1.addVariable('shuffle','true');

s1.addVariable('enablejs','true');

s1.addVariable("file","videos/playlist.xml");

s1.write("player");

</script>

thanks!

 
@mar,

Your embedding code is mixing v3 and v4 player flashvars.

What version of the JW FLV Player are you trying to implement?

Any one please help me to fix this problem .

I am using SAM Broadcaster 4.5.6 for encoding and SouthCust for streaming and JW player for web listener but its not working. below is my code I am using.

<div id="container"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var s1 = new SWFObject("player.swf","ply","328","20","9","#FFFFFF");
s1.addParam("allowfullscreen","true");
s1.addParam("allowscriptaccess","always");
s1.addParam("flashvars","file=http://122.99.98.252:6000;stream.nsv&type=mp3&volume=50&autostart=true");
s1.write("container");
</script>
</div>

Pleas, Please help me

 
@Khan,

What version of the JW FLV Player are you using?

If it is a v4.x player, change the type to&type=sound

Thanks Hobbs.

Still its not working. would you please let me know is there any other setting on SAM ?

 
You are missing a forward slash "/" after "6000".

s1.addParam("flashvars","file=http://122.99.98.252:6000<strong>/</strong>;stream.nsv&type=mp3&volume=50&autostart=true");

Dear Hobbs,

Now I am using the below code. still getting not any sound.

<div id="container">
<a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Playeript </div>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var s1 = new SWFObject("player.swf","ply","250","20","9","#FFFFFF");
s1.addParam("allowfullscreen","true");
s1.addParam("allowscriptaccess","always");
s1.addParam("flashvars","file=http://122.99.98.252:6000/;stream.nsv&type=sound&volume=50&autostart=true");
s1.write("container");
</script>

 
The stream at:http://122.99.98.252:6000is dead right now  — check the mount point in your browser —  so I can't check it. It worked yesterday.

Dear Hobbs,

Now its working only on "Opera" but not working in IE-8 and Mozilla.

Please help me out.

Thanks

 
Your Shoutcast stream is encoded at 48.0kbps.

For Flash-based players, you should encode at 44.1kbps.

Thanks Hobbs not its all set for flash player.

Do you help me for media player ? I am using the below code for that but its not working on Mozilla.
<object id=MMPlayer1
codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701
type=application/x-oleobject height=50 width=230 align=absmiddle
classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95>
<param name="FileName" value="http://122.99.98.252:8000">
<param name="ShowControls" value="1">
<param name="ShowStatusBar" value="1">
<param name="ShowDisplay" value="0">
<param name="DefaultFrame" value="Slide">
<param name="Autostart" value="true">
<PARAM NAME="volume" VALUE="50">
<embed
src="http://122.99.98.252:8000" width=230 height=50 volume=50 autostart=true loop=1
align="absmiddle" type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/download/default.asp"
showcontrols=1 showdisplay=0 showstatusbar=1 > </embed>
</object>

Thanks Hobbs now its all set for flash player.

Do you help me for media player ? I am using the below code for that but its not working on Mozilla.
<object id=MMPlayer1
codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701
type=application/x-oleobject height=50 width=230 align=absmiddle
classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95>
<param name="FileName" value="http://122.99.98.252:8000">
<param name="ShowControls" value="1">
<param name="ShowStatusBar" value="1">
<param name="ShowDisplay" value="0">
<param name="DefaultFrame" value="Slide">
<param name="Autostart" value="true">
<PARAM NAME="volume" VALUE="50">
<embed
src="http://122.99.98.252:8000" width=230 height=50 volume=50 autostart=true loop=1
align="absmiddle" type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/download/default.asp"
showcontrols=1 showdisplay=0 showstatusbar=1 > </embed>
</object>

 
Sorry, I don't know anything about Windows Media Player.

Your code seems to work in Firefox for me.

<object id=MMPlayer1 codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701 type=application/x-oleobject height=50 width=230 align=absmiddle classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95>
  <param name="FileName"       value="http://122.99.98.252:8000">
  <param name="ShowControls"   value="1">
  <param name="ShowStatusBar"  value="1">
  <param name="ShowDisplay"    value="0">
  <param name="DefaultFrame"   value="Slide">
  <param name="Autostart"      value="true">
  <param name="Volume"         value="50">
  <embed src="http://122.99.98.252:8000" width=230 height=50 volume=50 autostart=true loop=1 align="absmiddle" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/download/default.asp" showcontrols=1 showdisplay=0 showstatusbar=1 >
  </embed>
</object>

Dear Hobbs,

Thanks for all of your help.

Thanks

 
@Khan,

You're welcome.

      Good Luck!