Skip to content

Instantly share code, notes, and snippets.

@erangamapa
Created May 14, 2016 08:58
Show Gist options
  • Save erangamapa/8b96e814bad6933ab1c9962f38e88777 to your computer and use it in GitHub Desktop.
Save erangamapa/8b96e814bad6933ab1c9962f38e88777 to your computer and use it in GitHub Desktop.

Revisions

  1. erangamapa created this gist May 14, 2016.
    8 changes: 8 additions & 0 deletions webrtc7.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    function getUserMediaSuccess(stream) {
    localStream = stream;
    localVideo.src = window.URL.createObjectURL(stream);
    }

    function getUserMediaError(error) {
    console.log(error);
    }