3 Replies Latest reply on Aug 19, 2006 2:54 PM by Newsgroup_User

    flv 1 frame

    Level 7
      Is there a command that I can use to just show the first frame of a
      progressive flv?

      Thanks for any help you can give!!!


        • 1. Re: flv 1 frame
          Nickels55 Level 2
          Click on the FLVplayback player, open up the component inspector, turn auto play to off (false). Then only the first frame of the movie will be diplayed untill someone hits a play button or actionscript makes the movie play.
          • 2. Re: flv 1 frame
            Level 7
            I have that here is my code. I get a blank until I click my Play Button or I
            uncomment the Play line.

            Any ideas what I am doing wrong?


            import mx.video.*;
            var cpath;

            vidTort1.contentPath = cpath;
            vidTort1.autoPlay = false ;

            listenerObject.metadataReceived = function(eventObject:Object):Void {
            vidTort1.setSize(vidTort1.preferredWidth, vidTort1.preferredHeight);
            }

            vidTort1.addEventListener("metadataReceived", listenerObject);

            var nc1:NetConnection =new NetConnection();
            nc1.connect(null);
            var ns1:NetStream = new NetStream(nc1);
            vidTort1.attachVideo(ns1);
            // ns1.play(cpath);

            Thanks!!!


            "Nickels55" <webforumsuser@macromedia.com> wrote in message
            news:ec7149$8st$1@forums.macromedia.com...
            > Click on the FLVplayback player, open up the component inspector, turn
            > auto
            > play to off (false). Then only the first frame of the movie will be
            > diplayed
            > untill someone hits a play button or actionscript makes the movie play.
            >


            • 3. Re: flv 1 frame
              Level 7
              This might not be the best way to do this but it works.


              // Create Thumbnail

              import mx.video.*;
              var cpath;

              vidTort1.contentPath = cpath;
              vidTort1.autoPlay = false ;

              listenerObject.metadataReceived = function(eventObject:Object):Void {
              vidTort1.setSize(vidTort1.preferredWidth, vidTort1.preferredHeight);
              }

              vidTort1.addEventListener("metadataReceived", listenerObject);

              var nc1:NetConnection =new NetConnection();
              nc1.connect(null);
              var ns1:NetStream = new NetStream(nc1);
              ns1.setBufferTime(0.01);
              vidTort1.attachVideo(ns1);
              ns1.play(cpath);

              ns1.onStatus = function (info) {
              if(info.code == "NetStream.Buffer.Full"){
              ns1.pause();
              }
              };

              soundholder.attachAudio(ns1);
              audio = new Sound(soundholder);
              audio.setVolume(0);

              ns1.onStatus = function (info) {
              if(info.code == "NetStream.Buffer.Full"){
              vidTort1.attachVideo(null);
              ns1.pause();
              ns1.play("nonexist.flv");
              }
              };




              "Rick" <rick@di-wave.com> wrote in message
              news:ec7so5$81h$1@forums.macromedia.com...
              >I have that here is my code. I get a blank until I click my Play Button or
              >I uncomment the Play line.
              >
              > Any ideas what I am doing wrong?
              >
              >
              > import mx.video.*;
              > var cpath;
              >
              > vidTort1.contentPath = cpath;
              > vidTort1.autoPlay = false ;
              >
              > listenerObject.metadataReceived = function(eventObject:Object):Void {
              > vidTort1.setSize(vidTort1.preferredWidth, vidTort1.preferredHeight);
              > }
              >
              > vidTort1.addEventListener("metadataReceived", listenerObject);
              >
              > var nc1:NetConnection =new NetConnection();
              > nc1.connect(null);
              > var ns1:NetStream = new NetStream(nc1);
              > vidTort1.attachVideo(ns1);
              > // ns1.play(cpath);
              >
              > Thanks!!!
              >
              >
              > "Nickels55" <webforumsuser@macromedia.com> wrote in message
              > news:ec7149$8st$1@forums.macromedia.com...
              >> Click on the FLVplayback player, open up the component inspector, turn
              >> auto
              >> play to off (false). Then only the first frame of the movie will be
              >> diplayed
              >> untill someone hits a play button or actionscript makes the movie play.
              >>
              >
              >