This tutorial is for SVN revision 592, and should work for newer versions.

 

Live Whiteboard (Flash component)

R3 includes Flash integration. To use Flash to visualize ink that you are writing on a notebook, take a look at:

 

PaperToolkitDemos/src/edu/stanford/hci/r3/demos/

flash/LiveWhiteboard.java

 

If you run this file, it will load a local Flash GUI (*.swf) which will connect to your local streaming pen. However, you probably have not compiled the SWF files, if you do not have the Adobe SDKs installed. If you do not have the Flex SDK, you can download the precompiled flash binaries from:

 

 

Get the most recent zip file, and unzip it to PaperToolkit/flash. You should have a new bin/ directory at the same level as mm.cfg, apollo/, and the other flash related files/directories. Inside bin/ you should see a bunch of xml, html, and swf files, along with some directories.

 

You will also need to make sure you have Flash version 9,0,28,0 or greater. You can check this at: Flash Version Check

 

Flash Security

One final issue. Flash's security model prevents us from running local SWF files. That's probably a good thing. But since we want to run the stuff we've compiled, we'll need to tell Flash that certain directories are OK. To whitelist your flash/bin directory, run:

 

edu.stanford.hci.r3

flash.FlashSecurityRegistration.java

 

It will create a cfg file under your user's {HOMEDIR}/Application Data/Macromedia/Flash Player/#Security/FlashPlayerTrust/

The papertoolkit.cfg file whitelists a single path.

 

Now, if you go back and run LiveWhiteboard, and start writing on a notepad, you should see the results in a browser.

 

Notes:

  • Your pen must be in streaming mode. =)
  • Java 6 sometimes has problems finding the default browser. Just be patient; it should load the browser after a minute or so... If you experience this problem, take a look at the difference between:

 

edu.stanford.hci.r3

actions.types.OpenURLAction.java

actions.types.OpenURLAction2.java

 

 

While the first file uses the proper method, the second one seems to work faster on some machines. If enough folks run into this problem, I'll update:

 

edu.stanford.hci.r3

flash.whiteboard.FlashWhiteboard.java

 

to use the second method. Or, I'll get on Sun's case to fix Java once and for all.


Page Information

  • 1 year ago [history]
  • View page source
  • You're not logged in
  • No tags yet learn more

Wiki Information

Recent PBwiki Blog Posts