8 Replies Latest reply on May 4, 2011 2:49 PM by adninjastrator

    SWF connecting to F4V plays locally but not online

    webGXSguy

      We moved our F4V files to a different server and I reconnected all the SWF files to them  using CS4 without any issue. I just upgraded to CS5 and when I save files the same way I did with CS4, the files preview fine locally but when I post online, the video does not work. Was there some new step added to CS5 that I'm missing? Even if I go to the CS4 SWFfile directly on the server, it plays but the new one does not. I thought maybe Premiere CS5 was the culprit but if I connect an old F4V file and save as a CS5 SWF, it's just a white screen. I even tried importing the video from scratch and still nothing.

      Any assistance/guidance really appreciated!

        • 1. Re: SWF connecting to F4V plays locally but not online
          webGXSguy Level 1

          Addendum to this -

          It looks like the SWF from generated by CS5 does not like the URL of the skin that I've been using the past year with CS4. I tried relative links and that doesn't work. It's a copy/paste from the old files(some just a week ago) and it must break the display when it can't open the file. The SWF can be seen in a browser - http://videos.gxs.com/videos/vod/SkinUnderAllNoCaption.swf  but the player doesn't want to grab it. If I put the file on the same server as the SWF file and use an absolute address, it works. Since we're using the player on different international sites, it's best to have one location for the F4V and skin.swf file. Suggestions?

          • 2. Re: SWF connecting to F4V plays locally but not online
            adninjastrator Level 4

            Sounds to me like you've still got pathing problems. As a review:

             

            Pathing issues

             

            Almost always when it works on the local machine and not the server, it's a pathing problem.
            You can put your Flash related files in whatever folders you want, they do NOT have to be in the root, they do NOT all have to be in the same folder. But if you have a problem and if sticking them all in the root folder works, then you know that the issue was a pathing problem.
            Just remember that paths used in the .swf become relative to the Web page on which the .swf is placed, NOT it’s physical location.  So for example, if your .swf is in the flash/data folder and you use that .swf on a Web page in the root folder, you are in effect, removing that .swf from flash/data and putting it in root. So if the .swf is loading any related files (xml, images, video, etc), the path used inside the .swf to load the .xml file has to be relative to it's new location in root and then back down into flash/data. This is true even though when testing the .swf by itself, it can be inside flash/data and work just fine, since relative to it's location, the path is just fine, they are in the same folder. But if that same path is used when the .swf is placed on a page two folder levels up, the relative path has changed, the old "same folder" path will not work.

            In fact if you are placing the .swf on a web page in a different folder than the .swf is stored in, and that .swf calls external assets, then direct clicking and opening of the .swf in it’s folder should NOT work! That’s because the paths to the external assets should be relative to the Web page and not the physical location of the .swf.
            So just be sure that you use addresses relative to the final Web page locations (not physical file locations) and you can put the Flash related files in what ever folders you want.
            Best wishes,
            Eye for Video
            www.cidigitalmedia.com

             

            also, don't rely on any auto generated code coming from CS5. It's often bloated and doesn't work. Learn the principle outlined in the section above and Hand Code your .swf onto the page. It's not that tough and once you understand it, you can trouble shoot problems.

            So what will happen here is that your problem will be solved by someone going thru your HTML code by hand, and finding the problem.

            So first, be sure you have all realted files uploaded to your server, the player .swf, and skin .swf, the video file .flv and any .js file used for Flash detection.

            Then post a link to the actual page.

            One of the very first things we'll do is to test all the addresses used in the code, just like the link you posted... looking at the source code for your page we'll test for the player .swf, the video file .flv and if needed, the .js file. Then we'll look at your folder structure and see if the pathing makes sense.

            Best wishes,

            Adninjastrator

            • 3. Re: SWF connecting to F4V plays locally but not online
              webGXSguy Level 1

              I’m using absolute links to the skin swf files so it should find them find regardless of where the player is. The problem is that I just changed all the video swf files last week  - changing the video and skin url to the new address – using Flash CS4. When I do the same exact thing with CS5, now the skin url breaks the player and nothing shows. If I change the url to a directory within the same site, then it works. This defeats the purpose of us having one swf file for all if I have to change the skin url to be local(with an absolute url) to the player SWF and yet the video URL can be elsewhere.

               

              From: adninjastrator forums@adobe.com

              Sent: Monday, May 02, 2011 8:34 PM

              To: Tollefsen, David (GXS)

              Subject: SWF connecting to F4V plays locally but not online

               

               

              Sounds to me like you've still got pathing problems. As a review:

               

              Pathing issues

               

              Almost always when it works on the local machine and not the server, it's a pathing problem.

              You can put your Flash related files in whatever folders you want, they do NOT have to be in the root, they do NOT all have to be in the same folder. But if you have a problem and if sticking them all in the root folder works, then you know that the issue was a pathing problem.

              Just remember that paths used in the .swf become relative to the Web page on which the .swf is placed, NOT it’s physical location.  So for example, if your .swf is in the flash/data folder and you use that .swf on a Web page in the root folder, you are in effect, removing that .swf from flash/data and putting it in root. So if the .swf is loading any related files (xml, images, video, etc), the path used inside the .swf to load the .xml file has to be relative to it's new location in root and then back down into flash/data. This is true even though when testing the .swf by itself, it can be inside flash/data and work just fine, since relative to it's location, the path is just fine, they are in the same folder. But if that same path is used when the .swf is placed on a page two folder levels up, the relative path has changed, the old "same folder" path will not work.

              In fact if you are placing the .swf on a web page in a different folder than the .swf is stored in, and that .swf calls external assets, then direct clicking and opening of the .swf in it’s folder should NOT work! That’s because the paths to the external assets should be relative to the Web page and not the physical location of the .swf.

              So just be sure that you use addresses relative to the final Web page locations (not physical file locations) and you can put the Flash related files in what ever folders you want.

              Best wishes,

              Eye for Video

              http://www.cidigitalmedia.com

               

              also, don't rely on any auto generated code coming from CS5. It's often bloated and doesn't work. Learn the principle outlined in the section above and Hand Code your .swf onto the page. It's not that tough and once you understand it, you can trouble shoot problems.

              So what will happen here is that your problem will be solved by someone going thru your HTML code by hand, and finding the problem.

              So first, be sure you have all realted files uploaded to your server, the player .swf, and skin .swf, the video file .flv and any .js file used for Flash detection.

              Then post a link to the actual page.

              One of the very first things we'll do is to test all the addresses used in the code, just like the link you posted... looking at the source code for your page we'll test for the player .swf, the video file .flv and if needed, the .js file. Then we'll look at your folder structure and see if the pathing makes sense.

              Best wishes,

              Adninjastrator

              • 4. Re: SWF connecting to F4V plays locally but not online
                adninjastrator Level 4

                So are you trying to access videos on one domain from a different domain or Website?

                The "skin" is not the video player, just it's covering. Have you also changed the urls (to the actual video files) in the player.swf?

                Also regardless of where the "skin" is, the path coded inside the "player" .swf, (not the skin) to the actual video .flv file needs to be relative to the WEB Page, not the physical location of the player .swf.

                Posting a link to the actual page would be helpful in trouble shooting.

                Adninjastrator

                • 5. Re: SWF connecting to F4V plays locally but not online
                  webGXSguy Level 1

                  Here’s an example link -http://www.gxs.com/videos/10_CloudComputing.html   - the top video, which is white and not displaying, has the skin set to  http://videos.gxs.com/videos/SkinUnderAllNoCaption.swf

                  video set to http://videos.gxs.com/videos/vod/10_CloudComputing.f4v

                   

                  Where the lower one, the skin is set to http://www.gxs.com/videos/SkinUnderAllNoCaption.swf

                  And video set to http://videos.gxs.com/videos/vod/10_CloudComputing.f4v

                   

                  The top video is how all our other videos are set when I did them with CS4. As soon as I do it with CS5, it breaks and will only work with the lower video set up. I even tried using our UK site which also has the skin and it didn’t work.

                   

                  An example of all the videos presently working is at http://www.gxs.com/resources/thought_leadership/first_take_videos - though it uses a plugin to display them but they are all set(except for two-Bob Heidish) to have the skin and video from the same site –videos.gxs.com.

                   

                   

                  David Tollefsen

                  Senior Web Programs Manager, Americas

                  T: +1.919.786.5115 | M: +1.919.610.2039 | F: +1.919.786.5290

                  www.gxs.com<http://www.gxs.com> | http://blogs.gxs.com | http://twitter.com/GXS

                  cid:image001.jpg@01CC0A53.A0C59B50

                   

                   

                   

                   

                  From: adninjastrator forums@adobe.com

                  Sent: Tuesday, May 03, 2011 6:09 PM

                  To: Tollefsen, David (GXS)

                  Subject: SWF connecting to F4V plays locally but not online

                   

                   

                  So are you trying to access videos on one domain from a different domain or Website?

                  The "skin" is not the video player, just it's covering. Have you also changed the urls (to the actual video files) in the player.swf?

                  Also regardless of where the "skin" is, the path coded inside the "player" .swf, (not the skin) to the actual video .flv file needs to be relative to the WEB Page, not the physical location of the player .swf.

                  Posting a link to the actual page would be helpful in trouble shooting.

                  Adninjastrator

                  • 6. Re: SWF connecting to F4V plays locally but not online
                    adninjastrator Level 4

                    (From Web page source code) Top link has path to player .swf as:

                    <param name="movie" value="10_CloudComputing.swf" />

                    Where exactly is this player .swf.... not the skin .swf, but the player?

                    while second, working video has path to include folder "video"

                     

                    <param name="movie" value="/videos/10_CloudComputing1.swf" />

                    appending the player .swf to the web page address should allow direct download of that .swf, so

                    http://www.gxs.com/videos/10_CloudComputing.swf

                    should directly open the player in the top example, but nothing happens.

                    while appending the path to the player .swf to the Web page path:

                    http://www.gxs.com/videos/videos/10_CloudComputing1.swf

                    should NOT work, since it doubles up on the folder "videos".... but it does work...

                    though not always reliably from the Web page. Visit the test web page, then paste in address above, then backarrow to Web page... player does not display.

                    Right now I am stumped as to why the above is happening.

                    As for the player .swf not finding the skin...is the actual player .swf file missing in the top example? or is there a cross domain issue even though it's just a sub domain involved in the path? There were some changes in Flash player 9 and 10 (see second link). CS5 may be publishing a different version of the player and cross domain policy may have changed

                     

                    http://kb2.adobe.com/cps/142/tn_14213.html

                    http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html

                     

                    Best wishes,

                    Adninjastrator

                    • 7. Re: SWF connecting to F4V plays locally but not online
                      webGXSguy Level 1

                      The article links below wouldn’t be applicable since using CS4 to build the SWF files works and CS5 does not so it’s something they changed in the new version. Everything was fine up until I upgraded to CS5 last week. If I’m doing the exact same thing I did with CS4 on CS5 and it doesn’t work, there’s an issue with the new version or the process is different. I can’t find anything.

                       

                      The swf player files are located at http://www.gxs.com/videos/10_CloudComputing.swf  where the f4v are located at http://videos.gxs.com/video/vod/  and I have the skin swf files located at http://www.gxs.com/videos/ (which work) and http://videos.gxs.com/video/vod/ (which no longer work with CS5).   The top example, the player file is there but, for some reason, if the skin URL doesn’t work, then the whole player doesn’t work. Unless CS5 got more strict with their security and it doesn’t allow for cross-browser, but even that doesn’t make sense when the f4v it’s playing works from a different domain and the skin does not.

                       

                      David Tollefsen

                      Senior Web Programs Manager, Americas

                      T: +1.919.786.5115 | M: +1.919.610.2039 | F: +1.919.786.5290

                      www.gxs.com<http://www.gxs.com> | http://blogs.gxs.com | http://twitter.com/GXS

                      cid:image001.jpg@01CC0A7B.77196570

                       

                       

                       

                       

                      From: adninjastrator forums@adobe.com

                      Sent: Wednesday, May 04, 2011 1:44 PM

                      To: Tollefsen, David (GXS)

                      Subject: SWF connecting to F4V plays locally but not online

                       

                       

                      (From Web page source code) Top link has path to player .swf as:


                      Where exactly is this player .swf.... not the skin .swf, but the player?


                      while second, working video has path to include folder "video"



                       

                      appending the player .swf to the web page address should allow direct download of that .swf, so

                      http://www.gxs.com/videos/10_CloudComputing.swf

                      should directly open the player in the top example, but nothing happens.

                      while appending the path to the player .swf to the Web page path:

                      http://www.gxs.com/videos/videos/10_CloudComputing1.swf

                      should NOT work, since it doubles up on the folder "videos".... but it does work...

                      though not always reliably from the Web page. Visit the test web page, then paste in address above, then backarrow to Web page... player does not display.

                      Right now I am stumped as to why the above is happening.

                      As for the player .swf not finding the skin...is the actual player .swf file missing in the top example? or is there a cross domain issue even though it's just a sub domain involved in the path? There were some changes in Flash player 9 and 10 (see second link). CS5 may be publishing a different version of the player and cross domain policy may have changed

                       

                      http://kb2.adobe.com/cps/142/tn_14213.html

                      http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html

                       

                      Best wishes,

                      Adninjastrator

                      • 8. Re: SWF connecting to F4V plays locally but not online
                        adninjastrator Level 4

                        At this point about the only other thing I could suggest is that you create a completely new test Flash doc, put the FLVPlayback component on the page, manually set the contentPath down in the Properties Panel "Parameters"... choose a skin and set the correct path. Test this page from the server.

                        I know this doesn't solve the problem but you might discover that something in the Path is causing the problem. Once you discover what it is, perhaps you'll be able to resolve this.

                        Best of luck,

                        Adninjastrator