Reputation: 931
I'm new with flash and I have a video recorder and a video player. I would like the user that receives the video to be able to delay the video using a +1 second button.
So what I tried to do is to create a button that increases the buffer of the video. Here is what I did.
I created a variable named 'buffer':
private var buffer:int = 0;
then a function named 'bufferPlus' :
private function bufferPlus():void{
buffer = buffer + 1;
}
then:
netStream.bufferTime = buffer;
and finally I have:
<mx:Image left="400" bottom="20" id="plus" source="@Embed(source='Assets/plus.png')" click="bufferPlus()" buttonMode="true"/>
But it doesn't work.
Any idea on what I could do in order to solve this ?
Thank you for your help.
Upvotes: 0
Views: 445
Reputation: 1384
The BufferTime
is the amount of buffering that is done before the video starts. If the video is already playing, increasing the bufferTime won't have any effect.
You could set it up so that the video pauses, but keeps buffering the incomming data and resume the video an second later.
Upvotes: 1