Java DTV API 1.3
18-Nov-2009

com.sun.dtv.media.dripfeed
Interface DripFeedControl

All Superinterfaces:
Control

public interface DripFeedControl
extends Control

This Control allows to feed in progressively parts of a clip into a Player.

In the following example the frames that have to be displayed by the Player are stored individually in byte arrays.

 ...
 // Create a new MediaLocator and instantiate a new Player object
 MediaLocator dripLocator = new MediaLocator("dripfeed://");
 player = Manager.createPlayer(dripLocator);

 // retrieve a DripFeedControl from the Player
 dripControl = (DripFeedControl)player.getControl("com.sun.dtv.media.dripfeed.DripFeedControl");

 // get the OutputStream from the DripFeedControl
 OutputStream writeToPlayer = dripControl.getOutputStream();
 BufferedOutputStream bufStream = new BufferedOutputStream(writeToPlayer, maxFrameSize);
 bufStream.write(frame);
 


Method Summary
 OutputStream getOutputStream()
          Retrieves an OutputStream from the Control that can be used to write still pictures data to the Player from which the Control is retrieved.
 
Methods inherited from interface javax.media.Control
getControlComponent
 

Method Detail

getOutputStream

OutputStream getOutputStream()
                             throws IOException
Retrieves an OutputStream from the Control that can be used to write still pictures data to the Player from which the Control is retrieved.

Returns:
output stream that can be used by the application to write to the JMF Player
Throws:
IOException - in case the Player can not handle the data written to the OutputStream

Java DTV API 1.3
18-Nov-2009

Copyright © 2008-2009 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. All rights reserved.

U.S. Government Rights - Commercial software. Government users are subject to the Sun Microsystems, Inc. standard license agreement and applicable provisions of the FAR and its supplements. Sun, Sun Microsystems, the Sun logo and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.Products covered by and information contained in this service manual are controlled by U.S. Export Control laws and may be subject to the export or import laws in other countries. Nuclear, missile, chemical biological weapons or nuclear maritime end uses or end users, whether direct or indirect, are strictly prohibited. Export or reexport to countries subject to U.S. embargo or to entities identified on U.S. export exclusion lists, including, but not limited to, the denied persons and specially designated nationals lists is strictly prohibited.

DOCUMENTATION IS PROVIDED AS IS AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.

Use of this document is subject to license terms.