Can html5 access a MP3 file's ByteArray - audio

Is possible, with HTML5, to get access to a MP3 file's ByteArray and play a kind of "data generated sound"?

Related

Convert audio object to file and add in my file directory in node.js

Good day developers, I am sending recorded audio from my JavaScript to the server as an object file. How to I convert this object to an a audio file and store in my directory folder so that I can be able to retrieve the audio file by it filename and play it on my browser. I am using node.js as the server and mongodb.
If anyone can illustrate with code in the server I will be glad

How do i encode media file on base64

Iam building a multimedia website and I don't want to upload the media files directly to my website.I want to encode it on base64 and then copy and paste it to my website

Does Azure Media Services have a list of supported video encoding MIME Types?

Azure media services supports the following:
Input container/file formats
Input video codecs
I have a need to guard Video Uploads based on MIME Type.
Is there a direct conversion from the above [Container and Codec] to MIME Type and or is there documentation or a library for such?
Thanks
There's a list at https://www.iana.org/assignments/media-types/media-types.xhtml#video for different video MIME types, but a lot of applications will simply use video/mp4 for any sort of H.264 or H.265 encoded video for example. This means that often there is no direct mapping between file extension or MIME to container or codec. To be more accurate you'd have to read the file header and then determine the actual file type. Additionally, keep in mind that when you are uploading content to Media Services that you are actually uploading that content to Azure Storage which will accept just about anything.

Creating signed URL for private HLS and DASH playlist in cloudfront

We have video like S3/category/guid/HLS and DASH playlists and its files. It works if I don't restrict Viewer Access. If I restrict and use signed URL the player just loads and never plays. I think it is because it can't access to hls different bitrate files. So do I have to give signed URL for entire folder of that video?
you will have to use Signed cookies to support HLS streaming via Cloudfront.

How to play realtime binary stream through client speakers in HTML5

I need help playing a binary stream to a client's speakers using the client's web browser. The stream is being recorded from a client's web browser and is sent to a NodeJS server using BinaryJS. I have successfully streamed the binary data back to the client from the server, but cannot figure out how to play it. I am using NodeJs, BinaryJS, webAudio API, and HTML5. I have also been testing with Firefox. Has anybody done this before? Thanks in advance.
If this is an option for you, the simplest option would be to encode your data to a compressed format (say, mp3, ogg, opus, etc.), and simply put the URL in an <audio> tag.
This pages is a good introduction on how to stream mp3 from node.

Resources