Vidy is a public video directory for websites built on the SAFE Network with the ability for users to submit videos. The videos have to be loaded instead of streamed so it will take some time for the website to fully load.
When you create the NFS handle for the uploaded video, is the video content stored in MD or immutable data? I see that the video size is limited to 80MB in blobtobuffer, so I guess it must be immutable data. In that case, is there a reason for that size limit?
Thanks. I think I understand the structure of the MDs used by the appâŚis it the âsafetubeâ MD represented by safeTubeHandle holds a listing of all uploaded videos (videoCard JSON entries), and each uploaded video also has an associated MD holding the associated NFS data for that video? What happens when 100 videos have been uploaded (since that is the max number of entries for MD)? #learning
Exactly right. After a 100 entries the MD will be filled unless the MD structures can be stringed together which isnât supported natively yet, this topic goes into more detail about everything .
I donât expect this to be done for us by the API (MaidSafe), though somebody may create a helper library with this kind of thing. Itâs not hard to do yourself though I think. Create an entry for ânextâ MD (and probably also âpreviousâ) when you are about to fill the last available slot, and insert the address of a new (next) MD instead.
With âpreviousâ as well as ânextâ it can be easier to handle a linked list, but obviously you lose two slots, leaving 98 for the ârealâ entries (pointers to files).
Once somebody has code that does this it should be easy to stimulate the API in a way that mirrors the underlying SAFE API, but which makes it appear as if there are no limits to the number of entries in a MD.
Maybe MaidSafe intend to do this, but I think itâs best left to others as itâs not hard and they have more important things to do.