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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:49:12+00:00 2026-05-25T23:49:12+00:00

Background: I’m streaming radio using double buffering approach for html shoutcast. I get metadata

  • 0

Background:
I’m streaming radio using double buffering approach for html shoutcast. I get metadata information from stream using http://www.smackfu.com/stuff/programming/shoutcast.html

Problem
I have three problems.
1- I already use a urlconnection and inputstream for listening radio. I don’t want to open a new connection to retrieve metadata. But when I tried to get both from same inputstream, I couldn’t listen radio anymore. I guess this is not possible and I have to use two seperate connection? Isn’t it bad for performance?

2- When the application started, I retrieve the info of the current song. No problem. However how do I get informed when the song changes. It is said that server will send information when the song changes. But I’m starting the URLconnection, get the input stream, retrieve the metadata and close the connection. I couldn’t understand how should I informed by the server? Should I keep the connection open?

3- And last question. AFAIK progressive streaming isn’t possible before android 2.2. Is this true just for http? If the protocol was rtsp, could I make progressive streaming before android 2.2? Anyone please make it certain and clear?

Thanks a lot,

  • 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-25T23:49:13+00:00Added an answer on May 25, 2026 at 11:49 pm

    You must remember number from icy-metaint header field.

    After receiving that many bytes from stream (which you send to audio decoder), you must expect metadata part, and read this (also not sending these data to audio decoder).
    Then you again receive encoded audio from stream, and continue the process of periodically reading metadata after icy-metaint bytes.

    This means that server sends metadata (info about artist / song title) periodically, and your code must split the input stream to audio and metadata.

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

Sidebar

Related Questions

Background: Using unix, codeigniter from localhost. I'd like to run a controllers via a
Background: I'm using the (fantastic) Vim plugin python-mode , which includes the pep8 linter.
Background - I am using paramiko to put files on a bunch of remote
Background I'm trying to understand matrix transformations. (Developing plugins for SketchUp using it's Ruby
Background : I am using nginx as a reverse proxy to my express server
Background - I want to extract specific columns from a csv file. The csv
BACKGROUND I'm using VS 2010 on a machine where I installed .Net 4.5 which
Background We're using System Center 2012 to deploy a Windows 8 Metro-style application to
BACKGROUND I'm writing a little game using Java, slick2d and other frameworks. Slick2d does
Background: * using Corona SDK and the physic's functions here * have tracked down

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.