Artificial Intelligence Programming Lab(AIPLab) 討論區

Please login or register.

請輸入帳號, 密碼以及預計登入時間



作者 主題: WebRTC-getUserMedia()  (閱讀 1277 次)


  • 管理員
  • Hero Member
  • *****
  • 文章: 1838
    • 檢視個人資料
« 於: 五月 03, 2016, 01:59:04 am »
程式碼: [Select]
<div id="container">

    <h1><a href="//" title="WebRTC samples homepage">WebRTC samples</a> <span>getUserMedia</span></h1>

    <video id="gum-local" autoplay></video>

    <div id="errorMsg"></div>

    <p>Display the video stream from <code>getUserMedia()</code> in a video element.</p>

    <p>The <code>MediaStream</code> object <code>stream</code> passed to the <code>getUserMedia()</code> callback is in global scope, so you can inspect it from the console.</p>

    <a href="" title="View source for this page on GitHub" id="viewSource">View source on GitHub</a>

  <script src="js/adapter.js"></script>
  <script src="js/common.js"></script>
  <script src="js/main.js"></script>

SimplePortal Classic 2.0.5