How to install Red5 Streaming
server in windows7
Here I am showing Red5 installation with step by steps
Here I am showing Red5 installation with step by steps
1) First download the Red5 executable file from the
official Red5 server, here I downloaded Red5 0.8 version
3)
After finishing
installation Restart the system(not mandatory) and open the browser . in
browser type http://localhost:5080
4)
And then press
enter it will show the following image, if it not showed check weather your
server is running or not
5) And
then install some demo applications
7) After
installing the oflaDemo application type the following url in browser http://localhost:5080/demos/
8) Here
you will find out the all applications ,
go to the oflaDemo application and click view demo link
9) When
you click the view demo link it will open the following window
10) The
click the connect button
11) Here
observe yellow color changed to green color that means your demo application is
successfully installed
12) Then
finally see the preinstalled video’s in the oflaDemo application
Then you want to publish any stream from red5 server type
the following url http://localhost:5080/demos/publisher.html
the following window will be opened.
And then choose your camera for video and choose your audio
device for audio… then click the connect button . here I don’t have webcam and
headset for that I am not connecting….
Then go to the video tab and choose your video and audio
devices
Then go to the publish tab give the name what do u want for
your stream, this name will be used to display the stream in your browser
And then click the publish button, that’s it you
successfully published rtmp stream with your stream name,
Getting the above rtmp stream in web application
Here I am using struts2 application for that am displaying
this rtmp stream in a jsp page,
The jsp page will be
look like this
<%@
page language="java"
contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE
html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@
taglib uri="/struts-tags"
prefix="s"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script
type="text/javascript" src="swfobject.js">
</script>
</head>
<body>
<div>
<div id="player">
Unfortunately you don't
have Adobe Flash-Player....
<a href="http://get.adobe.com/flashplayer/">Click Here to get the
Adobe Flash-Player.</a>
</div><script type="text/javascript">
var flashvars = {
file:your stream
name,
streamer:'rtmp://localhost/oflaDemo/',
bufferlength:'2',
backcolor:'#000000',
frontcolor:'#166EBA',
screencolor:'#999999',
lightcolor:'#990000',
autostart:'true',
repeat:'none',
stretching:'',
playlist:'bottom',
playlistsize:'160',
};
var params = {
allowfullscreen:'true', allowscriptaccess:'always', wmode:'transparent' };
var attributes = { id:'player1', name:'player1' };
swfobject.embedSWF('player.swf','player','384','468','9.0.0','false',flashvars, params,
attributes);
</script>
</div>
</body>
</html>















No comments:
Post a Comment