package packets

import (
	"time"

	"github.com/pion/rtp"
)

// Packet represents an RTP Packet
type Packet struct {
	Packet          *rtp.Packet
	IsAudio         bool   // packet is audio
	IsVideo         bool   // packet is video
	IsKeyFrame      bool   // video packet is key frame
	Idx             int8   // stream index in container format
	Codec           string // codec name
	CompositionTime int64  // composition offset (PTS - DTS) in milliseconds, non-zero for H264/H265 B-frames
	Time            int64  // packet decode time
	TimeLegacy      time.Duration
	CurrentTime     int64  // current time in milliseconds (UNIX timestamp)
	Data            []byte // packet data
	Gopsize         int    // size of the GOP
}
