0Chain WordPress Plugin (shortcode)

Here is a demo of various files dynamically downloaded from 0chain storage. Below each item is the shortcode used to generate the file excluding the _, (these have been cut and pasted from the 0box app):-

Video (with autoplay+loop)

[_zcn authticket="https://0box.page.link/8DUK9PYTeDyA6qMu7" type="video" autoplay="1" loop="1"]

Image

[_zcn authticket="https://0box.page.link/g9eyjxecgozYRSS58" type="image"]

File

https://zcdn.uk:6943/authticket/eyJjbGllbnRfaWQiOiIiLCJvd25lcl9pZCI6ImZjMDViODU4MGNhNjc5NmViYzcwNGVmZTk5YzcxYzEzNWQzNDVmYzFjNTZjNjE2ZmQ2NjBiZjY2MTg2Y2IzM2YiLCJhbGxvY2F0aW9uX2lkIjoiMTQxYjI4NGE0NDFkODQyMzljMjg1NjQxM2JhOGUxZmUwNzQzZjIyZGRkYjU2OTc4MTYxMWYyNDhlMjgyMmMwNyIsImZpbGVfcGF0aF9oYXNoIjoiNTFhYTFjZmYxNWI1OWU0MTMxNzlmMTQ4YzZkMzIxNjkxNTRmNDFhNDA2MDBlNjVlMDc4MjU5M2NjNDMzMzIwYyIsImZpbGVfbmFtZSI6InZlcnliZXN0ZG9vcnMyMDA3LmpwZyIsInJlZmVyZW5jZV90eXBlIjoiZiIsImV4cGlyYXRpb24iOjE2MjY5NDUzMDEsInRpbWVzdGFtcCI6MTYxOTE2OTMwMSwicmVfZW5jcnlwdGlvbl9rZXkiOiIiLCJzaWduYXR1cmUiOiJmODFhZGE4NzE5M2VhMjM2YWI2NDE5NGMxMTdiNjAyZWY4ZDhkNmYyNGJjNTNkMGI3NzkyNDQzZDA1N2JiMTI0In0=
[_zcn authticket="https://0box.page.link/g9eyjxecgozYRSS58" type="file"]

Audio

[_zcn authticket="https://0box.page.link/u2EGLrLzu2Pq4RGF7" type="audio"]

Video Stream (without autoplay)

[_zcn authticket="eyJjbGllbnRfaWQiOiIiLCJvd25lcl9pZCI6IjZhN2MwNWY3ZjZlYjcxNWMzNWU3YmI0YTVjY2FmN2M4OWU1NTRlNTY4NjFiMDc0OTYwZjViMTE2ZWYxY2VmMzYiLCJhbGxvY2F0aW9uX2lkIjoiYmIzMTJiOTVkNTgxOTNhZGZhOGZkNGNmNDViZjk5YTEyNThhYjg2NjhmODkwY2FhYjFhMGU3ZDUxYTk3NjNiZiIsImZpbGVfcGF0aF9oYXNoIjoiMmRlNDM0NDdiYTJhYzNjZTAwOTcwNzY2YjliZmU4MGVkN2IxNmYwNDQ5NTcxNGY4NjMzMTVhOWIwMDU4MTUyZCIsImZpbGVfbmFtZSI6IkJpZ0J1Y2tCdW5ueS5tcDQiLCJyZWZlcmVuY2VfdHlwZSI6ImYiLCJleHBpcmF0aW9uIjoxNjI2OTAzOTQwLCJ0aW1lc3RhbXAiOjE2MTkxMjc5NDAsInJlX2VuY3J5cHRpb25fa2V5IjoiIiwic2lnbmF0dXJlIjoiOTAwMDk4ZDc4N2JlOTFmNjVhMDM5NDcyN2EyYWRjZTBhYTU1ZmZjMThlNjc5NWZlNDBhZDM4N2JjN2Y4OGZhMSJ9" type="videostream"]

Video File (without autoplay)

[_zcn authticket="https://0box.page.link/wmBKzuVNEA4trMjs5" type="video"]

Notes:

Video Stream utilizing my 0chain Media Server (Video Streaming) project

All other files fetched using my g0chainwebserver (File Server) project

p.s. If any of the above don’t work, its probably because this is currently on a testnet and there has been a network reset. I should get around to updating soon. This will not be an issue once we hit mainnet.