Cannot get HTML5 audio to work with my MP3 - html5-audio

I am recording MP3 using phonegap in an app. Storing the MP3 in a database Base64 Encoded. I can retrieve those records, save them to an MP3 file on phone or computer and play them. Media in phonegap works as well as the local players. What does not work is either
1) playing them directly as base64 on a windows computer in a browser or
2) saving to an MP3 file on the server and playing through the browser.
I gave up and switched to a download button, which works, by storing the MP3 file locally and playing it using the local audio player.
the HTML format I used is
for the file the source was the file path relative to the web root
For the base64 it was "data:audio/mpeg;base64,..."
In all cases it did not work, and the controls were either grayed out or had an error on them.

The solution that works for browser, android, and ios is to use m4a format. In cordova phonegap I used cordova-media-with-compression

Related

audiocalls.wav could not be decoded

I am trying to play a wav file using html 5 audio player but it shows file could not be decoded.
Anyone please let me know what is wrong with this wav file so it is unable to play in html5 audio player.
I am working on a call recording system that records these kind of wav files and now I am integrating html 5 audio player to play in system.
If file does not support in html 5 audio player then please let me know any alternative option to play file in system.
Below is url to download wav file
http://sipprintdemo.com/callrecording3/download.php?file=../../../sipprintcalls/2016/05/17/15/20160517_152047_XRT.wav
It is difficult to say why it is not decoding without seeing your code. What browser are you using in order to test? .wav files do work with HTML audio but not all browsers support that file type. I know that IE for example does not support it.
Another option would be to convert the files to .mp3 format that is support by all browsers. A quick google search should yield a converter service for you.

Node-Webkit: How to play AVI videos?

I am trying to make a simple node-webkit app that lets you play .avi videos (which should work both on windows and mac). Is there a way to do this with node-webkit?
It is unlikely you will be able to just do this with Node-Webkit. Especially since the official webkit does not support AVI. Your best bet is to use an external application like libav (avplay) or use node to serve a webpage that has a player capable of playing the content and just let the users browser do the work. (Flash is likely still the best way to go, video.js is a good choice)
The alternative is to convert the video to one of the supported formats. I would recommend mp4. (Once again libav (avconv) comes in handy here.) This still assumes that Node-Webkit has implemented full HTML5 support. (I am not sure what they have completed but I am guessing it supports the video element)
Is AVI supported in Chrome (not Chromium) ?
If it is you have to change the libffmpegsumo.so in nw for the one in Chrome (try to use the same version).
libffmpegsumo.so is called ffmpegsumo.dll in Windows
The file file is in the same folder of the nw executable
to get the file download google chrome and go to %USER%/Google Chrome/ (or something like that) and you'll find the file in the same folder of the google-chrome executable
You can wcjs-player to play any format video which supported by VLC. It plays any video without any lags as in-built player.
To support my above claim, I have following points:
Building NW (by compiling source code) with various FFMPEG codec flags given at nw github site, doesn't help, in getting ffmpegsumo.dll which can play avi file format.
wcjs-player uses VLC libraries, which support all video played by VLC does.
Its better than using any nw plugin, as internally wcjs-player using VLC does similar job as HTML native video support .
Even if you suceed playing avi files, sometimes supported videos file format may not get played like most ironically mp4 file itself.
Apart from this, Teewe Theatre, Popcorn Time , Butter are among NW based media player using wcjs-player. It hardly increased 30 MB size of overall app size.

.flv player for mobile browser

In my website there is video uploading facility. When User uploads video , My code convert the video format from (mp4,wmv,3gp,avi) to .flv format after compressing video size.
on desktop format, everything is working fine. But on mobile browser I haven't get an good player for playing .flv files in all browsers. Can somebody will help me to find a free .flv player support all mobile browser. I hjave searched on google and doesn't find any thing useful . I have tried with html5 player, but it doesn't work for .flv files. I also tried with object player, which is not running in mobile browser.
Another one thing, downloadig .flv video wll be played in mobile or not?
A mobile device will want to play an MP4 file. It won't know how to play a FLV file (unless the FLV file is really an MP4 file in disguise, which happens sometimes). The solution is for your website to transcode to MP4, not to FLV. If you have a desktop website solution that already plays FLV files, it's probably Flash-based, and it should be able to play MP4 files just as well.

How to play .ts files (video/MP2T media type) in Browser?

I have one .m3u file that points to several .ts files (all in akamai).
Because we give to akamai a live stream, they convert it to these .ts files each of 10s. I see that the m3u files are easy to understand, but I can't find a browser based (flash, html5 or native plugin) player for these files.
If I give to vlc the link of the m3u file, vlc plays all the .ts files one after another as if it where only one big file. I want to use flash or something similar to be able to play in browser, the same way vlc can play those .m3u files.
Is this possible ?
You are basically talking about Apple's HLS format.
You can use an html5 object in your web page. You can use http://osmfhls.kutu.ru/ flash plugin. You can use jwplayer. There are more choices (e.g. flowplayer).

Google Chrome - HTML5 audio and WAV files

I am using HTML5 audio tag to link to a WAV file, but it suddenly seems to be failing. Chrome does not seem to be able to play WAV files (MP3 works fine). I get an error message like:
Error loading: "blob:http%3A%2F%...."
Does Chrome's audio tag support WAV? For e.g., try playing this: http://www.nch.com.au/acm/11kulaw.wav
I am on Chrome version 15.0.874
I don't get the error in Chrome, but the file does not play. The control is visible, but is not working.
There is a bug report in Chromium project that seems to talk about the behavior:
http://code.google.com/p/chromium/issues/detail?id=83323
The gist of it is that .wav can mean a bunch of things and have various encodings. The comments recommend using a plugin to handle this or downloading the file.
For the purposes of serving it on the web, I'd recommend compressing it to an MP3 and an OGG format (if you want to be nice to FOSS people) and including multiple source tags.
I had this problem with an mp3 audio file that did not play just in Google Chrome (this problem could be happening with other audio format files too, like wav or ogg).
I opened my mp3 file in an audio editor (Audacity) and saved it again in the desired format (in this case, *.mp3).
It works correctly in Google Chrome.
My conclusion: if the audio file does not play, the problem is in the settings that generated the audio. Use another program, with other settings.