From here you want to open it and view the contents. It should show as
Code:
{{$profileSong = $member->profileSong();}}
{{if $profileSong->file}}
<div class='cProfileSidebarBlock ipsPad ipsBox ipsSpacer_bottom'>
<h2 class='ipsType_sectionHead ipsType_reset'>Profile Song</h2>
<div class='ipsType_center'>
<p>
<audio autoplay="" controls="" loop="" preload="" class="ps_audio">
<source src="{$profileSong->file->url}"></source>
</audio>
</p>
</div>
</div>
{{endif}}
Now replace it all with:
Code:
{{$profileSong = $member->profileSong();}}
{{if $profileSong->file}}
<div class='cProfileSidebarBlock ipsPad ipsBox ipsSpacer_bottom'>
<h2 class='ipsType_sectionHead ipsType_reset'>Profile Song</h2>
<div class='ipsType_center'>
<p>
<script>
window.onload = function() {
var backgroundAudio=document.getElementById("music");
backgroundAudio.volume=0.09;
}
</script>
<audio id="music" autoplay="" controls="" loop="" preload="" class="ps_audio">
<source src="{$profileSong->file->url}"></source>
</audio>
</p>
</div>
</div>
{{endif}}
Now you can freely change the default volume at which the music will play at when you visit a user's profile by changing <backgroundAudio.volume=0.09;> (Do note that .5 is 50% so i recommend .1 or lower!)