7 Replies Latest reply on Feb 3, 2010 3:08 PM by swenrich

    VerifyError: Error #1053

    swenrich

      Any idea why I'm getting the following error?

       

      VerifyError: Error #1053: Illegal override of play2 in org.osmf.net.dynamicstreaming.DynamicNetStream.

        • 1. Re: VerifyError: Error #1053
          bringrags Level 4

          Are you using a sample app?  Loading a plugin?  Loading a SWF?

          • 2. Re: VerifyError: Error #1053
            RyanOConnell

            This is usually caused by a mismatch of flash player / swc. You need flash player 10 and make sure your publish settings in flash / flex are set to player 10.  Right click on your player, goto the About..., and verify it is version 10 or higher.

            • 3. Re: VerifyError: Error #1053
              swenrich Level 1

              I'm trying to use MediaPlayerWrapper with a VideoElement accessing a a local .flv in AIR...

               

              <?xml version="1.0" encoding="utf-8"?>
              <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
                                      layout="absolute"
                                      xmlns:samples="org.osmf.samples.*"
                                      creationComplete="init(event)">
                  <mx:Script>
                      <![CDATA[
                          import org.osmf.utils.URL;
                          import org.osmf.media.URLResource;
                          import org.osmf.video.VideoElement;
                         
                          private var file:File = File.applicationStorageDirectory.resolvePath("video.flv");

               

                          private function init(e:Event):void
                          {
                              var ve:VideoElement=VideoElement(new URLResource(new URL(file.nativePath)));
                              mpw.element=ve;
                          }
                      ]]>
                  </mx:Script>

               

                  <samples:MediaPlayerWrapper id="mpw"/>

               

              </mx:WindowedApplication>

               

              I get the error on the creation of the VideoElement. I'm using Flex 3.5 SDK with AIR 1.5.3 SDK overlayed. I also got the Example Player to compile using my local setttings.

              • 4. Re: VerifyError: Error #1053
                bringrags Level 4

                Looks like you're missing a "new":

                 

                var ve:VideoElement = new VideoElement(new URLResource(new URL(file.nativePath)));

                • 5. Re: VerifyError: Error #1053
                  swenrich Level 1

                  sorry... just a typo... still getting the same error...

                  • 6. Re: VerifyError: Error #1053
                    bringrags Level 4

                    When I add the "new" back in and copy a video.flv file to the app storage directory, everything works fine for me (although I'm on an earlier Flex SDK).  I suspect the problem is related to how you overlaid the AIR SDK on top of the Flex SDK (as that's the most likely culprit for a VerifyError, as Ryan suggests).

                    1 person found this helpful
                    • 7. Re: VerifyError: Error #1053
                      swenrich Level 1

                      You're correct... it was a myriad of configuration issues... thank you for your help...