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 6991039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:26:22+00:00 2026-05-27T19:26:22+00:00

I am creating a music web app that streams MP3s that I have stored

  • 0

I am creating a music web app that streams MP3s that I have stored in MongoDB(GridFS).

My Question: How can I add http range support so that I can start streaming the audio file 1/2 of the way through without having to wait for the buffer.

I know GridFS supports reading for X bytes – X bytes, so basically I just need to know how to get nodejs to understand it only needs bytes X – X.

Thanks!

  • 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-27T19:26:23+00:00Added an answer on May 27, 2026 at 7:26 pm

    The client will send a Range header specifying the absolute starting and ending bytes followed by total file length or ‘*’.

    Examples:

      . The first 500 bytes:
       bytes 0-499/1234
    
      . The second 500 bytes:
       bytes 500-999/1234
    
      . All except for the first 500 bytes:
       bytes 500-1233/1234
    
      . The last 500 bytes:
       bytes 734-1233/1234
    

    The server should then return a response code 206 (Partial content) and the Content-Length should be only the amount of data transmitted.

    In the case the range is wrong, the server should either return 416 (Requested range not satisfiable) with a Content-Range field of bytes */* or should ignore the range request and return a 200 with the entire body of the file.

    The server must also send an Accept-Ranges field with the value of the accepted range unit, in this case bytes. But the range unit can be any custom range unit you want.

    Source: rfc2616

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

Sidebar

Related Questions

I'm creating pages for a small web-based game which must have some background music
I'm creating a mac app that retrieves the title of the now playing music
I'm creating video music search in android WebView and I wanted users can launch
I am creating a little JavaScript music player that sits on the btottom of
I am creating a tutorial site for music producers. On each tutorial (post, that
I'm working on an ios app with uitabviewcontroller that plays some music. I don't
I am creating an Android application which will have some embedded music inside of
We're currently creating an online music store that allows, only for administrators, to upload
I am creating a music player application and it need that 2 actions to
I'm creating an online music player using php and javascript and I can't figure

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.