Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - How to play streaming Audio from Rtsp url in android

How to play streaming Audio from Rtsp url in android

All your problems with Audio, Video and Images.

How to play streaming Audio from Rtsp url in android

Postby ramesh.kec.85 » Fri Aug 05, 2011 5:59 am

I played video but i can't played audio using media player...
please help ,me Regarding follwing issue.
i got errors while playing audio .

08-05 09:43:52.243: ERROR/PlayerDriver(34): Command PLAYER_INIT completed with an error or info PVMFFailure




My code is Here:
--------------------
String path="rtsp://iphoneradio.orange.mu:1935/live/koolfm.stream";

mp = new MediaPlayer();
mp.setAudioStreamType(AudioManager.STREAM_MUSIC);

try {
mp.setDataSource(path);
mp.prepareAsync();
mp.setOnPreparedListener(this);
mp.setOnBufferingUpdateListener(this);
mp.setOnErrorListener(this);
mp.setOnInfoListener(this);

} catch (IllegalArgumentException e) {

e.printStackTrace();
} catch (IllegalStateException e) {

e.printStackTrace();
} catch (IOException e) {

e.printStackTrace();
}
}

@Override
protected void onDestroy() {
super.onDestroy();
mp.release();
}

@Override
public void onPrepared(MediaPlayer mp) {
mp.start();
}
@Override
public boolean onInfo(MediaPlayer mp, int what, int extra) {

return false;
}
@Override
public boolean onError(MediaPlayer mp, int what, int extra) {
// TODO Auto-generated method stub
mp.release();
return false;
}
@Override
public void onBufferingUpdate(MediaPlayer mp, int percent) {

}

}
Thanks

Regards
--R@mesh
ramesh.kec.85
Developer
Developer
 
Posts: 27
Joined: Sat Jul 30, 2011 10:05 am
Location: Ahmedabad

Top

Re: How to play streaming Audio from Rtsp url in android

Postby abhijitphatak28 » Fri Aug 05, 2011 8:03 am

Which format of audio coming from this stream ? You can check if that device support that audio format.

Earlier i have tried to play a H.264 with AAC and it was playing successfully.

Thanks

Regards
-Abhijit
User avatar
abhijitphatak28
Senior Developer
Senior Developer
 
Posts: 102
Joined: Sat Feb 12, 2011 1:18 pm
Location: Indore

Re: How to play streaming Audio from Rtsp url in android

Postby ramesh.kec.85 » Fri Aug 05, 2011 10:56 am

can you explain me how to check which format of audio coming from stream ?
it is playing in vlc player in my desktop..
Thanks

Regards
--R@mesh
ramesh.kec.85
Developer
Developer
 
Posts: 27
Joined: Sat Jul 30, 2011 10:05 am
Location: Ahmedabad

Re: How to play streaming Audio from Rtsp url in android

Postby abhijitphatak28 » Fri Aug 05, 2011 11:58 am

Does VLC not provide you this information ?

Also, you can try putting one MP4 on your server and see if you are able to play audio/video both with that ?

Thanks

Regards
-Abhijit
User avatar
abhijitphatak28
Senior Developer
Senior Developer
 
Posts: 102
Joined: Sat Feb 12, 2011 1:18 pm
Location: Indore

Re: How to play streaming Audio from Rtsp url in android

Postby ramesh.kec.85 » Fri Aug 05, 2011 12:13 pm

Thanks for your reply..
I checked it out in vlc player ,i got follwing info. I am using 2.1 device.

Type: Audio
Codec: MPEG AAC Audio (mp4a)
Channels: Stereo
Sample rate: 48000 Hz
Thanks

Regards
--R@mesh
ramesh.kec.85
Developer
Developer
 
Posts: 27
Joined: Sat Jul 30, 2011 10:05 am
Location: Ahmedabad

Re: How to play streaming Audio from Rtsp url in android

Postby ramesh.kec.85 » Mon Aug 08, 2011 5:30 am

[quote="ramesh.kec.85"]Thanks for your reply..



K thank you very much, i played it successfully....
Thanks

Regards
--R@mesh
ramesh.kec.85
Developer
Developer
 
Posts: 27
Joined: Sat Jul 30, 2011 10:05 am
Location: Ahmedabad

Top

Re: How to play streaming Audio from Rtsp url in android

Postby dipen3005 » Tue Apr 23, 2013 12:27 pm

Hi,
i'm facing the same problem. I can play rtsp video but not able to play rtsp audio in media player. How you solved that.
dipen3005
Once Poster
Once Poster
 
Posts: 1
Joined: Tue Apr 23, 2013 12:25 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 4 guests