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

Forums

/

RTMP and version 4.0

109 replies [Last post]

I have setup the new ...I have setup the new player within my site and skinned them with no problem. The problem is what happened to RTMP. I change the structure to match the 4.0 setting.

<track>
<title>Fireprime</title>
<image>http://www.domain.com/my_app/podcast/preview.jpg</image>
<location>rtmp://video.domain.com/podcasts/070408/nameofpodcast</location>
</track>

I read somewhere the 4.0 broke directory structure within a RTMP server. So I put everthing in root and tried still no luck. What am I missing? Or is this a bug?

thanks for your help.

Ray

Skinning in the new player via 3.0 actionscript is great thanks

Just ran into the same problem as Ray. I was unable to get a simple RTMP example to work in the v4 player. The RTMP example in the setup wizard will not play in my browser either (FF 3). Any thoughts on when this issue will be fixed?

I'm running into the same issue, the wizard example shows the spinner indefinetely (maybe video feed is no longer live?) and when using local stream, the spinner disappears and I get a blank movie, using the following code:

var s1 = new SWFObject("player.swf","ply","320","240","9","#FFFFFF");
s1.addParam("allowfullscreen","true");
s1.addParam("allowscriptaccess","always");
s1.addVariable('type','rtmp');
s1.addVariable("file","rtmp://192.168.0.140/oflaDemo/test.flv");
s1.addVariable("autostart","true");
s1.write("container");

I read the dialog on http://www.jeroenwijering.com/?thread=11306, and attempted to edit the RTMPModel.as file as was described but I still had no luck. I'm using Limelight (as was the gentlemen in the above thread). I'm not a flash developer, so please forgive me for being clueless, but do I need to recompile/republish the .swf file if I make changes to the RTMPModel.as? Or are they external files and can be edited as needed?

This is the most flexible and customizable player I have found, and I really like using it! It would be great to get this RTMP streaming example working.

Ok good this issue looks like a bug. I am not sure if anyone reads these boards but hope they will fix this issue. Great update with new skins but completely usless because it does not work with a playlist. i even tried to revert back to 4.0a something it also gave me the error.

My RTMP was working great with version 3, now it's saying RTMP stream not found (after the version 4 release). I've verified that the stream is valid with an external tool.

My code:

<embed
src="http://www.jeroenwijering.com/embed/player.swf"
width="320"
height="260"
allowscriptaccess="always"
allowfullscreen="true"
flashvars="file=rtmp://fstream.imediasee.com/basic/REMOALS/LifeStar.flv"
/>

Any ideas? Thanks!

no ideas as of yet.....

Hi all.

My xml file plays the files fine!

  <trackList>
    <track>
      <title>Video 1</title>
      <location>rtmp://fl1.streamzilla.jet-stream.nl:80/VOD/myfolder/video</location>
    </track>
    <track>
      <title>Video 2</title>
      <location>rtmp://fl1.streamzilla.jet-stream.nl:80/VOD/myfolder/video</location>
    </track>

  </trackList>

Works fine.

However, trying to show one video and I get the "RTMP stream not found", even though it is exactly the same. Madness.

<script type="text/javascript">
        var params     = {};
        var flashvars  = {};
        var attributes = {};

        params.loop               = "false";
        params.menu               = "true";
        params.bgcolor            = "#000";
        params.allowfullscreen    = "true";
        params.allowscriptaccess  = "always";

        flashvars.file             = "rtmp://fl1.streamzilla.jet-stream.nl:80/VOD";
        flashvars.id               = "myfolder/video";
        flashvars.image            = "preview.jpg";
        flashvars.displaywidth     = "500";
        flashvars.type             = "rtmp";
        flashvars.showstop         = "false";
        flashvars.width            = "500";
        flashvars.height           = "318";
        flashvars.screencolor      = "0xFFFFFF";
        flashvars.frontcolor       = "0xFFFFFF";
        flashvars.backcolor        = "0x333333";
        flashvars.enablejs         = "true";
        flashvars.shownavigation   = "true";
        flashvars.showstop         = "true";
        flashvars.showdigits       = "true";

        swfobject.embedSWF("video/player.swf", "videoContent", "500", "318", "8.0.0", "expressInstall.swf", flashvars, params, attributes); 
             
        </script>

I'm not sure what changed, but I checked the RTMP example today in the setup wizard (the single video example), and it loaded and played correctly. I'm going to re-download the current version of v4 and give it a try. Will post my results shortly.

The RTMP streaming still seems to be broken. Has anyone had any luck getting this issue resolved?

Thanks,

Works from a playlist, but only sporadically from a single file in player code. Use a playlist of one track for now.

having same problem, video isn't playing with rtmp

Actually, it was just my server having a bad day.

This works:so.addVariable('file', 'rtmp://my.domain.com/oflaDemo/video');If you want to destroy that annoying loading symbol, set:so.addVariable('bufferlength', null);

Could you try again with the latest version - a couple of RTMP bugs have been fixed:

http://code.longtailvideo.com/trac/browser/trunk/as3/player.swf

RTMP works OK, but the buffering symbol is on constantly.

http://willswonders.myip.org:8085/php/TestPage-021.html FLV audio (images don't show, constantly shows buffering symbol).

Was able to use RTMP streaming with latest download of v4 from
http://code.longtailvideo.com/trac/browser/trunk/as3/player.swf. Can't wait to dive into the new skinning capabilities.

Thanks JeroenW!

Thanks JeroenW!

That was the fix. It is now reading playlists correctly again.

Great new feature set btw

Buffering icon needs to go.....cannot remove it from skin using variable.

doh.....here is the code to remove buffering icon.

so.addVariable('bufferlength', 'null');

It was provided by kLink above. However it needed close tags around null =]

i had to do rtmpt for it to play. Also, I tested it with several people...why do some people see buffer icon and no video play, while some it works??

is there still some kind of bug with rtmp?

also im using player v 4.0 r37

just tried rtmp without the "t" video link works with 4r37. and tested on friends, some are having the buffering issue with no video play.

would the buffernull variable in the javascript embed code solve this problem?

i currently have bufferlength at &bufferlength=0.1

going to try it with zero

buffering = 0 did not work.

try bufferlength=null

are you seeing jw media player 4.0 r32? thought i saw it say 4.0 r37 before?

weirdly r32 seems to be playing ok for the people that i had try the video that had the buffering issues before.

except for one error in the player that said:

Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095: flash.net.NetConnection was unable to invoke callback onBWDone. error=ReferenceError: Error #1069: Property onBWDone not found on com.jeroenwijering.models.RTMPModel and there is no default value.
at com.jeroenwijering.models::RTMPModel$iinit()
at com.jeroenwijering.player::Model/::loadModel()
at com.jeroenwijering.player::Model/::itemHandler()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.jeroenwijering.player::Controller/::playItem()
at com.jeroenwijering.player::Controller/::playHandler()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.jeroenwijering.player::View/sendEvent()
at com.jeroenwijering.views::-DisplayView/::clickHandler()

cool, my work staged server is showing the video player of r37 in FF3. But the JW site shows r 32? is this only in firefox 3?

hey how do you know which version your player is? When i downloaded the player (mediaplayer.zip) i couldn't see anywhere that had a version number.

I can get my player to play rtmp streams from my local rtmp server (rtmp://192.168.1.119/fastplay/Extremists). However when it first loads and i press play i get the error:

Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095: flash.net.NetStream was unable to invoke callback |RtmpSampleAccess. error=ReferenceError: Error #1069: Property |RtmpSampleAccess not found on com.jeroenwijering.models.RTMPModel and there is no default value.
at com.jeroenwijering.models::RTMPModel/setStream()
at com.jeroenwijering.models::RTMPModel/::statusHandler()

I also get this error if i try to jump to certain part of the video. The RTMP server i'm using is Wowza Media Server Pro if it makes a difference.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
P.S I dunno if this helps or anything.

Looking at the Wowza logs when the player connects to the rtmp server to get the stream it displays:
"INFO stream create - -"
"INFO stream play Extremists -"
- (then i pause it)
"INFO stream pause Extremists -"
- (Then after approx ten seconds)
"INFO stream stop Extremists-"
"INFO stream destroy Extremists -"
"INFO session disconnect 961889349 -"

After wards i can't resume the playback. I have tried pausing with the default Wowza flashplayer and the stream doesn't stop, destroy and disconnect, unless i hit stop or close the browser.

All of this is with the player avaiable at the download page and the player posted at http://code.longtailvideo.com/trac/browser/trunk/as3/player.swf

hope it helps.

Btw i get that popup in firefox. In IE i don't get the popup but the stream still kills if paused for 10+ seconds.

The embed code below works in version 3.15 but in version 4.0 r37 I get 'stream not found'
s1.addVariable("file","rtmp://121.234.11.21/flash&id=hydrogen.flv");
I'm not sure what broke but I am using identical code just the newer player.
Old player still works (behind firewall so can't be tested by anyone else - sorry)

This line was broken:

s1.addVariable("file","rtmp://121.234.11.21/flash/hydrogen");

The v4.x player uses many different flashvars and the API is completely different. See: http://code.longtailvideo.com/trac/

Hey thanks kLink, I now have audio.
Not sure what's going on with video though but I'll check the link, cheers.

The RTMP is broken in the v4.x player. Sometimes it works, sometimes not. I have had limited success putting it in a playlist, but not 100%.

I finaly got RTMP to work with FMS

s1.addParam('flashvars','file=rtmp://0.0.0.0/my_application_name/videoNumber549494.flv');

Usualy I would use: s1.addParam('flashvars','file=rtmp://0.0.0.0/my_application_name/media/videoNumber549494.flv'); But I've excluded /media/, and now it works...

Cheers

We generate our rtmp urls from an entry in the db; they look something like this when the app is run on a test Windows machine:
rtmp://localhost/flvStream/c:/tmp/videos/8a8080181b0efca0011b0f1843660009.flv

This was working fine prior to version 4.0.46 and now it breaks. Is JWPlayer passing the FILE variable, as is, to the rtmp server? If not, why would it impose a format on the url?

Has this been resolved? I'm using v53 and still can't play RTMP... =(

Thanks.

@5h4rk,

Try: streamer=rtmp://my.domain.com/application and file=path/filename

Adjust domain, application, path, and filename to your site.

@kLink,

thanks for that. How should it be if the video link is rtmp://1.1.1.1/vod&id=tf_22may ?

streamer=rtmp://1.1.1.1
file=/vod&id=tf_22may

?

Edit:

nvm, got it! Thanks kLink ;)

5h4rk,

You're welcome. Enjoy...

For some reason or another, this still doesn't work for me! I can set the entire path to the file flashvar, and all is well. But whenever I use streamer, it doesn't. I have tried various editions of slashes, etc. Am I missing something? I am using the latest and greatest r55.

flashvars.file = "video.flv";
flashvars.streamer = "rtmp://onlinemba.uww.edu/vod";

And the error I receive is
Video not found: video.flv

If I put a file called video.flv into the same folder as the web page loading the swf, that video will play. Does that mean it is not detecting my streamer properly?

Try the filename without the extension:

flashvars.file = "video";

Not including the file extension results in error #2032. I checked the FMS logs after that, and it is not receiving any requests from the client in either instance (.flv or no extension).

rtmp doesn't work for me either in 55.

I used the wizard and linked to ver 55 of the player on my site and it says video not found.

tried the rtmp stream of the bunny video and my own rtmp video, both not found.

The streaming with file extension of "*.flv" will work in r55 by the following settings,
streamerr --- "rtmp://edge01.fms.dutchview.nl/botr";
file --- "bunny.flv";

But there still seems to be a bug in r55 when doing livestreaming without .flv in the file extension.

Perhaps I have something else wrong? I still get "Video file not found: bunny.flv" when using this code:

<script type="text/javascript" src="swfobject2.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.file = "bunny.flv";
flashvars.streamer = "rtmp://edge01.fms.dutchview.nl/botr";
flashvars.displayheight = "297";
flashvars.fullscreen = "true";
var params = {};
params.allowscriptaccess = "always";
params.allowfullscreen = "true";
var attributes = {};
swfobject.embedSWF("player.swf", "altHtml", "528", "317", "9.0.115", "expressInstall.swf", flashvars, params, attributes);
</script>

@Aschu,

The RTMP stream works for me with v4.1.54.

Your code looks good, except that displayheight is not a v4.x player supported flashvar.

Please review the v4.x player supported flashvars here: http://code.longtailvideo.com/trac/wiki/FlashVars

I'm messing around with RTMP playlists and I can't get the player to play it.
Using Wowza, the test player plays all my files and even when I use the static code it works, but once I drop in a playlist it all breaks. I'm using revision 57 (http://code.longtailvideo.com/trac/browser/trunk/as3/player.swf)

I'm wondering if my syntax is proper:

<?xml version="1.0" encoding="utf-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
<trackList>
<track>
<title>Video1</title>
<creator>Me</creator>
<info>http://www.google.com</info>
<location>rtmp://flash.mydomain.com/ads/dk.flv</location>
<identifier>video1</identifier>
<meta rel="type">rtmp</meta>
</track>
<track>
<title>Video2</title>
<creator>Me</creator>
<location>rtmp://flash.mydomain.com/ads/dk2.flv</location>
<identifier>video2</identifier>
<meta rel="type">rtmp</meta>
</track>
</trackList>
</playlist>

I shoudl also mention this worked with HTTP streaming, it's jsut the RTMP that's messing up

@Dre,

The v4.1.xx players use a new global flashvar streamer for the URL to the stream, both the application & instance (if used), then the file flashvar is the filename & any directories (if used) OR in your case, the playlist file.

In your player code use:

streamer: 'rtmp://flash.mydomain.com/ads',
file: 'playlist.xml',

Adjust for your domain, embedding method, etc.

Then your playlist location element is:

<location>dk.flv</location>

With/without the filename extension, depending on your streaming server's requirements.

Great thank you very much!
Worked like a charm!

I know of the flashvars for "displayclick" and "controlbar" but is there a way to specify those in the playlist?
I want the first video to click to a URL and not show a control bar - the second video should have standard features. i'm trying to use this for pre-roll.

Also is there a way to force the second video to play without pausing in between?

Thanks

You can only change the player's "configuration" flashvars if you re-instantiate the player. That doesn't work very well. See this thread: http://www.jeroenwijering.com/?thread=11768

Another user has modified the player's ActionScript code to allow some configuratin changes: see this thread: http://www.jeroenwijering.com/?thread=12286

Setting the flashvar repeat to [i]list will cause the next track to automaitcally start playing.

v4.x player supported flashvars documentation here: http://code.longtailvideo.com/trac/wiki/FlashVars

Hi,

very nice streamer var. i cant stream anything. no video is displayed. has anyone an idea how to split the following link into treamer and file?

http://streaming.domain.tld/sasx.cfm?a=311770816142542/&s=xyz.flv&t=asx

after the questionmark is a= the path or an key for the path, t=filetype s = the video.

its horrible. i have tried any combination in the config wizard. no success.

who has found the stone of wisdom ? ;-)

Resolving streaming.domain.tld... failed: Host not found.

Hi kLink, was the solution you gave me before for 4.0 only?

Now I'm using 4.1, what the parameters should be? For rtmp://1.1.1.1/vod&id=tf_22may?

var flashvars = {
streamer: "rtmp://1.1.1.1/vod/tf_22may",
file: ?,
};

Does the streamer flashvar specifies only the server or also specifies the video file? Then what is the file flashvar for?

Thanks.

@5h4rk,

var flashvars =
{
  streamer: 'rtmp://1.1.1.1/vod',
  file:     'tf_22may',
  type:     'video'
};

How can I do if I want to show a live stream instead of a file?

With old version I did:
s1.addVariable("file","rtmp://myurl/tv");
s1.addVariable("id","432b9635627de619c5b1a057baff7f16");

where the id was the streaming name. I can't do it now.
I use "streamer" instead of "file" but don't know where use the streaming name, please hep me!
Thank you very much.

var flashvars =
{
  streamer:  'rtmp://myurl/tv',
  file:      '432b9635627de619c5b1a057baff7f16',
  type:      'video'
};

kLink, thanks for the reply
i have this code, but don't work

<embed
src="http://www.jeroenwijering.com/embed/player.swf"
width="470"
height="290"
bgcolor="undefined"
allowscriptaccess="always"
allowfullscreen="true"
flashvars="streamer=rtmp://87.21.36.251/live/raidue"
/>

The stream don't work, why? whathave i wrong?
Sorry for my bad english thx

@sassi,

You are missing a file & a type.

<embed
src="http://www.jeroenwijering.com/embed/player.swf"
width="470"
height="290"
bgcolor="undefined"
allowscriptaccess="always"
allowfullscreen="true"
flashvars="streamer=rtmp://87.21.36.251/live/raidue<strong>&file=???????????????????&type=????</strong>"
/>

kLink but the rtmp stream is only rtmp://87.21.36.251/live/raidue
There aren't a file & a type in the stream
How do i resolve the trouble?
THX 1000

Since I don't know what your server setup is, I can only guess. You should find out the correct configuration from the documentation for your server.

An RTMP URI consists of the protocol, domain, application, and instance:rtmp://domain/application/instance
The instance isn't always used.

Separately, for the file, there may be a media type prepended, path(s), and the filename with/without an extension:mp4:Sunrise.mp4
For a live stream, the stream name is equivalent to the file name. raidue may be your live stream name, which you would use for the file flashvar.

The JW FLV Media Player needs a media type, which would be video for a video livestream.

Klink
it works fine thx

Now i have this link rtmp://fms181.blogtv.com:1935/BlogTV/myInst&id=622314_271591

I put rtmp://fms181.blogtv.com:1935 in streamer then i put BlogTV/myInst&id=622314_271591 in file but not work

Why?

You probably also need the type.

&streamer=rtmp://fms181.blogtv.com:1935/BlogTV/myInst&file=622314_271591&type=video

Please could someone tell me how i get my unique

FMS URL from blogtv so i can embed it to my website with jw flash player.

Thanks for your help

Hi,

Following up on how to play live stream on the player, I created this html file based on what i read above but it's not working.

Any help would be highly appreciated

<script type='text/javascript' src='/swfobject.js'></script>
var flashvars =
{
  streamer:  'rtmp://1.1.1.1/live',
  file:      'test',
  type:      'video'
};
  <div id='preview'>This div will be replaced</div>

  <script type='text/javascript'>
  var s1 = new SWFObject('/embed/player.swf','ply','470','320','9','#ffffff');
  s1.addParam('allowfullscreen','true');
  s1.addParam('allowscriptaccess','always');
  s1.addParam('wmode','opaque');
  s1.addParam('flashvars="streamer=rtmp://1.1.1.1/live&file=test&type=video');
  s1.write('preview');
</script>

 
@Ameisez,

Are you using SWFObject v1.4 or swfobject v2.1? (You have mixed the code from both versions.)

I don't know. How would I know?

I just seen this site and download the JW player.

I checked the files but there's no version i see.

Thanks

Load swfobject.js in any text editor, the version is in the header.

its 1.4

is 2.1 available for download?

how can i play my live stream with jwplayer?

thanks

 
@Amiesez,

You can find swfobject v2.1 here: http://www.google.com/search?hl=en&q=google+code+swfobject&aq=f&oq=

Sorry mate but I don't know what shall I do with it?

what's the correct code for this version for me to be able to view my live streaming video from my flash media encoder giving the following conditions

FMS URL: rtmp://xx.xx.xx.xx/live
Stream name: test
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html lang="en">

  <head>

    <title>View Live Stream - JWMP v4</title>

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

    <script type="text/javascript">
      var flashvars =
      {
        streamer:             'rtmp://1.1.1.1/live',
        file:                 'test',
        type:                 'video',
        controlbar:           'bottom'
      };

      var params =
      {
        allowscriptaccess:    'always',
        allowfullscreen:      'true',
        bgcolor:              '#FFFFFF'
      };

      var attributes =
      {
        id:                   'playerId',
        name:                 'playerId'
      };

      swfobject.embedSWF('player.swf', 'player', '320', '260', '9.0.124', false, flashvars, params, attributes);
    </script>

  </head>

  <body>

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

  </body>

</html>

1) Adjust the path to swfobject.js, player.swf, and your stream source to match yours.

2) Adjust the player size if you want something other than 320x240.

3) Upload swfobject.js v2.1, player.swf, and this HTML document to your server.

4) Post back here with your code and a link to your test page if you need more help.

Hey thanks!!!

Its working now.

But I have some questions left.

1. what's the normal latency for this player. I compare it with the old player I am using and this is delayed by around 2 seconds. My old one is almost realtime

2. i want to stack more players in one page to view different stream in one page. how will i add another instance of the player in the page?

3. I want to put names just below each player. please give me hint on where should I start placing titles of each player instance

4. are these the correct flashvars for my current version? http://code.jeroenwijering.com/trac/wiki/FlashVars
Thanks again!

 
@Ameisez,

1) I don't have much experience with live stream latency, so I can't give you an answer.

2) Each player needs a unique id/name and container name. See sample code below.

3) Titles would go immediately below the container element. See sample code below.

4) Yes, those are the correct v4.x player flashvars. The list appears to be up-to-date with the v4.2.90+ players.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html lang="en">

  <head>

    <title>View Live Stream - JWMP v4</title>

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

    <script type="text/javascript">
      var flashvars =
      {
        streamer:             'rtmp://1.1.1.1/live',
        file:                 'test',
        type:                 'video',
        controlbar:           'bottom'
      };

      var params =
      {
        allowscriptaccess:    'always',
        allowfullscreen:      'true',
        bgcolor:              '#FFFFFF'
      };

      var attributes =
      {
        id:                   <strong>'playerId1',</strong>
        name:                 <strong>'playerId1'</strong>
      };

      swfobject.embedSWF('player.swf', <strong>'player1'</strong>, '320', '260', '9.0.124', false, flashvars, params, attributes);

      // Note that only flashvars, params, and attributes that are different
      // need to be given new values for the second and subsequent players.

      flashvars.file        = 'other';

      attributes.id         = <strong>'playerId2'</strong>;
      attributes.name       = <strong>'playerId2'</strong>;

      swfobject.embedSWF('player.swf', <strong>'player2'</strong>, '320', '260', '9.0.124', false, flashvars, params, attributes);
    </script>

  </head>

  <body>

    <div id=<strong>"playercontainer1"</strong> class="playercontainer">
      <a id=<strong>"player1"</strong> class="player" href="http://www.macromedia.com/go/getflashplayer">Get the Flash Plugin to see this video.</a>
    </div>
    <div class="title>
      The Title for Player1
    </div>
    <div id=<strong>"playercontainer2"</strong> class="playercontainer">
      <a id=<strong>"player2"</strong> class="player" href="http://www.macromedia.com/go/getflashplayer">Get the Flash Plugin to see this video.</a>
    </div>
    <div class="title>
      The Title for Player2
    </div>

  </body>

</html>

WOW!!!

Thanks

Answer to your first question:

Using Red5 on my LAN, there is about a 2 second latency. Seems like this would kill a chat application, so I'm going to do some more testing with other broadcaster/viewer combinations.

Hi

I am new to this streaming video stuff and would like you guys to see if you can help me.

First I am using wordpress with the ondemand theme, I have the JW Media player uploaded to my server, I can play my own flv files from the same server that I have wordpress installed with no problems, all I have to do is add this code to a post inside a custom field called videoembed, this is the code

<embed src="http://www.fameplug.com/jw-flash/mediaplayer.swf" width="840" height="500" allowscriptaccess="always" allowfullscreen="true" flashvars="height=500&width=840&file=http://www.fameplug.com/vids/myplayer.flv&backcolor=0D0D0D&frontcolor=0xA7A7A7&lightcolor=0xA7A7A7&screencolor=0x000000&searchbar=false" />

Works fine.

What I need to know is how do I add code to this so that I can play my flv from my media server which is on a dedicated server. The JW player is not embeded in any of my scrips and I prefer to use the embed command.

Please can someone give me an example to do this.

Thank you for your time.

Clive

You simply change the file URI to the location of your media file:

<embed src="http://www.fameplug.com/jw-flash/mediaplayer.swf" width="840" height="500" allowscriptaccess="always" allowfullscreen="true" flashvars="height=500&width=840&file=<strong>http://www.fameplug.com/vids/myplayer.flv</strong>&backcolor=0D0D0D&frontcolor=0xA7A7A7&lightcolor=0xA7A7A7&screencolor=0x000000&searchbar=false" />

The HEX codes that you are using for the "color" flashvars are inconsistent. For the v3.x player, you need to prepend "0x", for the v4.x player you only use the six-digit HEX code "0D0D0D". Adjust according to the player version that you are using (right-click on the display area to see the version).

kLink thank you for your reply

I don’t think you understood what I was asking for which is understandable as I am not good at explaining things, I will try another way.

As I said first I am using wordpress with the ondemand theme, I have the JW Media player uploaded to my server, I can play my own flv files from the same server that I have wordpress installed with no problems, all I have to do is add this code to a post inside a custom field called videoembed, this is the code

<embed src="http://www.fameplug.com/jw-flash/mediaplayer.swf" width="840" height="500" allowscriptaccess="always" allowfullscreen="true" flashvars="height=500&width=840&file=http://www.fameplug.com/vids/myplayer.flv&backcolor=0D0D0D&frontcolor=0xA7A7A7&lightcolor=0xA7A7A7&screencolor=0x000000&searchbar=false" />

that code plays the flv brilliantly with no problems at all.

What I want to do is run this flv file from my flash media server hosted on a dedicated server, that means that I would be using a rtmp link.
So what I need is to use the <embed src="http://www.fameplug.com/jw-flash/mediaplayer.swf which will embed the player , then somehow add the code so that my flv file will run from my media server.

Embedding the player using the <embed src=” places the flash player into the top page of my wordpress, its getting the code right after that to play the flv from a rtmp link.

If I could just get an example this would help.

I hope this makes more sense and thank you for your help

Clive

OK, so you want to do RTMP; gotcha.

<embed src="http://www.fameplug.com/jw-flash/mediaplayer.swf" width="840" height="500" allowscriptaccess="always" allowfullscreen="true" flashvars="streamer=rtmp://my.domain.com/application/instance&file=path(s)/videofilename&backcolor=0D0D0D&frontcolor=A7A7A7&lightcolor=A7A7A7&screencolor=000000&searchbar=false" />

You will have to supply your domain, application, and instance (if used).

You will have supply any additional path(s) if used.

See this post for the various combinations of prepends and filenames:

      http://www.jeroenwijering.com/?thread=9783#msg93820

Since you didn't supply any of the details about your stream source or media file type(s), that's all I can do.

Hi kLink

Thank you verry much for helping me, I have tried all ways to get this working but with no luck.
The video player embeds and tries to play the flv but nothing happens.
When I test it in the JW Setup Wizard it works fine from this code but not in my blog.

<embed
src="/embed/player.swf"
width="470"
height="290"
bgcolor="undefined"
allowscriptaccess="always"
allowfullscreen="true"
flashvars="file=sample.flv&streamer=rtmp://213.175.196.60/vod/sample.flv"
/>

This is the code you sent me, I have added all of the link details, maybe I have done it wrong.

<embed src="http://www.fameplug.com/jw-flash/mediaplayer.swf" width="840" height="500" allowscriptaccess="always" allowfullscreen="true" flashvars="streamer=rtmp://213.175.196.60/vod&file=sample.flv&backcolor=0D0D0D&frontcolor=A7A7A7&lightcolor=A7A7A7&screencolor=000000&searchbar=false" />

This is my setup on my media server.

I have main.far, Application.xml, in C:\Program Files\Adobe\Flash Media Server 3\applications\vod
I have my flv file called sample.flv in C:\Program Files\Adobe\Flash Media Server 3\applications\vod\media

Can you see whare I am going wrong

Thanks again

Clive

You might need to get the media in the URL or path.

Try:

flashvars="streamer=rtmp://213.175.196.60/vod/media&file=sample.flv&...the rest of the flashvars...

or:

flashvars="streamer=rtmp://213.175.196.60/vod&file=media/sample.flv&...the rest of the flashvars...

Hi, I'd like to embed streams as this (rtmp://87.21.36.251/live/raiuno) in my website, but with JW player it appears me the following error: "0: Error #2048".
I have tried with this other player (http://assets.sport.ro/design/sport/flash/mediaplayer_tfm.swf) that works good, but there isn't full screen button.
Can someone of you help me, please?

@ale83,

Post your player code or a link to your test site so we don't have to guess.

Here is the code:

<object type="application/x-shockwave-flash" width="557" height="313" bgcolor="#404040">
  <param name="allowfullscreen" value="true"/>
  <param name="allowscriptaccess" value="always"/>
  <param name="movie" value="http://assets.sport.ro/design/sport/flash/mediaplayer_tfm.swf">
  <param name="flashvars" value="file=rtmp://87.21.36.251/live/raiuno&controlbar=over&autostart=true"/>
  <embed src="http://assets.sport.ro/design/sport/flash/mediaplayer_tfm.swf" width="557" height="313" allowscriptaccess="always" allowfullscreen="true" flashvars="file=rtmp://87.21.36.251/live/raiuno&controlbar=over&autostart=true"/>
</object>

P.S.: Perhaps something in the code is wrong, because IE give me some error messages (object needed or 'null' is null or is not an object) and Firefox doesn't load video at all.

Please see the v4.x player supported flashvars here: http://code.jeroenwijering.com/trac/wiki/FlashVars#External especially, the streamer flashvar.

The "object... blah, blah errors can usually be chased away by giving your object and your embed a name and an id:<object type="application/x-shockwave-flash" width="557" height="313" bgcolor="#404040" name="player" id="player">same O, same O, for the embed.

First of all, thanks for the answers!
I already tried to modify the example in the wizard, but it didn't work.

The example is this:

<embed
  src="/embed/player.swf"
  width="470"
  height="290"
  bgcolor="#ffffff"
  allowscriptaccess="always"
  allowfullscreen="true"
  flashvars="file=bunny.flv&streamer=rtmp://edge01.fms.dutchview.nl/botr"
/>

Here there is a bunny.flv file and a RTMP stream, instead I have only an RTMP stream link rtmp://87.21.36.251/live/raiuno
I have tried to put this link as file or as streamer or as both, but it doesn't work.

Can you help me to find a way to embed this stream with a flash player or also another player, but in a web page? Thanks!

P.S.: The object errors are been resolved. ;-)

Works perfectly for me:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html lang="en">

  <head>

    <title>RTMP Live Stream - JWMP v4.2.x - swfobject v2.1</title>

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js"></script>

    <script type="text/javascript">
      var flashvars =
      {
        streamer:             'rtmp://87.21.36.251/live',
        file:                 'raiuno',
        type:                 'video',
        skin:                 'snel.swf',
        stretching:           'uniform',
        autostart:            'true',
        volume:               '60',
        frontcolor:           '86C29D', // text & icons                  (green)
        backcolor:            '849BC1', // playlist background           (blue)
        lightcolor:           'C286BA', // selected text/track highlight (red)
        screencolor:          'FFFFFF', // screen background             (black)
        quality:              'true'
      };

      var params =
      {
        allowfullscreen:      'true',
        allowscriptaccess:    'always',
        bgcolor:              '#FFFFFF'
      };

      var attributes =
      {
        id:                   'playerId',
        name:                 'playerId'
      };
      
      swfobject.embedSWF('<strong>http://my.domain.com/path/player.swf</strong>', 'player', '470', '284', '9.0.124', false, flashvars, params, attributes);
    </script>

  </head>

  <body>

    <div id="playercontainer" class="playercontainer">
      <a id="player" class="player" href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Get the Flash Plugin to see this video.</a>
    </div>
    
  </body>

</html>

Adjust the JW FLV Media Player's URI to yours.

Adjust the flashvars to suit your video.

Review the v4.x player supported flashvars here:

      http://code.jeroenwijering.com/trac/wiki/FlashVars

                                                                                       :D

Thanks, I have used your code (modifying the path of the player.swf) and the player has been loaded both in IE and in Firefox, but when I click play, nothing happens and the screen remain white.
Why? :(

It works!!!

The problem was that I didn't set type variable to video, as you have suggested me.
Thansk a lot!!
You are a great!!

So, the code, taken from the wizard is:

<embed
src="/embed/player.swf"
width="557"
height="313"
bgcolor="undefined"
allowscriptaccess="always"
allowfullscreen="true"
flashvars="file=raiuno&type=video&volume=100&streamer=rtmp://87.21.36.251/live&controlbar=over&autostart=true"/>

i am new to JW, i would like to embed JW Player to my blog and stream rtmp://87.21.36.251/live/raiuno, is it possible to do that? someone can tell me breafly th steps i should follow??
i d appreciate very much yr help!
peace

I have used this code and it works both with IE and Firefox:

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

<div id="player"></div>

<script type="text/javascript">
var so = new SWFObject('player.swf','mpl','557','313','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addParam('flashvars','&file=raiuno&type=video&volume=100&streamer=rtmp://87.21.36.251/live&controlbar=over&autostart=true&stretching=exactfit');
so.write('player');
</script>

Obviously you must have the two files player.swf and swfobject.js in the same folder of the page where you put the code into, otherwise you must change the paths of the two files in the code.

I have this code and i want put this swf player in my website.
What i need change? Because like that not works.
I'm waiting for answers...

<object id="myId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="450" height="350">
<param name="movie" value="http://kolakula.ko.ohost.de/dS0.swf?zawsf=2&gsdes=28&fghf=6247" />
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<embed src="http://kolakula.ko.ohost.de/dS0.swf?zawsf=2&gsdes=28&fghf=6247"
width="450"
height="350"
allowfullscreen="true"
allowscriptaccess="always"
flashvars="file=rtmp://fms181.blogtv.com:1935/BlogTV/myInst&id=622314_271591&autostart=true" ></embed>
</object>

Cumps

<object id="myId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="500" height="400">
<param name="movie" value="http://kolakula.ko.ohost.de/m4D.swf?zawsf=fut" />
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="flashvars" value="autostart=true" />
<embed src="http://kolakula.ko.ohost.de/m4D.swf?zawsf=fut"
width="500"
height="400"
allowfullscreen="true"
allowscriptaccess="always"
flashvars="file=rtmp://fms181.blogtv.com:1935/BlogTV/myInstance&id=62934_711541&autostart=true" ></embed>
</object>

@Tiago & how to embed thi,

I'd be happy to show you how to use swfobject v2.2 to embed a flash movie, but I don't do object/embed code because it causes too much grief!

why we cant take embed codes in atdhe net? only we can take swf codes ın thıs page they use special somethinks?

yeah me too I'm just wondering if someone here can solve the problem from atdhe cant embed it

Hi I am running the site www.footysports.tv

I knew how to embed atdhe streams in your site and i have been using it in my site.

if you want mail us footysports@live.com.

i have a new question

how i can embed this in my website...
i copy this url and nothing
is it possible?

"<div name="mediaspace" id="mediaspace"></div>
<script type="text/javascript">
var so = new SWFObject('http://gzerolee.free.fr/extra/player.swf','mpl','500','400','9');
so.addParam('allowscriptaccess','always');
so.addParam("wmode","transparent");
so.addParam("allowScriptAccess", "always");
so.addVariable("channel", "3824");
so.addVariable("plugins", "ltas");
so.addParam('allowfullscreen','true');
so.addParam('flashvars','&file=sp1.flv&streamer=rtmp://adtvextra.mypsx.net/1/live');
so.write('mediaspace');
</script>"

in
"http://live-games.tv/sptv/show_news.php?subaction=showfull&id=1234564168&archive=&template=Codigo005"

Cumps

<html>
<head>
</head>

<script type='text/javascript' src='http://indobox.tv/player/swfobject.js'></script>

<div id='preview' align=center>Report !</div>

<script type='text/javascript'>

var s1 = new SWFObject('http://indobox.tv/player/player.swf','ply','440','330','5');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam("menu","false");
s1.addParam('flashvars','file=myanimx01&type=video&screencolor=000000&streamer=rtmp://stream.indoweb.tv/indobox&autostart=true');

s1.write('preview');

</script>
</body>
</html>

@help me sir,

Are you sure that's a valid RTMP server URI?

I just get "server not found".
s1.addParam('flashvars', 'streamer=rtmp://stream.indoweb.tv/indobox&file=myanimx01&type=rtmp&screencolor=000000&autostart=true');

yes sir .. it from indonesian server tv...

this is the copy from a website in indonesia tv streamer..can any one help???

<script type='text/javascript'>

function load()
{
window.setTimeout("loading()",5000);
}
function loading()
{
callphp.location.href = "call.php?user=devi";
window.setTimeout("loading()",50000);
}
</script>
<body onload="load()">
<iframe name="callphp" width="200" height="400" src="call.php?user=devi" style="display:none"; ></iframe></td>
</body>

<html>
<head>
</head>

<script type='text/javascript' src='player/swfobject.js'></script>

<div id='preview' align=center>Report !</div>

<script type='text/javascript'>

var s1 = new SWFObject('player/player.swf','ply','440','330','5');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam("menu","false");
s1.addParam('flashvars','file=myanimx01&type=video&screencolor=000000&streamer=rtmp://stream.indoweb.tv/indobox&autostart=true');

s1.write('preview');

</script>
</body>
</html>

I know to hack Atdhe streams.. u can hack them easily.. without any pain..

Can y help me establish Online live stream without file. Which of file extension is need to write in flashvars?
Host is adobe FMS.The default adobe player works ok. PLs help! THX!

<p id='preview'>The player will show in this paragraph</p>

<script type='text/javascript' src='swfobject.js'></script>
<script type='text/javascript'>
var s1 = new SWFObject('player.swf','player','400','300','9');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('wmode','opaque');
s1.addParam('flashvars','streamer=rtmp://192.38.22.231/live/livestream&file=67&type=rtmp');
s1.write('preview');
</script>

likos germany-care 2 actually post the info then!?!

several people want the atdhe
we know it starts
<script language +ends noscript>

but simply entering that in site builder doesnt work
one of 3 things happens.1 it simply opens a daft lookin media player that goes nowhere....2 it redirects to atdhe -effectively wipeing out your website.......3 nothin at all.
only flash can be snagged at the moment-so please tell us how we get ALL the atdhe-preferabley 2day oct 10th

hi all friends i need to ask somethink
i want to embed this live stream
link is: http://www.ligtvdevu.net/kanal/turks34full5.html

rtmp://85.111.3.56:1935/gstv<playpath>gstv

<swfUrl>http://www.ligtvdevu.net/kanal/mactv.swf

<pageUrl>http://www.ligtvdevu.net/kanal/turks34full5.html

how ı can put this stream in to my page?
thanks for all

Did anyone found a way to get atdhe.net embed codes?

@atdhe.net - No.