Android Question RTSP videos

jazzzzzzz

Active Member
Licensed User
Longtime User
Is there any way to view rtsp videos for internet...?
mx player can stream rtsp videos easily...Is there any way to add the functionality in my program?

Actually am using a IPCamera and i would like to view it in my own app.
 

jazzzzzzz

Active Member
Licensed User
Longtime User
Sorry for being newbiee..Any way I dont understand how the 100%x in "Activity.AddView(myPanel1,0,0,100%x,100%y)"

any way i some what know about dip..but a nice explanation will be helpful...i have search lot abot the %x thing...I think its such a small thing and no one explains it...:(
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
100%x is 100% width of the "parent panel or activity".
100%y is 100% height of the "parent panel or activity".

In you example the myPanel1 is place top and left 0 (upper left corner) and fill the hole width and height of your activity.
If you for example load a layout to a panel with
B4X:
Panel1.LoadLayout("newlayout")
then the 100%x and 100%y are the width and height of this panel.
 
Upvote 0

jazzzzzzz

Active Member
Licensed User
Longtime User
100%x is 100% width of the "parent panel or activity".
100%y is 100% height of the "parent panel or activity".

In you example the myPanel1 is place top and left 0 (upper left corner) and fill the hole width and height of your activity.
If you for example load a layout to a panel with
B4X:
Panel1.LoadLayout("newlayout")
then the 100%x and 100%y are the width and height of this panel.
ok i have successfully created an app which can play 2 videos simultaneously////

now the porblem is with my code my phone HTC Sensation can play 2videos simultaneously but my allwinner a10 based chinese tab cant play that...but the tab is capable of playing upto 2160p..I dont think its a hardware limitation...;( I was using default videoview in audio library..
 
Upvote 0
Top