Jul. 07, 2008Ray
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
Jul. 07, 2008fairwayking17
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?
Jul. 07, 2008lookitscook
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");
Jul. 07, 2008fairwayking17
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.
Jul. 07, 2008Ray
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.
Jul. 07, 2008embeded RTMP v4
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!
Jul. 08, 2008Ray
no ideas as of yet.....
Jul. 09, 2008Tom
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>
Jul. 09, 2008fairwayking17
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.
Jul. 09, 2008fairwayking17
The RTMP streaming still seems to be broken. Has anyone had any luck getting this issue resolved?
Thanks,
Jul. 09, 2008kLink
Works from a playlist, but only sporadically from a single file in player code. Use a playlist of one track for now.
Jul. 09, 2008mp v4 rtmp
having same problem, video isn't playing with rtmp
Jul. 10, 2008kLink
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);
Jul. 10, 2008JeroenW
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
Jul. 10, 2008kLink
RTMP works OK, but the buffering symbol is on constantly.
Jul. 10, 2008kLink
http://willswonders.myip.org:8085/php/TestPage-021.html FLV audio (images don't show, constantly shows buffering symbol).
Jul. 10, 2008fairwayking17
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!
Jul. 10, 2008Ray
Thanks JeroenW!
That was the fix. It is now reading playlists correctly again.
Great new feature set btw
Jul. 10, 2008Ray
Buffering icon needs to go.....cannot remove it from skin using variable.
Jul. 10, 2008Ray
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 =]
Jul. 11, 2008rtmpt
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?
Jul. 11, 2008rtmpt
also im using player v 4.0 r37
Jul. 11, 2008rtmpt
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
Jul. 13, 2008rtmpt
buffering = 0 did not work.
Jul. 13, 2008kLink
try bufferlength=null
Jul. 13, 2008richard
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()
Jul. 15, 2008Richard
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?
Jul. 17, 2008sindsg
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.
Jul. 18, 2008sindsg
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.
Jul. 18, 2008seh_notts
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)
Jul. 18, 2008kLink
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/
Jul. 20, 2008seh_notts
Hey thanks kLink, I now have audio.
Not sure what's going on with video though but I'll check the link, cheers.
Jul. 20, 2008kLink
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%.
Jul. 21, 2008Gladideg
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
Jul. 23, 2008John
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?
Aug. 04, 20085h4rk
Has this been resolved? I'm using v53 and still can't play RTMP... =(
Thanks.
Aug. 04, 2008kLink
@5h4rk,
Try: streamer=rtmp://my.domain.com/application and file=path/filename
Adjust domain, application, path, and filename to your site.
Aug. 05, 20085h4rk
@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
Aug. 05, 2008kLink
5h4rk,
You're welcome. Enjoy...
Aug. 05, 2008Aschu
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?
Aug. 05, 2008kLink
Try the filename without the extension:
flashvars.file = "video";
Aug. 05, 2008Aschu
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).
Aug. 05, 2008ted
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.
Aug. 05, 2008Jin
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.
Aug. 05, 2008Aschu
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>
Aug. 05, 2008kLink
@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
Aug. 14, 2008Dre
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
Aug. 14, 2008kLink
@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:Adjust for your domain, embedding method, etc.
streamer: 'rtmp://flash.mydomain.com/ads',
file: 'playlist.xml',
Then your playlist location element is: With/without the filename extension, depending on your streaming server's requirements.
<location>dk.flv</location>
Aug. 14, 2008Dre
Great thank you very much!
Worked like a charm!
Aug. 14, 2008Dre
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
Aug. 14, 2008kLink
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[/b] will cause the next track to automaitcally start playing.
v4.x player supported flashvars documentation here: http://code.longtailvideo.com/trac/wiki/FlashVars
Aug. 26, 2008frb
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 ? ;-)
Aug. 26, 2008kLink
Resolving streaming.domain.tld... failed: Host not found.
Aug. 27, 20085h4rk
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.
Aug. 27, 2008kLink
@5h4rk,
var flashvars =
{
streamer: 'rtmp://1.1.1.1/vod',
file: 'tf_22may',
type: 'video'
};
Sep. 17, 2008Amex
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.
Sep. 17, 2008kLink
var flashvars =
{
streamer: 'rtmp://myurl/tv',
file: '432b9635627de619c5b1a057baff7f16',
type: 'video'
};
Oct. 22, 2008sassi
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
Oct. 22, 2008kLink
@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&file=???????????????????&type=????"
/>
Oct. 23, 2008sassi
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
Oct. 23, 2008kLink
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.
Oct. 23, 2008sassi
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?
Oct. 23, 2008kLink
You probably also need the type.
&streamer=rtmp://fms181.blogtv.com:1935/BlogTV/myInst&file=622314_271591&type=video
Nov. 07, 2008J van Wessel
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
Nov. 08, 2008Ameisez
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>
Nov. 08, 2008kLink
@Ameisez,
Are you using SWFObject v1.4 or swfobject v2.1? (You have mixed the code from both versions.)
Nov. 08, 2008Ameisez
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
Nov. 08, 2008kLink
Load swfobject.js in any text editor, the version is in the header.
Nov. 08, 2008Ameisez
its 1.4
is 2.1 available for download?
how can i play my live stream with jwplayer?
thanks
Nov. 08, 2008kLink
@Amiesez,
You can find swfobject v2.1 here: http://www.google.com/search?hl=en&q=google+code+swfobject&aq=f&oq=
Nov. 08, 2008Ameisez
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
Nov. 08, 2008kLink
<!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.
Nov. 08, 2008Ameisez
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!
Nov. 09, 2008kLink
@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: 'playerId1',
name: 'playerId1'
};
swfobject.embedSWF('player.swf', 'player1', '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 = 'playerId2';
attributes.name = 'playerId2';
swfobject.embedSWF('player.swf', 'player2', '320', '260', '9.0.124', false, flashvars, params, attributes);
</script>
</head>
<body>
<div id="playercontainer1" class="playercontainer">
<a id="player1" 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="playercontainer2" class="playercontainer">
<a id="player2" 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>
Nov. 10, 2008Ameisez
WOW!!!
Thanks
Nov. 10, 2008kLink
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.
Nov. 14, 2008Cliveone
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
Nov. 14, 2008kLink
You simply change the file URI to the location of your media file: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).
<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" />
Nov. 14, 2008Cliveone
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
Nov. 14, 2008kLink
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.
Nov. 17, 2008Cliveone
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
Nov. 17, 2008kLink
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...
Nov. 27, 2008ale83
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?
Nov. 27, 2008kLink
@ale83,
Post your player code or a link to your test site so we don't have to guess.
Nov. 27, 2008ale83
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.
Nov. 27, 2008kLink
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.
Nov. 28, 2008ale83
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. ;-)
Nov. 28, 2008kLink
Works perfectly for me:Adjust the JW FLV Media Player's URI to yours.
<!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('http://my.domain.com/path/player.swf', '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 flashvars to suit your video.
Review the v4.x player supported flashvars here:
http://code.jeroenwijering.com/trac/wiki/FlashVars
Nov. 28, 2008ale83
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? :(
Nov. 29, 2008ale83
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"/>
Dec. 10, 2008francesco
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
Dec. 19, 2008ale83
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.
Dec. 20, 2008Tiago
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
Jan. 09, 2009how to embed thi
<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>
Jan. 09, 2009Will
@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!
Jan. 10, 2009atdhe
why we cant take embed codes in atdhe net? only we can take swf codes ın thıs page they use special somethinks?
Jan. 17, 2009helpatdhe
yeah me too I'm just wondering if someone here can solve the problem from atdhe cant embed it
Feb. 06, 2009footysports
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.
Mar. 24, 2009Tiago
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
Apr. 15, 2009help me sir
<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>
Apr. 15, 2009bluewar
@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');
Apr. 15, 2009help me sir
yes sir .. it from indonesian server tv...
Apr. 16, 2009help me sir
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>
Jul. 15, 2009Likos, germany
I know to hack Atdhe streams.. u can hack them easily.. without any pain..
Jul. 16, 2009Dream.EU
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>
Jul. 16, 2009lost
http://developer.longtailvideo.com/trac/wiki/FlashFormats#Streamingservers
http://www.longtailvideo.com/jw/?search=livestream
http://www.google.com/search?hl=en&q=site%3Alongtailvideo.com+livestream&aq=f&oq=&aqi=
Oct. 09, 2009guv
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
Oct. 31, 2009andrei
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
Here are some helpful links to learn more about the JW Player™:
Earn money with ads from LongTail's AdSolution. Watch our demos and sign up now!
If you don’t buy a commercial license, you cannot use a JW Player™ on (i) a site that has ads; (ii) a corporate site; or a (iii) CMS. Our licenses are very inexpensive, so what are you waiting for? Buy a license today.