Catherine Posted June 25, 2014 Share Posted June 25, 2014 Hi!I have tried to use <audio> tag for playback of recored audio and have found it not working in my Chrome for Android ...<audio preload="auto" autoplay controls><source src="" type="audio/wav"/></audio>...var aio = document.querySelector('audio');// loading sourceaio.play();What am I doing wrong? Also Chrome for Android doesn't playback even in this demo https://www.webrtc-experiment.com/RecordRTC/ but FireFox does. Why? How to make the <audio> playback properly for Chrome for Android? Thank you!Best RegardsCatherine Quote Link to comment Share on other sites More sharing options...
AshleyScirra Posted June 25, 2014 Share Posted June 25, 2014 Chrome for Android and Safari for iOS only let you start playback in a user input event (e.g. in a touchstart event). Workaround: play sound with the Web Audio API instead. Quote Link to comment Share on other sites More sharing options...
jamessimo Posted June 26, 2014 Share Posted June 26, 2014 I use howler.js, It only uses audio tags if the Web Audio API is un-supported and comes with loads if great api features. Quote Link to comment Share on other sites More sharing options...
Catherine Posted July 6, 2014 Author Share Posted July 6, 2014 As I see, my mobile device can not playback blobs in Chrome. But nevertheless play files (accessed through URL) well.All other browsers on my PC or device play blobs well.... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.