run rtmp audio success

This commit is contained in:
langhuihui
2024-03-27 17:34:18 +08:00
parent 9ff60ac668
commit ad13914b44
11 changed files with 195 additions and 84 deletions

View File

@@ -1,6 +1,8 @@
package pkg
import (
"time"
"m7s.live/m7s/v5/pkg/util"
)
@@ -22,6 +24,9 @@ type RTMPData struct {
util.RecyclebleMemory
}
func (avcc *RTMPData) GetTimestamp() time.Duration {
return time.Duration(avcc.Timestamp) * time.Millisecond
}
func (avcc *RTMPData) IsIDR() bool {
return false
}