JSFiddle - React, Tailwind, and code Playground

by Yoshiharu Kamata

HTML

<video autoplay>

CoffeeScript

$ ->
  console.log "ok"
  console.log webkitGetUserMedia
  setTimeout ->
    navigator.webkitGetUserMedia
      video: "ok then"
      audio: "yes please"
      toString: ->
        "audio, video user"
      (stream) ->
        pc = new PeerConnection if window.PeerConnection
        console.log pc
        console.log stream
        pc.addStream stream
        $("video").attr "src", webkitURL.createObjectURL(stream)
    pc = new webkitPeerConnection() if window.webkitPeerConnection
  ,2000