2 Replies Latest reply: May 17, 2008 12:28 AM by 843851 RSS

    Issue with OCAP: Playing a video file in Vison Workbench

    843851
      Hi All,

      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

      Sourub.
        • 1. Re: Issue with OCAP: Playing a video file in Vison Workbench
          843851
          Hello Sourab,

          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:

          JPEG
          PNG
          GIF
          MPEG-2 I-Frames
          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.

          Regards,

          Tim Wilson
          Vidiom Support
          • 2. Re: Issue with OCAP: Playing a video file in Vison Workbench
            843851
            Hi Tim Wilson,


            Thanks for your reply,

            I understand that it will play only the above specified formats.

            Yes, I need to play the video as part of my application.

            Thanks,
            Sourab.