Android Question IP camera streaming seem lagging

Izmirov.Yaminovich

Member
Licensed User
Longtime User
Good day to all of you.

I have questions to ask.I have succesfully develop the app that can stream the ip camera. I'm using video view example that have been posted in this community. My question is:

1. Why after I open the app and let it stream for about 2 minutes and above, it show the sign of lagging,(what I mean with this lagging it's like when you put your finger in front of the camera, it'll only show after 3 or 4 second,(Scary experience)) like it have many queue data to processed? But when I open through the legendary IE browser, it don't show any sign of slow video or lagging

2. How to prevent this thing,is it by clear the memory cache? Or do we have any alternative?
 

Izmirov.Yaminovich

Member
Licensed User
Longtime User
Good day to all of you. Is this the right way to clear the cache? Because I have set it the timer to be like this (timer1.Initialize("timer1",60000)) and it gave me an error every 2 minutes

B4X:
Sub tglbtn_ipcamera_CheckedChange(Checked As Boolean)
   
    If tglbtn_ipcamera.Checked = True Then
   
   
    vv.Initialize("vv")
      VideoPanel.AddView(vv,0,0,100%x, 100%y)
    vv.LoadVideo("http","rtsp://192.168.2.12/user=admin&password=&channel=1&stream=0.sdp?")
    vv.Play
   
    timer1.Enabled=True
   
    Else

    vv.Stop
    vv.RemoveView
   
   
    End If
End Sub


Sub timer1_tick

cache1.ClearMemoryCache
cache1.ClearDiskCache


End Sub
 
Upvote 0
Top