streaming video

  • emac
  • Born
  • Born
  • emac
  • Posts: 4

Post 3+ Months Ago

how do you stream video so that it doesn't start to play before it can finish downloading or can play while it is downloading; continue to play without stopping until it is done (meaning without hesitation as it downloads) is this a server side script?

help please
  • BlaSpH
  • Born
  • Born
  • BlaSpH
  • Posts: 3

Post 3+ Months Ago

In your Flash movie you could assign getBytesTotal to a variable and then check what percentage you loaded with getBytesLoaded.

the code:
Code: [ Select ]
percentageLoaded=getBytesLoaded() / (totalSize/100);
  1. totalSize=getBytesTotal();
  2. percentageLoaded=getBytesLoaded() / (totalSize/100);

At the first frame stop your movie with a stop() action.

now you could say if you wanted your movie to start when 30% is loaded:
Code: [ Select ]
if (percentageLoaded>whenToStart){;
  1. whenToStart=30;
  2. if (percentageLoaded>whenToStart){
  4. }

You could ask someone with a form what their connectionspeed is and adjust the whenToStart variable accordingly.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 3 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.