Вопрос

How to record audio in web page using Windows Phone's microphone?

I'm interested of mobile IE versions in WP7.5, WP8 and WP8.1.

Это было полезно?

Решение

Short explanation

Recording audio from web app using just mobile IE is not possible. You could make a separate audio recorder app and use it with browser's file API, but it would require users to first download a audio recorder before using the web app. This would be supported only in IE11.

Longer explanation

With web techs you would have following options:

  1. Get audio from server
  2. Record audio using Flash/Silverlight
  3. Record audio using HTML5 APIs
  4. Use IEs own custom API for audio record(as far as I know, there is no such API)

1. Option

It would be possible to provide a file picker where user can upload their audio file to server.

IE 9 and 10 versios do not support file api. IE 11 supports file api. This was tested using simple file API demo. Also see http://viljamis.com/blog/2012/file-upload-support-on-mobile/ and http://caniuse.com/fileapi

To seamlessly integrate audio recording to web app running on IE 11, you would need to have native audio recorder app which would appear in the file upload's "Choose an app" - app picker. This option wouldn't be so user friendly. Also it should be noted that mobile IEs do not support audio API which can be used to manipulate audio source

2. Option

Flash is not supported or developed for mobile devices anymore: http://blogs.adobe.com/conversations/2011/11/flash-focus.html

Quote from the source:

Our future work with Flash on mobile devices will be focused on enabling Flash developers to package native apps with Adobe AIR for all the major app stores. We will no longer continue to develop Flash Player in the browser to work with new mobile device configurations (chipset, browser, OS version, etc.) following the upcoming release of Flash Player 11.1 for Android and BlackBerry PlayBook. We will of course continue to provide critical bug fixes and security updates for existing device configurations. We will also allow our source code licensees to continue working on and release their own implementations.

Silverlight plugin for IE is not apparently* available for any mobile IE. It is possible to create Windows Phone apps with Silverlight, but it is a separate from Silverlight browser plugin, which would be needed to record audio in web browser.

3. Option

IEs do not support getUserMedia API which is needed for capturing audio/video. I also confirmed this by testing mobile IE10 and IE11 using these demo-pages: demo1 and demo2. These demo pages worked with mobile Chrome. See also How to record audio on webpage (iOS, Android, PC/Mac) - no flash

Conclusion

Recording audio from web app using just mobile IE is not possible. You could make a separate audio recorder app and use it with browser's file API, but it would require users to first download a audio recorder before using the web app. This would be supported only in IE11.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top