Actionscript 3 :: Get How Many Video (in Seconds) Is Buffered From MP4 File

Jul 7, 2010

I can get which part of file in bytes is loaded using netstream.bytesLoaded,netstream.bytesTotal, I can get the current playing position using netstream.time. But I want to know how many seconds of video are already loaded (not the length of buffer, which remains constant).

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Make A New Request To The Server If The Seconds Parameter Specifies A Time Outside Of The Currently Buffered Video Data

Jul 14, 2011

when uing netsream.seek(), how can i make a new request to the server if the seconds parameter specifies a time outside of the currently buffered video data. I want to seek unloaded time

View 3 Replies

ActionScript 3.0 :: NetStream Detect Buffered And Not Already Buffered Places?

Sep 29, 2010

i have a video in which I can seek to unload parts (Pseudo-Streaming), the server return the video and it loads it from the requested second,the problem, i don't want to make a new request to the server if a part has already been buffered, here's what I have in mind, but can't achieve

Code:
if(netStream_has_been_download){
//Just run the seek() command

[code].....

View 1 Replies

ActionScript 3.0 :: Video Playback - 60 Seconds Video To Start Playing After 40 Seconds Have Been Downloaded

Jul 19, 2010

1) I want a 60 seconds video to start playing after 40 seconds have been downloaded - to do that I set the NetStream.bufferTime to 40 seconds and retrieve "NetStream.Buffer.Full" event causing the video to really start playing. This step is OK.

2) However, the "NetStream.Buffer.Full" causes data to stop downloading. So the remainder of the video begins to download no sooner than after the 40 seconds have been played. This step is my issue. Can anyone tell me how to avoid this unintended effect? (i.e. playing a video and downloading data at the same time?)

View 2 Replies

Flash - Seeking Video Beyond Buffered Area?

Dec 23, 2011

Normally we use NetStream.Seek method but it will make the seek after the buffer area crossed the seek time length.(HTTP). Can we seek the video that is beyond the buffered area like youtube in red5. Will it start the buffer from the seek point.

View 1 Replies

ActionScript 2.0 :: Seek To Specific Point In Video Before It Buffered

May 22, 2010

I'd like to start playing a web-based video at a specific time, say 2 minutes in, even if the video hasn't been downloaded that far. I thought I could just "seek" to that time but that apparently only works when the video is buffered first.

So for example, this:
Code:
nc = new NetConnection();
nc.connect(null);
ns = new NetStream(nc);
ns.play("[URL]");
ns.seek(123);
video.attachVideo(ns);

Seems to work if you have the video cached or buffered or whatever, but if you don't it gives the "NetStream.Seek.InvalidTime" error, which makes sense. I want to know if it's possible to start playing a video at a specific time, even if the video hasn't loaded up to that point.

View 1 Replies

Flash :: What Happens When A Youtube Swf File Is Buffered

Feb 5, 2010

Whenever a youtube or any other flash content is buffered on the browser, isn't it true that is downloaded to the client computer ? So my assumption is that, any completely buffered youtube file should be found on my client right ? For example, when i view this video on youtube, i see that it is actually referring to this swf location [URL] How does youtube actually buffer this video on my computer then ?

Note: My objective is NOT to download youtube videos as i know there are extensions available for it. I just want to know how it works :) .

View 1 Replies

Delay (2 Seconds) A Video To Play In A Flash Video Player?

Jan 18, 2010

I was wondering how I can delay (2 seconds) a video to play in a Flash Video Player? I know one way is for me to add blank frames but I would like to know some other options.

View 2 Replies

ActionScript 3.0 :: When A Video Is Played The Video Doesn't Show Up For About 10 Seconds

Apr 20, 2009

I have a sporadic bug where sometimes when a video is played the video doesn't show up for about 10 seconds but the audio is there.

i'm using flash as3:

_video = new Video();
_sound = new SoundTransform();
var connection:NetConnection = new NetConnection();

[Code]....

View 1 Replies

Actionscript 3 :: Pause Video For X Seconds?

Jan 17, 2011

How do I make a code to pause the video for a certain time and then continue on after? (or play a specified frame)

View 1 Replies

ActionScript 3.0 :: Load First 10 Seconds Only Of A Flv Video?

Jan 26, 2009

Is it possible to load only the first 10 seconds of a video, and to play this section in loop ?

Code:
// Initialize net stream
nc = new NetConnection();
nc.connect(null);// Not using a media server.

[Code]....

View 4 Replies

ActionScript 2.0 :: Pause FLV Video Loop For 3 Seconds

Sep 8, 2009

I've imported a flv video (flvPlayer, instance name) to loop with the following script:
var myLis:Object = new Object;
myLis.complete = function(){
flvPlayer.play();
}
flvPlayer.addEventListener("complete", myLis);
I would like the flv to pause for 3 seconds before looping again...

View 4 Replies

IDE :: Flash Video Plays For 2 Seconds And Then Stops

Jun 19, 2009

[URL] Some of the clips play fine, others play for 2 seconds and then stop.

View 2 Replies

ActionScript 2.0 :: Video Duration - If After X Seconds GotoAndPlay

Oct 29, 2009

I have a video player and I want to read the duration counter so that after say 5 seconds the video fades in some movie clips pauses for a few seconds then fades the movieclips out. Heres what I have so far as a test I have used gotoand play . If I insert this the movie does not reach 5 seconds but goes to frame 8 straight away. If I try a < or == nothing happens ?

// Get video duration
ns.onMetaData = function(obj) {
duration = obj["duration"];
var minutes2:Number = Math.round(duration/60);
var seconds2 = Math.round(duration%60);
[Code] .....

View 1 Replies

Replace The Pictures With About 25 Short Video Files All Under 30 Seconds?

Mar 9, 2010

I am a beginner looking to build my first Flash product. I am attempting to replace an existing PowerPoint, which is all text and picture based, and make it less boring by using Flash. I need to replace the pictures with about 25 short video files all under 30 seconds. Is it worth it to do this in Flash?Is there an existing template for this type of project?

View 3 Replies

Media Server :: Set The Buffer To 30 Seconds For Live Video?

Aug 16, 2010

We purchased the Adobe Flash Media Sreaming Server 3.5.

My question is, the client wants to set the buffer to 30 seconds, so if an error is encountered the live feed feed will not be interupted.

Is this set from the Adobe client that is recording the video or is this a setting on the server?

View 9 Replies

Media Server :: Delay Of 5 Seconds Between Video And Audio?

Nov 24, 2010

I've a site  where consumer can take a live meeting with the beauty consultant. The  problem I'm facing is during the video chat. Basically there is a delay  of 5 seconds between Video and Audio when I access the site from out of  my network but when I access it within my network (VPN) then it's work  fine.

View 14 Replies

Media Server :: Delay Of Seconds Between Video Display

Nov 25, 2010

I've build a simple video chat application. The problem is that there is a delay of seconds between video display i.e. user1 video motion change displayed bit late at the user2 window. I'm using FMS 3.5 and FLEX.. IS THIS PROBLEM RELATED TO THE BANDWIDTH. My FMS bandwidth is 256kbps.

[Code]...

View 3 Replies

Audio Skips Back Few Seconds While Video Freezes

Apr 12, 2011

We are running FMS 4.0 to stream on-demand MBR videos using the OSMF player. We have noticed that occasionally during playback the video freezes, while the audio skips back a few seconds and starts playing. Once the audio catches up, the video unfreezes and resumes normal playback.

View 2 Replies

Php :: Implement A Short Video (10 Seconds, Looping) In A Webpage?

Jan 27, 2012

I'm currently trying to implement a short video (10 seconds, looping) in a web page. Initially, we tried using HTML5 Video tag with .mov (and H.264 as video codec inside). The file size was a couple MB, but the servers we're using were at 99% CPU usage - which is way too high because they're stacked on top of one another and they could burn up if left at that pace for too long.

My question is simply: what is a good way to display a short 10 second looping video inside a web page that limits CPU usage and will keep a descent frame rate? We're exploring the option of good ol' Flash (SWF) files, but wanted to get some input.

View 1 Replies

Flex :: Flash Video Playback - How To Determine Seconds Loaded

Jan 11, 2010

I'm trying to accurately determine how many seconds of a video (NetStream) have been loaded so I can scrub/seek correctly. First I tried doing duration*(ns.bytesLoaded/ns.bytesTotal) but this is inaccurate by maybe 15%, ie if that calculation says 20 seconds is loaded and I scrub to 20 seconds ns.time will tell me it can't go past 17 seconds.

I think this is because the size of the file loaded doesn't map perfectly to the number of seconds loaded (obviously), ie as the video loads, some of the bytes loaded aren't the actual video but are overhead of the container/file the video is in. So to load 1% of video you have to actually load 1.15% of the file's size.

View 1 Replies

ActionScript 3.0 :: Control Video - After 45 Seconds Should Start Playing Automatically

Apr 28, 2011

I have a video file which plays fine but it plays as soon as the welcome page starts. I have some small text animation which needs to play first and after 45 Seconds my video should start playing automatically. How to achieve this? Using actionscript 3.

View 1 Replies

ActionScript 3.0 :: Loaded Local Video Stops Play After A Few Seconds?

May 16, 2011

when I use the following function in my doc class to launch a local video, the video "freezes" after a few seconds. This happens no matter what video I am trying to play.

Code:
private function startVideo(e:MouseEvent):void
{

[code].....

View 7 Replies

Media Server :: Audio Several Seconds Out Of Sync With Live Video Stream

Jan 4, 2012

I did a live stream last week using 282,482,832,1500Kbps streams. What would cause the audio to get out of sync with the live video stream? I'm trying to determine if it was bandwidth related, cpu/memory issue on the FMIS 4.5 server, or an issue with encoding PC exceeding it's limits?

View 3 Replies

Professional :: Where Does Buffered Data Get Written To

Mar 12, 2010

When recording a video to FMIS if the stream is buffered, does this get buffered in memory or does it use up local storage?
 
I am developing an application that will use a web cam to record videos which will then be submitted to the server. Ideally I would have liked to write the video to disk first and then upload later however, I understand that I can't do this with flash (my solution has to be in browser AIR apps aren't an option). I am ultimately concerned about video quality so in order to ensure that I loose as few frames as possible I'm planning on setting NetStream.bufferTime to a large value. I am concerned however that someone with a poor internet connection and a good webcam will quickly use up local storage assuming that it is set to the default of 100K.
 
If this is the case then I potentially need to think again about my approach - maybe even look into Silverlight 4, or at the very least try and explain to my users how to go into flash settings and set local storage to be unlimited.

View 1 Replies

ActionScript 1/2 :: Any Way To Counteract Buffered KeyRepeat?

May 19, 2010

I'm moving an movieclip using the cursor keys. The device it has to run on, is too slow to process the keys realtime, so the keys are placed in a some sort of buffer and the object keeps on moving for a while when the key is released.The device places 8 keys in the buffer per second, but flash can only process 5 per second, so holding the key for a second, will look like I've pressed it almost twice as long. Any way to counteract this? I've tried using Key.isDown, but that returns true, even though they key is released, until the buffer is emptied.

I've tried using the onKeyDown event to start the movement and stop the movement using the onKeyUp event, but it seems like the onKeyUp event only occurs when the buffer becomes empty. Even when I remove the onKeyDown listener, it seems like the buffer only decreases 1 key per frame. It might have worked when there is no keyrepeat in the hardware, but that is not an option. It would be good if there was a timestamp indicating when the key was pressed, or some way to clear the buffer, but I've not found one.

View 7 Replies

ActionScript 3.0 :: Play Buffered Crypted Mp3?

Nov 4, 2009

i'm trying to build a mp3 player that plays a (for istance) base64 encoded mp3 file.my needs is to protect original files and decrypt them at runtime.now, i'm playing with new Sound apis and SampleDataEvent like this:

ActionScript Code:
public var s1:Sound;
public var s2:Sound;

[code].....

View 9 Replies

Actionscript :: Events Is The Event Buffered And Ordered?

Feb 11, 2010

I found an interesting questions regarding the events in action script: is the event buffered and ordered?

Ie) In a swfloader example, I setup a timer(1 sec) to run a function, in the function I setup a listener to event INIT of the loaded swf. It depends on the network condition that whether the timer handler or the INIT event will be first executed. Imagine a case that the INIT event fired first but the handler to handle the INIT event be setup later, will the handler be invoked?

Another question, if the loaded swf fired several events very fast, will the events be kept ordered as the fire sequence?

View 2 Replies

ActionScript 2.0 :: Loading And Playing Buffered External FLV's

Jan 30, 2009

what I'm trying to put together is some code that will load in multiple flvs, buffer the vids and have them play one after the other in a loop. I have so far code that loads in an array of flvs but doesn't loop. Also the buffering stops the play back for a moment towards the end of the first video, not sure why but changing Flush into Full doesn't help. Anyone know how to add a buffer that plays after a % of the movie it buffered or will buffer movie one and then buffer movie two while the first movie is still playing? As for looping goes I need a listener waiting for the last video in the array to be completed, but not sure how to pull that off.

[Code]....

View 0 Replies

ActionScript 1/2 :: FlvPlayback Component - Skin Show When A Video Is Loaded Then Fade Away After A Couple Of Seconds

Apr 8, 2011

With autoHide set to true I would like to have the skin show when a video is loaded then fade away after a couple of seconds.

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved