Documentation
¶
Index ¶
- type Layout
- type LoadTest
- type LoadTestDepacketizer
- type LoadTestProvider
- type LoadTester
- func (t *LoadTester) IsRunning() bool
- func (t *LoadTester) PublishAudioTrack(name string) (string, error)
- func (t *LoadTester) PublishSimulcastTrack(name, resolution, codec string) (string, error)
- func (t *LoadTester) PublishVideoTrack(name, resolution, codec string) (string, error)
- func (t *LoadTester) Reset()
- func (t *LoadTester) Start() error
- func (t *LoadTester) Stop()
- type Params
- type TesterParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Layout ¶ added in v0.7.0
type Layout string
const ( // LayoutSpeaker - one user at 1280x720, 5 at 356x200 LayoutSpeaker Layout = "speaker" // LayoutGrid3x3 - 9 participants at 400x225 LayoutGrid3x3 Layout = "3x3" // LayoutGrid4x4 - 16 participants at 320x180 LayoutGrid4x4 Layout = "4x4" // LayoutGrid5x5 - 25 participants at 256x144 LayoutGrid5x5 Layout = "5x5" )
func LayoutFromString ¶ added in v0.7.0
type LoadTest ¶
type LoadTest struct { Params Params // contains filtered or unexported fields }
func NewLoadTest ¶
type LoadTestDepacketizer ¶ added in v1.2.0
type LoadTestDepacketizer struct { }
func (*LoadTestDepacketizer) IsPartitionHead ¶ added in v1.2.0
func (d *LoadTestDepacketizer) IsPartitionHead(payload []byte) bool
func (*LoadTestDepacketizer) IsPartitionTail ¶ added in v1.2.0
func (d *LoadTestDepacketizer) IsPartitionTail(marker bool, payload []byte) bool
type LoadTestProvider ¶ added in v0.7.0
LoadTestProvider is designed to be used with the load tester. It provides packets that are encoded with Sequence and timing information, in order determine RTT and loss
func NewLoadTestProvider ¶ added in v0.7.0
func NewLoadTestProvider(bitrate uint32) (*LoadTestProvider, error)
func (*LoadTestProvider) NextSample ¶ added in v0.7.0
func (p *LoadTestProvider) NextSample() (media.Sample, error)
func (*LoadTestProvider) OnBind ¶ added in v0.7.0
func (p *LoadTestProvider) OnBind() error
func (*LoadTestProvider) OnUnbind ¶ added in v0.7.0
func (p *LoadTestProvider) OnUnbind() error
type LoadTester ¶
type LoadTester struct {
// contains filtered or unexported fields
}
func NewLoadTester ¶
func NewLoadTester(params TesterParams) *LoadTester
func (*LoadTester) IsRunning ¶
func (t *LoadTester) IsRunning() bool
func (*LoadTester) PublishAudioTrack ¶ added in v0.8.0
func (t *LoadTester) PublishAudioTrack(name string) (string, error)
func (*LoadTester) PublishSimulcastTrack ¶ added in v0.7.0
func (t *LoadTester) PublishSimulcastTrack(name, resolution, codec string) (string, error)
func (*LoadTester) PublishVideoTrack ¶ added in v0.8.0
func (t *LoadTester) PublishVideoTrack(name, resolution, codec string) (string, error)
func (*LoadTester) Reset ¶
func (t *LoadTester) Reset()
func (*LoadTester) Start ¶
func (t *LoadTester) Start() error
func (*LoadTester) Stop ¶
func (t *LoadTester) Stop()
Click to show internal directories.
Click to hide internal directories.