初步与rtmp插件调通

This commit is contained in:
dexter
2022-02-06 08:50:17 +08:00
parent b2489b2305
commit 4d8e2ca5d2
21 changed files with 682 additions and 261 deletions

View File

@@ -80,7 +80,7 @@ type FileTypeBox struct {
func NewFileTypeBox() (box *FileTypeBox) {
box = new(FileTypeBox)
box.MP4BoxHeader.BoxType = util.ReadBE[uint32]([]byte("ftyp"))
util.GetBE([]byte("ftyp"), &box.MP4BoxHeader.BoxType)
return
}
@@ -121,9 +121,7 @@ type MovieBox struct {
func NewMovieBox() (box *MovieBox) {
box = new(MovieBox)
box.MP4BoxHeader.BoxType = util.ReadBE[uint32]([]byte("moov"))
util.GetBE([]byte("moov"), &box.MP4BoxHeader.BoxType)
return
}