Actionscript 2.0 :: Get FLV Duration Without Have To Play It?

May 15, 2010

My project is about a video player who read an xml list, but I have to play FLV video from an exact point, so I'm using xmoov-php, and it works perfectly. My problem is that I have to calculate this point from the total duration of the xml list (the sum of every FLV duration it cointains)... so I have to get the duration of every FLV in the list.

I know I can use onMetaData for get the duration, but I need it of ALL the video in the list, and it works only if I play the single video, don't it? And I cannot play every video in the list for obtain it... I also tried to put the play() function in a for-cicle, but it doesn't work: it gets me the duration of only the last video in the list cause is the last element the for-cicle passed trought.

Is there another method for get the duration without have the FLV to play?

View 3 Replies


Similar Posts:


IDE :: Make The Duration Of A Movieclip Equal The Duration Of The Preloader?

Apr 3, 2009

is it possible to make the duration of a movieclip equal the duration of the preloader, i mean is it possible to make something like, the time the preloader needs to reach the 100% = the duration of the movieclip? i'm using AS 3.0 and flash CS4 just in case it helps here is my code for the loader:

Code:
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
function loadProgress(event:ProgressEvent):void {
var percentLoaded:Number = event.bytesLoaded/event.bytesTotal;

[code].....

View 1 Replies

ActionScript 2.0 :: [F8] Play Frame 2 For A Duration Of 1 Frame Then Frame 3?

Jul 13, 2006

i have a movieclip on stage. it has 3 frames but is stopped with "stop():" so it only shows the first frame on mousedown i want it to play frame 2 for a duration of 1 frame then frame 3.

View 3 Replies

Establish Whole Animation Duration?

Sep 1, 2011

How can I see the total duration (in minutes / seconds) of my (multi-scene) flash movie?

Is there a 'whole movie' properties where I can see the size, duration etc?

View 2 Replies

ActionScript 3.0 :: How To Get Video Duration

Oct 24, 2011

How to get video duration in as3 ?

View 6 Replies

Flex :: Get The Duration Of An Mp3 File?

Nov 27, 2009

I noticed many players display audio track duration before loading the sound file, but I cannot figure out how that is done. So how can I get the duration of an mp3 file in Flex without having to load the file in a Sound object ? Think about loading 1000+ files in an application that has to immediately display the duration for each track.

View 2 Replies

Actionscript 3 :: Tween With Zero Duration?

Oct 31, 2010

i have a tween function which fades in a display object over time.

when i set my tween duration to 0 nothing happens. isn't the tween suppose to animate in 0 seconds (or frames) to emulate no animation at all?

new Tween(this, "alpha", None.easeOut, 0.0, 1.0, 0, true);

View 1 Replies

Flash :: Displaying Duration Of FLV With AS3

May 25, 2011

I am trying to show the duration of an FLV movie with AS3. I keep getting a Metadata error. Code below.

[Code]...

View 2 Replies

Flash :: Get The FLV Duration From Class?

May 31, 2011

I have a class which load and play a flv video file. My problem is, How can I get the flv`s duration in my main code? .. This is my video class:

package src {
import flash.display.Sprite;
import flash.media.Video;[code]....

After running program I have " Time: 6.76" in output windows and it plays flv fine, which is correct but I want something like var myTD:int = Veed.getDuration(); in my main class to get the duration.

View 1 Replies

Actionscript 2.0 :: Possible To Get Duration Of An MP4 Video

Feb 1, 2009

I was wondering if it is possible to get the duration of an MP4 video. I am attempting to make a scrubber bar for my video player following Lee's tutorial however in the video he uses an FLV with metadata. Is there any way to produce the same effect with an MP4?

View 3 Replies

ActionScript 2.0 :: .duration Mp3 Id3 Property?

Oct 6, 2007

I'm having trouble with this:

Code:
function playMusicFunc(whichSong) {
mySound = new Sound();
curPlaybackPos = 0;
disablePlay();

[code]...

Seems simple enough, but...

dur_txt.text = mySound.duration;

always displays 0.

View 4 Replies

Get Duration Of A Streaming Sound?

Feb 18, 2010

I am trying to write an mp3 player. I have tried everything and am suck getting the duration of an mp3.[code]...

View 1 Replies

ActionScript 3.0 :: XML Node Get The Itunes - Duration?

Mar 10, 2009

I don't know all the terminology when it comes to XML, so I'll just give an example and ask my question...

[Code]....

I can use myXML.title to get the title. How do I get the itunes:duration? This is a case where I have no control over the xml.

View 6 Replies

ActionScript 3.0 :: Animate In/out For The Duration Of Rollover?

May 21, 2009

I have a project that requires a rollover. When the object is rolled over, a quote animates (fades in). On roll out, it fades out. The easy way would be to do it on the timeline, but if the roll over isn't long enough for the animation (fade in) the roll out starts at 100% alpha then down to 0%.

how to expand the animation for 3 more quotes.

to download the fla visit [URL]

View 10 Replies

Media Server :: Getting Flv File's Duration?

Jan 29, 2010

Is it possible using command line, or a php file to get the duration of an flv file using the flash media server. I used the flvcheck file to fix the meta data, and was using the duration operator but it didn't come up with anything. I am guessing the duration operator just shows if there is errors with this?

View 1 Replies

ActionScript 3.0 :: XML Loading Image At Different Duration

Aug 3, 2011

iam new to the Actionscript i have to run each image stay time for differnt duration like example "img1.jpg will be 20sec and img2.jpg will be 10sec" like that.

[Code]....

View 3 Replies

ActionScript 3.0 :: Variable Duration For Tween?

Nov 29, 2011

I need to use tween alpha, but I want to change the duration of the tween with some buttons. Does anybody have any suggestion or example?I think that it is possible if I use variable for the duration and create a new Number by each button, but I don't know how. The tween is as below:var TweenPulseA:Tween = new Tween (right_mc, "alpha", None.easeOut, right_mc.alpha, 1, pd, true);

View 8 Replies

Flex :: Playing Sound For Certain Duration

Nov 25, 2009

I have a mp3 file and I would like to play it from one position and for a certain duration. I have first used the Sound class, the play method where I can specify the start but not the duration. I have looked then at SoundEffect class where you can specify a duration and a startTime. However I do not know how to play it from a AS3 class not from MXML : there is a play method ... but I get no sound!

View 2 Replies

Actionscript 3 :: Get Duration Of A Streaming Mp3 In Flash

Mar 1, 2010

I'm wondering if it is at all possible to get the total duration of an mp3 being streamed in flash?At the moment I'm using the following code to estimate the lenght but it is always inaccurate.[code]

View 3 Replies

ActionScript 3.0 :: Flash IDE Publish Duration

Nov 23, 2010

i've a bigger flash ide project (CS4) with many as3 code. if i want to test or publish it, it takes a long time (up to about 30 seconds), which costs much time during development. is there a way to speed up the publish process?

View 2 Replies

ActionScript 3.0 :: Duration Of External F4v Without Metadata?

Jun 20, 2011

I can find the duration of an external video to be played in my flash presentation?I am loading it to stage using netConnection/netStream.I have found information about the "time" property which tells me at what point the playhead is, but how can I get the total playback time?

View 1 Replies

ActionScript 3.0 :: Inaccurate Seekbar And Duration?

Aug 5, 2011

I've been programming with AS3 and done something that I haven't done before, Flash Video Player. I found some source code from this site and tinkered it a bit. Here's the script below.

ActionScript Code:[code]....

The problem is, when I move the scrubber, it doesn't load the duration accurately wherever I scrub it. If that makes sense? Is there something that I'm doing wrong? The width of the SeekBar is 728px.

View 0 Replies

Video Tutorials Counter And Duration

Jan 24, 2010

resources for building (or skinning) your own video player aren't nearly as easy to find as I thought they should be, and these tutorials are fantastic. The only things missing, that how to achieve, are (a) the video counting in 0:00 as it plays, and also being able to list the duration - so display something like: 0:00 / 5:47

View 13 Replies

ActionScript 2.0 :: MovieClip Duration Display?

Mar 7, 2007

I have a controller that works well (play, pause, restart, and a scrubbing playhead), now I just need to display the time remaining vs. the total time of an external swf, preferably in MM:SS format (Ex: 02:36/03:51). I'm getting better with my ActionScripting all the time, but the more I learn, the more I realize just how little I actually know. Anyways, my files are setup as follows: HTML w/ JavaScript that hides the main swf (giving it time to load)Main swf revealed when button is clicked on HTML pageExternal swf pulled into an empty MC (mcContent)Instance of controller in the main swf targets mcContentDynamic text field labelled "txtTimer" is inside of controller waiting for the right script to display time remaining/total timeSo, anybody know where I could find some script to get this final touch added to my project? Either time elapsed or time remaining would be cool. I've gotten a lot of really good help/tips here in the past and am hoping to keep that going.

View 1 Replies

ActionScript 2.0 :: Getting The Total Duration Of A Movie?

Jun 28, 2007

I have a video object attached to my flash and I want to display a time readout of how far into the video has been played. I know I need a dynamic text field, but I cannot find any methods of the NetStream that gets the total duration.

View 5 Replies

ActionScript 3.0 :: Pause Timeline For A Duration?

Mar 31, 2010

Is there any way to stop the timeline at given frames for varying set times?This is a AS2 one I used in the past (I think I saw it here on this forum)

this.createEmptyMovieClip ("timer",50);
timer.onEnterFrame = function () {
if (this.startTime > 0) {

[code].....

View 2 Replies

ActionScript 3.0 :: Tween Without Ease Or Duration?

Sep 12, 2010

Is it possible to tween an object, but have it move along its path without any easing or duration, so it always moves at the same pace. For instance, if the path were looping around the screen, and zig zagging, or w/e it does; it would always go at the same speed, like 2 pixels a second. I use TweenMax.

View 2 Replies

ActionScript 2.0 :: Change Mc Duration With Slider?

May 5, 2005

I'm new to actionscript, but here's what I would like to do.I want to have a single animation and two sliders. slider1 will advance and rewind the movieclip,we'll call it "scrubbing", while slider2 will change the highest frame of the mc acheivable by the "scrub" slider1. Therefore if slider2 is at one end slider1 will not advance the mc at all, while if slider2 is maxed out then slider1 will "scrub" the whole movie.

View 1 Replies

ActionScript 3.0 :: Audio Player Song Duration

Jun 18, 2010

Im looking for a why to display the current time position of a song playing in an audio player in a dynamic text box. I know the soundChannel. position references the current point of the songs, but I need some conceptual help translating that to a string and 00:00 time format dynamic text box

View 1 Replies

Record And Listen Audio - Specific Duration

Nov 3, 2009

I am facing a scenario where I would like the user of my page record their voices from their login where they will purchase certain minutes for recording and as well as for listening. How do I manage the audio frames sent back to the server? Is that possible to only stream audio for a length of 10 minutes, while actual length of audio is 1 hour?

Questions:
- Do I have to write or develop a flash player completely?
- Is there any already developed solution?
- Do I have to use Media Server in this scenario

View 3 Replies







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