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
thx
emac
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • 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 ]
totalSize=getBytesTotal();
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 ]
whenToStart=30;
if (percentageLoaded>whenToStart){
movieclip.play();
}
  1. whenToStart=30;
  2. if (percentageLoaded>whenToStart){
  3. movieclip.play();
  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 22 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-2014. Ozzu® is a registered trademark of Unmelted, LLC.