Custom JMF player for streaming content

Hello everyone,

I am new to this forum and a recent OCAP developer. I have been tasked to write an OCAP application that can play a streaming MPEG over the network using RTSP for communication. So far, I have been able to do the RTSP communication part and receive the MPEG packets from my server. The problem I am having is getting the default JMF player to decode and render the stream.

I am using Vidiom Workbench for my OCAP development. I have created a new DataSource (based on PushDataSource since the video server is unicasting the stream to my computer). When I try to use the default player "mPlayer1 = Manager.createPlayer(ds);", I get a "javax.media.NoDataSourceException".

The JMF books I have read say that I must register my new datasource with the PackageManager so that it can be found. But when I try to update my changes to PackageManager, I get a "java.lang.SecurityException: Commit not allowed". It turns out that in the MHP 1.0.3 spec, states that the SecurityException shall always be sent on commit() methods for PackageManager. The OCAP spec does not modify this, so it is true here as well.

Based on the information found, I have concluded that I have to write my own custom Player to use my custom DataSource. Are there any good sources of information that can explain how to write a custom JMF player for a unique datasource?

-jeng

hey, sir, can you paste your code to here?
I have met the same problem.

Not yet rated.