A music player that connects to your cloud/distributed storage.
at main 111 lines 1.3 kB view raw view rendered
1> A music player that connects to your cloud & distributed storage 2 3[Return to the application](../../)<br /> 4[About](../) 5 6 7 8## Adding Sources Using Query Parameter 9 10```js 11JSON = encodeURIComponent(JSON.stringify({ 12 // Object contents depends on type of source, see below. 13 kind: "ipfs", 14 data: { 15 name: "Music from IPFS", 16 17 // Source type specific 18 directoryHash: "Qm..." 19 } 20})) 21 22"https://diffuse.sh?source=JSON" 23``` 24 25You can add multiple "source" query parameters, if you want to add multiple sources. 26 27### Amazon S3 28 29```yaml 30kind: 31 amazon_s3 32 33data: 34 # Required 35 accessKey 36 bucketName 37 name 38 region 39 secretKey 40 41 # Optional 42 directoryPath 43 host 44``` 45 46### Azure 47 48```yaml 49kind: 50 "azure_file" # or "azure_blob" 51 52data: 53 # Required 54 accountName 55 accountKey 56 container 57 name 58 59 # Optional 60 directoryPath 61``` 62 63### Dropbox 64 65```yaml 66kind: 67 dropbox 68 69data: 70 # Required 71 accessToken 72 appKey 73 name 74 75 # Optional 76 directoryPath 77``` 78 79### IPFS 80 81```yaml 82kind: 83 ipfs 84 85data: 86 # Required 87 directoryHash 88 name 89 90 # Optional 91 gateway 92 ipns ← boolean, `t` of `f` 93 local ← boolean, `t` of `f` 94``` 95 96### WebDAV 97 98```yaml 99kind: 100 webdav 101 102data: 103 # Required 104 name 105 url 106 107 # Optional 108 directoryPath 109 password 110 username 111```