I am trying to create a customised radio player, that updates itself automatically about the title and artwork of the current streaming audio. Shoutcast does have an API but it is only working with its Dev ID but Shoutcast recently does not provide any Dev ID apparently. So I need another workaround. There are some PHP solution, but since I
Tag: audio
How do I remove the download option in the HTML5 audio tag?
I am using the HTML5 audio tag on a website I’m maintaining. I noticed that the audio tag has a download icon embedded in it. How do I remove that option? I want the audio to be read (playback) only. Is there a way to do this without JavaScript or jQuery? I don’t know either one yet. Answer Try this
How to load audio file into AudioContext like stream?
For example i want to load 100MB mp3 file into AudioContext, and i can do that with using XMLHttpRequest. But with this solution i need to load all file and only then i can play it, because onprogress method don’t return data. Also i tried to do that with fetch method, but this way have same problem. There is any
How to send audio blob from javascript to python?
I want to send a audio blob from JS to python script (which runs on server). My JS ajax .. looks something like this. and my python script looks like this. Right now, I am just testing, so it should get me the duration of the audio file. The blob is generated through record.js This is not working, as the
Detect sound is ended in THREE.PositionalAudio?
I want to detect when sounds is ending, but all examples that i found not working. Live example: http://codepen.io/anon/pen/wMRoWQ Answer Three.Audio is wrapper around a buffer source audio object. https://github.com/mrdoob/three.js/blob/ddab1fda4fd1e21babf65aa454fc0fe15bfabc33/src/audio/Audio.js#L12 It looks like it overrides the onended event and binds it to its own function, so we just do the same: We set isPlaying = false because this is what
Playing audio from characters of a textbox using JavaScript
I am a complete noob and I have started trying to do a program which plays the sound of each letter’s keycode every time it is pressed in the textbox and deletes the text every time I press the Spacebar. The program clears the textbox when I use the space button, but it doesn’t play sound with any character: Answer
Why don’t audio and video events bubble?
I was wondering why some Javascript of mine would not work until I figured that the audio events did not bubble up the DOM tree, e.g. the timeupdate-event. Is there a rationale for not letting the events of the audio- and video-tag bubble? Answer The reason why event bubbling exists is solve the ambiguous question of which element is the
How to play a notification sound on websites?
When a certain event occurs, I want my website to play a short notification sound to the user. The sound should not auto-start (instantly) when the website is opened. Instead, it should be played on demand via JavaScript (when that certain event occurs). It is important that this also works on older browsers (IE6 and such). So, basically there are
How do I remove properly html5 audio without appending to DOM?
With Javascript, I have a function that creates an audio element with createElement(“audio”), and start playing in loop without using appendChild(), I mean without appending it to the DOM. The element created is kept in a variable, let’s called it music1: What I would like to do, is to change the music played, if possible using the same function, and
How to play only the audio of a Youtube video using HTML 5?
Is it possible to play only the audio from a YouTube video using HTML 5 and Javascript? Answer Embed the video player and use CSS to hide the video. If you do it properly you may even be able to hide only the video and not the controls below it. However, I’d recommend against it, because it will be a