0.1.6 • Published 6 years ago

flyadapter v0.1.6

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

Fly Adapter

Fly Adapter provides an easy way to work with modular, stable WebRTC.

Using this package

This is being developed along side RTCFly, at present, TypeScript support doesn't really work, but we're hoping that in the next few months it can be stripped out of RTCFly and shared here.

What does it do?

It simple wraps the WebRTC API and includes the latest version of WebRTC Adapter on install.

import { getUserMedia, RTCPeerConnection } from 'flyadapter';

New something newable?

import { FlyAdapterClass } from 'flyadapter';

This, along with the IFlyAdapter interface should place nicely with frameworks such as InversifyJS

Why? We found WebRTC to be hard to work with in injection style architectures and with TDD. This package makes it easy to fake out the WebRTC API, whilst quietly having the benfits of WebRTC Adapter.

What about TypeScript?

We have the IFlyAdapter interface.

interface IFlyAdapter {
    
  RTCPeerConnection();
  RTCDataChannel();
  RTCDataChannelEvent();
  RTCSessionDescription(); 
  RTCSessionDescriptionCallback();
  RTCStatsReport();
  RTCIceCandidate(); 
  RTCPeerConnectionIceEvent();
  RTCRtpSender(); 
  RTCRtpReceiver();
  RTCRtpContributingSource(); 
  RTCConfiguration();
  RTCSctpTransport();
  RTCIdentityAssertion();
  RTCIdentityEvent();
  RTCIdentityErrorEvent();
  RTCCertificate();
  getUserMedia();
  enumerateDevices();
  onDeviceChange(callback);
}
0.1.6

6 years ago

0.1.5-alpha

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.18-alpha

6 years ago

0.0.17-alpha

6 years ago

0.0.17

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago