mirror of
https://github.com/Monibuca/engine.git
synced 2025-10-18 14:40:40 +08:00
批量修改所有引入包路径
This commit is contained in:
@@ -4,7 +4,7 @@ import (
|
||||
"io"
|
||||
"net"
|
||||
|
||||
"github.com/Monibuca/engine/v4/util"
|
||||
"v4.m7s.live/engine/util"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@@ -5,8 +5,8 @@ import (
|
||||
"errors"
|
||||
"io"
|
||||
|
||||
"github.com/Monibuca/engine/v4/util"
|
||||
"github.com/Monibuca/engine/v4/util/bits/pio"
|
||||
"v4.m7s.live/engine/util"
|
||||
"v4.m7s.live/engine/util/bits/pio"
|
||||
)
|
||||
|
||||
// Start Code + NAL Unit -> NALU Header + NALU Body
|
||||
|
@@ -4,8 +4,8 @@ import (
|
||||
"bytes"
|
||||
"errors"
|
||||
|
||||
"github.com/Monibuca/engine/v4/util"
|
||||
"github.com/q191201771/naza/pkg/nazabits"
|
||||
"v4.m7s.live/engine/util"
|
||||
)
|
||||
|
||||
type H265NALUType byte
|
||||
|
@@ -1,6 +1,6 @@
|
||||
package codec
|
||||
|
||||
import "github.com/Monibuca/engine/v4/util"
|
||||
import "v4.m7s.live/engine/util"
|
||||
|
||||
type MP4 interface {
|
||||
}
|
||||
|
@@ -6,7 +6,7 @@ import (
|
||||
"io"
|
||||
"io/ioutil"
|
||||
|
||||
"github.com/Monibuca/engine/v4/util"
|
||||
"v4.m7s.live/engine/util"
|
||||
//"sync"
|
||||
)
|
||||
|
||||
|
@@ -4,8 +4,9 @@ import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/Monibuca/engine/v4/util"
|
||||
"io"
|
||||
|
||||
"v4.m7s.live/engine/util"
|
||||
)
|
||||
|
||||
// ios13818-1-CN.pdf 43(57)/166
|
||||
|
@@ -7,8 +7,8 @@ import (
|
||||
"io"
|
||||
"io/ioutil"
|
||||
|
||||
"github.com/Monibuca/engine/v4/codec"
|
||||
"github.com/Monibuca/engine/v4/util"
|
||||
"v4.m7s.live/engine/codec"
|
||||
"v4.m7s.live/engine/util"
|
||||
)
|
||||
|
||||
// ios13818-1-CN.pdf 45/166
|
||||
|
@@ -6,7 +6,7 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"github.com/Monibuca/engine/v4/util"
|
||||
"v4.m7s.live/engine/util"
|
||||
)
|
||||
|
||||
// ios13818-1-CN.pdf 46(60)-153(167)/page
|
||||
|
@@ -3,9 +3,10 @@ package mpegts
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/Monibuca/engine/v4/util"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
|
||||
"v4.m7s.live/engine/util"
|
||||
)
|
||||
|
||||
//
|
||||
|
@@ -5,7 +5,7 @@ import (
|
||||
|
||||
"github.com/cnotch/ipchub/av/codec/hevc"
|
||||
|
||||
"github.com/Monibuca/engine/v4/util/bits"
|
||||
"v4.m7s.live/engine/util/bits"
|
||||
)
|
||||
|
||||
type SPSInfo struct {
|
||||
|
@@ -4,9 +4,9 @@ import (
|
||||
"net"
|
||||
"time"
|
||||
|
||||
"github.com/Monibuca/engine/v4/codec"
|
||||
"github.com/Monibuca/engine/v4/log"
|
||||
"github.com/pion/rtp"
|
||||
"v4.m7s.live/engine/codec"
|
||||
"v4.m7s.live/engine/log"
|
||||
)
|
||||
|
||||
type NALUSlice net.Buffers
|
||||
@@ -197,4 +197,4 @@ type DecoderConfiguration[T RawSlice] struct {
|
||||
AVCC net.Buffers
|
||||
Raw T
|
||||
FLV net.Buffers
|
||||
}
|
||||
}
|
||||
|
@@ -1,7 +1,7 @@
|
||||
package common
|
||||
|
||||
import (
|
||||
"github.com/Monibuca/engine/v4/util"
|
||||
"v4.m7s.live/engine/util"
|
||||
)
|
||||
|
||||
type RingBuffer[T any] struct {
|
||||
|
@@ -1,7 +1,7 @@
|
||||
package common
|
||||
|
||||
import (
|
||||
"github.com/Monibuca/engine/v4/log"
|
||||
"v4.m7s.live/engine/log"
|
||||
)
|
||||
|
||||
type IStream interface {
|
||||
|
@@ -7,8 +7,8 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/Monibuca/engine/v4/log"
|
||||
"go.uber.org/zap"
|
||||
"v4.m7s.live/engine/log"
|
||||
)
|
||||
|
||||
type Config map[string]any
|
||||
|
@@ -1,11 +1,12 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"github.com/Monibuca/engine/v4/log"
|
||||
"context"
|
||||
"net"
|
||||
"runtime"
|
||||
"time"
|
||||
|
||||
"v4.m7s.live/engine/log"
|
||||
)
|
||||
|
||||
type TCP struct {
|
||||
|
@@ -5,7 +5,7 @@ package engine
|
||||
// "time"
|
||||
// "unsafe"
|
||||
|
||||
// "github.com/Monibuca/engine/v4/util"
|
||||
// "v4.m7s.live/engine/util"
|
||||
// )
|
||||
|
||||
// type DataTrack struct {
|
||||
|
4
http.go
4
http.go
@@ -4,10 +4,10 @@ import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
"github.com/Monibuca/engine/v4/config"
|
||||
"github.com/Monibuca/engine/v4/log"
|
||||
. "github.com/logrusorgru/aurora"
|
||||
"go.uber.org/zap"
|
||||
"v4.m7s.live/engine/config"
|
||||
"v4.m7s.live/engine/log"
|
||||
)
|
||||
|
||||
type GlobalConfig struct {
|
||||
|
4
io.go
4
io.go
@@ -9,9 +9,9 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/Monibuca/engine/v4/config"
|
||||
"github.com/Monibuca/engine/v4/util"
|
||||
"go.uber.org/zap"
|
||||
"v4.m7s.live/engine/config"
|
||||
"v4.m7s.live/engine/util"
|
||||
)
|
||||
|
||||
type IOConfig interface {
|
||||
|
8
main.go
8
main.go
@@ -1,4 +1,4 @@
|
||||
package engine
|
||||
package engine // import "v4.m7s.live/engine"
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
@@ -12,13 +12,13 @@ import (
|
||||
"runtime"
|
||||
"time"
|
||||
|
||||
"github.com/Monibuca/engine/v4/config"
|
||||
"github.com/Monibuca/engine/v4/log"
|
||||
"github.com/Monibuca/engine/v4/util"
|
||||
"github.com/google/uuid"
|
||||
. "github.com/logrusorgru/aurora"
|
||||
"go.uber.org/zap"
|
||||
"gopkg.in/yaml.v3"
|
||||
"v4.m7s.live/engine/config"
|
||||
"v4.m7s.live/engine/log"
|
||||
"v4.m7s.live/engine/util"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@@ -10,11 +10,11 @@ import (
|
||||
"runtime"
|
||||
"strings"
|
||||
|
||||
"github.com/Monibuca/engine/v4/config"
|
||||
"github.com/Monibuca/engine/v4/log"
|
||||
"github.com/Monibuca/engine/v4/util"
|
||||
"go.uber.org/zap"
|
||||
"gopkg.in/yaml.v3"
|
||||
"v4.m7s.live/engine/config"
|
||||
"v4.m7s.live/engine/log"
|
||||
"v4.m7s.live/engine/util"
|
||||
)
|
||||
|
||||
// InstallPlugin 安装插件,传入插件配置生成插件信息对象
|
||||
|
@@ -1,8 +1,8 @@
|
||||
package engine
|
||||
|
||||
import (
|
||||
"github.com/Monibuca/engine/v4/common"
|
||||
"github.com/Monibuca/engine/v4/config"
|
||||
"v4.m7s.live/engine/common"
|
||||
"v4.m7s.live/engine/config"
|
||||
)
|
||||
|
||||
type IPublisher interface {
|
||||
|
@@ -5,12 +5,12 @@ import (
|
||||
"time"
|
||||
"unsafe"
|
||||
|
||||
. "github.com/Monibuca/engine/v4/common"
|
||||
"github.com/Monibuca/engine/v4/log"
|
||||
"github.com/Monibuca/engine/v4/track"
|
||||
"github.com/Monibuca/engine/v4/util"
|
||||
. "github.com/logrusorgru/aurora"
|
||||
"go.uber.org/zap"
|
||||
. "v4.m7s.live/engine/common"
|
||||
"v4.m7s.live/engine/log"
|
||||
"v4.m7s.live/engine/track"
|
||||
"v4.m7s.live/engine/util"
|
||||
)
|
||||
|
||||
type StreamState byte
|
||||
|
@@ -5,10 +5,10 @@ import (
|
||||
"net"
|
||||
"time"
|
||||
|
||||
. "github.com/Monibuca/engine/v4/common"
|
||||
"github.com/Monibuca/engine/v4/config"
|
||||
"github.com/Monibuca/engine/v4/track"
|
||||
"go.uber.org/zap"
|
||||
. "v4.m7s.live/engine/common"
|
||||
"v4.m7s.live/engine/config"
|
||||
"v4.m7s.live/engine/track"
|
||||
)
|
||||
|
||||
type HaveFLV interface {
|
||||
|
@@ -4,10 +4,10 @@ import (
|
||||
"net"
|
||||
"time"
|
||||
|
||||
"github.com/Monibuca/engine/v4/codec"
|
||||
. "github.com/Monibuca/engine/v4/common"
|
||||
"github.com/Monibuca/engine/v4/config"
|
||||
"github.com/Monibuca/engine/v4/util"
|
||||
"v4.m7s.live/engine/codec"
|
||||
. "v4.m7s.live/engine/common"
|
||||
"v4.m7s.live/engine/config"
|
||||
"v4.m7s.live/engine/util"
|
||||
)
|
||||
|
||||
func NewAAC(stream IStream) (aac *AAC) {
|
||||
|
@@ -3,10 +3,10 @@ package track
|
||||
import (
|
||||
"net"
|
||||
|
||||
"github.com/Monibuca/engine/v4/codec"
|
||||
. "github.com/Monibuca/engine/v4/common"
|
||||
"github.com/Monibuca/engine/v4/config"
|
||||
"go.uber.org/zap"
|
||||
"v4.m7s.live/engine/codec"
|
||||
. "v4.m7s.live/engine/common"
|
||||
"v4.m7s.live/engine/config"
|
||||
)
|
||||
|
||||
var adcflv1 = []byte{codec.FLV_TAG_TYPE_AUDIO, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0}
|
||||
|
@@ -4,10 +4,10 @@ import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
. "github.com/Monibuca/engine/v4/common"
|
||||
"github.com/Monibuca/engine/v4/config"
|
||||
"github.com/Monibuca/engine/v4/util"
|
||||
"github.com/pion/rtp"
|
||||
. "v4.m7s.live/engine/common"
|
||||
"v4.m7s.live/engine/config"
|
||||
"v4.m7s.live/engine/util"
|
||||
)
|
||||
|
||||
// Base 基础Track类
|
||||
@@ -89,7 +89,7 @@ func (av *Media[T]) UnmarshalRTP(raw []byte) (frame *RTPFrame) {
|
||||
return
|
||||
}
|
||||
if config.Global.RTPReorder {
|
||||
if frame.SequenceNumber < av.lastSeq && av.lastSeq - frame.SequenceNumber < 0x8000 {
|
||||
if frame.SequenceNumber < av.lastSeq && av.lastSeq-frame.SequenceNumber < 0x8000 {
|
||||
// 出现旧的包直接丢弃
|
||||
return nil
|
||||
} else if av.lastSeq == 0 {
|
||||
|
@@ -3,9 +3,9 @@ package track
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/Monibuca/engine/v4/codec"
|
||||
. "github.com/Monibuca/engine/v4/common"
|
||||
"github.com/Monibuca/engine/v4/config"
|
||||
"v4.m7s.live/engine/codec"
|
||||
. "v4.m7s.live/engine/common"
|
||||
"v4.m7s.live/engine/config"
|
||||
)
|
||||
|
||||
func NewG711(stream IStream, alaw bool) (g711 *G711) {
|
||||
|
@@ -4,10 +4,10 @@ import (
|
||||
"net"
|
||||
"time"
|
||||
|
||||
"github.com/Monibuca/engine/v4/codec"
|
||||
. "github.com/Monibuca/engine/v4/common"
|
||||
"github.com/Monibuca/engine/v4/config"
|
||||
"github.com/Monibuca/engine/v4/util"
|
||||
"v4.m7s.live/engine/codec"
|
||||
. "v4.m7s.live/engine/common"
|
||||
"v4.m7s.live/engine/config"
|
||||
"v4.m7s.live/engine/util"
|
||||
)
|
||||
|
||||
type H264 struct {
|
||||
|
@@ -4,10 +4,10 @@ import (
|
||||
"net"
|
||||
"time"
|
||||
|
||||
"github.com/Monibuca/engine/v4/codec"
|
||||
. "github.com/Monibuca/engine/v4/common"
|
||||
"github.com/Monibuca/engine/v4/config"
|
||||
"github.com/Monibuca/engine/v4/util"
|
||||
"v4.m7s.live/engine/codec"
|
||||
. "v4.m7s.live/engine/common"
|
||||
"v4.m7s.live/engine/config"
|
||||
"v4.m7s.live/engine/util"
|
||||
)
|
||||
|
||||
type H265 struct {
|
||||
|
@@ -4,12 +4,12 @@ import (
|
||||
"bytes"
|
||||
"net"
|
||||
|
||||
"github.com/Monibuca/engine/v4/codec"
|
||||
. "github.com/Monibuca/engine/v4/common"
|
||||
"github.com/Monibuca/engine/v4/config"
|
||||
"github.com/Monibuca/engine/v4/util"
|
||||
. "github.com/logrusorgru/aurora"
|
||||
"go.uber.org/zap"
|
||||
"v4.m7s.live/engine/codec"
|
||||
. "v4.m7s.live/engine/common"
|
||||
"v4.m7s.live/engine/config"
|
||||
"v4.m7s.live/engine/util"
|
||||
)
|
||||
|
||||
type Video struct {
|
||||
|
@@ -7,7 +7,7 @@ import (
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/Monibuca/engine/v4/log"
|
||||
"v4.m7s.live/engine/log"
|
||||
)
|
||||
|
||||
type TCPListener interface {
|
||||
|
Reference in New Issue
Block a user