test hls ll

This commit is contained in:
Andrey Semochkin
2021-04-19 20:59:55 +03:00
parent be0abf0857
commit 2eeda69894
29 changed files with 5883 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
package fragment
import (
"time"
"github.com/deepch/vdk/av"
)
type Fragment struct {
Bytes []byte
Length int
Independent bool
Duration time.Duration
}
type Fragmenter interface {
av.PacketWriter
Fragment() (Fragment, error)
Duration() time.Duration
TimeScale() uint32
MovieHeader() (filename, contentType string, contents []byte)
NewSegment()
}