Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

Mael B.

Schüler

  • »Mael B.« ist der Autor dieses Themas

Beiträge: 157

Wohnort: France, Montpellier

  • Nachricht senden

1

Mittwoch, 15. Juli 2009, 17:33

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

Freitag, 17. Juli 2009, 04:47

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

Freitag, 17. Juli 2009, 09:01

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.

Schüler

  • »Mael B.« ist der Autor dieses Themas

Beiträge: 157

Wohnort: France, Montpellier

  • Nachricht senden

4

Samstag, 18. Juli 2009, 12:31

Thanks for this answer *smile*

5

Samstag, 18. Juli 2009, 15:56

Zitat

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

Sonntag, 19. Juli 2009, 13:17

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:

Quellcode

1
*.app/Contents/Resources/


best regards,
Klaus

7

Dienstag, 21. Juli 2009, 17:13

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 !

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Vinyl« (21. Juli 2009, 17:24)


8

Mittwoch, 22. Juli 2009, 11:54

Hi,

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

Quellcode

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


best regards,
Klaus

9

Mittwoch, 22. Juli 2009, 20:34

Hi !

Nice idea but still doesn't work.

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

Quellcode

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


and

Quellcode

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



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

Thanx again !

milotimbol

Fortgeschrittener

Beiträge: 242

Wohnort: Philippines

Beruf: Software Developer

  • Nachricht senden

10

Freitag, 30. April 2010, 03:43

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

Quellcode

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« hat folgendes Bild angehängt:
  • sound.jpg