Add a 3rd party mp3 player plugin

  • Hello,

    I am trying to integrate an mp3 player plugin into my tour. I can get the plugin to display but cannot get it to play the mp3 file. Here is the code that will play the mp3 on an html page

    Code
    <object type="application/x-shockwave-flash" data="player_mp3.swf" width="200" height="20"> <param name="movie" value="player_mp3.swf" /> <param name="FlashVars" value="mp3=test.mp3" /> </object>

    Here is what I have in my xml file

    I also have a startup action for it.
    mp3();

    Any help would be greatly appreciated.

    Thanks
    Rich

  • Must be a link problem between you mp3 player and your sound.
    By the way why loading your plugin in the HTML page ?
    You can load it directly from the tour xml :

    Code
    <plugin name="mp3_player" url="mp3_player.swf" ... />


    For the link problem try to put every file in the root folder with the krpano.swf,
    or if you mp3 plugin uses xmkl to load your mp3's, try this :

    Code
    url="%SWFPATH%/mp3_folder/mp3_player.swf?xmlDataPath=mp3/my_mp3s.xml"


    Make path relative to the mp3_player ^^
    Hope it could help !
    Regards.

  • Hi Yomas,

    Thanks for your reply. I was able to get the mp3 file to play after reading your post. I appended the url with the question mark symbol and path to the mp3 file and it worked.

    url="plugins/player_mp3_maxi.swf?mp3=my-music-file.mp3

    BTW, I was loading the player from the xml file. I just include the html code to show the parameters that were being used and working on an html page.

    Happy I got it working. Thank you very much! *thumbsup*

    Rich

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!