webrtc

package module
v1.1.0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: MIT Imports: 15 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

webrtc 插件

提供通过网页发布视频到monibuca,以及从monibuca拉流通过webrtc进行播放的功能

基本原理

通过浏览器和monibuca交换sdp信息,然后读取rtp包或者发送rtp的方式进行

界面操作

publish

在后台管理界面,会自动获取摄像头,在streamPath中填入需要发布流的名称,点击publish开始发布

play

在后台管理界面,点击上方play tab页此时会显示当前monibuca中所有正在发布的流,点击其中需要播放的流,会出现按钮,点击Play按钮即可弹出播放器界面并进行播放。

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WaitList added in v1.0.1

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

func (*WaitList) Get added in v1.0.1

func (wl *WaitList) Get(k string) *WebRTC

func (*WaitList) Set added in v1.0.1

func (wl *WaitList) Set(k string, v *WebRTC)

type WebRTC

type WebRTC struct {
	RTP
	*PeerConnection
	RemoteAddr string
	// contains filtered or unexported fields
}

func (*WebRTC) GetAnswer

func (rtc *WebRTC) GetAnswer() ([]byte, error)

func (*WebRTC) Play

func (rtc *WebRTC) Play(streamPath string) bool

func (*WebRTC) Publish

func (rtc *WebRTC) Publish(streamPath string) bool

Jump to

Keyboard shortcuts

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