We have followed a pattern that isn't considered good, even though it is submitted to WebKit, and need to rewrite the submitted MediaStream code to use objects instead of IDs. If the port (like chrome) needs IDs for IPC calls that layer can do anu necessary translation.
*** Bug 64525 has been marked as a duplicate of this bug. ***
Rewriting this must ensure that the issue in bug 64525 is fixed.