http://dev.w3.org/2011/webrtc/editor/getusermedia.html#idl-def-MediaStreamconstraints' rel=“nofollow”>当前草案 (13.August),因此无法指定一个特定的录音设备 。
User agents are encouraged to default to using the user s primary or system default camera and/or microphone (when possible) to generate the media stream. User agents may allow users to use any media source, including pre-recorded media files.
GetUser Media ()- 方法只允许通过< a href=> http://dev.w3. org/2011/webrtc/editor/getusermedia.html#idl-def- MediaStreamconstraints> rel=“nofollow” > MediaStreamconstraints 具体说明媒体来源是视频还是音频来源:
interface NavigatorUserMedia {
void getUserMedia (MediaStreamConstraints? constraints, NavigatorUserMediaSuccessCallback successCallback, optional NavigatorUserMediaErrorCallback? errorCallback);
};
dictionary MediaStreamConstraints {
(boolean or MediaTrackConstraints) video = false;;
(boolean or MediaTrackConstraints) audio = false;;
};