5 Replies Latest reply on Apr 14, 2013 4:41 PM by kglad

    How to attach a video hosted on a URL

    mr_Razor

      Hi, im in desperate need. sry if this is basic stuff, but this is beyond me.

       

      I got a 980x300 banner that the client want to show their videoclip on.

      Cause of kb restrictment the video will be hosted on a external site.

       

      I got the video as a FLV, which i guess i have to first upload on a site, and then attach the url to the banner.

      And i got the video on a url with a player in case i needed that.

       

      If someone could explain what to do in steps it would be great!

        • 1. Re: How to attach a video hosted on a URL
          kglad Adobe Community Professional & MVP

          add an flvplayback component (with or without skin, depending on your needs) to your banner and assign its contentPath to the flv's url.

          • 2. Re: How to attach a video hosted on a URL
            mr_Razor Level 1

            Thank you kglad. unfortenatley im abit novice at this, i would highly appreciate an example of how to implement this if its not to mutch work!

            I got a deadline on monday and im abit nervous i cant pull this thing off.

             

            Thanks for the feedback anyways!!

            • 3. Re: How to attach a video hosted on a URL
              kglad Adobe Community Professional & MVP

              click window>components and drag an flvplayback component to your stage.

               

              in the properties panel, while the component is still selected on your stage, assign a skin and contentPath.

               

              test.

              1 person found this helpful
              • 4. Re: How to attach a video hosted on a URL
                mr_Razor Level 1

                Thx. Well that will make the file .swf not .flv, even though i dont know if thats a bad or a good thing. I have used the swfobject .js to get the video online so i can attach the url back to my banner. but the swf wont show up on my server, which is weird since its showing up when i publish it in flash.

                 

                my test html is written like this:

                <!DOCTYPE html>

                <head>

                          <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

                          <title>Soon new website</title>

                          <link href="css/style.css" rel="stylesheet" type="text/css">

                          <!-- <META HTTP-EQUIV="refresh" CONTENT="1"> -->

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

                                    <script type="text/javascript">

                                              var flashvars = {};

                                              var params = {};

                                              var attributes = {};

                                              swfobject.embedSWF("vid1.swf", "altContent", "456", "300", "9.0.0", false, flashvars, params, attributes);

                                    </script>

                          </head>

                <body>

                          <div id="altContent">

                          <a href="http://www.adobe.com/go/getflashplayer">

                                                        <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />

                                              </a>

                          </div>

                </body>

                </html>

                 

                so it should be correct shouldnt it.. (the swfobject.js is also on the ftp).

                Its starting to get frustrating, cause this should be basic, but i just cant get it to work.

                 

                Thank you for the patience anyways.

                • 5. Re: How to attach a video hosted on a URL
                  kglad Adobe Community Professional & MVP

                  this, "Well, that will make the file .swf not .flv" makes no sense.

                   

                  in addition, "I have used the swfobject .js to get the video online so i can attach the url back to my banner. but the swf wont show up on my server, which is weird since its showing up when i publish it in flash." makes no sense.

                   

                  anyway, you have code to embed vid1.swf using the html page code you showed in message 4.  how do you suppose vid1.swf is going to display your flv file?

                   

                  (HINT:  read messages 1 and 3.)

                   

                  or, maybe you want to add the flv to vid1.swf's timeline?

                  1 person found this helpful