Step 1 : I am not sure how exactly does Red5 interact with Apache Tomcat and Java SDK,
but I followed the instructions here :
http://osflash.org/red5/windowstomcat
So the first step is to install Java 1.6 SE and Tomcat 5.5.
------------
Step 2 : Now, the link above talks about Red5.war, I couldn't find it.
So I downloaed setup-Red5-0.7.0.exe from http://osflash.org/red5 and installed
it. It installed without a problem.
------------
Step 3 : Start Red5 from the Program Menu and open http://127.0.0.1:5080/,
seemingly 5080 is the default port for Red5. Then go to http://127.0.0.1:5080/demos/ofla_demo.html and play with it.
In the Red5\webapps\oflaDemo\streams folder you can put an flv file and it will be visible on the page mentioned above.
------------
Step 4 :
I used JW FLV player with the following code to connect to a rtmp stream :
<div style="padding-left:40%" id="abc">
<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("mediaplayer.swf","mediaplayer","250","170","7");
s1.addParam("allowfullscreen","true");
s1.addVariable("width","250");
s1.addVariable("height","170");
s1.addVariable("image","1.flv.jpg");
s1.addVariable('file', 'rtmp://localhost/oflaDemo');
s1.addVariable('id', 'airtel_ad_1');
s1.write("abc");
</script>
These 2 lines are important :
s1.addVariable('file', 'rtmp://localhost/oflaDemo');
s1.addVariable('id', 'airtel_ad_1');
note that the file I am trying to play is name "airtel_ad_1.flv", so ".flv"
extension is not needed. Also port number is not needed as well.
------------
Step 5 :
Once you click on the play button in the flv player, you will recieve a warning
whether you want to allow this file to access internet. You might be taken to
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html
where you will have to explicitly add the file you want to allow :
In my case : mediaplayer.swf
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2008
(73)
-
▼
March
(14)
- OpenCds what next
- Finally Successful installation of OpenCDS5.0 on W...
- Visual mode for Gvim on windows
- To read/to try
- something like lsof for windows : openports.exe
- Installing OpenCDS on Windows XP
- Streaming a video file with Flash media server
- Colorzilla and YSlow
- PHP - SetCookie problem and solution
- Cool Web Apps
- Making Red5 work, Getting started with Red5, Insta...
- Making Red5 work, Getting started with Red5, Insta...
- Avid : Sound card not supported
- Unable to kill inetinfo.exe
-
▼
March
(14)
No comments:
Post a Comment