i am trying to use the awesome Delivery.js to download an audio file and feed the results into an <audio> tag.
there is a good example here how to read a local file and play it, but not an example of using raw data that currently lives in a variable.
here is an example of the data made available by Delivery.js:
data: "T2dnUwACAAAAAAA-blah-blah-blah-blah-blah-blah-blah-blah..."
dataURLPrefix: "data:application/octet-stream;base64,"
isText: false
mimeType: "application/octet-stream"
name: "Eval_31-66_Sep_13_18_5.opus"
size: undefined
uid: "73cd985d-bd04-4753-b236-0bb882afd21b"
my exceptionally crude attempt at this went something like this:
$('audio').attr('src', file.dataURL() );
and file.dataURL() returns data that looks like this:
data:application/octet-stream;base64,T2dnUwACAAAAAAAAAABJ-blah-blah-blah
which did not work.
any suggestions would be most appreciated.