Skip to content

Commit

Permalink
fix: add position and duration public methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Danile71 committed Jan 17, 2024
1 parent 7df2616 commit 58a3927
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkt.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,13 @@ func (packet *Packet) IsVideo() bool {
func (packet *Packet) Type() int {
return packet.codecType
}

// Position frame position
func (packet *Packet) Position() int64 {
return packet.position
}

// Position frame duration
func (packet *Packet) Duration() int64 {
return packet.duration
}

0 comments on commit 58a3927

Please sign in to comment.