forked from External/mediamtx
support reading H265 tracks with HLS (#1342)
* support reading H265 tracks with HLS * update README
This commit is contained in:
parent
37baa33fc8
commit
5de600ffaa
24 changed files with 595 additions and 260 deletions
|
|
@ -84,11 +84,11 @@ func (s *hlsSource) run(ctx context.Context) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
onVideoData := func(pts time.Duration, nalus [][]byte) {
|
||||
onVideoData := func(pts time.Duration, au [][]byte) {
|
||||
err := stream.writeData(videoMedia, videoMedia.Formats[0], &dataH264{
|
||||
pts: pts,
|
||||
nalus: nalus,
|
||||
ntp: time.Now(),
|
||||
pts: pts,
|
||||
au: au,
|
||||
ntp: time.Now(),
|
||||
})
|
||||
if err != nil {
|
||||
s.Log(logger.Warn, "%v", err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue