dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: End of Video

  1. #1
    go blues ! audas's Avatar
    Join Date
    Oct 2000
    Location
    london ,piccadily circus!
    Posts
    665

    End of Video

    Does anyone know how to measue the length of a video in time ? Or any other way for that matter so that the play head can be advanbced there automatically ?
    peace.

  2. #2
    Media Services
    Join Date
    Jul 2004
    Posts
    252
    depands if wou work with video object or component

  3. #3
    go blues ! audas's Avatar
    Join Date
    Oct 2000
    Location
    london ,piccadily circus!
    Posts
    665
    I am hard coding and custom building everything so I am using the video object.

    I have thought about this for a while and the other functions that are available, seek and time do not offer any functionality for determining total video length in frames or time. Unless there is some way to embed this information into the FLV file so that it can be read with ID3 tags or something, or a comparison with getBytesTotal for the amount frames per sec, but something on the fly would be the BEST solution .
    peace.

  4. #4
    Registered User
    Join Date
    Sep 2004
    Location
    Los Angeles
    Posts
    86
    ns.onMetaData = function(obj) {
    _root.video_duration = obj.duration;
    }

    _root.video_mc.ff_mc.onRelease = function(){
    seek_time = ns.time+10;
    if(seek_time<_root.video_duration){
    ns.seek(seek_time);
    }
    }

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center