ascii

package module
v0.0.0-...-07c3fde Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2019 License: MIT Imports: 29 Imported by: 0

README

ASCII Roulette

👾 Make friends on the command line!

License Build Status Go Report Card GoDoc Pion

Chat with a random person without ever leaving your terminal window.

Installation

Download the fast way:

# Paste this command into your terminal to install
bash <(curl -Ls dialup.com/ascii)

Or, build from from source:

First, install libvpx. On OSX you can run brew install libvpx

git clone https://github.com/dialup-inc/ascii.git
cd ascii
make

Contributing

Contributions and bug reports are welcome! Please check the issues section before submitting.

Here are some starter issues if you'd like to help out:

Our Contributors

About Dialup

This app is a project from the Dialup company hackathon.

Dialup is a WebRTC-based voice chat app that connects you to a random person with a similar interest.

We're hiring! Visit our jobs page to learn more. We 💖 Go and WebRTC.

Code and documentation Copyright 2019 Dialup, Inc.

Code released under the MIT license.

webmaster@dialup.com

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Match

func Match(ctx context.Context, wsURL string, conn *webrtc.PeerConnection) error

Types

type App

type App struct {
	STUNServer string
	// contains filtered or unexported fields
}

func New

func New(signalerURL string) (*App, error)

func (*App) Run

func (a *App) Run(ctx context.Context) error

type Capture

type Capture struct {
	// contains filtered or unexported fields
}

func NewCapture

func NewCapture(width, height int) (*Capture, error)

func (*Capture) RequestKeyframe

func (c *Capture) RequestKeyframe()

func (*Capture) SetTrack

func (c *Capture) SetTrack(track *webrtc.Track)

func (*Capture) Start

func (c *Capture) Start(camID int, frameRate float32) error

func (*Capture) Stop

func (c *Capture) Stop() error

type Conn

type Conn struct {
	SendTrack                  *webrtc.Track
	OnPLI                      func()
	OnFrame                    func([]byte)
	OnMessage                  func(string)
	OnICEConnectionStateChange func(webrtc.ICEConnectionState)
	OnBye                      func()
	OnDataOpen                 func()
	// contains filtered or unexported fields
}

func NewConn

func NewConn(config webrtc.Configuration) (*Conn, error)

func (*Conn) IsConnected

func (c *Conn) IsConnected() bool

func (*Conn) SendBye

func (c *Conn) SendBye() error

func (*Conn) SendMessage

func (c *Conn) SendMessage(m string) error

func (*Conn) SendPLI

func (c *Conn) SendPLI() error

type DCMessage

type DCMessage struct {
	Event   string
	Payload []byte
}

Directories

Path Synopsis
cmd
signal module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL