Code Monkey home page Code Monkey logo

farnsworth's Introduction

Hey

I'm a web developer that's really into peer-to-peer systems, NixOS, and anything related to Vim. My joy in life is finding force multipliers, the lesser-known tools and paradigms that make you more powerful. You can find my recommendations here.

Live FOSS or die ๐Ÿค˜

farnsworth's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

farnsworth's Issues

Chromium browsers never request devices

The getUserMedia(...) API just hangs. It never even prompts.

This happens on Android, Linux, and Mac. Only Chrome has this behavior. Firefox and Safari successfully query media devices.

Audio/video tracks are never deleted remotely

Scenario: you start and then stop sharing your screen. The track is closed locally and deleted just fine, but the remote peer isn't notified, and thus keeps the screen share view indefinitely.

This would be trivial to fix if track.onended fired, but that isn't how the browser works. I need to remove the track and detect a stream de-association through signaling: https://stackoverflow.com/questions/60636439/webrtc-how-to-detect-when-a-stream-or-track-gets-removed-from-a-peerconnection#answer-60860584

Wait for GUM query to finish before initiating calls

Successful GUM queries loosen the autoplay policy. This does not extend to remote WebRTC tracks (otherwise advertisers would abuse it to death), so there's a race condition where receiving remote streams initialize paused unless you've already authorized GUM.

Farnsworth should wait for the GUM query to finish before initiating the call. (Even if it fails. You can still use chat.)

WebRTC signaling fails in Safari when polite=true

When Safari is forced into ICE rollback on a signaling conflict, it doesn't seem to take the hint:

InvalidStateError: Remote description type 0 is incompatible with current signaling state 1

I confirmed this only seems to happen when Safari is signaling in polite mode.

Uncaught (in promise) TypeError: state[peerId] is undefined

Source:

  handleAction(actions.tracks.add, (state, { peerId, track }) => {
    state[peerId].trackIds.push(track.id);
  }),

Repro (semi-consistent):

  • Open two instances of the app
  • From tab 1, connect to tab 2
  • Refresh tab 2
  • From tab 1, connect again

Tab 2 is frozen. The error shown above is thrown in the console.

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.