Closed dazzzl closed 7 years ago
Hi @dazzzl!
What do you think about using XEP-0363 for the decrypted media contents?
Most people are using Prosody or ejabberd which are providing support for this XEP:
This would be a possibility. However, the support of http_upload is then required. Not all server installation provide this. Furthermore, it is more complicated to implement this.
Sure, I agree.
Is there support from Spectrum to send media as payload of an XMPP stanza? I know that there are some other XEPs (Jingle?) which standardize something like that.
But http_upload has several advantages over those..
We could use something like SimpleHTTPServer to serve http from the transwhat server.
:-/ I don't like to make transwhat more complex with things like that.
In my opinion the HTTP Upload XEP is the way to go. Alternatively, Spectrum also supports file transfers. So we could transfer the image this way..
I don't think spectrum supports file transfer.
Last time I checked that was broken, but maybe they fixed it. I will ask on the chat room.
My suggestion was the usage of this feature...
http://spectrum.im/documentation/configuration/web_storage.html
we have to read out the transport config and store the file in the corresponding directory and provide the corresponding link ...
Do we have to run our own webserver?
I wrote a parser for the configuration file. #56
I would make it optional. Maybe by using another entry in the config.
What do you think about using the [transwhat]
section for that:
[transwhat]
enable_httpd = 1
Download encrypted images to the web storage folder:
https://github.com/dazzzl/transwhat
I haven't tested it completely ... but, what do you think?
I merged your improvements in a1b8cf0ca91022fe6f59df82dd71bae7ed5a9e4a
I played with a combination of tgalal's latest yowsup version and jlguardi's. You find that in my repo. For this a made an experimental Transwhat, which fixed the Unicode bug and download encrypted images. However, it is very dirty and it would be good if we would read the server path and URL from the Transwhat config. Spectrum support this for libpurple backends, like facebook. Even if youwsup is changing the api , we need such a kind of downloading to the local server.