O'Reilly logo

MPEG-4 Book, The by Touradj Ebrahimi, Fernando Pereira

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

E.3. Network APIs

This section illustrates how to use the Network APIs through a simple example that enables and disables channels. Here the MPEGlet Net_Example obtains a handle to the NetworkManager through the MpegjTerminal. Using the NetworkManager object, the MPEGlet obtains the ChannelController object. The MPEGlet uses the ChannelController to enable and disable a channel.

 import org.iso.mpeg.mpegj.resourceManager.*; import org.iso.mpeg.mpegj.scene.*; import org.iso.mpeg.mpegj.*; import org.iso.mpeg.mpegj.net.*; public class Net_Example implements MPEGlet{ MpegjTerminal mpegjTerminal; private NetworkManager netManager; ChannelController cc; public void Net_Example() { } public void init(){ mpegjTerminal = new MpegjTerminal(MPEGlet); try ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required