mirror of
https://github.com/openlibrecommunity/olcrtc.git
synced 2026-05-26 07:08:11 +00:00
feat(sei): add sei config
This commit is contained in:
@@ -80,6 +80,10 @@ func Run(
|
||||
videoTileRS int,
|
||||
vp8FPS int,
|
||||
vp8BatchSize int,
|
||||
seiFPS int,
|
||||
seiBatchSize int,
|
||||
seiFragmentSize int,
|
||||
seiAckTimeoutMS int,
|
||||
) error {
|
||||
runCtx, cancel := context.WithCancel(ctx)
|
||||
defer cancel()
|
||||
@@ -103,6 +107,7 @@ func Run(
|
||||
videoWidth, videoHeight, videoFPS, videoBitrate, videoHW,
|
||||
videoQRSize, videoQRRecovery, videoCodec, videoTileModule, videoTileRS,
|
||||
vp8FPS, vp8BatchSize,
|
||||
seiFPS, seiBatchSize, seiFragmentSize, seiAckTimeoutMS,
|
||||
); err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -175,6 +180,7 @@ func (s *Server) bringUpLink(
|
||||
videoCodec string,
|
||||
videoTileModule, videoTileRS int,
|
||||
vp8FPS, vp8BatchSize int,
|
||||
seiFPS, seiBatchSize, seiFragmentSize, seiAckTimeoutMS int,
|
||||
) error {
|
||||
ln, err := link.New(ctx, linkName, link.Config{
|
||||
Transport: transportName,
|
||||
@@ -198,6 +204,10 @@ func (s *Server) bringUpLink(
|
||||
VideoTileRS: videoTileRS,
|
||||
VP8FPS: vp8FPS,
|
||||
VP8BatchSize: vp8BatchSize,
|
||||
SEIFPS: seiFPS,
|
||||
SEIBatchSize: seiBatchSize,
|
||||
SEIFragmentSize: seiFragmentSize,
|
||||
SEIAckTimeoutMS: seiAckTimeoutMS,
|
||||
})
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to create link: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user