Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rtsp video performance as Browser triggered intent vs my application triggered intent

Hi I am creating an app which will play livestream.com's rtsp live channel. I am launching the player using intent within my app as following:

            iPlayer = new Intent(Intent.ACTION_VIEW); 
            //iPlayer.setType("video/*");
            iPlayer.setData(Uri.parse(videoUrl));  
            startActivity(iPlayer); 

When the media player is launched through my Application, the video performance is very poor. It stops for buffering every few seconds, plays for few seconds and pauses for buffering again.

ON the other hand, If I open the url in android browser (eg. http://m.livestream.com/abcalbania) it has a video tag on that page and triggers video player. THIS time, the video runs very smooth.

Any Idea why this might happen? And how this can be fixed?

  • I do not want to launch browser URL as intent.
  • This is done on Atmel cortex A9 chipset with Android 2.3.4
like image 680
user1188837 Avatar asked Feb 04 '12 03:02

user1188837


1 Answers

The problem is caused by the codecs that probably are not supported by your player.

for example i have a video created with MPEG Audio codec along with the H.264 video codec.

if i launch the video through my Application the video runs smoothly, but if i launch a video in Ooyala Hook Player it has a very poor performance, it plays the video every 3 seconds, the reason is that the stream use MPEG audio codec instead of AAC Audio codec that is supported.

You will find the answer with:

what codecs are used to create de video, and what are supported by your player?

like image 180
Jorgesys Avatar answered Oct 24 '22 09:10

Jorgesys