Git Product home page Git Product logo

Comments (3)

muaz-khan avatar muaz-khan commented on May 18, 2024

Test it on HTTPS. Because, screen capturing (currently) only works on SSL domains.

Chrome denies request automatically in the following cases:

  1. Screen capturing is not enabled via command line switch.
    mandatory: {chromeMediaSource: 'screen'} must be there
  2. Audio stream was requested (it's not supported yet).
navigator.webkitGetUserMedia({
    audio: false    /* MUST be false because audio capturer not works with screen capturer */
});
  1. Request from a page that was not loaded from a secure origin.

Here is their C++ code that denies screen capturing:

if (!screen_capture_enabled ||
    request.audio_type != content::MEDIA_NO_SERVICE ||
    !request.security_origin.SchemeIsSecure()) {
        callback.Run(content::MediaStreamDevices());
        return;
    }

Personally I don’t know why they deny non-SSL requests. Maybe they’re using iframes in sandbox mode or something else that runs only on HTTPS.

Browsers who don't understand {chromeMediaSource: 'screen'} constraint will simply get video like chrome stable or Firefox.

Can you explain what you meant by "The file of that name in your github directory is not the same file"?

from webrtc-experiment.

muaz-khan avatar muaz-khan commented on May 18, 2024

Corrected. Thanks.

from webrtc-experiment.

jonschull avatar jonschull commented on May 18, 2024

What I meant is that these two HTML files are very different (and do different things)

https://github.com/muaz-khan/WebRTC-Experiment/blob/master/realtime-pluginfree-calls/Realtime-PluginFree-Calls.html

https://googledrive.com/host/0B6GWd_dUUTT8WHpWSzZ5S0RqeUk/Pluginfree-Screen-Sharing.html

Pasted_Image_3_2_13_10_52_AM-3

from webrtc-experiment.

Related Issues (20)

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.