Land Shijing's changes for device selection

Conflicts:
samples/web/content/testrtc/index.html
samples/web/content/testrtc/js/main.js