diff --git a/README.md b/README.md index d52b0a2..d33efe7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -Based heavily on the [browser video streaming](https://github.com/ipfs-examples/js-ipfs-examples/tree/master/examples/browser-video-streaming) example from JS-IPFS. +[Live link](http://ipfs.io/ipfs/QmVPB6NWWecNp54Tpimp1WzzBFU5fYGBjXgodH2U3jNZHG/) ## How to use @@ -30,9 +30,9 @@ The output from the `ipfs` command is the hash to use with this page. Two example URLs: -http://ipfs.io/ipfs/QmQkJRPbmqcYeQcyN6mFmSYGoLWT7731GggCrTKo9tHBqF/?hash=QmdpAidwAsBGptFB3b6A9Pyi5coEbgjHrL3K2Qrsutmj9K&title=Big%20Buck%20Bunny +http://ipfs.io/ipfs/QmVPB6NWWecNp54Tpimp1WzzBFU5fYGBjXgodH2U3jNZHG/?hash=QmdpAidwAsBGptFB3b6A9Pyi5coEbgjHrL3K2Qrsutmj9K&title=Big%20Buck%20Bunny -https://ipfs.io/ipfs/QmQkJRPbmqcYeQcyN6mFmSYGoLWT7731GggCrTKo9tHBqF/?hash=QmYzdc44xBkVgp8aWJW57KprjDs5j2hmN8g7eDqm5pvY8L&title=Royal+Path+001+-+What+is+the+Royal+Path%3F +https://ipfs.io/ipfs/QmVPB6NWWecNp54Tpimp1WzzBFU5fYGBjXgodH2U3jNZHG/?hash=QmYzdc44xBkVgp8aWJW57KprjDs5j2hmN8g7eDqm5pvY8L&title=Royal+Path+001+-+What+is+the+Royal+Path%3F ## How to build from source @@ -42,3 +42,7 @@ https://ipfs.io/ipfs/QmQkJRPbmqcYeQcyN6mFmSYGoLWT7731GggCrTKo9tHBqF/?hash=QmYzdc - serve: run & navigate to a live-build server on localhost port 8888 - build: build & output to output folder dist (overwrites, doesn't delete) - clean: remove caches and dist folder + +--- + +Based heavily on the [browser video streaming](https://github.com/ipfs-examples/js-ipfs-examples/tree/master/examples/browser-video-streaming) example from JS-IPFS. \ No newline at end of file diff --git a/index.html b/index.html index 9b6d9d4..cc9b618 100644 --- a/index.html +++ b/index.html @@ -14,7 +14,6 @@ margin: 0; } body { - height: 100vh; font-family: sans-serif; color: white; background-color: black; diff --git a/package.json b/package.json index 0e95890..5450dde 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "scripts": { "clean": "rimraf ./dist ./.cache ./.parcel-cache", "build": "parcel build index.html --no-scope-hoist --public-url ./", - "serve": "parcel serve index.html --open -p 8888 --public-url ./", + "serve": "parcel serve index.html --open -p 8888", "start": "npm run serve", "test": "npm run build && playwright test tests --browser=firefox --retries=3" }, diff --git a/src/index.js b/src/index.js index 26c80c3..b82f81c 100644 --- a/src/index.js +++ b/src/index.js @@ -19,7 +19,13 @@ function showStatus(message, hide = false) { status.innerText = message } +function setBodyHeight() { + document.body.style.height = window.innerHeight + "px" +} + document.addEventListener('DOMContentLoaded', async () => { + setBodyHeight() + window.addEventListener('resize', setBodyHeight) const hash = getUrlParameter("hash") const source = getUrlParameter("source") || 'master.m3u8' const title = getUrlParameter("title")