Skip to content

Commit

Permalink
bump to v2 (#182)
Browse files Browse the repository at this point in the history
* bump to v2

* remove deprecated entities

* refactor
  • Loading branch information
aler9 committed Sep 22, 2024
1 parent 35f6597 commit ef68587
Show file tree
Hide file tree
Showing 42 changed files with 2,050 additions and 2,105 deletions.
2 changes: 1 addition & 1 deletion client_primary_downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/url"
"strings"

"github.com/bluenviron/gohlslib/pkg/playlist"
"github.com/bluenviron/gohlslib/v2/pkg/playlist"
)

func checkSupport(codecs []string) bool {
Expand Down
2 changes: 1 addition & 1 deletion client_stream_downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strconv"
"time"

"github.com/bluenviron/gohlslib/pkg/playlist"
"github.com/bluenviron/gohlslib/v2/pkg/playlist"
)

func findSegmentWithInvPosition(segments []*playlist.MediaSegment, invPos int) (*playlist.MediaSegment, int) {
Expand Down
2 changes: 1 addition & 1 deletion client_stream_processor_fmp4.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/bluenviron/mediacommon/pkg/formats/fmp4"

"github.com/bluenviron/gohlslib/pkg/codecs"
"github.com/bluenviron/gohlslib/v2/pkg/codecs"
)

func fmp4PickLeadingTrack(init *fmp4.Init) int {
Expand Down
2 changes: 1 addition & 1 deletion client_stream_processor_mpegts.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

"github.com/bluenviron/mediacommon/pkg/formats/mpegts"

"github.com/bluenviron/gohlslib/pkg/codecs"
"github.com/bluenviron/gohlslib/v2/pkg/codecs"
)

func mpegtsPickLeadingTrack(mpegtsTracks []*mpegts.Track) int {
Expand Down
2 changes: 1 addition & 1 deletion client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"testing"
"time"

"github.com/bluenviron/gohlslib/pkg/codecs"
"github.com/bluenviron/gohlslib/v2/pkg/codecs"
"github.com/bluenviron/mediacommon/pkg/codecs/h264"
"github.com/bluenviron/mediacommon/pkg/codecs/mpeg4audio"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion client_track_processor_fmp4.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"time"

"github.com/bluenviron/gohlslib/pkg/codecs"
"github.com/bluenviron/gohlslib/v2/pkg/codecs"
"github.com/bluenviron/mediacommon/pkg/formats/fmp4"
)

Expand Down
4 changes: 2 additions & 2 deletions examples/client-absolute-timestamp/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"log"
"time"

"github.com/bluenviron/gohlslib"
"github.com/bluenviron/gohlslib/pkg/codecs"
"github.com/bluenviron/gohlslib/v2"
"github.com/bluenviron/gohlslib/v2/pkg/codecs"
)

// This example shows how to
Expand Down
4 changes: 2 additions & 2 deletions examples/client-codec-h264-convert-to-jpeg/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"strconv"
"time"

"github.com/bluenviron/gohlslib"
"github.com/bluenviron/gohlslib/pkg/codecs"
"github.com/bluenviron/gohlslib/v2"
"github.com/bluenviron/gohlslib/v2/pkg/codecs"
)

// This example shows how to
Expand Down
4 changes: 2 additions & 2 deletions examples/client-codec-h264-save-to-disk/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"log"
"time"

"github.com/bluenviron/gohlslib"
"github.com/bluenviron/gohlslib/pkg/codecs"
"github.com/bluenviron/gohlslib/v2"
"github.com/bluenviron/gohlslib/v2/pkg/codecs"
)

// This example shows how to
Expand Down
4 changes: 2 additions & 2 deletions examples/client-codec-mpeg4audio-save-to-disk/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"log"
"time"

"github.com/bluenviron/gohlslib"
"github.com/bluenviron/gohlslib/pkg/codecs"
"github.com/bluenviron/gohlslib/v2"
"github.com/bluenviron/gohlslib/v2/pkg/codecs"
)

// This example shows how to
Expand Down
4 changes: 2 additions & 2 deletions examples/client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"log"
"time"

"github.com/bluenviron/gohlslib"
"github.com/bluenviron/gohlslib/pkg/codecs"
"github.com/bluenviron/gohlslib/v2"
"github.com/bluenviron/gohlslib/v2/pkg/codecs"
)

// This example shows how to read a HLS stream.
Expand Down
4 changes: 2 additions & 2 deletions examples/muxer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (

"github.com/bluenviron/mediacommon/pkg/formats/mpegts"

"github.com/bluenviron/gohlslib"
"github.com/bluenviron/gohlslib/pkg/codecs"
"github.com/bluenviron/gohlslib/v2"
"github.com/bluenviron/gohlslib/v2/pkg/codecs"
)

// This example shows how to:
Expand Down
2 changes: 1 addition & 1 deletion examples/playlist-parser/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io"
"net/http"

"github.com/bluenviron/gohlslib/pkg/playlist"
"github.com/bluenviron/gohlslib/v2/pkg/playlist"
)

// This example shows how to download and parse a HLS playlist.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/bluenviron/gohlslib
module github.com/bluenviron/gohlslib/v2

go 1.20

Expand Down
Loading

0 comments on commit ef68587

Please sign in to comment.