CDN hosted files

If you wish to provide additional hosting for your files to provide users a better experience (for example hosting your multi-media attachment on a CDN to provide faster loading times, in addition to hosting it on a permanent service), you can use the cdn boolean flag within the objects inside the properties.files array.

"properties": {
    "files": [
        ...
        {
          "uri": "https://watch.videodelivery.net/52a52c4a261c88f19d267931426c9be6",
          "type": "unknown",
          "cdn": true
        },
        ...
    ]
}

If such a flag exists, that file is the primary option for selecting the multimedia attachment (video, audio, or 3D) displayed to owners.

If that file is no longer available, Solflare defaults to using the URL in the animation_url field.

Last updated