Skip to content

Comments

Detecting environment-facing (i.e. backside) cam#5

Open
AVGP wants to merge 2 commits intomkeblx:masterfrom
AVGP:backside-cam-detection
Open

Detecting environment-facing (i.e. backside) cam#5
AVGP wants to merge 2 commits intomkeblx:masterfrom
AVGP:backside-cam-detection

Conversation

@AVGP
Copy link

@AVGP AVGP commented Apr 6, 2015

This addresses the problem explained in #1

What it currently does is:

  • it goes through the list of all sources for GetUserMedia
  • it checks if a source is a camera and faces the environment (i.e. a backside camera)
  • if it is, it starts capturing from this source.

I will amend it a bit, so that it is more defensive in terms of the availability of the MediaStreamTracks API and an environment-facing camera.

@AVGP
Copy link
Author

AVGP commented Apr 6, 2015

Now it falls back to the getUserMedia call without a stream ID if

  • no backfacing cam was found
  • MediaStreamTracks or MediaStreamTracks.getSources isn't supported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant