summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMark Gaiser <markg85@gmail.com>2022-04-06 14:00:56 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2022-04-12 19:58:33 +0200
commitf889837e00d3b2388a24c0a9d075ad62f47da825 (patch)
treee043fe7b070c4c65e1c8eae65918b7872c0eb075 /configure
parentc2351d5a53540204df126cd286323fac725db7aa (diff)
avformat: Add IPFS protocol support.
This patch adds support for: - ffplay ipfs://<cid> - ffplay ipns://<cid> IPFS data can be played from so called "ipfs gateways". A gateway is essentially a webserver that gives access to the distributed IPFS network. This protocol support (ipfs and ipns) therefore translates ipfs:// and ipns:// to a http:// url. This resulting url is then handled by the http protocol. It could also be https depending on the gateway provided. To use this protocol, a gateway must be provided. If you do nothing it will try to find it in your $HOME/.ipfs/gateway file. The ways to set it manually are: 1. Define a -gateway <url> to the gateway. 2. Define $IPFS_GATEWAY with the full http link to the gateway. 3. Define $IPFS_PATH and point it to the IPFS data path. 4. Have IPFS running in your local user folder (under $HOME/.ipfs). Signed-off-by: Mark Gaiser <markg85@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure b/configure
index 9c8965852b..358a614854 100755
--- a/configure
+++ b/configure
@@ -3581,6 +3581,8 @@ udp_protocol_select="network"
udplite_protocol_select="network"
unix_protocol_deps="sys_un_h"
unix_protocol_select="network"
+ipfs_protocol_select="https_protocol"
+ipns_protocol_select="https_protocol"
# external library protocols
libamqp_protocol_deps="librabbitmq"