web_rtc

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

README

WebRTC

Getting Started

package main

import (
    "log"
    "github.com/pocketbase/pocketbase"
    web_rtc "github.com/rodydavis/pocketbase-plugins/web-rtc"
)

func main() {
	app := pocketbase.New()

	err = web_rtc.Init(app)
	if err != nil {
		log.Fatal(err)
	}

    if err := app.Start(); err != nil {
		log.Fatal(err)
	}
}

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AuthCollection             = "users"
	IceServerCollection        = "ice_servers"
	CallsCollection            = "calls"
	OfferCandidatesCollection  = "offer_candidates"
	AnswerCandidatesCollection = "answer_candidates"
)
View Source
var StunServers = []string{
	"stun:stun1.l.google.com:19302",
	"stun:stun2.l.google.com:19302",
}

Functions

func Init

func Init(app *pocketbase.PocketBase) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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