Skip to content

Commit 88b45d6

Browse files
authored
adding audio/wav
IE is the only browser left that can't handle wav
1 parent a56a486 commit 88b45d6

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,26 @@ You should be able to cut/paste any/all of the commands below to run on your Dat
105105
> \\"contentType\\":\\"audio/mp3\\"
106106
>}"
107107
108+
>curl -X POST -H 'Content-type: application/json' http://localhost:8080/api/admin/externalTools -d \\
109+
>"{
110+
> \\"displayName\\":\\"Play Audio\\",
111+
> \\"description\\":\\"Listen to an audio file.\\",
112+
> \\"scope\\":\\"file\\",
113+
> \\"type\\":\\"explore\\",
114+
> \\"hasPreviewMode\\":\\"true\\",
115+
> \\"toolUrl\\":\\"https://globaldataversecommunityconsortium.github.io/dataverse-previewers/previewers/AudioPreview.html\",
116+
> \\"toolParameters\\": {
117+
> \\"queryParameters\\":[
118+
> {\\"fileid\\":\\"{fileId}\\"},
119+
> {\\"siteUrl\\":\\"{siteUrl}\\"},
120+
> {\\"key\\":\\"{apiToken}\\"},
121+
> {\\"datasetid\\":\\"{datasetId}\\"},
122+
> {\\"datasetversion\\":\\"{datasetVersion}\\"}
123+
> ]
124+
> },
125+
> \\"contentType\\":\\"audio/wav\\"
126+
>}"
127+
108128
>curl -X POST -H 'Content-type: application/json' http://localhost:8080/api/admin/externalTools -d \\
109129
>"{
110130
> \\"displayName\\":\\"Play Audio\\",

0 commit comments

Comments
 (0)