Re: Pause and unPause data in libsoup
- From: Dan Winship <danw gnome org>
- To: Monil Parmar <monil parmar gmail com>
- Cc: libsoup-list gnome org
- Subject: Re: Pause and unPause data in libsoup
- Date: Mon, 25 Mar 2013 10:42:09 -0400
On 03/25/2013 09:30 AM, Monil Parmar wrote:
For that i used soup_session_pause_message() in webkit for pausing the
streaming of data while running a flash content.
Stream is paused but still it seems data is coming as memory of system
in increasing. And after some time it goes out of memory.
can any one tell where i am wrong ...or what is the correct way to pause
the data via soup.
The problem is that webkit uses soup_session_pause/unpause_message
internally as well, so your attempt to pause the message does no good.
You need to pause the request at the webkit level by calling
setDefersLoading() on the ResourceHandle. (I don't where you get a copy
of the ResourceHandle from... the right answer here might be to call
some higher-level WebKit method that will call setDefersLoading() for
you. Ask on the webkit-gtk list if you can't figure it out I guess.)
-- Dan
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]