mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 23:26:54 +08:00
merge format and formatdecenc into formats (#222)
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
||||
"net"
|
||||
|
||||
"github.com/bluenviron/gortsplib/v3"
|
||||
"github.com/bluenviron/gortsplib/v3/pkg/format"
|
||||
"github.com/bluenviron/gortsplib/v3/pkg/formats"
|
||||
"github.com/bluenviron/gortsplib/v3/pkg/media"
|
||||
"github.com/pion/rtp"
|
||||
)
|
||||
@@ -38,7 +38,7 @@ func main() {
|
||||
// create a media that contains a M-JPEG format
|
||||
medi := &media.Media{
|
||||
Type: media.TypeVideo,
|
||||
Formats: []format.Format{&format.MJPEG{}},
|
||||
Formats: []formats.Format{&formats.MJPEG{}},
|
||||
}
|
||||
|
||||
// connect to the server and start recording the media
|
||||
|
Reference in New Issue
Block a user