mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-10-05 15:46:58 +08:00
19 lines
398 B
Go
19 lines
398 B
Go
package rtmp
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/bluenviron/gortmplib"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestToStreamNoSupportedCodecs(t *testing.T) {
|
|
r := &gortmplib.Reader{}
|
|
|
|
_, err := ToStream(r, nil)
|
|
require.Equal(t, errNoSupportedCodecsTo, err)
|
|
}
|
|
|
|
// this is impossible to test since currently we support all RTMP tracks.
|
|
// func TestToStreamSkipUnsupportedTracks(t *testing.T)
|