Closed shazz closed 3 years ago
I have not tried it yet, but I think the solution should be in using relative paths for all the resources. Open the index.html and prefix all links with ./
.
I don't have time now to try it, so you will have to just have a go by forking the project.
This link might be of use as well https://github.com/parcel-bundler/parcel/issues/206
Let me know hoe you are getting along, I might be able to put in some time myself at a later date.
Thanks for the quick reply! I'll try that!
thanks :)
Quick question, in index.html
what is this "https://viewm.moonicorn.network/#%7B%22options%22%3A%7B%22publisherAddr%22%3A%220.." link ? My antivirus doesn't like it at all....
That is from the iframe containing the ad code from https://www.adex.network/
Search for a mention of iframe and remove it. If your anti-virus is mad about it, maybe consider reporting it to them. They are quite open source and sociable.
ok.. weird my AV says it is spamming and fishing.
Anyway so I cheated a little as the CID is not known before being created so hard to hardcode it so I added the resources then modified the generated index.html just to try.
Result: the webpage loads well but
I tried with:
Are there some limitations on the codecs supported?
Most definitely, https://ipfs.video/ https://github.com/ipfs/ipfs-docs/pull/814/files
Currently I try to support what the browser supports, which in most cases is VP8/VP9 in WEBM. I wrote code to try to figure out the media codec by searching for magic bytes. Try the examples from the homepage, as they work. If you have something you want to show, consider recoding it. There are example scripts for ffmpeg in the repository and the pull request for ipfs-docs will point to even more methods.
Please consider posting if your attempt at running this on IPFS was a success or not. For now, I'm considering this question resolved until further notice.
I tried... I built the project and added the
dist
folder on my ipfs node but when accessing it thru the gfateway, it tries to load some resources like:instead of
Any easy way to fix that?
Thanks!