Vin wrote:
> Boris Zbarsky wrote:
> > Vin wrote:
> > > if i use nsIWebBrowserPersist, how is the file downloaded? it is still
> > > going through the download manager module?
> >
> > There is no download manager in TestGtkEmbed.  If you have your own, you can
> > pass it as the progress listener to nsIWebBrowserPersist.
> >
> > -Boris
>
> then how does the download happen?

this is the code i am using to download

nsIWebBrowser *mWebBrowser;
gtk_moz_embed_get_nsIWebBrowser(embed, &mWebBrowser);
nsCOMPtr<nsIWebBrowserPersist> persist =
do_QueryInterface(mWebBrowser,&rv );
if( NS_FAILED(rv) )
    printf("\nTVMS : Persist Failed\n");
persist->SaveURI((nsIURI*)uri,nsnull,nsnull,nsnull,nsnull,(nsILocalFile*)"/root/Desktop/test.mp4");

but its showing error as no matching function calls found.
i have included nsIWebBrowserPersist.h

_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to