Welcome to WebmasterWorld Guest from 184.108.40.206
Forum Moderators: open
In Flash CS4 I imported mp4 video and exported as .swf
If I double click on the shockwave file it plays fine but the html that it generated only show the control and as if something is working but I never get any video.
Any help on how to fix this problem?
Next I'd view the source of the page, see if there are path issues breaking it.
I'll say as I've always said - the MM/Adobe "publish" methods are horribly outdated and dysfunctional. First you have this
Which is invalid html, an embed inside an object. This is because Moz browsers don't work well with the object only, and IE will display both if you put the embed outside object. So this was done years ago to "trick" both browsers into just working.
Ok now the video won't play at all either way so I started over. Let me also mention that I use AS3.0 Not sure if that was wise.
1. Import mp4 video to stage
2. Select Load External Video with playback component
.swf or html now showing video on source machine but on another machine I still see the same problem. All files copied into one folder.
This other machine uses Firefox 3.5.6 which has Flash Player 10.0.42.34 installed. It doesn't matter if I click on the .swf or html I still see no video. Only player control and some sorta working animation...
- working fine on development computer
- moved entire folder contents to a different computer
This has to be a path issue OR some resource being used on the development computer that is not present on the remote computer. This is also why I simply refuse to use components, which may make it easier but relies on various items. . . )
Another possibility is the flash player version: make sure when you publish, check the publish settings for the player version, and make sure it's the same on the remote one (or better, which sounds like it's covered.)
The fact that the .swf alone won't play eliminates any embed problems.
One way to gather clues: make absolutely sure the path info is exactly the same on both. So if you store it in C:\\projectname\flash\project on the original, duplicate this structure on computer 2. If it works, there is some hard coded path in your original somehow.
If it doesn't, there is some dependency that is not being moved. Search help in Flash for dependency or dependencies and look for any video topics that come up.
If not,>>Search help in Flash for dependency or dependencies and look for any video topics that come up.<<
Thanks for help so far.
1. Import mp4 video to stage
This is likely the problem. In your Flash submenu, you should find "Adobe Flash CS[version] Video Encoder." Run the encoder, convert your .mp4 to .flv, problem should be solved. It's pretty straightforward how to use it.
The other comp probably doesn't have .mp4 codecs or something . . . doesn't matter. .flv is the way to go with Flash.
I ran the below test out of curiosity, for your reference this should clear up some things.
- opened new AS3 file.
- Selected Import Video
- Selected path on the computer, select the .flv, not the .mp4. (we will change this later.)
- Left at "Progressive Download from a Web Server" (see below, important)
- Selected a skin
- Hit finish, prompts to save .fla
I see the component, press ctrl-enter to test.
Click the video playback element, then go to component inspector->parameters->source, the full path is there. Change whatever it is from C:\\whatever\video.flv to just video.flv. Verify it still runs from Flash on ctrl-enter.
At this point I cry "oops" because I never installed or have a need for the stand-alone player. Attempting to open the .swf directly gives me "select a program."
Time to hit publish. Set for AS3.0, Flash player 9.
Double clicked "component-test.html" and opens FF . . works fine . . .
Opened IE and tested, works there too.
Got comp's networked here, loaded the whole thing to a directory on the other comp . . . . works!
A list of files moved:
the .flv version of the video
the AC_RunActiveContent.js (ugh)
Two .swf's that begin with "Skin" for my skin.
Don't embed it directly in the timeline/stage, use the progressive download. The whole idea of Flash is that it streams the data instead of having to wait for it all to load. When you put the entire video on the stage, this is probably what it will do.
I thank everyone so very much for trying to help me with this.
I will start a new thread because I am having some problems at the moment.
Thanks again so very much folks.