try to include video in page... not working with mkv (download only)

This commit is contained in:
qo-op 2021-05-07 02:31:22 +02:00
parent f810f2080b
commit 682312dc44
1 changed files with 5 additions and 0 deletions

View File

@ -83,8 +83,13 @@ Recrutons experts BASH pour programmer les nouveaux services du Datacenter Virtu
## CRYPTO EXAMPLE, use natools to decrypt (could also verify signature)
[[ -f ~/.zen/ipfs/.${IPFSNODEID}/KEY/${id}/${G1PUB}/.ipfs.filelink.natools.encrypt ]] && $MY_PATH/tools/natools.py decrypt -f pubsec -k "$HOME/.zen/secret.dunikey" -i "$HOME/.zen/ipfs/.${IPFSNODEID}/KEY/${id}/${G1PUB}/.ipfs.filelink.natools.encrypt" -o "/tmp/${id}_filelink.txt"
cat /tmp/${id}_filelink.txt
echo "<meta charset=\"UTF-8\"><meta http-equiv=\"Refresh\" content=\"0;URL=https://aries.copylaradio.com$(cat /tmp/${id}_filelink.txt)\">" > ~/.zen/ipfs/.${IPFSNODEID}/KEY/${id}/${G1PUB}/index.html
ARIESLINK="https://aries.copylaradio.com$(cat /tmp/${id}_filelink.txt)"
MIMETYPE="video/${ARIESLINK##*.}"
# echo "<video autoplay='autoplay' controls><source src=\"$ARIESLINK\" type=\"$MIMETYPE\"></video>" > ~/.zen/ipfs/.${IPFSNODEID}/KEY/${id}/${G1PUB}/index.html
if [[ "$source" == "YOUTUBE" ]]
then
echo "$source"