Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8076847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:21:00+00:00 2026-06-05T15:21:00+00:00

I have a 20 minute FLV which streams just fine on server. Client would

  • 0

I have a 20 minute FLV which streams just fine on server. Client would like to preserve user’s locations between sessions so time() is saved to mySQL and passed back in as a FlashVar and is (if set) fed to seek() and to a text field for testing. Thing is the seek() works fine locally but on the server I always get a NetStream.Seek.InvalidTime error no matter what the seek() is set to. Docs are here; it’s a dead simple function.

// EDIT Just added keyframes to FLV using http://www.buraks.com/flvmdi/ but this did not resolve issue

src = "videos/LivingProof.flv";

nc = new NetConnection();
nc.connect(null);
nets = new NetStream(nc);
mc_flv.attachVideo(nets);

//Attach your netstream audio to a movielcip: 
snd.attachAudio(nets); 
// create a sound object 
my_snd = new Sound(snd); 
// to adjust the volume 
my_snd.setVolume(50); 
nets.play(src);

if (starttime) {
  var dest:Number = Math.floor(starttime);
  nets.seek(dest);
  this.test.text = 'target time = ' + dest;
}

nets.onStatus = function(infoObject:Object) {
     if( infoObject.level == "status" && infoObject.code == "NetStream.Play.Stop" ) {
        getURL("javascript:setTime('9999999999');", "_self");
        nets.seek(0);
        nets.pause();
        mc_play.gotoAndStop(1);
        trace('onStatus listener fired');
    } else if (infoObject.code == "NetStream.Seek.InvalidTime") { 
        _root.test.text = "NetStream.Seek.InvalidTime";
        nets.seek(infoObject.details); 
    } 
    _root.status.text = infoObject.code;
};

Anyone ever seen this before?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T15:21:01+00:00Added an answer on June 5, 2026 at 3:21 pm

    Try adding an if statement to your onStatus handler to check for the NetStream.Play.Start code and move the seek logic to that:

    src = "videos/LivingProof.flv";
    
    nc = new NetConnection();
    nc.connect(null);
    nets = new NetStream(nc);
    mc_flv.attachVideo(nets);
    
    //Attach your netstream audio to a movielcip: 
    snd.attachAudio(nets); 
    // create a sound object 
    my_snd = new Sound(snd); 
    // to adjust the volume 
    my_snd.setVolume(50); 
    nets.play(src);
    
    nets.onStatus = function(infoObject:Object) {
         if( infoObject.level == "status" && infoObject.code == "NetStream.Play.Stop" ) {
            getURL("javascript:setTime('9999999999');", "_self");
            nets.seek(0);
            nets.pause();
            mc_play.gotoAndStop(1);
            trace('onStatus listener fired');
        } else if (infoObject.code == "NetStream.Play.Start) {
           if (starttime) {
              var dest:Number = Math.floor(starttime);
              nets.seek(dest);
              this.test.text = 'target time = ' + dest;
            }
        } else if (infoObject.code == "NetStream.Seek.InvalidTime") { 
            _root.test.text = "NetStream.Seek.InvalidTime";
            nets.seek(infoObject.details); 
        } 
        _root.status.text = infoObject.code;
    }; 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a timer which ticks once every second. I would like to check
I have a time series at a 1 minute interval. I would like to
I have a countdown TextField which I like to update every minute automatically in
I have a table which get new data inserted every minute or so. According
I would like to let W3C through my webpage security at the minute I
I have a service which runs every 1 minute through an alarm manager. This
I have flv file on my server. duration is 9 minutes. I have to
I'm using $form->input(time) to render select boxes for time input. They have minute-accuracy, which
I have following query which takes almost 1 minute to execute. public static Func<Entities,
I have to execute particular code every 1 minute, I have coded like this.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.