Help with create Processor in JMF

107 views
Skip to first unread message

Sachin Gupta

unread,
Aug 19, 2009, 9:02:58 AM8/19/09
to jiitsunclub
Tags: javax.media.NoProcessorException: Cannot find a Processor for: c:
\b.avi

Hi experts,
I am facing a problem with jmf processor
It is not able to create processor. I even tried to create a
DataSource but again NoDataSourceException was there.

here is the code snipplet.


public Processor p;

public NewJFrame()
{
String url="c:\\b.avi";
MediaLocator ml=new MediaLocator(url);

FrameAccess fa=new FrameAccess();

if(!fa.open(ml))
{ }
}

public boolean open(MediaLocator ml)
{
try
{
//Manager.setHint(Manager.LIGHTWEIGHT_RENDERER, true);
//p=Manager.createProcessor(new URL("c:\\b.avi"));
p = Manager.createProcessor(ml);

//p=javax.media.Manager.createProcessor(ml);
}
catch (Exception e)
{
System.out.println("Failed to create a processor from the
given url: " + e);
return false;
}
return true;
}

Please Help me through this.
Thank You
Reply all
Reply to author
Forward
0 new messages