try assigning a high buffer time
I thought of changing the buffer time, I have been looking at preloaders, is there a way to preload the videos into the project when the flash projects starts, so if there was any delay, it would only be at the beginning of the program?
you can embed the videos on the timeline, that will make heavier the SWF, but perhaps the problem is corrected, or create a SWF for each video containing only the embedded video and these charges with the loaders
Thank you so much for your help. I will try to change the buffer time first, then make each video an swf if that doesn't help.
I have substantially increased the buffer, but it only sticks on videos later in the project. How can I insert a swf in a frame of the project? I am wanting to make the swf very easy to play. Is there a way that I can insert a frame that is swf rather than flv and can I do it with an alpha channel, so it will be transparent? Again, thank you for your help.
Oh, I should mention, this is in actionscript 2.0
Create a new MovieClip then import the video (but embed it), drag the movie clip with the video embeded to the stage and add a alpha filter .
I'm sorry, I'm fairly new to this, how do I embed the video?
Click the File menu, point to Import, and then click Import Video.
Select a video file location option
- Locate the video file.
- Choose Embed FLV in SWF and play in timeline
- The Embedding Options ask how you would like to embed the video, and Symbol type:
- Embedded Video
- Movie Clip
Selecting the Movie Clip option will produce two items in your library; the original FLV file (it looks like a video camera) and the movie clip symbol you created.
Checkboxes allow the options to
- Place Instance on Stage
- Expand the Timeline if Needed
- Include Audio
Finish Video Import: Shows video source, and displays the options checked in embed section.
File->Import, the same way you import any other image, sound, etc. A video wizard will pop up to import your video and/or convert and compress it to something compatible with Flash if needed. As mentioned make sure you choose the option to embed the video in a MovieClip and let it extend frames to the duration of the video.
Another good idea is to go into the new MovieClip that contains your video, click anywhere in any frame on the timeline on the video, go to the properties panel and set the Sync drop-down to Stream rather than Event. That'll prevent a video, when unloaded, from continuing to play.
You are great!!!!! I'll try it.
Thank you so much for your help!
To get the best quality, consider encoding your videos with Adobe Media Encoder first and then import that. Flash won't need to convert it and you have a lot more control over the quality.
And don't forget to set Sync to Stream in properties. Everyone always forgets and then you have 5 movies playing at the same time even though you're not on a frame that contains any movie.
Hello, I know it has been a little bit. I tried to embed the video as a movie clip, but this causes the audio to distort slightly and synch problems. I took each layer that has video and selected the stream option, this helped dramatically, but the videos still stick later in the program. The program that I have made is a quiz with 25 questions. Each question has a video that asks the questions, then depending on the response the user sees a video for the correct response or incorrect response. So total would be 75 videos plus the introduction. Each of these is only a few seconds long, but up to a minute on a few of the ansers. I am using cue points to navigate from frame to frame. The video has an alpha channel so my charicature that asks the questions is on one layer, the background is on another, and other elements are on another.
The way I was thinking of fixing this, would be to find a way to preload all 76 video clips before the quiz is started, is this possible? If not can you think of any solutions?
Thank you once again for your help, it is greatly appreciated.
This has been a very common issue for timeline media playback in Flash. There's no real single solution when using timeline embedded/encoded video. One thing that may possibly help is encoding with Adobe Media Encoder to FLV before import so Flash won't encode it. It may produce better results.
The best long-term solution is drop timeline-embedded video altogether and use external FLVs that you load into a media player. You can use the FLVPlayback component to easily play the video. The Video class has plenty of samples to get you started. Here's a quick old FLVPlayback component tutorial:
Sometimes on really long videos even external files have sync issues. Although these days, less issues if you use the mp4 format. Although you use transparency and to my knowledge, although H264 supports an alpha channel, I don't believe flash utilizes alpha in mp4 yet. So be sure to keep the format of those files FLV with an alpha channel.
Thank you again for your help. My project is in actionscript 2.0. Is there a way to do this in as2? The way I have been utilizing my video is to load the flv on my website and then type in the location on the video import. I have been encodding it to a flv file using the media encoder and then loading it to my site.
Yes the FLVPlayback component is also available in AS2. I've used it a long time in AS2 projects and it works great.
Here is the AS2.0 language and component reference which is becoming harder and harder to find:
Here is the AS2.0 FLVPlayback component reference with sample code: