PhonoSDK Java Applet

December 13th, 2011 by cmatthieu

Phono Version 0.3 now supports Java Applets in addition to Flash!  Our Java Applet has even lower latency on VoIP calls which is perfect for enterprise call centers or controlled environments that want HD audio / Wideband call performance with very low latency measured in milliseconds.

Note: For most consumer-facing sites, we still recommend using Flash due to its more pervasive deployment base.

If you would prefer to use our Java Applet on the desktop, we have provided a new audio property on Phono and a Java Applet availability detector. It sets the desired audio client to engage on the web browser or mobile device. Valid options include: auto, flash, java, and none.  This property is optional and is defaulted to auto which means:

  • if on desktop, flash
  • if on android, android
  • if on ios, ios

We have provided a handy Java detection utility that can used like so.  Note: If Java is not detected, Phono will fallback to Flash.

$(document).ready(function(){
var audioType = 'auto';
if (navigator.javaEnabled()) {
    audioType = 'java';
}

Once you have determined if Java is installed on the your client, you can now set the audio property when initializing Phono in your jQuery script like so:

var phono = $.phono({
  apiKey: "YOUR_KEY_GOES_HERE",
  audio: {type:audioType},
  onReady: function(event) {
   // stuff
 }
});

Note: If you are running MacOS Lion, you may need to follow these instructions for getting Java applets to automatically load in your web browser.

No related posts.

Tags: , , , ,

Leave a Reply

Please note: By submitting a comment you agree to comply with our Comment Policy. We welcome all comments, positive or negative, but do reserve the right to remove all or part of blog comments that do not comply with our policy.

Additionally, the first time you leave a comment on this blog, it will be held for moderation. After that first comment has been approved, future comments will be posted without delay.