0

I have a problem that i want to record the stream with the playing of media player. I mean if I am streaming and can record the stream with specific duration then how can i record it. ?

Please help.

  • Please can you be more specific... what are you trying to do... add some code – Ali Hasan Mar 17 '12 at 11:59
  • Thank you so much for response and Sorry for my late response.. Actually I have played a URL for late streaming of android media player. I want record a file with specific time. I think you have an idea about the tuneib application. I want to do like this. – Zeeshan Abid Mar 24 '12 at 06:11
  • URL url= URL.openConnection(); Inputstream i = url.getInputStream(); This is unknow length stream. when i record stream for 10 seconds , it record for 2 mintues. – Zeeshan Abid Mar 24 '12 at 06:24

1 Answers1

0

if you want 10 seconds you will have to calculate it, based on the number of bytes you have received and the bit rate of the file stream.

For your reference view this link: Record streaming audio in java?

Community
  • 1
  • 1
Ali Hasan
  • 1,045
  • 4
  • 16
  • 43