|
Java DTV API 1.0 12-Dec-2008 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public OutputStream getOutputStream() throws IOException
IOException
- in case the Player can not handle the data written
to the OutputStream
|
Java DTV API 1.0 12-Dec-2008 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |