Text over video

Hi!!!

I'm coding a little program that loads a MPG movie and draws text over the movie. I have a problem in the next piece of code:

DataSource ds = Manager.createDataSource(fileURL);

ds.connect();

cds = (PushBufferDataSource) ds;

cds.getStreams()[0].setTransferHandler(this);

ds.start();

The problem arrives at the time of casting ds to PushBufferDataSource.

Anyone can help?

Thanks in advance.

[489 byte] By [bronze-starDukes] at [2007-11-26 12:15:39]
# 1
What is the problem? Is there an exception? etc.
silverstar at 2007-7-7 14:19:43 > top of Java-index,Archived Forums,Socket Programming...
# 2

You will need to provide a bit more info

PushBufferDataSource is abstract - as below

(public abstract class PushBufferDataSource)

Have you coded something that implements a PushBufferDataSource

This Sun sample code may help

http://java.sun.com/products/java-media/jmf/2.1.1/solutions/Cut.html

bronzestar at 2007-7-7 14:19:43 > top of Java-index,Archived Forums,Socket Programming...