PDA

View Full Version : Stopping video on last frame rather than loop


DeGrey
03-20-2007, 10:16 PM
I'm having a weird issue with AMS 6.0.4.0. I have several pages with WMV files in them. The files are a few seconds long. When the WMV gets to the end, I want the video to "freeze" on the last frame. The video files are set to auto-start but NOT set to loop on each page.

Right now I have this in my "on finish" tab for all of the videos:
Video.Seek("Video1", SEEK_END);

I'm seeing about a 50% success rate with this method. Some of the videos work as expected and stay on the last frame when the video is done. The other half of them jump back to the first frame at the end.

I can't figure out what is going on. I have tried several things including seeking a specific time and also adding a "pause" command but I cannot get these things to act like they are supposed to.

Has anyone ever run into something like this?

eric_darling
03-20-2007, 11:30 PM
I think that you should try using the Media Player plug-in to handle this task. WMV files may or may not communicate well through the Video object in AMS.

DeGrey
03-20-2007, 11:52 PM
Thanks, I'll give that a shot. I've never messed with that before.

DeGrey
03-21-2007, 12:18 AM
ahhhh... found what I was looking for. I'll give this a shot.

DeGrey
03-21-2007, 01:07 AM
Eric thanks for the tip! Everything is running smooth now. I owe you one.

eric_darling
03-21-2007, 07:49 AM
No problem. The video object works well for more basic/older formats such as MPEG-1. But, for the most reliable performance in handling video playback, you'll greatly improve your chances by using the plugin instead - particularly for WMV-9. One of the best things about AMS is there's almost always more than one way to tackle a problem. It helps to keep yourself thinking of alternative solutions!