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 *sad*

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

    Thanks for your help...

    Maël

  • 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.

  • 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

  • Quote

    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

  • Hi !

    Thanks for your answer.
    In fact, i forgot to have a look inside the *.app *wink* 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 !

    Edited once, last by Vinyl (July 21, 2009 at 5:24 PM).

  • Hi !

    Nice idea but still doesn't work.

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

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

    and

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


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

    Thanx again !

  • 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

    Code
    <plugin name="sound" 
    		url="jungle.swf"
    		keep="true"
    		align="leftbottom"
    		x="0"
    		y="0"
    		/>

    Just sharing *g*

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!