17 Replies Latest reply: Jun 20, 2012 9:07 PM by xliii RSS

    flvplayback errors at times if video not in cache.

    xliii

      Hi,

      I've been trying to debug an issue with an application that uses the flvPlayback component 2.5.

       

      If I visit one of the links without the video in cache it can fail. Let me define intermitant as I've had varied testing results;

      - If the clip fails on the first visit to the page you can refresh and it will consistently play after that.

      - if the clips plays it will consistently play.

      - though I've tested this issue over a couple of weeks and the working and non working clips have  not been consistent over that period of time. At first I thought it had to do with clips that had meta data, though after getting these inconsistent testing results I'm not sure what to think.

       

      The swf does not return any errors and I've been logging to the browser console to try and debug but I can find no errors returned through console or the debug player. I cannot reproduce this issue in the IDE.

       

      Using Flash player version 11.3.3.. i haven;t tested any other player versions.

       

      Any help on the issue would be great as I'm at a dead end and running out of things to test. I need to resolve this issue ASAP so if theres a more appropriate place for this please let me know, I cannot even find a way to speak someone from adobe regarding this issue.

       

      ------------------------------------------------------------------------------------

       

      Steps to reproduce:

      1. clear your browser cache (Firefox)

      2. visit one of the below test links.

      3. The video will likely not load into the container on the first visit.

      4. Click refresh, and the video will play.

      5. clear your cache to test another link.

       

      Test links

       

      CDN source;-

      http://www.digitalfeast.com.au/clients/rmr/flvPlayerTests/flvPlayback.html

      http://www.digitalfeast.com.au/clients/rmr/flvPlayertests/flvPlayback2-5.html

      http://www.digitalfeast.com.au/clients/rmr/flvPlayerTests/flvPlaybackWorking.html

      http://www.digitalfeast.com.au/clients/rmr/flvPlayertests/flvPlayback2-5Working.html

      Local source;-

      http://www.digitalfeast.com.au/clients/rmr/flvPlayerTests/flvPlaybackLocal.html

      http://www.digitalfeast.com.au/clients/rmr/flvPlayertests/flvPlayback2-5Local.html

      http://www.digitalfeast.com.au/clients/rmr/flvPlayerTests/flvPlaybackWorkingLocal.html

      http://www.digitalfeast.com.au/clients/rmr/flvPlayertests/flvPlayback2-5WorkingLocal.html

        • 1. Re: flvplayback errors at times if video not in cache.
          xliii Community Member

          I should add that I've replicated the issue in Firefox, Chrome and IE. I've also confirmed this on different networks and PC's.

          • 2. Re: flvplayback errors at times if video not in cache.
            adninjastrator Community Member

            Couple of observations:

            First.. Links 1 and 3 work just fine, both CDN and local, 2 and 4 in both sections return "File not found".... so bad link or missing file.

            Second.. You're using 11.3.3.... bummer!! oh well, latest isn't always the greatest.

            Third... and most likely the main issue is the unorthadox <script> embed method. To test this theory, I'd suggest you test using at least a couple of other embed methods.

            To start, get rid of both:

            <script type="text/javascript" src="jQuery.js"></script>

            <script type="text/javascript" src="swfObject.js"></script>

            and test using the old <object> and <embed> method. While the code is not valid HTML, use it for testing purposes. ... see this sample and edit for your content of course..

            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="995" height="165">

                      <param name="movie" value="images/whw_banner_no_ds2.swf" />

                      <param name="quality" value="high" />

                <param name="wmode" value="transparent"/>

                      <embed src="images/whw_banner_no_ds2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="995" height="165" wmode="transparent"></embed>

            </object>

            Next, test using the single <object> method:

            <object data="path_to_file/file.swf" type="application/x-shockwave-flash" width="insert_width_of_movie" height="insert_height_of_movie">

              <param name="movie" value="path_to_file/file.swf">

              <param name="SomeOtherParam" value="ParamValue">

            </object>

            If either of these method provide consistant correct display, then I'd say its the <script> that is causing the issues.

            Best wishes,

            Adninjastrator

            • 3. Re: flvplayback errors at times if video not in cache.
              xliii Community Member

              Thanks so much for your reply, I hadn;t even thought to test through the swfObject/script tags.

               

              I'll test your suggestions and post back my results!

              • 4. Re: flvplayback errors at times if video not in cache.
                xliii Community Member

                Unfortunately I can replicate the issue even when using just Object tags.

                I've put up another test page which uses just the flvPlayback component with no ActionScript. It's just dropped onto the stage and the params set in the properties menu. The video is from a CDN location.

                 

                http://www.digitalfeast.com.au/clients/rmr/flvPlayerTests/flvPlaybackNoASorScript.html

                 

                 

                 

                Any further thoughts?

                • 5. Re: flvplayback errors at times if video not in cache.
                  adninjastrator Community Member

                  Plays just fine in FF but you are missing the

                  <param name="movie" value="path_to_file/file.swf">

                  which is required to display in IE.

                  Change that and then post a link back, exactly descriging the problems with the new page.

                  Testing the .swf directly.... works just fine in IE... as would be expected.

                  http://www.digitalfeast.com.au/clients/rmr/flvPlayerTests/flvPlayerNoAS2-5.swf

                  Adninjastrator

                  • 6. Re: flvplayback errors at times if video not in cache.
                    xliii Community Member

                    Thanks, I've updated one fo the test pages and added another pointing to a another clip on the CDN. As you point out even though the 'movie src' may be a required params it still worked for me in IE (IE9 that is) too, though the bug was present just like in FF or Chrome.

                     

                    http://www.digitalfeast.com.au/clients/rmr/flvPlayerTests//flvPlaybackNoASorScript.html

                    http://www.digitalfeast.com.au/clients/rmr/flvPlayerTests//flvPlaybackNoASorScriptWorkingC lip.html

                     

                    I'm still expieriencing the same issue. In both the examples the video does not load into the container on the first attempt if theres no clip in cache. If the clip fails to load the controls do load, the rest of the screen is just a white background though. Once you've loaded the page and downloaded just a few k of the clip, you can click refresh and the clip will play fine.

                     

                     

                    Out of interest which flash player version are you using?

                     

                     

                    Steps to reproduce:

                    1. clear your browser cache (Firefox,Chrome,IE)

                    2. visit one of the test links.

                    3. The video will likely not load into the container on the first visit.

                    4. Click refresh, and the video will play.

                    5. Clear your cache to test the same link again. Use browser menu to clear cache rather than a plug-in or similar.

                    • 7. Re: flvplayback errors at times if video not in cache.
                      adninjastrator Community Member

                      Sorry but every test I run... clear cache etc... all links, IE, FF, Safari, Chrome, multiple machines... they all play the video.

                      Multiple versions of Flash player... except maybe 11.3.3 (I never update to the newest of anything... pluggins or software) ...also multiple versions of IE, including IE9... all play the video.

                      Have you ever posted a Flash video on line before?

                      If so, can you test using that video instead of the one you are currently using?

                      In both the examples the video does not load into the container

                      Exactly what container are you talking about here? Do you see/not see the video player skin? the load progress bar is missing?

                      Have you tested your Internet download speed to see if the download speed is compatable with the bitrate of the video?

                      http://www.speedtest.net/

                      A very low dowload speed would make the video appear not to be downloading... yet waiting long enough, and it would download.

                      And an added note... I didn't mention

                      'movie src'

                      I said

                      <param name="movie" value="path_to_file/file.swf">

                      Best wishes,

                      Adninjastrator

                      • 8. Re: flvplayback errors at times if video not in cache.
                        adninjastrator Community Member

                        Just an addition:

                        3. The video will likely not load into the container on the first visit.

                        4. Click refresh, and the video will play

                        could also be explained by a slow Internet download speed... your first attempt downloads part of the file into the cache... then on your second attempt, the video plays because part of the file was already on your local machine.

                        Adninjastrator

                        • 9. Re: flvplayback errors at times if video not in cache.
                          xliii Community Member

                          Exactly what container are you talking about here? Do you see/not see the video player skin? the load progress bar is missing?

                          If the clip fails to load the controls do show, though the rest of the screen is just a white background.

                           

                          Have you tested your Internet download speed to see if the download speed is compatable with the bitrate of the video?

                          Yes, its fine. Though I've replicated this issue on multiple connections and PC's.

                          I've also ran the same FLV's through flowplayer which had no issues playing them on the first run.

                           

                          could also be explained by a slow Internet download speed... your first attempt downloads part of the file into the cache... then on your second attempt, the video plays because part of the file was already on your local machine.

                          Why would the video fail on the first attempt though? It doesnt play at all for me even if I was to wait 2 hours.

                           

                          And an added note... I didn't mention

                               Yes I know, I was saving myself the time typing out the code - you got the picture.

                           

                           

                           

                           

                          If you get a spare moment could you let me know one of the lfash player versions you are using? I might try reverting back my player a few versions and testing again.

                          • 10. Re: flvplayback errors at times if video not in cache.
                            adninjastrator Community Member

                            I just can not reproduce the problem in any browser on either of the machines I tested on.... video works just fine.

                            Machine 1: Windows 7

                            IE 10.3.181.34

                            FF 10.3.183.7

                            Chrome 11.3.300.257

                            Safari 10.3.183.7

                             

                            Machine 2: Windows 7

                            IE 11.0.1.152

                            Chrome 11.3.300.257

                             

                            If there are others reading this post, please do a little testing on the latest links... the ones with no <script> and post results.

                            Best wishes,

                            Adninjastrator

                            • 11. Re: flvplayback errors at times if video not in cache.
                              Daniel Beyzade

                              I too have been experiencing this same issue on a project I am working on.

                               

                              Occasionaly if the SWF has never been loaded into the browser cache the FLV called by the FLVPlaybackComponent will load - but not play - even once the FLV has completely downloaded or you press the play button. A page refresh resolves the problem.

                               

                              There is definately something strange going on somewhere and its hard to reproduce but does occasionaly occur. I have found using a internet speed throttoling utility helps the problem show up more frequently. I am using flash player 11.2.202.235, and have again replicated the problem across a number of differnet machines and configurations

                              • 12. Re: flvplayback errors at times if video not in cache.
                                xliii Community Member

                                Thanks it is very helpful to know others are expieriencing this,

                                 

                                I had tested the component around 2 years ago with a throttle and did not log any errors such as this. Maybe the updates to flash player have caused this, I've already ruled out component versions and can replicate in both 2 & 2.5 versions packaged with CS5+.

                                 

                                I think its time to look at using OSMF, flowplayer or similar. Its a little dissapointing for the component library though, I've found that pretty much all of them are either inflexible, hard to extend & now buggy so have had to avoid them all.

                                • 13. Re: flvplayback errors at times if video not in cache.
                                  xliii Community Member

                                  This couldn't be caused by the bit-rate of the FLV could it?

                                   

                                  I would just expect a high bit-rate clip to take longer to load/play and not play through consistently.

                                  • 14. Re: flvplayback errors at times if video not in cache.
                                    Daniel Beyzade Community Member

                                    Im not sure I doubt it. In my case I am only using a 400kbps compression settings which is not very high.

                                     

                                    The things this is I can see the file loading - theres enough for it to play it just refuses!

                                    • 15. Re: flvplayback errors at times if video not in cache.
                                      xliii Community Member

                                      I'm using the same approximate bit-rate, it varies from about 350-600 depending on the clip.

                                       

                                      I can also see the clip loading in the consoles net tab. The progress bar component also works as expected and the seekbar starts to update as well with d/l progress, there's just no clip showing on screen. Sounds like we're expieriencing the exact same issue.

                                       

                                      FYI: I've ran the same clips through the latest free flowplayer release and had no issue playing any of the FLV's.

                                       

                                      I'll update this thread if I find any solution but I'm doubtful of one at this point.

                                      • 16. Re: flvplayback errors at times if video not in cache.
                                        Jose_Flash_ookken Adobe Employee

                                        All above video are working fine for me. For the further clarification , Is it an embed video or streaming video.

                                        • 17. Re: flvplayback errors at times if video not in cache.
                                          xliii Community Member

                                          All test links provided will download video under HTTP progressive download. The first set of links has versions both on CDN locations and local files that are on the same server as the .swf. The second set of links that do not use the script embed methods are both from CDN locations.

                                           

                                          I haven;t bothered testing this with an RTMP stream.