feat: add hdl play

This commit is contained in:
langhuihui
2024-04-01 20:37:22 +08:00
parent ae2a18aff6
commit fe69b4bdd2
25 changed files with 338 additions and 123 deletions

View File

@@ -1,6 +1,7 @@
package pkg
package rtmp
import (
"fmt"
"time"
"m7s.live/m7s/v5/pkg/util"
@@ -24,6 +25,10 @@ type RTMPData struct {
util.RecyclableMemory
}
func (avcc *RTMPData) Print() string {
return fmt.Sprintf("% 02X", avcc.Buffers.Buffers[0][:5])
}
func (avcc *RTMPData) GetTimestamp() time.Duration {
return time.Duration(avcc.Timestamp) * time.Millisecond
}