Fix video stream lost issue when the remote side refreshes the page

Fix issue #296