I tried to play a video file(*.avi) file in Vision Workbench. When i tried to create a player with "Manager.createPlayer()"
It gives the NoPlayerException.
This is the sample i have tried,
locator = new javax.media.MediaLocator("file://c://file.avi");
DataSource ds = Manager.createDataSource(locator);
player = Manager.createPlayer(ds); // Here the Exception is thrown
I could not able to find out the mistake..
Please can any one help me out on this...
Thanks in Advance
The issue you are running into is a matter of supported formats. The formats supported by OCAP are outlined in section 9 of the OpenCable Application Platform Specification (http://www.cablelabs.com/specifications/OC-SP-OCAP1.0.1-070824.pdf) and section 7 of the MHP 1.0.3 (http://www.mhp.org/documents/mhp_Ts101812.V1.3.1.pdf.zip). Here is the list of supported static (non-broadcast) image/video formats:
MPEG-2 video drips
You will notice that AVIs is not included in this list. Neither, really, are any full video file formats. The APIs are certainly there to support playing a video file included with an application, but OCAP does not require it. And, the version of OCAP stack built into VISION Workbench does not support it.
Is this video you want to be able to play as part of your app? Or, are you trying to imitate a tuning to a certain channel? If it is the latter, there are other ways to accomplish this.