2 Replies Latest reply on Jul 26, 2012 5:45 AM by leejk

    FLVPlayback Not Opening MP4 Videos In AIR 3.3

    leejk Level 1

      Hello,

       

      I have created a custom video player using the FLVPlayback component in Flash CS6 and published it as an swc file. Using the custom video player in Flash works fine, as it will load and play mp4 videos. In my AIR desktop applocation, when I use the custom video player, it will play flv & f4v files fine, but it will not play mp4 videos. When I debugg it in Flash Builder and try to play an mp4 video, I get this error:

       

      VideoError: 1000: Unable to make connection to server or to find FLV on server

                at fl.video::VideoPlayer/play()

                at fl.video::FLVPlayback/http://www.adobe.com/2007/flash/flvplayback/internal::showFirstStream()

                at fl.video::FLVPlayback/http://www.adobe.com/2007/flash/flvplayback/internal::handleVideoEvent()

                at flash.events::EventDispatcher/dispatchEventFunction()

                at flash.events::EventDispatcher/dispatchEvent()

                at fl.video::VideoPlayer/http://www.adobe.com/2007/flash/flvplayback/internal::setState()

                at fl.video::VideoPlayer/ncConnected()

                at fl.video::NCManager/helperDone()

                at fl.video::SMILManager/http://www.adobe.com/2007/flash/flvplayback/internal::xmlLoadEventHandler()

                at flash.events::EventDispatcher/dispatchEventFunction()

                at flash.events::EventDispatcher/dispatchEvent()

                at flash.net::URLLoader/onComplete()

       

       

      I have double checked my video file paths and everything, and they are correct. So what else could be causing this?

       

      thanks

        • 1. Re: FLVPlayback Not Opening MP4 Videos In AIR 3.3
          leejk Level 1

          I've done some more debugging in Flash Builder, and if the source of the FLVPlayback is set without calling the play method, I'm getting this error now:

           

          TypeError: Error #1090: XML parser failure: element is malformed.

           

                    at fl.video::SMILManager/http://www.adobe.com/2007/flash/flvplayback/internal::xmlLoadEventHandler()

                    at flash.events::EventDispatcher/dispatchEventFunction()

                    at flash.events::EventDispatcher/dispatchEvent()

                    at flash.net::URLLoader/onComplete()

           

          If I look at the value of URLLoader in the debugger, it is all a bunch garbled symbols and text, which implicates to me that the FLVPlayback component is somehow mistaking my video path for a xml path. What would cause it to think I am trying to load an xml?

          • 2. Re: FLVPlayback Not Opening MP4 Videos In AIR 3.3
            leejk Level 1

            I will answer my own post. It turns out that 2 of the swc libraries used in my project had an instance of the flvplayback component. Removing these fixed the problem. Somehow these were corrupting the functionality of the component.

             

            rgds