static

package
v0.0.0-...-7d1d8e6 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MediaFile

type MediaFile struct {
	AudioTrack, VideoTrack *webrtc.TrackLocalStaticSample
	// contains filtered or unexported fields
}

func NewMediaFile

func NewMediaFile(audioFileName string, videoFileName string) (*MediaFile, error)

func (*MediaFile) GetAudioTrack

func (m *MediaFile) GetAudioTrack() (*webrtc.TrackLocalStaticSample, error)

func (*MediaFile) GetVideoTrack

func (m *MediaFile) GetVideoTrack() (*webrtc.TrackLocalStaticSample, error)

func (*MediaFile) PlayAudio

func (m *MediaFile) PlayAudio(iceConnectedCtx context.Context, rtpSender *webrtc.RTPSender)

func (*MediaFile) PlayVideo

func (m *MediaFile) PlayVideo(iceConnectedCtx context.Context, rtpSender *webrtc.RTPSender)

func (*MediaFile) Stop

func (m *MediaFile) Stop()

Jump to

Keyboard shortcuts

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