6 Replies Latest reply on May 17, 2007 4:31 AM by georkost

    Change video cast member on the fly

    georkost
      Hello all,
      is it possible to change the video of a video cast member on the fly? Meaning, I have a valentina database where I have some videos a as blob elements. How can I retrieve them to a director cast memebr. When I do that director crashes without a message. into what cast member could I do it. i have tried import it onto another video cast memebr ot other kind of cast members without luck.

      So are videos only linked to external Files? How can I solve it?
      Thanks a lot
      Kostas
        • 1. Re: Change video cast member on the fly
          Level 7
          You can set the fileName property of the cast member. But don't try setting
          the fileName property of a cast member that doesn't match in type. I've had
          trouble even setting the filename of an .mov cast member to one with an .mpg
          file. So, if you have various video formats, create a dummy cast member for
          each type. When you need to change a video, set the filename of the
          appropriate cast member then change cast members on stage. You'll have to
          set the position of the sprite off stage before you do this (then back on
          after the swap) to avoid flicker and video vestiges.

          --
          Craig Wollman
          Lingo Specialist
          Word of Mouth Productions
          212-928-9581

          www.wordofmouthpros.com
          "georkost" <webforumsuser@macromedia.com> wrote in message
          news:f2c1h8$qfh$1@forums.macromedia.com...
          > Hello all,
          > is it possible to change the video of a video cast member on the fly?
          > Meaning, I have a valentina database where I have some videos a as blob
          > elements. How can I retrieve them to a director cast memebr. When I do
          > that
          > director crashes without a message. into what cast member could I do it. i
          > have
          > tried import it onto another video cast memebr ot other kind of cast
          > members
          > without luck.
          >
          > So are videos only linked to external Files? How can I solve it?
          > Thanks a lot
          > Kostas
          >


          • 2. Re: Change video cast member on the fly
            Level 7
            > So are videos only linked to external Files? How can I solve it?

            Yes, video members are only ever linked to external files. You'll have
            to read your BLOB field, write it to disk and link your video member to
            this named file.
            • 3. Re: Change video cast member on the fly
              georkost Level 1
              Thank you all. A I thought so. But if I have to make a dvd multimedia application with database I can't just copy a BLOB stream to a file somewhere on the disk and then link the cast member to it.

              So the starting point is that I can't put Blop files, video or audio(?), except pictures and texts, into database and then retreive it.

              I could put them on the disk inside a cast file and keep the name of the cast-member as a field into the database table.

              But, how then the videos can be protectred, in a cxt(?), if they HAVE to be external files.

              Best Regards,
              Kostas
              • 4. Re: Change video cast member on the fly
                Level 7
                I suffered with the same dilema. I thought that the zip xtra would help but
                you can't zip a folder, only files. And it's very slow even if you wanted
                to unzip every file at runtime.



                --
                Craig Wollman
                Lingo Specialist
                Word of Mouth Productions
                212-928-9581

                www.wordofmouthpros.com
                "georkost" <webforumsuser@macromedia.com> wrote in message
                news:f2erkt$dj3$1@forums.macromedia.com...
                > Thank you all. A I thought so. But if I have to make a dvd multimedia
                > application with database I can't just copy a BLOB stream to a file
                > somewhere
                > on the disk and then link the cast member to it.
                >
                > So the starting point is that I can't put Blop files, video or audio(?),
                > except pictures and texts, into database and then retreive it.
                >
                > I could put them on the disk inside a cast file and keep the name of the
                > cast-member as a field into the database table.
                >
                > But, how then the videos can be protectred, in a cxt(?), if they HAVE to
                > be
                > external files.
                >
                > Best Regards,
                > Kostas
                >


                • 5. Re: Change video cast member on the fly
                  Level 7
                  >>So are videos only linked to external Files? How can I solve it?
                  Videos are external streaming media, only format that you can have as only a
                  cast member must be flashvideo - video imported to flash and saved as swf..
                  It is possible to extract castmembers from protected castlibs, but if you
                  find flash video suitable for your project, you could maybe keep them
                  encrypted in your db.

                  There are a few other solutions to protect the video content:
                  - Some codecs supports the use of a mediakey (quicktime/sorensen 3 codec,
                  avi/indeo codec). Director can access this via qtRegisterAccessKey and
                  qtUnRegisterAccessKey. I never used it, so you'll have to check the forums.
                  - Binary corruption using one of the binary xtras. You'll need to replace a
                  part of the videofile with 'binary garbage' and insert the real part before
                  use. Only usefull for cdrom if you intend to copy content the the users
                  harddrive. It works well for some codecs - mostly the highcompressed (divx,
                  xvid and similar)
                  - If using quicktime, you can insert a black layer within the video. Use
                  lingo to disable/hide the layer at runtime. Not a strong protection, if the
                  user is familiar with the pro version of quicktime.

                  There are many posts about the subject in both lingo and basic forum.


                  • 6. Re: Change video cast member on the fly
                    georkost Level 1
                    Ok.Thanks a lot. Although bad news. Maybe the flash option seems the most easy. Although I wonder about loss of quality on swf videos.

                    Best Regards,
                    Kostas