swpowe Posted July 3, 2017 Share Posted July 3, 2017 Hello! I'm brand new to phaser and fairly new to programming. I'm trying to setup a basic game and I'm wondering if it's possible to record audio using phaser. I've got objects that I'm dragging around and when I place the object, I'd like to be able to record the players audio. Not sure if this is possible or how I'd even go about it. Any help would be much appreciated! Thanks! Link to comment Share on other sites More sharing options...
ivanix Posted July 4, 2017 Share Posted July 4, 2017 Audio capture is not done with Phaser specifically, but with html5 getUserMedia API. A nice intro is https://www.html5rocks.com/en/tutorials/getusermedia/intro/ You'll need to decide what you want to do with the audio you capture, store for playback or for streaming elsewhere? Also, you'll have to deal with compression to save on storage. Most common is mp3 but other encodings may be needed depending on device and platform (iOS, android, windows, osx). Link to comment Share on other sites More sharing options...
Recommended Posts