rtpDataStream = (net.sf.fmj.media.rtp.RTPDataStream)pbs;
System.out.println("### rtpDataStream=" + rtpDataStream.getClass());
}
}
Player player = javax.media.Manager.createRealizedPlayer(ds);
System.out.println("### player=" + player.getClass().getName());
if ( !isVideo )
{
Object[] pcontrols = player.getControls();
for (int i=0; i<pcontrols.length; i++)
{
if ( pcontrols[i] instanceof BufferControl )
{
BufferControl bc = (BufferControl)pcontrols[i];
System.out.println("### found BufferControl=" + bc.getClass());
System.out.println("### buffer length is " + bc.getBufferLength());
bc.setBufferLength(1000);
System.out.println("### buffer length is " + bc.getBufferLength());
}
else if ( pcontrols[i] instanceof FrameProcessingControl )
{
fpc = (FrameProcessingControl)pcontrols[i];
System.out.println("### found FrameProcessingControl=" + fpc.getClass());
}
}
}
else
{
Object[] pcontrols = player.getControls();
for (int i=0; i<pcontrols.length; i++)
{
if ( pcontrols[i] instanceof FrameRateControl )
{
frc = (FrameRateControl)pcontrols[i];
System.out.println("### found FrameRateControl=" + frc.getClass());
}
}
}
player.start();
Component vc = player.getVisualComponent();
if ( null != vc )
{
System.out.println("### visual component is " + vc);
JFrame aFrame = new JFrame();