You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Mael B.

Trainee

  • "Mael B." started this thread

Posts: 157

Location: France, Montpellier

  • Send private message

1

Wednesday, July 15th 2009, 5:33pm

Can't embed mp3 file ?!

Hello,

I tried to embed a mp3 file in the .swf file : according to the file size, the sound file seems to be included in the protected file... but it does work !! I've got the error message :
ERROR: soundinterface - loading of "sound.mp3" failed.
I try to change the 'loading order' in Kprotect... without success !
So I need to add the sound file in the same folder than the .swf file to avoid this error message :-(

Actually, in Kprotect, the type of the mp3 file is 'undefined'... perhaps this is part of the problem ??

Thanks for your help...

Maƫl

2

Friday, July 17th 2009, 4:47am

I have the same problem :
When i create a ".app" file, my video file "myvideo.flv" is not loaded.
I agree with you, i think it's because the file is " undefined'".
The reason is maybe krprotect is in "beta".


Of course, if i create a swf file, i can put my "flv files" in the same folder and it works perfectly.

3

Friday, July 17th 2009, 9:01am

Hi,

sorry, sound and video are two very special type of files in Flash,
in difference to normal files they are "streaming",
and this wouldn't be possible anymore when embedded...

I will try to find a way, but I'm currently not sure about that (especially for video) ...

best regards,
Klaus

Mael B.

Trainee

  • "Mael B." started this thread

Posts: 157

Location: France, Montpellier

  • Send private message

4

Saturday, July 18th 2009, 12:31pm

Thanks for this answer *smile*

5

Saturday, July 18th 2009, 3:56pm

Quoted

I will try to find a way, but I'm currently not sure about that (especially for video) ...


Thank you for your answer. So you think it wouldn't be possible ?
With video, the stream is ok when i create a swf file (the .flv files are in the same folder as the swf file).

What is the problem with the .app ? Why it is not possible to stream the .flv ?

Thanx

/Vinyl

6

Sunday, July 19th 2009, 1:17pm

What is the problem with the .app ? Why it is not possible to stream the .flv ?
Hi,
the "path" is the problem here,
".app" is not a real file, it's a folder, to get the .flv working it must be copied to this folder:

Source code

1
*.app/Contents/Resources/


best regards,
Klaus

7

Tuesday, July 21st 2009, 5:13pm

Hi !

Thanks for your answer.
In fact, i forgot to have a look inside the *.app ;-) It was the 1st thing to do to understand how it works !
It's a nice solution to put the *.flv directly in the *.app

But, for now it doesn't work with my project. Maybe i miss someting ?

In the *.app, there is a file named movie.swf
When i launch this file with flashplayer, everything works (the streams of *.flv is ok).
So i guess my path is ok.
But when i lauch the *.app, the stream doesn't work.

Is there a special path in *.app/Contents/Ressources ?

Of course, when i put my *.app and the *.flv in the same folder, it works !
So, it's a good solution for me ... But if i can find a way to embed directly the *.flv in the *.app, it would be perfet but it's not essential.

Again, thanx for you help !

This post has been edited 1 times, last edit by "Vinyl" (Jul 21st 2009, 5:24pm)


8

Wednesday, July 22nd 2009, 11:54am

Hi,

maybe this path will work then the flv is inside the .app: (I need to test that too )

Source code

1
... videourl="./Contents/Ressources/video.flv"


best regards,
Klaus

9

Wednesday, July 22nd 2009, 8:34pm

Hi !

Nice idea but still doesn't work.

I've tried in my flash plugin (a flash plugin which contains a button "play video") :

Source code

1
ns.play("./Contents/Ressources/video.flv");


and

Source code

1
ns.play("Contents/Ressources/video.flv");



But you're right, the solution might be in the path.

Thanx again !

milotimbol

Intermediate

Posts: 242

Location: Philippines

Occupation: Software Developer

  • Send private message

10

Friday, April 30th 2010, 3:43am

Guys,

I was able to embed sound in an exe file. I followed klaus advice of converting mp3 to swf. I googled for mp3 to swf and clicked on the first item

http://www.hootech.com/swf_to_mp3_converter/

Trial converts 60% but the sound I was converting was a repeating jungle sound that was 14 minutes long. So at 60% it still seemed complete.

See attached file. You even have choices on the colors.

in my xml it looks like this

Source code

1
2
3
4
5
6
7
	<plugin name="sound" 
		url="jungle.swf"
		keep="true"
		align="leftbottom"
		x="0"
		y="0"
		/>


Just sharing *g*
milotimbol has attached the following image:
  • sound.jpg