Latest Entries »

Showing posts with label Live Streaming. Show all posts
Showing posts with label Live Streaming. Show all posts

Tuesday, September 1, 2009

Screen sharing using Vladimir Hmelyoff screen sharing system ( JScrCap ) with Wowza

Hi there, we will discuss how to implement JScrCap screen sharing application written in java with Wowza.


System requirements:




To create a new wowza live streaming application, all you need to do is: navigate to wowza installation root folder and open examples folder. Find the installall.bat, double click on this file to install all the application ex: D:\Program Files\Wowza Media Systems\Wowza Media Server Pro 1.7.2\examples.

This will install all the applications; this action creates folders under applications folder with respect to the example application name.

To make sure that the installall.bat installed the applications on the wowza, navigate to applications folder, there you can see all the folders with the same names as in the examples folder ex: D:\Program Files\Wowza Media Systems\Wowza Media Server Pro 1.7.2\applications.

This installall.bat also creates folders and Application.xml files under the respective folders. The Application.xml file consists of configuration information about the application.

Here we need to have live application installed on your wowza for live streaming. To install individual applications or any particular application: navigate to the examples folder; go to the application folder which you want to install. In our case we need to have live application. Under the examples folder go to LiveVideoStreaming folder and double click on the install.bat file. This will install the live streaming application on to your wowza server. This will create a folder called live under the applications folder which resides under your wowza installation root folder. Also creates another folder under conf with the name live, underneath you can find the Application.xml file. In this file the stream type should be “live” ex: D:\Program Files\Wowza Media Systems\Wowza Media Server Pro 1.7.2\conf\live.


Start wowza server


and check the status through browser



Now open the extracted JScrCap folder and click on the index.hml, it will prompt for run (because this html file consists of embedded applet ). Accept the prompt message and fill the required input parameters like:


URL: rtmp://system-ip/live+livestream
Frame time (ms): 100
Keyframe time (ms):3000
Bitrate (bit/sec): 1000000
Max delay (ms): 1000
Codec name settings: svc1,3,3,9,1000,4
Rect: 0,0,1280,1024
Last event: op: connection, code: close, desc:

Click on the start button to share your screen



There are different ways to start the JScrCap, you can click on the index.html to view the interface, we run this from the command prompt as well like VHScreenShare.bat "rtmp://system-ip/live+livestream" 100 3000 2000000 3 3 0,0,800,600
As a java developer, I would prefer to deploy it on my tomcat server. Start the tomcat server and hit the url like http://system-ip:8080/ VHScreenShare

To run the JScrCap you need to have java installed on your machine or the machine from where you’re sharing. Install java and set the path in the environment variables.

Now double click on the live.html page ex: D:/Program Files/Wowza Media Systems/Wowza Media Server Pro 1.7.2/examples/LiveVideoStreaming/client/live.html

Provide the input parameters like
Server: rtmp://system-ip/live
Stream: livestream

Click on the play button to view the live screen sharing.


In this blong entry, I have explained each and every step to implement JScrCap. I have successfully implemented in this way, I hope this information will help you guys to run the JScrCap successfully with wowza server.

I'm looking forward to run this JScrCap on Red5 and FMS, check out my blog to know how to implement JScrCap on Red5 and FMS.