AS3 Video playback with cuepoint
I have 3-4 flv videos to play, my problem is that theses videos are a continuous 3D characters emotions so while playing these as a play list Am getting a flickering between the videos.
My question is that can we do something with cue point so that once the first video is going to end the next will be start so that there won't be any kind of disturbance in the whole playlist.
Please share your ideas with me.
i'll take a stab at this, since i use Cue Points frequently, and have used them to play videos sequentially.
i don't know of any way ( that doesn't mean it doesn't exist ! ) of having a Cue Point on the very last frame of video A to trigger video B to start, without there being some type of 'stutter/time lag' ( disturbance, as you put it)
after all, the first video has to unload, then the next one load. i just assume there has to be that lag. you can of course minimize it by a) having the best, fastest server ( streaming server ?) b) making sure all files are in the same root directory c) have the fastest web connection.
i don't see how Cue Points will do this for you. better to compose all the videos together and let them play seamlessly. keep the separate videos if you want the flexibility of the user choosing them individually.
i am very interested to see what you come up with, as well as if anyone else ( Abraham ???? ) has any other ideas or solutions..
good luck !
I am very great full for your reply.
Can you suggest some code with which we can load all the videos while the first one is playing, I know that we have to pause the other videos and has to wait for the completion of the previous file.
Can we create a different instance of video player and use display list to play this?
Please help me in this
OK - i am revising my first statements. i did a little test and i think it can work real well with Cue Points ( or at least well enough ... )
it might not be 100% seamless, but it seems damn close to me. for my test, i took a video and made 2 consecutive 10 second video clips. the theory is this:
video A has an Event CuePoint at the last frame ( 00:00:10:000) i named it "end". The video B starts at ( 00:00:10:001)
2 FLVPlayback Components are on the stage, instance name flvPlayer1 for video A is directly on top of instance name flvPlayer2 for video B. i also made a movieCLip to use as a Play Button ( instance name "playBtn")
click the play button to start the sequence: video A plays, then at the end it turns off the visibility of itself, and it starts the playback of video B
here are 2 examples for you to see. the first one ww.demetri-media.com/Sven/2CuesA.swf
has the 2 video players offset at 10 x 1o pixels just to show you clearly what is happening
the second one ww.demetri-media.com/Sven/2CuesB.swf has the 2 players directly on top of each other, so you can judge for yourself if it is seamless enough for your purposes.
note: these are straight SWFs NOT embedded in HTML. resize ( smaller ) your browser window before hitting Play to see them in their native size.
this is the simple enough code that takes care of it:
so CUE POINTS come through for us again ! ! ! ! !
let me know how it goes for you...
This is much much much far good solutions, I really appreciates your patience to try this for me.
I feel that I can share my problem with you
I will explain my scene here,
I am working on a flash project where I have many 3D rendered video clips of number like Eg:the character will say 3,100,1000,50 etc etc.. like that, so when a particular number say 3050(Three Thousand Fifty) is imputed by the user then am combining the clips of three, thousand, fifty. Here every things are dynamic.Am using a timer to refresh my data connection so each time when I refresh I will get a new set of flv list to play and they can be like 2,3,4 and these playlist has to be repeated also some time if while I if am not getting a new set of flv's.
So as per our new finding the changes what we have to have will be like
1) the instances of the video player has to be generated according to the number of the flv and that has to be on run time.
2)as now we are making the visibility of the video player false once its played but as I mentioned this has to be played in a loop sometimes so we have to again make the visibility true.
Generally speaking I need one solution for this.
Some one gave me an option like instead of flv will use swf means
the I will take these clips to fla and will get as a swf files and load them as per the user input number, but here again what trouble I am facing is like the swfs can't be played as a playlist and then looped again
You are an angel on my shoulders now, please think about this and let me know your suggestions
that is a very different need than first presented. my 'solution' , though a good one, would not work for this, i fear.
you seem to need an algorithm of some type to parse the number inputed and assign video/soundclips/etc to each decimal point, where (3052) inputed gets parsed as it reads the first integer (3) and says "three" , counting which column it is in , it knows to say 'thousand' after that . it then reads the next integer (0) and passes, it reads the next integer, in the 2nd decimal column, and says ("fifty" ) then reads the next integer in the 1rst decimal column and says ("two")
if you can figure that out, then you can create an array of clips of all the possible sounds needed, and call them through a function tying the two together.
the video aside, the functionality is out there that can read each key-press to know what number ( or word) is being typed. i am exactly sure how your video integrates with the voice spoken, so you will have to figure it out- but you might explore that technolgy. Flash can, off course recognize each and every keystroke. i suggest you explore the KEYBOARD EVENT CLASS and its PROPERTIES.
goto LIVEDOCS: http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.... for info on each key stroke
i wish you good luck with this,i'll be VERY curious to see how it gets worked out. keep us informed !