Giter VIP home page Giter VIP logo

getdisplaymediademo's Introduction

Test of navigator.getDisplayMedia ScreenShare

The origin purpose of this repository is to test the implementation of navigator.getDisplayMedia in MS Edge.

Now the initial working implementation of getDisplayMedia() is available in the latest canary of Chromium(v70.0.3531.0). Please try out and give us feedback. You can post new Chromium bugs or add to the main tracking bug http://crbug.com/326740.

To try out:

启用实验性平台: Start Chromium with flag --enable-experimental-web-platform-features or turn it on via chrome://flags/. Go to https://cdn.rawgit.com/uysalere/js-demos/master/getdisplaymedia.html.

Note that it is still WIP and not everything defined in the spec is implemented. See here for the active spec discussion topics.

getDisplayMedia可以在Edge和chrome70+版本使用,都需要HTTPS源

不能实现任何分辨率、帧率控制。

  • Edge可以设置constraints的width/height/framerate等参数,但并不能做到任何限制。

  • chrome只能设置{audio:false,video:true}或{video:true},不能设置其他参数(注意:audio要么为false,要么不设置)。

  • 该MediaStream对象将只有一个MediaStreamTrack用于捕获的视频流; 没有MediaStreamTrack对应于捕获的音频流。

getDisplayMedia用法:

Edge: navigator.getDisplayMedia.then().catch()

Chrome: navigator.mediaDevices.getDisplayMedia.then().catch()

Edge和Chrome对于同一个操作的报错类型不完全相同, 详见Edge和Chrome 70上 getDisplayMedia 接口研究

getdisplaymediademo's People

Contributors

udta avatar

Watchers

 avatar  avatar  avatar

Forkers

xiaoping6688

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.