html5 audio player - jquery toggle click play/pause?

i wonder what i'm doing wrong? $('.player_audio').click(function() { if ($('.player_audio').paused == false) { $('.player_audio').pause(); alert('music paused'); } else...

How to build my own embeddable audio player // not pure flash

We are currently developing a community based on user-generated audio content. The base technology for playing audio will be Soundmanager 2 is HTML5. We created our own player interface based on...

Using jQuery to control HTML5 <audio> element

I'm trying to use jQuery to control an HTML5 audio element, but I'm no genius with JS. What I want is for the player to start on page load, which I've done, but when the play button is clicked, I...

Is there a way to detect a mobile Safari audio interruption — headphones unplugged — with javascript?

I'm working on an HTML5 audio player built with jQuery and SoundManager. So far, we've been unable to determine whether there's a way to detect an audio interruption event (unplugging headphones,...

Play audio with javascript (no HTML5 or visible player)

I would like to get a track played when I click on an image link and stopped when I click on it again. I'm not using HTML5, I'm not using audio tags and I don't want to display any player while...

HTML5 Audio Player - Autoplay Next Class Instance

I am using UbaPlayer, which is a jQuery HTML5 audio player with Flash fallback. Currently, it just stops after the particular song that is cued is finished. I would like for it to autoplay the...

multiple audio html : auto stop other when current is playing with javascript

I have 10 audio players with simple html audio tags on a html5 page. No jquery, no special audio js plugins, etc... Does anyone has a simple script in js to pause all other players when the...

Chrome Folder Upload API. Detect support & Workaround with JS / JQuery

I am currently working on a web media player and would like to use the new "Folder Upload API" from Google Chrome (or however its being called officially) to recursively work with local...

HTML5 video/audio player control play & pause with AngularJS

I want to control HTML5 audio/video player with AngularJS. I want to play & pause that player. I can do this using jQuery. But I need it to work with AngularJS.

Looking for a solution to load a url once then be able to click on element

I need help with loading a URL one time into a HTML5 audio player and then be able to click on an elements to do additional controls. This is the code so far: <div class="primary"> <article...

django:ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

I am new to the programming and i have been trying to develop an audio player using jQuery/HTML5.The audio source to the jquery is being passed by AJAX response.The audio play is fine in my local...

HTML5 Audio player not showing correctly in iOS Chrome & Safari

I have an html5/jquery/php audio player that works fine on desktop browsers but when i test in iOS - all i see is a grey track bar - I believe the controls are hidden behind track bar because i...

How to handle source not exist in audio video html5?

How to handle source that not exist in audio video html5? i tried https://www.w3schools.com/TAgs/av_event_error.asp: pure javascript <audio controls onerror="alert(1);"> <source...

Make waveform like Soundcoud Player with javascript/jQuery in html5

I want to make a audio player look like Soundcloud player with waveform made from mp3 file using javascript/jQuery and html5 canvas. I know that there is a lot of questions like mine on...

HTML/JS Audio playlist pause/resume on page exit

I'm not sure if what I'm being asked to do is possible, I still don't have much expertise in JS, so I've been googling and so far came up short. We're using a program called RiseVision to run a...

Disable autoplay on audio in html and/or javascript

I'm new to coding & new to stackoverflow! I've got about 30 hours of coding under my belt so far and my efforts are what you might call the 'Frankenstein Method'. Hopefully I can get some advice...

How to use AWS Polly PHP SDK via AJAX to stream in HTML5 audio player

Goal: To synthesize speech via AWS Polly PHP SDK (not javascript), return audio blob to browser via AJAX request, and stream with HTML5 audio player. So far I have the query to AWS working and...

HTML/JS music playlist script

I'm pretty new to JS, and I've been asked to create a music player that can run out of a single HTML file. the music is hosted on a google drive because it has to be able to be changed for...

Audio Pause while typing & play while stop typing

Here is the audio player script which pause and play with "Alt+P" Key Stroke. https://github.com/jonmbake/jquery-html5-audioplayer I want to add a textbox and while I am typing I want the audio to...

It always becomes 0 regardless of what is set to the currentTime of the audio tag

I am making a player that can play music with a Web browser, but I am in trouble because I can not change the playback position. (currentTime) Specifically, even if we assign a numeric value to...

HTML5 Audio track oncuechange speed too slow

I have a page that embeds a mp3 audio file along with associated <track kind="subtitles"> .vtt file containing the subtitles which I loop through and load in to divs on the page. I have a simple...

react-infinite-scroll-component stopped working suddenly

So, I am having a very unusual issue. I am using the package react-infinite-scroll-component and it worked perfectly before and suddenly stopped working. I have not imported anything new on the...

HTML5 audio playlist opens up new tab when clicked in Meteor web app

I'm working on a web app in meteor and I'm trying to use the HTML5, CSS and Javascript audio playlist in my app: var audio; var playlist; var tracks; var current; init(); function init(){ ...

<audio> how to prevent cache on streamed file?

I'm creating a small HTML5 audio player, that plays streaming file. The controls (just play and pause) are managed by jQuery and they works fine. But what I see is that when I stop playing and I...

HTML5 video : Cannot read property 'toLowerCase' of undefined

I have a simple HTML 5 video block where a user can play the next video or the previous video by pressing the provided prev and next buttons. Here is what I have so far: HTML <div...

Multiple HTML5 audio players with playlist. Will play the first playlist but a new window opens when playing the second list

I have two HTML5 audio players with a playlist on my site. More can be added depending on the user. The players not being used will be hidden and can be viewed if the user selects the player. The...

How to add custom control for adding a next/previous tracks button inside my player - JSON?

I want to add the previous/next track button (btnNext/btnPrev) Inside my grey player on the left-side of the play button. I still did not figure out what I have to do in my Js or in my CSS code to...

Any idea on how add a custom control for next/previous inside my player?

I want to add the previous/next track button (btnNext/btnPrev) Inside my grey player on the left-side of the play button. I still did not figure out what I have to do in my Js or in my CSS code to...

Make flex item fill width of the page

I want my audio-player to shrink correctly to the full-width of my page. I did not figure out what I have missed or what I do wrong... *(How it looks now)* I want to use HTML custom controls to...

How do I make a single Javascript script for multiple play/pause buttons on a single webpage?

I have found three possible scripts for Play/Pause buttons for audio for my web page. I only want to show Play/Pause buttons, not the Stop button, by the way. I want to hide the controls that come...