how to pause video which has goto marker

Ask a Question related to Macromedia Director Basics, Design and Development.

  1. #1

    Default how to pause video which has goto marker

    I'm a beginner in director (using director mx trial)
    I have many quicktime video to play one after the other with that :

    on exitFrame me
    if sprite(1).movieRate=0 then
    go to the frame+1
    else
    go to the frame
    end if
    end

    it works fine.
    but I want to add a pause button so, if mousedown the quicktime stop.
    that doesn't work because of the script which tell the video to play the next
    one when movierate=0

    can someone help me?
    I think it's basic, but ....
    thanks

    synthesevideo Guest

  2. Similar Questions and Discussions

    1. Help link pause play etc buttons to progressivlydownloaded video
      I used the tutorial on the adobe website titled " http://www.adobe.com/devnet/flash/articles/prog_download.html" and am having problems figuring...
    2. Collision of two objects goto frame or marker.
      :light; Here is the scenario. A W3D file with two objects loaded into director MX. Object 1 is a child of the default camera and moves with the...
    3. How to jump to a marker as video ends ???
      Hi everyone ! I got a video (avi) which automatically begins playing at the beginning of my project. How can I force the playhead jump to a...
    4. detect when video finished then goto next frame
      i know this has been posted a lot before but i still can't find a way for it to work, i am using an mpg file with dir 8.5 but i can't get dir to...
    5. what is the command for goto marker?
      just a quick one, I am very tired and have forgotten the command for goto marker on mouseUp goto "quit" -- or am i really asleep end I...
  3. #2

    Default Re: how to pause video which has goto marker

    If you want the playback head to move only when the current video is
    finished then check to see where you are in the video:

    ------
    property thisSprite
    property thisMember
    property totalLength

    on beginSprite me
    thisSprite = me.spriteNum
    thisMember = sprite(thisSprite).member.name
    totalLength = member(thisMember).duration
    end

    on exitFrame me
    go to the frame
    if (sprite(thisSprite).movieRate = 0) and
    (sprite(thisSprite).movieTime >= totalLength) then
    go to the frame + 1
    end
    ------

    --
    Rob
    _______
    Rob Dillon
    Team Macromedia
    [url]http://www.ddg-designs.com[/url]
    412-243-9119

    [url]http://www.macromedia.com/software/trial/[/url]
    Rob Dillon Guest

  4. #3

    Default Re: how to pause video which has goto marker

    thanks to you : it's working fine!
    if it's not an abuse, I ask you 2 more questions :
    - mp3 file is looping, but not a precise one : I hear the played file is
    missing 1/2 second at the end, so the link isn't smooth. Do I need to put the
    file in wav (which works fine), or is it another solution ?

    - all my video are quicktime 6, and I read that it will need quicktime player
    installed on the end user computer. How can I make director checking that ? and
    can it install automatically?
    thanks and best regards
    domi


    synthesevideo Guest

  5. #4

    Default Re: how to pause video which has goto marker

    There's always going to be a little break when the video is rewound, is
    youe end test being made otten enough ( in a lscore script?) could you
    loop a fraction of a sec. before the mpeg is ended? this sould give some
    margin of error.


    I think quickTimeVersion() tells you what the end user has.
    JB Guest

  6. #5

    Default Re: how to pause video which has goto marker

    1. The more a file is compressed the rougher it's texture will be.
    Video and audio compression works by taking sample chunks of the media
    and then 'tweening the content between those samples. The greater the
    compression the fewer the number of samples, or keyframes, and the
    greater the 'tweeened content.

    If you've ever stopped a compressed digital video file between it's
    keyframes, you see a blurred image. If you could stop a compressed
    audio file between it's keyframes, you would hear a blurred sound, so
    to speak. While that's a pretty loose way of describing what goes on in
    a compressor/decompressor environment, it should help to illustrate the
    problem.

    With your compressed MP3 file, there is very little detailed material,
    and so, when the file is trying to loop, it's trying to tie the end to
    the start. With very few keyframes, or sample points, to work with, it
    becomes difficult to "connect" the last keyframe to the first in the
    file as it plays. The decompressor's solution is to skip the part that
    it doesn't like. This translates to that last part of the file dropping
    out.

    So, yes, the solution is to use a sound file with less compression, it
    will loop more accurately.

    2. Director uses a guest digital video player to playback dv files.
    This means that if you save your dv file as Quicktime, then Director
    will require the QT player on the user's computer to play back the
    file. The same solution holds for WM and Real.

    You can use the MPEG Advance Xtra to play back some MPEG formats
    without having any external dv player installed.

    You can easily test for the QT player and it's version number on the
    end user's computer by using the quicktimeVersion() function.

    There are tech notes on detecting players and running installers on
    Macromedia' web site. There are also a number articles at
    [url]http://wwww.director-online.com[/url].

    You will also find a lot of info on this in the archives of this
    newsgroup.

    --
    Rob
    _______
    Rob Dillon
    Team Macromedia
    [url]http://www.ddg-designs.com[/url]
    412-243-9119

    [url]http://www.macromedia.com/software/trial/[/url]
    Rob Dillon Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139