O'Reilly Forums: Website Audio Not Loading - O'Reilly Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Website Audio Not Loading

#1 User is offline   Ephezius 

  • New Member
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 05-January 13

Posted 05 January 2013 - 10:43 AM

I am in desperate need of help here... I have a site that I made for my church and we have entire lessons you can listen to. Here is an example:

http://tetelestai.or...6&date=&verses=

The problem is that the lessons stop buffering after a few minutes. I have done a lot of troubleshooting here and have found that the problem is not with the audio player (I have implemented several different jQuery, HTML5, and Flash players to try and overcome the issue. It's also not the files themselves... they all work end-to-end when I play them locally.

Also, most of the lessons worked perfectly before I launched the site.

So my only conclusion is that it has to be something to do with how the file is loading into the site... and something is telling it to stop loading.

I have also, by the way, tried to get rid of the dynamic generation of the audio player and made it an absolute reference... that didn't work either.

Anyway, here is the code... I could really, really use some help here:

//Header
<code><script src="../../mediaelement/build/jquery.js"></script>

//Body
<div id="aud">
                    <audio controls="control" preload="none" src="../../assets/audio/the_4th_g/the_4th_g_296.mp3" type="audio/mp3" />
                </div>

                <script>
                jQuery(document).ready(function($) {
                    $('#version').html( mejs.version);

                    // declare audio player with jQuery
                    $('audio').mediaelementplayer({audioWidth: 380, success: function(me) {  $('#audio-type').html( me.pluginType); }});


                });
                </script>


Note: the code I have listed is my most recent code and is different from what is in the link.
0

#2 User is offline   AverageJake 

  • Active Member
  • PipPip
  • Group: O'Reilly Author
  • Posts: 36
  • Joined: 04-October 10
  • Gender:Male
  • Location:Seattle, WA

Posted 07 January 2013 - 07:31 PM

View PostEphezius, on 05 January 2013 - 10:43 AM, said:

I am in desperate need of help here... I have a site that I made for my church and we have entire lessons you can listen to. Here is an example:

http://tetelestai.or...6&date=&verses=

The problem is that the lessons stop buffering after a few minutes. I have done a lot of troubleshooting here and have found that the problem is not with the audio player (I have implemented several different jQuery, HTML5, and Flash players to try and overcome the issue. It's also not the files themselves... they all work end-to-end when I play them locally.

Also, most of the lessons worked perfectly before I launched the site.

So my only conclusion is that it has to be something to do with how the file is loading into the site... and something is telling it to stop loading.

I have also, by the way, tried to get rid of the dynamic generation of the audio player and made it an absolute reference... that didn't work either.

Anyway, here is the code... I could really, really use some help here:

//Header
<code><script src="../../mediaelement/build/jquery.js"></script>

//Body
<div id="aud">
                    <audio controls="control" preload="none" src="../../assets/audio/the_4th_g/the_4th_g_296.mp3" type="audio/mp3" />
                </div>

                <script>
                jQuery(document).ready(function($) {
                    $('#version').html( mejs.version);

                    // declare audio player with jQuery
                    $('audio').mediaelementplayer({audioWidth: 380, success: function(me) {  $('#audio-type').html( me.pluginType); }});


                });
                </script>


Note: the code I have listed is my most recent code and is different from what is in the link.


Ephezius,

I have two theories.

1. I see that you said the audio stops buffering. Is that while it's paused? Will the audio play all the way through if you let it? Some browsers try to be smart about how they buffer media and will stop buffering if the file isn't playing.

2. Perhaps the audio file is corrupt in some way. If this is the only file that acts different from the rest, there may be a problem with the file itself. Maybe try re-encoding it.

Hope that helps a little. Good luck.

Jake
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users