Re: Ȥ½Ã getUserMedia ¿¡¼­ audio ¿¹Á¦ º¸½ÅºÐ ÀÖ³ª¿ä~? ^^

getUserMedia()´Â ÇöÀç Å©·Ò ¶Ç´Â Opera Labs(http://snapshot.opera.com/labs/camera/)¿¡¼­
Å×½ºÆ®°¡ °¡´ÉÇÕ´Ï´Ù.

Å©·ÒÀº canary¸¦ ¹Þ°Å³ª ¶Ç´Â ÃֽŠũ·Ò¿¡¼­ ÁÖ¼Òâ¿¡¼­ "chrome://flags/"¸¦ ÀÔ·ÂÇÑ ÈÄ, MediaStream Ç׸ñÀ»
'»ç¿ë'À¸·Î Çϼŵµ µË´Ï´Ù.

Á¦°¡ ¸¶ÀÌÅ©°¡ ¾ø¾î¼­ Á÷Á¢ÀûÀÎ Å×½ºÆ®´Â Çغ¸Áø ¸øÇߴµ¥¿ä...

½ºÅ©¸³Æ®´Â ´ë·« ¾Æ·¡¿Í °°ÀÌ ±¸¼ºÇØ º¸¸é µÉ°Í °°³×¿ä.
var gContext = new webkitAudioContext();

navigator.webkitGetUserMedia({
    video: false,
    audio: true
}, onSuccess, onError);

function onSuccess(stream) {
/* Audio·Î Àç»ýÇÏ´Â °æ¿ì
        var audioElement = new
Audio(window.webkitURL.createObjectURL(stream));
audioElement.play();
*/
 // Web Audio APIÀÇ AudioContext·Î °¡Á®¿Í¼­ gainNode¿Í ¿¬°áÇÏ´Â °æ¿ì
var microphone = gContext.createMediaStreamSource(stream),
      gainNode = gContext.createGainNode();

 microphone.connect(gainNode);
 gainNode.connect(gContext.destination);
}

function onError(err) {
console.log(err);
}


ÇÏÁö¸¸, Å©·Ò¿¡¼­ getUserMedia()·Î ¸¶ÀÌÅ© ½ºÆ®¸²À» ¾ò¾î¿À´Â°Ô ¾ÈµÈ´Ù´Â À̽´°¡ µî·ÏÀÌ µÇ¾î Àִµ¥, ÃÖ±Ù±îÁöµµ ÇØ°áµÇÁö
¾ÊÀº°ÍÀ¸·Î º¸ÀÔ´Ï´Ù.
http://code.google.com/p/chromium/issues/detail?id=112367

¸¶ÀÌÅ©¸¦ °¡Áö°í °è½Å´Ù¸é Çѹø Å×½ºÆ® Çغ¸½Ã¸é µÉ°Í °°³×¿ä.


2012³â 7¿ù 20ÀÏ ¿ÀÀü 1:35, Sangwhan Moon <sangwhan.moon@hanmail.net>´ÔÀÇ ¸»:

>
> On Jul 17, 2012, at 11:52 AM, ÀÌÇ×·É wrote:
>
> > ¾È³çÇϼ¼¿ä~ ^^
> >
> > getUserMedia¿¡¼­ video¿Í audio¸¦ °¡Á®´Ù ¾µ¼ö Àִ°ɷΠ¾Ë°í Àִµ¥¿ä.
> >
> > video °ü·ÃÇؼ­´Â ¾Æ·¡¿Í °°Àº ¿¹Á¦ ÆäÀÌÁö¸¦ ¸¹ÀÌ Ã£À» ¼ö Àִµ¥ ¹ÝÇØ..
> > http://www.html5rocks.com/en/tutorials/getusermedia/intro/
> >
> > audio °ü·ÃÇؼ­´Â ¾Èº¸¿©¼­¿ä +_+; Ȥ½Ã ¾Ë°í°è½ÅºÐ ÀÖ´ÂÁö ¿©Â庾´Ï´Ù.
>
> https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/webrtc-integration.html
>
> 3¹ø ¿¹Á¦ºÎÅÍ Âü°íÇÏ½Ã¸é µË´Ï´Ù. ¾ÆÁ÷±îÁö ¿¹Á¦°¡ µ¿ÀÛÇÏ´Â stable release ºê¶ó¿ìÀú´Â ¾øÀ» µí ÇÕ´Ï´Ù¸¸..

Received on Friday, 20 July 2012 05:58:33 UTC