Sound (MP3) works like a dream, cant do video though :(
Ok, i managed to get the sound to work (sound only with MP3), thought i would stab at the video as well.
Major issues (and no hair left).
Heres my code:
soundManager.url = './data-revelationmap/';
soundManager.flashVersion = 9;
soundManager.useMovieStar = true;
soundManager.onload = function()
{
soundManager.createVideo({id: 'rev1', url: './data-revelationmap/1.MP4'});
soundManager.play('rev1');
};
Then in the page i have
Ive tried with the small no debug and larg script, i either get "rev1" isnt an object type error OR a security error about flash not being version 8 (i have version 10), however the demo site does work so cant be flash.
Does the code need to be INSIDE the div area or does the page find a DIV names "sm2-container", also how can i run 2 images at the same time on the page (if at all possible)?
Many Thanks
Ashley
Major issues (and no hair left).
Heres my code:
soundManager.url = './data-revelationmap/';
soundManager.flashVersion = 9;
soundManager.useMovieStar = true;
soundManager.onload = function()
{
soundManager.createVideo({id: 'rev1', url: './data-revelationmap/1.MP4'});
soundManager.play('rev1');
};
Then in the page i have
Ive tried with the small no debug and larg script, i either get "rev1" isnt an object type error OR a security error about flash not being version 8 (i have version 10), however the demo site does work so cant be flash.
Does the code need to be INSIDE the div area or does the page find a DIV names "sm2-container", also how can i run 2 images at the same time on the page (if at all possible)?
Many Thanks
Ashley
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?the DIV didnt show above, there is a div with "sm2-container" in the page as well with the width and height size (that isnt the same size as the movie)
I’m still confused
-
Inappropriate?Hmm. Looks like you're following the basic video template, which is correct (and works)..
SM2 uses either a Flash 8 or Flash 9 movie, which is just the "minimal requirement" for SM2 to work. As long as you have at least Flash 9.0.115, you are all good for video support (as you say you have 10, so it's not a concern.)
Sounds like SM2 may be failing at start-up, which is a separate issue. If you're doing this offline (eg. loading from the file system), you'll get the security error until you have whitelisted Flash in its security settings panel, which allows JS + Flash to work (see troubleshooting for related info.) If you're viewing this over HTTP, security should not be a problem.
Common causes:
* Flash security prevents offline viewing by default, needs whitelisting
* Missing .SWF - check the URL soundManager tries to load (soundmanager2.swf or soundmanager2_flash9.swf)
If the SM2 demos all work in your environment, I'd take another look at your code and make sure there aren't any script errors which may be causing things to break.
If you have a live demo URL of this somewhere, or can post the debug output from SM2, that will also help in troubleshooting.
Re: sm2-container, and so on: By default, SM2 writes the flash movie to an element with the ID of "sm2-container". To control where the video ends up, have a <div> with that ID within the HTML of your page. The .SWF will then be appended there.
Because of the way SM2 is designed, only one video element (one SWF) may exist on the page.
-
Inappropriate?good to see i'm not going nuts, the sound works fine (same webpage, some server, and yes its all on HTTP as i am aware of the security issues.
I do have 2 live pages (1 with the sound and 1 with this) see below locations...
www.ashleygriffin.co.uk/revelationmap... === for the working sound
www.ashleygriffin.co.uk/revelationmap... === for the non working video
Just tried it again, says flash failed to respond now !
I’m getting bored of this one
-
Inappropriate?oo and whats odd is that simple template works here as well, the file "1.MP4" is that one from that template (used that incase it was the MP4 file i created).
I’m still confused
-
Inappropriate?ooo wait a minute, i didnt realise there was another SWF file called "_flash9", just playing with that now hold off till i come back with a response (same URLS though).
I’m feeling better about the whole thing (i hope)
-
Inappropriate?ok, i fixed it............... odd though, first i didnt have the _flash9 file in the directlry, however found something odd...
using sound i can use the path "dir/sound.mp3" but the the flash 9 it has to be "/movie.mp4" with no "dir/movie.mp4" how every everything else is the same, can you look at the above movie link "www.ashleygriffin.co.uk/revelationmapnew.html" and explain why the MP3 works with the URL to the file as it is and then why the MP4 would need to be different.
Also is there a way of stopping the MP4 file from looping then stopping on the last screen (trying to use MP4 files instead of GIF files, MP4 is smaller even with the overhead of the flash player).
Many Thanks
I’m feeling much better, although still not well
-
Inappropriate?Hmm, that is very weird. It looks as though loading "movie.mp4" actually happens relative to the directory from where the SWF is?? That doesn't seem quite right at all.
eg. In your case you have the SWF at /dir/ and then loading "foo.mp4" ends up being /dir/foo.mp4 ?? .. I don't get it.
In the meantime, it seems like specifying the "absolute" path to your movie is the way to go.
eg. /path/to/movie.mp4
I don't know if there's anything I can do about this from within Flash, so users will have to just specify the full path. It's odd that the behaviour is different between audio and video.
You know, since you're specifying soundManager.url = './path/', maybe try setting that to '/path/' without the . in front and see if that changes things. I wonder if that is related, because that may be affecting the way flash then tries to load files.
-
Inappropriate?ok, tested this and it seems the sound has to be relative to the HTML page but the video is relative to the SWF file (from what i see).
root has HTML
datafolder has both SWF and all sound and video files.
have a look at the working (but still being edited) html file www.ashleygriffin.co.uk/revelationmap...
I’m working but with some odd settings
1 person says
this answers the question
Loading Profile...



EMPLOYEE