Вы находитесь на странице: 1из 5

Next Blog» Create Blog | Sign In

Technology makes life easier


It's all about the technology. Java to Flash. Swing to Flex, SCJP and more

Monday, April 02, 2007 Success quote


Shared Whiteboard application in Red5 Lack of will power has causes
more failures than lack of
Working with Red5 server is a fun, In the last tutorial, I have created a
intelligence or ability.
sample application in Red5. Now this time, I will try to explore the
conecpt of shared objects in Red5 using an example of shared
whiteboard. Labels

Flash (14)
Creating a simple shared whiteboard application in red5 is very easy, All
you need is to get the corrdinates and put them in the shared object Red5 (11)
and let shared object work for you.
java (9)
On Client Side:- We have a shared object say Flex (6)

var whiteboard_SO:SharedObject = SharedObject।getRemote Adobe (4)


("whiteboard",nc.uri,"false");
Applet (4)
Now when we move mouse pointer over a movie clip for drawing , we Whiteboard (3)
capture the xmouse and ymouse to send them to server. For Example.
H.264 (2)
sample_MC.onPress = function(){ MVC (2)
//Send xmouse and ymouse to server along with "press" event string
NetConnectionObj.call("somemethod", null,param1, Swing (2)
param2,param3); //sending values
Unit Testing (2)
};
desktop sharing (2)
sample_MC.onMouseMove = function(){
//Send xmouse ymouse along with "move" event string google (2)
NetConnectionObj.call("somemethod", null,param1, yahoo (2)
param2,param3); //sending values
} Action script 2.0 (1)
Now on server(java) side change the shared object with these values
Actionscript 2.0 (1)

E.g. Adsense (1)

AsUnit (1)
public void somemethod(Object[] params){
whiteboard_SO.setAttribute("point",params[0].toString()+":"+params Certification (1)
[1].toString()+":"+params[2].toString());
// The above code will fire the onSync event on all connected clients. Chat (1)
} Junit (1)

Now on Client side :- Khojguru (1)

Microhoo (1)
Whiteboard_SO.onSync = function(infolist){
// Inside the change event we will get the xmouse and ymouse and Microsoft (1)
press string
//If event string is press, jump to new line(i.e. lineto(x,y)) RIA (1)
//If event string is move, move with drawing(i.e. moveto(x,y)) RTMPS (1)
}
Ruby on Rails (1)
This way , A shared whiteboard can easily be created.
SSL (1)

To create a new Red5 application , follow my post here Slideshare (1)


Generated by www.PDFonFly.com
Reference:- SocketAppender (1)
Create whiteboard application with Flash communication server Stunnel (1)

♠Del.icio.us Add to del.icio.us Tomcat (1)


♠Digg DiggIt!
♠Reddit Reddit Watir (1)
♠Stumbleupon Stumble This
Webyantra (1)
♠Google Bookmarks Add to Google Bookmarks
♠Yahoo My Web Add to Yahoo MyWeb XML (1)
♠Technorati Add to Technorati Faves
♠Slashdot Slashdot it gadget (1)

javaranch (1)
Posted by Sunil Kumar Gupta at 7:56 AM

Labels: Flash, Red5, Whiteboard log forwarding (1)

log4j (1)

openlaszlo (1)

windows vista (1)


1 comments:
Sunil Kumar Gupta said...
Search
I was working on a sample whiteboard application but due to lack of
time, i have left it in the middle, flash client side development is almost
ready, the server side part done are freehand, line.

You can check and download the code from here and can modify
according to your needs
i
j
k
l
m
n j sunil-
k
l
m
n
Web gupta.blogspot.com
http://code.google.com/p/red5-shared-whiteboard/
Search
7:54 PM

Post a Comment Blog Archive

▼ 2008 (5)
▼ March (1)
Newer Post Home Older Post Red5 ready for H.264
Subscribe to: Post Comments (Atom)
► February (3)

► January (1)

► 2007 (12)

► 2006 (17)

Latest Comments

Hi Mypleasure,I have not used


any encoder for enco...

What codec are you using to


encode the desktop vid...

Hi Mario,I am thinking the


same, it seems a proble...

Thanks for your fast


answer.Do you have a
rtmps-te...

Hi Mario,When i worked with


it, My testing server ...

Generated by www.PDFonFly.com
Join Now

Did you like it?

Subscribe here to get


updated

Enter your email address:

Subscribe

Delivered by FeedBurner

SCJP preparation

Java Ranch

Study Guide

WitScale's Notes

Whizlabs

PayPal

Blogs

Red5 flash server

Jwamicha

WebYantra

Amit Ranjan

Jon

Rashmi Sinha

Kapil

Kamal

Interview Questions
Generated by www.PDFonFly.com
Java

JSP

JDBC

Swing

Slideshow - - My album
Loading...

About Me

SUNIL GUPTA

I am working as
a Sr. Software
Engineer in a
leading software company.

View my complete profile

Success quote

formula of success is hard


work + dedication.

Advertisement

Feeds and links

LinkedIn

LinkedIn Profile

Tags

View blog top tags

Recent Visitors

Blog Catalog Blog Directory


Generated by www.PDFonFly.com
BlogCatalog Blog Directory

Blog Explosion

Search Source Code

Search Source Code

My Music

Link Exchange

#1 Free Link Exchange


Directory On The Web - Link
Market
Have you ever tried to
exchange links, swap links, or
trade links? Was it hard? Use
link market instead; - it is
easy to use, free and very
smart. It will save you hours
of work.

Free Domains @ .co.nr


Get a free domain name like
www.YourName.co.nr with the
following features included: free
URL redirection with cloaking,
path forwarding, all meta-tags
supported, kill-frame feature,
NO forced ADS at all, and more.

Take a look
Take a look

Generated by www.PDFonFly.com

Вам также может понравиться