PDA

View Full Version : WMV Plays in Preview not in Build


LOUDWORLD
01-29-2008, 04:09 AM
I recently UG'ed from AMS 4 to AMS 7 and I am enjoying the new features alot. My problem is that I have a very simple menu that will be distro'ed on CD. It has 1 WMV and 1 PDF attached.

The content displays correctly when I preview it, and also when I build to an single file EXE, but not when I build to a folder for burning to CD. The PDF displays correctly in all cases.

When I click the play video button I first get an error '1011', I click OK and get a dialogue box stating There is no application associated with the given file name extension. I have tested it on 2 'puters, both running WIN XP Pro.

It is a simple WMV that plays fine when I navigate to the folder on the CD and click it. It is a standard run of the mill Windows Media 9 codec video.

I am using the Play Multimedia Quick Action to link to the file. I am 3 days from delivery and getting a little worried.

Pretty new to scripting, but would appreciate any suggestions.

Thankx!
Lou

yosik
01-29-2008, 04:51 AM
Maybe wmv is not supported by the Play Shell command (which is the one launched with a quick action).
I would suggest you use the "normal" script way:
under the onClick event on the PlayVideo button, put the following action:
File.Open("AutoPlay\\Videos\\Permit SH-9280.wmv", "", SW_SHOWNORMAL);

Good luck
Yossi

Loes
01-29-2008, 07:08 AM
You can easily import the WMV file into your project as a Video Object and then it will play without any additional scripting:
Just click the icon for Video Object in the toolbar (icon looks like a camera), browse to your WMV file and select it. Position it and save your project.
It should now play no matter which build settings you choose.

Perhaps you could place each video on its own separate page in your project and make various "play tutorial A", "play tutorial B" buttons, each button pointing to the right video page with a Quick Action: On Click > Show Page > Specific Page and select the page where you put the video.

On the video pages you will need a button to be able to navigate back to the original page, to be able to select another video.

Hope this helps,

Loes

LOUDWORLD
01-29-2008, 08:26 PM
It is my client's preference (not mine!) that the video plays in an external player so importing it as a Video.Object was not an option.

I used the scripting wizard as suggested, with a minor file location change and it works perfectly now. Thank you so much for the suggestions.

This is one of the best forums I use (Adobe is good too), as real world application builders offer real advice.

I will make my deadline now thanks to you guys.

Thank you again.
Lou

Intrigued
01-30-2008, 07:59 PM
You may be interested in this Post (thread) of mine about video in an external (free) player:

http://www.indigorose.com/forums/showthread.php?t=8072&highlight=VLC

Don't miss out, this is a good product and there are may command-line options to help facilitate your project's needs (client's wants).

:yes