Open jancborchardt opened 12 years ago
Hey Jan, I hope your 1st unconference went great! :) Thanks fo the suggestions, I was thinking about a sharing feature too. And I like the idea of showing public photos, I'll work on these functions in free time in the next days
about this, @jancborchardt is there a way to move data from private to public category and get a direct url to it?
I think you have to copy it somehow. @nilclass knows more and can probably help you on that.
(referencing this discussion, all I write applies to 0.7, i.e. the master branch)
Within a module, you have access to the private and public area through individual instances of baseClient. You can use those to copy data between the areas.
Example:
var something = privateClient.getObject('something');
publicClient.storeObject('picture', 'something', something);
Does that make sense to you?
Regarding the public URL, there is currently no way. I opened an issue for that.
Sure, it makes sense. I'll plan a migration to 0.7 :)
So sharing is possible now? (Can’t test. I’m on Firefox and thought WebRTC works but weirdly gHost says it does not. I can use http://conversat.io with no problem though.)
When you open the picture there's a button under each one to download it and since they are hosted in public folder you can easily grab the url of the image (I may add a button to copy it automatically).
A public page which contains all your shared picture is not implemented yet and actually I dont know if is possible to do. I reopen the issue to catch more ideas about this feature!
Oh, and about webrtc @jancborchardt which version of FF are you using?
About the public page which contains your shared pictures: @nilclass did this for myfavoritedrinks, you can test it out on http://myfavoritedrinks.nilclass.5apps.com/#!jan@5apps.com (it will automatically show my shared drinks).
@nilclass can you help @vcuculo how to do that? Also for Litewrite we would be happy about help :) https://github.com/litewrite/litewrite/issues/19
@vcuculo Firefox Nightly 22.0a1
nice! I'll take a look to myfavoritedrink app!
about FF, can you please check if it works with FF on this url: http://vcuculo.github.com/ghost-unhosted-webrtc/ ?
@vcuculo on the Github pages version it actually works better (asks for video etc, shows frame, webcam LED is on) but doesn’t actually show the cam feed. Error: HTTP load failed with status 404. Load of media resource http://vcuculo.github.com/ghost-unhosted-webrtc/%5Bobject%20LocalMediaStream%5D failed. @ http://vcuculo.github.com/ghost-unhosted-webrtc/#
Oh and if I take a photo it shows nothing either (just the grey background looking through). But when I save it, it’s all black. If that helps in any way.
@jancborchardt I've tested with your same version, it should work now, always here
Hm, maybe it’s just a broken Nightly. I’ll test again later. :)
I've tested the "share function" in myfavouritedrink, but does it work also if the user uses an account from a different hosting service than the one which hosts the app? Doesnt it cause an Access-Control-Allow-Origin error? @nilclass
@vcuculo you can check: https://myfavoritedrinks-nilclass.5apps.com/#!jan@heahdk.net seems to work as well. That’s exactly what Cross-Origin-Resource-Sharing (CORS) is for, which all remoteStorage providers implement.
nice, I was misled by an error showing in my chrome console. I'll try to add it to ghost.
UPDATE renamed the repository to https://github.com/vcuculo/ghost/ and the app domain to https://ghost.5apps.com/
I used ghost last weekend at our unconference in Unhost to snap some pictures while doing a presentation on working unhosted apps. IT WAS AMAZING!
Now I want to share some of those pictures. It would be great if a photo would have something like a sharing switch (something revealed on hovering the photo). Then the public photos should be displayed in the same wall-like style on http://vcuculo.github.com/ghost-unhosted-webrtc/#user@host
Btw, you should a) shorten the repo name to just »ghost« to make the link shorter b) deploy using 5apps.com and optionally get a nice domain for the app! :)