Revert "move attachMediaStream definition"
Revert "move attachMediaStream definition"

This reverts commit ee05727836a10f1fc106bb63928a31c1bb42896d.

Zauberstuhl/adapter,Acidburn0zzz/adapter,4lejandrito/adapter,jan-ivar/adapter,harme199497/adapter,xdumaine/adapter,shines/adapter,xdumaine/adapter,4lejandrito/adapter,jan-ivar/adapter,shines/adapter,calebboyd/adapter,calebboyd/adapter,Zauberstuhl/adapter,Acidburn0zzz/adapter,Zauberstuhl/adapter,Acidburn0zzz/adapter,calebboyd/adapter,harme199497/adapter,shines/adapter,webrtc/adapter,4lejandrito/adapter,webrtc/adapter,harme199497/adapter