webrtc research
1. 各种RFC
重点还是
a)http://www.w3.org/TR/2015/WD-mediacapture-streams-20150414/
b)http://www.w3.org/TR/webrtc/
c)https://webaudio.github.io/web-audio-api/
里边提到的各种资料
结合demo还有控制台看看里边的运行状况.
2. chrome://webrtc-internals/
可以看出webrtc的运行状况,可以把玩把玩.
////////////////////////////////////////////////////////////////////////
A)Device 枚举
http://blog.respoke.io/post/110719298598/webrtc-device-selection-demystified
获取设备的一些考虑:Out of security implications, chrome remembers getUserMedia invocation only for URLs with SSL installed. Chrome also assumes that, devices' labels are listed only after first getUserMedia request is made.
So, here are the rules:
The URL must be HTTPs based URL or otherwise, a getUserMedia request should be made each time when enumerateDevices request is needed.
For HTTPs URLs, a getUserMedia request must be made to allow chrome give additional privileges to current domain. In this case, all future enumerateDevices request will be having device-label attribute.
In simple words, at least one getUserMedia request is always needed to make sure correct device label is returned by navigator.enumerateDevices method.
https://developer.mozilla.org/en-US/docs/Web //mozilla的参考
重点还是
a)http://www.w3.org/TR/2015/WD-mediacapture-streams-20150414/
b)http://www.w3.org/TR/webrtc/
c)https://webaudio.github.io/web-audio-api/
里边提到的各种资料
结合demo还有控制台看看里边的运行状况.
2. chrome://webrtc-internals/
可以看出webrtc的运行状况,可以把玩把玩.
////////////////////////////////////////////////////////////////////////
A)Device 枚举
http://blog.respoke.io/post/110719298598/webrtc-device-selection-demystified
获取设备的一些考虑:Out of security implications, chrome remembers getUserMedia invocation only for URLs with SSL installed. Chrome also assumes that, devices' labels are listed only after first getUserMedia request is made.
So, here are the rules:
The URL must be HTTPs based URL or otherwise, a getUserMedia request should be made each time when enumerateDevices request is needed.
For HTTPs URLs, a getUserMedia request must be made to allow chrome give additional privileges to current domain. In this case, all future enumerateDevices request will be having device-label attribute.
In simple words, at least one getUserMedia request is always needed to make sure correct device label is returned by navigator.enumerateDevices method.
https://developer.mozilla.org/en-US/docs/Web //mozilla的参考