As I am planning to develop a VVoIP framework I would like to leverage strength of both. So I have decided to develop a bridge (or more appropriately adapter) between the APIs and that initiative have resulted JAIN SIP API Adapter project. The project's aim is to let JAIN SIP API based Server side applications benefit from JAVA EE Services by using SIP Servlet API. I hope to complete this project in 3 months to come and release a beta version. Initially the system will be tested on SailFin with a IM server I developed based on JAIN SIP API.
Bridging SIP Servlets and JAIN SIP
add to del.icio.us
with other 0 users
As I am planning to develop a VVoIP framework I would like to leverage strength of both. So I have decided to develop a bridge (or more appropriately adapter) between the APIs and that initiative have resulted JAIN SIP API Adapter project. The project's aim is to let JAIN SIP API based Server side applications benefit from JAVA EE Services by using SIP Servlet API. I hope to complete this project in 3 months to come and release a beta version. Initially the system will be tested on SailFin with a IM server I developed based on JAIN SIP API.
Labels:
jain sip,
sailfin,
sip,
sip servlet
Video Recording using Flash
add to del.icio.us
with other 0 users
The first thing that is required for Flash video recording is a media server for streaming; because Flash unlike signed applet can store on local disk, it in fact streams the captured video to media server. There is Adobe Media Server or Flash Communication Server that we can use after procuring or there is Red5; thanks to the open source community. Now with Red5 comes a sample simple video recorder, using which you can simply stream video to the server. If we look at a customized Simple Recorder (it is only the recorder and there is no attached streaming server :) if anyone can help please let me know) we will find that for sole recording purpose there is a video container that shows the video. Initially it shows the currently being captured video and once the recording is stopped it shows the streamed video of the just recorded stream. This events are triggered by the buttons on SWF video. It uses the oflaDemo Red5 Application provided as demo with the server. All streamed videos are stored in {RED5_HOME}/webapps/oflaDemo/streams/.
Now lets look at the code used for this purpose. The first task is to open an stream when we intend to record something.
var nc:NetConnection = new NetConnection();The second thing that we can do is detect and select the capture devices.
// connect to the local media server
// rtmp://{host}:{port}/{Red5_application_context}
// default port is 1935
nc.connect("rtmp://localhost/oflaDemo");
// create the netStream object and pass the netConnection object in the
// constructor
var ns:NetStream = new NetStream(nc);
// get references to the camera and micNow above we selected the default devices but we could Camera.names to get the names of the capture devices and select the one that we want; this is something that YouTube does :). Next we need to configure the video capture stream.
var cam:Camera = Camera.get();
var mic:Microphone = Microphone.get();
// setting dimensions and framerateNext we need to add the device streams to the capture stream.
cam.setMode(320, 240, 30);
// set to minimum of 70% quality
cam.setQuality(0,70);
//Setting sampling rate to 8kHz
mic.setRate(8);
// This FLV is recorded to webapps/oflaDemo/streams/ directoryAfter that we need to add the camera to the container and publish the video.
// attach cam and mic to the NetStream Object
ns.attachVideo(cam);
ns.attachAudio(mic);
// attach the cam to the videoContainer on stage so we can see ourselvesNow once the recording is just clear the video container and the captured stream to the container and specify the stream to play the just recorded video
videoContainer.attachVideo(cam);
// Publish the video and mention record
// lastVideoName is the name of the video and it will be saved as ]
// lastVideoName.flv
ns.publish(lastVideoName, "record");
// attach the netStream object to the video objectHopefully with these steps a video recording and stream playback should be possible.
videoContainer.attachVideo(ns);
// play back the recorded stream
ns.play(lastVideoName);
Video Recording using Flash
Labels:
flash,
Red5,
video streaming
Stickies on Ubuntu
add to del.icio.us
with other 0 users
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/feisty.list -O /etc/apt/sources.list.d/winehq.listFor other platforms you can have a look at http://www.winehq.org/site/download. Then you have to simply download the stickies.exe and then execute
sudo apt-get update
sudo apt-get install wine
wineBut hold on the installation is not done, you need get the following the installation steps mentioned in{PATH-TO-STICKIES}/stickies.exe
http://appdb.winehq.org/appview.php?iVersionId=5169&iTestingId=4356
scroll down to Install Note and follow that. The only change will be installing the MSI file, instead of the one mentioned there use the following to install the MSI file
wine msiexec /i/{PATH-TO-MSI}MSISetup.MSI
Now try to execute
wine/.wine/ {PATH-TO-STICKIES-INSTALLATION}/stickies.exe
It might say that MFC42.dll is missing, if it says so please get it from a Windows installation and copy it to
Hopefully that will be enough for Stickies Installation :).
Now to get the Stickies running you can execute the following command:
sudo wine ~/.wine/drive_c/Program\ Files/stickies/stickies.exe > {PATH-TO-LOG}Though this is for Ubuntu but I guess excepting the installation procedure rest should be same across Linux platform. Let me know if any further changes were required.2>&1 &
Stickies on Ubuntu
Subscribe to:
Posts (Atom)

