ActionScript 1/2 :: Detecting End Of Video Playback?
Nov 3, 2009
how to catch the end of FLV playback. I have an SWF which is loading a number of FLVs dynamically, based on user interaction with a main menu. I am NOT using the FLVPlayback Component. I wanted to create my own buttons and interface, so I am using the basic Video Symbol that is added directly from the library.
I have already read about using listeners to catch the complete property, but that seems specific to using the FLV Playback component. I have thought about using cue points, but I didn't create the FLVs, and I don't have access to them, to edit them. I have also tried comparing the duration of the current FLV to the time played, but that breaks when a new FLV is being loaded.
how to detect the end of an flv playback. I am loading in a flv to a webpage, using the FlvPlayBack component. Everything is working fine as to be expected. How do I insert a credits image to display once the flv has finished? Users would need to be able to restart the flv playback too. I have been looking at cuePoints etc...
I am wanting to play a number of movie clips and flash produced video clips. On the main timeline I have a frame for each clip I want to play. In that frame is a flash movie that contains the video that I have embedded onto the timeline for the movie. The filesize for this project is massive and I am struggling to work on the file. I want to be able to play the video files with the playback component in each of the frames where the video was.
I am using Flash Professional 8 and Dreamweaver 8 to maintain a website. I have just started using flash to show video highlights from high school football games which I record. Using iMovie I export the video as quicktime file and then import to flash to convert to a flash video file to post on the web site. The video coming out of iMovie has very good contrast and the quicktime movie has the same good contrast. When looking at the file in Flash the contrast changes dramatically. I becomes washed out. I am using Max OX 10.6 operating system.
I have trouble in choosing between external video with playback component and embedded video . I have tried adding video to dynamic page and everything is perfect .This video I have imported using the option File ->import video -> external video with playback component. If I try to execute flv on another system , the video is not playing eventhough it is in library.
So, I have imported video using the option of embedded video and this worked fine on another systems as it embeds video. The video plays for only 2 min 54 sec. I have compressed the bit rate to how much ever I can in premier pro. It resulted in reducing the size of the file but still I see the video occupying more than 3500 frames in the timeline. I feel this is not optimal.
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?)
I've imported a Quicktime video clip into my scene. I want to slide this video clip in from off screen and have it stop at center stage using keyframes. When I use keyframes to move a video clip - the playback of the clip resets to it's first frame at every keyframe. Is it possible to move a rolling video clip using keyframes without altering the playback of the clip?
The task seems easy: I am loading a video via a netsream object (could be FLV or an h264 mp4) and I would need to check if this video has audio available (otherwhise sound control objects should be disabled or become hidden).
I have a few videos that I have in my Flash file, that I would like to have them trigger the playhead on my main timeline move to a new frame upon completion of the video.
I have found this page, informing me that it is possible, but do not know what to do with this information.
I have a frame where I have added an flv playback component to play a flv file. Everything plays fine, but when I test the file and navagate away from the frame that the playback component is on, the video continues playing.
Is there any way to get the video to stop when the user navigates away from the frame? I'm sure this could be done if I add the video using AS 3.0 (that is what the navigation of the site is coded with).
I'm having trouble fixing a problem with an flv playback issue. A main swf loads a child swf which preloads a movie. If the movie is preloading and you close the child swf with _global.lightBox = false; global.nc.close(); unloadMovieNum(2); The global variable lightBox is set to false so when the video is fully loaded it sees that lightBox is false and does not try to play. The global variable nc is the movie's netConnection. The problem occurs when you click to close the movie and then try to load the movie again. What happens is it stays on the preloader going from 1 to 99 over and over again while playing the first small bit of the movie's sound.
The application serves as a presentation interface and plays slide and video content using the FLV Playback Controller. The user interface has three preview windows along with a list of slide and video content that gives the user the ability to select which slide(s) and or video(s) appear in the preview window(s). The content is simultaneously shown full screen on three projectors via multiple monitor outputs (2 nVidia SLI gfx cards, 4 outputs, 1 preview monitor, 3 for projectors).Our issue is centered around the playback performance of one 20MB flv (1366x768) after having played several 2MB flv files (same resolutions and bit rates).
The odd thing is that the 20MB file can be played seamlessly 1x, then the small flvs can be played without issue; but if we try to play the 20MB flv again, it begins to stutter in the last half of playback.We are looking at getting an official opinion letting us know if video playback performance can be increased and is so a quote letting us know what costs are involved to do so. We can provide the source code and all related files.The hardware this Application is running on is a PC running XP SP3 with a XEON 5130, 2 Ghz processor, 2 GB DDR2 ram, a Seagate ST3160815AS 160 GB SATA Hard Drive and 2 NVIDIA 9800GTX Video cards
I'd like to use the VideoPlayer class instead of FLVPlayback because in theory it uses up less space as it does not have all the skins etc. However I've found that if I want to throw a VideoEvent to check when the video has finished playing, if I do not have a component of FLVPlayback in my fla. file library I get a compilation error saying it can not find the "VideoEvent" class. That would mean that by using VideoPlayer I cant make my swf smaller and I lose functionality. I need to keep my size as small as possible.
I import the video manually from the File Tab. I change the stage size to match video (I want it full screen because I have "liquid layout" AS3 code in order to match browser window) I center the video on the stage.I make the video an Object (MovieClip)
And that's it.
The video play well, matching the full brower window and resizing accordingly.
My questions are :
1 - I am making the video a movie clip but is it necessary. I have tried without and it still works!! The only thing I find weird is that the "publishing" doesnt work when the video is not made a MovieClip. (I struggle to center the SWF in the HTML page)
2 - I don't know about the Netstream class. My server is a normal FTP (with PHP MYSQL) but not a streaming server. Would it be appropriate (better) to call the video through AS3 using the Netstream class ? (actually I am not sure of what the Netstream class is for)
3 - I have tried to loop the video using the classic AS3 code (that can be found anywhere). What is funny is that the code works when the movie is not converted to an object. But when it is, the looping doesnt work at all. Do you see a reason why ? (Maybe because the video is imported manually and not an instance created from the Video MovieClip Object ??)
I am using the FLVPlayback component to play a flash video. Currently, the input video I am using is a H.264 encoded .mp4 file. My question is regarding the type of video input which the component supports. In the sense, I understand the kind of videos which the playback component supports(h.264, sorenson spark encoded videos and the like). I specifically wanted to know whether there is a provision to play a video which has chapters and is there any skin to support such a feature?
Background Info: I am using Flash Professional CS 5 and the language is AS3. I am using flash on an embedded platform.
I have made my site and now the protocols of Flash wont allow the internet to playback the video, I dont know if you understand me but this is the message I am getting every time I try to open my finished SWF Project."The following local aplication on your computer is trying to communicate with this Internet-enabled location: my site IP" I looked for the location to allow the settings yet I cant find it.
I have a video embedded in Flash as an FLV. I'm able to get the video to play through the way I want, but when the video plays through and ends, I want to have two options/"buttons" display that allow the user to either replay the video a la youtube, or link to another web page.
I know it must a very basic question but I can't seem to find any answers. I've included a screen capture of the end of the video.
I'm trying to develope a simple video gallery app. It just has a few thumbnails that when clicked, play the select movie in my show movie area.It looks great when I export the .swf and see it on my laptop, but when I install it on my Android phone the movie takes over the whole screen.I am streaming the video via my server. The video dimensions are 800 x 600 on my server, but i only want then 500 x 333 on my app to make room for the thumbs. have set the flvplayback componant to 500 x 333 but everytime I install it onto my android the video just takes up the whole screen.
I have developed a Flash projector to play video files from a DVD. The presentation runs fine on Mac desktops and laptops. Also runs fine on PC desktops but not on some PC laptops. The videos are encoded at 772 Kb/sec. This seems very low for DVD delivery. What is the recommended setting for encoding video for a PC laptop? What other factors could be a factor?
i've got a large video (48MB) that after 7% is loaded, it starts playback. on a pc it takes 10 seconds before it will start to play and it plays all the way thru with no problem. on a mac it takes 30 seconds before it will start to play and sometimes playback is choppy. why does this happen? what are the differences with playback of video on a mc and pc? is there some way i can get around this?
I imported a video using progressive download method (so not embedded). I don't want the video to play until the user clicks on it. Right now, it's playing as soon as I get to the frame it's on. Is there a way to prevent it from playing until the user activates it?
I'm using one of flash's standard FLV skins but want to modify the code and graphics. Not a problem however, I want an animation running around the outside of my player that can also be controlled by the play button of the movie player..... so..animation on outer skin is running or perhaps starts to run when user mouses over that area... video inside is still.... press play button, video starts, animation stops.... press pause, video stops, animation starts...
I'm trying to play 3 flv video, one right after the other but is unsuccessful. All it does is skip the other 1st 2 videos and play the last video in the array. Here's my code: var myArray = new Array("commercial.flv", "intro.flv", "sleep.flv"); this.attachMovie("videoHolder","mcVideoHolder",this.getNextHighestDepth()); mcVideoHolder.swapDepths(preloader); var nc:NetConnection = new NetConnection(); nc.connect(null); [Code] .....
I have a piece of code that opens a netconnection to a FLV file that is essentially identical to the netstream example in the online docs (see below). The video in question is being generated on the fly from a 3rd person app but while it is presented in a SWF running in a browser it is also automatically being cached to disk. Since I am generating the video live and do not wish to keep it, I would much prefer to avoid writing anything to disk (since I will eventually run out of space if the SWF runs too long). Is there any way to clear the data in a netconnection or netstream to avoid it acting in this fashion?
I am trying to load video using NetStream. I am able to do this by using the Video Class, but is it possible with the FLV Playback? I would like to add a seek bar so people can scroll the video if they want to.
I know the FLV Playback Component has this built in so I would use it BUT I can't load a stream to the FLV Playback, I can only set it's source. This works fine, but it doesn't allow me to unload it, the sound keeps playing, which is why I ended up using the NetStream instead.
So I have 2 questions. 1) Is it possible to load the NetStream to the FLV Playback component? 2) If not, how do I add the seek functionality to my Video Class?
I downloaded an flv file using RealPlayer 11 (latest version), now when I play it back within my custom made video player, it plays fine untill it reaches the end. I have programmed the video player to go back to the beginning onComplete.
I have tried other flv files and they work just fine - could the flv file be corrupted.I need a resolve on this issue today, as I have a client waiting to approve of the custom video player. Also, he wants me to use the same player on some of his client sites.
I am working on a Flash project, it has a module, that will play some video and display image as advertisements, and I set a listener that will trace when the video is playing, if the playing ends, and listener will do something.
[Code]...
if the image-sliding never shows up, everything is just fine. if the image-sliding shows-up, the advertisement module will get stuck at the video's end, and that will only happen to my own video.if the advertisement module get stuck at my video's end, then I can click the progress bar to get the video play again(no need to replay the whole, just a few seconds is ok), and then the advertisement module will continue to work correctly again.
I would like to be able to play my flash video on top of my website, and then disappear once its finished. Just like on the apple website, with the macbook air. This is probably very simple, but I am not sure what it is called!