Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6364665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:11:38+00:00 2026-05-25T00:11:38+00:00

I am building an a/v html5 streaming web app. This question pretains to the

  • 0

I am building an a/v html5 streaming web app. This question pretains to the audio portion of the project, but i’m sure i will run into a similar situation when i get started on the video portion. My target device is the iPad’s safari browser (hence why i have to do this html5). Playback works fine, but i have a loading bar which needs to reflect how much of the track has been loaded. Following the w3 spec, i tried to implement this the following way using jQuery:

var that = this;
that.player = $('audio')[0];

$('that.player').bind('progress',function(){
    var buffer = that.player.buffered.end(0)      
    that.updateLoadBuffer(buffer);
});

This did not work. ‘that.player.buffered’ returns a TimeRanges object, and TimeRanges have a method ‘end(index)’ which returns the playback position of end of the buffer in seconds for the TimeRange specified by ‘index.’ TimeRanges also have a .length property which tells you how many TimeRanges are encapsulated by the object. When i tried to log that property i found that TimeRanges.length = 0, meaning no TimeRanges are passed back. Also when i threw logging statements into the bound function, i found that the ‘progress’ event was never fired. I have separate functions for the ‘loadedmetata’ and ‘timeupdate’ events which follow a similar format, and those fire off as expected. I tried other methods for capturing events to no avail:

that.player.onprogress = function(e){
     console.log('progressEvent heard');
};

that.player.addEventListener('progress',progressHandler, false)
function progressHandler(e){
    console.log('progressEvent heard');
};

Neither of these triggered my console message. My audio tag declaration is as follows:

<audio style="width:0;height:0;"></audio>

what am i doing wrong here?

UPDATE: I am using wowzamediaserver to handle the http streaming. I dont know if that could have anything to do with it.

YET ANOTHER UPDATE: I realize i do not have a source in my audio tag, that is because i set it dynamically using jquery, as follows:

$('audio').attr('src','http://my.wowza.server:1935/myStreamingApp/_definst_/mp3:path/to/my/track/audio.mp3/playlist.m3u8');

again i am not having playback issues so this shouldn’t have any bearing on my problem, but i just want to give you guys as clear of a picture as possible.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T00:11:39+00:00Added an answer on May 25, 2026 at 12:11 am

    The HTML5 specification is still a draft under development so browsers that support it are essentially conforming to a yet-to-be-finalized spec. As such I wouldn’t expect their HTML5 features to be fully functional…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building a location-based web app that will run primarily on mobile browsers. It
I am building a GWT app that uses Web SQL Local Storage ( http://dev.w3.org/html5/webdatabase/
I'm building an iPad optimized html5 web app which I am going to wrap
I'm building a music player web application which implements the HTML5 audio tag, however
I'm part way through building a fairly complex HTML5 web app, that retrieves its
I am building an HTML5 app for an iPad and it will contain a
I'm building a small html5 web-app to hone my html5 skills. I've built the
I am working on building a HTML5 video player with a custom interface, but
I'm building a HTML application to run in an Adobe AIR container, but the
I am building a Android HTML5 App using phonegap - Is it possible to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.