webrtc

package module
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 15 Imported by: 1

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