Chrome not playing audio files - javascript

I'm having trouble getting chrome to play the audio files on this website: http://pyramids-tapes.com/
I'm using this plugin, whose demo is working in chrome: http://tympanus.net/codrops/2012/07/12/old-school-cassette-player-with-html5-audio/
From looking at my network tab, I'm seeing that the server is returning a 206 partial content status for the mp3 file, but I'm not sure what is causing this, visiting the file directly in the browser plays the file fine (http://pyramids-tapes.com/songs/never_satisfied.mp3).
Can anyone help me with this?

Related

Using Webaudio in vscode extension

I wrote a vscode extension that creates a webview panel and I'd like to play an audio buffer when the user clicks a button on my page. I have this identical code working in a test page in a browser so I think I'm doing the webaudio part correctly.
I initialized with vscode.window.createWebviewPanel(...).
When I click the button on the page, it looks like the code is working (there are no errors thrown and the expected code path happens) but I don't hear any sound.
Is there something muting the sound in the webview? Is there something I have to do to tell vscode that sound is expected?
Or is it just impossible to make a sound in a vscode extension?
EDIT:
One more detail that I forgot to mention. I am creating the audio buffer in javascript but I am loading a number of small .mp3 files that I'm using as source. So it requires XHR to receive the .mp3 file and decodeAudioData to decode it.
From my experience, Web Audio API works fine in a VS Code webview panel, but its support for audio file types is very limited. It can’t decode .mp3 files or even .wav files.
However, an .oga file (Vorbis-encoded OGG) works.

Preventing chrome/windows from downloading _Thumbs.db

I created a local web app that just displays images and PDFs on a loop kiosk style. It has a basic Node.js http back end that feeds file paths to client browsers and the browsers use embed elements to display those files.
The issue is that when the client has run through the files provided and is told to reload chrome (It looks to be chrome that's doing it at any rate...) downloads a _Thumbs.db file. This app is meant to be a full screen kiosk and I would rather not have the downloads bar or any downloads prompt be present while it's running the slideshow.
I have disabled all the options for thumbnails on the windows side, but oddly enough it is a chrome download prompt that is the issue.
Can I prevent these files from being downloaded? If-Not any Idea how I can prevent Chrome from throwing a download prompt up?
Thanks in advance.

Canvas not rendering as expected on Chrome

I have this game I wanted to integrate to my website as a competition for my members. I took a source code of github https://github.com/daleharvey/pacman.
I didn't mess with a code. It works fine on local machine, but when I put it to server It just keep saying it's loading (Not sure if it's allowed to post links so somebody remove it if it isn't allowed) http://puskice.org/assets/frontend/pacman/index.html
Important note is that server is behind Cloudflare so I was wondering if it could have something to do with it.
Application at link above sometimes works when you hit shift+f5 in chrome, and in firefox it mostly works as expected
I opened your site and it appears that your audio files are failing to load.
If you follow the pacman code through, then you'll notice that it displays a loading message (line 1056), and doesn't redraw until after at least one audio file has loaded (line 1082).
but your audio files are 404-ing, so the loaded function is never called.

One single HTML5 audio download stalled on Chrome but good on other browsers

I've put up a bunch of audio downloads with SoundManager2 + PXLoader, but one of the audio files cannot be properly downloaded in Chrome. Last update, it was my 'Tempest III.mp3' file. Now Chrome is picking on 'Op 111 I.mp3'. Also, for whatever reason, it seems that once an audio file is stalled, a bunch of image files will be hit too, and stop downloading. I have to reload a few times to get the images in the cache so they will be loaded before the offending audio file. It works in Firefox and IE11. Why is Chrome doing this to my files?
The project is here:
http://www.newgrounds.com/projects/games/778014/preview
The audio appears as 'stalled' in the console. Thanks in advance!
ETA: It also works fine locally.
Edit: I tried reducing the number of audio files by one, and Chrome still failed to download one of the audio files.

VideoJS player gets stuck with IE9

I'm trying to implement HTML5 Video in a site and for that I'm using VideoJS, so far it works great in Firefox and Chrome but my problem comes when I try to play the video with IE9. The player would load and when I click on the Play button, the loading image would appear and it would get stuck without doing anything.
I've checked other websites and they suggest that the MIME Type that the server is sending is wrong but I've checked already that and it's not the case.
Any ideas?
Have you checked to make sure you are mp4 file is using the H.264 compression scheme?
Your issue is common, and the above answer barely scratches the surface.
MP4 files neet to have their indexes written ahead of the video data within the file. IE isn't freezing, it's actually downloading your video all at once. You can inspect this from your console.
The fix is very simple. Download the AIR application QTIndexSwapper2, and run your MP4 files through it. Reload those files to your server and they will seamlessly stream through the VideoJS SWF Player.
Make sure you have controls and autplay

Categories