Xlet

del.icio.us del.icio.us
Digg Digg
Furl Furl
Reddit Reddit
Rojo Rojo
Add to OnlyWire

An Xlet is very similar to a Java applet and is designed to support applications for Digital TV. Xlets, unlike applets, can be paused and resumed. The Xlet interface is part of Sun's Java TV specification. Xlets provide a pause/resume feature is essential for a Set-top box (STB) environment, which has limited memory resources and restrictions on bandwidth from the headend provider. The current practice and intent of the Xlet framework is to provide downloadable applications for Connected Device Configuration (CDC) platforms. In particular, the BD-J platform uses Xlets as its programming framework.[1]

While Sun has provided a Java TV reference implementation within which they provide a simple Xlet runner called RunXet, at least one other open-source effort to implement an Xlet run has been made.[2]

Code examples

The interface for an Xlet is defined in the java.tv.xlet package:

public interface Xlet {
  public void initXlet(XletContext ctx)
    throws XletStateChangeException;
 
  public void startXlet()
    throws XletStateChangeException;
 
  public void pauseXlet();
 
  public void destroyXlet(boolean unconditional)
    throws XletStateChangeException;
}

thus example of stub Xlet is

import javax.tv.xlet.XletStateChangeException;
import javax.tv.xlet.XletContext;
import javax.tv.xlet.Xlet;
 
public class BasicXlet implements Xlet {
    public BasicXlet () {}
    public void initXlet (XletContext context) throws XletStateChangeException {}
    public void startXlet () throws XletStateChangeException {}
    public void pauseXlet () {}
    public void destroyXlet (boolean unconditional) throws XletStateChangeException {}
}

Notes

  1. ^ "An introduction to Xlets". Interactive TV Web (2005-09-14). Retrieved on 2006-06-21.
  2. ^ XleTView - an open-source project to implement a Java-based Xlet runner, also supporting Multimedia Home Platform (MHP) (not updated since 2004, based on JRE 1.1.8)

This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License.


Giant Panda

Mercedes Car
James Bond Guide
This site monitored by SitePinger.net