AntTP - Serving Autonomi data over HTTP

Yeah. Firefox plus Ublock and Privacy Badger does the trick for me. Zero ads.

3 Likes

Nice! It took a wee while to fully load (about 50s for me) and there were a few clear net links on it, but it looked, good once completed (about 1-2s between pages). However, that is about as heavy a site as you’re likely to see from looking at all the network access! ha!

The network seems to have a bit more latency than it did a few weeks back, so you may find this improves again with the LCN release (due today). I’ve noticed things speed up after an upgrade before, but not sure if that is just from folks restarting fresh nodes or the actual software improving.

Either way, optimising to combine multiple CSS or JS files helps with that. I also want to look at Tarchives still as a way to combine data at the network side.

3 Likes

I guess I’ll need to use a browser rather than the YouTube app to get the benefits of ad blockers. I will experiment!

1 Like

http://127.0.0.1:8080/4afb7c600370e04924b4b9134c73bed1489ee4856839d85a8a91c3eeb86fef74/bbb_sunflower_2160p_60fps_normal.mp4

4k Stream of Big Buck Bunny by the Blender foundation


or alternatively - FullHD and 3D (Red-Cyan Dubois) - I just ordered cheap red-cyan glasses to see the film really in 3d :smiley:

http://127.0.0.1:8080/f2c83a652f882fdaf7aef795864ce1e51f1ce4399d2b0ebdf32d4f7e9885b4a0/bbb_sunflower_1080p_60fps_stereo_arcd.mp4

6 Likes

btw, that loaded in moments in Firefox, but seemed to take a good while in Chrome, which is interesting. Both on Linux. VLC took about a minute, but it is great once loaded (it does some funky range queries to get extended info first, I think).

From prior experimentation, I know that some run better embedded in a HTML page too, as it seems to run a different media player then (which is a bit odd, but true!).

We should probably start figuring out the best codecs to use and document them on the forum somewhere.

7 Likes

Nice seeing something with decent quality video. Thanks!

4 Likes

Impressive, full 4k streaming working on Autonomi! Nice

6 Likes

interesting! you’re right in firefox it works even better than with chrome! :tada:

6 Likes

It was smoother for me because I can set Autonomi as a proxy in the FF settings. It’s more of a faff on Brave though…

2 Likes

thanks, however I encountered problems. Its autonomi client dependency has conflict in libraries with tor proxy. There was no way to resolve it, so I compiledanttp and bundled it as separate app into my app bundle. This works. I am almost done with the launcher app, but I will have no time for next week to finish it.

I also looked at the issues with AntTp, and I have some local prototype, but as I said it will take time..

2 Likes

Could you please upload into autonomi some simple html welcome page with introduction ant links to some interesting stuff? like uploaded videos, images, etc?? right now I am aware of yours website like this: b70a146f95b3ff237fa8140c4175f6a302c8250fe268aacdb47c2783f2b2ee6af5575410d07f6eae9ac7fb9ce95995e4 , which is your simple html with links to some other files. But it lacks introduction,etc.. I would set it as a default page for my launcher, so when people launch browser it would load there… At this stage, I am basically missing only this. I have no ants and still did not decide how to handle tax reporting in case I start uploading. I know Dweb is building some welcome page, but as far as I know that does not work via AntTp.

Edit: best would be to have some public scratchpad website, that can be changed without need to release update version of launcher with new link.

1 Like

Yes, I can put something together like that. It would improve the documentation and give folks a landing page, with some stuff to play with.

The http://b70a146f95b3ff237fa8140c4175f6a302c8250fe268aacdb47c2783f2b2ee6af5575410d07f6eae9ac7fb9ce95995e4/ link is actually just a public archive, which AntTP will just list the content of (by default, unless it has an app-conf.json which has an index redirect, etc). Essentially, much like a standard HTTP file listing page, but thrown together with some static HTML (there were bigger fish to fry!). You can also get it to return in JSON, which is what IMIM uses to list articles within a blog (the blog being a public archive, with markdown files in it).

Anyway, I digress. I’ll put together a more interesting/useful page.

I’ll probably just use a public archive, linked with a pointer/register. When the page is updated, it can be updated to point to it too. I’ll also give it a ‘home’ name alias, so http://home/ will resolve to the pointer, which will find the latest AntTP home page.

For simple websites, a public archive is pretty ideal, as it groups all the assets and pages together, making it easy to reference them, etc. It’s also good for the network, as it can cache the immutable files well. Ofc, we can have a scatchpad for the mutable content too, perhaps that would make it easier to add links, etc.

Anyway, as long as there is a mutable that can point to the page, we have freedom to change it without mucking about with new releases. No need to invent a wiki for links just yet (although, that would be cool too! ha!).

2 Likes

I will watch with interest how you get on with Register Pointers as they are still causing problems in my slight variation.

All good to see. :+1:

3 Likes

Is it updates that are causing problems? I’ve had 100% reliability retrieving pointers/registers. Probably about the same for uploads too, but tbh, I’ve not done nearly as many of those operations.

2 Likes

The effects don’t have much of a pattern so far. I’ve had them update reliably, some update for a while then stop, and others won’t update for considerable time if ever.

I’m not the only one, there’s an open issue which was created by someone else about Registers not updating to which I’ve added my experiences.

So if you have been doing occasional updates on several Registers without issue that’s strange! Is that the case?

We’re all using the same APIs, so if you don’t see problems that may mean client/connection affects this. Others using my History type sometimes have problems (eg @aatonnomicc this week and @Souhside in the past) while some have not so far (eg @Josh updating Atlas frequently, although there was some strangeness he experienced which suddenly went away).

3 Likes

Yeah, not entirely gone away, I have another version I was testing with on main that wont budge after 4 updates. Been very lucky so far with 60+ updates to the version I share. :crossed_fingers:

4 Likes

Is there anything you would specifically like me to test?

2 Likes

You could try breaking @Traktion’s code for a change :rofl:

Go where the begblag takes you.

If I think of anything I will call on the hoards. :folded_hands:

5 Likes