W3C home > Mailing lists > Public > public-media-capture@w3.org > August 2014

Extending MediaRecorder to record from Web Audio node faster than real time?

From: John Lin <jolin@mozilla.com>
Date: Tue, 19 Aug 2014 16:23:00 +0800
Message-Id: <1DF1E888-2238-4870-B6C5-84448A74884F@mozilla.com>
To: public-media-capture@w3.org
Hi all,
  Currently MediaRecorder only records data from media stream, AIUI [1], is a real time source. That means recording would take as long as content duration.
  Some use cases, such as cropping and cropping 1st half of an one hour speech audio clip, would not be very useful if saving the result needs such a long time to complete.
  Web Audio API already defines OfflineAudioContext [2] to support processing faster than real time use cases.
  By adding a new Constructor to MediaRecoder API:
    
    Constructor(AudioNode node, optional unsigned long output = 0, optional MediaRecorderOptions options)
  
  web applications can implement use cases that need to save processed audio with OfflineAudioContext and MediaRecorder.
 
  What do you think?

[1] final paragraph of http://www.w3.org/TR/mediacapture-streams/#introduction
[2] http://webaudio.github.io/web-audio-api/#the-offlineaudiocontext-interface

¡X
John
Received on Wednesday, 20 August 2014 07:02:08 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:26:29 UTC