Urgent help playing MP3 on Vbulletin Forum

I have installed brando mp3 attachment player on my server, I am running vb4.2.2 .It works for me in Chrome, but not in IE or firefox and doesnt work for any other member using the forum so i am totally stumped. The player shows in the post but when you press play it just says buffering .
Can anybody please help me get this working as my site relies heavily on MP3s

I have installed the files (audio-player.js) and player.swf in forum root/clientscript/audio

the code for the file audio-player.js

var ap_instances = new Array();

function ap_stopAll(playerID) {
    for(var i = 0;i<ap_instances.length;i++) {
        try {
            if(ap_instances[i] != playerID) document.getElementById("audioplayer" + ap_instances[i].toString()).SetVariable("closePlayer", 1);
            else document.getElementById("audioplayer" + ap_instances[i].toString()).SetVariable("closePlayer", 0);
        } catch( errorObject ) {
            // stop any errors
        }
    }
}

function ap_registerPlayers() {
    var objectID;
    var objectTags = document.getElementsByTagName("object");
    for(var i=0;i<objectTags.length;i++) {
        objectID = objectTags[i].id;
        if(objectID.indexOf("audioplayer") == 0) {
            ap_instances[i] = objectID.substring(11, objectID.length);
        }
    }
}

var ap_clearID = setInterval( ap_registerPlayers, 100 );

In postbit_attachment you are directed to paste the following code at the top

<!-- Embed Player -->
<script src="./clientscript/audio/audio-player.js" language="JavaScript"></script>

<script src="./clientscript/audio/audio-player.js" language="JavaScript"></script>

<object style="vertical-align: middle;" id="./attachment.php?{vb:raw session.sessionurl}attachmentid={vb:raw attachment.attachmentid}&amp;d={vb:raw attachment.dateline}" width="290" height="24" data="./clientscript/audio/player.swf" type="application/x-shockwave-flash">
<param value="./clientscript/audio/player.swf" name="movie"/>

<param value="playerID=1&soundFile=./attachment.php?{vb:raw session.sessionurl}attachmentid={vb:raw attachment.attachmentid}&amp;d={vb:raw attachment.dateline}" name="FlashVars"/><param value="high" name="quality"/>

<param value="false" name="menu"/>
<param value="transparent" name="wmode"/>
</object>

<!-- /Embed Player -->

My postbit_attachment looks like this

<!-- Embed Player -->
<script src="./clientscript/audio/audio-player.js" language="JavaScript"></script>

<script src="./clientscript/audio/audio-player.js" language="JavaScript"></script>

<object style="vertical-align: middle;" id="./attachment.php?{vb:raw session.sessionurl}attachmentid={vb:raw attachment.attachmentid}&amp;d={vb:raw attachment.dateline}" width="290" height="24" data="./clientscript/audio/player.swf" type="application/x-shockwave-flash">
<param value="./clientscript/audio/player.swf" name="movie"/>

<param value="playerID=1&soundFile=./attachment.php?{vb:raw session.sessionurl}attachmentid={vb:raw attachment.attachmentid}&amp;d={vb:raw attachment.dateline}" name="FlashVars"/><param value="high" name="quality"/>

<param value="false" name="menu"/>
<param value="transparent" name="wmode"/>
</object>

<!-- /Embed Player -->
<li>
    <img class="inlineimg" src="{vb:stylevar imgdir_attach}/{vb:raw attachment.attachmentextension}.gif" alt="{vb:rawphrase file_type_x, {vb:raw attachment.attachmentextension}}" />
    <a href="attachment.php?{vb:raw session.sessionurl}attachmentid={vb:raw attachment.attachmentid}&amp;d={vb:raw attachment.dateline}"<vb:if condition="$show['newwindow']"> target="_blank"</vb:if>>{vb:raw attachment.filename}</a> 
({vb:raw attachment.filesize}<vb:if condition="$show['views']">, {vb:rawphrase x_views, {vb:raw attachment.counter}}</vb:if>)
</li>

If anybody could please help me out i would greatly appreciate it , i have been hunting the internet for answers for 2 days now and have got nowhere

Do you have the link to the site?

Hello, yes the link is http://community.musicmatters.org.uk the mp3 files can be found in the Dj upload section
Thank you for answering

Have you considered using the <audio> elements? Flash is a dead duck these days. There are some nice libraries you can use to enhance the experience, too, such as http://www.schillmania.com/projects/soundmanager2/

Thank you for your reply RalphM. I have taken a look but unfortunately the soundmanager has to be manually linked to each mp3. What i am in need of is to play inline mp3s that have been uploaded b my members. The same problem happens with BB code where the user has to manually wrap [mp3] and [/mp3] tags around the file name.
Im very new to programming and im totally confused (data overload :slight_smile: )

Heres an example of the inline , i hope it works as it doesnt work for a lot of people http://community.musicmatters.org.uk/showthread.php?63-Dave-Woods-with-the-house

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.