IMedia killing IWeb? | developer.brewmp.com IMedia killing IWeb? | developer.brewmp.com

Developer

IMedia killing IWeb?

Forums:

This is an interesting problem. I have a streaming video application that regularly makes my Alltel LG 8600 unable to make a web connection: all IWEB_GetResponse calls return immediately with a -1289 error. When I get into this state, no other applications on the device can make a web connection either. However, if I press the END key (in any context) and then restart my application, everything seems to work fine again.

It only happens after viewing a few (generally < 5) rtsp clips and then trying to make a web request. Both my HTTP and Video modules are mature and well-tested and have worked for months in other applications and devices. Even though IWEB doesn't work, I can still view more video clips.

My application reuses a single IWEB instance for its lifetime. I tried releasing and recreating it on -1289 errors, but that didn't help. I guess my questions are:

- Other than releasing and re-creating the IWEB (which doesn't work), is there a way to reset the HTTP engine on the device? Pressing the END key seems to do this somehow.

- Is there a special trick for tearing down an IMedia object on this device? I've experimented with a number of different things to no avail. Currently I call IMEDIA_Stop, wait for the MM_STATUS_DONE callback event, then set a 250-ms timer and call IMEDIA_Release in the timer callback.

Anyone? Any hints?

Anyone? Any hints?

In case anyone's interested, I seem to have found a workaround. The problem seems to involve the rtsp connection going idle, so I tried setting the network linger time with INETMGR_SetLinger to a really high value - like 10 minutes. Seemed to fix the problem. Just remember to change the linger back to its default value when your video is done.

In case anyone's interested, I seem to have found a workaround. The problem seems to involve the rtsp connection going idle, so I tried setting the network linger time with INETMGR_SetLinger to a really high value - like 10 minutes. Seemed to fix the problem. Just remember to change the linger back to its default value when your video is done.