Appendix E
Infrared Remote Controls
The following is an example of programming for the remote control in an application:
Remote Control Implementation
The IR port is active by default. No additional configuration is required.
You will need to embed the global.ir object into your application code in order for your applications to
perform the expected action when the end user presses a button on the remote control.
if(!filterIR){
filterIR = true;
document.getElementById("trace").innerHTML = "IR pressed key code: "+key+"
("+skey+")";
switch(skey){
case "play":
HUD("play");
playVideo();
break;
case "pause":
HUD("pause");
togglePause();
break;
case "fastforward":
HUD("fwd");
playNextTrack();
break;
case "rewind":
HUD("rewind");
playPrevTrack()
break;
case "stop":
HUD("stop");
stopVideo();
break;
case "right":
HUD("right");
selectNext();
break;
case "left":
HUD("left");
selectPrevious();
break;
case "okay":
HUD("play");
playSelected();
break;
case "power":
window.location = "index.html";
default:
break;
}
irFilterTimeout = setTimeout(function(){filterIR=false}, 750);
}
Cisco Interactive Experience Client 4600 Series User Guide
Cisco Remote Control IEP-IR-K9
E-9