Flash Player Detection
For running any ICEspresso application, the current ICEspresso Chat Framework requires the browser has Flash Player plug-in (v8.0.0 or above) installed.
So add javascript codes for the Flash Player detection in your web page and alert user to the lack of Flash Player plug-in should be a good idea.
There is an article on Adobe web site talks about the solution for Flash Player detection and provides a sample kit for downloading.
The Client-side detection method is the one ICEspresso needs. After download the sample kit, just look for three files in the zip:
1. ClientSideDetection.html: the client-side detection sample page.
2. AC_OETags.js: the javascript library for Flash Player detection.
3. example.swf: the sample Flash movie.
Open ClientSideDetection.html in any text editor then copy-and-paste the codes to your ICEspresso application page.
The necessary parts are:
Code:
<script src="AC_OETags.js" language="javascript"></script> | |
<script language="JavaScript" type="text/javascript"> | |
<!-- | |
// ----------------------------------------------------------------------------- | |
// Globals | |
// Major version of Flash required | |
var requiredMajorVersion = 8; | |
// Minor version of Flash required | |
var requiredMinorVersion = 0; | |
// Minor version of Flash required | |
var requiredRevision = 0; | |
// ----------------------------------------------------------------------------- | |
// --> | |
</script> |
and
Code:
<script language="JavaScript" type="text/javascript"> | |
<!-- | |
// Version check based upon the values entered above in "Globals" | |
var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision); | |
| |
// Check to see if the version meets the requirements for playback | |
if (hasReqestedVersion) { | |
// if we've detected an acceptable version | |
// embed the Flash Content SWF when all tests are passed | |
AC_FL_RunContent( | |
"src", "example", | |
"width", "550", | |
"height", "200", | |
"align", "middle", | |
"id", "detectionExample", | |
"quality", "high", | |
"bgcolor", "#FFFFFF", | |
"name", "detectionExample", | |
"allowScriptAccess","sameDomain", | |
"type", "application/x-shockwave-flash", | |
'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab', | |
"pluginspage", "http://www.adobe.com/go/getflashplayer" | |
); | |
} else { // flash is too old or we can't detect the plugin | |
var alternateContent = 'Alternate HTML content should be placed here.<BR>' | |
+ 'This content requires the Adobe Flash Player. ' | |
+ '<a href=http://www.adobe.com/go/getflash/>Get Flash</a>'; | |
document.write(alternateContent); // insert non-flash content | |
} | |
// --> | |
</script> |
You may change the logic of
if (hasReqestedVersion) {…}
to what you want to act once required Flash Player plug-in has been installed.
See how ICEspresso proactive update your friends' status in push way
A new demo about proactive update your friends’ status in push way is presented on ICEspresso official site.
The demo is programmed with PHP to illustrate how an user can see the presence (online, offline, or in which chatroom) of his/her 3 friends.
Beside the chatting, if you need ICEspresso to help you on displaying the member status in a social network software or community, you can easily adopt ICEspresso to integrate with the friend list.
>>> See the demo
>>> Download the source package
ICEspresso Chat Framework v0.9f released
The updated package ICEspresso Chat Framework v0.9f had been released.
Changes from v0.9e to v0.9f:
——————————————————————————————————————————————
[Nov. 26, 2008] v0.9f
- Fix: a race condition that may result in deadlock during initialization phase.
——————————————————————————————————————————————
[Doc] How to customize your MapGame
We add a new document “How to customize your MapGame” today.
Hope it can help you easily start building your own game.
Check the document: How to customize your MapGame
API Reference package (v0.9e) had been released
The API Reference had been packed in HTML format. Developer can download the package (.zip) from SourceForge.net.
ICEspresso Chat Framework v0.9e released
The updated package ICEspresso Chat Framework v0.9e had been released.
Changes from v0.9c to v0.9e:
——————————————————————————————————————————————
[Nov. 07, 2008] v0.9e
- Add: FRIEND_QUITROOM event has been added to complement FRIEND_JOINROOM event.
- Mod: disconnect() now reset the Framework’s state to address
[Nov. 03, 2008] v0.9d
- Fix: fixed joinRoom(roomNme) method. joinRoom now performs a thorough sanity check on roomName.
roomName can only contains alphanumerical characters and must not exceed 32 characters.
——————————————————————————————————————————————
how to start building your MapChat
Follow steps below to start your own MapChat:
1. Get your Google Maps API key.
Note: Google will ask you to provide a web site URL for running the map application. But it is allowable while the map application runs under your local web (http://localhost/).
2. Download the MapChat source. Right-click then save as the mapchat.html file.
3. Open the mapchat.html in any editor and find the string “key=".
4. Replace the key value with your Google Maps API key obtained in step 1.. The following code snippet shows the key location (watch the “REPLACE_YOUR_KEY_HERE").
Code:
<script src="http://maps.google.com/maps?file=api&v=2&key=REPLACE_YOUR_KEY_HERE" type="text/javascript"></script> |
5. Get your free ICEspresso Chat connection pool account. You should get an account with user ID and password.
6. Find the string “user” in mapchat.html source.
7. Replace the values of user ID and password with the account you obtained in step 6.. As following code snippet shows.
Code:
user: "REPLACE_YOUR_USERID_HERE", | |
password: "REPLACE_YOUR_PASSWORD_HERE" |
When user clicks the marker on map, currently, it will open a dialog box like this:

If you want the marker to show different information, you may proceed the following steps:
8. Find the string “marker.attr” in mapchat.html source.
9. Replace the values of following attributes:
Code:
topic: "REPLACE_YOUR_TOPIC_HERE", | |
about: "REPLACE_YOUR_ABOUT_HERE" |
Note: The value of about attribute can contain HTML string.
10. Save the mapchat.html and run it under your live or local web.
package v0.9c officially released
We are so great to announce here: ICEspresso Chat Framework had been officially released today.
Javascript developers can download the package from SourceForge.net.
ICEspresso Chat Framework is an open source project and it applies MIT License. Means you can feel free to use, modify, and distribute it as you keep the copyright announcement in the starting section of the library file icespressochat.js.
ICEspresso Team will keep developing the Framework and the backend ICEspresso Service.
Developer is welcomed to request our support on any ICEspresso application development issue.
Meet us on ICEspresso Forum.
demos production
Thanks for team’s works. The demos production tasks are going well. We had done with the Hello and Chatroom demos, Mapchat and Mapgame will go live soon.
Really excited.
Have a good day, guys.
Cheers.
we are preparing for web launch
The ICEspresso official web site has been developed for a while. Even it is not 100% perfect, but we gotta launch it in the near future.
Hoping we can get more feedback on the using of ICEspresso Chat Framework from web developers.
Please keep watching the URL: http://www.icespresso.net.