5 Replies Latest reply on Jan 27, 2010 2:49 AM by George Medve

    Captioning Plugin - loading a local DFXP file?

    George Medve

      Hi,

      I am creating a CD-Rom presentation, the requirements of which are Video and multi-language captioning.

      I thought this would be a good opportunity to gain experience with OSMF.

       

      The first issue I have found is I can not get captioning to work from a local file.

       

       

      To help me understand the framework I thought I would build the Captioning Sample (osmf_source_s08/apps/samples/plugins/CaptioningSample)

       

      I am an FDT user rather than Flash Builder and have rebuilt the example as a Pure AS3 project, swapping Flex components for Flash CS3 components. Everything compiles and video with captioning works well.

       

      As I mentioned I am creating a CD-Rom so I need to load local files rather than over the internet.

      I can load local video by changing:

       

      private static const STREAM_URL : String = "flv/tests/video.flv";

       

      loadMedia ( STREAM_URL );

       

      private function loadMedia(url:String):void

      {

           var resource : IURLResource = new URLResource ( new FMSURL ( url ) );

       

      to

      private function loadMedia(url:String):void

      {

           var resource : IURLResource = new URLResource ( new URL ( url ) );

       

       

      Which works well, however changing the caption URL to a local path

      private static const CAPTION_URL : String = "flv/tests/caption.xml";

       

      stops the whole application and the video does not play.

       

      Can anyone offer any assistance on how I might get this working?

       

      Thanks in advance,

       

      George.