title: How to stop a video in html 5 live streaming
body: <p>I am a beginner in Javascript.
  I have two buttons (start and stop) controlling the flow of mediastream using WebRTC. How could I create a event handler for stop button, which would stop the mediastream.</p>