When a track is added/removed directly to MediaStream notify observer->OnRenegotionNeeded

There is an inconsistency in behavior of PeerConnection.
When I remove track from PeerConnection observer->OnRenegotiationNeeded is called, however if I remove track from MediaStream then there is no notification to renegotiate.
This patch adds missing OnRenegotiationNeeded calls.

BUG=webrtc:7966

Review-Url: https://codereview.webrtc.org/2977493002
Cr-Commit-Position: refs/heads/master@{#19125}
3 files changed
tree: 0df0728440bfe4f4cf80cdf700dad6c77d60104f
  1. .clang-format
  2. .git-blame-ignore-revs
  3. .gitignore
  4. .gn
  5. AUTHORS
  6. BUILD.gn
  7. CODE_OF_CONDUCT.md
  8. DEPS
  9. LICENSE
  10. LICENSE_THIRD_PARTY
  11. OWNERS
  12. PATENTS
  13. PRESUBMIT.py
  14. README.md
  15. WATCHLISTS
  16. build_overrides/
  17. check_root_dir.py
  18. cleanup_links.py
  19. codereview.settings
  20. data/
  21. infra/
  22. license_template.txt
  23. pylintrc
  24. resources/
  25. tools_webrtc/
  26. webrtc/
README.md

WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.

Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.

The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.

Development

See http://www.webrtc.org/native-code/development for instructions on how to get started developing with the native code.

More info