6 Replies Latest reply on May 3, 2010 6:10 PM by FTQuest

    Flex4 VideoPlayer sound problem

    FTQuest Level 3

      It seems that there is a problem with sound in the Spark VideoPlayer in video that's been encoded in H.264.

      If I start playing from the very beginning of the clip, everything works fine.

      But if I set 'autoPlay' to 'false' and start the video not from the beginning, i.e. click somewhere in the seekBar, there is no sound. Once I jump to the very beginning of the clip the sound appears, and from that point I can play the clip from any section. Once I reload the video, the story is repeated.

       

      This does NOT happen with flv files.

       

      Also, I don't believe that this problem existed back in the beta version, even after the VideoPlayer became OSMF based.

       

      FTQuest

        • 1. Re: Flex4 VideoPlayer sound problem
          Peter deHaan Level 4

          Can you please file a bug at http://bugs.adobe.com/flex/ and include a simple test case (and video file, if possible).

           

          Peter

          1 person found this helpful
          • 2. Re: Flex4 VideoPlayer sound problem
            FTQuest Level 3

            I'm not a member.

             

            As to the test case it's as simple as:

             

            <?xml version="1.0" encoding="utf-8"?>

            <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"

               xmlns:s="library://ns.adobe.com/flex/spark"

               xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">

             

            <s:VideoPlayer source="..." autoPlay="false" />

            </s:Application>

            The first time you try to play the video, if you click at any spot of the seekBar except the very beginning, the video is playing, but there is no sound. Once you start the clip from the very beginning it's fine; and from that point on - everything works as expected. Once you reload the clip - the problem is there. (it doesn't affect flv)
            Sorry,
            FTQuest

            • 3. Re: Flex4 VideoPlayer sound problem
              Peter deHaan Level 4

              I dont think I'm able to reproduce the issue.

               

              Using the following example:

               

              <?xml version="1.0" encoding="utf-8"?>
              <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                             xmlns:s="library://ns.adobe.com/flex/spark"
                             xmlns:mx="library://ns.adobe.com/flex/mx">
                  
                  <s:VideoPlayer source="FantasticFour_RiseoftheSilverSurfer_Trailer.mp4"
                                 autoPlay="false" 
                                 width="400" height="300" />
                  
              </s:Application>
              

               

              And the H.264 video from http://www.h264info.com/clips.html, when I run the app the video is initially paused. If i click 3/4s of the way through and then press play, I get audio as expected.

               

              Peter

              • 4. Re: Flex4 VideoPlayer sound problem
                FTQuest Level 3

                It's quite puzzling.

                 

                I use the very same clip - "Fantastic Four ...", and the very same code and yet, time after time the effect is there.

                I even changed the workspace. The problem is reproducible 100%

                 

                Peter, could you try it on Mac (I'm on iMac 27", icore7, OS X 10.6.3)?

                 

                Thanks,

                FTQuest

                • 5. Re: Flex4 VideoPlayer sound problem
                  Peter deHaan Level 4

                  Unable to repro on my iMac w/ Flex 4.1 beta, OSX 10.5.8, and Flash Player 10.1.53.10 (debug).

                   

                  Peter

                  • 6. Re: Flex4 VideoPlayer sound problem
                    FTQuest Level 3

                    Thank you Peter.

                     

                    I followed your implicit advice and installed the latest Flash Player from the labs and the latest nightly build of SDK.

                    The problem is gone.

                    Given the consistency of the problem, I don't exclude the possibility that should I reinstall the FlashBuilder (not that I'm going to) the problem would re-appear.

                     

                    Thank you,

                    FTQuest